@air-jam/devtools 0.0.0-stage → 1.0.0-beta.1
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/LICENSE +21 -0
- package/README.md +112 -2
- package/dist/chunk-2O67AXCU.js +470 -0
- package/dist/chunk-2O67AXCU.js.map +1 -0
- package/dist/chunk-AO3ZDXF6.js +142 -0
- package/dist/chunk-AO3ZDXF6.js.map +1 -0
- package/dist/chunk-ART5TEYT.js +472 -0
- package/dist/chunk-ART5TEYT.js.map +1 -0
- package/dist/chunk-ASC2CK2R.js +77 -0
- package/dist/chunk-ASC2CK2R.js.map +1 -0
- package/dist/chunk-E3UZZGAV.js +50 -0
- package/dist/chunk-E3UZZGAV.js.map +1 -0
- package/dist/chunk-EJTE7UKX.js +64 -0
- package/dist/chunk-EJTE7UKX.js.map +1 -0
- package/dist/chunk-ESFKNN75.js +110 -0
- package/dist/chunk-ESFKNN75.js.map +1 -0
- package/dist/chunk-EU7A6PXW.js +1339 -0
- package/dist/chunk-EU7A6PXW.js.map +1 -0
- package/dist/chunk-FN7E6EA7.js +549 -0
- package/dist/chunk-FN7E6EA7.js.map +1 -0
- package/dist/chunk-GDFAWHGA.js +190 -0
- package/dist/chunk-GDFAWHGA.js.map +1 -0
- package/dist/chunk-HZUGBH4Y.js +347 -0
- package/dist/chunk-HZUGBH4Y.js.map +1 -0
- package/dist/chunk-ITKAOEGX.js +93 -0
- package/dist/chunk-ITKAOEGX.js.map +1 -0
- package/dist/chunk-JBCUTWRI.js +897 -0
- package/dist/chunk-JBCUTWRI.js.map +1 -0
- package/dist/chunk-JSI5S4WP.js +1174 -0
- package/dist/chunk-JSI5S4WP.js.map +1 -0
- package/dist/chunk-L4D675BG.js +97 -0
- package/dist/chunk-L4D675BG.js.map +1 -0
- package/dist/chunk-M6CJ7GQC.js +133 -0
- package/dist/chunk-M6CJ7GQC.js.map +1 -0
- package/dist/chunk-MEIMOSZC.js +749 -0
- package/dist/chunk-MEIMOSZC.js.map +1 -0
- package/dist/chunk-O3XG3FNL.js +1014 -0
- package/dist/chunk-O3XG3FNL.js.map +1 -0
- package/dist/chunk-OM6SCJ7H.js +18 -0
- package/dist/chunk-OM6SCJ7H.js.map +1 -0
- package/dist/chunk-PKD4WVX5.js +63 -0
- package/dist/chunk-PKD4WVX5.js.map +1 -0
- package/dist/chunk-PMBLXGFM.js +3384 -0
- package/dist/chunk-PMBLXGFM.js.map +1 -0
- package/dist/chunk-PMNE5GIN.js +279 -0
- package/dist/chunk-PMNE5GIN.js.map +1 -0
- package/dist/chunk-QAWI64VR.js +148 -0
- package/dist/chunk-QAWI64VR.js.map +1 -0
- package/dist/chunk-QGADSPHZ.js +449 -0
- package/dist/chunk-QGADSPHZ.js.map +1 -0
- package/dist/chunk-SPYN66UV.js +338 -0
- package/dist/chunk-SPYN66UV.js.map +1 -0
- package/dist/context.d.ts +19 -0
- package/dist/context.js +10 -0
- package/dist/context.js.map +1 -0
- package/dist/controller.d.ts +67 -0
- package/dist/controller.js +40 -0
- package/dist/controller.js.map +1 -0
- package/dist/dependencies.d.ts +44 -0
- package/dist/dependencies.js +10 -0
- package/dist/dependencies.js.map +1 -0
- package/dist/dev.d.ts +21 -0
- package/dist/dev.js +19 -0
- package/dist/dev.js.map +1 -0
- package/dist/game-builds.d.ts +200 -0
- package/dist/game-builds.js +16 -0
- package/dist/game-builds.js.map +1 -0
- package/dist/game-run-watch-CEd_SpAT.d.ts +84 -0
- package/dist/game-runs.d.ts +1452 -0
- package/dist/game-runs.js +76 -0
- package/dist/game-runs.js.map +1 -0
- package/dist/game-session-broker-CUvORfMd.d.ts +439 -0
- package/dist/game-session-broker.d.ts +4 -0
- package/dist/game-session-broker.js +40 -0
- package/dist/game-session-broker.js.map +1 -0
- package/dist/game-session.d.ts +3934 -0
- package/dist/game-session.js +195 -0
- package/dist/game-session.js.map +1 -0
- package/dist/game-settings.d.ts +16 -0
- package/dist/game-settings.js +237 -0
- package/dist/game-settings.js.map +1 -0
- package/dist/games.d.ts +28 -0
- package/dist/games.js +16 -0
- package/dist/games.js.map +1 -0
- package/dist/harness/visual.d.ts +204 -0
- package/dist/harness/visual.js +46 -0
- package/dist/harness/visual.js.map +1 -0
- package/dist/logs.d.ts +15 -0
- package/dist/logs.js +57 -0
- package/dist/logs.js.map +1 -0
- package/dist/managed-process-scope-BicYi_t9.d.ts +3 -0
- package/dist/mcp-config.d.ts +63 -0
- package/dist/mcp-config.js +191 -0
- package/dist/mcp-config.js.map +1 -0
- package/dist/platform-auth.d.ts +9 -0
- package/dist/platform-auth.js +45 -0
- package/dist/platform-auth.js.map +1 -0
- package/dist/platform-game-analytics.d.ts +51 -0
- package/dist/platform-game-analytics.js +49 -0
- package/dist/platform-game-analytics.js.map +1 -0
- package/dist/platform-game-app-id.d.ts +46 -0
- package/dist/platform-game-app-id.js +93 -0
- package/dist/platform-game-app-id.js.map +1 -0
- package/dist/platform-game-media.d.ts +347 -0
- package/dist/platform-game-media.js +168 -0
- package/dist/platform-game-media.js.map +1 -0
- package/dist/platform-games.d.ts +87 -0
- package/dist/platform-games.js +183 -0
- package/dist/platform-games.js.map +1 -0
- package/dist/quality.d.ts +16 -0
- package/dist/quality.js +62 -0
- package/dist/quality.js.map +1 -0
- package/dist/release.d.ts +1304 -0
- package/dist/release.js +34 -0
- package/dist/release.js.map +1 -0
- package/dist/rooms-check.d.ts +90 -0
- package/dist/rooms-check.js +717 -0
- package/dist/rooms-check.js.map +1 -0
- package/dist/source-tree-contract.d.ts +16 -0
- package/dist/source-tree-contract.js +13 -0
- package/dist/source-tree-contract.js.map +1 -0
- package/dist/testing.d.ts +464 -0
- package/dist/testing.js +27 -0
- package/dist/testing.js.map +1 -0
- package/dist/tooling/describe-game.d.ts +2 -0
- package/dist/tooling/describe-game.js +54 -0
- package/dist/tooling/describe-game.js.map +1 -0
- package/dist/tooling/game-session-broker.d.ts +2 -0
- package/dist/tooling/game-session-broker.js +28 -0
- package/dist/tooling/game-session-broker.js.map +1 -0
- package/dist/tooling/hold-runtime-host.d.ts +2 -0
- package/dist/tooling/hold-runtime-host.js +931 -0
- package/dist/tooling/hold-runtime-host.js.map +1 -0
- package/dist/tooling/list-visual-scenarios.d.ts +2 -0
- package/dist/tooling/list-visual-scenarios.js +25 -0
- package/dist/tooling/list-visual-scenarios.js.map +1 -0
- package/dist/tooling/managed-dev-supervisor.d.ts +2 -0
- package/dist/tooling/managed-dev-supervisor.js +51 -0
- package/dist/tooling/managed-dev-supervisor.js.map +1 -0
- package/dist/tooling/process-scope-bootstrap.mjs +24 -0
- package/dist/tooling/process-scope-guard.d.ts +2 -0
- package/dist/tooling/process-scope-guard.js +388 -0
- package/dist/tooling/process-scope-guard.js.map +1 -0
- package/dist/tooling/process-scope-windows.ps1 +148 -0
- package/dist/tooling/rooms-check-device.d.ts +2 -0
- package/dist/tooling/rooms-check-device.js +498 -0
- package/dist/tooling/rooms-check-device.js.map +1 -0
- package/dist/tooling/run-headless-room.d.ts +2 -0
- package/dist/tooling/run-headless-room.js +287 -0
- package/dist/tooling/run-headless-room.js.map +1 -0
- package/dist/tooling/run-test-profile.d.ts +2 -0
- package/dist/tooling/run-test-profile.js +181 -0
- package/dist/tooling/run-test-profile.js.map +1 -0
- package/dist/tooling/run-visual-capture.d.ts +2 -0
- package/dist/tooling/run-visual-capture.js +203 -0
- package/dist/tooling/run-visual-capture.js.map +1 -0
- package/dist/tooling/seal-game-build.d.ts +2 -0
- package/dist/tooling/seal-game-build.js +120 -0
- package/dist/tooling/seal-game-build.js.map +1 -0
- package/dist/types-CdYrgrG_.d.ts +1036 -0
- package/dist/types-DyRD-ym1.d.ts +141 -0
- package/dist/visual.d.ts +21 -0
- package/dist/visual.js +219 -0
- package/dist/visual.js.map +1 -0
- package/package.json +150 -3
- package/src/bounded-response.ts +28 -0
- package/src/built-game-runtime.ts +152 -0
- package/src/commands.ts +40 -0
- package/src/context.ts +218 -0
- package/src/controller-protocol.ts +22 -0
- package/src/controller.ts +1526 -0
- package/src/current-room-host.ts +166 -0
- package/src/decision-provider.ts +102 -0
- package/src/dependencies.ts +176 -0
- package/src/dependency-install-contract.ts +12 -0
- package/src/dev.ts +995 -0
- package/src/fs-utils.ts +93 -0
- package/src/game-action-observation.ts +106 -0
- package/src/game-build-protocol.ts +72 -0
- package/src/game-build.ts +483 -0
- package/src/game-run-owner.ts +2358 -0
- package/src/game-run-protocol.ts +448 -0
- package/src/game-run-record.ts +92 -0
- package/src/game-run-replay.ts +95 -0
- package/src/game-run-watch.ts +155 -0
- package/src/game-session-broker.ts +793 -0
- package/src/game-session-operations.ts +61 -0
- package/src/game-session-protocol.ts +180 -0
- package/src/game-session-runtime.ts +861 -0
- package/src/game-session.ts +206 -0
- package/src/game-settings.ts +295 -0
- package/src/games.ts +262 -0
- package/src/harness/visual/browser.ts +100 -0
- package/src/harness/visual/controller-observation.ts +181 -0
- package/src/harness/visual/prefab-contract.ts +29 -0
- package/src/harness/visual/prefab-runner.ts +178 -0
- package/src/harness/visual/runner.ts +549 -0
- package/src/harness/visual/runtime-controller-observations.ts +151 -0
- package/src/harness/visual/scenario-contract.ts +8 -0
- package/src/harness/visual/scenario-helpers.ts +67 -0
- package/src/harness/visual/screencast.ts +155 -0
- package/src/harness/visual/session.ts +400 -0
- package/src/harness/visual/types.ts +184 -0
- package/src/harness/visual.ts +7 -0
- package/src/headless-room-protocol.ts +112 -0
- package/src/headless-room.ts +222 -0
- package/src/helper-channel.ts +229 -0
- package/src/helper-scripts.ts +69 -0
- package/src/installed-dependencies.ts +74 -0
- package/src/logs.ts +67 -0
- package/src/managed-process-scope.ts +481 -0
- package/src/mcp-config.ts +262 -0
- package/src/node-process-environment.ts +10 -0
- package/src/platform-auth.ts +594 -0
- package/src/platform-game-analytics.ts +50 -0
- package/src/platform-game-app-id.ts +99 -0
- package/src/platform-game-media.ts +209 -0
- package/src/platform-games.ts +217 -0
- package/src/policy-artifact-contract.ts +52 -0
- package/src/policy-artifacts.ts +134 -0
- package/src/process-scope-admission.ts +50 -0
- package/src/process-scope-protocol.ts +66 -0
- package/src/process-scope.ts +327 -0
- package/src/quality.ts +82 -0
- package/src/release.ts +1683 -0
- package/src/rooms-check-fleet.ts +194 -0
- package/src/rooms-check-link.ts +138 -0
- package/src/rooms-check-protocol.ts +244 -0
- package/src/rooms-check.ts +797 -0
- package/src/runtime-owner-protocol.ts +218 -0
- package/src/source-tree-contract.ts +70 -0
- package/src/source-tree.ts +84 -0
- package/src/test-profile-process.ts +153 -0
- package/src/test-profile-protocol.ts +116 -0
- package/src/testing.ts +430 -0
- package/src/tooling/declaration-hook.ts +52 -0
- package/src/tooling/describe-game.ts +49 -0
- package/src/tooling/game-session-broker.ts +7 -0
- package/src/tooling/hold-runtime-host.ts +441 -0
- package/src/tooling/list-visual-scenarios.ts +21 -0
- package/src/tooling/load-game.ts +79 -0
- package/src/tooling/managed-dev-supervisor.ts +71 -0
- package/src/tooling/process-scope-bootstrap.mjs +24 -0
- package/src/tooling/process-scope-guard.ts +213 -0
- package/src/tooling/process-scope-windows.ps1 +148 -0
- package/src/tooling/rooms-check-device.ts +493 -0
- package/src/tooling/run-headless-room.ts +326 -0
- package/src/tooling/run-test-profile.ts +190 -0
- package/src/tooling/run-visual-capture.ts +231 -0
- package/src/tooling/runtime-owner-actions.ts +65 -0
- package/src/tooling/seal-game-build.ts +118 -0
- package/src/tooling/visual-pack.ts +11 -0
- package/src/types.ts +928 -0
- package/src/visual.ts +296 -0
- package/src/windows-process-scopes.ts +189 -0
- package/src/workspace-contract.ts +32 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AirJamPlatformApiError,
|
|
3
|
+
AirJamStoredPlatformSessionError,
|
|
4
|
+
clearStoredPlatformMachineSession,
|
|
5
|
+
getPlatformAuthStoragePath,
|
|
6
|
+
getPlatformMachineAuthStatus,
|
|
7
|
+
getPlatformMachineProfile,
|
|
8
|
+
listPlatformMachineSessions,
|
|
9
|
+
loginPlatformWithDeviceFlow,
|
|
10
|
+
logoutPlatformMachineSession,
|
|
11
|
+
pollPlatformDeviceAuthorization,
|
|
12
|
+
readStoredPlatformMachineSession,
|
|
13
|
+
requestPlatformMachineApi,
|
|
14
|
+
resolveAirJamStateDirectory,
|
|
15
|
+
resolvePlatformBaseUrl,
|
|
16
|
+
resolvePlatformMachineAuth,
|
|
17
|
+
revokePlatformMachineSession,
|
|
18
|
+
startPlatformDeviceAuthorization,
|
|
19
|
+
storedPlatformSessionSchema,
|
|
20
|
+
updatePlatformMachineProfile,
|
|
21
|
+
writeStoredPlatformMachineSession
|
|
22
|
+
} from "./chunk-2O67AXCU.js";
|
|
23
|
+
export {
|
|
24
|
+
AirJamPlatformApiError,
|
|
25
|
+
AirJamStoredPlatformSessionError,
|
|
26
|
+
clearStoredPlatformMachineSession,
|
|
27
|
+
getPlatformAuthStoragePath,
|
|
28
|
+
getPlatformMachineAuthStatus,
|
|
29
|
+
getPlatformMachineProfile,
|
|
30
|
+
listPlatformMachineSessions,
|
|
31
|
+
loginPlatformWithDeviceFlow,
|
|
32
|
+
logoutPlatformMachineSession,
|
|
33
|
+
pollPlatformDeviceAuthorization,
|
|
34
|
+
readStoredPlatformMachineSession,
|
|
35
|
+
requestPlatformMachineApi,
|
|
36
|
+
resolveAirJamStateDirectory,
|
|
37
|
+
resolvePlatformBaseUrl,
|
|
38
|
+
resolvePlatformMachineAuth,
|
|
39
|
+
revokePlatformMachineSession,
|
|
40
|
+
startPlatformDeviceAuthorization,
|
|
41
|
+
storedPlatformSessionSchema,
|
|
42
|
+
updatePlatformMachineProfile,
|
|
43
|
+
writeStoredPlatformMachineSession
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=platform-auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
type GameAnalyticsOptions = {
|
|
2
|
+
platformUrl?: string;
|
|
3
|
+
token?: string;
|
|
4
|
+
slugOrId: string;
|
|
5
|
+
};
|
|
6
|
+
declare const getPlatformGameAnalyticsOverview: ({ platformUrl, token, slugOrId, days, }: GameAnalyticsOptions & {
|
|
7
|
+
days?: number;
|
|
8
|
+
}) => Promise<{
|
|
9
|
+
days: number;
|
|
10
|
+
totals: {
|
|
11
|
+
sessionCount: number;
|
|
12
|
+
totalGameActiveSeconds: number;
|
|
13
|
+
totalControllerSeconds: number;
|
|
14
|
+
totalRawEligiblePlaytimeSeconds: number;
|
|
15
|
+
totalEligiblePlaytimeSeconds: number;
|
|
16
|
+
guardedSessionCount: number;
|
|
17
|
+
peakConcurrentControllers: number;
|
|
18
|
+
lastActivityAt: string | null;
|
|
19
|
+
};
|
|
20
|
+
daily: {
|
|
21
|
+
sessionCount: number;
|
|
22
|
+
totalGameActiveSeconds: number;
|
|
23
|
+
totalControllerSeconds: number;
|
|
24
|
+
totalRawEligiblePlaytimeSeconds: number;
|
|
25
|
+
totalEligiblePlaytimeSeconds: number;
|
|
26
|
+
guardedSessionCount: number;
|
|
27
|
+
peakConcurrentControllers: number;
|
|
28
|
+
lastActivityAt: string | null;
|
|
29
|
+
bucketDate: string;
|
|
30
|
+
}[];
|
|
31
|
+
}>;
|
|
32
|
+
declare const getPlatformGameAnalyticsSessions: ({ platformUrl, token, slugOrId, limit, }: GameAnalyticsOptions & {
|
|
33
|
+
limit?: number;
|
|
34
|
+
}) => Promise<{
|
|
35
|
+
id: string;
|
|
36
|
+
runtimeSessionId: string;
|
|
37
|
+
roomId: string;
|
|
38
|
+
appId: string | null;
|
|
39
|
+
gameId: string;
|
|
40
|
+
startedAt: string;
|
|
41
|
+
endedAt: string | null;
|
|
42
|
+
controllerSeconds: number;
|
|
43
|
+
rawEligiblePlaytimeSeconds: number;
|
|
44
|
+
eligiblePlaytimeSeconds: number;
|
|
45
|
+
trustFlags: string[];
|
|
46
|
+
peakConcurrentControllers: number;
|
|
47
|
+
createdAt: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
}[]>;
|
|
50
|
+
|
|
51
|
+
export { getPlatformGameAnalyticsOverview, getPlatformGameAnalyticsSessions };
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestPlatformMachineApi,
|
|
3
|
+
resolvePlatformMachineAuth
|
|
4
|
+
} from "./chunk-2O67AXCU.js";
|
|
5
|
+
|
|
6
|
+
// src/platform-game-analytics.ts
|
|
7
|
+
import {
|
|
8
|
+
platformMachineGameAnalyticsOverviewInputSchema,
|
|
9
|
+
platformMachineGameAnalyticsOverviewSchema,
|
|
10
|
+
platformMachineGameAnalyticsSessionsInputSchema,
|
|
11
|
+
platformMachineGameAnalyticsSessionsSchema
|
|
12
|
+
} from "@air-jam/sdk/platform-machine";
|
|
13
|
+
var getPlatformGameAnalyticsOverview = async ({
|
|
14
|
+
platformUrl,
|
|
15
|
+
token,
|
|
16
|
+
slugOrId,
|
|
17
|
+
days
|
|
18
|
+
}) => {
|
|
19
|
+
const input = platformMachineGameAnalyticsOverviewInputSchema.parse({ days });
|
|
20
|
+
const resolved = await resolvePlatformMachineAuth({ platformUrl, token });
|
|
21
|
+
return requestPlatformMachineApi({
|
|
22
|
+
baseUrl: resolved.baseUrl,
|
|
23
|
+
pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/analytics?days=${input.days}`,
|
|
24
|
+
token: resolved.token,
|
|
25
|
+
schema: platformMachineGameAnalyticsOverviewSchema
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
var getPlatformGameAnalyticsSessions = async ({
|
|
29
|
+
platformUrl,
|
|
30
|
+
token,
|
|
31
|
+
slugOrId,
|
|
32
|
+
limit
|
|
33
|
+
}) => {
|
|
34
|
+
const input = platformMachineGameAnalyticsSessionsInputSchema.parse({
|
|
35
|
+
limit
|
|
36
|
+
});
|
|
37
|
+
const resolved = await resolvePlatformMachineAuth({ platformUrl, token });
|
|
38
|
+
return requestPlatformMachineApi({
|
|
39
|
+
baseUrl: resolved.baseUrl,
|
|
40
|
+
pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/analytics/sessions?limit=${input.limit}`,
|
|
41
|
+
token: resolved.token,
|
|
42
|
+
schema: platformMachineGameAnalyticsSessionsSchema
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
export {
|
|
46
|
+
getPlatformGameAnalyticsOverview,
|
|
47
|
+
getPlatformGameAnalyticsSessions
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=platform-game-analytics.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/platform-game-analytics.ts"],"sourcesContent":["import {\n platformMachineGameAnalyticsOverviewInputSchema,\n platformMachineGameAnalyticsOverviewSchema,\n platformMachineGameAnalyticsSessionsInputSchema,\n platformMachineGameAnalyticsSessionsSchema,\n} from \"@air-jam/sdk/platform-machine\";\nimport {\n requestPlatformMachineApi,\n resolvePlatformMachineAuth,\n} from \"./platform-auth.js\";\n\ntype GameAnalyticsOptions = {\n platformUrl?: string;\n token?: string;\n slugOrId: string;\n};\n\nexport const getPlatformGameAnalyticsOverview = async ({\n platformUrl,\n token,\n slugOrId,\n days,\n}: GameAnalyticsOptions & { days?: number }) => {\n const input = platformMachineGameAnalyticsOverviewInputSchema.parse({ days });\n const resolved = await resolvePlatformMachineAuth({ platformUrl, token });\n return requestPlatformMachineApi({\n baseUrl: resolved.baseUrl,\n pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/analytics?days=${input.days}`,\n token: resolved.token,\n schema: platformMachineGameAnalyticsOverviewSchema,\n });\n};\n\nexport const getPlatformGameAnalyticsSessions = async ({\n platformUrl,\n token,\n slugOrId,\n limit,\n}: GameAnalyticsOptions & { limit?: number }) => {\n const input = platformMachineGameAnalyticsSessionsInputSchema.parse({\n limit,\n });\n const resolved = await resolvePlatformMachineAuth({ platformUrl, token });\n return requestPlatformMachineApi({\n baseUrl: resolved.baseUrl,\n pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/analytics/sessions?limit=${input.limit}`,\n token: resolved.token,\n schema: platformMachineGameAnalyticsSessionsSchema,\n });\n};\n"],"mappings":";;;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAYA,IAAM,mCAAmC,OAAO;AAAA,EACrD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAgD;AAC9C,QAAM,QAAQ,gDAAgD,MAAM,EAAE,KAAK,CAAC;AAC5E,QAAM,WAAW,MAAM,2BAA2B,EAAE,aAAa,MAAM,CAAC;AACxE,SAAO,0BAA0B;AAAA,IAC/B,SAAS,SAAS;AAAA,IAClB,UAAU,kBAAkB,mBAAmB,QAAQ,CAAC,mBAAmB,MAAM,IAAI;AAAA,IACrF,OAAO,SAAS;AAAA,IAChB,QAAQ;AAAA,EACV,CAAC;AACH;AAEO,IAAM,mCAAmC,OAAO;AAAA,EACrD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAiD;AAC/C,QAAM,QAAQ,gDAAgD,MAAM;AAAA,IAClE;AAAA,EACF,CAAC;AACD,QAAM,WAAW,MAAM,2BAA2B,EAAE,aAAa,MAAM,CAAC;AACxE,SAAO,0BAA0B;AAAA,IAC/B,SAAS,SAAS;AAAA,IAClB,UAAU,kBAAkB,mBAAmB,QAAQ,CAAC,6BAA6B,MAAM,KAAK;AAAA,IAChG,OAAO,SAAS;AAAA,IAChB,QAAQ;AAAA,EACV,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
type GameAppIdOptions = {
|
|
2
|
+
platformUrl?: string;
|
|
3
|
+
token?: string;
|
|
4
|
+
slugOrId: string;
|
|
5
|
+
};
|
|
6
|
+
declare const inspectPlatformGameAppId: ({ platformUrl, token, slugOrId, }: GameAppIdOptions) => Promise<{
|
|
7
|
+
id: string;
|
|
8
|
+
gameId: string;
|
|
9
|
+
key: string;
|
|
10
|
+
allowedOrigins: string[] | null;
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
lastUsedAt: string | null;
|
|
14
|
+
}>;
|
|
15
|
+
declare const updatePlatformGameAppIdOrigins: ({ platformUrl, token, slugOrId, allowedOrigins, }: GameAppIdOptions & {
|
|
16
|
+
allowedOrigins: string[];
|
|
17
|
+
}) => Promise<{
|
|
18
|
+
id: string;
|
|
19
|
+
gameId: string;
|
|
20
|
+
key: string;
|
|
21
|
+
allowedOrigins: string[] | null;
|
|
22
|
+
isActive: boolean;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
lastUsedAt: string | null;
|
|
25
|
+
}>;
|
|
26
|
+
declare const regeneratePlatformGameAppId: ({ platformUrl, token, slugOrId, yes, }: GameAppIdOptions & {
|
|
27
|
+
yes?: boolean;
|
|
28
|
+
}) => Promise<{
|
|
29
|
+
id: string;
|
|
30
|
+
gameId: string;
|
|
31
|
+
key: string;
|
|
32
|
+
allowedOrigins: string[] | null;
|
|
33
|
+
isActive: boolean;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
lastUsedAt: string | null;
|
|
36
|
+
}>;
|
|
37
|
+
declare const checkPlatformGameSlugAvailability: ({ platformUrl, token, slug, game, }: {
|
|
38
|
+
platformUrl?: string;
|
|
39
|
+
token?: string;
|
|
40
|
+
slug: string;
|
|
41
|
+
game?: string;
|
|
42
|
+
}) => Promise<{
|
|
43
|
+
available: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
|
|
46
|
+
export { checkPlatformGameSlugAvailability, inspectPlatformGameAppId, regeneratePlatformGameAppId, updatePlatformGameAppIdOrigins };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestPlatformMachineApi,
|
|
3
|
+
resolvePlatformMachineAuth
|
|
4
|
+
} from "./chunk-2O67AXCU.js";
|
|
5
|
+
|
|
6
|
+
// src/platform-game-app-id.ts
|
|
7
|
+
import {
|
|
8
|
+
platformMachineGameAppIdOriginsInputSchema,
|
|
9
|
+
platformMachineGameAppIdRegenerateInputSchema,
|
|
10
|
+
platformMachineGameAppIdSchema,
|
|
11
|
+
platformMachineGameSlugAvailabilityInputSchema,
|
|
12
|
+
platformMachineGameSlugAvailabilitySchema
|
|
13
|
+
} from "@air-jam/sdk/platform-machine";
|
|
14
|
+
var inspectPlatformGameAppId = async ({
|
|
15
|
+
platformUrl,
|
|
16
|
+
token,
|
|
17
|
+
slugOrId
|
|
18
|
+
}) => {
|
|
19
|
+
const resolved = await resolvePlatformMachineAuth({ platformUrl, token });
|
|
20
|
+
return requestPlatformMachineApi({
|
|
21
|
+
baseUrl: resolved.baseUrl,
|
|
22
|
+
pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/app-id`,
|
|
23
|
+
token: resolved.token,
|
|
24
|
+
schema: platformMachineGameAppIdSchema
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
var updatePlatformGameAppIdOrigins = async ({
|
|
28
|
+
platformUrl,
|
|
29
|
+
token,
|
|
30
|
+
slugOrId,
|
|
31
|
+
allowedOrigins
|
|
32
|
+
}) => {
|
|
33
|
+
const input = platformMachineGameAppIdOriginsInputSchema.parse({
|
|
34
|
+
allowedOrigins
|
|
35
|
+
});
|
|
36
|
+
const resolved = await resolvePlatformMachineAuth({ platformUrl, token });
|
|
37
|
+
return requestPlatformMachineApi({
|
|
38
|
+
baseUrl: resolved.baseUrl,
|
|
39
|
+
pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/app-id/origins`,
|
|
40
|
+
method: "POST",
|
|
41
|
+
token: resolved.token,
|
|
42
|
+
body: input,
|
|
43
|
+
schema: platformMachineGameAppIdSchema
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
var regeneratePlatformGameAppId = async ({
|
|
47
|
+
platformUrl,
|
|
48
|
+
token,
|
|
49
|
+
slugOrId,
|
|
50
|
+
yes
|
|
51
|
+
}) => {
|
|
52
|
+
if (!yes)
|
|
53
|
+
throw new Error(
|
|
54
|
+
"Regenerating the App ID breaks deployed games. Pass --yes to confirm."
|
|
55
|
+
);
|
|
56
|
+
const input = platformMachineGameAppIdRegenerateInputSchema.parse({ yes });
|
|
57
|
+
const resolved = await resolvePlatformMachineAuth({ platformUrl, token });
|
|
58
|
+
return requestPlatformMachineApi({
|
|
59
|
+
baseUrl: resolved.baseUrl,
|
|
60
|
+
pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/app-id/regenerate`,
|
|
61
|
+
method: "POST",
|
|
62
|
+
token: resolved.token,
|
|
63
|
+
body: input,
|
|
64
|
+
schema: platformMachineGameAppIdSchema
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
var checkPlatformGameSlugAvailability = async ({
|
|
68
|
+
platformUrl,
|
|
69
|
+
token,
|
|
70
|
+
slug,
|
|
71
|
+
game
|
|
72
|
+
}) => {
|
|
73
|
+
const input = platformMachineGameSlugAvailabilityInputSchema.parse({
|
|
74
|
+
slug,
|
|
75
|
+
game
|
|
76
|
+
});
|
|
77
|
+
const query = new URLSearchParams({ slug: input.slug });
|
|
78
|
+
if (input.game !== void 0) query.set("game", input.game);
|
|
79
|
+
const resolved = await resolvePlatformMachineAuth({ platformUrl, token });
|
|
80
|
+
return requestPlatformMachineApi({
|
|
81
|
+
baseUrl: resolved.baseUrl,
|
|
82
|
+
pathname: `/api/cli/games/slug-availability?${query}`,
|
|
83
|
+
token: resolved.token,
|
|
84
|
+
schema: platformMachineGameSlugAvailabilitySchema
|
|
85
|
+
});
|
|
86
|
+
};
|
|
87
|
+
export {
|
|
88
|
+
checkPlatformGameSlugAvailability,
|
|
89
|
+
inspectPlatformGameAppId,
|
|
90
|
+
regeneratePlatformGameAppId,
|
|
91
|
+
updatePlatformGameAppIdOrigins
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=platform-game-app-id.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/platform-game-app-id.ts"],"sourcesContent":["import {\n platformMachineGameAppIdOriginsInputSchema,\n platformMachineGameAppIdRegenerateInputSchema,\n platformMachineGameAppIdSchema,\n platformMachineGameSlugAvailabilityInputSchema,\n platformMachineGameSlugAvailabilitySchema,\n} from \"@air-jam/sdk/platform-machine\";\nimport {\n requestPlatformMachineApi,\n resolvePlatformMachineAuth,\n} from \"./platform-auth.js\";\n\ntype GameAppIdOptions = {\n platformUrl?: string;\n token?: string;\n slugOrId: string;\n};\n\nexport const inspectPlatformGameAppId = async ({\n platformUrl,\n token,\n slugOrId,\n}: GameAppIdOptions) => {\n const resolved = await resolvePlatformMachineAuth({ platformUrl, token });\n return requestPlatformMachineApi({\n baseUrl: resolved.baseUrl,\n pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/app-id`,\n token: resolved.token,\n schema: platformMachineGameAppIdSchema,\n });\n};\n\nexport const updatePlatformGameAppIdOrigins = async ({\n platformUrl,\n token,\n slugOrId,\n allowedOrigins,\n}: GameAppIdOptions & { allowedOrigins: string[] }) => {\n const input = platformMachineGameAppIdOriginsInputSchema.parse({\n allowedOrigins,\n });\n const resolved = await resolvePlatformMachineAuth({ platformUrl, token });\n return requestPlatformMachineApi({\n baseUrl: resolved.baseUrl,\n pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/app-id/origins`,\n method: \"POST\",\n token: resolved.token,\n body: input,\n schema: platformMachineGameAppIdSchema,\n });\n};\n\nexport const regeneratePlatformGameAppId = async ({\n platformUrl,\n token,\n slugOrId,\n yes,\n}: GameAppIdOptions & { yes?: boolean }) => {\n if (!yes)\n throw new Error(\n \"Regenerating the App ID breaks deployed games. Pass --yes to confirm.\",\n );\n const input = platformMachineGameAppIdRegenerateInputSchema.parse({ yes });\n const resolved = await resolvePlatformMachineAuth({ platformUrl, token });\n return requestPlatformMachineApi({\n baseUrl: resolved.baseUrl,\n pathname: `/api/cli/games/${encodeURIComponent(slugOrId)}/app-id/regenerate`,\n method: \"POST\",\n token: resolved.token,\n body: input,\n schema: platformMachineGameAppIdSchema,\n });\n};\n\nexport const checkPlatformGameSlugAvailability = async ({\n platformUrl,\n token,\n slug,\n game,\n}: {\n platformUrl?: string;\n token?: string;\n slug: string;\n game?: string;\n}) => {\n const input = platformMachineGameSlugAvailabilityInputSchema.parse({\n slug,\n game,\n });\n const query = new URLSearchParams({ slug: input.slug });\n if (input.game !== undefined) query.set(\"game\", input.game);\n const resolved = await resolvePlatformMachineAuth({ platformUrl, token });\n return requestPlatformMachineApi({\n baseUrl: resolved.baseUrl,\n pathname: `/api/cli/games/slug-availability?${query}`,\n token: resolved.token,\n schema: platformMachineGameSlugAvailabilitySchema,\n });\n};\n"],"mappings":";;;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAYA,IAAM,2BAA2B,OAAO;AAAA,EAC7C;AAAA,EACA;AAAA,EACA;AACF,MAAwB;AACtB,QAAM,WAAW,MAAM,2BAA2B,EAAE,aAAa,MAAM,CAAC;AACxE,SAAO,0BAA0B;AAAA,IAC/B,SAAS,SAAS;AAAA,IAClB,UAAU,kBAAkB,mBAAmB,QAAQ,CAAC;AAAA,IACxD,OAAO,SAAS;AAAA,IAChB,QAAQ;AAAA,EACV,CAAC;AACH;AAEO,IAAM,iCAAiC,OAAO;AAAA,EACnD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAuD;AACrD,QAAM,QAAQ,2CAA2C,MAAM;AAAA,IAC7D;AAAA,EACF,CAAC;AACD,QAAM,WAAW,MAAM,2BAA2B,EAAE,aAAa,MAAM,CAAC;AACxE,SAAO,0BAA0B;AAAA,IAC/B,SAAS,SAAS;AAAA,IAClB,UAAU,kBAAkB,mBAAmB,QAAQ,CAAC;AAAA,IACxD,QAAQ;AAAA,IACR,OAAO,SAAS;AAAA,IAChB,MAAM;AAAA,IACN,QAAQ;AAAA,EACV,CAAC;AACH;AAEO,IAAM,8BAA8B,OAAO;AAAA,EAChD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAA4C;AAC1C,MAAI,CAAC;AACH,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AACF,QAAM,QAAQ,8CAA8C,MAAM,EAAE,IAAI,CAAC;AACzE,QAAM,WAAW,MAAM,2BAA2B,EAAE,aAAa,MAAM,CAAC;AACxE,SAAO,0BAA0B;AAAA,IAC/B,SAAS,SAAS;AAAA,IAClB,UAAU,kBAAkB,mBAAmB,QAAQ,CAAC;AAAA,IACxD,QAAQ;AAAA,IACR,OAAO,SAAS;AAAA,IAChB,MAAM;AAAA,IACN,QAAQ;AAAA,EACV,CAAC;AACH;AAEO,IAAM,oCAAoC,OAAO;AAAA,EACtD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAKM;AACJ,QAAM,QAAQ,+CAA+C,MAAM;AAAA,IACjE;AAAA,IACA;AAAA,EACF,CAAC;AACD,QAAM,QAAQ,IAAI,gBAAgB,EAAE,MAAM,MAAM,KAAK,CAAC;AACtD,MAAI,MAAM,SAAS,OAAW,OAAM,IAAI,QAAQ,MAAM,IAAI;AAC1D,QAAM,WAAW,MAAM,2BAA2B,EAAE,aAAa,MAAM,CAAC;AACxE,SAAO,0BAA0B;AAAA,IAC/B,SAAS,SAAS;AAAA,IAClB,UAAU,oCAAoC,KAAK;AAAA,IACnD,OAAO,SAAS;AAAA,IAChB,QAAQ;AAAA,EACV,CAAC;AACH;","names":[]}
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
import { H as InspectPlatformGameMediaOptions, J as RequestPlatformGameMediaUploadTargetOptions, M as MutatePlatformGameMediaAssetOptions, U as UploadPlatformGameMediaFileOptions } from './types-CdYrgrG_.js';
|
|
2
|
+
import '@air-jam/sdk/platform-machine';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import '@air-jam/sdk/agent-tooling';
|
|
5
|
+
import './game-session-broker-CUvORfMd.js';
|
|
6
|
+
import './game-run-watch-CEd_SpAT.js';
|
|
7
|
+
import 'node:stream';
|
|
8
|
+
import '@air-jam/sdk';
|
|
9
|
+
import '@air-jam/sdk/core';
|
|
10
|
+
|
|
11
|
+
declare const inspectPlatformGameMedia: ({ platformUrl, token, slugOrId, }: InspectPlatformGameMediaOptions) => Promise<{
|
|
12
|
+
game: {
|
|
13
|
+
id: string;
|
|
14
|
+
slug: string | null;
|
|
15
|
+
name: string;
|
|
16
|
+
description: string | null;
|
|
17
|
+
url: string | null;
|
|
18
|
+
arcadeVisibility: "hidden" | "listed";
|
|
19
|
+
arcadeListing: {
|
|
20
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
21
|
+
reason: string | null;
|
|
22
|
+
};
|
|
23
|
+
sourceUrl: string | null;
|
|
24
|
+
templateId: string | null;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
updatedAt: string;
|
|
27
|
+
};
|
|
28
|
+
active: {
|
|
29
|
+
thumbnailMediaAssetId: string | null;
|
|
30
|
+
coverMediaAssetId: string | null;
|
|
31
|
+
previewVideoMediaAssetId: string | null;
|
|
32
|
+
};
|
|
33
|
+
assets: {
|
|
34
|
+
id: string;
|
|
35
|
+
gameId: string;
|
|
36
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
37
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
38
|
+
originalFilename: string;
|
|
39
|
+
mimeType: string;
|
|
40
|
+
sizeBytes: number;
|
|
41
|
+
checksum: string | null;
|
|
42
|
+
width: number | null;
|
|
43
|
+
height: number | null;
|
|
44
|
+
durationSeconds: number | null;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
updatedAt: string;
|
|
47
|
+
activeAssetId: string | null;
|
|
48
|
+
isActive: boolean;
|
|
49
|
+
publicUrl: string | null;
|
|
50
|
+
}[];
|
|
51
|
+
}>;
|
|
52
|
+
declare const requestPlatformGameMediaUploadTarget: ({ platformUrl, token, slugOrId, input, }: RequestPlatformGameMediaUploadTargetOptions) => Promise<{
|
|
53
|
+
game: {
|
|
54
|
+
id: string;
|
|
55
|
+
slug: string | null;
|
|
56
|
+
name: string;
|
|
57
|
+
description: string | null;
|
|
58
|
+
url: string | null;
|
|
59
|
+
arcadeVisibility: "hidden" | "listed";
|
|
60
|
+
arcadeListing: {
|
|
61
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
62
|
+
reason: string | null;
|
|
63
|
+
};
|
|
64
|
+
sourceUrl: string | null;
|
|
65
|
+
templateId: string | null;
|
|
66
|
+
createdAt: string;
|
|
67
|
+
updatedAt: string;
|
|
68
|
+
};
|
|
69
|
+
asset: {
|
|
70
|
+
id: string;
|
|
71
|
+
gameId: string;
|
|
72
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
73
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
74
|
+
originalFilename: string;
|
|
75
|
+
mimeType: string;
|
|
76
|
+
sizeBytes: number;
|
|
77
|
+
checksum: string | null;
|
|
78
|
+
width: number | null;
|
|
79
|
+
height: number | null;
|
|
80
|
+
durationSeconds: number | null;
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
activeAssetId: string | null;
|
|
84
|
+
isActive: boolean;
|
|
85
|
+
publicUrl: string | null;
|
|
86
|
+
};
|
|
87
|
+
upload: {
|
|
88
|
+
method: "PUT";
|
|
89
|
+
url: string;
|
|
90
|
+
headers: Record<string, string>;
|
|
91
|
+
expiresAt: string;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
declare const finalizePlatformGameMediaUpload: (options: MutatePlatformGameMediaAssetOptions) => Promise<{
|
|
95
|
+
game: {
|
|
96
|
+
id: string;
|
|
97
|
+
slug: string | null;
|
|
98
|
+
name: string;
|
|
99
|
+
description: string | null;
|
|
100
|
+
url: string | null;
|
|
101
|
+
arcadeVisibility: "hidden" | "listed";
|
|
102
|
+
arcadeListing: {
|
|
103
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
104
|
+
reason: string | null;
|
|
105
|
+
};
|
|
106
|
+
sourceUrl: string | null;
|
|
107
|
+
templateId: string | null;
|
|
108
|
+
createdAt: string;
|
|
109
|
+
updatedAt: string;
|
|
110
|
+
};
|
|
111
|
+
active: {
|
|
112
|
+
thumbnailMediaAssetId: string | null;
|
|
113
|
+
coverMediaAssetId: string | null;
|
|
114
|
+
previewVideoMediaAssetId: string | null;
|
|
115
|
+
};
|
|
116
|
+
asset: {
|
|
117
|
+
id: string;
|
|
118
|
+
gameId: string;
|
|
119
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
120
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
121
|
+
originalFilename: string;
|
|
122
|
+
mimeType: string;
|
|
123
|
+
sizeBytes: number;
|
|
124
|
+
checksum: string | null;
|
|
125
|
+
width: number | null;
|
|
126
|
+
height: number | null;
|
|
127
|
+
durationSeconds: number | null;
|
|
128
|
+
createdAt: string;
|
|
129
|
+
updatedAt: string;
|
|
130
|
+
activeAssetId: string | null;
|
|
131
|
+
isActive: boolean;
|
|
132
|
+
publicUrl: string | null;
|
|
133
|
+
};
|
|
134
|
+
}>;
|
|
135
|
+
declare const assignPlatformGameMediaAsset: (options: MutatePlatformGameMediaAssetOptions) => Promise<{
|
|
136
|
+
game: {
|
|
137
|
+
id: string;
|
|
138
|
+
slug: string | null;
|
|
139
|
+
name: string;
|
|
140
|
+
description: string | null;
|
|
141
|
+
url: string | null;
|
|
142
|
+
arcadeVisibility: "hidden" | "listed";
|
|
143
|
+
arcadeListing: {
|
|
144
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
145
|
+
reason: string | null;
|
|
146
|
+
};
|
|
147
|
+
sourceUrl: string | null;
|
|
148
|
+
templateId: string | null;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string;
|
|
151
|
+
};
|
|
152
|
+
active: {
|
|
153
|
+
thumbnailMediaAssetId: string | null;
|
|
154
|
+
coverMediaAssetId: string | null;
|
|
155
|
+
previewVideoMediaAssetId: string | null;
|
|
156
|
+
};
|
|
157
|
+
asset: {
|
|
158
|
+
id: string;
|
|
159
|
+
gameId: string;
|
|
160
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
161
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
162
|
+
originalFilename: string;
|
|
163
|
+
mimeType: string;
|
|
164
|
+
sizeBytes: number;
|
|
165
|
+
checksum: string | null;
|
|
166
|
+
width: number | null;
|
|
167
|
+
height: number | null;
|
|
168
|
+
durationSeconds: number | null;
|
|
169
|
+
createdAt: string;
|
|
170
|
+
updatedAt: string;
|
|
171
|
+
activeAssetId: string | null;
|
|
172
|
+
isActive: boolean;
|
|
173
|
+
publicUrl: string | null;
|
|
174
|
+
};
|
|
175
|
+
}>;
|
|
176
|
+
declare const archivePlatformGameMediaAsset: (options: MutatePlatformGameMediaAssetOptions) => Promise<{
|
|
177
|
+
game: {
|
|
178
|
+
id: string;
|
|
179
|
+
slug: string | null;
|
|
180
|
+
name: string;
|
|
181
|
+
description: string | null;
|
|
182
|
+
url: string | null;
|
|
183
|
+
arcadeVisibility: "hidden" | "listed";
|
|
184
|
+
arcadeListing: {
|
|
185
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
186
|
+
reason: string | null;
|
|
187
|
+
};
|
|
188
|
+
sourceUrl: string | null;
|
|
189
|
+
templateId: string | null;
|
|
190
|
+
createdAt: string;
|
|
191
|
+
updatedAt: string;
|
|
192
|
+
};
|
|
193
|
+
active: {
|
|
194
|
+
thumbnailMediaAssetId: string | null;
|
|
195
|
+
coverMediaAssetId: string | null;
|
|
196
|
+
previewVideoMediaAssetId: string | null;
|
|
197
|
+
};
|
|
198
|
+
asset: {
|
|
199
|
+
id: string;
|
|
200
|
+
gameId: string;
|
|
201
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
202
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
203
|
+
originalFilename: string;
|
|
204
|
+
mimeType: string;
|
|
205
|
+
sizeBytes: number;
|
|
206
|
+
checksum: string | null;
|
|
207
|
+
width: number | null;
|
|
208
|
+
height: number | null;
|
|
209
|
+
durationSeconds: number | null;
|
|
210
|
+
createdAt: string;
|
|
211
|
+
updatedAt: string;
|
|
212
|
+
activeAssetId: string | null;
|
|
213
|
+
isActive: boolean;
|
|
214
|
+
publicUrl: string | null;
|
|
215
|
+
};
|
|
216
|
+
}>;
|
|
217
|
+
declare const uploadPlatformGameMediaFile: ({ platformUrl, token, slugOrId, kind, filePath, }: UploadPlatformGameMediaFileOptions) => Promise<{
|
|
218
|
+
requested: {
|
|
219
|
+
game: {
|
|
220
|
+
id: string;
|
|
221
|
+
slug: string | null;
|
|
222
|
+
name: string;
|
|
223
|
+
description: string | null;
|
|
224
|
+
url: string | null;
|
|
225
|
+
arcadeVisibility: "hidden" | "listed";
|
|
226
|
+
arcadeListing: {
|
|
227
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
228
|
+
reason: string | null;
|
|
229
|
+
};
|
|
230
|
+
sourceUrl: string | null;
|
|
231
|
+
templateId: string | null;
|
|
232
|
+
createdAt: string;
|
|
233
|
+
updatedAt: string;
|
|
234
|
+
};
|
|
235
|
+
asset: {
|
|
236
|
+
id: string;
|
|
237
|
+
gameId: string;
|
|
238
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
239
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
240
|
+
originalFilename: string;
|
|
241
|
+
mimeType: string;
|
|
242
|
+
sizeBytes: number;
|
|
243
|
+
checksum: string | null;
|
|
244
|
+
width: number | null;
|
|
245
|
+
height: number | null;
|
|
246
|
+
durationSeconds: number | null;
|
|
247
|
+
createdAt: string;
|
|
248
|
+
updatedAt: string;
|
|
249
|
+
activeAssetId: string | null;
|
|
250
|
+
isActive: boolean;
|
|
251
|
+
publicUrl: string | null;
|
|
252
|
+
};
|
|
253
|
+
upload: {
|
|
254
|
+
method: "PUT";
|
|
255
|
+
url: string;
|
|
256
|
+
headers: Record<string, string>;
|
|
257
|
+
expiresAt: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
finalized: {
|
|
261
|
+
game: {
|
|
262
|
+
id: string;
|
|
263
|
+
slug: string | null;
|
|
264
|
+
name: string;
|
|
265
|
+
description: string | null;
|
|
266
|
+
url: string | null;
|
|
267
|
+
arcadeVisibility: "hidden" | "listed";
|
|
268
|
+
arcadeListing: {
|
|
269
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
270
|
+
reason: string | null;
|
|
271
|
+
};
|
|
272
|
+
sourceUrl: string | null;
|
|
273
|
+
templateId: string | null;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
updatedAt: string;
|
|
276
|
+
};
|
|
277
|
+
active: {
|
|
278
|
+
thumbnailMediaAssetId: string | null;
|
|
279
|
+
coverMediaAssetId: string | null;
|
|
280
|
+
previewVideoMediaAssetId: string | null;
|
|
281
|
+
};
|
|
282
|
+
asset: {
|
|
283
|
+
id: string;
|
|
284
|
+
gameId: string;
|
|
285
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
286
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
287
|
+
originalFilename: string;
|
|
288
|
+
mimeType: string;
|
|
289
|
+
sizeBytes: number;
|
|
290
|
+
checksum: string | null;
|
|
291
|
+
width: number | null;
|
|
292
|
+
height: number | null;
|
|
293
|
+
durationSeconds: number | null;
|
|
294
|
+
createdAt: string;
|
|
295
|
+
updatedAt: string;
|
|
296
|
+
activeAssetId: string | null;
|
|
297
|
+
isActive: boolean;
|
|
298
|
+
publicUrl: string | null;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
assigned: {
|
|
302
|
+
game: {
|
|
303
|
+
id: string;
|
|
304
|
+
slug: string | null;
|
|
305
|
+
name: string;
|
|
306
|
+
description: string | null;
|
|
307
|
+
url: string | null;
|
|
308
|
+
arcadeVisibility: "hidden" | "listed";
|
|
309
|
+
arcadeListing: {
|
|
310
|
+
status: "rejected" | "approved" | "not_requested" | "awaiting_approval";
|
|
311
|
+
reason: string | null;
|
|
312
|
+
};
|
|
313
|
+
sourceUrl: string | null;
|
|
314
|
+
templateId: string | null;
|
|
315
|
+
createdAt: string;
|
|
316
|
+
updatedAt: string;
|
|
317
|
+
};
|
|
318
|
+
active: {
|
|
319
|
+
thumbnailMediaAssetId: string | null;
|
|
320
|
+
coverMediaAssetId: string | null;
|
|
321
|
+
previewVideoMediaAssetId: string | null;
|
|
322
|
+
};
|
|
323
|
+
asset: {
|
|
324
|
+
id: string;
|
|
325
|
+
gameId: string;
|
|
326
|
+
kind: "cover" | "thumbnail" | "preview_video";
|
|
327
|
+
status: "ready" | "failed" | "draft" | "uploading" | "archived";
|
|
328
|
+
originalFilename: string;
|
|
329
|
+
mimeType: string;
|
|
330
|
+
sizeBytes: number;
|
|
331
|
+
checksum: string | null;
|
|
332
|
+
width: number | null;
|
|
333
|
+
height: number | null;
|
|
334
|
+
durationSeconds: number | null;
|
|
335
|
+
createdAt: string;
|
|
336
|
+
updatedAt: string;
|
|
337
|
+
activeAssetId: string | null;
|
|
338
|
+
isActive: boolean;
|
|
339
|
+
publicUrl: string | null;
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
filePath: string;
|
|
343
|
+
sizeBytes: number;
|
|
344
|
+
contentType: string;
|
|
345
|
+
}>;
|
|
346
|
+
|
|
347
|
+
export { InspectPlatformGameMediaOptions, MutatePlatformGameMediaAssetOptions, RequestPlatformGameMediaUploadTargetOptions, UploadPlatformGameMediaFileOptions, archivePlatformGameMediaAsset, assignPlatformGameMediaAsset, finalizePlatformGameMediaUpload, inspectPlatformGameMedia, requestPlatformGameMediaUploadTarget, uploadPlatformGameMediaFile };
|