@crowdedkingdoms/crowdyjs 8.22.0 → 10.0.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/MIGRATION.md +66 -0
- package/README.md +111 -7
- package/dist/crowdy-client.d.ts +3 -0
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +2 -0
- package/dist/domains/playerCodeProjects.d.ts +25 -0
- package/dist/domains/playerCodeProjects.d.ts.map +1 -0
- package/dist/domains/playerCodeProjects.js +299 -0
- package/dist/domains/playerCompute.d.ts +1 -1
- package/dist/domains/playerCompute.js +1 -1
- package/dist/generated/graphql.d.ts +792 -7
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +57 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -5
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/live-coding/assets/browser-authoring-index.json +1 -0
- package/dist/live-coding/assets/manifest.json +19 -0
- package/dist/live-coding/assets/tree-sitter-rust.wasm +0 -0
- package/dist/live-coding/assets/web-tree-sitter.wasm +0 -0
- package/dist/live-coding/browser-authoring-index.generated.d.ts +2 -0
- package/dist/live-coding/browser-authoring-index.generated.d.ts.map +1 -0
- package/dist/live-coding/browser-authoring-index.generated.js +5127 -0
- package/dist/live-coding/lsp-protocol.d.ts +98 -0
- package/dist/live-coding/lsp-protocol.d.ts.map +1 -0
- package/dist/live-coding/lsp-protocol.js +70 -0
- package/dist/live-coding/monaco-services.d.ts +22 -0
- package/dist/live-coding/monaco-services.d.ts.map +1 -0
- package/dist/live-coding/monaco-services.js +69 -0
- package/dist/live-coding/platform-index.d.ts +29 -0
- package/dist/live-coding/platform-index.d.ts.map +1 -0
- package/dist/live-coding/platform-index.js +281 -0
- package/dist/live-coding/rust-analysis.d.ts +24 -0
- package/dist/live-coding/rust-analysis.d.ts.map +1 -0
- package/dist/live-coding/rust-analysis.js +375 -0
- package/dist/live-coding/rust-lsp-server.d.ts +43 -0
- package/dist/live-coding/rust-lsp-server.d.ts.map +1 -0
- package/dist/live-coding/rust-lsp-server.js +455 -0
- package/dist/live-coding/rust-lsp.worker.d.ts +2 -0
- package/dist/live-coding/rust-lsp.worker.d.ts.map +1 -0
- package/dist/live-coding/rust-lsp.worker.js +26 -0
- package/dist/live-coding/vfs.d.ts +41 -0
- package/dist/live-coding/vfs.d.ts.map +1 -0
- package/dist/live-coding/vfs.js +174 -0
- package/dist/live-coding/worker-transport.d.ts +63 -0
- package/dist/live-coding/worker-transport.d.ts.map +1 -0
- package/dist/live-coding/worker-transport.js +217 -0
- package/dist/mod-studio/controller.d.ts +188 -0
- package/dist/mod-studio/controller.d.ts.map +1 -0
- package/dist/mod-studio/controller.js +915 -0
- package/dist/mod-studio/diagnostics.d.ts +22 -0
- package/dist/mod-studio/diagnostics.d.ts.map +1 -0
- package/dist/mod-studio/diagnostics.js +141 -0
- package/dist/mod-studio/dom-shell.d.ts +55 -0
- package/dist/mod-studio/dom-shell.d.ts.map +1 -0
- package/dist/mod-studio/dom-shell.js +527 -0
- package/dist/mod-studio/editor.d.ts +17 -0
- package/dist/mod-studio/editor.d.ts.map +1 -0
- package/dist/mod-studio/editor.js +1 -0
- package/dist/mod-studio/index.d.ts +10 -0
- package/dist/mod-studio/index.d.ts.map +1 -0
- package/dist/mod-studio/index.js +9 -0
- package/dist/mod-studio/models.d.ts +149 -0
- package/dist/mod-studio/models.d.ts.map +1 -0
- package/dist/mod-studio/models.js +62 -0
- package/dist/mod-studio/monaco-editor.d.ts +16 -0
- package/dist/mod-studio/monaco-editor.d.ts.map +1 -0
- package/dist/mod-studio/monaco-editor.js +548 -0
- package/dist/mod-studio/mount.d.ts +17 -0
- package/dist/mod-studio/mount.d.ts.map +1 -0
- package/dist/mod-studio/mount.js +86 -0
- package/dist/mod-studio/starter-projects.d.ts +11 -0
- package/dist/mod-studio/starter-projects.d.ts.map +1 -0
- package/dist/mod-studio/starter-projects.js +102 -0
- package/dist/mod-studio/styles.d.ts +2 -0
- package/dist/mod-studio/styles.d.ts.map +1 -0
- package/dist/mod-studio/styles.js +14 -0
- package/dist/mod-studio/textarea-editor.d.ts +8 -0
- package/dist/mod-studio/textarea-editor.d.ts.map +1 -0
- package/dist/mod-studio/textarea-editor.js +71 -0
- package/package.json +18 -6
- package/dist/live-coding/ide.d.ts +0 -16
- package/dist/live-coding/ide.d.ts.map +0 -1
- package/dist/live-coding/ide.js +0 -399
- package/dist/live-coding/live-coding-controller.d.ts +0 -75
- package/dist/live-coding/live-coding-controller.d.ts.map +0 -1
- package/dist/live-coding/live-coding-controller.js +0 -141
- package/dist/live-coding/mount.d.ts +0 -26
- package/dist/live-coding/mount.d.ts.map +0 -1
- package/dist/live-coding/mount.js +0 -108
- package/dist/live-coding/templates.d.ts +0 -17
- package/dist/live-coding/templates.d.ts.map +0 -1
- package/dist/live-coding/templates.js +0 -59
|
@@ -1013,7 +1013,7 @@ export type CksBuddyHealth = {
|
|
|
1013
1013
|
/** Timestamp of the last server_status heartbeat (game DB). */
|
|
1014
1014
|
updatedAt: Maybe<Scalars['DateTime']['output']>;
|
|
1015
1015
|
};
|
|
1016
|
-
/**
|
|
1016
|
+
/** Progress for the active or most recent deploy/destroy change order, with per-task counts and a retry hint. Durable change orders may expose read-only projected tasks and steps; planned work remains pending until an outcome is observed or inferred. */
|
|
1017
1017
|
export type CksDeployProgress = {
|
|
1018
1018
|
__typename?: 'CksDeployProgress';
|
|
1019
1019
|
/** Redeploy is allowed (failed deploy or stuck order cleared) */
|
|
@@ -1035,24 +1035,27 @@ export type CksDeployProgress = {
|
|
|
1035
1035
|
tasksSucceeded: Scalars['Int']['output'];
|
|
1036
1036
|
tasksTotal: Scalars['Int']['output'];
|
|
1037
1037
|
};
|
|
1038
|
-
/** A single step within a deploy/destroy task
|
|
1038
|
+
/** A single step within a deploy/destroy task. Progress may be recorded directly or exposed as a read-only projection for a durable change order. Planned steps remain pending until an outcome is observed or inferred. */
|
|
1039
1039
|
export type CksDeployProgressStep = {
|
|
1040
1040
|
__typename?: 'CksDeployProgressStep';
|
|
1041
|
+
/** Attempt count. For projected progress, 0 means no attempt or outcome has been observed or inferred; 1 means an attempt or outcome has been observed or inferred. */
|
|
1041
1042
|
attempt: Scalars['Int']['output'];
|
|
1042
1043
|
error: Maybe<Scalars['String']['output']>;
|
|
1043
1044
|
id: Scalars['String']['output'];
|
|
1044
1045
|
kind: Scalars['String']['output'];
|
|
1045
1046
|
/** Human-readable step label for the org UI */
|
|
1046
1047
|
label: Scalars['String']['output'];
|
|
1048
|
+
/** Execution status. For projected progress, pending means the step is planned and no terminal outcome is available yet. */
|
|
1047
1049
|
status: Scalars['String']['output'];
|
|
1048
1050
|
};
|
|
1049
|
-
/** A task in a deploy/destroy pipeline, containing ordered steps. */
|
|
1051
|
+
/** A task in a deploy/destroy pipeline, containing ordered steps. Durable change orders may expose task progress as a read-only projection. */
|
|
1050
1052
|
export type CksDeployProgressTask = {
|
|
1051
1053
|
__typename?: 'CksDeployProgressTask';
|
|
1052
1054
|
error: Maybe<Scalars['String']['output']>;
|
|
1053
1055
|
id: Scalars['String']['output'];
|
|
1054
1056
|
kind: Scalars['String']['output'];
|
|
1055
1057
|
label: Scalars['String']['output'];
|
|
1058
|
+
/** Execution status derived from available step outcomes. Active projected tasks may contain pending steps when exact live state is unavailable. */
|
|
1056
1059
|
status: Scalars['String']['output'];
|
|
1057
1060
|
steps: Array<CksDeployProgressStep>;
|
|
1058
1061
|
};
|
|
@@ -1177,9 +1180,9 @@ export type CksEnvironmentDetail = {
|
|
|
1177
1180
|
buddyHealth: Maybe<CksBuddyHealth>;
|
|
1178
1181
|
changeOrders: Array<CksEnvironmentChangeOrder>;
|
|
1179
1182
|
components: Array<CksEnvironmentComponent>;
|
|
1180
|
-
/**
|
|
1183
|
+
/** Deploy task/step progress for the active or most recent deploy. Durable change orders may expose read-only projected progress, with planned work pending until an outcome is observed or inferred. */
|
|
1181
1184
|
deployProgress: Maybe<CksDeployProgress>;
|
|
1182
|
-
/** Destroy tear-down progress for game-api and platform change orders */
|
|
1185
|
+
/** Destroy tear-down progress for game-api and platform change orders. Durable change orders may expose read-only projected progress and show planned work as pending. */
|
|
1183
1186
|
destroyProgress: Array<CksDeployProgress>;
|
|
1184
1187
|
environment: CksEnvironment;
|
|
1185
1188
|
outputs: Array<CksEnvironmentOutput>;
|
|
@@ -1563,6 +1566,7 @@ export type CpChangeOrder = {
|
|
|
1563
1566
|
status: Scalars['String']['output'];
|
|
1564
1567
|
updatedAt: Scalars['DateTime']['output'];
|
|
1565
1568
|
};
|
|
1569
|
+
/** Change-order detail with ordered task and step progress. Durable change orders may return read-only projected rows when exact live execution details are unavailable. */
|
|
1566
1570
|
export type CpChangeOrderDetail = {
|
|
1567
1571
|
__typename?: 'CpChangeOrderDetail';
|
|
1568
1572
|
order: CpChangeOrder;
|
|
@@ -1713,8 +1717,10 @@ export type CpSetComputePlatformCeilingsInput = {
|
|
|
1713
1717
|
/** Max tick rate in Hz per module. > 0; explicit null clears the override; omit to leave unchanged. */
|
|
1714
1718
|
maxTickHz?: InputMaybe<Scalars['Int']['input']>;
|
|
1715
1719
|
};
|
|
1720
|
+
/** Operator step progress. Rows may contain recorded execution progress or a read-only projection. Fields unavailable for projected progress remain null. */
|
|
1716
1721
|
export type CpStepRow = {
|
|
1717
1722
|
__typename?: 'CpStepRow';
|
|
1723
|
+
/** Attempt indicator. For projected progress, 0 means no attempt or outcome has been observed or inferred; 1 means an attempt or outcome has been observed or inferred. */
|
|
1718
1724
|
attempt: Scalars['Int']['output'];
|
|
1719
1725
|
claimedBy: Maybe<Scalars['String']['output']>;
|
|
1720
1726
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -1730,10 +1736,12 @@ export type CpStepRow = {
|
|
|
1730
1736
|
payloadJson: Maybe<Scalars['String']['output']>;
|
|
1731
1737
|
recheckAt: Maybe<Scalars['DateTime']['output']>;
|
|
1732
1738
|
startedAt: Maybe<Scalars['DateTime']['output']>;
|
|
1739
|
+
/** Execution status. For projected progress, pending means the step is planned and no terminal outcome is available yet. */
|
|
1733
1740
|
status: Scalars['String']['output'];
|
|
1734
1741
|
taskId: Scalars['String']['output'];
|
|
1735
1742
|
updatedAt: Scalars['DateTime']['output'];
|
|
1736
1743
|
};
|
|
1744
|
+
/** Operator task progress. Rows may contain recorded execution progress or a read-only projection for a durable change order. */
|
|
1737
1745
|
export type CpTaskRow = {
|
|
1738
1746
|
__typename?: 'CpTaskRow';
|
|
1739
1747
|
changeOrderId: Scalars['String']['output'];
|
|
@@ -1748,6 +1756,7 @@ export type CpTaskRow = {
|
|
|
1748
1756
|
kind: Scalars['String']['output'];
|
|
1749
1757
|
ordinal: Scalars['Int']['output'];
|
|
1750
1758
|
startedAt: Maybe<Scalars['DateTime']['output']>;
|
|
1759
|
+
/** Execution status. For projected progress, pending means the task is planned and no terminal outcome is available yet. */
|
|
1751
1760
|
status: Scalars['String']['output'];
|
|
1752
1761
|
updatedAt: Scalars['DateTime']['output'];
|
|
1753
1762
|
};
|
|
@@ -2046,6 +2055,46 @@ export type CreatePlayerAutomationInput = {
|
|
|
2046
2055
|
/** Strict trigger JSON. Schedule: {"kind":"schedule","scheduleKind":"interval","intervalMs":2000} or cron with cronExpr. Event: {"kind":"event","eventKind":"owner_container_changed|grid_actor_changed|grid_voxel_changed|compute_event"}; compute_event may include eventName. */
|
|
2047
2056
|
triggerJson: Scalars['String']['input'];
|
|
2048
2057
|
};
|
|
2058
|
+
/** Lazily create a private project by copying the authenticated author’s latest source versions from existing self-authored player modules. */
|
|
2059
|
+
export type CreatePlayerCodeProjectFromModulesInput = {
|
|
2060
|
+
/** App tenant containing the authored modules. */
|
|
2061
|
+
appId: Scalars['BigInt']['input'];
|
|
2062
|
+
/** Existing self-authored CLIENT module name to copy; at least one module name is required. */
|
|
2063
|
+
clientModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
2064
|
+
/** Grid containing the authored modules. Current ownership is not required to recover one’s own source, but deployment is rechecked separately. */
|
|
2065
|
+
gridId: Scalars['BigInt']['input'];
|
|
2066
|
+
/** Optional 24-hour retry key. The operation also returns an already-created active project with the same module affinity. */
|
|
2067
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
2068
|
+
/** Optional project name. Omit to derive a bounded name from the imported module name(s). */
|
|
2069
|
+
projectName?: InputMaybe<Scalars['String']['input']>;
|
|
2070
|
+
/** Existing self-authored SERVER module name to copy; at least one module name is required. */
|
|
2071
|
+
serverModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
2072
|
+
};
|
|
2073
|
+
/** Create a private player-owned project, optionally with bounded initial files for either target. */
|
|
2074
|
+
export type CreatePlayerCodeProjectInput = {
|
|
2075
|
+
/** Supported guest ABI pin; defaults to ABI 0. */
|
|
2076
|
+
abiVersion?: InputMaybe<Scalars['Int']['input']>;
|
|
2077
|
+
/** App tenant. Requires an app-scoped token for this exact app; the project is owned by the authenticated user. */
|
|
2078
|
+
appId: Scalars['BigInt']['input'];
|
|
2079
|
+
/** Optional stable crate-style CLIENT module name. It must differ from the server name. */
|
|
2080
|
+
clientModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
2081
|
+
/** Optional private project description. */
|
|
2082
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
2083
|
+
/** Optional grid affinity in the same app. Affinity does not grant deployment permission and survives ownership transfer. */
|
|
2084
|
+
gridId?: InputMaybe<Scalars['BigInt']['input']>;
|
|
2085
|
+
/** Optional retry key. Same user, operation, key, and input replay the first result for 24 hours; changed input returns IDEMPOTENCY_CONFLICT. */
|
|
2086
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
2087
|
+
/** Optional initial source files. At most 16 total and at most 8/256 KiB independently per target. */
|
|
2088
|
+
initialFiles?: InputMaybe<Array<PlayerCodeProjectFileInput>>;
|
|
2089
|
+
/** Player-facing project name. */
|
|
2090
|
+
name: Scalars['String']['input'];
|
|
2091
|
+
/** Optional editor pairing preference; defaults to PAIRED. */
|
|
2092
|
+
pairingPreference?: InputMaybe<PlayerCodePairingPreference>;
|
|
2093
|
+
/** Supported crowdy-compute-sdk pin; defaults to the current 0.1.5 authoring pin. */
|
|
2094
|
+
sdkVersion?: InputMaybe<Scalars['String']['input']>;
|
|
2095
|
+
/** Optional stable crate-style SERVER module name. Deployment rechecks current authority. */
|
|
2096
|
+
serverModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
2097
|
+
};
|
|
2049
2098
|
/** Create a flexible player-owned model container inside one grid. The caller must currently own the grid; owner identity cannot be supplied. */
|
|
2050
2099
|
export type CreatePlayerModelContainerInput = {
|
|
2051
2100
|
/** App containing the owned grid. */
|
|
@@ -3324,7 +3373,7 @@ export type GridOwnership = {
|
|
|
3324
3373
|
__typename?: 'GridOwnership';
|
|
3325
3374
|
/** When this ownership began. */
|
|
3326
3375
|
acquiredAt: Scalars['DateTime']['output'];
|
|
3327
|
-
/** Audit origin of this ownership (for example studio_grant, transfer, or marketplace). */
|
|
3376
|
+
/** Audit origin of this ownership (for example studio_grant, self_claim, self_claim_chunk, transfer, or marketplace). self_claim_chunk identifies a grid created by claimGridChunk and eligible for owner release. */
|
|
3328
3377
|
acquiredVia: Scalars['String']['output'];
|
|
3329
3378
|
/** App that contains the grid. */
|
|
3330
3379
|
appId: Scalars['BigInt']['output'];
|
|
@@ -3446,6 +3495,25 @@ export type GroupRole = {
|
|
|
3446
3495
|
/** Role display name (unique within the group). */
|
|
3447
3496
|
roleName: Scalars['String']['output'];
|
|
3448
3497
|
};
|
|
3498
|
+
/** Copy a private library revision or immutable published common version into a project by value. */
|
|
3499
|
+
export type ImportPlayerCodeProjectFileInput = {
|
|
3500
|
+
/** App tenant shared by the project and import source. */
|
|
3501
|
+
appId: Scalars['BigInt']['input'];
|
|
3502
|
+
/** Immutable common version UUID; required only for COMMON imports. */
|
|
3503
|
+
commonVersionId?: InputMaybe<Scalars['String']['input']>;
|
|
3504
|
+
/** Optional safe destination path. Omit to use the source entry’s path or path hint. */
|
|
3505
|
+
destinationPath?: InputMaybe<Scalars['String']['input']>;
|
|
3506
|
+
/** Current project revision; the copy and revision increment are atomic. */
|
|
3507
|
+
expectedProjectRevision: Scalars['BigInt']['input'];
|
|
3508
|
+
/** Optional 24-hour retry key. */
|
|
3509
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
3510
|
+
/** Caller-owned library file UUID; required only for LIBRARY imports. */
|
|
3511
|
+
libraryFileId?: InputMaybe<Scalars['String']['input']>;
|
|
3512
|
+
/** Destination project UUID. */
|
|
3513
|
+
projectId: Scalars['String']['input'];
|
|
3514
|
+
/** Private LIBRARY or app-curated COMMON source. */
|
|
3515
|
+
source: PlayerCodeImportSource;
|
|
3516
|
+
};
|
|
3449
3517
|
export type IngestEnvironmentVersionInput = {
|
|
3450
3518
|
/** Overwrite an existing version row if one already exists (default false). */
|
|
3451
3519
|
force?: Scalars['Boolean']['input'];
|
|
@@ -3786,6 +3854,26 @@ export type Mutation = {
|
|
|
3786
3854
|
playerAutomationDelete: Scalars['Boolean']['output'];
|
|
3787
3855
|
/** Enable or disable one caller-owned player automation. Enabling requires effective run_server_code and, in strict mode, author admission. Interval/cron triggers compute the first due time; the P1 dispatcher executes scheduled studio-model actions while event delivery and player-compute actions remain typed pending paths. */
|
|
3788
3856
|
playerAutomationSetEnabled: PlayerAutomation;
|
|
3857
|
+
/** Publish a new immutable version of an app-scoped studio-curated common file and make it the current player-readable version. Requires an app-scoped token plus the app manage_compute permission. Old versions remain immutable for provenance; an idempotency key is strongly recommended for transport retries. */
|
|
3858
|
+
playerCodeCommonPublish: PlayerCodeCommonFile;
|
|
3859
|
+
/** Create or optimistically update one private personal-library source file. Requires an app-scoped token; ownership is always the authenticated player and cannot be delegated. Safe source paths, 64-KiB content, revision, and configurable bounded aggregate library storage are enforced atomically. */
|
|
3860
|
+
playerCodeLibrarySave: PlayerCodeLibraryFile;
|
|
3861
|
+
/** Archive or restore one caller-owned personal-library file under optimistic revision control. Requires an app-scoped token and exact app/user ownership; archived entries remain retained but cannot be imported until restored. */
|
|
3862
|
+
playerCodeLibrarySetArchived: PlayerCodeLibraryFile;
|
|
3863
|
+
/** Create a private revisioned Mod Studio project for the authenticated player, optionally with initial server/client text files. Requires only an app-scoped token for the input app; optional grid affinity is validated but grants no deployment authority. Source paths, per-target deploy caps, and aggregate owner/app storage are enforced atomically. */
|
|
3864
|
+
playerCodeProjectCreate: PlayerCodeProject;
|
|
3865
|
+
/** Lazily create a private project by copying the authenticated author’s latest source from an existing self-authored SERVER module, CLIENT module, or both. Requires an app-scoped token and authorship of every requested module; current grid ownership is deliberately not required for private source recovery after transfer, while any later deploy still rechecks ownership and target permissions. Repeated requests reuse the matching active project. */
|
|
3866
|
+
playerCodeProjectCreateFromModules: PlayerCodeProject;
|
|
3867
|
+
/** Copy one active caller-owned library revision or one immutable published app-common version into a private project by value. Requires an app-scoped token and exact project ownership. The source is re-authorized, content/provenance are snapshotted, project caps and aggregate storage are checked, and the project revision advances atomically. */
|
|
3868
|
+
playerCodeProjectImportFile: PlayerCodeProject;
|
|
3869
|
+
/** Atomically save selected private project metadata and a batch of file upserts/deletes under one expected project revision. Requires an app-scoped token and exact project ownership. No partial metadata or file changes survive validation, target-cap, aggregate-storage, module-binding, or revision failures. */
|
|
3870
|
+
playerCodeProjectSave: PlayerCodeProject;
|
|
3871
|
+
/** Apply a batch of project-file upserts and deletes in one transaction under one expected project revision. Requires an app-scoped token and exact project ownership. No partial writes survive path, manifest, independent 8-file/64-KiB-file/256-KiB-target caps, aggregate storage, or revision failures. */
|
|
3872
|
+
playerCodeProjectSaveFiles: PlayerCodeProject;
|
|
3873
|
+
/** Optimistically save selected private project metadata and increment its monotonic revision. Requires an app-scoped token and exact project ownership. A stale expectedRevision returns CONFLICT; grid affinity remains an authoring hint and never bypasses player-compute deployment checks. */
|
|
3874
|
+
playerCodeProjectSaveMetadata: PlayerCodeProject;
|
|
3875
|
+
/** Archive or restore a private project without deleting any source or provenance, using optimistic revision control. Requires an app-scoped token and exact owner match. Archived projects remain readable by their owner but are read-only until restored. */
|
|
3876
|
+
playerCodeProjectSetArchived: PlayerCodeProject;
|
|
3789
3877
|
/** Delete a self-authored player module and its source versions. Only the code author may delete it, and they must still own the target grid. Returns false when no matching module exists. */
|
|
3790
3878
|
playerComputeDelete: Scalars['Boolean']['output'];
|
|
3791
3879
|
/** Deploy player-authored Rust into a grid the caller currently owns. Requires the target's write permission at both app-tier and grid ACL layers. One call creates/updates the module and publishes an immutable pending version; the shared compiler builds it asynchronously. Authoring is never admission-gated, but only the original author may replace closed source. */
|
|
@@ -4400,6 +4488,36 @@ export type MutationPlayerAutomationDeleteArgs = {
|
|
|
4400
4488
|
export type MutationPlayerAutomationSetEnabledArgs = {
|
|
4401
4489
|
input: SetPlayerAutomationEnabledInput;
|
|
4402
4490
|
};
|
|
4491
|
+
export type MutationPlayerCodeCommonPublishArgs = {
|
|
4492
|
+
input: PublishPlayerCodeCommonFileInput;
|
|
4493
|
+
};
|
|
4494
|
+
export type MutationPlayerCodeLibrarySaveArgs = {
|
|
4495
|
+
input: SavePlayerCodeLibraryFileInput;
|
|
4496
|
+
};
|
|
4497
|
+
export type MutationPlayerCodeLibrarySetArchivedArgs = {
|
|
4498
|
+
input: SetPlayerCodeLibraryFileArchivedInput;
|
|
4499
|
+
};
|
|
4500
|
+
export type MutationPlayerCodeProjectCreateArgs = {
|
|
4501
|
+
input: CreatePlayerCodeProjectInput;
|
|
4502
|
+
};
|
|
4503
|
+
export type MutationPlayerCodeProjectCreateFromModulesArgs = {
|
|
4504
|
+
input: CreatePlayerCodeProjectFromModulesInput;
|
|
4505
|
+
};
|
|
4506
|
+
export type MutationPlayerCodeProjectImportFileArgs = {
|
|
4507
|
+
input: ImportPlayerCodeProjectFileInput;
|
|
4508
|
+
};
|
|
4509
|
+
export type MutationPlayerCodeProjectSaveArgs = {
|
|
4510
|
+
input: SavePlayerCodeProjectInput;
|
|
4511
|
+
};
|
|
4512
|
+
export type MutationPlayerCodeProjectSaveFilesArgs = {
|
|
4513
|
+
input: SavePlayerCodeProjectFilesInput;
|
|
4514
|
+
};
|
|
4515
|
+
export type MutationPlayerCodeProjectSaveMetadataArgs = {
|
|
4516
|
+
input: SavePlayerCodeProjectMetadataInput;
|
|
4517
|
+
};
|
|
4518
|
+
export type MutationPlayerCodeProjectSetArchivedArgs = {
|
|
4519
|
+
input: SetPlayerCodeProjectArchivedInput;
|
|
4520
|
+
};
|
|
4403
4521
|
export type MutationPlayerComputeDeleteArgs = {
|
|
4404
4522
|
appId: Scalars['BigInt']['input'];
|
|
4405
4523
|
gridId: Scalars['BigInt']['input'];
|
|
@@ -5291,6 +5409,69 @@ export declare enum PlayerCodeAdmissionState {
|
|
|
5291
5409
|
Pending = "PENDING",
|
|
5292
5410
|
Revoked = "REVOKED"
|
|
5293
5411
|
}
|
|
5412
|
+
/** A studio-curated app-scoped common file at its current immutable published version. Unlike personal source, this content is intentionally readable by app-scoped players. */
|
|
5413
|
+
export type PlayerCodeCommonFile = {
|
|
5414
|
+
__typename?: 'PlayerCodeCommonFile';
|
|
5415
|
+
/** App tenant whose players may read this published entry. */
|
|
5416
|
+
appId: Scalars['BigInt']['output'];
|
|
5417
|
+
/** Stable common catalog entry UUID. */
|
|
5418
|
+
commonFileId: Scalars['String']['output'];
|
|
5419
|
+
/** Published UTF-8 source text for this immutable version. */
|
|
5420
|
+
content: Scalars['String']['output'];
|
|
5421
|
+
/** Lowercase SHA-256 digest of the exact UTF-8 content bytes. */
|
|
5422
|
+
contentSha256: Scalars['String']['output'];
|
|
5423
|
+
/** Catalog entry creation timestamp. */
|
|
5424
|
+
createdAt: Scalars['DateTime']['output'];
|
|
5425
|
+
/** Optional studio-authored catalog description. */
|
|
5426
|
+
description: Maybe<Scalars['String']['output']>;
|
|
5427
|
+
/** Safe recommended project destination path. */
|
|
5428
|
+
path: Scalars['String']['output'];
|
|
5429
|
+
/** Timestamp when the current immutable version was published. */
|
|
5430
|
+
publishedAt: Scalars['DateTime']['output'];
|
|
5431
|
+
/** Studio user that published the current immutable version. */
|
|
5432
|
+
publishedByUserId: Scalars['BigInt']['output'];
|
|
5433
|
+
/** Stable lowercase URL-safe catalog slug. */
|
|
5434
|
+
slug: Scalars['String']['output'];
|
|
5435
|
+
/** Catalog lifecycle state; ordinary player queries expose only PUBLISHED. */
|
|
5436
|
+
status: PlayerCodeCommonStatus;
|
|
5437
|
+
/** Normalized studio-curated discovery tags. */
|
|
5438
|
+
tags: Array<Scalars['String']['output']>;
|
|
5439
|
+
/** Compatible project target for this catalog entry. */
|
|
5440
|
+
target: PlayerCodeTarget;
|
|
5441
|
+
/** Studio-authored catalog title. */
|
|
5442
|
+
title: Scalars['String']['output'];
|
|
5443
|
+
/** Timestamp of the latest catalog publication. */
|
|
5444
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
5445
|
+
/** Current immutable content-version UUID. */
|
|
5446
|
+
versionId: Scalars['String']['output'];
|
|
5447
|
+
/** Monotonic immutable version number within the catalog entry. */
|
|
5448
|
+
versionNo: Scalars['BigInt']['output'];
|
|
5449
|
+
};
|
|
5450
|
+
/** Studio-controlled catalog visibility. Player catalog queries return only published entries. */
|
|
5451
|
+
export declare enum PlayerCodeCommonStatus {
|
|
5452
|
+
/** Retained for provenance but hidden from new player catalog reads and imports. */
|
|
5453
|
+
Archived = "ARCHIVED",
|
|
5454
|
+
/** Studio work in progress; hidden from player common-file queries. */
|
|
5455
|
+
Draft = "DRAFT",
|
|
5456
|
+
/** Available to app-scoped players for reading and copy-by-value import. */
|
|
5457
|
+
Published = "PUBLISHED"
|
|
5458
|
+
}
|
|
5459
|
+
/** How a project file entered the project. Imported content is copied by value; provenance is informational and does not create a live link. */
|
|
5460
|
+
export declare enum PlayerCodeFileProvenance {
|
|
5461
|
+
/** The owner authored or directly saved this project file. */
|
|
5462
|
+
Authored = "AUTHORED",
|
|
5463
|
+
/** The file was copied from a specific immutable version of the app’s studio-curated common catalog. */
|
|
5464
|
+
Common = "COMMON",
|
|
5465
|
+
/** The file was copied from a specific revision of the owner’s private personal library. */
|
|
5466
|
+
Library = "LIBRARY"
|
|
5467
|
+
}
|
|
5468
|
+
/** The source catalog used for a copy-by-value project file import. */
|
|
5469
|
+
export declare enum PlayerCodeImportSource {
|
|
5470
|
+
/** Import from an immutable published common-file version in the requested app. */
|
|
5471
|
+
Common = "COMMON",
|
|
5472
|
+
/** Import from a private personal-library file owned by the authenticated caller. */
|
|
5473
|
+
Library = "LIBRARY"
|
|
5474
|
+
}
|
|
5294
5475
|
/** An install of an acquired listing: the pinned version, the consent hash acknowledged, and (for server halves) the owned target grid. Installs pin their version; updating to a newer version is a new consent + install update, never automatic. */
|
|
5295
5476
|
export type PlayerCodeInstall = {
|
|
5296
5477
|
__typename?: 'PlayerCodeInstall';
|
|
@@ -5313,6 +5494,36 @@ export type PlayerCodeInstall = {
|
|
|
5313
5494
|
/** Owned grid the server half (and any bundled client attachment) was installed into; null for personal client-only installs. */
|
|
5314
5495
|
targetGridId: Maybe<Scalars['BigInt']['output']>;
|
|
5315
5496
|
};
|
|
5497
|
+
/** A reusable private text file in the authenticated player’s app-scoped personal library. */
|
|
5498
|
+
export type PlayerCodeLibraryFile = {
|
|
5499
|
+
__typename?: 'PlayerCodeLibraryFile';
|
|
5500
|
+
/** App tenant that isolates this private library entry. */
|
|
5501
|
+
appId: Scalars['BigInt']['output'];
|
|
5502
|
+
/** Whether this entry is archived and unavailable for new imports. */
|
|
5503
|
+
archived: Scalars['Boolean']['output'];
|
|
5504
|
+
/** Archive timestamp, or null while active. */
|
|
5505
|
+
archivedAt: Maybe<Scalars['DateTime']['output']>;
|
|
5506
|
+
/** Private UTF-8 source text, visible only to the app-scoped owner. */
|
|
5507
|
+
content: Scalars['String']['output'];
|
|
5508
|
+
/** Library entry creation timestamp. */
|
|
5509
|
+
createdAt: Scalars['DateTime']['output'];
|
|
5510
|
+
/** Stable personal-library file UUID. */
|
|
5511
|
+
libraryFileId: Scalars['String']['output'];
|
|
5512
|
+
/** User that exclusively owns this library entry. */
|
|
5513
|
+
ownerUserId: Scalars['BigInt']['output'];
|
|
5514
|
+
/** Safe suggested destination path; imports may choose another safe path. */
|
|
5515
|
+
pathHint: Scalars['String']['output'];
|
|
5516
|
+
/** Monotonic optimistic-concurrency revision. */
|
|
5517
|
+
revision: Scalars['BigInt']['output'];
|
|
5518
|
+
/** Normalized search tags, each lowercase and hyphen-safe. */
|
|
5519
|
+
tags: Array<Scalars['String']['output']>;
|
|
5520
|
+
/** Compatible project target for this reusable file. */
|
|
5521
|
+
target: PlayerCodeTarget;
|
|
5522
|
+
/** Player-facing library title. */
|
|
5523
|
+
title: Scalars['String']['output'];
|
|
5524
|
+
/** Timestamp of the latest successful library mutation. */
|
|
5525
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
5526
|
+
};
|
|
5316
5527
|
/** Source-access mode of a listing: CLOSED (artifacts + contracts only) or OPEN_SOURCE (source readable; irreversible per published version). */
|
|
5317
5528
|
export declare enum PlayerCodeLicenseMode {
|
|
5318
5529
|
Closed = "CLOSED",
|
|
@@ -5395,6 +5606,99 @@ export declare enum PlayerCodeOwnerKind {
|
|
|
5395
5606
|
Org = "ORG",
|
|
5396
5607
|
User = "USER"
|
|
5397
5608
|
}
|
|
5609
|
+
/** Editor preference describing how the project presents its server and client targets; it never grants deployment or runtime authority. */
|
|
5610
|
+
export declare enum PlayerCodePairingPreference {
|
|
5611
|
+
/** Present only the client-target authoring workflow. */
|
|
5612
|
+
ClientOnly = "CLIENT_ONLY",
|
|
5613
|
+
/** Present server and client sources independently without an implied requirement edge. */
|
|
5614
|
+
Independent = "INDEPENDENT",
|
|
5615
|
+
/** Present server and client sources as two coordinated halves of one mod. */
|
|
5616
|
+
Paired = "PAIRED",
|
|
5617
|
+
/** Present only the server-target authoring workflow. */
|
|
5618
|
+
ServerOnly = "SERVER_ONLY"
|
|
5619
|
+
}
|
|
5620
|
+
/** A private, revisioned Mod Studio project owned by one user in one app. Optional grid affinity and module names are authoring hints only; deployment still rechecks current grid ownership and target-specific permissions. */
|
|
5621
|
+
export type PlayerCodeProject = {
|
|
5622
|
+
__typename?: 'PlayerCodeProject';
|
|
5623
|
+
/** Pinned guest ABI version used when constructing deploy input. */
|
|
5624
|
+
abiVersion: Scalars['Int']['output'];
|
|
5625
|
+
/** App tenant that isolates this project and all of its source. */
|
|
5626
|
+
appId: Scalars['BigInt']['output'];
|
|
5627
|
+
/** Whether the project is archived. Archived projects remain private and retained but are read-only until unarchived. */
|
|
5628
|
+
archived: Scalars['Boolean']['output'];
|
|
5629
|
+
/** Archive timestamp, or null while the project is active. */
|
|
5630
|
+
archivedAt: Maybe<Scalars['DateTime']['output']>;
|
|
5631
|
+
/** Stable crate-style CLIENT module name used when the owner chooses to deploy, or null when unassigned. */
|
|
5632
|
+
clientModuleName: Maybe<Scalars['String']['output']>;
|
|
5633
|
+
/** Project creation timestamp. */
|
|
5634
|
+
createdAt: Scalars['DateTime']['output'];
|
|
5635
|
+
/** Optional private project description. */
|
|
5636
|
+
description: Maybe<Scalars['String']['output']>;
|
|
5637
|
+
/** Total file count across both targets; each target is independently capped at eight. */
|
|
5638
|
+
fileCount: Scalars['Int']['output'];
|
|
5639
|
+
/** Private project files ordered by target and path. Bounded to eight files per target. */
|
|
5640
|
+
files: Array<PlayerCodeProjectFile>;
|
|
5641
|
+
/** Optional grid affinity. It survives a grid transfer and does not itself grant deploy authority. */
|
|
5642
|
+
gridId: Maybe<Scalars['BigInt']['output']>;
|
|
5643
|
+
/** Player-facing project name. */
|
|
5644
|
+
name: Scalars['String']['output'];
|
|
5645
|
+
/** User that exclusively owns and may read or modify this project source. */
|
|
5646
|
+
ownerUserId: Scalars['BigInt']['output'];
|
|
5647
|
+
/** Editor presentation preference for the two source targets. */
|
|
5648
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
5649
|
+
/** Stable project UUID. */
|
|
5650
|
+
projectId: Scalars['String']['output'];
|
|
5651
|
+
/** Monotonic project revision required by optimistic metadata, file, import, and archive mutations. */
|
|
5652
|
+
revision: Scalars['BigInt']['output'];
|
|
5653
|
+
/** Pinned crowdy-compute-sdk version used when constructing deploy input. */
|
|
5654
|
+
sdkVersion: Scalars['String']['output'];
|
|
5655
|
+
/** Stable crate-style SERVER module name used when the owner chooses to deploy, or null when unassigned. */
|
|
5656
|
+
serverModuleName: Maybe<Scalars['String']['output']>;
|
|
5657
|
+
/** Total UTF-8 source bytes across both targets, bounded by target and aggregate owner quotas. */
|
|
5658
|
+
totalBytes: Scalars['BigInt']['output'];
|
|
5659
|
+
/** Timestamp of the latest successful project mutation. */
|
|
5660
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
5661
|
+
};
|
|
5662
|
+
/** One private text file in a player-owned project. It is returned only when both app id and authenticated owner match the project. */
|
|
5663
|
+
export type PlayerCodeProjectFile = {
|
|
5664
|
+
__typename?: 'PlayerCodeProjectFile';
|
|
5665
|
+
/** Private UTF-8 source text. Grid ownership and studio permissions never override project ownership. */
|
|
5666
|
+
content: Scalars['String']['output'];
|
|
5667
|
+
/** Timestamp when this target/path entry was first created. */
|
|
5668
|
+
createdAt: Scalars['DateTime']['output'];
|
|
5669
|
+
/** Safe compute-source relative path: Cargo.toml or a Rust file below src/. */
|
|
5670
|
+
path: Scalars['String']['output'];
|
|
5671
|
+
/** Copy provenance. Imported bytes remain unchanged if the source catalog entry later changes. */
|
|
5672
|
+
provenance: PlayerCodeFileProvenance;
|
|
5673
|
+
/** Immutable common-file version UUID copied into this file, or null when common provenance does not apply. */
|
|
5674
|
+
provenanceCommonVersionId: Maybe<Scalars['String']['output']>;
|
|
5675
|
+
/** Private library file UUID used for the copy, or null for authored/common content. */
|
|
5676
|
+
provenanceLibraryFileId: Maybe<Scalars['String']['output']>;
|
|
5677
|
+
/** Library revision copied into this file, or null when library provenance does not apply. */
|
|
5678
|
+
provenanceLibraryRevision: Maybe<Scalars['BigInt']['output']>;
|
|
5679
|
+
/** Monotonic revision of this target/path entry, incremented on every successful upsert. */
|
|
5680
|
+
revision: Scalars['BigInt']['output'];
|
|
5681
|
+
/** Server or client target whose independent 8-file/256-KiB deploy cap includes this file. */
|
|
5682
|
+
target: PlayerCodeTarget;
|
|
5683
|
+
/** Timestamp of the latest successful content/provenance save. */
|
|
5684
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
5685
|
+
};
|
|
5686
|
+
/** A target/path key removed atomically by playerCodeProjectSaveFiles. */
|
|
5687
|
+
export type PlayerCodeProjectFileDeleteInput = {
|
|
5688
|
+
/** Safe relative path of the file to remove. */
|
|
5689
|
+
path: Scalars['String']['input'];
|
|
5690
|
+
/** Project target containing the file to remove. */
|
|
5691
|
+
target: PlayerCodeTarget;
|
|
5692
|
+
};
|
|
5693
|
+
/** One direct-authored initial or batch-upsert project file. Paths and UTF-8 bytes are validated against player-compute safety limits. */
|
|
5694
|
+
export type PlayerCodeProjectFileInput = {
|
|
5695
|
+
/** UTF-8 source text, capped at 64 KiB. */
|
|
5696
|
+
content: Scalars['String']['input'];
|
|
5697
|
+
/** Safe relative path: Cargo.toml or a .rs file below src/, with no traversal segments. */
|
|
5698
|
+
path: Scalars['String']['input'];
|
|
5699
|
+
/** Project target receiving this file. */
|
|
5700
|
+
target: PlayerCodeTarget;
|
|
5701
|
+
};
|
|
5398
5702
|
/** One explicit edge from a server artifact to the client artifact it requires within the same immutable marketplace bundle. */
|
|
5399
5703
|
export type PlayerCodeRequirement = {
|
|
5400
5704
|
__typename?: 'PlayerCodeRequirement';
|
|
@@ -5403,6 +5707,13 @@ export type PlayerCodeRequirement = {
|
|
|
5403
5707
|
/** Artifact hash of the SERVER half declaring the requirement. */
|
|
5404
5708
|
serverArtifactHash: Scalars['String']['output'];
|
|
5405
5709
|
};
|
|
5710
|
+
/** The independently capped source target inside a player-owned Mod Studio project. */
|
|
5711
|
+
export declare enum PlayerCodeTarget {
|
|
5712
|
+
/** Browser-worker Rust that can run only after the caller separately passes current grid ownership and write_client_code deployment checks. */
|
|
5713
|
+
Client = "CLIENT",
|
|
5714
|
+
/** Server-target Rust that can run only after the caller separately passes current grid ownership and write_server_code deployment checks. */
|
|
5715
|
+
Server = "SERVER"
|
|
5716
|
+
}
|
|
5406
5717
|
/** An immutable published version of a code listing. Snapshots ARTIFACT HASHES and explicit server-to-client requirements from the author’s compiled module versions — never source (OQ-1). */
|
|
5407
5718
|
export type PlayerCodeVersion = {
|
|
5408
5719
|
__typename?: 'PlayerCodeVersion';
|
|
@@ -5819,6 +6130,29 @@ export type PublishEnvironmentReleaseFromGameApiTagInput = {
|
|
|
5819
6130
|
/** cks-game-api semver tag (e.g. v0.6.20). */
|
|
5820
6131
|
gameApiTag: Scalars['String']['input'];
|
|
5821
6132
|
};
|
|
6133
|
+
/** Publish a new immutable studio-curated common-file version. Requires the app manage_compute permission. */
|
|
6134
|
+
export type PublishPlayerCodeCommonFileInput = {
|
|
6135
|
+
/** App tenant receiving the common entry; the token and manage_compute permission must cover this app. */
|
|
6136
|
+
appId: Scalars['BigInt']['input'];
|
|
6137
|
+
/** Existing common entry UUID to version; omit to create or version by slug. */
|
|
6138
|
+
commonFileId?: InputMaybe<Scalars['String']['input']>;
|
|
6139
|
+
/** UTF-8 source text for the new immutable version, capped at 64 KiB. */
|
|
6140
|
+
content: Scalars['String']['input'];
|
|
6141
|
+
/** Optional studio-authored catalog description. */
|
|
6142
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
6143
|
+
/** Optional 24-hour retry key; strongly recommended to avoid duplicate versions after transport retries. */
|
|
6144
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
6145
|
+
/** Safe recommended destination path. */
|
|
6146
|
+
path: Scalars['String']['input'];
|
|
6147
|
+
/** Stable lowercase hyphenated catalog slug. Existing entries cannot change their slug. */
|
|
6148
|
+
slug: Scalars['String']['input'];
|
|
6149
|
+
/** Optional unique lowercase discovery tags; at most 16. */
|
|
6150
|
+
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
6151
|
+
/** Compatible project target for this common file. */
|
|
6152
|
+
target: PlayerCodeTarget;
|
|
6153
|
+
/** Studio-authored catalog title. */
|
|
6154
|
+
title: Scalars['String']['input'];
|
|
6155
|
+
};
|
|
5822
6156
|
export type PublishPlayerCodeInput = {
|
|
5823
6157
|
/** App the listing belongs to. */
|
|
5824
6158
|
appId: Scalars['BigInt']['input'];
|
|
@@ -5965,7 +6299,7 @@ export type Query = {
|
|
|
5965
6299
|
computeTemplates: Array<ComputeTemplateInfo>;
|
|
5966
6300
|
/** Operator only (is_operator). Most recent operator audit entries, newest first, optionally filtered by environment. */
|
|
5967
6301
|
cpAudit: Array<CpAuditEntry>;
|
|
5968
|
-
/** Operator only (is_operator). One change order with
|
|
6302
|
+
/** Operator only (is_operator). One change order with ordered task and step progress. Durable change orders may return read-only projected rows when exact live execution details are unavailable; planned work remains pending until an outcome is observed or inferred. Null when the id is not found. */
|
|
5969
6303
|
cpChangeOrder: Maybe<CpChangeOrderDetail>;
|
|
5970
6304
|
/** Operator only (is_operator). Paginated change orders, optionally filtered by environment. Returns a *Page (rows/total/page/pageSize); page is 1-based. */
|
|
5971
6305
|
cpChangeOrders: CpChangeOrdersPage;
|
|
@@ -6175,10 +6509,18 @@ export type Query = {
|
|
|
6175
6509
|
playerAutomations: Array<PlayerAutomation>;
|
|
6176
6510
|
/** Fetch client WASM for an entitled marketplace install or an exact marketplace/self-authored grid attachment. Attachment fetches require current in-grid presence plus matching attachment consent or capability-bound author trust; self-authored code uses module/author admission rather than a synthetic listing. Every factor, including run_client_code, Buddy lease when enabled, and kill switches, fails closed as 'not found'. */
|
|
6177
6511
|
playerCodeClientArtifact: PlayerClientArtifact;
|
|
6512
|
+
/** List the current immutable versions of published studio-curated common files for one app. Requires an app-scoped token for appId; unlike private player source, this catalog content is intentionally readable by players in that app. Results are bounded and may be filtered by target. */
|
|
6513
|
+
playerCodeCommonFiles: Array<PlayerCodeCommonFile>;
|
|
6514
|
+
/** List the authenticated player’s private reusable source files in one app. Requires an app-scoped token for appId; cross-user entries are never visible, including to grid owners or studio operators. The bounded result defaults to 50. */
|
|
6515
|
+
playerCodeLibraryFiles: Array<PlayerCodeLibraryFile>;
|
|
6178
6516
|
/** List the immutable published versions of a listing, newest first, with each version’s derived capability summary and consent hash. */
|
|
6179
6517
|
playerCodeListingVersions: Array<PlayerCodeListingVersion>;
|
|
6180
6518
|
/** Browse an app's active marketplace code listings (free mode). Each listing carries its admission standing: in allow_list apps a PENDING listing can be acquired but not installed. Closed-source listings expose artifact hashes and the derived capability summary only — never source. */
|
|
6181
6519
|
playerCodeListings: Array<PlayerCodeListing>;
|
|
6520
|
+
/** Load one private Mod Studio project with all bounded source files. Requires an app-scoped token for appId and exact caller ownership; missing, cross-app, and cross-user ids all return the same NOT_FOUND shape. Grid owners and studio operators receive no source override. */
|
|
6521
|
+
playerCodeProject: PlayerCodeProject;
|
|
6522
|
+
/** List the authenticated player’s private Mod Studio projects in one app, newest first. Requires an app-scoped token for appId; every row and source-file read is filtered by both app and caller ownership. The bounded result defaults to 25 and never grants grid deployment authority. */
|
|
6523
|
+
playerCodeProjects: Array<PlayerCodeProject>;
|
|
6182
6524
|
/** Fetch a compiled CLIENT player artifact plus the metadata the browser broker needs to run it (player compute P3). Fail-closed: the caller must currently own the grid, be the version's author, hold run_client_code at app and grid scope, and the code must be admitted under the app's mode. Returns the gas-injected wasm bytes (base64), the declared client contract, and the per-dispatch fuel budget the glue worker enforces. Acquired (bought/rented) client code is served through the marketplace path in a later phase. */
|
|
6183
6525
|
playerComputeArtifact: PlayerClientArtifact;
|
|
6184
6526
|
/** Failed-run diagnostics for player modules on a grid the caller currently owns: the failing runs with their typed error kinds, newest first. The owner-scoped twin of computeModuleLogs. */
|
|
@@ -6773,6 +7115,18 @@ export type QueryPlayerCodeClientArtifactArgs = {
|
|
|
6773
7115
|
listingId?: InputMaybe<Scalars['String']['input']>;
|
|
6774
7116
|
versionId?: InputMaybe<Scalars['String']['input']>;
|
|
6775
7117
|
};
|
|
7118
|
+
export type QueryPlayerCodeCommonFilesArgs = {
|
|
7119
|
+
appId: Scalars['BigInt']['input'];
|
|
7120
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
7121
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
7122
|
+
target?: InputMaybe<PlayerCodeTarget>;
|
|
7123
|
+
};
|
|
7124
|
+
export type QueryPlayerCodeLibraryFilesArgs = {
|
|
7125
|
+
appId: Scalars['BigInt']['input'];
|
|
7126
|
+
includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7127
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
7128
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
7129
|
+
};
|
|
6776
7130
|
export type QueryPlayerCodeListingVersionsArgs = {
|
|
6777
7131
|
appId: Scalars['BigInt']['input'];
|
|
6778
7132
|
listingId: Scalars['String']['input'];
|
|
@@ -6780,6 +7134,16 @@ export type QueryPlayerCodeListingVersionsArgs = {
|
|
|
6780
7134
|
export type QueryPlayerCodeListingsArgs = {
|
|
6781
7135
|
appId: Scalars['BigInt']['input'];
|
|
6782
7136
|
};
|
|
7137
|
+
export type QueryPlayerCodeProjectArgs = {
|
|
7138
|
+
appId: Scalars['BigInt']['input'];
|
|
7139
|
+
projectId: Scalars['String']['input'];
|
|
7140
|
+
};
|
|
7141
|
+
export type QueryPlayerCodeProjectsArgs = {
|
|
7142
|
+
appId: Scalars['BigInt']['input'];
|
|
7143
|
+
includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
7144
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
7145
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
7146
|
+
};
|
|
6783
7147
|
export type QueryPlayerComputeArtifactArgs = {
|
|
6784
7148
|
appId: Scalars['BigInt']['input'];
|
|
6785
7149
|
gridId: Scalars['BigInt']['input'];
|
|
@@ -7055,6 +7419,100 @@ export type RollbackVoxelUpdatesInput = {
|
|
|
7055
7419
|
/** Id of the user (decimal string) whose edits within the window will be reverted. */
|
|
7056
7420
|
userId: Scalars['BigInt']['input'];
|
|
7057
7421
|
};
|
|
7422
|
+
/** Create or optimistically update one private reusable personal-library file. */
|
|
7423
|
+
export type SavePlayerCodeLibraryFileInput = {
|
|
7424
|
+
/** App tenant. Requires an app-scoped token; ownership is always the authenticated user. */
|
|
7425
|
+
appId: Scalars['BigInt']['input'];
|
|
7426
|
+
/** Private UTF-8 source text, capped at 64 KiB. */
|
|
7427
|
+
content: Scalars['String']['input'];
|
|
7428
|
+
/** Required current revision when libraryFileId is supplied; omit on create. */
|
|
7429
|
+
expectedRevision?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7430
|
+
/** Optional 24-hour retry key. */
|
|
7431
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
7432
|
+
/** Existing library UUID to update; omit to create a new entry. */
|
|
7433
|
+
libraryFileId?: InputMaybe<Scalars['String']['input']>;
|
|
7434
|
+
/** Safe suggested destination path: Cargo.toml or a .rs file below src/. */
|
|
7435
|
+
pathHint: Scalars['String']['input'];
|
|
7436
|
+
/** Optional unique lowercase discovery tags; at most 16, each at most 32 characters. */
|
|
7437
|
+
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
7438
|
+
/** Compatible project target for this reusable file. */
|
|
7439
|
+
target: PlayerCodeTarget;
|
|
7440
|
+
/** Player-facing library title. */
|
|
7441
|
+
title: Scalars['String']['input'];
|
|
7442
|
+
};
|
|
7443
|
+
/** Atomically upsert and delete a private project’s text files under one expected project revision. */
|
|
7444
|
+
export type SavePlayerCodeProjectFilesInput = {
|
|
7445
|
+
/** App tenant that owns the private project. */
|
|
7446
|
+
appId: Scalars['BigInt']['input'];
|
|
7447
|
+
/** Files to remove in the same transaction. A target/path cannot also appear in upserts. */
|
|
7448
|
+
deletes?: InputMaybe<Array<PlayerCodeProjectFileDeleteInput>>;
|
|
7449
|
+
/** Current project revision used for optimistic concurrency across the entire batch. */
|
|
7450
|
+
expectedRevision: Scalars['BigInt']['input'];
|
|
7451
|
+
/** Optional 24-hour retry key; recommended because a successful batch increments the expected revision. */
|
|
7452
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
7453
|
+
/** Project UUID to mutate. */
|
|
7454
|
+
projectId: Scalars['String']['input'];
|
|
7455
|
+
/** Files to insert or replace. The batch commits only if all paths and post-save caps are valid. */
|
|
7456
|
+
upserts?: InputMaybe<Array<PlayerCodeProjectFileInput>>;
|
|
7457
|
+
};
|
|
7458
|
+
/** Atomically save selected project metadata plus a batch of file upserts/deletes under one expected project revision. Mod Studio uses this to persist one coherent full-stack edit. */
|
|
7459
|
+
export type SavePlayerCodeProjectInput = {
|
|
7460
|
+
/** New supported ABI pin, or omit to preserve. */
|
|
7461
|
+
abiVersion?: InputMaybe<Scalars['Int']['input']>;
|
|
7462
|
+
/** App tenant that owns the private project. */
|
|
7463
|
+
appId: Scalars['BigInt']['input'];
|
|
7464
|
+
/** New CLIENT module name, explicit null to clear, or omit to preserve. */
|
|
7465
|
+
clientModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
7466
|
+
/** Files to delete in the same transaction. A target/path cannot also appear in upserts. */
|
|
7467
|
+
deletes?: InputMaybe<Array<PlayerCodeProjectFileDeleteInput>>;
|
|
7468
|
+
/** New private description, explicit null to clear, or omit to preserve. */
|
|
7469
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
7470
|
+
/** Current project revision. A stale value returns CONFLICT with PLAYER_CODE_REVISION_CONFLICT and applies no metadata or file writes. */
|
|
7471
|
+
expectedRevision: Scalars['BigInt']['input'];
|
|
7472
|
+
/** New optional grid affinity, explicit null to clear, or omit to preserve. Affinity never grants deploy authority. */
|
|
7473
|
+
gridId?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7474
|
+
/** Optional 24-hour retry key; recommended because a successful atomic save increments the expected revision. */
|
|
7475
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
7476
|
+
/** New non-empty project name, or omit to preserve. */
|
|
7477
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
7478
|
+
/** New editor pairing preference, or omit to preserve. */
|
|
7479
|
+
pairingPreference?: InputMaybe<PlayerCodePairingPreference>;
|
|
7480
|
+
/** Project UUID to update. */
|
|
7481
|
+
projectId: Scalars['String']['input'];
|
|
7482
|
+
/** New supported SDK pin, or omit to preserve. */
|
|
7483
|
+
sdkVersion?: InputMaybe<Scalars['String']['input']>;
|
|
7484
|
+
/** New SERVER module name, explicit null to clear, or omit to preserve. */
|
|
7485
|
+
serverModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
7486
|
+
/** Changed or new files to insert/replace. Unmentioned files and their provenance remain unchanged. */
|
|
7487
|
+
upserts?: InputMaybe<Array<PlayerCodeProjectFileInput>>;
|
|
7488
|
+
};
|
|
7489
|
+
/** Optimistically save selected project metadata. Omitted fields remain unchanged; explicit null clears nullable metadata. */
|
|
7490
|
+
export type SavePlayerCodeProjectMetadataInput = {
|
|
7491
|
+
/** New supported ABI pin, or omit to preserve. */
|
|
7492
|
+
abiVersion?: InputMaybe<Scalars['Int']['input']>;
|
|
7493
|
+
/** App tenant that owns the private project. */
|
|
7494
|
+
appId: Scalars['BigInt']['input'];
|
|
7495
|
+
/** New CLIENT module name, explicit null to clear, or omit to preserve. */
|
|
7496
|
+
clientModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
7497
|
+
/** New private description, explicit null to clear, or omit to preserve. */
|
|
7498
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
7499
|
+
/** Current project revision. A stale value returns CONFLICT with PLAYER_CODE_REVISION_CONFLICT. */
|
|
7500
|
+
expectedRevision: Scalars['BigInt']['input'];
|
|
7501
|
+
/** New optional grid affinity, explicit null to clear, or omit to preserve. Affinity never grants deploy authority. */
|
|
7502
|
+
gridId?: InputMaybe<Scalars['BigInt']['input']>;
|
|
7503
|
+
/** Optional 24-hour retry key; reuse with changed input returns IDEMPOTENCY_CONFLICT. */
|
|
7504
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
7505
|
+
/** New project name, or omit to preserve. */
|
|
7506
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
7507
|
+
/** New editor pairing preference, or omit to preserve. */
|
|
7508
|
+
pairingPreference?: InputMaybe<PlayerCodePairingPreference>;
|
|
7509
|
+
/** Project UUID to update. */
|
|
7510
|
+
projectId: Scalars['String']['input'];
|
|
7511
|
+
/** New supported SDK pin, or omit to preserve. */
|
|
7512
|
+
sdkVersion?: InputMaybe<Scalars['String']['input']>;
|
|
7513
|
+
/** New SERVER module name, explicit null to clear, or omit to preserve. */
|
|
7514
|
+
serverModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
7515
|
+
};
|
|
7058
7516
|
/** A saved (vaulted) off-session payment method. */
|
|
7059
7517
|
export type SavedPaymentMethod = {
|
|
7060
7518
|
__typename?: 'SavedPaymentMethod';
|
|
@@ -7504,6 +7962,32 @@ export type SetPlayerAutomationEnabledInput = {
|
|
|
7504
7962
|
/** Grid that confines the automation. */
|
|
7505
7963
|
gridId: Scalars['BigInt']['input'];
|
|
7506
7964
|
};
|
|
7965
|
+
/** Optimistically archive or restore one caller-owned personal-library file. */
|
|
7966
|
+
export type SetPlayerCodeLibraryFileArchivedInput = {
|
|
7967
|
+
/** App tenant that owns the private library entry. */
|
|
7968
|
+
appId: Scalars['BigInt']['input'];
|
|
7969
|
+
/** True to archive; false to make the entry active again. */
|
|
7970
|
+
archived: Scalars['Boolean']['input'];
|
|
7971
|
+
/** Current library revision required for optimistic concurrency. */
|
|
7972
|
+
expectedRevision: Scalars['BigInt']['input'];
|
|
7973
|
+
/** Optional 24-hour retry key. */
|
|
7974
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
7975
|
+
/** Personal-library file UUID. */
|
|
7976
|
+
libraryFileId: Scalars['String']['input'];
|
|
7977
|
+
};
|
|
7978
|
+
/** Optimistically archive or unarchive one private project without deleting its files or provenance. */
|
|
7979
|
+
export type SetPlayerCodeProjectArchivedInput = {
|
|
7980
|
+
/** App tenant that owns the private project. */
|
|
7981
|
+
appId: Scalars['BigInt']['input'];
|
|
7982
|
+
/** True to archive; false to restore the project. */
|
|
7983
|
+
archived: Scalars['Boolean']['input'];
|
|
7984
|
+
/** Current project revision required for optimistic concurrency. */
|
|
7985
|
+
expectedRevision: Scalars['BigInt']['input'];
|
|
7986
|
+
/** Optional 24-hour retry key. */
|
|
7987
|
+
idempotencyKey?: InputMaybe<Scalars['String']['input']>;
|
|
7988
|
+
/** Project UUID to archive or restore. */
|
|
7989
|
+
projectId: Scalars['String']['input'];
|
|
7990
|
+
};
|
|
7507
7991
|
/** Set one arbitrary JSON property on a player-owned container. The caller must currently own the specified grid and container. */
|
|
7508
7992
|
export type SetPlayerModelPropertyInput = {
|
|
7509
7993
|
/** App containing the owned grid. */
|
|
@@ -14691,6 +15175,298 @@ export type PlatformConfigQuery = {
|
|
|
14691
15175
|
freeAppsPerOrg: number;
|
|
14692
15176
|
};
|
|
14693
15177
|
};
|
|
15178
|
+
export type PlayerCodeProjectFieldsFragment = {
|
|
15179
|
+
__typename?: 'PlayerCodeProject';
|
|
15180
|
+
projectId: string;
|
|
15181
|
+
appId: string;
|
|
15182
|
+
ownerUserId: string;
|
|
15183
|
+
gridId: string | null;
|
|
15184
|
+
name: string;
|
|
15185
|
+
description: string | null;
|
|
15186
|
+
serverModuleName: string | null;
|
|
15187
|
+
clientModuleName: string | null;
|
|
15188
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
15189
|
+
sdkVersion: string;
|
|
15190
|
+
abiVersion: number;
|
|
15191
|
+
revision: string;
|
|
15192
|
+
archived: boolean;
|
|
15193
|
+
archivedAt: string | null;
|
|
15194
|
+
fileCount: number;
|
|
15195
|
+
totalBytes: string;
|
|
15196
|
+
createdAt: string;
|
|
15197
|
+
updatedAt: string;
|
|
15198
|
+
files: Array<{
|
|
15199
|
+
__typename?: 'PlayerCodeProjectFile';
|
|
15200
|
+
target: PlayerCodeTarget;
|
|
15201
|
+
path: string;
|
|
15202
|
+
content: string;
|
|
15203
|
+
revision: string;
|
|
15204
|
+
provenance: PlayerCodeFileProvenance;
|
|
15205
|
+
provenanceLibraryFileId: string | null;
|
|
15206
|
+
provenanceLibraryRevision: string | null;
|
|
15207
|
+
provenanceCommonVersionId: string | null;
|
|
15208
|
+
createdAt: string;
|
|
15209
|
+
updatedAt: string;
|
|
15210
|
+
}>;
|
|
15211
|
+
};
|
|
15212
|
+
export type PlayerCodeProjectsQueryVariables = Exact<{
|
|
15213
|
+
appId: Scalars['BigInt']['input'];
|
|
15214
|
+
includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
15215
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
15216
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
15217
|
+
}>;
|
|
15218
|
+
export type PlayerCodeProjectsQuery = {
|
|
15219
|
+
__typename?: 'Query';
|
|
15220
|
+
playerCodeProjects: Array<{
|
|
15221
|
+
__typename?: 'PlayerCodeProject';
|
|
15222
|
+
projectId: string;
|
|
15223
|
+
gridId: string | null;
|
|
15224
|
+
name: string;
|
|
15225
|
+
serverModuleName: string | null;
|
|
15226
|
+
clientModuleName: string | null;
|
|
15227
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
15228
|
+
revision: string;
|
|
15229
|
+
archived: boolean;
|
|
15230
|
+
updatedAt: string;
|
|
15231
|
+
}>;
|
|
15232
|
+
};
|
|
15233
|
+
export type PlayerCodeProjectQueryVariables = Exact<{
|
|
15234
|
+
appId: Scalars['BigInt']['input'];
|
|
15235
|
+
projectId: Scalars['String']['input'];
|
|
15236
|
+
}>;
|
|
15237
|
+
export type PlayerCodeProjectQuery = {
|
|
15238
|
+
__typename?: 'Query';
|
|
15239
|
+
playerCodeProject: {
|
|
15240
|
+
__typename?: 'PlayerCodeProject';
|
|
15241
|
+
projectId: string;
|
|
15242
|
+
appId: string;
|
|
15243
|
+
ownerUserId: string;
|
|
15244
|
+
gridId: string | null;
|
|
15245
|
+
name: string;
|
|
15246
|
+
description: string | null;
|
|
15247
|
+
serverModuleName: string | null;
|
|
15248
|
+
clientModuleName: string | null;
|
|
15249
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
15250
|
+
sdkVersion: string;
|
|
15251
|
+
abiVersion: number;
|
|
15252
|
+
revision: string;
|
|
15253
|
+
archived: boolean;
|
|
15254
|
+
archivedAt: string | null;
|
|
15255
|
+
fileCount: number;
|
|
15256
|
+
totalBytes: string;
|
|
15257
|
+
createdAt: string;
|
|
15258
|
+
updatedAt: string;
|
|
15259
|
+
files: Array<{
|
|
15260
|
+
__typename?: 'PlayerCodeProjectFile';
|
|
15261
|
+
target: PlayerCodeTarget;
|
|
15262
|
+
path: string;
|
|
15263
|
+
content: string;
|
|
15264
|
+
revision: string;
|
|
15265
|
+
provenance: PlayerCodeFileProvenance;
|
|
15266
|
+
provenanceLibraryFileId: string | null;
|
|
15267
|
+
provenanceLibraryRevision: string | null;
|
|
15268
|
+
provenanceCommonVersionId: string | null;
|
|
15269
|
+
createdAt: string;
|
|
15270
|
+
updatedAt: string;
|
|
15271
|
+
}>;
|
|
15272
|
+
};
|
|
15273
|
+
};
|
|
15274
|
+
export type PlayerCodeProjectCreateMutationVariables = Exact<{
|
|
15275
|
+
input: CreatePlayerCodeProjectInput;
|
|
15276
|
+
}>;
|
|
15277
|
+
export type PlayerCodeProjectCreateMutation = {
|
|
15278
|
+
__typename?: 'Mutation';
|
|
15279
|
+
playerCodeProjectCreate: {
|
|
15280
|
+
__typename?: 'PlayerCodeProject';
|
|
15281
|
+
projectId: string;
|
|
15282
|
+
appId: string;
|
|
15283
|
+
ownerUserId: string;
|
|
15284
|
+
gridId: string | null;
|
|
15285
|
+
name: string;
|
|
15286
|
+
description: string | null;
|
|
15287
|
+
serverModuleName: string | null;
|
|
15288
|
+
clientModuleName: string | null;
|
|
15289
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
15290
|
+
sdkVersion: string;
|
|
15291
|
+
abiVersion: number;
|
|
15292
|
+
revision: string;
|
|
15293
|
+
archived: boolean;
|
|
15294
|
+
archivedAt: string | null;
|
|
15295
|
+
fileCount: number;
|
|
15296
|
+
totalBytes: string;
|
|
15297
|
+
createdAt: string;
|
|
15298
|
+
updatedAt: string;
|
|
15299
|
+
files: Array<{
|
|
15300
|
+
__typename?: 'PlayerCodeProjectFile';
|
|
15301
|
+
target: PlayerCodeTarget;
|
|
15302
|
+
path: string;
|
|
15303
|
+
content: string;
|
|
15304
|
+
revision: string;
|
|
15305
|
+
provenance: PlayerCodeFileProvenance;
|
|
15306
|
+
provenanceLibraryFileId: string | null;
|
|
15307
|
+
provenanceLibraryRevision: string | null;
|
|
15308
|
+
provenanceCommonVersionId: string | null;
|
|
15309
|
+
createdAt: string;
|
|
15310
|
+
updatedAt: string;
|
|
15311
|
+
}>;
|
|
15312
|
+
};
|
|
15313
|
+
};
|
|
15314
|
+
export type PlayerCodeProjectSaveMutationVariables = Exact<{
|
|
15315
|
+
input: SavePlayerCodeProjectInput;
|
|
15316
|
+
}>;
|
|
15317
|
+
export type PlayerCodeProjectSaveMutation = {
|
|
15318
|
+
__typename?: 'Mutation';
|
|
15319
|
+
playerCodeProjectSave: {
|
|
15320
|
+
__typename?: 'PlayerCodeProject';
|
|
15321
|
+
projectId: string;
|
|
15322
|
+
appId: string;
|
|
15323
|
+
ownerUserId: string;
|
|
15324
|
+
gridId: string | null;
|
|
15325
|
+
name: string;
|
|
15326
|
+
description: string | null;
|
|
15327
|
+
serverModuleName: string | null;
|
|
15328
|
+
clientModuleName: string | null;
|
|
15329
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
15330
|
+
sdkVersion: string;
|
|
15331
|
+
abiVersion: number;
|
|
15332
|
+
revision: string;
|
|
15333
|
+
archived: boolean;
|
|
15334
|
+
archivedAt: string | null;
|
|
15335
|
+
fileCount: number;
|
|
15336
|
+
totalBytes: string;
|
|
15337
|
+
createdAt: string;
|
|
15338
|
+
updatedAt: string;
|
|
15339
|
+
files: Array<{
|
|
15340
|
+
__typename?: 'PlayerCodeProjectFile';
|
|
15341
|
+
target: PlayerCodeTarget;
|
|
15342
|
+
path: string;
|
|
15343
|
+
content: string;
|
|
15344
|
+
revision: string;
|
|
15345
|
+
provenance: PlayerCodeFileProvenance;
|
|
15346
|
+
provenanceLibraryFileId: string | null;
|
|
15347
|
+
provenanceLibraryRevision: string | null;
|
|
15348
|
+
provenanceCommonVersionId: string | null;
|
|
15349
|
+
createdAt: string;
|
|
15350
|
+
updatedAt: string;
|
|
15351
|
+
}>;
|
|
15352
|
+
};
|
|
15353
|
+
};
|
|
15354
|
+
export type PlayerCodeLibraryFilesQueryVariables = Exact<{
|
|
15355
|
+
appId: Scalars['BigInt']['input'];
|
|
15356
|
+
includeArchived?: InputMaybe<Scalars['Boolean']['input']>;
|
|
15357
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
15358
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
15359
|
+
}>;
|
|
15360
|
+
export type PlayerCodeLibraryFilesQuery = {
|
|
15361
|
+
__typename?: 'Query';
|
|
15362
|
+
playerCodeLibraryFiles: Array<{
|
|
15363
|
+
__typename?: 'PlayerCodeLibraryFile';
|
|
15364
|
+
libraryFileId: string;
|
|
15365
|
+
appId: string;
|
|
15366
|
+
ownerUserId: string;
|
|
15367
|
+
title: string;
|
|
15368
|
+
pathHint: string;
|
|
15369
|
+
target: PlayerCodeTarget;
|
|
15370
|
+
tags: Array<string>;
|
|
15371
|
+
content: string;
|
|
15372
|
+
revision: string;
|
|
15373
|
+
archived: boolean;
|
|
15374
|
+
archivedAt: string | null;
|
|
15375
|
+
createdAt: string;
|
|
15376
|
+
updatedAt: string;
|
|
15377
|
+
}>;
|
|
15378
|
+
};
|
|
15379
|
+
export type PlayerCodeLibrarySaveMutationVariables = Exact<{
|
|
15380
|
+
input: SavePlayerCodeLibraryFileInput;
|
|
15381
|
+
}>;
|
|
15382
|
+
export type PlayerCodeLibrarySaveMutation = {
|
|
15383
|
+
__typename?: 'Mutation';
|
|
15384
|
+
playerCodeLibrarySave: {
|
|
15385
|
+
__typename?: 'PlayerCodeLibraryFile';
|
|
15386
|
+
libraryFileId: string;
|
|
15387
|
+
appId: string;
|
|
15388
|
+
ownerUserId: string;
|
|
15389
|
+
title: string;
|
|
15390
|
+
pathHint: string;
|
|
15391
|
+
target: PlayerCodeTarget;
|
|
15392
|
+
tags: Array<string>;
|
|
15393
|
+
content: string;
|
|
15394
|
+
revision: string;
|
|
15395
|
+
archived: boolean;
|
|
15396
|
+
archivedAt: string | null;
|
|
15397
|
+
createdAt: string;
|
|
15398
|
+
updatedAt: string;
|
|
15399
|
+
};
|
|
15400
|
+
};
|
|
15401
|
+
export type PlayerCodeCommonFilesQueryVariables = Exact<{
|
|
15402
|
+
appId: Scalars['BigInt']['input'];
|
|
15403
|
+
target?: InputMaybe<PlayerCodeTarget>;
|
|
15404
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
15405
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
15406
|
+
}>;
|
|
15407
|
+
export type PlayerCodeCommonFilesQuery = {
|
|
15408
|
+
__typename?: 'Query';
|
|
15409
|
+
playerCodeCommonFiles: Array<{
|
|
15410
|
+
__typename?: 'PlayerCodeCommonFile';
|
|
15411
|
+
commonFileId: string;
|
|
15412
|
+
appId: string;
|
|
15413
|
+
slug: string;
|
|
15414
|
+
title: string;
|
|
15415
|
+
description: string | null;
|
|
15416
|
+
path: string;
|
|
15417
|
+
target: PlayerCodeTarget;
|
|
15418
|
+
tags: Array<string>;
|
|
15419
|
+
status: PlayerCodeCommonStatus;
|
|
15420
|
+
versionId: string;
|
|
15421
|
+
versionNo: string;
|
|
15422
|
+
content: string;
|
|
15423
|
+
contentSha256: string;
|
|
15424
|
+
publishedByUserId: string;
|
|
15425
|
+
publishedAt: string;
|
|
15426
|
+
createdAt: string;
|
|
15427
|
+
updatedAt: string;
|
|
15428
|
+
}>;
|
|
15429
|
+
};
|
|
15430
|
+
export type PlayerCodeProjectImportFileMutationVariables = Exact<{
|
|
15431
|
+
input: ImportPlayerCodeProjectFileInput;
|
|
15432
|
+
}>;
|
|
15433
|
+
export type PlayerCodeProjectImportFileMutation = {
|
|
15434
|
+
__typename?: 'Mutation';
|
|
15435
|
+
playerCodeProjectImportFile: {
|
|
15436
|
+
__typename?: 'PlayerCodeProject';
|
|
15437
|
+
projectId: string;
|
|
15438
|
+
appId: string;
|
|
15439
|
+
ownerUserId: string;
|
|
15440
|
+
gridId: string | null;
|
|
15441
|
+
name: string;
|
|
15442
|
+
description: string | null;
|
|
15443
|
+
serverModuleName: string | null;
|
|
15444
|
+
clientModuleName: string | null;
|
|
15445
|
+
pairingPreference: PlayerCodePairingPreference;
|
|
15446
|
+
sdkVersion: string;
|
|
15447
|
+
abiVersion: number;
|
|
15448
|
+
revision: string;
|
|
15449
|
+
archived: boolean;
|
|
15450
|
+
archivedAt: string | null;
|
|
15451
|
+
fileCount: number;
|
|
15452
|
+
totalBytes: string;
|
|
15453
|
+
createdAt: string;
|
|
15454
|
+
updatedAt: string;
|
|
15455
|
+
files: Array<{
|
|
15456
|
+
__typename?: 'PlayerCodeProjectFile';
|
|
15457
|
+
target: PlayerCodeTarget;
|
|
15458
|
+
path: string;
|
|
15459
|
+
content: string;
|
|
15460
|
+
revision: string;
|
|
15461
|
+
provenance: PlayerCodeFileProvenance;
|
|
15462
|
+
provenanceLibraryFileId: string | null;
|
|
15463
|
+
provenanceLibraryRevision: string | null;
|
|
15464
|
+
provenanceCommonVersionId: string | null;
|
|
15465
|
+
createdAt: string;
|
|
15466
|
+
updatedAt: string;
|
|
15467
|
+
}>;
|
|
15468
|
+
};
|
|
15469
|
+
};
|
|
14694
15470
|
export type PlayerWasmModuleFieldsFragment = {
|
|
14695
15471
|
__typename?: 'PlayerWasmModule';
|
|
14696
15472
|
moduleId: string;
|
|
@@ -17090,6 +17866,7 @@ export declare const PlayerCodeListingVersionFieldsFragmentDoc: DocumentNode<Pla
|
|
|
17090
17866
|
export declare const PlayerCodeAcquisitionFieldsFragmentDoc: DocumentNode<PlayerCodeAcquisitionFieldsFragment, unknown>;
|
|
17091
17867
|
export declare const PlayerCodeInstallFieldsFragmentDoc: DocumentNode<PlayerCodeInstallFieldsFragment, unknown>;
|
|
17092
17868
|
export declare const GridClaimRequestFieldsFragmentDoc: DocumentNode<GridClaimRequestFieldsFragment, unknown>;
|
|
17869
|
+
export declare const PlayerCodeProjectFieldsFragmentDoc: DocumentNode<PlayerCodeProjectFieldsFragment, unknown>;
|
|
17093
17870
|
export declare const PlayerWasmModuleFieldsFragmentDoc: DocumentNode<PlayerWasmModuleFieldsFragment, unknown>;
|
|
17094
17871
|
export declare const PlayerWasmModuleVersionFieldsFragmentDoc: DocumentNode<PlayerWasmModuleVersionFieldsFragment, unknown>;
|
|
17095
17872
|
export declare const PlayerWasmModuleRunFieldsFragmentDoc: DocumentNode<PlayerWasmModuleRunFieldsFragment, unknown>;
|
|
@@ -17379,6 +18156,14 @@ export declare const MyCheckoutsConnectionDocument: DocumentNode<MyCheckoutsConn
|
|
|
17379
18156
|
export declare const PaymentEventsDocument: DocumentNode<PaymentEventsQuery, PaymentEventsQueryVariables>;
|
|
17380
18157
|
export declare const PaymentEventsConnectionDocument: DocumentNode<PaymentEventsConnectionQuery, PaymentEventsConnectionQueryVariables>;
|
|
17381
18158
|
export declare const PlatformConfigDocument: DocumentNode<PlatformConfigQuery, PlatformConfigQueryVariables>;
|
|
18159
|
+
export declare const PlayerCodeProjectsDocument: DocumentNode<PlayerCodeProjectsQuery, PlayerCodeProjectsQueryVariables>;
|
|
18160
|
+
export declare const PlayerCodeProjectDocument: DocumentNode<PlayerCodeProjectQuery, PlayerCodeProjectQueryVariables>;
|
|
18161
|
+
export declare const PlayerCodeProjectCreateDocument: DocumentNode<PlayerCodeProjectCreateMutation, PlayerCodeProjectCreateMutationVariables>;
|
|
18162
|
+
export declare const PlayerCodeProjectSaveDocument: DocumentNode<PlayerCodeProjectSaveMutation, PlayerCodeProjectSaveMutationVariables>;
|
|
18163
|
+
export declare const PlayerCodeLibraryFilesDocument: DocumentNode<PlayerCodeLibraryFilesQuery, PlayerCodeLibraryFilesQueryVariables>;
|
|
18164
|
+
export declare const PlayerCodeLibrarySaveDocument: DocumentNode<PlayerCodeLibrarySaveMutation, PlayerCodeLibrarySaveMutationVariables>;
|
|
18165
|
+
export declare const PlayerCodeCommonFilesDocument: DocumentNode<PlayerCodeCommonFilesQuery, PlayerCodeCommonFilesQueryVariables>;
|
|
18166
|
+
export declare const PlayerCodeProjectImportFileDocument: DocumentNode<PlayerCodeProjectImportFileMutation, PlayerCodeProjectImportFileMutationVariables>;
|
|
17382
18167
|
export declare const PlayerComputeDeployDocument: DocumentNode<PlayerComputeDeployMutation, PlayerComputeDeployMutationVariables>;
|
|
17383
18168
|
export declare const PlayerComputeSetEnabledDocument: DocumentNode<PlayerComputeSetEnabledMutation, PlayerComputeSetEnabledMutationVariables>;
|
|
17384
18169
|
export declare const PlayerComputeSetRequiresDocument: DocumentNode<PlayerComputeSetRequiresMutation, PlayerComputeSetRequiresMutationVariables>;
|