feat: modules and resources domains, drop removed domains, regenerated models
This commit is contained in:
+33
-111
@@ -1,17 +1,12 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
import type { LinkViaAppleRequest, LinkViaCustomRequest, LinkViaGoogleRequest, LoginViaAppleRequest, LoginViaAppleResponse, LoginViaCustomRequest, LoginViaCustomResponse, LoginViaDeviceRequest, LoginViaDeviceResponse, LoginViaGoogleRequest, LoginViaGoogleResponse, RefreshAccessTokenRequest, RefreshAccessTokenResponse, UnlinkIdentityRequest } from './auth.js';
|
||||
import type { AddBattlePassXpRequest, AddBattlePassXpResponse, ClaimBattlePassRewardRequest, ClaimBattlePassRewardResponse, GetBattlePassProgressRequest, GetBattlePassProgressResponse, PurchaseBattlePassPremiumRequest, PurchaseBattlePassPremiumResponse } from './battlepass.js';
|
||||
import type { ListCatalogItemsResponse } from './catalog.js';
|
||||
import type { GetInventoryResponse } from './inventory.js';
|
||||
import type { GetRankingResponse, SubmitScoreRequest } from './leaderboards.js';
|
||||
import type { ListCatalogCurrenciesResponse } from './catalog.js';
|
||||
import type { CallModuleFunctionClientResponse, CallModuleFunctionRequest } from './modules.js';
|
||||
import type { PlayerProfile } from './player.js';
|
||||
import type { GetProjectStorageResponse, UpdateProjectStorageRequest } from './project-storage.js';
|
||||
import type { ClaimQuestRequest, ClaimQuestResponse, ListQuestsResponse, ReportQuestProgressRequest, ReportQuestProgressResponse } from './quests.js';
|
||||
import type { ListRemoteConfigsResponse, RemoteConfig } from './remote-config.js';
|
||||
import type { HandleScenarioCallbackRequest, HandleScenarioCallbackResponse, ListPendingScenarioEffectsResponse, TriggerScenarioRequest, TriggerScenarioResponse, UpdateScenarioCounterRequest, UpdateScenarioCounterResponse } from './scenarios.js';
|
||||
import type { CreateResourceRowRequest, ListResourceRowsResponse, ResourceRow, UpdateResourceRowRequest } from './resources.js';
|
||||
import type { GetStorageResponse, UpdateStorageRequest } from './storage.js';
|
||||
import type { ListStoresResponse, PurchaseOfferRequest, PurchaseOfferResponse, Store } from './stores.js';
|
||||
|
||||
/** The minimal transport contract the generated API functions call through. */
|
||||
export interface Transport {
|
||||
@@ -36,23 +31,25 @@ function qs(
|
||||
|
||||
/** Typed request functions, one per SDK operation. */
|
||||
export const api = {
|
||||
addBattlePassXp: (
|
||||
callModuleFunction: (
|
||||
t: Transport,
|
||||
body: AddBattlePassXpRequest,
|
||||
): Promise<AddBattlePassXpResponse> =>
|
||||
t.request<AddBattlePassXpResponse>('POST', '/sdk/v1/battlepass/xp', body),
|
||||
path: { module: string; fn: string },
|
||||
body: CallModuleFunctionRequest,
|
||||
): Promise<CallModuleFunctionClientResponse> =>
|
||||
t.request<CallModuleFunctionClientResponse>('POST', `/sdk/v1/modules/${enc(path.module)}/${enc(path.fn)}`, body),
|
||||
|
||||
claimBattlePassReward: (
|
||||
createResourceRow: (
|
||||
t: Transport,
|
||||
body: ClaimBattlePassRewardRequest,
|
||||
): Promise<ClaimBattlePassRewardResponse> =>
|
||||
t.request<ClaimBattlePassRewardResponse>('POST', '/sdk/v1/battlepass/claim', body),
|
||||
path: { slug: string },
|
||||
body: CreateResourceRowRequest,
|
||||
): Promise<ResourceRow> =>
|
||||
t.request<ResourceRow>('POST', `/sdk/v1/resources/${enc(path.slug)}`, body),
|
||||
|
||||
claimQuest: (
|
||||
deleteResourceRow: (
|
||||
t: Transport,
|
||||
body: ClaimQuestRequest,
|
||||
): Promise<ClaimQuestResponse> =>
|
||||
t.request<ClaimQuestResponse>('POST', '/sdk/v1/quests/claim', body),
|
||||
path: { slug: string; id: string },
|
||||
): Promise<void> =>
|
||||
t.request<void>('DELETE', `/sdk/v1/resources/${enc(path.slug)}/${enc(path.id)}`),
|
||||
|
||||
deleteStorage: (
|
||||
t: Transport,
|
||||
@@ -60,17 +57,6 @@ export const api = {
|
||||
): Promise<void> =>
|
||||
t.request<void>('DELETE', `/sdk/v1/storage${qs([['type', query?.type]])}`),
|
||||
|
||||
getBattlePassProgress: (
|
||||
t: Transport,
|
||||
body: GetBattlePassProgressRequest,
|
||||
): Promise<GetBattlePassProgressResponse> =>
|
||||
t.request<GetBattlePassProgressResponse>('POST', '/sdk/v1/battlepass/progress', body),
|
||||
|
||||
getInventory: (
|
||||
t: Transport,
|
||||
): Promise<GetInventoryResponse> =>
|
||||
t.request<GetInventoryResponse>('GET', '/sdk/v1/inventory'),
|
||||
|
||||
getPlayerInformation: (
|
||||
t: Transport,
|
||||
): Promise<PlayerProfile> =>
|
||||
@@ -82,18 +68,11 @@ export const api = {
|
||||
): Promise<GetProjectStorageResponse> =>
|
||||
t.request<GetProjectStorageResponse>('GET', `/sdk/v1/project-storage${qs([['types', query?.types], ['limit', query?.limit], ['cursor', query?.cursor]])}`),
|
||||
|
||||
getRanking: (
|
||||
getResourceRow: (
|
||||
t: Transport,
|
||||
path: { slug: string },
|
||||
query?: { limit?: number },
|
||||
): Promise<GetRankingResponse> =>
|
||||
t.request<GetRankingResponse>('GET', `/sdk/v1/leaderboards/${enc(path.slug)}/ranking${qs([['limit', query?.limit]])}`),
|
||||
|
||||
getRemoteConfig: (
|
||||
t: Transport,
|
||||
path: { key: string },
|
||||
): Promise<RemoteConfig> =>
|
||||
t.request<RemoteConfig>('GET', `/sdk/v1/remote-configs/${enc(path.key)}`),
|
||||
path: { slug: string; id: string },
|
||||
): Promise<ResourceRow> =>
|
||||
t.request<ResourceRow>('GET', `/sdk/v1/resources/${enc(path.slug)}/${enc(path.id)}`),
|
||||
|
||||
getRevisions: (
|
||||
t: Transport,
|
||||
@@ -106,18 +85,6 @@ export const api = {
|
||||
): Promise<GetStorageResponse> =>
|
||||
t.request<GetStorageResponse>('GET', `/sdk/v1/storage${qs([['types', query?.types], ['limit', query?.limit], ['cursor', query?.cursor]])}`),
|
||||
|
||||
getStore: (
|
||||
t: Transport,
|
||||
path: { slug: string },
|
||||
): Promise<Store> =>
|
||||
t.request<Store>('GET', `/sdk/v1/stores/${enc(path.slug)}`),
|
||||
|
||||
handleScenarioCallback: (
|
||||
t: Transport,
|
||||
body: HandleScenarioCallbackRequest,
|
||||
): Promise<HandleScenarioCallbackResponse> =>
|
||||
t.request<HandleScenarioCallbackResponse>('POST', '/sdk/v1/scenarios/callback', body),
|
||||
|
||||
linkViaApple: (
|
||||
t: Transport,
|
||||
body: LinkViaAppleRequest,
|
||||
@@ -136,30 +103,16 @@ export const api = {
|
||||
): Promise<void> =>
|
||||
t.request<void>('POST', '/sdk/v1/authorization/google/link', body),
|
||||
|
||||
listCatalogItems: (
|
||||
listCatalogCurrencies: (
|
||||
t: Transport,
|
||||
): Promise<ListCatalogItemsResponse> =>
|
||||
t.request<ListCatalogItemsResponse>('GET', '/sdk/v1/catalog'),
|
||||
): Promise<ListCatalogCurrenciesResponse> =>
|
||||
t.request<ListCatalogCurrenciesResponse>('GET', '/sdk/v1/catalog'),
|
||||
|
||||
listPendingScenarioEffects: (
|
||||
listResourceRows: (
|
||||
t: Transport,
|
||||
): Promise<ListPendingScenarioEffectsResponse> =>
|
||||
t.request<ListPendingScenarioEffectsResponse>('GET', '/sdk/v1/scenarios/pending'),
|
||||
|
||||
listQuests: (
|
||||
t: Transport,
|
||||
): Promise<ListQuestsResponse> =>
|
||||
t.request<ListQuestsResponse>('POST', '/sdk/v1/quests/list'),
|
||||
|
||||
listSdkRemoteConfigs: (
|
||||
t: Transport,
|
||||
): Promise<ListRemoteConfigsResponse> =>
|
||||
t.request<ListRemoteConfigsResponse>('GET', '/sdk/v1/remote-configs'),
|
||||
|
||||
listSdkStores: (
|
||||
t: Transport,
|
||||
): Promise<ListStoresResponse> =>
|
||||
t.request<ListStoresResponse>('GET', '/sdk/v1/stores'),
|
||||
path: { slug: string },
|
||||
): Promise<ListResourceRowsResponse> =>
|
||||
t.request<ListResourceRowsResponse>('GET', `/sdk/v1/resources/${enc(path.slug)}`),
|
||||
|
||||
loginViaApple: (
|
||||
t: Transport,
|
||||
@@ -185,44 +138,12 @@ export const api = {
|
||||
): Promise<LoginViaGoogleResponse> =>
|
||||
t.request<LoginViaGoogleResponse>('POST', '/sdk/v1/authorization/google', body),
|
||||
|
||||
purchaseBattlePassPremium: (
|
||||
t: Transport,
|
||||
body: PurchaseBattlePassPremiumRequest,
|
||||
): Promise<PurchaseBattlePassPremiumResponse> =>
|
||||
t.request<PurchaseBattlePassPremiumResponse>('POST', '/sdk/v1/battlepass/premium', body),
|
||||
|
||||
purchaseOffer: (
|
||||
t: Transport,
|
||||
path: { storeSlug: string; offerSlug: string },
|
||||
body: PurchaseOfferRequest,
|
||||
): Promise<PurchaseOfferResponse> =>
|
||||
t.request<PurchaseOfferResponse>('POST', `/sdk/v1/stores/${enc(path.storeSlug)}/offers/${enc(path.offerSlug)}/purchase`, body),
|
||||
|
||||
refreshAccessToken: (
|
||||
t: Transport,
|
||||
body: RefreshAccessTokenRequest,
|
||||
): Promise<RefreshAccessTokenResponse> =>
|
||||
t.request<RefreshAccessTokenResponse>('POST', '/sdk/v1/authorization/refresh', body),
|
||||
|
||||
reportQuestProgress: (
|
||||
t: Transport,
|
||||
body: ReportQuestProgressRequest,
|
||||
): Promise<ReportQuestProgressResponse> =>
|
||||
t.request<ReportQuestProgressResponse>('POST', '/sdk/v1/quests/progress', body),
|
||||
|
||||
submitScore: (
|
||||
t: Transport,
|
||||
path: { slug: string },
|
||||
body: SubmitScoreRequest,
|
||||
): Promise<void> =>
|
||||
t.request<void>('POST', `/sdk/v1/leaderboards/${enc(path.slug)}/submit-score`, body),
|
||||
|
||||
triggerScenario: (
|
||||
t: Transport,
|
||||
body: TriggerScenarioRequest,
|
||||
): Promise<TriggerScenarioResponse> =>
|
||||
t.request<TriggerScenarioResponse>('POST', '/sdk/v1/scenarios/trigger', body),
|
||||
|
||||
unlinkIdentity: (
|
||||
t: Transport,
|
||||
body: UnlinkIdentityRequest,
|
||||
@@ -235,11 +156,12 @@ export const api = {
|
||||
): Promise<void> =>
|
||||
t.request<void>('PUT', '/sdk/v1/project-storage', body),
|
||||
|
||||
updateScenarioCounter: (
|
||||
updateResourceRow: (
|
||||
t: Transport,
|
||||
body: UpdateScenarioCounterRequest,
|
||||
): Promise<UpdateScenarioCounterResponse> =>
|
||||
t.request<UpdateScenarioCounterResponse>('POST', '/sdk/v1/scenarios/counter', body),
|
||||
path: { slug: string; id: string },
|
||||
body: UpdateResourceRowRequest,
|
||||
): Promise<ResourceRow> =>
|
||||
t.request<ResourceRow>('PATCH', `/sdk/v1/resources/${enc(path.slug)}/${enc(path.id)}`, body),
|
||||
|
||||
updateStorage: (
|
||||
t: Transport,
|
||||
|
||||
@@ -14,10 +14,12 @@ export interface LinkViaGoogleRequest {
|
||||
}
|
||||
|
||||
export interface LoginViaAppleRequest {
|
||||
"appVersion"?: string;
|
||||
"idToken": string;
|
||||
"key": string;
|
||||
"language": string;
|
||||
"nickname"?: string;
|
||||
"platform"?: string;
|
||||
"region": string;
|
||||
}
|
||||
|
||||
@@ -27,10 +29,12 @@ export interface LoginViaAppleResponse {
|
||||
}
|
||||
|
||||
export interface LoginViaCustomRequest {
|
||||
"appVersion"?: string;
|
||||
"customData"?: { [key: string]: unknown };
|
||||
"key"?: string;
|
||||
"language"?: string;
|
||||
"nickname"?: string;
|
||||
"platform"?: string;
|
||||
"provider"?: string;
|
||||
"region"?: string;
|
||||
}
|
||||
@@ -41,10 +45,12 @@ export interface LoginViaCustomResponse {
|
||||
}
|
||||
|
||||
export interface LoginViaDeviceRequest {
|
||||
"appVersion"?: string;
|
||||
"deviceId"?: string;
|
||||
"key"?: string;
|
||||
"language"?: string;
|
||||
"nickname"?: string;
|
||||
"platform"?: string;
|
||||
"region"?: string;
|
||||
}
|
||||
|
||||
@@ -54,10 +60,12 @@ export interface LoginViaDeviceResponse {
|
||||
}
|
||||
|
||||
export interface LoginViaGoogleRequest {
|
||||
"appVersion"?: string;
|
||||
"idToken": string;
|
||||
"key": string;
|
||||
"language": string;
|
||||
"nickname"?: string;
|
||||
"platform"?: string;
|
||||
"region": string;
|
||||
}
|
||||
|
||||
@@ -67,6 +75,8 @@ export interface LoginViaGoogleResponse {
|
||||
}
|
||||
|
||||
export interface RefreshAccessTokenRequest {
|
||||
"appVersion"?: string;
|
||||
"platform"?: string;
|
||||
"refreshToken"?: string;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,63 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
import type { Reward } from './common.js';
|
||||
|
||||
export interface AddBattlePassXpRequest {
|
||||
"amount"?: number;
|
||||
"nodeId"?: string;
|
||||
"runId"?: string;
|
||||
"scenarioSlug"?: string;
|
||||
"source"?: string;
|
||||
}
|
||||
|
||||
export interface AddBattlePassXpResponse {
|
||||
"level"?: number;
|
||||
"leveledUp"?: boolean;
|
||||
"maxLevel"?: boolean;
|
||||
"xp"?: number;
|
||||
}
|
||||
|
||||
export interface ClaimBattlePassRewardRequest {
|
||||
"level"?: number;
|
||||
"nodeId"?: string;
|
||||
"runId"?: string;
|
||||
"scenarioSlug"?: string;
|
||||
"track"?: "free" | "premium";
|
||||
}
|
||||
|
||||
export interface ClaimBattlePassRewardResponse {
|
||||
"alreadyClaimed"?: boolean;
|
||||
"error"?: string;
|
||||
"granted"?: Reward[];
|
||||
"success"?: boolean;
|
||||
}
|
||||
|
||||
export interface ClaimedTier {
|
||||
"level"?: number;
|
||||
"track"?: string;
|
||||
}
|
||||
|
||||
export interface GetBattlePassProgressRequest {
|
||||
"nodeId"?: string;
|
||||
"scenarioSlug"?: string;
|
||||
}
|
||||
|
||||
export interface GetBattlePassProgressResponse {
|
||||
"claimedTiers"?: ClaimedTier[];
|
||||
"level"?: number;
|
||||
"premiumOwned"?: boolean;
|
||||
"xp"?: number;
|
||||
}
|
||||
|
||||
export interface PurchaseBattlePassPremiumRequest {
|
||||
"idempotencyKey"?: string;
|
||||
"nodeId"?: string;
|
||||
"runId"?: string;
|
||||
"scenarioSlug"?: string;
|
||||
}
|
||||
|
||||
export interface PurchaseBattlePassPremiumResponse {
|
||||
"error"?: string;
|
||||
"success"?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface CatalogItem {
|
||||
export interface CatalogCurrency {
|
||||
"data"?: { [key: string]: unknown };
|
||||
"icon"?: string;
|
||||
"name"?: string;
|
||||
"properties"?: { [key: string]: unknown };
|
||||
"slug"?: string;
|
||||
"tags"?: string[];
|
||||
}
|
||||
|
||||
export interface ListCatalogItemsResponse {
|
||||
"items"?: CatalogItem[];
|
||||
export interface ListCatalogCurrenciesResponse {
|
||||
"currencies"?: CatalogCurrency[];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,16 +1,14 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
import type { ResourceRowUsage } from './resources.js';
|
||||
|
||||
export interface ErrorResponse {
|
||||
"code"?: "early_completion" | "forbidden" | "level_not_reached" | "node_not_active" | "objectives_incomplete" | "run_expired" | "run_not_active" | "scenario_not_active" | "unknown_run";
|
||||
"code"?: "forbidden" | "row_referenced";
|
||||
"error"?: string;
|
||||
"index"?: number;
|
||||
"path"?: string;
|
||||
"playerId"?: string;
|
||||
"requestId"?: string;
|
||||
}
|
||||
|
||||
export interface Reward {
|
||||
"amount"?: number;
|
||||
"currency"?: string;
|
||||
"itemId"?: string;
|
||||
"usages"?: ResourceRowUsage[];
|
||||
}
|
||||
|
||||
|
||||
@@ -1,15 +1,8 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export type RudderErrorCode = "early_completion" | "forbidden" | "level_not_reached" | "node_not_active" | "objectives_incomplete" | "run_expired" | "run_not_active" | "scenario_not_active" | "unknown_run";
|
||||
export type RudderErrorCode = "forbidden" | "row_referenced";
|
||||
|
||||
export const RudderErrorCodes = {
|
||||
earlyCompletion: "early_completion",
|
||||
forbidden: "forbidden",
|
||||
levelNotReached: "level_not_reached",
|
||||
nodeNotActive: "node_not_active",
|
||||
objectivesIncomplete: "objectives_incomplete",
|
||||
runExpired: "run_expired",
|
||||
runNotActive: "run_not_active",
|
||||
scenarioNotActive: "scenario_not_active",
|
||||
unknownRun: "unknown_run",
|
||||
rowReferenced: "row_referenced",
|
||||
} as const;
|
||||
|
||||
@@ -1,17 +1,12 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export * from './auth.js';
|
||||
export * from './battlepass.js';
|
||||
export * from './catalog.js';
|
||||
export * from './common.js';
|
||||
export * from './inventory.js';
|
||||
export * from './leaderboards.js';
|
||||
export * from './modules.js';
|
||||
export * from './player.js';
|
||||
export * from './project-storage.js';
|
||||
export * from './quests.js';
|
||||
export * from './remote-config.js';
|
||||
export * from './scenarios.js';
|
||||
export * from './resources.js';
|
||||
export * from './storage.js';
|
||||
export * from './stores.js';
|
||||
export * from './api.js';
|
||||
export * from './errors.js';
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface GetInventoryResponse {
|
||||
"items"?: PlayerInventoryItem[];
|
||||
}
|
||||
|
||||
export interface PlayerInventoryItem {
|
||||
"amount"?: number;
|
||||
"nameOverride"?: string;
|
||||
"propertiesOverride"?: { [key: string]: unknown };
|
||||
"slug"?: string;
|
||||
"updatedAt"?: string;
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface GetRankingResponse {
|
||||
"entries"?: RankEntry[];
|
||||
"total"?: number;
|
||||
}
|
||||
|
||||
export interface RankEntry {
|
||||
"playerId"?: string;
|
||||
"playerName"?: string;
|
||||
"rank"?: number;
|
||||
"score"?: number;
|
||||
}
|
||||
|
||||
export interface SubmitScoreRequest {
|
||||
"score"?: number;
|
||||
"slug"?: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface CallModuleFunctionClientResponse {
|
||||
"result"?: unknown;
|
||||
}
|
||||
|
||||
export interface CallModuleFunctionRequest {
|
||||
"args"?: unknown;
|
||||
"dryRun"?: boolean;
|
||||
}
|
||||
|
||||
export interface ModuleErrorResponse {
|
||||
"code": string;
|
||||
"error": string;
|
||||
"requestId"?: string;
|
||||
}
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
import type { Reward } from './common.js';
|
||||
|
||||
export interface ClaimQuestRequest {
|
||||
"questSlug"?: string;
|
||||
}
|
||||
|
||||
export interface ClaimQuestResponse {
|
||||
"alreadyClaimed"?: boolean;
|
||||
"error"?: string;
|
||||
"granted"?: Reward[];
|
||||
"success"?: boolean;
|
||||
}
|
||||
|
||||
export interface ListQuestsResponse {
|
||||
"quests"?: Quest[];
|
||||
}
|
||||
|
||||
export interface Quest {
|
||||
"name"?: string;
|
||||
"objectives"?: QuestObjectiveProgress[];
|
||||
"rewards"?: Reward[];
|
||||
"slug"?: string;
|
||||
"status"?: "active" | "claimed" | "completed";
|
||||
}
|
||||
|
||||
export interface QuestObjectiveProgress {
|
||||
"completed"?: boolean;
|
||||
"current"?: number;
|
||||
"metric"?: string;
|
||||
"objectiveId"?: string;
|
||||
"target"?: number;
|
||||
}
|
||||
|
||||
export interface ReportQuestProgressRequest {
|
||||
"amount"?: number;
|
||||
"metric"?: string;
|
||||
}
|
||||
|
||||
export interface ReportQuestProgressResponse {
|
||||
"completedQuestSlugs"?: string[];
|
||||
}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface ListRemoteConfigsResponse {
|
||||
"configs"?: { [key: string]: RemoteConfig };
|
||||
}
|
||||
|
||||
export interface RemoteConfig {
|
||||
"active"?: boolean;
|
||||
"createdAt"?: string;
|
||||
"description"?: string;
|
||||
"environment"?: string;
|
||||
"id"?: string;
|
||||
"key"?: string;
|
||||
"projectId"?: string;
|
||||
"updatedAt"?: string;
|
||||
"value"?: string;
|
||||
"valueType"?: "bool" | "float" | "int" | "json" | "string";
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface CreateResourceRowRequest {
|
||||
"data"?: { [key: string]: unknown };
|
||||
"id"?: string;
|
||||
}
|
||||
|
||||
export interface ListResourceRowsResponse {
|
||||
"items"?: ResourceRow[];
|
||||
"total"?: number;
|
||||
}
|
||||
|
||||
export interface ResourceRow {
|
||||
"createdAt"?: string;
|
||||
"data"?: { [key: string]: unknown };
|
||||
"id"?: string;
|
||||
"playerId"?: string;
|
||||
"rank"?: number;
|
||||
"updatedAt"?: string;
|
||||
"version"?: number;
|
||||
}
|
||||
|
||||
export interface ResourceRowUsage {
|
||||
"definitionSlug"?: string;
|
||||
"field"?: string;
|
||||
"moduleSlug"?: string;
|
||||
"rowId"?: string;
|
||||
}
|
||||
|
||||
export interface UpdateResourceRowRequest {
|
||||
"data"?: { [key: string]: unknown };
|
||||
"version"?: number;
|
||||
}
|
||||
|
||||
@@ -1,47 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface HandleScenarioCallbackRequest {
|
||||
"handle"?: string;
|
||||
"nodeId"?: string;
|
||||
"runId"?: string;
|
||||
"scenarioSlug"?: string;
|
||||
}
|
||||
|
||||
export interface HandleScenarioCallbackResponse {
|
||||
"effect"?: PendingEffect;
|
||||
}
|
||||
|
||||
export interface ListPendingScenarioEffectsResponse {
|
||||
"effects": PendingEffect[];
|
||||
}
|
||||
|
||||
export interface PendingEffect {
|
||||
"data": { [key: string]: unknown };
|
||||
"nodeId": string;
|
||||
"runId": string;
|
||||
"scenarioSlug": string;
|
||||
"type": string;
|
||||
"waitDeadline"?: string;
|
||||
}
|
||||
|
||||
export interface TriggerScenarioRequest {
|
||||
"event"?: string;
|
||||
}
|
||||
|
||||
export interface TriggerScenarioResponse {
|
||||
"effects": PendingEffect[];
|
||||
}
|
||||
|
||||
export interface UpdateScenarioCounterRequest {
|
||||
"amount"?: number;
|
||||
"counterKey"?: string;
|
||||
"nodeId"?: string;
|
||||
"runId"?: string;
|
||||
"scenarioSlug"?: string;
|
||||
}
|
||||
|
||||
export interface UpdateScenarioCounterResponse {
|
||||
"completed"?: boolean;
|
||||
"effect"?: PendingEffect;
|
||||
}
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface ListStoresResponse {
|
||||
"stores"?: Store[];
|
||||
"total"?: number;
|
||||
}
|
||||
|
||||
export interface Offer {
|
||||
"contents"?: OfferContent[];
|
||||
"createdAt"?: string;
|
||||
"id"?: string;
|
||||
"maxPurchases"?: number;
|
||||
"name"?: string;
|
||||
"price"?: OfferPrice;
|
||||
"slug"?: string;
|
||||
"updatedAt"?: string;
|
||||
}
|
||||
|
||||
export interface OfferContent {
|
||||
"amount"?: number;
|
||||
"itemId"?: string;
|
||||
}
|
||||
|
||||
export interface OfferPrice {
|
||||
"amount"?: number;
|
||||
"currency"?: string;
|
||||
}
|
||||
|
||||
export interface PurchaseOfferRequest {
|
||||
"idempotencyKey"?: string;
|
||||
"offerSlug"?: string;
|
||||
"storeSlug"?: string;
|
||||
}
|
||||
|
||||
export interface PurchaseOfferResponse {
|
||||
"error"?: string;
|
||||
"purchaseId"?: string;
|
||||
"success"?: boolean;
|
||||
}
|
||||
|
||||
export interface Store {
|
||||
"createdAt"?: string;
|
||||
"data"?: { [key: string]: unknown };
|
||||
"description"?: string;
|
||||
"environment"?: string;
|
||||
"id"?: string;
|
||||
"name"?: string;
|
||||
"offers"?: Offer[];
|
||||
"projectId"?: string;
|
||||
"scenarioId"?: string;
|
||||
"slug"?: string;
|
||||
"status"?: string;
|
||||
"updatedAt"?: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user