@crowdedkingdoms/crowdyjs 8.18.0 → 8.19.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/README.md +7 -0
- package/dist/domains/marketplace.d.ts +7 -1
- package/dist/domains/marketplace.d.ts.map +1 -1
- package/dist/domains/marketplace.js +10 -1
- package/dist/domains/playerCompute.d.ts +7 -1
- package/dist/domains/playerCompute.d.ts.map +1 -1
- package/dist/domains/playerCompute.js +10 -1
- package/dist/generated/graphql.d.ts +117 -16
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +10 -8
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/live-coding/ide.d.ts +16 -0
- package/dist/live-coding/ide.d.ts.map +1 -0
- package/dist/live-coding/ide.js +399 -0
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -22,6 +22,13 @@ CrowdyJS v4 targets browsers by default and uses native `fetch`, `WebSocket`, `c
|
|
|
22
22
|
> `client.apps` require the 2026-07-20 game-api/management-api player-runtime
|
|
23
23
|
> schemas. Older servers reject only those operations during GraphQL validation.
|
|
24
24
|
|
|
25
|
+
> **Player-code authoring DX:** `playerCompute.setRequires`,
|
|
26
|
+
> `marketplace.trustGridAuthor`, self-authored `gridClientMods` fields, and
|
|
27
|
+
> attachment-keyed client artifact fetches require the 2026-07-22 authoring-DX
|
|
28
|
+
> migration. `mountLiveCodingIDE` lazy-loads Monaco and rust-analyzer LSP support
|
|
29
|
+
> when given an authenticated language-service URL and app-token getter; without
|
|
30
|
+
> them it preserves the dependency-free textarea fallback.
|
|
31
|
+
|
|
25
32
|
> **v8.10 inventory authority:** generated craft/barter transactions work on
|
|
26
33
|
> existing Model servers. Compute-refereed durable commits require Compute SDK
|
|
27
34
|
> `0.1.3` / the `model_invoke` host call.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type MarketplaceCreateAccountSessionMutation, type MarketplaceCreateAccountSessionMutationVariables, type MarketplaceCreateOrgAccountSessionMutation, type MarketplaceCreateOrgAccountSessionMutationVariables, type MarketplaceRenewAcquisitionMutationVariables, type MarketplaceTopUpAcquisitionMutationVariables, type MarketplaceRefundAcquisitionMutationVariables, type MarketplaceGridListingsQueryVariables, type MarketplacePurchaseGridMutationVariables, type MarketplaceSetListingPricingMutationVariables, type MarketplaceSetOrgShareMutationVariables, type MarketplaceBeginSellerOnboardingMutationVariables, type MarketplaceBeginOrgSellerOnboardingMutationVariables, type MarketplaceRequestPayoutMutationVariables, type MarketplaceSpendPayoutToWalletMutationVariables, type MarketplaceCommerceRiskQueueQueryVariables, type MarketplaceDecideRiskFlagMutationVariables, type MarketplaceCreateGridListingMutationVariables, type MarketplaceGridListingsQuery, type MarketplacePurchaseGridMutation, type MarketplaceBeginSellerOnboardingMutation, type MarketplaceBeginOrgSellerOnboardingMutation, type MarketplaceMySellerBalanceQuery, type MarketplaceCommerceRiskQueueQuery, type MarketplaceCreateGridListingMutation, type MarketplaceListingsQuery, type MarketplaceListingsQueryVariables, type MarketplaceListingVersionsQuery, type MarketplaceListingVersionsQueryVariables, type MarketplaceMyAcquisitionsQuery, type MarketplaceMyAcquisitionsQueryVariables, type MarketplaceMyInstallsQuery, type MarketplaceMyInstallsQueryVariables, type MarketplaceGridClientModsQuery, type MarketplaceGridClientModsQueryVariables, type MarketplaceClientArtifactQuery, type MarketplaceClientArtifactQueryVariables, type MarketplacePublishListingMutation, type MarketplacePublishListingMutationVariables, type MarketplacePublishVersionMutation, type MarketplacePublishVersionMutationVariables, type MarketplaceAcquireMutation, type MarketplaceAcquireMutationVariables, type MarketplaceInstallMutation, type MarketplaceInstallMutationVariables, type MarketplaceUninstallMutationVariables, type MarketplaceConsentGridClientModMutationVariables, type MarketplaceGridClaimPolicyQuery, type MarketplaceGridClaimPolicyQueryVariables, type MarketplaceGridClaimRequestsQuery, type MarketplaceGridClaimRequestsQueryVariables, type MarketplaceClaimGridOwnershipMutation, type MarketplaceClaimGridOwnershipMutationVariables, type MarketplaceDecideGridClaimMutation, type MarketplaceDecideGridClaimMutationVariables, type MarketplaceIssueGridClaimInviteMutationVariables, type MarketplaceAdmissionQueueQuery, type MarketplaceAdmissionQueueQueryVariables, type MarketplaceAppListingsQuery, type MarketplaceAppListingsQueryVariables, type MarketplaceAppAcquisitionsQuery, type MarketplaceAppAcquisitionsQueryVariables, type MarketplaceTransferListingMutation, type MarketplaceTransferListingMutationVariables, type MarketplaceSetListingStatusMutation, type MarketplaceSetListingStatusMutationVariables, type MarketplaceSetGridClaimPolicyMutation, type MarketplaceSetGridClaimPolicyMutationVariables } from '../generated/graphql.js';
|
|
2
|
+
import { type MarketplaceCreateAccountSessionMutation, type MarketplaceCreateAccountSessionMutationVariables, type MarketplaceCreateOrgAccountSessionMutation, type MarketplaceCreateOrgAccountSessionMutationVariables, type MarketplaceRenewAcquisitionMutationVariables, type MarketplaceTopUpAcquisitionMutationVariables, type MarketplaceRefundAcquisitionMutationVariables, type MarketplaceGridListingsQueryVariables, type MarketplacePurchaseGridMutationVariables, type MarketplaceSetListingPricingMutationVariables, type MarketplaceSetOrgShareMutationVariables, type MarketplaceBeginSellerOnboardingMutationVariables, type MarketplaceBeginOrgSellerOnboardingMutationVariables, type MarketplaceRequestPayoutMutationVariables, type MarketplaceSpendPayoutToWalletMutationVariables, type MarketplaceCommerceRiskQueueQueryVariables, type MarketplaceDecideRiskFlagMutationVariables, type MarketplaceCreateGridListingMutationVariables, type MarketplaceGridListingsQuery, type MarketplacePurchaseGridMutation, type MarketplaceBeginSellerOnboardingMutation, type MarketplaceBeginOrgSellerOnboardingMutation, type MarketplaceMySellerBalanceQuery, type MarketplaceCommerceRiskQueueQuery, type MarketplaceCreateGridListingMutation, type MarketplaceListingsQuery, type MarketplaceListingsQueryVariables, type MarketplaceListingVersionsQuery, type MarketplaceListingVersionsQueryVariables, type MarketplaceMyAcquisitionsQuery, type MarketplaceMyAcquisitionsQueryVariables, type MarketplaceMyInstallsQuery, type MarketplaceMyInstallsQueryVariables, type MarketplaceGridClientModsQuery, type MarketplaceGridClientModsQueryVariables, type MarketplaceClientArtifactQuery, type MarketplaceClientArtifactQueryVariables, type MarketplacePublishListingMutation, type MarketplacePublishListingMutationVariables, type MarketplacePublishVersionMutation, type MarketplacePublishVersionMutationVariables, type MarketplaceAcquireMutation, type MarketplaceAcquireMutationVariables, type MarketplaceInstallMutation, type MarketplaceInstallMutationVariables, type MarketplaceUninstallMutationVariables, type MarketplaceConsentGridClientModMutationVariables, type MarketplaceTrustGridAuthorMutation, type MarketplaceTrustGridAuthorMutationVariables, type MarketplaceGridClaimPolicyQuery, type MarketplaceGridClaimPolicyQueryVariables, type MarketplaceGridClaimRequestsQuery, type MarketplaceGridClaimRequestsQueryVariables, type MarketplaceClaimGridOwnershipMutation, type MarketplaceClaimGridOwnershipMutationVariables, type MarketplaceDecideGridClaimMutation, type MarketplaceDecideGridClaimMutationVariables, type MarketplaceIssueGridClaimInviteMutationVariables, type MarketplaceAdmissionQueueQuery, type MarketplaceAdmissionQueueQueryVariables, type MarketplaceAppListingsQuery, type MarketplaceAppListingsQueryVariables, type MarketplaceAppAcquisitionsQuery, type MarketplaceAppAcquisitionsQueryVariables, type MarketplaceTransferListingMutation, type MarketplaceTransferListingMutationVariables, type MarketplaceSetListingStatusMutation, type MarketplaceSetListingStatusMutationVariables, type MarketplaceSetGridClaimPolicyMutation, type MarketplaceSetGridClaimPolicyMutationVariables } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* The P4a player-code marketplace (free mode) — exposed as
|
|
5
5
|
* `client.marketplace`. Player-facing browse/publish/acquire/install/consent
|
|
@@ -41,6 +41,12 @@ export declare class MarketplaceAPI {
|
|
|
41
41
|
gridClientMods(variables: MarketplaceGridClientModsQueryVariables): Promise<MarketplaceGridClientModsQuery['gridClientMods']>;
|
|
42
42
|
/** Consent to one attachment's exact capability hash (per player). */
|
|
43
43
|
consentGridClientMod(variables: MarketplaceConsentGridClientModMutationVariables): Promise<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Trust one author's active attachments in a grid at the exact aggregate
|
|
46
|
+
* capability hash returned by `gridClientMods`. Capability widening changes
|
|
47
|
+
* the hash and requires another explicit call.
|
|
48
|
+
*/
|
|
49
|
+
trustGridAuthor(variables: MarketplaceTrustGridAuthorMutationVariables): Promise<MarketplaceTrustGridAuthorMutation['trustGridAuthor']>;
|
|
44
50
|
/** Fetch an acquired/attached listing's client artifact (base64 + metadata). */
|
|
45
51
|
clientArtifact(variables: MarketplaceClientArtifactQueryVariables): Promise<MarketplaceClientArtifactQuery['playerCodeClientArtifact']>;
|
|
46
52
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/domains/marketplace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"marketplace.d.ts","sourceRoot":"","sources":["../../src/domains/marketplace.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAoCL,KAAK,uCAAuC,EAC5C,KAAK,gDAAgD,EACrD,KAAK,0CAA0C,EAC/C,KAAK,mDAAmD,EAOxD,KAAK,4CAA4C,EACjD,KAAK,4CAA4C,EACjD,KAAK,6CAA6C,EAClD,KAAK,qCAAqC,EAC1C,KAAK,wCAAwC,EAC7C,KAAK,6CAA6C,EAClD,KAAK,uCAAuC,EAC5C,KAAK,iDAAiD,EACtD,KAAK,oDAAoD,EACzD,KAAK,yCAAyC,EAC9C,KAAK,+CAA+C,EACpD,KAAK,0CAA0C,EAC/C,KAAK,0CAA0C,EAC/C,KAAK,6CAA6C,EAClD,KAAK,4BAA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AAiD,GAC3D,OAAO,CAAC,wCAAwC,CAAC,uBAAuB,CAAC,CAAC;IAQ7E,8EAA8E;IACxE,wBAAwB,CAC5B,SAAS,EAAE,oDAAoD,GAC9D,OAAO,CACR,2CAA2C,CAAC,0BAA0B,CAAC,CACxE;IAQD,kDAAkD;IAC5C,eAAe,IAAI,OAAO,CAC9B,+BAA+B,CAAC,uBAAuB,CAAC,CACzD;IAQD,6EAA6E;IACvE,aAAa,CACjB,SAAS,GAAE,yCAA8C,GACxD,OAAO,CAAC,MAAM,CAAC;IAQlB,kFAAkF;IAC5E,mBAAmB,CACvB,SAAS,EAAE,+CAA+C,GACzD,OAAO,CAAC,MAAM,CAAC;IAQlB,+DAA+D;IACzD,iBAAiB,CACrB,SAAS,EAAE,0CAA0C,GACpD,OAAO,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,CAAC;IAQlE,2DAA2D;IACrD,cAAc,CAClB,SAAS,EAAE,0CAA0C,GACpD,OAAO,CAAC,OAAO,CAAC;IAQnB,0EAA0E;IACpE,iBAAiB,CACrB,SAAS,EAAE,6CAA6C,GACvD,OAAO,CAAC,oCAAoC,CAAC,mBAAmB,CAAC,CAAC;CAOtE"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MarketplaceListingsDocument, MarketplaceListingVersionsDocument, MarketplaceMyAcquisitionsDocument, MarketplaceMyInstallsDocument, MarketplaceGridClientModsDocument, MarketplaceClientArtifactDocument, MarketplacePublishListingDocument, MarketplacePublishVersionDocument, MarketplaceAcquireDocument, MarketplaceInstallDocument, MarketplaceUninstallDocument, MarketplaceConsentGridClientModDocument, MarketplaceGridClaimPolicyDocument, MarketplaceGridClaimRequestsDocument, MarketplaceClaimGridOwnershipDocument, MarketplaceDecideGridClaimDocument, MarketplaceIssueGridClaimInviteDocument, MarketplaceAdmissionQueueDocument, MarketplaceAppListingsDocument, MarketplaceAppAcquisitionsDocument, MarketplaceTransferListingDocument, MarketplaceSetListingStatusDocument, MarketplaceSetGridClaimPolicyDocument, MarketplaceRenewAcquisitionDocument, MarketplaceTopUpAcquisitionDocument, MarketplaceRefundAcquisitionDocument, MarketplaceGridListingsDocument, MarketplacePurchaseGridDocument, MarketplaceSetListingPricingDocument, MarketplaceSetOrgShareDocument, MarketplaceBeginSellerOnboardingDocument, MarketplaceBeginOrgSellerOnboardingDocument, MarketplaceCreateAccountSessionDocument, MarketplaceCreateOrgAccountSessionDocument, MarketplaceMySellerBalanceDocument, MarketplaceRequestPayoutDocument, MarketplaceSpendPayoutToWalletDocument, MarketplaceCommerceRiskQueueDocument, MarketplaceDecideRiskFlagDocument, MarketplaceCreateGridListingDocument, } from '../generated/graphql.js';
|
|
1
|
+
import { MarketplaceListingsDocument, MarketplaceListingVersionsDocument, MarketplaceMyAcquisitionsDocument, MarketplaceMyInstallsDocument, MarketplaceGridClientModsDocument, MarketplaceClientArtifactDocument, MarketplacePublishListingDocument, MarketplacePublishVersionDocument, MarketplaceAcquireDocument, MarketplaceInstallDocument, MarketplaceUninstallDocument, MarketplaceConsentGridClientModDocument, MarketplaceTrustGridAuthorDocument, MarketplaceGridClaimPolicyDocument, MarketplaceGridClaimRequestsDocument, MarketplaceClaimGridOwnershipDocument, MarketplaceDecideGridClaimDocument, MarketplaceIssueGridClaimInviteDocument, MarketplaceAdmissionQueueDocument, MarketplaceAppListingsDocument, MarketplaceAppAcquisitionsDocument, MarketplaceTransferListingDocument, MarketplaceSetListingStatusDocument, MarketplaceSetGridClaimPolicyDocument, MarketplaceRenewAcquisitionDocument, MarketplaceTopUpAcquisitionDocument, MarketplaceRefundAcquisitionDocument, MarketplaceGridListingsDocument, MarketplacePurchaseGridDocument, MarketplaceSetListingPricingDocument, MarketplaceSetOrgShareDocument, MarketplaceBeginSellerOnboardingDocument, MarketplaceBeginOrgSellerOnboardingDocument, MarketplaceCreateAccountSessionDocument, MarketplaceCreateOrgAccountSessionDocument, MarketplaceMySellerBalanceDocument, MarketplaceRequestPayoutDocument, MarketplaceSpendPayoutToWalletDocument, MarketplaceCommerceRiskQueueDocument, MarketplaceDecideRiskFlagDocument, MarketplaceCreateGridListingDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
3
|
* The P4a player-code marketplace (free mode) — exposed as
|
|
4
4
|
* `client.marketplace`. Player-facing browse/publish/acquire/install/consent
|
|
@@ -76,6 +76,15 @@ export class MarketplaceAPI {
|
|
|
76
76
|
const data = await this.game.request(MarketplaceConsentGridClientModDocument, variables);
|
|
77
77
|
return data.consentGridClientMod;
|
|
78
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Trust one author's active attachments in a grid at the exact aggregate
|
|
81
|
+
* capability hash returned by `gridClientMods`. Capability widening changes
|
|
82
|
+
* the hash and requires another explicit call.
|
|
83
|
+
*/
|
|
84
|
+
async trustGridAuthor(variables) {
|
|
85
|
+
const data = await this.game.request(MarketplaceTrustGridAuthorDocument, variables);
|
|
86
|
+
return data.trustGridAuthor;
|
|
87
|
+
}
|
|
79
88
|
/** Fetch an acquired/attached listing's client artifact (base64 + metadata). */
|
|
80
89
|
async clientArtifact(variables) {
|
|
81
90
|
const data = await this.game.request(MarketplaceClientArtifactDocument, variables);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type PlayerComputeArtifactQuery, type PlayerComputeArtifactQueryVariables, type PlayerComputeUsageQuery, type PlayerComputeUsageQueryVariables, type PlayerComputeRunsQuery, type PlayerComputeRunsQueryVariables, type PlayerComputeLogsQuery, type PlayerComputeLogsQueryVariables, type PlayerComputeSetSwitchMutation, type PlayerComputeSetSwitchMutationVariables, type PlayerComputeSwitchesQuery, type PlayerComputeSwitchesQueryVariables, type PlayerComputeDeployMutation, type PlayerComputeDeployMutationVariables, type PlayerComputeSetEnabledMutation, type PlayerComputeSetEnabledMutationVariables, type PlayerComputeMyModulesQuery, type PlayerComputeMyModulesQueryVariables, type PlayerComputeVersionsQuery, type PlayerComputeVersionsQueryVariables, type PlayerComputeDeleteMutation, type PlayerComputeDeleteMutationVariables, type PlayerComputeInvokeMutation, type PlayerComputeInvokeMutationVariables } from '../generated/graphql.js';
|
|
2
|
+
import { type PlayerComputeArtifactQuery, type PlayerComputeArtifactQueryVariables, type PlayerComputeUsageQuery, type PlayerComputeUsageQueryVariables, type PlayerComputeRunsQuery, type PlayerComputeRunsQueryVariables, type PlayerComputeLogsQuery, type PlayerComputeLogsQueryVariables, type PlayerComputeSetSwitchMutation, type PlayerComputeSetSwitchMutationVariables, type PlayerComputeSwitchesQuery, type PlayerComputeSwitchesQueryVariables, type PlayerComputeDeployMutation, type PlayerComputeDeployMutationVariables, type PlayerComputeSetEnabledMutation, type PlayerComputeSetEnabledMutationVariables, type PlayerComputeSetRequiresMutation, type PlayerComputeSetRequiresMutationVariables, type PlayerComputeMyModulesQuery, type PlayerComputeMyModulesQueryVariables, type PlayerComputeVersionsQuery, type PlayerComputeVersionsQueryVariables, type PlayerComputeDeleteMutation, type PlayerComputeDeleteMutationVariables, type PlayerComputeInvokeMutation, type PlayerComputeInvokeMutationVariables } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* Player-authored Rust/WASM bound to player-owned grids — exposed as
|
|
5
5
|
* `client.playerCompute` and routed to the Game API.
|
|
@@ -24,6 +24,12 @@ export declare class PlayerComputeAPI {
|
|
|
24
24
|
* authoring permission.
|
|
25
25
|
*/
|
|
26
26
|
setEnabled(variables: PlayerComputeSetEnabledMutationVariables): Promise<PlayerComputeSetEnabledMutation['playerComputeSetEnabled']>;
|
|
27
|
+
/**
|
|
28
|
+
* Set or clear the required CLIENT companion for the current SERVER module
|
|
29
|
+
* version. Both modules must be caller-authored, compiled, and in the same
|
|
30
|
+
* owned grid; pass `requiredClientName: null` to clear the edge.
|
|
31
|
+
*/
|
|
32
|
+
setRequires(variables: PlayerComputeSetRequiresMutationVariables): Promise<PlayerComputeSetRequiresMutation['playerComputeSetRequires']>;
|
|
27
33
|
/**
|
|
28
34
|
* List modules authored by the caller or installed on grids they currently
|
|
29
35
|
* own. Closed source is not included in this module-level result.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"playerCompute.d.ts","sourceRoot":"","sources":["../../src/domains/playerCompute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"playerCompute.d.ts","sourceRoot":"","sources":["../../src/domains/playerCompute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAcL,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,8BAA8B,EACnC,KAAK,uCAAuC,EAC5C,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,+BAA+B,EACpC,KAAK,wCAAwC,EAC7C,KAAK,gCAAgC,EACrC,KAAK,yCAAyC,EAC9C,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EACzC,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EAC1C,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;GASG;AACH,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,aAAa;IAEnD;;;OAGG;IACG,MAAM,CACV,KAAK,EAAE,oCAAoC,CAAC,OAAO,CAAC,GACnD,OAAO,CAAC,2BAA2B,CAAC,qBAAqB,CAAC,CAAC;IAK9D;;;;OAIG;IACG,UAAU,CACd,SAAS,EAAE,wCAAwC,GAClD,OAAO,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/D;;;;;OAKG;IACG,aAAa,CACjB,SAAS,EAAE,mCAAmC,GAC7C,OAAO,CAAC;QACT,KAAK,EAAE,WAAW,CAAC;QACnB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;QAC5B,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;CAaH"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlayerComputeDeployDocument, PlayerComputeSetEnabledDocument, PlayerComputeMyModulesDocument, PlayerComputeVersionsDocument, PlayerComputeDeleteDocument, PlayerComputeInvokeDocument, PlayerComputeUsageDocument, PlayerComputeRunsDocument, PlayerComputeLogsDocument, PlayerComputeSetSwitchDocument, PlayerComputeSwitchesDocument, PlayerComputeArtifactDocument, } from '../generated/graphql.js';
|
|
1
|
+
import { PlayerComputeDeployDocument, PlayerComputeSetEnabledDocument, PlayerComputeSetRequiresDocument, PlayerComputeMyModulesDocument, PlayerComputeVersionsDocument, PlayerComputeDeleteDocument, PlayerComputeInvokeDocument, PlayerComputeUsageDocument, PlayerComputeRunsDocument, PlayerComputeLogsDocument, PlayerComputeSetSwitchDocument, PlayerComputeSwitchesDocument, PlayerComputeArtifactDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
3
|
* Player-authored Rust/WASM bound to player-owned grids — exposed as
|
|
4
4
|
* `client.playerCompute` and routed to the Game API.
|
|
@@ -30,6 +30,15 @@ export class PlayerComputeAPI {
|
|
|
30
30
|
const data = await this.graphql.request(PlayerComputeSetEnabledDocument, variables);
|
|
31
31
|
return data.playerComputeSetEnabled;
|
|
32
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Set or clear the required CLIENT companion for the current SERVER module
|
|
35
|
+
* version. Both modules must be caller-authored, compiled, and in the same
|
|
36
|
+
* owned grid; pass `requiredClientName: null` to clear the edge.
|
|
37
|
+
*/
|
|
38
|
+
async setRequires(variables) {
|
|
39
|
+
const data = await this.graphql.request(PlayerComputeSetRequiresDocument, variables);
|
|
40
|
+
return data.playerComputeSetRequires;
|
|
41
|
+
}
|
|
33
42
|
/**
|
|
34
43
|
* List modules authored by the caller or installed on grids they currently
|
|
35
44
|
* own. Closed source is not included in this module-level result.
|
|
@@ -3217,25 +3217,43 @@ export type GridClaimResult = {
|
|
|
3217
3217
|
/** The app policy that was applied. */
|
|
3218
3218
|
policy: GridClaimPolicy;
|
|
3219
3219
|
};
|
|
3220
|
-
/**
|
|
3220
|
+
/** One marketplace or self-authored client attachment active on a grid, including immutable artifact identity, exact attachment consent, and aggregate per-author capability/trust state. */
|
|
3221
3221
|
export type GridClientMod = {
|
|
3222
3222
|
__typename?: 'GridClientMod';
|
|
3223
3223
|
/** UUID of the grid attachment. */
|
|
3224
3224
|
attachmentId: Scalars['String']['output'];
|
|
3225
|
+
/** Hash of authorCapabilitySummaryJson. Any capability widening changes this hash and requires fresh author trust. */
|
|
3226
|
+
authorCapabilityHash: Scalars['String']['output'];
|
|
3227
|
+
/** JSON aggregate of every active attachment from this author in the grid. This is the summary shown by the one-per-author trust prompt. */
|
|
3228
|
+
authorCapabilitySummaryJson: Scalars['String']['output'];
|
|
3229
|
+
/** Kind of author whose code this attachment executes. */
|
|
3230
|
+
authorKind: PlayerCodeOwnerKind;
|
|
3231
|
+
/** User id or org id of the author, according to authorKind. */
|
|
3232
|
+
authorRef: Scalars['BigInt']['output'];
|
|
3225
3233
|
/** Whether the calling player has already consented to this attachment. */
|
|
3226
3234
|
callerConsented: Scalars['Boolean']['output'];
|
|
3235
|
+
/** Whether the caller's grid-author trust matches the current aggregate author capability hash. */
|
|
3236
|
+
callerTrustsAuthor: Scalars['Boolean']['output'];
|
|
3227
3237
|
/** Capability hash a player must consent to before fetching. */
|
|
3228
3238
|
capabilityHash: Scalars['String']['output'];
|
|
3229
3239
|
/** JSON derived capability summary of the pinned version. */
|
|
3230
3240
|
capabilitySummaryJson: Scalars['String']['output'];
|
|
3241
|
+
/** Compile artifact hash of the client half. Clients use it as an immutable cache and lifecycle key. */
|
|
3242
|
+
clientArtifactHash: Scalars['String']['output'];
|
|
3243
|
+
/** Immutable self-authored CLIENT version to fetch; null for marketplace attachments. */
|
|
3244
|
+
clientVersionId: Maybe<Scalars['String']['output']>;
|
|
3231
3245
|
/** The grid the client mod is attached to. */
|
|
3232
3246
|
gridId: Scalars['BigInt']['output'];
|
|
3233
|
-
/** UUID of the listing. */
|
|
3234
|
-
listingId: Scalars['String']['output']
|
|
3247
|
+
/** UUID of the marketplace listing, or null for a self-authored attachment. */
|
|
3248
|
+
listingId: Maybe<Scalars['String']['output']>;
|
|
3235
3249
|
/** Listing display name. */
|
|
3236
3250
|
listingName: Scalars['String']['output'];
|
|
3237
|
-
/**
|
|
3238
|
-
|
|
3251
|
+
/** Immutable self-authored SERVER version declaring the requirement; null for marketplace attachments. */
|
|
3252
|
+
serverVersionId: Maybe<Scalars['String']['output']>;
|
|
3253
|
+
/** Attachment source: 'marketplace' or 'self_authored'. */
|
|
3254
|
+
sourceKind: Scalars['String']['output'];
|
|
3255
|
+
/** UUID of the pinned marketplace version, or null for a self-authored attachment. */
|
|
3256
|
+
versionId: Maybe<Scalars['String']['output']>;
|
|
3239
3257
|
};
|
|
3240
3258
|
/** A single group/role -> permission-key grant on a grid (one row of the grid_group_grants input table). */
|
|
3241
3259
|
export type GridGroupGrant = {
|
|
@@ -3516,7 +3534,7 @@ export type Mutation = {
|
|
|
3516
3534
|
__typename?: 'Mutation';
|
|
3517
3535
|
/** Acquire a free listing: writes the entitlement row (no payment edge exists in P4a — paid modes are P4b). Idempotent per (listing, caller). Allowed in any admission mode; in allow_list apps an unadmitted acquisition holds until the listing/author/org is admitted, at which point installPlayerCode proceeds. */
|
|
3518
3536
|
acquirePlayerCode: PlayerCodeAcquisition;
|
|
3519
|
-
/**
|
|
3537
|
+
/** Application liveness heartbeat for the authenticated user's existing actor rows in an app. Refreshes actors.updated_at so the user stays host-eligible, then returns the freshly-elected host so a client can fold its poll and heartbeat into one round-trip. This is not proof of a live Buddy session and does not refresh the separate Buddy presence lease used by security-sensitive artifact/compute occupancy gates. */
|
|
3520
3538
|
actorHeartbeat: Maybe<GameHost>;
|
|
3521
3539
|
/** Add a user to a channel, or approve their pending join request (upsert to active). Requires the 'manage_members' channel permission (app admins bypass). Auto-assigns the default role if configured and notifies Buddy with the member's effective send permission. */
|
|
3522
3540
|
addChannelMember: GroupMember;
|
|
@@ -3756,6 +3774,8 @@ export type Mutation = {
|
|
|
3756
3774
|
playerComputeInvoke: PlayerComputeInvokeResult;
|
|
3757
3775
|
/** Enable or disable a player module. Enabling requires current grid ownership, the target's run permission, a successful compile, and admission when the app uses strict ALLOW_LIST mode. Write permission is not sufficient to run code. */
|
|
3758
3776
|
playerComputeSetEnabled: PlayerWasmModule;
|
|
3777
|
+
/** Set or clear the required CLIENT companion for the current immutable SERVER module version. Both modules must be caller-authored, successfully compiled, and in the same owned grid. Enabling the server exposes the aggregate server+client capability summary to visitors; pass null to clear the requirement. */
|
|
3778
|
+
playerComputeSetRequires: Scalars['Boolean']['output'];
|
|
3759
3779
|
/** Throw or release a player-compute kill switch at player, grid, app, or listing scope (the 03 §7 kill ladder). Throwing a switch stops the covered modules on the next scheduler pass; quota state is retained, and releasing resumes normally. LISTING scope (P4a) disables every install of a marketplace listing fleet-wide — pass the listing UUID in listingRef; pair it with the management-side catalog kill to also stop new acquisitions. Module-level disable is playerComputeSetEnabled. Requires the org 'manage_compute' permission. */
|
|
3760
3780
|
playerComputeSetSwitch: Scalars['Boolean']['output'];
|
|
3761
3781
|
/** Create a flexible player-model instance in a currently owned grid. The server forces ownerUserId to the caller; this cannot author studio types or app-wide rows. */
|
|
@@ -3770,7 +3790,7 @@ export type Mutation = {
|
|
|
3770
3790
|
publishEnvironmentReleaseFromGameApiTag: CpPublishEnvironmentReleaseResult;
|
|
3771
3791
|
/** Create a marketplace listing (free mode) for code the caller authors — personally, or org-owned via ownerOrgId (DN-9; requires manage_compute in that org). SIDE EFFECTS: the catalog row is written on cks-management-api with an ownership audit entry and replica-synced back. Publishing never uploads source; versions snapshot artifact hashes only. */
|
|
3772
3792
|
publishPlayerCode: PlayerCodeListing;
|
|
3773
|
-
/** Publish an immutable version under a listing from the caller's successfully compiled module versions
|
|
3793
|
+
/** Publish an immutable version under a listing from the caller's successfully compiled module versions. Snapshots artifact hashes, explicit SERVER-to-required-CLIENT edges, and the derived aggregate capability summary; publishing fails if a required client version is absent from the bundle. Source never leaves the author's rows. */
|
|
3774
3794
|
publishPlayerCodeVersion: PlayerCodeListingVersion;
|
|
3775
3795
|
/** Buy a grid listing with real money (P4b). Debits the player wallet management-side (platform/org split), then assigns grid_ownership + the listed player-code keys atomically; a failure to apply ownership refunds the charge. For blueprint listings, targetChunk picks where the fresh grid is stamped. This is the ownership path for marketplace_only-policy apps. */
|
|
3776
3796
|
purchaseGrid: GridPurchaseResult;
|
|
@@ -3912,6 +3932,8 @@ export type Mutation = {
|
|
|
3912
3932
|
transferGridOwnership: GridOwnership;
|
|
3913
3933
|
/** Transfer a listing between personal and org ownership (DN-9). The caller must be the current owner (user-owned) or hold manage_compute in the owning org; transfers to an org require manage_compute in the receiving org. SIDE EFFECTS: append-only ownership audit row + replica sync to game-api. Ownership moves listing control and source-access rights; from P4b it also moves proceeds. */
|
|
3914
3934
|
transferPlayerCodeListing: PlayerCodeListing;
|
|
3935
|
+
/** Trust one author’s active client attachments in a grid at the exact aggregate capability hash returned by gridClientMods. The caller must be currently present in the grid. Widening the author’s aggregate capabilities changes the hash and requires a new explicit trust action; attachment-level consent rows are written for compatibility. */
|
|
3936
|
+
trustGridAuthor: Scalars['Boolean']['output'];
|
|
3915
3937
|
/** Uninstall: removes the registered instances, grid client attachments, and fetch rights. The acquisition row is RETAINED for audit; reinstalling later needs no new acquisition. Returns false when no matching active install exists. */
|
|
3916
3938
|
uninstallPlayerCode: Scalars['Boolean']['output'];
|
|
3917
3939
|
/** Unlink a federated identity from the signed-in account by identityId. Refuses to remove your last remaining sign-in method. Requires a session token. */
|
|
@@ -4373,6 +4395,12 @@ export type MutationPlayerComputeSetEnabledArgs = {
|
|
|
4373
4395
|
gridId: Scalars['BigInt']['input'];
|
|
4374
4396
|
name: Scalars['String']['input'];
|
|
4375
4397
|
};
|
|
4398
|
+
export type MutationPlayerComputeSetRequiresArgs = {
|
|
4399
|
+
appId: Scalars['BigInt']['input'];
|
|
4400
|
+
gridId: Scalars['BigInt']['input'];
|
|
4401
|
+
requiredClientName?: InputMaybe<Scalars['String']['input']>;
|
|
4402
|
+
serverName: Scalars['String']['input'];
|
|
4403
|
+
};
|
|
4376
4404
|
export type MutationPlayerComputeSetSwitchArgs = {
|
|
4377
4405
|
appId: Scalars['BigInt']['input'];
|
|
4378
4406
|
disabled: Scalars['Boolean']['input'];
|
|
@@ -4665,6 +4693,13 @@ export type MutationTransferGridOwnershipArgs = {
|
|
|
4665
4693
|
export type MutationTransferPlayerCodeListingArgs = {
|
|
4666
4694
|
input: TransferPlayerCodeListingInput;
|
|
4667
4695
|
};
|
|
4696
|
+
export type MutationTrustGridAuthorArgs = {
|
|
4697
|
+
appId: Scalars['BigInt']['input'];
|
|
4698
|
+
authorKind: PlayerCodeOwnerKind;
|
|
4699
|
+
authorRef: Scalars['BigInt']['input'];
|
|
4700
|
+
consentCapabilityHash: Scalars['String']['input'];
|
|
4701
|
+
gridId: Scalars['BigInt']['input'];
|
|
4702
|
+
};
|
|
4668
4703
|
export type MutationUninstallPlayerCodeArgs = {
|
|
4669
4704
|
appId: Scalars['BigInt']['input'];
|
|
4670
4705
|
installId: Scalars['String']['input'];
|
|
@@ -5163,7 +5198,7 @@ export type PlayerClientArtifact = {
|
|
|
5163
5198
|
abiVersion: Scalars['Int']['output'];
|
|
5164
5199
|
/** The gas-injected client WASM artifact, base64-encoded. */
|
|
5165
5200
|
artifactBase64: Scalars['String']['output'];
|
|
5166
|
-
/**
|
|
5201
|
+
/** SHA-256 content hash of the served artifact bytes. The browser broker recomputes it and refuses any artifact whose hash differs, so a side-loaded module cannot run (T7). */
|
|
5167
5202
|
artifactHash: Scalars['String']['output'];
|
|
5168
5203
|
/** Per-dispatch client fuel budget from the resolved player policy; the broker's glue worker traps when a dispatch exceeds it. */
|
|
5169
5204
|
clientFuelPerDispatch: Scalars['BigInt']['output'];
|
|
@@ -5299,7 +5334,7 @@ export declare enum PlayerCodeListingStatus {
|
|
|
5299
5334
|
Delisted = "DELISTED",
|
|
5300
5335
|
Killed = "KILLED"
|
|
5301
5336
|
}
|
|
5302
|
-
/** An immutable published version of a code listing: artifact hashes (never source)
|
|
5337
|
+
/** An immutable published version of a code listing: artifact hashes (never source), explicit server-to-client requirements, and the DERIVED capability summary installers consent to. */
|
|
5303
5338
|
export type PlayerCodeListingVersion = {
|
|
5304
5339
|
__typename?: 'PlayerCodeListingVersion';
|
|
5305
5340
|
/** sha256 of the canonical capability summary. installPlayerCode and consentGridClientMod must echo this hash as the consent acknowledgement. */
|
|
@@ -5316,6 +5351,8 @@ export type PlayerCodeListingVersion = {
|
|
|
5316
5351
|
listingId: Scalars['String']['output'];
|
|
5317
5352
|
/** Whether this version’s source is open (irreversible per version). */
|
|
5318
5353
|
openSource: Scalars['Boolean']['output'];
|
|
5354
|
+
/** Explicit SERVER artifact to required CLIENT artifact edges. Every referenced hash is a member of this immutable bundle. */
|
|
5355
|
+
requirements: Array<PlayerCodeRequirement>;
|
|
5319
5356
|
/** Server-target artifact hashes (empty for client-only listings). */
|
|
5320
5357
|
serverArtifactHashes: Array<Scalars['String']['output']>;
|
|
5321
5358
|
/** UUID of this published version. */
|
|
@@ -5328,7 +5365,15 @@ export declare enum PlayerCodeOwnerKind {
|
|
|
5328
5365
|
Org = "ORG",
|
|
5329
5366
|
User = "USER"
|
|
5330
5367
|
}
|
|
5331
|
-
/**
|
|
5368
|
+
/** One explicit edge from a server artifact to the client artifact it requires within the same immutable marketplace bundle. */
|
|
5369
|
+
export type PlayerCodeRequirement = {
|
|
5370
|
+
__typename?: 'PlayerCodeRequirement';
|
|
5371
|
+
/** Artifact hash of the CLIENT half required by that server. */
|
|
5372
|
+
clientArtifactHash: Scalars['String']['output'];
|
|
5373
|
+
/** Artifact hash of the SERVER half declaring the requirement. */
|
|
5374
|
+
serverArtifactHash: Scalars['String']['output'];
|
|
5375
|
+
};
|
|
5376
|
+
/** 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). */
|
|
5332
5377
|
export type PlayerCodeVersion = {
|
|
5333
5378
|
__typename?: 'PlayerCodeVersion';
|
|
5334
5379
|
/** Numeric app id (denormalized from the listing). */
|
|
@@ -5347,6 +5392,8 @@ export type PlayerCodeVersion = {
|
|
|
5347
5392
|
listingId: Scalars['String']['output'];
|
|
5348
5393
|
/** Whether this version’s source is open. Open-sourcing a version is irreversible for that version; later versions may return to closed. */
|
|
5349
5394
|
openSource: Scalars['Boolean']['output'];
|
|
5395
|
+
/** Explicit SERVER artifact to required CLIENT artifact edges. Every referenced hash is a member of this immutable bundle. */
|
|
5396
|
+
requirements: Array<PlayerCodeRequirement>;
|
|
5350
5397
|
/** Artifact hashes of the server-target modules in this version (empty for client-only listings). */
|
|
5351
5398
|
serverArtifactHashes: Array<Scalars['String']['output']>;
|
|
5352
5399
|
/** UUID of this published version. */
|
|
@@ -5569,6 +5616,8 @@ export type PlayerWasmModule = {
|
|
|
5569
5616
|
circuitState: Scalars['String']['output'];
|
|
5570
5617
|
/** Creation time. */
|
|
5571
5618
|
createdAt: Scalars['DateTime']['output'];
|
|
5619
|
+
/** Target of the current immutable version, or null before the first deploy. */
|
|
5620
|
+
currentTarget: Maybe<PlayerComputeTarget>;
|
|
5572
5621
|
/** Currently deployed immutable version UUID. */
|
|
5573
5622
|
currentVersionId: Maybe<Scalars['String']['output']>;
|
|
5574
5623
|
/** Module description. */
|
|
@@ -5996,7 +6045,7 @@ export type Query = {
|
|
|
5996
6045
|
gridClaimPolicy: GridClaimPolicy;
|
|
5997
6046
|
/** Pending grid claim requests: designated approvers (or studio staff holding manage_compute) see the app's queue; other callers see their own requests. */
|
|
5998
6047
|
gridClaimRequests: Array<GridClaimRequest>;
|
|
5999
|
-
/**
|
|
6048
|
+
/** Marketplace and self-authored client mods attached to a grid. Rows include exact attachment consent plus an aggregate capability summary/hash and trust state per author. Games should show one author prompt, call trustGridAuthor, cache by clientArtifactHash, and poll this metadata to stop removed or changed workers. */
|
|
6000
6049
|
gridClientMods: Array<GridClientMod>;
|
|
6001
6050
|
/** List the group/role -> permission-key grants configured on a grid for one group (rows of the `grid_group_grants` input table). These are inputs to the effective ACL, not the materialized result — use `gridUserPermissions` for a specific user's effective keys. Requires app-admin ('manage_apps'). */
|
|
6002
6051
|
gridGroupGrants: Array<GridGroupGrant>;
|
|
@@ -6094,7 +6143,7 @@ export type Query = {
|
|
|
6094
6143
|
playerAutoBilling: PlayerAutoBilling;
|
|
6095
6144
|
/** List only the caller-owned player automations in one currently owned grid. Requires an app-scoped token; no app-wide listing exists. */
|
|
6096
6145
|
playerAutomations: Array<PlayerAutomation>;
|
|
6097
|
-
/** Fetch
|
|
6146
|
+
/** 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'. */
|
|
6098
6147
|
playerCodeClientArtifact: PlayerClientArtifact;
|
|
6099
6148
|
/** List the immutable published versions of a listing, newest first, with each version’s derived capability summary and consent hash. */
|
|
6100
6149
|
playerCodeListingVersions: Array<PlayerCodeListingVersion>;
|
|
@@ -6690,7 +6739,8 @@ export type QueryPlayerAutomationsArgs = {
|
|
|
6690
6739
|
};
|
|
6691
6740
|
export type QueryPlayerCodeClientArtifactArgs = {
|
|
6692
6741
|
appId: Scalars['BigInt']['input'];
|
|
6693
|
-
|
|
6742
|
+
attachmentId?: InputMaybe<Scalars['String']['input']>;
|
|
6743
|
+
listingId?: InputMaybe<Scalars['String']['input']>;
|
|
6694
6744
|
versionId?: InputMaybe<Scalars['String']['input']>;
|
|
6695
6745
|
};
|
|
6696
6746
|
export type QueryPlayerCodeListingVersionsArgs = {
|
|
@@ -13271,6 +13321,11 @@ export type PlayerCodeListingVersionFieldsFragment = {
|
|
|
13271
13321
|
openSource: boolean;
|
|
13272
13322
|
licenseText: string | null;
|
|
13273
13323
|
createdAt: string | null;
|
|
13324
|
+
requirements: Array<{
|
|
13325
|
+
__typename?: 'PlayerCodeRequirement';
|
|
13326
|
+
serverArtifactHash: string;
|
|
13327
|
+
clientArtifactHash: string;
|
|
13328
|
+
}>;
|
|
13274
13329
|
};
|
|
13275
13330
|
export type PlayerCodeAcquisitionFieldsFragment = {
|
|
13276
13331
|
__typename?: 'PlayerCodeAcquisition';
|
|
@@ -13349,6 +13404,11 @@ export type MarketplaceListingVersionsQuery = {
|
|
|
13349
13404
|
openSource: boolean;
|
|
13350
13405
|
licenseText: string | null;
|
|
13351
13406
|
createdAt: string | null;
|
|
13407
|
+
requirements: Array<{
|
|
13408
|
+
__typename?: 'PlayerCodeRequirement';
|
|
13409
|
+
serverArtifactHash: string;
|
|
13410
|
+
clientArtifactHash: string;
|
|
13411
|
+
}>;
|
|
13352
13412
|
}>;
|
|
13353
13413
|
};
|
|
13354
13414
|
export type MarketplaceMyAcquisitionsQueryVariables = Exact<{
|
|
@@ -13396,18 +13456,28 @@ export type MarketplaceGridClientModsQuery = {
|
|
|
13396
13456
|
gridClientMods: Array<{
|
|
13397
13457
|
__typename?: 'GridClientMod';
|
|
13398
13458
|
attachmentId: string;
|
|
13399
|
-
listingId: string;
|
|
13459
|
+
listingId: string | null;
|
|
13400
13460
|
listingName: string;
|
|
13401
|
-
versionId: string;
|
|
13461
|
+
versionId: string | null;
|
|
13462
|
+
sourceKind: string;
|
|
13463
|
+
authorKind: PlayerCodeOwnerKind;
|
|
13464
|
+
authorRef: string;
|
|
13465
|
+
serverVersionId: string | null;
|
|
13466
|
+
clientVersionId: string | null;
|
|
13467
|
+
clientArtifactHash: string;
|
|
13402
13468
|
gridId: string;
|
|
13403
13469
|
capabilitySummaryJson: string;
|
|
13404
13470
|
capabilityHash: string;
|
|
13471
|
+
authorCapabilitySummaryJson: string;
|
|
13472
|
+
authorCapabilityHash: string;
|
|
13405
13473
|
callerConsented: boolean;
|
|
13474
|
+
callerTrustsAuthor: boolean;
|
|
13406
13475
|
}>;
|
|
13407
13476
|
};
|
|
13408
13477
|
export type MarketplaceClientArtifactQueryVariables = Exact<{
|
|
13409
13478
|
appId: Scalars['BigInt']['input'];
|
|
13410
|
-
listingId
|
|
13479
|
+
listingId?: InputMaybe<Scalars['String']['input']>;
|
|
13480
|
+
attachmentId?: InputMaybe<Scalars['String']['input']>;
|
|
13411
13481
|
versionId?: InputMaybe<Scalars['String']['input']>;
|
|
13412
13482
|
}>;
|
|
13413
13483
|
export type MarketplaceClientArtifactQuery = {
|
|
@@ -13423,6 +13493,17 @@ export type MarketplaceClientArtifactQuery = {
|
|
|
13423
13493
|
clientFuelPerDispatch: string;
|
|
13424
13494
|
};
|
|
13425
13495
|
};
|
|
13496
|
+
export type MarketplaceTrustGridAuthorMutationVariables = Exact<{
|
|
13497
|
+
appId: Scalars['BigInt']['input'];
|
|
13498
|
+
gridId: Scalars['BigInt']['input'];
|
|
13499
|
+
authorKind: PlayerCodeOwnerKind;
|
|
13500
|
+
authorRef: Scalars['BigInt']['input'];
|
|
13501
|
+
consentCapabilityHash: Scalars['String']['input'];
|
|
13502
|
+
}>;
|
|
13503
|
+
export type MarketplaceTrustGridAuthorMutation = {
|
|
13504
|
+
__typename?: 'Mutation';
|
|
13505
|
+
trustGridAuthor: boolean;
|
|
13506
|
+
};
|
|
13426
13507
|
export type MarketplacePublishListingMutationVariables = Exact<{
|
|
13427
13508
|
input: PublishPlayerCodeInput;
|
|
13428
13509
|
}>;
|
|
@@ -13466,6 +13547,11 @@ export type MarketplacePublishVersionMutation = {
|
|
|
13466
13547
|
openSource: boolean;
|
|
13467
13548
|
licenseText: string | null;
|
|
13468
13549
|
createdAt: string | null;
|
|
13550
|
+
requirements: Array<{
|
|
13551
|
+
__typename?: 'PlayerCodeRequirement';
|
|
13552
|
+
serverArtifactHash: string;
|
|
13553
|
+
clientArtifactHash: string;
|
|
13554
|
+
}>;
|
|
13469
13555
|
};
|
|
13470
13556
|
};
|
|
13471
13557
|
export type MarketplaceAcquireMutationVariables = Exact<{
|
|
@@ -14512,6 +14598,7 @@ export type PlayerWasmModuleFieldsFragment = {
|
|
|
14512
14598
|
enabled: boolean;
|
|
14513
14599
|
draft: boolean;
|
|
14514
14600
|
currentVersionId: string | null;
|
|
14601
|
+
currentTarget: PlayerComputeTarget | null;
|
|
14515
14602
|
circuitState: string;
|
|
14516
14603
|
lastError: string | null;
|
|
14517
14604
|
createdAt: string;
|
|
@@ -14569,12 +14656,23 @@ export type PlayerComputeSetEnabledMutation = {
|
|
|
14569
14656
|
enabled: boolean;
|
|
14570
14657
|
draft: boolean;
|
|
14571
14658
|
currentVersionId: string | null;
|
|
14659
|
+
currentTarget: PlayerComputeTarget | null;
|
|
14572
14660
|
circuitState: string;
|
|
14573
14661
|
lastError: string | null;
|
|
14574
14662
|
createdAt: string;
|
|
14575
14663
|
updatedAt: string;
|
|
14576
14664
|
};
|
|
14577
14665
|
};
|
|
14666
|
+
export type PlayerComputeSetRequiresMutationVariables = Exact<{
|
|
14667
|
+
appId: Scalars['BigInt']['input'];
|
|
14668
|
+
gridId: Scalars['BigInt']['input'];
|
|
14669
|
+
serverName: Scalars['String']['input'];
|
|
14670
|
+
requiredClientName?: InputMaybe<Scalars['String']['input']>;
|
|
14671
|
+
}>;
|
|
14672
|
+
export type PlayerComputeSetRequiresMutation = {
|
|
14673
|
+
__typename?: 'Mutation';
|
|
14674
|
+
playerComputeSetRequires: boolean;
|
|
14675
|
+
};
|
|
14578
14676
|
export type PlayerComputeMyModulesQueryVariables = Exact<{
|
|
14579
14677
|
appId: Scalars['BigInt']['input'];
|
|
14580
14678
|
}>;
|
|
@@ -14592,6 +14690,7 @@ export type PlayerComputeMyModulesQuery = {
|
|
|
14592
14690
|
enabled: boolean;
|
|
14593
14691
|
draft: boolean;
|
|
14594
14692
|
currentVersionId: string | null;
|
|
14693
|
+
currentTarget: PlayerComputeTarget | null;
|
|
14595
14694
|
circuitState: string;
|
|
14596
14695
|
lastError: string | null;
|
|
14597
14696
|
createdAt: string;
|
|
@@ -17110,6 +17209,7 @@ export declare const MarketplaceMyAcquisitionsDocument: DocumentNode<Marketplace
|
|
|
17110
17209
|
export declare const MarketplaceMyInstallsDocument: DocumentNode<MarketplaceMyInstallsQuery, MarketplaceMyInstallsQueryVariables>;
|
|
17111
17210
|
export declare const MarketplaceGridClientModsDocument: DocumentNode<MarketplaceGridClientModsQuery, MarketplaceGridClientModsQueryVariables>;
|
|
17112
17211
|
export declare const MarketplaceClientArtifactDocument: DocumentNode<MarketplaceClientArtifactQuery, MarketplaceClientArtifactQueryVariables>;
|
|
17212
|
+
export declare const MarketplaceTrustGridAuthorDocument: DocumentNode<MarketplaceTrustGridAuthorMutation, MarketplaceTrustGridAuthorMutationVariables>;
|
|
17113
17213
|
export declare const MarketplacePublishListingDocument: DocumentNode<MarketplacePublishListingMutation, MarketplacePublishListingMutationVariables>;
|
|
17114
17214
|
export declare const MarketplacePublishVersionDocument: DocumentNode<MarketplacePublishVersionMutation, MarketplacePublishVersionMutationVariables>;
|
|
17115
17215
|
export declare const MarketplaceAcquireDocument: DocumentNode<MarketplaceAcquireMutation, MarketplaceAcquireMutationVariables>;
|
|
@@ -17174,6 +17274,7 @@ export declare const PaymentEventsConnectionDocument: DocumentNode<PaymentEvents
|
|
|
17174
17274
|
export declare const PlatformConfigDocument: DocumentNode<PlatformConfigQuery, PlatformConfigQueryVariables>;
|
|
17175
17275
|
export declare const PlayerComputeDeployDocument: DocumentNode<PlayerComputeDeployMutation, PlayerComputeDeployMutationVariables>;
|
|
17176
17276
|
export declare const PlayerComputeSetEnabledDocument: DocumentNode<PlayerComputeSetEnabledMutation, PlayerComputeSetEnabledMutationVariables>;
|
|
17277
|
+
export declare const PlayerComputeSetRequiresDocument: DocumentNode<PlayerComputeSetRequiresMutation, PlayerComputeSetRequiresMutationVariables>;
|
|
17177
17278
|
export declare const PlayerComputeMyModulesDocument: DocumentNode<PlayerComputeMyModulesQuery, PlayerComputeMyModulesQueryVariables>;
|
|
17178
17279
|
export declare const PlayerComputeVersionsDocument: DocumentNode<PlayerComputeVersionsQuery, PlayerComputeVersionsQueryVariables>;
|
|
17179
17280
|
export declare const PlayerComputeDeleteDocument: DocumentNode<PlayerComputeDeleteMutation, PlayerComputeDeleteMutationVariables>;
|