@playdrop/playdrop-cli 0.18.8 → 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.
- package/README.md +27 -0
- package/config/client-meta.json +2 -2
- package/dist/apps/upload.d.ts +2 -0
- package/dist/apps/upload.js +146 -60
- package/dist/catalogue.d.ts +18 -0
- package/dist/catalogue.js +171 -56
- package/dist/commands/devServer.js +3 -0
- package/dist/commands/validate.js +1 -0
- package/dist/commands/worker/game-source-git.js +7 -0
- package/dist/commands/worker/generation.d.ts +16 -1
- package/dist/commands/worker/generation.js +8 -2
- package/dist/commands/worker/ugc-processing.d.ts +13 -0
- package/dist/commands/worker/ugc-processing.js +146 -0
- package/dist/commands/worker.d.ts +27 -0
- package/dist/commands/worker.js +127 -38
- package/dist/proxyFetch.d.ts +5 -0
- package/dist/proxyFetch.js +10 -35
- package/dist/uploadDispatchers.d.ts +3 -0
- package/dist/uploadDispatchers.js +10 -0
- package/node_modules/@playdrop/api-client/dist/acquisition.d.ts +3 -1
- package/node_modules/@playdrop/api-client/dist/acquisition.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/acquisition.js +2 -2
- package/node_modules/@playdrop/api-client/dist/chat.d.ts +13 -4
- package/node_modules/@playdrop/api-client/dist/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/client.d.ts +31 -10
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/core/request.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/core/request.js +11 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts +30 -9
- package/node_modules/@playdrop/api-client/dist/domains/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/chat.js +24 -19
- package/node_modules/@playdrop/api-client/dist/domains/comments.d.ts +3 -1
- package/node_modules/@playdrop/api-client/dist/domains/comments.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/comments.js +2 -2
- package/node_modules/@playdrop/api-client/dist/index.d.ts +17 -6
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +12 -10
- package/node_modules/@playdrop/api-client/dist/runtime.d.ts +3 -0
- package/node_modules/@playdrop/api-client/dist/runtime.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/runtime.js +10 -1
- package/node_modules/@playdrop/config/client-meta.json +2 -2
- package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts +8 -0
- package/node_modules/@playdrop/game-source-git/dist/src/repository.d.ts.map +1 -1
- package/node_modules/@playdrop/game-source-git/dist/src/repository.js +30 -17
- package/node_modules/@playdrop/game-source-git/dist/test/core.test.js +10 -0
- package/node_modules/@playdrop/game-source-git/dist/tsconfig.tsbuildinfo +1 -1
- package/node_modules/@playdrop/game-source-git/package.json +2 -1
- package/node_modules/@playdrop/types/dist/agent-task-terminal.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/agent-task-terminal.js +1 -1
- package/node_modules/@playdrop/types/dist/api.d.ts +30 -3
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +1 -0
- package/node_modules/@playdrop/types/dist/app-listing-localization.d.ts +34 -0
- package/node_modules/@playdrop/types/dist/app-listing-localization.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/app-listing-localization.js +146 -0
- package/node_modules/@playdrop/types/dist/chat.d.ts +7 -2
- package/node_modules/@playdrop/types/dist/chat.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.d.ts +3 -0
- package/node_modules/@playdrop/types/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/index.js +6 -0
- package/node_modules/@playdrop/types/dist/ugc-processing.d.ts +211 -0
- package/node_modules/@playdrop/types/dist/ugc-processing.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/ugc-processing.js +144 -0
- package/node_modules/@playdrop/types/dist/ugc.d.ts +39 -0
- package/node_modules/@playdrop/types/dist/ugc.d.ts.map +1 -0
- package/node_modules/@playdrop/types/dist/ugc.js +70 -0
- package/node_modules/@playdrop/types/dist/version.d.ts +4 -0
- package/node_modules/@playdrop/types/dist/version.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type SupportedLocale } from "./locale.js";
|
|
2
|
+
import type { AppListingMediaMetadata } from "./version.js";
|
|
3
|
+
export interface AppListingContent {
|
|
4
|
+
displayName: string;
|
|
5
|
+
subtitle: string | null;
|
|
6
|
+
description: string | null;
|
|
7
|
+
controls: string | null;
|
|
8
|
+
makingOf: string | null;
|
|
9
|
+
releaseNotes: string | null;
|
|
10
|
+
iconPath: string | null;
|
|
11
|
+
heroPortraitPath: string | null;
|
|
12
|
+
heroLandscapePath: string | null;
|
|
13
|
+
socialLandscapePath: string | null;
|
|
14
|
+
screenshotsPortrait: string[];
|
|
15
|
+
screenshotsLandscape: string[];
|
|
16
|
+
videosPortrait: string[];
|
|
17
|
+
videosLandscape: string[];
|
|
18
|
+
listingMedia: AppListingMediaMetadata[];
|
|
19
|
+
}
|
|
20
|
+
export interface AppListingLocalization extends AppListingContent {
|
|
21
|
+
locale: SupportedLocale;
|
|
22
|
+
sourceHash: string;
|
|
23
|
+
}
|
|
24
|
+
export declare const APP_LISTING_TEXT_FIELDS: readonly ["subtitle", "description", "controls", "makingOf", "releaseNotes"];
|
|
25
|
+
export declare const APP_LISTING_PATH_FIELDS: readonly ["iconPath", "heroPortraitPath", "heroLandscapePath", "socialLandscapePath"];
|
|
26
|
+
export declare const APP_LISTING_ARRAY_FIELDS: readonly ["screenshotsPortrait", "screenshotsLandscape", "videosPortrait", "videosLandscape"];
|
|
27
|
+
/** Source languages may be outside the UI locale set; supported languages use their UI identity. */
|
|
28
|
+
export declare function normalizeAppListingSourceLocale(value: unknown): string | null;
|
|
29
|
+
/** Localizations are complete snapshots. Missing optional fields mean intentionally absent. */
|
|
30
|
+
export declare function normalizeAppListingContent(value: unknown): AppListingContent;
|
|
31
|
+
export declare function normalizeAppListingLocalizations(value: unknown, sourceLocale: unknown): AppListingLocalization[];
|
|
32
|
+
/** Hash this canonical string using SHA-256. Storage paths and game versions are intentionally excluded. */
|
|
33
|
+
export declare function canonicalAppListingSource(value: AppListingContent, sourceLocale: string | null, mediaHashByPath: ReadonlyMap<string, string>): string;
|
|
34
|
+
//# sourceMappingURL=app-listing-localization.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-listing-localization.d.ts","sourceRoot":"","sources":["../src/app-listing-localization.ts"],"names":[],"mappings":"AACA,OAAO,EAAwC,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AACzF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AAE5D,MAAM,WAAW,iBAAiB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,GAAG,IAAI,CAAC;IACnC,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,YAAY,EAAE,uBAAuB,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,sBAAuB,SAAQ,iBAAiB;IAC/D,MAAM,EAAE,eAAe,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,uBAAuB,8EAA+E,CAAC;AACpH,eAAO,MAAM,uBAAuB,uFAAwF,CAAC;AAC7H,eAAO,MAAM,wBAAwB,+FAAgG,CAAC;AAEtI,oGAAoG;AACpG,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAU7E;AAED,+FAA+F;AAC/F,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAwC5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,OAAO,GAAG,sBAAsB,EAAE,CAahH;AAED,4GAA4G;AAC5G,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,EAAE,eAAe,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAarJ"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var app_listing_localization_exports = {};
|
|
19
|
+
__export(app_listing_localization_exports, {
|
|
20
|
+
APP_LISTING_ARRAY_FIELDS: () => APP_LISTING_ARRAY_FIELDS,
|
|
21
|
+
APP_LISTING_PATH_FIELDS: () => APP_LISTING_PATH_FIELDS,
|
|
22
|
+
APP_LISTING_TEXT_FIELDS: () => APP_LISTING_TEXT_FIELDS,
|
|
23
|
+
canonicalAppListingSource: () => canonicalAppListingSource,
|
|
24
|
+
normalizeAppListingContent: () => normalizeAppListingContent,
|
|
25
|
+
normalizeAppListingLocalizations: () => normalizeAppListingLocalizations,
|
|
26
|
+
normalizeAppListingSourceLocale: () => normalizeAppListingSourceLocale
|
|
27
|
+
});
|
|
28
|
+
module.exports = __toCommonJS(app_listing_localization_exports);
|
|
29
|
+
var import_api = require("./api.js");
|
|
30
|
+
var import_locale = require("./locale.js");
|
|
31
|
+
const APP_LISTING_TEXT_FIELDS = ["subtitle", "description", "controls", "makingOf", "releaseNotes"];
|
|
32
|
+
const APP_LISTING_PATH_FIELDS = ["iconPath", "heroPortraitPath", "heroLandscapePath", "socialLandscapePath"];
|
|
33
|
+
const APP_LISTING_ARRAY_FIELDS = ["screenshotsPortrait", "screenshotsLandscape", "videosPortrait", "videosLandscape"];
|
|
34
|
+
function normalizeAppListingSourceLocale(value) {
|
|
35
|
+
if (value === void 0 || value === null)
|
|
36
|
+
return null;
|
|
37
|
+
if (typeof value !== "string" || value.length > 35)
|
|
38
|
+
throw new Error("invalid_listing_source_locale");
|
|
39
|
+
try {
|
|
40
|
+
const locale = new Intl.Locale(value);
|
|
41
|
+
if (locale.language === "zh")
|
|
42
|
+
return locale.maximize().script === "Hant" ? "zh-Hant" : "zh-Hans";
|
|
43
|
+
return import_locale.SUPPORTED_LOCALES.find((supported) => supported.split("-")[0] === locale.language) ?? locale.toString();
|
|
44
|
+
} catch {
|
|
45
|
+
throw new Error("invalid_listing_source_locale");
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function normalizeAppListingContent(value) {
|
|
49
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
50
|
+
throw new Error("invalid_listing_content");
|
|
51
|
+
const input = value;
|
|
52
|
+
if (typeof input["displayName"] !== "string" || !input["displayName"].trim())
|
|
53
|
+
throw new Error("invalid_listing_display_name");
|
|
54
|
+
const output = { displayName: input["displayName"].trim() };
|
|
55
|
+
for (const field of [...APP_LISTING_TEXT_FIELDS, ...APP_LISTING_PATH_FIELDS]) {
|
|
56
|
+
const text = input[field];
|
|
57
|
+
if (text !== void 0 && text !== null && typeof text !== "string")
|
|
58
|
+
throw new Error(`invalid_listing_${field}`);
|
|
59
|
+
output[field] = typeof text === "string" && text.trim() ? text.trim() : null;
|
|
60
|
+
}
|
|
61
|
+
if (output.subtitle && output.subtitle.length > import_api.APP_SUBTITLE_MAX_LENGTH)
|
|
62
|
+
throw new Error("invalid_listing_subtitle");
|
|
63
|
+
for (const field of APP_LISTING_ARRAY_FIELDS) {
|
|
64
|
+
const paths = input[field] ?? [];
|
|
65
|
+
if (!Array.isArray(paths) || paths.some((path) => typeof path !== "string" || !path.trim()))
|
|
66
|
+
throw new Error(`invalid_listing_${field}`);
|
|
67
|
+
output[field] = paths.map((path) => path.trim());
|
|
68
|
+
}
|
|
69
|
+
const metadata = input["listingMedia"] ?? [];
|
|
70
|
+
if (!Array.isArray(metadata))
|
|
71
|
+
throw new Error("invalid_listing_media");
|
|
72
|
+
const seen = /* @__PURE__ */ new Set();
|
|
73
|
+
output.listingMedia = metadata.map((item) => {
|
|
74
|
+
if (!item || typeof item !== "object" || Array.isArray(item))
|
|
75
|
+
throw new Error("invalid_listing_media");
|
|
76
|
+
const record = item;
|
|
77
|
+
const match = typeof record["fileKey"] === "string" ? /^(screenshotsPortrait|screenshotsLandscape|videosPortrait|videosLandscape):(\d+)$/.exec(record["fileKey"]) : null;
|
|
78
|
+
if (!match || seen.has(record["fileKey"]) || Number(match[2]) >= output[match[1]].length)
|
|
79
|
+
throw new Error("invalid_listing_media_file_key");
|
|
80
|
+
seen.add(record["fileKey"]);
|
|
81
|
+
const entry = { fileKey: record["fileKey"] };
|
|
82
|
+
for (const field of ["slug", "title", "alt", "caption", "description"]) {
|
|
83
|
+
if (record[field] !== void 0 && typeof record[field] !== "string")
|
|
84
|
+
throw new Error("invalid_listing_media_text");
|
|
85
|
+
if (typeof record[field] === "string" && record[field].trim())
|
|
86
|
+
entry[field] = record[field].trim();
|
|
87
|
+
}
|
|
88
|
+
return entry;
|
|
89
|
+
});
|
|
90
|
+
for (const field of APP_LISTING_ARRAY_FIELDS) {
|
|
91
|
+
output[field].forEach((_path, index) => {
|
|
92
|
+
const fileKey = `${field}:${index}`;
|
|
93
|
+
if (!seen.has(fileKey))
|
|
94
|
+
output.listingMedia.push({ fileKey });
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
output.listingMedia.sort((a, b) => a.fileKey.localeCompare(b.fileKey));
|
|
98
|
+
return output;
|
|
99
|
+
}
|
|
100
|
+
function normalizeAppListingLocalizations(value, sourceLocale) {
|
|
101
|
+
const normalizedSourceLocale = normalizeAppListingSourceLocale(sourceLocale);
|
|
102
|
+
if (value === void 0)
|
|
103
|
+
return [];
|
|
104
|
+
if (!Array.isArray(value))
|
|
105
|
+
throw new Error("invalid_listing_localizations");
|
|
106
|
+
if (value.length && normalizedSourceLocale === null)
|
|
107
|
+
throw new Error("listing_source_locale_required");
|
|
108
|
+
const seen = /* @__PURE__ */ new Set();
|
|
109
|
+
return value.map((entry) => {
|
|
110
|
+
const record = entry;
|
|
111
|
+
if (!record || !(0, import_locale.isSupportedLocale)(record["locale"]) || record["locale"] === normalizedSourceLocale || seen.has(record["locale"]))
|
|
112
|
+
throw new Error("invalid_listing_localization_locale");
|
|
113
|
+
if (typeof record["sourceHash"] !== "string" || !/^[0-9a-f]{64}$/.test(record["sourceHash"]))
|
|
114
|
+
throw new Error("invalid_listing_source_hash");
|
|
115
|
+
seen.add(record["locale"]);
|
|
116
|
+
return { ...normalizeAppListingContent(entry), locale: record["locale"], sourceHash: record["sourceHash"] };
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
function canonicalAppListingSource(value, sourceLocale, mediaHashByPath) {
|
|
120
|
+
const content = normalizeAppListingContent(value);
|
|
121
|
+
const material = { sourceLocale: normalizeAppListingSourceLocale(sourceLocale), displayName: content.displayName };
|
|
122
|
+
for (const field of APP_LISTING_TEXT_FIELDS)
|
|
123
|
+
material[field] = content[field];
|
|
124
|
+
const mediaHash = (path) => {
|
|
125
|
+
const hash = mediaHashByPath.get(path);
|
|
126
|
+
if (!hash || !/^[0-9a-f]{64}$/.test(hash))
|
|
127
|
+
throw new Error(`listing_media_hash_missing:${path}`);
|
|
128
|
+
return hash;
|
|
129
|
+
};
|
|
130
|
+
for (const field of APP_LISTING_PATH_FIELDS)
|
|
131
|
+
material[field] = content[field] ? mediaHash(content[field]) : null;
|
|
132
|
+
for (const field of APP_LISTING_ARRAY_FIELDS)
|
|
133
|
+
material[field] = content[field].map(mediaHash);
|
|
134
|
+
material["listingMedia"] = content.listingMedia;
|
|
135
|
+
return JSON.stringify(material);
|
|
136
|
+
}
|
|
137
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
138
|
+
0 && (module.exports = {
|
|
139
|
+
APP_LISTING_ARRAY_FIELDS,
|
|
140
|
+
APP_LISTING_PATH_FIELDS,
|
|
141
|
+
APP_LISTING_TEXT_FIELDS,
|
|
142
|
+
canonicalAppListingSource,
|
|
143
|
+
normalizeAppListingContent,
|
|
144
|
+
normalizeAppListingLocalizations,
|
|
145
|
+
normalizeAppListingSourceLocale
|
|
146
|
+
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { PlatformFriendPresenceEntry, SocialMessage } from "./social.js";
|
|
2
2
|
import type { PlayTradeInputKind } from "./playtrade.js";
|
|
3
3
|
import type { CreationRealtimeUpdate } from "./api.js";
|
|
4
|
+
import type { SupportedLocale } from "./locale.js";
|
|
5
|
+
import type { UgcPresentation } from "./ugc.js";
|
|
4
6
|
export declare const CHAT_CHANNEL_SLUGS: readonly ["new-content", "published-content", "new-user", "agent-tasks", "purchases", "credit-transactions", "subscription-transactions", "prod-alert", "content-report", "user-report", "comment-report", "message-report", "improvement-loop", "bot-test", "cloud-workers"];
|
|
5
7
|
export type ChatChannelSlug = (typeof CHAT_CHANNEL_SLUGS)[number];
|
|
6
8
|
export type ChatConversationType = "INTERNAL_CHANNEL" | "COMMUNITY_CHANNEL" | "DIRECT";
|
|
@@ -55,9 +57,11 @@ export type ChatAttachment = {
|
|
|
55
57
|
siteName: string | null;
|
|
56
58
|
} | null;
|
|
57
59
|
};
|
|
58
|
-
export type ChatMessageQuote = {
|
|
60
|
+
export type ChatMessageQuote = UgcPresentation & {
|
|
59
61
|
id: string;
|
|
60
62
|
sequence: string;
|
|
63
|
+
/** Source message revision. Optional for responses from older servers. */
|
|
64
|
+
updatedAt?: string;
|
|
61
65
|
body: string;
|
|
62
66
|
deleted: boolean;
|
|
63
67
|
author: Pick<ChatAuthor, "id" | "username" | "displayName"> | null;
|
|
@@ -65,7 +69,7 @@ export type ChatMessageQuote = {
|
|
|
65
69
|
export type ChatGameSocialMessage = SocialMessage & {
|
|
66
70
|
development: boolean;
|
|
67
71
|
};
|
|
68
|
-
export type ChatMessage = {
|
|
72
|
+
export type ChatMessage = UgcPresentation & {
|
|
69
73
|
id: string;
|
|
70
74
|
conversationId: string;
|
|
71
75
|
sequence: string;
|
|
@@ -218,6 +222,7 @@ export type PlatformRealtimeTopic = (typeof PLATFORM_REALTIME_TOPIC_VALUES)[numb
|
|
|
218
222
|
export type ChatRealtimeAuthFrame = {
|
|
219
223
|
type: "auth";
|
|
220
224
|
token: string;
|
|
225
|
+
locale?: SupportedLocale;
|
|
221
226
|
};
|
|
222
227
|
export type ChatRealtimeSubscribeFrame = {
|
|
223
228
|
type: "subscribe";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sour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,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,sBAAsB,CAAA;CAAE,GACrG;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,OAAO,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GACnG;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,KAAK,EAAE,qBAAqB,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,GACxF;IAAE,IAAI,EAAE,4BAA4B,CAAC;IAAC,QAAQ,EAAE,+BAA+B,CAAA;CAAE,GACjF;IAAE,IAAI,EAAE,0BAA0B,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACrE;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,qBAAqB,CAAC;IAAC,cAAc,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./api.js";
|
|
2
|
+
export * from "./ugc-processing.js";
|
|
2
3
|
export type * from "./realtime.js";
|
|
3
4
|
export * from "./app.js";
|
|
4
5
|
export * from "./app-review.js";
|
|
@@ -23,6 +24,8 @@ export * from "./agent-task-terminal.js";
|
|
|
23
24
|
export * from "./agent-task-classification.js";
|
|
24
25
|
export * from "./release-smoke.js";
|
|
25
26
|
export * from "./locale.js";
|
|
27
|
+
export * from "./ugc.js";
|
|
28
|
+
export * from "./app-listing-localization.js";
|
|
26
29
|
export * from "./chat.js";
|
|
27
30
|
export * from "./social.js";
|
|
28
31
|
export * from "./attachment-policy.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,qBAAqB,CAAC;AAGpC,mBAAmB,eAAe,CAAC;AAGnC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAG/B,cAAc,cAAc,CAAC;AAG7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,+BAA+B,CAAC;AAC9C,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -15,6 +15,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
15
15
|
var dist_exports = {};
|
|
16
16
|
module.exports = __toCommonJS(dist_exports);
|
|
17
17
|
__reExport(dist_exports, require("./api.js"), module.exports);
|
|
18
|
+
__reExport(dist_exports, require("./ugc-processing.js"), module.exports);
|
|
18
19
|
__reExport(dist_exports, require("./app.js"), module.exports);
|
|
19
20
|
__reExport(dist_exports, require("./app-review.js"), module.exports);
|
|
20
21
|
__reExport(dist_exports, require("./app-capability-filters.js"), module.exports);
|
|
@@ -38,6 +39,8 @@ __reExport(dist_exports, require("./agent-task-terminal.js"), module.exports);
|
|
|
38
39
|
__reExport(dist_exports, require("./agent-task-classification.js"), module.exports);
|
|
39
40
|
__reExport(dist_exports, require("./release-smoke.js"), module.exports);
|
|
40
41
|
__reExport(dist_exports, require("./locale.js"), module.exports);
|
|
42
|
+
__reExport(dist_exports, require("./ugc.js"), module.exports);
|
|
43
|
+
__reExport(dist_exports, require("./app-listing-localization.js"), module.exports);
|
|
41
44
|
__reExport(dist_exports, require("./chat.js"), module.exports);
|
|
42
45
|
__reExport(dist_exports, require("./social.js"), module.exports);
|
|
43
46
|
__reExport(dist_exports, require("./attachment-policy.js"), module.exports);
|
|
@@ -45,6 +48,7 @@ __reExport(dist_exports, require("./public-cache-tags.js"), module.exports);
|
|
|
45
48
|
// Annotate the CommonJS export names for ESM import in node:
|
|
46
49
|
0 && (module.exports = {
|
|
47
50
|
...require("./api.js"),
|
|
51
|
+
...require("./ugc-processing.js"),
|
|
48
52
|
...require("./app.js"),
|
|
49
53
|
...require("./app-review.js"),
|
|
50
54
|
...require("./app-capability-filters.js"),
|
|
@@ -68,6 +72,8 @@ __reExport(dist_exports, require("./public-cache-tags.js"), module.exports);
|
|
|
68
72
|
...require("./agent-task-classification.js"),
|
|
69
73
|
...require("./release-smoke.js"),
|
|
70
74
|
...require("./locale.js"),
|
|
75
|
+
...require("./ugc.js"),
|
|
76
|
+
...require("./app-listing-localization.js"),
|
|
71
77
|
...require("./chat.js"),
|
|
72
78
|
...require("./social.js"),
|
|
73
79
|
...require("./attachment-policy.js"),
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
import { type SupportedLocale } from './locale.js';
|
|
2
|
+
export declare const UGC_PROCESSING_LIMITS: {
|
|
3
|
+
readonly items: 20;
|
|
4
|
+
readonly contextItems: 10;
|
|
5
|
+
readonly targetBodyBytes: number;
|
|
6
|
+
readonly inputTextBytes: number;
|
|
7
|
+
readonly mediaBytes: number;
|
|
8
|
+
readonly images: 40;
|
|
9
|
+
readonly resultBytes: number;
|
|
10
|
+
};
|
|
11
|
+
export type UgcTargetKind = 'MESSAGE' | 'COMMENT';
|
|
12
|
+
export type UgcProcessingAttachment = {
|
|
13
|
+
id: string;
|
|
14
|
+
kind: string;
|
|
15
|
+
contentType: string | null;
|
|
16
|
+
sizeBytes: number;
|
|
17
|
+
storageKey: string | null;
|
|
18
|
+
objectGeneration: string | null;
|
|
19
|
+
externalUrl: string | null;
|
|
20
|
+
previewTitle: string | null;
|
|
21
|
+
previewDescription: string | null;
|
|
22
|
+
path?: string;
|
|
23
|
+
};
|
|
24
|
+
export type UgcProcessingContext = {
|
|
25
|
+
id: string;
|
|
26
|
+
body: string;
|
|
27
|
+
authorId: string | null;
|
|
28
|
+
parentId: string | null;
|
|
29
|
+
required: boolean;
|
|
30
|
+
attachments: UgcProcessingAttachment[];
|
|
31
|
+
};
|
|
32
|
+
export type UgcProcessingItem = {
|
|
33
|
+
kind: UgcTargetKind;
|
|
34
|
+
id: string;
|
|
35
|
+
sourceHash: string;
|
|
36
|
+
body: string;
|
|
37
|
+
authorId: string | null;
|
|
38
|
+
parentId: string | null;
|
|
39
|
+
context: UgcProcessingContext[];
|
|
40
|
+
attachments: UgcProcessingAttachment[];
|
|
41
|
+
moderationApproved: boolean;
|
|
42
|
+
sourceLocale: string | null;
|
|
43
|
+
existingTranslations: Array<{
|
|
44
|
+
locale: SupportedLocale;
|
|
45
|
+
body: string;
|
|
46
|
+
}>;
|
|
47
|
+
};
|
|
48
|
+
export type UgcProcessingResult = {
|
|
49
|
+
kind: UgcTargetKind;
|
|
50
|
+
id: string;
|
|
51
|
+
sourceHash: string;
|
|
52
|
+
sourceLocale: string | null;
|
|
53
|
+
moderation: {
|
|
54
|
+
decision: 'PASSED' | 'REJECTED';
|
|
55
|
+
reason: string | null;
|
|
56
|
+
} | null;
|
|
57
|
+
translations: Array<{
|
|
58
|
+
locale: SupportedLocale;
|
|
59
|
+
body: string;
|
|
60
|
+
}>;
|
|
61
|
+
errorCode: string | null;
|
|
62
|
+
};
|
|
63
|
+
export type UgcItemOutcome = {
|
|
64
|
+
kind: UgcTargetKind;
|
|
65
|
+
id: string;
|
|
66
|
+
outcome: 'APPLIED' | 'DUPLICATE' | 'STALE' | 'ERROR';
|
|
67
|
+
errorCode?: string;
|
|
68
|
+
};
|
|
69
|
+
export type WorkerUgcResultsRequest = {
|
|
70
|
+
workerKey: string;
|
|
71
|
+
leaseToken: string;
|
|
72
|
+
results: UgcProcessingResult[];
|
|
73
|
+
complete?: boolean;
|
|
74
|
+
};
|
|
75
|
+
export type WorkerUgcResultsResponse = {
|
|
76
|
+
outcomes: UgcItemOutcome[];
|
|
77
|
+
status: 'QUEUED' | 'RUNNING' | 'DONE' | 'FAILED';
|
|
78
|
+
};
|
|
79
|
+
export type WorkerUgcTaskAssignmentV5 = {
|
|
80
|
+
operation: 'UGC_PROCESSING';
|
|
81
|
+
task: {
|
|
82
|
+
id: number;
|
|
83
|
+
type: 'UGC_PROCESSING';
|
|
84
|
+
token: string;
|
|
85
|
+
accessToken?: string;
|
|
86
|
+
attempt: number;
|
|
87
|
+
};
|
|
88
|
+
items: UgcProcessingItem[];
|
|
89
|
+
locales: SupportedLocale[];
|
|
90
|
+
inputs: Array<{
|
|
91
|
+
path: string;
|
|
92
|
+
sha256: string;
|
|
93
|
+
sizeBytes: number;
|
|
94
|
+
contentType: string;
|
|
95
|
+
contentBase64: string;
|
|
96
|
+
}>;
|
|
97
|
+
execution: {
|
|
98
|
+
agent: 'CODEX' | 'CLAUDE_CODE';
|
|
99
|
+
model: string;
|
|
100
|
+
reasoningEffort: string | null;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export declare function ugcProcessingAttachments(items: UgcProcessingItem[]): UgcProcessingAttachment[];
|
|
104
|
+
export declare function ugcAttachmentError(attachment: UgcProcessingAttachment): string | null;
|
|
105
|
+
/** Keep shared context and attachments once, using the same representation for admission and execution. */
|
|
106
|
+
export declare function buildUgcModelInput(items: UgcProcessingItem[]): {
|
|
107
|
+
locales: ("en" | "fr" | "de" | "ja" | "ko" | "es" | "pt-BR" | "id" | "zh-Hant" | "zh-Hans")[];
|
|
108
|
+
items: {
|
|
109
|
+
translatedLocales: ("en" | "fr" | "de" | "ja" | "ko" | "es" | "pt-BR" | "id" | "zh-Hant" | "zh-Hans")[];
|
|
110
|
+
context: string[];
|
|
111
|
+
attachments: string[];
|
|
112
|
+
kind: UgcTargetKind;
|
|
113
|
+
id: string;
|
|
114
|
+
sourceHash: string;
|
|
115
|
+
body: string;
|
|
116
|
+
authorId: string | null;
|
|
117
|
+
parentId: string | null;
|
|
118
|
+
moderationApproved: boolean;
|
|
119
|
+
sourceLocale: string | null;
|
|
120
|
+
}[];
|
|
121
|
+
contexts: {
|
|
122
|
+
attachments: string[];
|
|
123
|
+
id: string;
|
|
124
|
+
body: string;
|
|
125
|
+
authorId: string | null;
|
|
126
|
+
parentId: string | null;
|
|
127
|
+
key: string;
|
|
128
|
+
}[];
|
|
129
|
+
attachments: {
|
|
130
|
+
id: string;
|
|
131
|
+
kind: string;
|
|
132
|
+
contentType: string | null;
|
|
133
|
+
externalUrl: string | null;
|
|
134
|
+
previewTitle: string | null;
|
|
135
|
+
previewDescription: string | null;
|
|
136
|
+
path?: string;
|
|
137
|
+
}[];
|
|
138
|
+
};
|
|
139
|
+
export declare const UGC_PROCESSING_OUTPUT_SCHEMA: {
|
|
140
|
+
readonly type: "object";
|
|
141
|
+
readonly additionalProperties: false;
|
|
142
|
+
readonly required: readonly ["results"];
|
|
143
|
+
readonly properties: {
|
|
144
|
+
readonly results: {
|
|
145
|
+
readonly type: "array";
|
|
146
|
+
readonly maxItems: 20;
|
|
147
|
+
readonly items: {
|
|
148
|
+
readonly type: "object";
|
|
149
|
+
readonly additionalProperties: false;
|
|
150
|
+
readonly required: readonly ["kind", "id", "sourceHash", "sourceLocale", "moderation", "translations", "errorCode"];
|
|
151
|
+
readonly properties: {
|
|
152
|
+
readonly kind: {
|
|
153
|
+
readonly enum: readonly ["MESSAGE", "COMMENT"];
|
|
154
|
+
};
|
|
155
|
+
readonly id: {
|
|
156
|
+
readonly type: "string";
|
|
157
|
+
readonly pattern: "^[1-9][0-9]*$";
|
|
158
|
+
};
|
|
159
|
+
readonly sourceHash: {
|
|
160
|
+
readonly type: "string";
|
|
161
|
+
readonly pattern: "^[a-f0-9]{64}$";
|
|
162
|
+
};
|
|
163
|
+
readonly sourceLocale: {
|
|
164
|
+
readonly type: readonly ["string", "null"];
|
|
165
|
+
};
|
|
166
|
+
readonly moderation: {
|
|
167
|
+
readonly anyOf: readonly [{
|
|
168
|
+
readonly type: "null";
|
|
169
|
+
}, {
|
|
170
|
+
readonly type: "object";
|
|
171
|
+
readonly additionalProperties: false;
|
|
172
|
+
readonly required: readonly ["decision", "reason"];
|
|
173
|
+
readonly properties: {
|
|
174
|
+
readonly decision: {
|
|
175
|
+
readonly enum: readonly ["PASSED", "REJECTED"];
|
|
176
|
+
};
|
|
177
|
+
readonly reason: {
|
|
178
|
+
readonly type: readonly ["string", "null"];
|
|
179
|
+
readonly maxLength: 600;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
}];
|
|
183
|
+
};
|
|
184
|
+
readonly translations: {
|
|
185
|
+
readonly type: "array";
|
|
186
|
+
readonly maxItems: 10;
|
|
187
|
+
readonly items: {
|
|
188
|
+
readonly type: "object";
|
|
189
|
+
readonly additionalProperties: false;
|
|
190
|
+
readonly required: readonly ["locale", "body"];
|
|
191
|
+
readonly properties: {
|
|
192
|
+
readonly locale: {
|
|
193
|
+
readonly enum: readonly ["en", "fr", "de", "ja", "ko", "es", "pt-BR", "id", "zh-Hant", "zh-Hans"];
|
|
194
|
+
};
|
|
195
|
+
readonly body: {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
readonly errorCode: {
|
|
202
|
+
readonly type: readonly ["string", "null"];
|
|
203
|
+
readonly maxLength: 160;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
};
|
|
209
|
+
};
|
|
210
|
+
export declare function validateUgcProcessingResult(value: unknown): UgcProcessingResult;
|
|
211
|
+
//# sourceMappingURL=ugc-processing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ugc-processing.d.ts","sourceRoot":"","sources":["../src/ugc-processing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,KAAK,eAAe,EAAE,MAAM,aAAa,CAAC;AAGtE,eAAO,MAAM,qBAAqB;;;;;;;;CAQxB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAClD,MAAM,MAAM,uBAAuB,GAAG;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AACF,MAAM,MAAM,oBAAoB,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,uBAAuB,EAAE,CAAA;CAAE,CAAC;AAC7K,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,EAAE,aAAa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