@playdrop/playdrop-cli 0.18.9 → 0.19.0

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.
Files changed (66) hide show
  1. package/README.md +27 -0
  2. package/config/client-meta.json +2 -2
  3. package/dist/apps/upload.d.ts +2 -0
  4. package/dist/apps/upload.js +133 -60
  5. package/dist/catalogue.d.ts +18 -0
  6. package/dist/catalogue.js +171 -56
  7. package/dist/commands/devServer.js +3 -0
  8. package/dist/commands/validate.js +1 -0
  9. package/dist/commands/worker/game-source-git.js +7 -0
  10. package/dist/commands/worker/generation.d.ts +16 -1
  11. package/dist/commands/worker/generation.js +8 -2
  12. package/dist/commands/worker/ugc-processing.d.ts +13 -0
  13. package/dist/commands/worker/ugc-processing.js +146 -0
  14. package/dist/commands/worker.js +86 -20
  15. package/dist/proxyFetch.d.ts +5 -0
  16. package/dist/proxyFetch.js +10 -35
  17. package/dist/uploadDispatchers.d.ts +3 -0
  18. package/dist/uploadDispatchers.js +10 -0
  19. package/node_modules/@playdrop/api-client/dist/acquisition.d.ts +3 -1
  20. package/node_modules/@playdrop/api-client/dist/acquisition.d.ts.map +1 -1
  21. package/node_modules/@playdrop/api-client/dist/acquisition.js +2 -2
  22. package/node_modules/@playdrop/api-client/dist/chat.d.ts +13 -4
  23. package/node_modules/@playdrop/api-client/dist/chat.d.ts.map +1 -1
  24. package/node_modules/@playdrop/api-client/dist/client.d.ts +31 -10
  25. package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
  26. package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
  27. package/node_modules/@playdrop/api-client/dist/core/request.js +11 -1
  28. package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +30 -9
  29. package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
  30. package/node_modules/@playdrop/api-client/dist/domains/chat.js +24 -19
  31. package/node_modules/@playdrop/api-client/dist/domains/comments.d.ts +3 -1
  32. package/node_modules/@playdrop/api-client/dist/domains/comments.d.ts.map +1 -1
  33. package/node_modules/@playdrop/api-client/dist/domains/comments.js +2 -2
  34. package/node_modules/@playdrop/api-client/dist/index.d.ts +17 -6
  35. package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
  36. package/node_modules/@playdrop/api-client/dist/index.js +12 -10
  37. package/node_modules/@playdrop/api-client/dist/runtime.d.ts +3 -0
  38. package/node_modules/@playdrop/api-client/dist/runtime.d.ts.map +1 -1
  39. package/node_modules/@playdrop/api-client/dist/runtime.js +10 -1
  40. package/node_modules/@playdrop/config/client-meta.json +2 -2
  41. package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts +8 -0
  42. package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts.map +1 -1
  43. package/node_modules/@playdrop/game-source-git/dist/src/repository.js +30 -17
  44. package/node_modules/@playdrop/game-source-git/dist/test/core.test.js +10 -0
  45. package/node_modules/@playdrop/game-source-git/dist/tsconfig.tsbuildinfo +1 -1
  46. package/node_modules/@playdrop/game-source-git/package.json +2 -1
  47. package/node_modules/@playdrop/types/dist/api.d.ts +30 -3
  48. package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
  49. package/node_modules/@playdrop/types/dist/api.js +1 -0
  50. package/node_modules/@playdrop/types/dist/app-listing-localization.d.ts +34 -0
  51. package/node_modules/@playdrop/types/dist/app-listing-localization.d.ts.map +1 -0
  52. package/node_modules/@playdrop/types/dist/app-listing-localization.js +146 -0
  53. package/node_modules/@playdrop/types/dist/chat.d.ts +7 -2
  54. package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
  55. package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
  56. package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
  57. package/node_modules/@playdrop/types/dist/index.js +6 -0
  58. package/node_modules/@playdrop/types/dist/ugc-processing.d.ts +211 -0
  59. package/node_modules/@playdrop/types/dist/ugc-processing.d.ts.map +1 -0
  60. package/node_modules/@playdrop/types/dist/ugc-processing.js +144 -0
  61. package/node_modules/@playdrop/types/dist/ugc.d.ts +39 -0
  62. package/node_modules/@playdrop/types/dist/ugc.d.ts.map +1 -0
  63. package/node_modules/@playdrop/types/dist/ugc.js +70 -0
  64. package/node_modules/@playdrop/types/dist/version.d.ts +4 -0
  65. package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
  66. package/package.json +3 -2
