This commit is contained in:
@@ -6,6 +6,7 @@ import type { ListCatalogItemsResponse } from './catalog.js';
|
||||
import type { GetInventoryResponse } from './inventory.js';
|
||||
import type { GetRankingResponse, SubmitScoreRequest } from './leaderboards.js';
|
||||
import type { PlayerProfile } from './player.js';
|
||||
import type { GetProjectStorageResponse, UpdateProjectStorageRequest } from './project-storage.js';
|
||||
import type { ClaimQuestRequest, ClaimQuestResponse, ListQuestsRequest, ListQuestsResponse } from './quests.js';
|
||||
import type { ListRemoteConfigsResponse, RemoteConfig } from './remote-config.js';
|
||||
import type { GetScenarioRunRequest, GetScenarioRunResponse, HandleScenarioCallbackRequest, HandleScenarioCallbackResponse, TriggerScenarioRequest, TriggerScenarioResponse, UpdateScenarioCounterRequest, UpdateScenarioCounterResponse } from './scenarios.js';
|
||||
@@ -88,6 +89,12 @@ export const api = {
|
||||
): Promise<PlayerProfile> =>
|
||||
t.request<PlayerProfile>('GET', '/sdk/v1/player/information'),
|
||||
|
||||
getProjectStorage: (
|
||||
t: Transport,
|
||||
query?: { types?: string; limit?: number; cursor?: string },
|
||||
): Promise<GetProjectStorageResponse> =>
|
||||
t.request<GetProjectStorageResponse>('GET', `/sdk/v1/project-storage${qs([['types', query?.types], ['limit', query?.limit], ['cursor', query?.cursor]])}`),
|
||||
|
||||
getRanking: (
|
||||
t: Transport,
|
||||
path: { slug: string },
|
||||
@@ -213,6 +220,12 @@ export const api = {
|
||||
): Promise<TriggerScenarioResponse> =>
|
||||
t.request<TriggerScenarioResponse>('POST', '/sdk/v1/scenarios/trigger', body),
|
||||
|
||||
updateProjectStorage: (
|
||||
t: Transport,
|
||||
body: UpdateProjectStorageRequest,
|
||||
): Promise<void> =>
|
||||
t.request<void>('PUT', '/sdk/v1/project-storage', body),
|
||||
|
||||
updateScenarioCounter: (
|
||||
t: Transport,
|
||||
body: UpdateScenarioCounterRequest,
|
||||
|
||||
@@ -7,6 +7,7 @@ export * from './common.js';
|
||||
export * from './inventory.js';
|
||||
export * from './leaderboards.js';
|
||||
export * from './player.js';
|
||||
export * from './project-storage.js';
|
||||
export * from './quests.js';
|
||||
export * from './remote-config.js';
|
||||
export * from './scenarios.js';
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
// Code generated by apigen. DO NOT EDIT.
|
||||
|
||||
export interface GetProjectStorageResponse {
|
||||
"items"?: ProjectStorageItem[];
|
||||
"nextCursor"?: string;
|
||||
}
|
||||
|
||||
export interface ProjectStorageItem {
|
||||
"data"?: string;
|
||||
"expiresAt"?: string;
|
||||
"id"?: string;
|
||||
"readPermission"?: "public" | "serverOnly";
|
||||
"size"?: number;
|
||||
"type"?: string;
|
||||
"updatedAt"?: string;
|
||||
"version"?: number;
|
||||
"writePermission"?: "public" | "serverOnly";
|
||||
}
|
||||
|
||||
export interface ProjectStorageUpdateItem {
|
||||
"data"?: string;
|
||||
"type"?: string;
|
||||
}
|
||||
|
||||
export interface UpdateProjectStorageRequest {
|
||||
"idempotencyKey"?: string;
|
||||
"items"?: ProjectStorageUpdateItem[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user