@playdrop/playdrop-cli 0.15.6 → 0.15.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/client-meta.json +2 -2
- package/dist/apps/index.d.ts +2 -3
- package/dist/apps/index.js +2 -2
- package/dist/apps/loadCheck.d.ts +4 -1
- package/dist/apps/loadCheck.js +64 -7
- package/dist/apps/staticHtml.js +1 -0
- package/dist/apps/upload.d.ts +38 -1
- package/dist/apps/upload.js +58 -44
- package/dist/catalogue.d.ts +3 -0
- package/dist/catalogue.js +26 -0
- package/dist/commands/create.js +45 -16
- package/dist/commands/devRuntimeAssets.d.ts +1 -0
- package/dist/commands/devRuntimeAssets.js +2 -0
- package/dist/commands/review.js +0 -3
- package/dist/commands/upload.d.ts +2 -3
- package/dist/commands/upload.js +23 -42
- package/dist/commands/validate.js +0 -4
- package/dist/commands/worker.d.ts +7 -1
- package/dist/commands/worker.js +65 -57
- package/dist/index.js +1 -1
- package/dist/listingPreflight.d.ts +1 -24
- package/dist/listingPreflight.js +3 -288
- package/node_modules/@playdrop/api-client/dist/client.d.ts +25 -2
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.js +11 -0
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts +4 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.js +31 -2
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts +2 -1
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.js +12 -0
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts +9 -1
- package/node_modules/@playdrop/api-client/dist/domains/apps.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/apps.js +66 -0
- package/node_modules/@playdrop/api-client/dist/domains/asset-packs.d.ts +1 -0
- package/node_modules/@playdrop/api-client/dist/domains/asset-packs.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/asset-packs.js +3 -0
- package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts +1 -0
- package/node_modules/@playdrop/api-client/dist/domains/assets.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/assets.js +3 -0
- package/node_modules/@playdrop/api-client/dist/domains/payments.d.ts +10 -2
- package/node_modules/@playdrop/api-client/dist/domains/payments.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/payments.js +66 -1
- package/node_modules/@playdrop/api-client/dist/index.d.ts +27 -5
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +73 -2
- package/node_modules/@playdrop/config/client-meta.json +2 -2
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts +18 -0
- package/node_modules/@playdrop/config/dist/src/creator-plans.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/src/creator-plans.js +117 -0
- package/node_modules/@playdrop/config/dist/src/game-arena.d.ts +1 -1
- package/node_modules/@playdrop/config/dist/src/game-arena.js +1 -1
- package/node_modules/@playdrop/config/dist/src/index.d.ts +1 -0
- package/node_modules/@playdrop/config/dist/src/index.d.ts.map +1 -1
- package/node_modules/@playdrop/config/dist/src/index.js +1 -0
- package/node_modules/@playdrop/config/dist/test/creator-plans.test.d.ts +2 -0
- package/node_modules/@playdrop/config/dist/test/creator-plans.test.d.ts.map +1 -0
- package/node_modules/@playdrop/config/dist/test/creator-plans.test.js +28 -0
- package/node_modules/@playdrop/config/dist/test/game-arena.test.js +3 -3
- package/node_modules/@playdrop/config/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/types/dist/api.d.ts +153 -15
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +27 -2
- package/node_modules/@playdrop/types/dist/app-review.d.ts +2 -0
- package/node_modules/@playdrop/types/dist/app-review.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/app-review.js +31 -2
- package/node_modules/@playdrop/types/dist/index.d.ts +2 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +5 -1
- package/node_modules/@playdrop/types/dist/locale.d.ts +5 -0
- package/node_modules/@playdrop/types/dist/locale.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/locale.js +47 -0
- package/node_modules/@playdrop/types/dist/release-smoke.d.ts +3 -0
- package/node_modules/@playdrop/types/dist/release-smoke.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/release-smoke.js +35 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +5 -0
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,11 @@ import type { AppMetadataAssetSpecSupport, AssetSpecListResponse, AssetSpecRespo
|
|
|
6
6
|
import type { AssetCategory, AssetResponse } from './asset.js';
|
|
7
7
|
import type { ContentLicense, ContentPermissions } from './content-license.js';
|
|
8
8
|
import type { InstrumentEvidenceManifest } from './instrument-evidence.js';
|
|
9
|
+
import type { SupportedLocale } from './locale.js';
|
|
9
10
|
import type { TweakValues } from './tweaks.js';
|
|
10
11
|
import type { AppAuthMode, AppControllerMode, AppHostingMode, AppListingMediaItem, AppVersionResponse, AppVersionSummary, AppVersionVisibility, ReviewState } from './version.js';
|
|
12
|
+
export { DEFAULT_LOCALE, SUPPORTED_LOCALES, isSupportedLocale, } from './locale.js';
|
|
13
|
+
export type { SupportedLocale } from './locale.js';
|
|
11
14
|
export declare const ACQUISITION_ATTRIBUTION_TYPES: readonly ["install", "reengagement", "web_visit"];
|
|
12
15
|
export type AcquisitionAttributionType = typeof ACQUISITION_ATTRIBUTION_TYPES[number];
|
|
13
16
|
export declare const ACQUISITION_PLATFORMS: readonly ["ios", "android", "web"];
|
|
@@ -84,6 +87,7 @@ export interface RegisterRequest {
|
|
|
84
87
|
password: string;
|
|
85
88
|
displayName: string;
|
|
86
89
|
inviteCode?: string;
|
|
90
|
+
preferredLocale?: SupportedLocale;
|
|
87
91
|
}
|
|
88
92
|
export interface RegisterResponse {
|
|
89
93
|
accessToken?: string;
|
|
@@ -193,7 +197,7 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
|
|
|
193
197
|
};
|
|
194
198
|
export declare const AGENT_TASK_CREATOR_FEEDBACK_STATUS_VALUES: readonly ["UNSEEN", "VIEWED", "PLAYED", "APPROVED", "DISAPPROVED"];
|
|
195
199
|
export type AgentTaskCreatorFeedbackStatus = typeof AGENT_TASK_CREATOR_FEEDBACK_STATUS_VALUES[number];
|
|
196
|
-
export declare const AGENT_TASK_KIND_VALUES: readonly ["NEW_GAME", "STATIC_GAME", "REMIX_GAME", "GAME_UPDATE", "GAME_REVIEW", "GAME_EVAL"];
|
|
200
|
+
export declare const AGENT_TASK_KIND_VALUES: readonly ["NEW_GAME", "STATIC_GAME", "REMIX_GAME", "GAME_UPDATE", "GAME_REVIEW", "GAME_EVAL", "RELEASE_SMOKE"];
|
|
197
201
|
export type AgentTaskKind = typeof AGENT_TASK_KIND_VALUES[number];
|
|
198
202
|
export declare const AGENT_EXECUTION_TARGET_VALUES: readonly ["FIRST_PARTY", "PERSONAL"];
|
|
199
203
|
export type AgentExecutionTarget = typeof AGENT_EXECUTION_TARGET_VALUES[number];
|
|
@@ -415,6 +419,7 @@ export interface AgentTaskResponse {
|
|
|
415
419
|
appId: number | null;
|
|
416
420
|
appVersionId: number | null;
|
|
417
421
|
costCredits: number;
|
|
422
|
+
fundingSource: CreatorTaskFundingSource;
|
|
418
423
|
freeCloudGenerationTransactionId: number | null;
|
|
419
424
|
usesFreeCloudGeneration: boolean;
|
|
420
425
|
refund: AgentTaskRefundResponse | null;
|
|
@@ -1149,6 +1154,14 @@ export interface WorkerCompleteAgentTaskRequest {
|
|
|
1149
1154
|
platformFeedback?: string;
|
|
1150
1155
|
tokensUsed?: number | null;
|
|
1151
1156
|
}
|
|
1157
|
+
export interface WorkerCompleteReleaseSmokeRequest {
|
|
1158
|
+
workerKey: string;
|
|
1159
|
+
leaseToken: string;
|
|
1160
|
+
appId: number;
|
|
1161
|
+
appVersionId: number;
|
|
1162
|
+
sourceSha256: string;
|
|
1163
|
+
runtimeSha256: string;
|
|
1164
|
+
}
|
|
1152
1165
|
export interface WorkerFailAgentTaskRequest {
|
|
1153
1166
|
taskToken?: string;
|
|
1154
1167
|
workerKey?: string;
|
|
@@ -1196,8 +1209,48 @@ export interface AdminAgentWorkersStatusResponse {
|
|
|
1196
1209
|
oldestQueuedTaskId: number | null;
|
|
1197
1210
|
oldestQueuedAgeMs: number | null;
|
|
1198
1211
|
}
|
|
1199
|
-
export declare const AGENT_TASK_UNAVAILABLE_REASON_VALUES: readonly ["insufficient_credits", "
|
|
1212
|
+
export declare const AGENT_TASK_UNAVAILABLE_REASON_VALUES: readonly ["insufficient_credits", "weekly_generation_limit_reached", "game_count_limit_reached", "storage_limit_reached", "active_task_exists", "active_task_cap_reached", "no_online_worker", "app_not_eligible_for_update", "first_party_requires_playdrop_cloud_origin"];
|
|
1200
1213
|
export type AgentTaskUnavailableReason = typeof AGENT_TASK_UNAVAILABLE_REASON_VALUES[number];
|
|
1214
|
+
export declare const CREATOR_PLAN_TIER_VALUES: readonly ["BASIC", "PLUS", "PRO"];
|
|
1215
|
+
export type CreatorPlanTier = typeof CREATOR_PLAN_TIER_VALUES[number];
|
|
1216
|
+
export type CreatorTaskFundingSource = 'INCLUDED' | 'CREDITS' | 'PERSONAL';
|
|
1217
|
+
export interface CreatorPaidSubscriptionSummary {
|
|
1218
|
+
tier: Exclude<CreatorPlanTier, 'BASIC'>;
|
|
1219
|
+
status: string;
|
|
1220
|
+
currentPeriodStart: string | null;
|
|
1221
|
+
currentPeriodEnd: string | null;
|
|
1222
|
+
cancelAtPeriodEnd: boolean;
|
|
1223
|
+
scheduledTier: Exclude<CreatorPlanTier, 'BASIC'> | null;
|
|
1224
|
+
scheduledChangeAt: string | null;
|
|
1225
|
+
}
|
|
1226
|
+
export interface CreatorPlanGrantSummary {
|
|
1227
|
+
id: number;
|
|
1228
|
+
tier: Exclude<CreatorPlanTier, 'BASIC'>;
|
|
1229
|
+
startsAt: string;
|
|
1230
|
+
endsAt: string;
|
|
1231
|
+
}
|
|
1232
|
+
export interface CreatorUsageState {
|
|
1233
|
+
used: number;
|
|
1234
|
+
limit: number;
|
|
1235
|
+
}
|
|
1236
|
+
export interface CreatorStorageUsageState {
|
|
1237
|
+
usedBytes: number;
|
|
1238
|
+
limitBytes: number;
|
|
1239
|
+
}
|
|
1240
|
+
export interface CreatorWeeklyGenerationState {
|
|
1241
|
+
remaining: number;
|
|
1242
|
+
limit: number;
|
|
1243
|
+
resetsAt: string;
|
|
1244
|
+
}
|
|
1245
|
+
export interface CreatorPlanState {
|
|
1246
|
+
effectiveTier: CreatorPlanTier;
|
|
1247
|
+
paidSubscription: CreatorPaidSubscriptionSummary | null;
|
|
1248
|
+
complimentaryGrant: CreatorPlanGrantSummary | null;
|
|
1249
|
+
weeklyGenerations: CreatorWeeklyGenerationState;
|
|
1250
|
+
games: CreatorUsageState;
|
|
1251
|
+
storage: CreatorStorageUsageState;
|
|
1252
|
+
creditUsageEnabled: boolean;
|
|
1253
|
+
}
|
|
1201
1254
|
export interface AgentTaskTargetAvailability {
|
|
1202
1255
|
target: AgentExecutionTarget;
|
|
1203
1256
|
available: boolean;
|
|
@@ -1205,6 +1258,7 @@ export interface AgentTaskTargetAvailability {
|
|
|
1205
1258
|
priceCredits: number;
|
|
1206
1259
|
effectivePriceCredits: number;
|
|
1207
1260
|
usesFreeCloudGeneration: boolean;
|
|
1261
|
+
fundingSource: CreatorTaskFundingSource;
|
|
1208
1262
|
onlineWorkers: AgentWorkerResponse[];
|
|
1209
1263
|
agentModels: AgentTaskAgentModelOption[];
|
|
1210
1264
|
defaultAgentModel: AgentTaskAgentModelSelection;
|
|
@@ -1214,10 +1268,9 @@ export interface AgentTaskAvailabilityResponse {
|
|
|
1214
1268
|
kind: AgentTaskKind;
|
|
1215
1269
|
creditBalance: number;
|
|
1216
1270
|
freeCloudGenerationBalance: number;
|
|
1271
|
+
creatorPlan: CreatorPlanState;
|
|
1217
1272
|
activeTaskCount: number;
|
|
1218
1273
|
activeTaskCap: number;
|
|
1219
|
-
dailyTaskCount: number;
|
|
1220
|
-
dailyTaskCap: number;
|
|
1221
1274
|
targets: AgentTaskTargetAvailability[];
|
|
1222
1275
|
appOrigin?: AppOrigin | null;
|
|
1223
1276
|
pendingOutputVersion?: string | null;
|
|
@@ -1297,7 +1350,7 @@ export interface CreatorGameShareResponse {
|
|
|
1297
1350
|
}
|
|
1298
1351
|
export interface CreatorGameCreatorFeedbackStatusRequest {
|
|
1299
1352
|
appVersionId: number;
|
|
1300
|
-
creatorFeedbackStatus: Extract<AgentTaskCreatorFeedbackStatus, 'PLAYED' | 'APPROVED' | 'DISAPPROVED'>;
|
|
1353
|
+
creatorFeedbackStatus: Extract<AgentTaskCreatorFeedbackStatus, 'VIEWED' | 'PLAYED' | 'APPROVED' | 'DISAPPROVED'>;
|
|
1301
1354
|
comment?: string;
|
|
1302
1355
|
}
|
|
1303
1356
|
export interface CreatorGameCreatorFeedbackStatusResponse {
|
|
@@ -1305,6 +1358,11 @@ export interface CreatorGameCreatorFeedbackStatusResponse {
|
|
|
1305
1358
|
creatorFeedbackStatus: AgentTaskCreatorFeedbackStatus;
|
|
1306
1359
|
draftPlayed: boolean;
|
|
1307
1360
|
}
|
|
1361
|
+
export interface CreationGameVersionSummary {
|
|
1362
|
+
versionId: number;
|
|
1363
|
+
semver: string;
|
|
1364
|
+
availability: string;
|
|
1365
|
+
}
|
|
1308
1366
|
export interface CreationGameListItem {
|
|
1309
1367
|
gameRef: string;
|
|
1310
1368
|
appName?: string;
|
|
@@ -1325,13 +1383,40 @@ export interface CreationGameListItem {
|
|
|
1325
1383
|
message: string;
|
|
1326
1384
|
startedAt: string;
|
|
1327
1385
|
};
|
|
1328
|
-
latestVersion?:
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
};
|
|
1386
|
+
latestVersion?: CreationGameVersionSummary;
|
|
1387
|
+
liveVersion?: CreationGameVersionSummary;
|
|
1388
|
+
draftVersion?: CreationGameVersionSummary;
|
|
1389
|
+
creatorFeedbackStatus?: AgentTaskCreatorFeedbackStatus | null;
|
|
1333
1390
|
updatedAt: string;
|
|
1334
1391
|
}
|
|
1392
|
+
export declare const APP_LISTING_DRAFT_MEDIA_SLOT_VALUES: readonly ["icon", "heroPortrait", "heroLandscape", "socialLandscape", "screenshotPortrait", "screenshotLandscape", "videoPortrait", "videoLandscape"];
|
|
1393
|
+
export type AppListingDraftMediaSlot = typeof APP_LISTING_DRAFT_MEDIA_SLOT_VALUES[number];
|
|
1394
|
+
export interface AppListingDraftResponse {
|
|
1395
|
+
appId: number;
|
|
1396
|
+
appName: string;
|
|
1397
|
+
displayName: string;
|
|
1398
|
+
subtitle?: string | null;
|
|
1399
|
+
description?: string | null;
|
|
1400
|
+
iconUrl?: string | null;
|
|
1401
|
+
heroPortraitUrl?: string | null;
|
|
1402
|
+
heroLandscapeUrl?: string | null;
|
|
1403
|
+
socialLandscapeUrl?: string | null;
|
|
1404
|
+
screenshotPortraitUrls: string[];
|
|
1405
|
+
screenshotLandscapeUrls: string[];
|
|
1406
|
+
videoPortraitUrls: string[];
|
|
1407
|
+
videoLandscapeUrls: string[];
|
|
1408
|
+
listingMedia: AppListingMediaItem[];
|
|
1409
|
+
updatedAt: string;
|
|
1410
|
+
}
|
|
1411
|
+
export interface UpdateAppListingDraftRequest {
|
|
1412
|
+
displayName?: string;
|
|
1413
|
+
subtitle?: string | null;
|
|
1414
|
+
description?: string | null;
|
|
1415
|
+
}
|
|
1416
|
+
export interface PublishAppListingDraftResponse {
|
|
1417
|
+
success: true;
|
|
1418
|
+
app: AppResponse;
|
|
1419
|
+
}
|
|
1335
1420
|
export interface CreationGamesResponse {
|
|
1336
1421
|
items: CreationGameListItem[];
|
|
1337
1422
|
now: string;
|
|
@@ -1486,6 +1571,8 @@ export interface AppResponse {
|
|
|
1486
1571
|
controllerMode?: AppControllerMode;
|
|
1487
1572
|
/** Whether the current hosted version can boot as a non-interactive detail-page preview */
|
|
1488
1573
|
previewable?: boolean;
|
|
1574
|
+
/** Whether the current hosted version exposes an owner-only creator Editor. */
|
|
1575
|
+
editorSupported?: boolean;
|
|
1489
1576
|
/** Visibility of current version */
|
|
1490
1577
|
visibility?: AppVersionVisibility;
|
|
1491
1578
|
/** Review state of current version */
|
|
@@ -1751,6 +1838,7 @@ export declare const PAID_ACQUISITION_MAX_RANGE_DAYS = 30;
|
|
|
1751
1838
|
export interface AdminPaidAcquisitionAnalyticsRequest {
|
|
1752
1839
|
fromDate: string;
|
|
1753
1840
|
toDate: string;
|
|
1841
|
+
refreshProviders?: boolean;
|
|
1754
1842
|
}
|
|
1755
1843
|
export type PaidAcquisitionSource = 'PLAYDROP' | 'GOOGLE_ADS' | 'APPLOVIN' | 'SINGULAR';
|
|
1756
1844
|
export type PaidAcquisitionSourceStatus = 'ready' | 'unconfigured' | 'error';
|
|
@@ -1772,12 +1860,13 @@ export interface PaidAcquisitionCreatorCampaign {
|
|
|
1772
1860
|
published: number;
|
|
1773
1861
|
}
|
|
1774
1862
|
export interface PaidAcquisitionPlayerCampaign {
|
|
1775
|
-
provider: 'APPLOVIN';
|
|
1863
|
+
provider: 'GOOGLE_ADS' | 'APPLOVIN';
|
|
1776
1864
|
providerCampaignId: string;
|
|
1777
1865
|
campaignName: string;
|
|
1778
1866
|
gameName: string | null;
|
|
1779
|
-
surface: 'IOS';
|
|
1867
|
+
surface: 'IOS' | 'UNKNOWN';
|
|
1780
1868
|
spendCents: number | null;
|
|
1869
|
+
clicks: number | null;
|
|
1781
1870
|
installs: number | null;
|
|
1782
1871
|
engaged: number | null;
|
|
1783
1872
|
registered: number | null;
|
|
@@ -1872,7 +1961,10 @@ export interface MeUser extends PublicUser {
|
|
|
1872
1961
|
unreadNotificationsCount: number;
|
|
1873
1962
|
unclaimedFreeCreditCount: number;
|
|
1874
1963
|
creatorQuota?: CreatorQuotaResponse | null;
|
|
1964
|
+
creatorPlan?: CreatorPlanState | null;
|
|
1875
1965
|
preferredAiAgent: 'CODEX' | 'CLAUDE_CODE' | 'OTHER' | null;
|
|
1966
|
+
preferredLocale: SupportedLocale;
|
|
1967
|
+
preferredLocaleAutoDetect: boolean;
|
|
1876
1968
|
}
|
|
1877
1969
|
export interface InviteUserSummary {
|
|
1878
1970
|
id: number;
|
|
@@ -1915,6 +2007,14 @@ export interface UpdateProfileRequest {
|
|
|
1915
2007
|
export interface UpdateProfileResponse {
|
|
1916
2008
|
user: MeUser;
|
|
1917
2009
|
}
|
|
2010
|
+
export interface UpdatePreferredLocaleRequest {
|
|
2011
|
+
preferredLocale: SupportedLocale;
|
|
2012
|
+
autoDetect: boolean;
|
|
2013
|
+
}
|
|
2014
|
+
export interface UpdatePreferredLocaleResponse {
|
|
2015
|
+
preferredLocale: SupportedLocale;
|
|
2016
|
+
autoDetect: boolean;
|
|
2017
|
+
}
|
|
1918
2018
|
export interface ChangePasswordRequest {
|
|
1919
2019
|
currentPassword?: string;
|
|
1920
2020
|
newPassword: string;
|
|
@@ -2091,6 +2191,7 @@ export interface CompleteGoogleSignupRequest {
|
|
|
2091
2191
|
username: string;
|
|
2092
2192
|
displayName: string;
|
|
2093
2193
|
selectedProfileAssetRef: string;
|
|
2194
|
+
preferredLocale?: SupportedLocale;
|
|
2094
2195
|
}
|
|
2095
2196
|
export interface CompleteGoogleSignupResponse {
|
|
2096
2197
|
accessToken?: string;
|
|
@@ -2110,6 +2211,7 @@ export interface CompleteXSignupRequest {
|
|
|
2110
2211
|
username: string;
|
|
2111
2212
|
displayName: string;
|
|
2112
2213
|
selectedProfileAssetRef: string;
|
|
2214
|
+
preferredLocale?: SupportedLocale;
|
|
2113
2215
|
}
|
|
2114
2216
|
export interface CompleteXSignupResponse {
|
|
2115
2217
|
accessToken?: string;
|
|
@@ -2150,6 +2252,7 @@ export interface CompleteAppleSignupRequest {
|
|
|
2150
2252
|
username: string;
|
|
2151
2253
|
displayName: string;
|
|
2152
2254
|
selectedProfileAssetRef: string;
|
|
2255
|
+
preferredLocale?: SupportedLocale;
|
|
2153
2256
|
}
|
|
2154
2257
|
export interface CompleteAppleSignupResponse {
|
|
2155
2258
|
accessToken?: string;
|
|
@@ -2628,6 +2731,7 @@ export interface AppBrowseRequest {
|
|
|
2628
2731
|
}
|
|
2629
2732
|
export interface CreatorAppsBrowseRequest extends AppBrowseRequest {
|
|
2630
2733
|
type?: AppType;
|
|
2734
|
+
publicOnly?: boolean;
|
|
2631
2735
|
}
|
|
2632
2736
|
export interface SearchSuggestRequest {
|
|
2633
2737
|
q: string;
|
|
@@ -2939,7 +3043,7 @@ export interface DeleteContentCommentResponse {
|
|
|
2939
3043
|
export interface CreatorFollowMutationResponse {
|
|
2940
3044
|
following: boolean;
|
|
2941
3045
|
}
|
|
2942
|
-
export declare const FREE_CREDIT_OBJECTIVE_VALUES: readonly ["WELCOME", "PLAY_GAME", "FOLLOW_CREATOR", "INVITED", "SHARE_CODE", "ENABLE_PUSH", "CREATE_SONG", "CREATE_IMAGE", "CREATE_3D", "CLI_LOGIN", "CREATE_GAME", "CREATE_GAME_UPDATE", "CREATE_GAME_REMIX", "PUBLISH_GAME", "SHARE_GAME", "BOOST_GAME"];
|
|
3046
|
+
export declare const FREE_CREDIT_OBJECTIVE_VALUES: readonly ["WELCOME", "PLAY_GAME", "PLAY_ON_MOBILE", "FOLLOW_CREATOR", "INVITED", "SHARE_CODE", "ENABLE_PUSH", "CREATE_SONG", "CREATE_IMAGE", "CREATE_3D", "CLI_LOGIN", "CREATE_GAME", "CREATE_GAME_UPDATE", "CREATE_GAME_REMIX", "PUBLISH_GAME", "SHARE_GAME", "BOOST_GAME"];
|
|
2943
3047
|
export type FreeCreditObjectiveKey = typeof FREE_CREDIT_OBJECTIVE_VALUES[number];
|
|
2944
3048
|
export declare const FREE_CREDIT_REWARD_STATUS_VALUES: readonly ["INCOMPLETE", "CLAIMABLE", "CLAIMED"];
|
|
2945
3049
|
export type FreeCreditRewardStatus = typeof FREE_CREDIT_REWARD_STATUS_VALUES[number];
|
|
@@ -2954,6 +3058,8 @@ export interface FreeCreditObjectiveSummary {
|
|
|
2954
3058
|
claimedCount: number;
|
|
2955
3059
|
status: FreeCreditRewardStatus;
|
|
2956
3060
|
nextClaimRewardId: number | null;
|
|
3061
|
+
lastCompletedAt: string | null;
|
|
3062
|
+
lastClaimedAt: string | null;
|
|
2957
3063
|
}
|
|
2958
3064
|
export interface FreeCreditsResponse {
|
|
2959
3065
|
items: FreeCreditObjectiveSummary[];
|
|
@@ -3355,7 +3461,6 @@ export interface UpdateAdminUserRequest {
|
|
|
3355
3461
|
role?: 'CREATOR' | 'ADMIN';
|
|
3356
3462
|
displayName?: string;
|
|
3357
3463
|
creditDelta?: number;
|
|
3358
|
-
freeCloudGenerationDelta?: number;
|
|
3359
3464
|
bio?: string | null;
|
|
3360
3465
|
youtubeUsername?: string | null;
|
|
3361
3466
|
githubUsername?: string | null;
|
|
@@ -3365,6 +3470,37 @@ export interface UpdateAdminUserRequest {
|
|
|
3365
3470
|
xUsername?: string | null;
|
|
3366
3471
|
xProfileImageUrl?: string | null;
|
|
3367
3472
|
}
|
|
3473
|
+
export interface UpdateCreatorPlanCreditUsageRequest {
|
|
3474
|
+
enabled: boolean;
|
|
3475
|
+
}
|
|
3476
|
+
export interface CreatorPlanCheckoutSessionResponse {
|
|
3477
|
+
sessionId: string;
|
|
3478
|
+
url: string;
|
|
3479
|
+
}
|
|
3480
|
+
export interface CreatorPlanCheckoutSessionStatusResponse {
|
|
3481
|
+
sessionId: string;
|
|
3482
|
+
status: 'open' | 'complete' | 'expired';
|
|
3483
|
+
paymentStatus: string | null;
|
|
3484
|
+
creatorPlan: CreatorPlanState;
|
|
3485
|
+
}
|
|
3486
|
+
export interface CreatorPlanPortalSessionResponse {
|
|
3487
|
+
url: string;
|
|
3488
|
+
}
|
|
3489
|
+
export interface AdminCreatorSubscriptionRecord {
|
|
3490
|
+
user: Pick<AdminUserDetail, 'id' | 'username' | 'displayName'>;
|
|
3491
|
+
creatorPlan: CreatorPlanState;
|
|
3492
|
+
}
|
|
3493
|
+
export interface AdminCreatorSubscriptionsResponse {
|
|
3494
|
+
subscriptions: AdminCreatorSubscriptionRecord[];
|
|
3495
|
+
}
|
|
3496
|
+
export interface CreateCreatorPlanGrantRequest {
|
|
3497
|
+
tier: Exclude<CreatorPlanTier, 'BASIC'>;
|
|
3498
|
+
startsAt?: string;
|
|
3499
|
+
endsAt: string;
|
|
3500
|
+
}
|
|
3501
|
+
export interface CreatorPlanGrantMutationResponse {
|
|
3502
|
+
creatorPlan: CreatorPlanState;
|
|
3503
|
+
}
|
|
3368
3504
|
export interface DeleteAdminUserResponse {
|
|
3369
3505
|
success: boolean;
|
|
3370
3506
|
}
|
|
@@ -3798,6 +3934,9 @@ export type PurchaseRequest = AssetPurchaseRequest;
|
|
|
3798
3934
|
export interface CreditPackCheckoutSessionRequest {
|
|
3799
3935
|
nextPath?: string;
|
|
3800
3936
|
}
|
|
3937
|
+
export interface CreatorPlanSessionRequest {
|
|
3938
|
+
nextPath?: string;
|
|
3939
|
+
}
|
|
3801
3940
|
export interface CreditPackCheckoutSessionResponse {
|
|
3802
3941
|
checkoutSessionId: string;
|
|
3803
3942
|
checkoutUrl: string;
|
|
@@ -3924,5 +4063,4 @@ export declare class ApiError extends Error {
|
|
|
3924
4063
|
details: Record<string, unknown> | null;
|
|
3925
4064
|
constructor(message: string, status: number, code?: string, details?: Record<string, unknown> | null);
|
|
3926
4065
|
}
|
|
3927
|
-
export {};
|
|
3928
4066
|
//# sourceMappingURL=api.d.ts.map
|