@@ -19,7 +19,8 @@
19
19
  "clean": "rm -rf dist"
20
20
  },
21
21
  "dependencies": {
22
- "jszip": "^3.10.1"
22
+ "jszip": "^3.10.1",
23
+ "@playdrop/types": "*"
23
24
  },
24
25
  "devDependencies": {
25
26
  "@types/node": "^20.10.0",
@@ -1,3 +1,4 @@
1
+ import type { AppListingLocalization, AppListingContent } from "./app-listing-localization.js";
1
2
  import type { AppAuthFilter, AppControllerFilter, AppSurfaceFilter } from "./app-capability-filters.js";
2
3
  import type { AppOrigin, AppSurface, AppType } from "./app.js";
3
4
  import type { AppPlaytestTapes } from "./app-playtest-tape.js";
@@ -7,6 +8,7 @@ import type { AssetCategory, AssetResponse } from "./asset.js";
7
8
  import type { ContentLicense, ContentPermissions } from "./content-license.js";
8
9
  import type { InstrumentEvidenceManifest } from "./instrument-evidence.js";
9
10
  import type { SupportedLocale } from "./locale.js";
11
+ import type { UgcPresentation } from "./ugc.js";
10
12
  import type { SocialFriend } from "./social.js";
11
13
  import type { TweakValues } from "./tweaks.js";
12
14
  import type { AppAuthMode, AppCreationMetadata, AppControllerMode, AppHostingMode, AppListingMediaItem, AppPlayersConfig, AppVersionDesign, AppVersionResponse, AppVersionSummary, AppVersionVisibility, ReviewState } from "./version.js";
@@ -204,7 +206,7 @@ export type JsonValue = null | boolean | number | string | JsonValue[] | {
204
206
  };
205
207
  export declare const AGENT_TASK_CREATOR_FEEDBACK_STATUS_VALUES: readonly ["UNSEEN", "VIEWED", "PLAYED", "APPROVED", "DISAPPROVED"];
206
208
  export type AgentTaskCreatorFeedbackStatus = (typeof AGENT_TASK_CREATOR_FEEDBACK_STATUS_VALUES)[number];
207
- export declare const AGENT_TASK_KIND_VALUES: readonly ["NEW_GAME", "STATIC_GAME", "REMIX_GAME", "GAME_UPDATE", "GAME_REVIEW", "GAME_EVAL", "RELEASE_SMOKE", "TEXT", "JSON", "IMAGE", "MODEL_3D", "VIDEO", "SFX", "SPEECH", "MUSIC"];
209
+ export declare const AGENT_TASK_KIND_VALUES: readonly ["UGC_PROCESSING", "NEW_GAME", "STATIC_GAME", "REMIX_GAME", "GAME_UPDATE", "GAME_REVIEW", "GAME_EVAL", "RELEASE_SMOKE", "TEXT", "JSON", "IMAGE", "MODEL_3D", "VIDEO", "SFX", "SPEECH", "MUSIC"];
208
210
  export type AgentTaskKind = (typeof AGENT_TASK_KIND_VALUES)[number];
209
211
  export declare const AGENT_TASK_GENERATION_KIND_VALUES: readonly ["TEXT", "JSON", "IMAGE", "MODEL_3D", "VIDEO", "SFX", "SPEECH", "MUSIC"];
210
212
  export type AgentTaskGenerationKind = (typeof AGENT_TASK_GENERATION_KIND_VALUES)[number];
@@ -492,6 +494,7 @@ export interface AgentWorkerCapabilities {
492
494
  degradedReasons?: string[];
493
495
  wrapperContractVersion?: number;
494
496
  gameSourceGit?: 1;
497
+ localizedListings?: 1;
495
498
  gameSource?: {
496
499
  cachedRepositories: Array<{
497
500
  appId: number;
@@ -1151,7 +1154,7 @@ export interface WorkerGenerationTaskAssignmentV5 {
1151
1154
  sha256: string;
1152
1155
  }>;
1153
1156
  }
1154
- export type WorkerTaskAssignmentV5 = WorkerGameTaskAssignmentV5 | WorkerScreeningTaskAssignmentV5 | WorkerGenerationTaskAssignmentV5;
1157
+ export type WorkerTaskAssignmentV5 = import("./ugc-processing.js").WorkerUgcTaskAssignmentV5 | WorkerGameTaskAssignmentV5 | WorkerScreeningTaskAssignmentV5 | WorkerGenerationTaskAssignmentV5;
1155
1158
  export interface WorkerGameSourceVersionRefV1 {
1156
1159
  versionId: number;
1157
1160
  major: number;
@@ -1167,6 +1170,13 @@ export interface WorkerGameSourceTranscriptV1 {
1167
1170
  bytes: number;
1168
1171
  }
1169
1172
  export interface WorkerGameSourceListingSyncV1 {
1173
+ sourceLocale?: string | null;
1174
+ listingSourceHash?: string | null;
1175
+ listingMedia?: AppListingContent["listingMedia"];
1176
+ listingLocalizations?: AppListingLocalization[];
1177
+ controls?: string | null;
1178
+ makingOf?: string | null;
1179
+ releaseNotes?: string | null;
1170
1180
  versionId: number;
1171
1181
  version: string;
1172
1182
  displayName: string | null;
@@ -2015,6 +2025,12 @@ export interface CreationGameListItem {
2015
2025
  export declare const APP_LISTING_DRAFT_MEDIA_SLOT_VALUES: readonly ["icon", "heroPortrait", "heroLandscape", "socialLandscape", "screenshotPortrait", "screenshotLandscape", "videoPortrait", "videoLandscape"];
2016
2026
  export type AppListingDraftMediaSlot = (typeof APP_LISTING_DRAFT_MEDIA_SLOT_VALUES)[number];
2017
2027
  export interface AppListingDraftResponse {
2028
+ sourceLocale?: string | null;
2029
+ listingSourceHash?: string | null;
2030
+ listingLocalizations?: Array<AppListingLocalization & {
2031
+ stale: boolean;
2032
+ stagedMedia?: Record<string, unknown>;
2033
+ }>;
2018
2034
  appId: number;
2019
2035
  appName: string;
2020
2036
  displayName: string;
@@ -2032,6 +2048,8 @@ export interface AppListingDraftResponse {
2032
2048
  updatedAt: string;
2033
2049
  }
2034
2050
  export interface UpdateAppListingDraftRequest {
2051
+ sourceLocale?: string | null;
2052
+ listingLocalizations?: AppListingLocalization[];
2035
2053
  displayName?: string;
2036
2054
  subtitle?: string | null;
2037
2055
  description?: string | null;
@@ -2194,6 +2212,11 @@ export interface TagGroupWithTagsSummary extends TagGroupSummary {
2194
2212
  export declare const APP_PUBLICATION_KIND_VALUES: readonly ["CLOUD", "UPLOAD", "EXTERNAL"];
2195
2213
  export type AppPublicationKind = (typeof APP_PUBLICATION_KIND_VALUES)[number];
2196
2214
  export interface AppResponse {
2215
+ listingImageBaseUrl?: string | null;
2216
+ sourceLocale?: string | null;
2217
+ displayedLocale?: string | null;
2218
+ listingSourceHash?: string | null;
2219
+ availableListingLocales?: string[];
2197
2220
  id?: number;
2198
2221
  name: string;
2199
2222
  displayName: string;
@@ -2287,6 +2310,10 @@ export interface AppResponse {
2287
2310
  * context. Detail-page metadata belongs on AppResponse instead.
2288
2311
  */
2289
2312
  export interface HomeAppCardSummary {
2313
+ currentVersionId?: number | null;
2314
+ sourceLocale?: string | null;
2315
+ displayedLocale?: string | null;
2316
+ listingImageBaseUrl?: string | null;
2290
2317
  id: number;
2291
2318
  name: string;
2292
2319
  displayName: string;
@@ -3748,7 +3775,7 @@ export interface ContentCommentAuthor {
3748
3775
  xProfileImageUrl?: string | null;
3749
3776
  googleProfileImageUrl?: string | null;
3750
3777
  }
3751
- export interface ContentCommentNode {
3778
+ export interface ContentCommentNode extends UgcPresentation {
3752
3779
  id: number;
3753
3780
  kind: SavedItemKind;
3754
3781
  parentCommentId: number | null;