@crowdedkingdoms/crowdyjs 17.14.0-dev.1 → 18.0.1-dev.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/MIGRATION.md +129 -1
- package/README.md +97 -164
- package/dist/crowdy-client.d.ts +12 -31
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +15 -37
- package/dist/crowdy-dsh/bridge.d.ts.map +1 -1
- package/dist/crowdy-dsh/bridge.js +3 -6
- package/dist/crowdy-studio/controller.d.ts +34 -59
- package/dist/crowdy-studio/controller.d.ts.map +1 -1
- package/dist/crowdy-studio/controller.js +96 -225
- package/dist/crowdy-studio/diagnostics.d.ts +3 -12
- package/dist/crowdy-studio/diagnostics.d.ts.map +1 -1
- package/dist/crowdy-studio/dom-shell.d.ts +2 -4
- package/dist/crowdy-studio/dom-shell.d.ts.map +1 -1
- package/dist/crowdy-studio/dom-shell.js +16 -49
- package/dist/crowdy-studio/embed/hud-layer.d.ts +1 -2
- package/dist/crowdy-studio/embed/hud-layer.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.d.ts +3 -13
- package/dist/crowdy-studio/embed/panel.d.ts.map +1 -1
- package/dist/crowdy-studio/embed/panel.js +3 -6
- package/dist/crowdy-studio/index.d.ts +1 -3
- package/dist/crowdy-studio/index.d.ts.map +1 -1
- package/dist/crowdy-studio/index.js +0 -2
- package/dist/crowdy-studio/models.d.ts +3 -4
- package/dist/crowdy-studio/models.d.ts.map +1 -1
- package/dist/crowdy-studio/starter-projects.d.ts +8 -12
- package/dist/crowdy-studio/starter-projects.d.ts.map +1 -1
- package/dist/crowdy-studio/starter-projects.js +12 -103
- package/dist/domains/appAccess.d.ts +14 -1
- package/dist/domains/appAccess.d.ts.map +1 -1
- package/dist/domains/appAccess.js +37 -1
- package/dist/domains/apps.d.ts +1 -10
- package/dist/domains/apps.d.ts.map +1 -1
- package/dist/domains/apps.js +1 -16
- package/dist/domains/host.d.ts +3 -3
- package/dist/domains/host.js +3 -3
- package/dist/domains/hosting.d.ts +0 -6
- package/dist/domains/hosting.d.ts.map +1 -1
- package/dist/domains/hosting.js +1 -16
- package/dist/domains/marketplace.d.ts +9 -70
- package/dist/domains/marketplace.d.ts.map +1 -1
- package/dist/domains/marketplace.js +9 -120
- package/dist/domains/organizations.d.ts +1 -9
- package/dist/domains/organizations.d.ts.map +1 -1
- package/dist/domains/organizations.js +1 -15
- package/dist/domains/payments.d.ts +5 -48
- package/dist/domains/payments.d.ts.map +1 -1
- package/dist/domains/payments.js +5 -57
- package/dist/domains/playerWallet.d.ts +6 -12
- package/dist/domains/playerWallet.d.ts.map +1 -1
- package/dist/domains/playerWallet.js +6 -21
- package/dist/domains/quotas.d.ts +20 -7
- package/dist/domains/quotas.d.ts.map +1 -1
- package/dist/domains/quotas.js +15 -6
- package/dist/domains/users.d.ts +7 -74
- package/dist/domains/users.d.ts.map +1 -1
- package/dist/domains/users.js +7 -105
- package/dist/errors.d.ts +7 -13
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +6 -10
- package/dist/generated/graphql.d.ts +955 -8272
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +5 -329
- package/dist/grid-mods/exec-client-halves.d.ts +19 -3
- package/dist/grid-mods/exec-client-halves.d.ts.map +1 -1
- package/dist/grid-mods/exec-client-halves.js +17 -2
- package/dist/grid-mods/grid-host-calls.d.ts +29 -17
- package/dist/grid-mods/grid-host-calls.d.ts.map +1 -1
- package/dist/grid-mods/grid-host-calls.js +40 -46
- package/dist/grid-mods/mod-runtime.d.ts +18 -11
- package/dist/grid-mods/mod-runtime.d.ts.map +1 -1
- package/dist/grid-mods/mod-runtime.js +4 -2
- package/dist/grid-scope.d.ts +0 -189
- package/dist/grid-scope.d.ts.map +1 -1
- package/dist/grid-scope.js +0 -70
- package/dist/index.d.ts +12 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -16
- package/dist/kit/actions.d.ts +5 -9
- package/dist/kit/actions.d.ts.map +1 -1
- package/dist/kit/actions.js +5 -9
- package/dist/kit/index.d.ts +2 -33
- package/dist/kit/index.d.ts.map +1 -1
- package/dist/kit/index.js +1 -32
- package/dist/kit/kit.d.ts +8 -208
- package/dist/kit/kit.d.ts.map +1 -1
- package/dist/kit/kit.js +5 -163
- package/dist/kit/social.d.ts +1 -3
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/kit/social.js +1 -3
- package/dist/kit/wire.d.ts +16 -5
- package/dist/kit/wire.d.ts.map +1 -1
- package/dist/kit/wire.js +19 -5
- package/dist/live-coding/assets/browser-authoring-index.json +1 -1
- package/dist/live-coding/assets/manifest.json +1 -1
- package/dist/live-coding/browser-authoring-index.generated.d.ts.map +1 -1
- package/dist/live-coding/browser-authoring-index.generated.js +1496 -4386
- package/dist/live-coding/rust-analysis.d.ts.map +1 -1
- package/dist/live-coding/rust-analysis.js +30 -34
- package/dist/player-runtime/client-host-calls.d.ts +8 -0
- package/dist/player-runtime/client-host-calls.d.ts.map +1 -0
- package/dist/player-runtime/client-host-calls.js +28 -0
- package/dist/player-runtime/glue-runtime.d.ts +24 -20
- package/dist/player-runtime/glue-runtime.d.ts.map +1 -1
- package/dist/player-runtime/glue-runtime.js +26 -55
- package/dist/player-runtime/glue-sab.d.ts +2 -2
- package/dist/player-runtime/glue-sab.js +2 -2
- package/dist/player-runtime/player-code-broker.d.ts +70 -43
- package/dist/player-runtime/player-code-broker.d.ts.map +1 -1
- package/dist/player-runtime/player-code-broker.js +159 -64
- package/dist/player-runtime/player-glue-worker.d.ts +8 -9
- package/dist/player-runtime/player-glue-worker.d.ts.map +1 -1
- package/dist/player-runtime/player-glue-worker.js +26 -11
- package/dist/stores/inbox.d.ts +1 -1
- package/dist/stores/inbox.d.ts.map +1 -1
- package/dist/stores/index.d.ts +0 -11
- package/dist/stores/index.d.ts.map +1 -1
- package/dist/stores/index.js +0 -4
- package/dist/stores/session.d.ts +0 -2
- package/dist/stores/session.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/crowdy-studio/model-lint-log.d.ts +0 -76
- package/dist/crowdy-studio/model-lint-log.d.ts.map +0 -1
- package/dist/crowdy-studio/model-lint-log.js +0 -93
- package/dist/crowdy-studio/model-lint.d.ts +0 -61
- package/dist/crowdy-studio/model-lint.d.ts.map +0 -1
- package/dist/crowdy-studio/model-lint.js +0 -45
- package/dist/domains/compute.d.ts +0 -208
- package/dist/domains/compute.d.ts.map +0 -1
- package/dist/domains/compute.js +0 -274
- package/dist/domains/controlPlane.d.ts +0 -38
- package/dist/domains/controlPlane.d.ts.map +0 -1
- package/dist/domains/controlPlane.js +0 -43
- package/dist/domains/gameModel.d.ts +0 -1174
- package/dist/domains/gameModel.d.ts.map +0 -1
- package/dist/domains/gameModel.js +0 -1333
- package/dist/domains/playerCompute.d.ts +0 -91
- package/dist/domains/playerCompute.d.ts.map +0 -1
- package/dist/domains/playerCompute.js +0 -136
- package/dist/domains/playerModel.d.ts +0 -20
- package/dist/domains/playerModel.d.ts.map +0 -1
- package/dist/domains/playerModel.js +0 -54
- package/dist/kit/abilities.d.ts +0 -66
- package/dist/kit/abilities.d.ts.map +0 -1
- package/dist/kit/abilities.js +0 -71
- package/dist/kit/blueprints/combat.d.ts +0 -81
- package/dist/kit/blueprints/combat.d.ts.map +0 -1
- package/dist/kit/blueprints/combat.js +0 -357
- package/dist/kit/blueprints/core.d.ts +0 -222
- package/dist/kit/blueprints/core.d.ts.map +0 -1
- package/dist/kit/blueprints/core.js +0 -185
- package/dist/kit/blueprints/decks.d.ts +0 -50
- package/dist/kit/blueprints/decks.d.ts.map +0 -1
- package/dist/kit/blueprints/decks.js +0 -163
- package/dist/kit/blueprints/economy.d.ts +0 -88
- package/dist/kit/blueprints/economy.d.ts.map +0 -1
- package/dist/kit/blueprints/economy.js +0 -533
- package/dist/kit/blueprints/guild.d.ts +0 -51
- package/dist/kit/blueprints/guild.d.ts.map +0 -1
- package/dist/kit/blueprints/guild.js +0 -50
- package/dist/kit/blueprints/index.d.ts +0 -23
- package/dist/kit/blueprints/index.d.ts.map +0 -1
- package/dist/kit/blueprints/index.js +0 -22
- package/dist/kit/blueprints/inventory.d.ts +0 -84
- package/dist/kit/blueprints/inventory.d.ts.map +0 -1
- package/dist/kit/blueprints/inventory.js +0 -257
- package/dist/kit/blueprints/leaderboards.d.ts +0 -49
- package/dist/kit/blueprints/leaderboards.d.ts.map +0 -1
- package/dist/kit/blueprints/leaderboards.js +0 -126
- package/dist/kit/blueprints/liveops.d.ts +0 -42
- package/dist/kit/blueprints/liveops.d.ts.map +0 -1
- package/dist/kit/blueprints/liveops.js +0 -170
- package/dist/kit/blueprints/locks.d.ts +0 -82
- package/dist/kit/blueprints/locks.d.ts.map +0 -1
- package/dist/kit/blueprints/locks.js +0 -155
- package/dist/kit/blueprints/loot.d.ts +0 -90
- package/dist/kit/blueprints/loot.d.ts.map +0 -1
- package/dist/kit/blueprints/loot.js +0 -229
- package/dist/kit/blueprints/matches.d.ts +0 -84
- package/dist/kit/blueprints/matches.d.ts.map +0 -1
- package/dist/kit/blueprints/matches.js +0 -349
- package/dist/kit/blueprints/moderation.d.ts +0 -32
- package/dist/kit/blueprints/moderation.d.ts.map +0 -1
- package/dist/kit/blueprints/moderation.js +0 -140
- package/dist/kit/blueprints/npcs.d.ts +0 -78
- package/dist/kit/blueprints/npcs.d.ts.map +0 -1
- package/dist/kit/blueprints/npcs.js +0 -125
- package/dist/kit/blueprints/plots.d.ts +0 -63
- package/dist/kit/blueprints/plots.d.ts.map +0 -1
- package/dist/kit/blueprints/plots.js +0 -151
- package/dist/kit/blueprints/progression.d.ts +0 -68
- package/dist/kit/blueprints/progression.d.ts.map +0 -1
- package/dist/kit/blueprints/progression.js +0 -324
- package/dist/kit/blueprints/quests.d.ts +0 -72
- package/dist/kit/blueprints/quests.d.ts.map +0 -1
- package/dist/kit/blueprints/quests.js +0 -285
- package/dist/kit/blueprints/worldsim.d.ts +0 -91
- package/dist/kit/blueprints/worldsim.d.ts.map +0 -1
- package/dist/kit/blueprints/worldsim.js +0 -468
- package/dist/kit/combat.d.ts +0 -141
- package/dist/kit/combat.d.ts.map +0 -1
- package/dist/kit/combat.js +0 -196
- package/dist/kit/decks.d.ts +0 -157
- package/dist/kit/decks.d.ts.map +0 -1
- package/dist/kit/decks.js +0 -186
- package/dist/kit/director.d.ts +0 -88
- package/dist/kit/director.d.ts.map +0 -1
- package/dist/kit/director.js +0 -86
- package/dist/kit/economy.d.ts +0 -289
- package/dist/kit/economy.d.ts.map +0 -1
- package/dist/kit/economy.js +0 -427
- package/dist/kit/engine.d.ts +0 -48
- package/dist/kit/engine.d.ts.map +0 -1
- package/dist/kit/engine.js +0 -113
- package/dist/kit/features.d.ts +0 -60
- package/dist/kit/features.d.ts.map +0 -1
- package/dist/kit/features.js +0 -65
- package/dist/kit/instances.d.ts +0 -52
- package/dist/kit/instances.d.ts.map +0 -1
- package/dist/kit/instances.js +0 -60
- package/dist/kit/inventory.d.ts +0 -129
- package/dist/kit/inventory.d.ts.map +0 -1
- package/dist/kit/inventory.js +0 -200
- package/dist/kit/leaderboards.d.ts +0 -86
- package/dist/kit/leaderboards.d.ts.map +0 -1
- package/dist/kit/leaderboards.js +0 -133
- package/dist/kit/liveops.d.ts +0 -112
- package/dist/kit/liveops.d.ts.map +0 -1
- package/dist/kit/liveops.js +0 -183
- package/dist/kit/loot.d.ts +0 -128
- package/dist/kit/loot.d.ts.map +0 -1
- package/dist/kit/loot.js +0 -160
- package/dist/kit/matches.d.ts +0 -301
- package/dist/kit/matches.d.ts.map +0 -1
- package/dist/kit/matches.js +0 -458
- package/dist/kit/matchmaking.d.ts +0 -57
- package/dist/kit/matchmaking.d.ts.map +0 -1
- package/dist/kit/matchmaking.js +0 -59
- package/dist/kit/minigames.d.ts +0 -30
- package/dist/kit/minigames.d.ts.map +0 -1
- package/dist/kit/minigames.js +0 -38
- package/dist/kit/mobs.d.ts +0 -90
- package/dist/kit/mobs.d.ts.map +0 -1
- package/dist/kit/mobs.js +0 -98
- package/dist/kit/moderation.d.ts +0 -73
- package/dist/kit/moderation.d.ts.map +0 -1
- package/dist/kit/moderation.js +0 -103
- package/dist/kit/movement.d.ts +0 -78
- package/dist/kit/movement.d.ts.map +0 -1
- package/dist/kit/movement.js +0 -103
- package/dist/kit/notifications.d.ts +0 -45
- package/dist/kit/notifications.d.ts.map +0 -1
- package/dist/kit/notifications.js +0 -67
- package/dist/kit/npcs.d.ts +0 -226
- package/dist/kit/npcs.d.ts.map +0 -1
- package/dist/kit/npcs.js +0 -141
- package/dist/kit/objects.d.ts +0 -116
- package/dist/kit/objects.d.ts.map +0 -1
- package/dist/kit/objects.js +0 -119
- package/dist/kit/pets.d.ts +0 -85
- package/dist/kit/pets.d.ts.map +0 -1
- package/dist/kit/pets.js +0 -96
- package/dist/kit/plots.d.ts +0 -85
- package/dist/kit/plots.d.ts.map +0 -1
- package/dist/kit/plots.js +0 -113
- package/dist/kit/progression.d.ts +0 -181
- package/dist/kit/progression.d.ts.map +0 -1
- package/dist/kit/progression.js +0 -265
- package/dist/kit/quests.d.ts +0 -171
- package/dist/kit/quests.d.ts.map +0 -1
- package/dist/kit/quests.js +0 -237
- package/dist/kit/racing.d.ts +0 -85
- package/dist/kit/racing.d.ts.map +0 -1
- package/dist/kit/racing.js +0 -99
- package/dist/kit/shared.d.ts +0 -73
- package/dist/kit/shared.d.ts.map +0 -1
- package/dist/kit/shared.js +0 -101
- package/dist/kit/telemetry.d.ts +0 -66
- package/dist/kit/telemetry.d.ts.map +0 -1
- package/dist/kit/telemetry.js +0 -133
- package/dist/kit/territory.d.ts +0 -97
- package/dist/kit/territory.d.ts.map +0 -1
- package/dist/kit/territory.js +0 -114
- package/dist/kit/worldsim.d.ts +0 -263
- package/dist/kit/worldsim.d.ts.map +0 -1
- package/dist/kit/worldsim.js +0 -268
- package/dist/stores/model.d.ts +0 -81
- package/dist/stores/model.d.ts.map +0 -1
- package/dist/stores/model.js +0 -163
package/dist/domains/apps.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type AppQuery, type AppBySlugQuery, type MyAppsQuery, type AppsForOrgQuery, type MarketplaceAppsQuery, type MarketplaceAppsQueryVariables, type AppsConnectionQuery, type AppsConnectionQueryVariables, type CreateAppMutation, type UpdateAppMutation, type ArchiveAppMutation, type
|
|
2
|
+
import { type AppQuery, type AppBySlugQuery, type MyAppsQuery, type AppsForOrgQuery, type MarketplaceAppsQuery, type MarketplaceAppsQueryVariables, type AppsConnectionQuery, type AppsConnectionQueryVariables, type CreateAppMutation, type UpdateAppMutation, type ArchiveAppMutation, type AppCodeAdmissionModeQuery, type AppCodeAdmissionsQuery, type SetAppCodeAdmissionModeMutation, type AdmitAppCodeMutation, type RevokeAppCodeAdmissionMutation, type PlaceableDatacentersQuery, type CreateAppInput, type UpdateAppInput, type AdmitAppCodeInput, type CodeAdmissionMode } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* The minimal routing tuple the SDK derives from an `App` row: just enough to
|
|
5
5
|
* decide which game-api endpoint should serve a given app. Returned by
|
|
@@ -230,14 +230,5 @@ export declare class AppsAPI {
|
|
|
230
230
|
* `manage_apps`.
|
|
231
231
|
*/
|
|
232
232
|
archive(appId: string): Promise<ArchiveAppMutation['archiveApp']>;
|
|
233
|
-
/**
|
|
234
|
-
* Override an app's marketplace visibility. **Super-admin only.**
|
|
235
|
-
*
|
|
236
|
-
* @param appId - Numeric app id.
|
|
237
|
-
* @param visibility - The new {@link AppVisibility}.
|
|
238
|
-
* @returns The app's updated visibility.
|
|
239
|
-
* @throws {CrowdyGraphQLError} `FORBIDDEN` for non-super-admins.
|
|
240
|
-
*/
|
|
241
|
-
setVisibility(appId: string, visibility: AppVisibility): Promise<SetAppVisibilityMutation['setAppVisibility']>;
|
|
242
233
|
}
|
|
243
234
|
//# sourceMappingURL=apps.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAgBL,KAAK,QAAQ,EAEb,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAgBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,qBAAa,OAAO;IACN,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAE/C;;;OAGG;IACG,iBAAiB,CACrB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,CAAC;IAO7D;;;;OAIG;IACG,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AoB,CAAC,MAAM,CAAC,CAAC;IAKxC;;;;;;;OAOG;IACG,qBAAqB,CACzB,IAAI,GAAE,4BAAiC,GACtC,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAKjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,oBAAoB,IAAI,OAAO,CACnC,yBAAyB,CAAC,sBAAsB,CAAC,CAClD;IAKD;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAK1C;;;;;;;;OAQG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAQ1C;;;;;;;OAOG;IACG,OAAO,CACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;CAI7C"}
|
package/dist/domains/apps.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AppDocument, AppBySlugDocument, MyAppsDocument, AppsForOrgDocument, MarketplaceAppsDocument, AppsConnectionDocument, CreateAppDocument, UpdateAppDocument, ArchiveAppDocument,
|
|
1
|
+
import { AppDocument, AppBySlugDocument, MyAppsDocument, AppsForOrgDocument, MarketplaceAppsDocument, AppsConnectionDocument, CreateAppDocument, UpdateAppDocument, ArchiveAppDocument, AppCodeAdmissionModeDocument, AppCodeAdmissionsDocument, SetAppCodeAdmissionModeDocument, AdmitAppCodeDocument, RevokeAppCodeAdmissionDocument, PlaceableDatacentersDocument, } from '../generated/graphql.js';
|
|
2
2
|
function appRouteFromAppRow(row) {
|
|
3
3
|
if (!row || typeof row !== 'object')
|
|
4
4
|
return null;
|
|
@@ -277,19 +277,4 @@ export class AppsAPI {
|
|
|
277
277
|
const data = await this.api.request(ArchiveAppDocument, { appId });
|
|
278
278
|
return data.archiveApp;
|
|
279
279
|
}
|
|
280
|
-
/**
|
|
281
|
-
* Override an app's marketplace visibility. **Super-admin only.**
|
|
282
|
-
*
|
|
283
|
-
* @param appId - Numeric app id.
|
|
284
|
-
* @param visibility - The new {@link AppVisibility}.
|
|
285
|
-
* @returns The app's updated visibility.
|
|
286
|
-
* @throws {CrowdyGraphQLError} `FORBIDDEN` for non-super-admins.
|
|
287
|
-
*/
|
|
288
|
-
async setVisibility(appId, visibility) {
|
|
289
|
-
const data = await this.api.request(SetAppVisibilityDocument, {
|
|
290
|
-
appId,
|
|
291
|
-
visibility,
|
|
292
|
-
});
|
|
293
|
-
return data.setAppVisibility;
|
|
294
|
-
}
|
|
295
280
|
}
|
package/dist/domains/host.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { type GameHostQuery, type AmIGameHostQuery, type ActorHeartbeatMutation
|
|
|
8
8
|
* first wins). {@link heartbeat} refreshes the caller's actor freshness (keeping
|
|
9
9
|
* them host-eligible) and returns the freshly-elected host in one round-trip —
|
|
10
10
|
* call it on an interval shorter than the server's freshness window.
|
|
11
|
-
* {@link amIHost} is a UI convenience (not authoritative for mutations —
|
|
12
|
-
*
|
|
11
|
+
* {@link amIHost} is a UI convenience (not authoritative for mutations — a hub
|
|
12
|
+
* decides that from the caller). All require a valid session;
|
|
13
13
|
* `appId` is a `BigInt` decimal string.
|
|
14
14
|
*
|
|
15
15
|
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` without a session.
|
|
@@ -28,7 +28,7 @@ export declare class HostAPI {
|
|
|
28
28
|
/**
|
|
29
29
|
* Return whether the authenticated caller is the currently elected host for
|
|
30
30
|
* the app. Convenience for UI only — not authoritative for server mutations
|
|
31
|
-
* (
|
|
31
|
+
* (a hub decides those from the caller).
|
|
32
32
|
*
|
|
33
33
|
* @param appId - The app to check host election for.
|
|
34
34
|
* @returns `true` if the caller is the elected host; otherwise `false`.
|
package/dist/domains/host.js
CHANGED
|
@@ -7,8 +7,8 @@ import { GameHostDocument, AmIGameHostDocument, ActorHeartbeatDocument, } from '
|
|
|
7
7
|
* first wins). {@link heartbeat} refreshes the caller's actor freshness (keeping
|
|
8
8
|
* them host-eligible) and returns the freshly-elected host in one round-trip —
|
|
9
9
|
* call it on an interval shorter than the server's freshness window.
|
|
10
|
-
* {@link amIHost} is a UI convenience (not authoritative for mutations —
|
|
11
|
-
*
|
|
10
|
+
* {@link amIHost} is a UI convenience (not authoritative for mutations — a hub
|
|
11
|
+
* decides that from the caller). All require a valid session;
|
|
12
12
|
* `appId` is a `BigInt` decimal string.
|
|
13
13
|
*
|
|
14
14
|
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` without a session.
|
|
@@ -31,7 +31,7 @@ export class HostAPI {
|
|
|
31
31
|
/**
|
|
32
32
|
* Return whether the authenticated caller is the currently elected host for
|
|
33
33
|
* the app. Convenience for UI only — not authoritative for server mutations
|
|
34
|
-
* (
|
|
34
|
+
* (a hub decides those from the caller).
|
|
35
35
|
*
|
|
36
36
|
* @param appId - The app to check host election for.
|
|
37
37
|
* @returns `true` if the caller is the elected host; otherwise `false`.
|
|
@@ -31,8 +31,6 @@ export declare class HostingAPI {
|
|
|
31
31
|
game(slug: string): Promise<HostedGame | null>;
|
|
32
32
|
/** Public: the LIVE, LISTED hosted games -- the lobby's list. */
|
|
33
33
|
listed(): Promise<HostedGame[]>;
|
|
34
|
-
/** Operator: every hosted game on the tier. */
|
|
35
|
-
all(): Promise<HostedGame[]>;
|
|
36
34
|
/** The hosted games the caller can manage. Session token. */
|
|
37
35
|
mine(): Promise<HostedGame[]>;
|
|
38
36
|
/** Publish history for a game, newest first. Session token + manage_apps. */
|
|
@@ -57,10 +55,6 @@ export declare class HostingAPI {
|
|
|
57
55
|
abandonPublish(slug: string, publishId: string): Promise<HostedGamePublish>;
|
|
58
56
|
/** Developer switch: off (DISABLED) or on (LIVE). */
|
|
59
57
|
setEnabled(slug: string, enabled: boolean): Promise<HostedGame>;
|
|
60
|
-
/** Operator: list or unlist in the lobby and the management UI. */
|
|
61
|
-
setListing(slug: string, listed: boolean): Promise<HostedGame>;
|
|
62
|
-
/** Operator: take down (or restore with `false`). */
|
|
63
|
-
takeDown(slug: string, takenDown?: boolean): Promise<HostedGame>;
|
|
64
58
|
}
|
|
65
59
|
/**
|
|
66
60
|
* Upload every file of a publish to its presigned URL, with bounded concurrency and
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosting.d.ts","sourceRoot":"","sources":["../../src/domains/hosting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"hosting.d.ts","sourceRoot":"","sources":["../../src/domains/hosting.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAUL,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,gBAAgB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAClD,MAAM,MAAM,iBAAiB,GAAG,+BAA+B,CAAC;AAChE,MAAM,MAAM,sBAAsB,GAAG,wBAAwB,CAAC,kBAAkB,CAAC,CAAC;AAClF,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACzE,MAAM,MAAM,yBAAyB,GAAG,2BAA2B,CAAC,qBAAqB,CAAC,CAAC;AAC3F,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAEjC;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAE/C,oEAAoE;IAC9D,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;IAKpD,iEAAiE;IAC3D,MAAM,IA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.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbandonGamePublishDocument,
|
|
1
|
+
import { AbandonGamePublishDocument, BeginGamePublishDocument, ClaimGameHostingDocument, CompleteGamePublishDocument, HostedGameDocument, HostedGamePublishesDocument, HostedGamesDocument, MyHostedGamesDocument, SetHostedGameEnabledDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
3
|
* Third-party game hosting on Crowdy Games (ck-api v2.1, 2026-09-13).
|
|
4
4
|
*
|
|
@@ -31,11 +31,6 @@ export class HostingAPI {
|
|
|
31
31
|
const data = await this.api.request(HostedGamesDocument, {});
|
|
32
32
|
return data.hostedGames;
|
|
33
33
|
}
|
|
34
|
-
/** Operator: every hosted game on the tier. */
|
|
35
|
-
async all() {
|
|
36
|
-
const data = await this.api.request(AllHostedGamesDocument, {});
|
|
37
|
-
return data.allHostedGames;
|
|
38
|
-
}
|
|
39
34
|
/** The hosted games the caller can manage. Session token. */
|
|
40
35
|
async mine() {
|
|
41
36
|
const data = await this.api.request(MyHostedGamesDocument, {});
|
|
@@ -77,16 +72,6 @@ export class HostingAPI {
|
|
|
77
72
|
const data = await this.api.request(SetHostedGameEnabledDocument, { input: { slug, enabled } });
|
|
78
73
|
return data.setHostedGameEnabled;
|
|
79
74
|
}
|
|
80
|
-
/** Operator: list or unlist in the lobby and the management UI. */
|
|
81
|
-
async setListing(slug, listed) {
|
|
82
|
-
const data = await this.api.request(SetHostedGameListingDocument, { input: { slug, listed } });
|
|
83
|
-
return data.setHostedGameListing;
|
|
84
|
-
}
|
|
85
|
-
/** Operator: take down (or restore with `false`). */
|
|
86
|
-
async takeDown(slug, takenDown = true) {
|
|
87
|
-
const data = await this.api.request(TakeDownHostedGameDocument, { slug, takenDown });
|
|
88
|
-
return data.takeDownHostedGame;
|
|
89
|
-
}
|
|
90
75
|
}
|
|
91
76
|
/**
|
|
92
77
|
* Upload every file of a publish to its presigned URL, with bounded concurrency and
|
|
@@ -1,77 +1,17 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type
|
|
2
|
+
import { type MarketplaceGridClaimPolicyQuery, type MarketplaceGridClaimPolicyQueryVariables, type MarketplaceGridClaimRequestsQuery, type MarketplaceGridClaimRequestsQueryVariables, type MarketplaceClaimGridOwnershipMutation, type MarketplaceClaimGridOwnershipMutationVariables, type MarketplaceClaimGridChunkMutation, type MarketplaceClaimGridChunkMutationVariables, type MarketplaceReleaseClaimedGridMutation, type MarketplaceReleaseClaimedGridMutationVariables, 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
|
-
*
|
|
5
|
-
* `client.marketplace
|
|
6
|
-
*
|
|
7
|
-
* administration, ownership transfer, claim-policy config).
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* an acquisition is an entitlement write, and the paid modes ship with P4b.
|
|
12
|
-
* Publishing snapshots artifact hashes and the DERIVED capability summary —
|
|
13
|
-
* never source; installs consent to the summary's hash.
|
|
4
|
+
* Grid claims and the app's player-code administration — exposed as
|
|
5
|
+
* `client.marketplace`: the D4 grid claim flows (policy, requests, chunk and
|
|
6
|
+
* ownership claims, invites) and studio moderation (admission queue, catalog
|
|
7
|
+
* administration, ownership transfer, claim-policy config). The player-facing
|
|
8
|
+
* listings (publish, acquire, install) and grid-attached client mods went with
|
|
9
|
+
* legacy player compute; ck-exec mods publish and install with
|
|
10
|
+
* `client.exec.modPublish` / `modInstall`.
|
|
14
11
|
*/
|
|
15
12
|
export declare class MarketplaceAPI {
|
|
16
13
|
private readonly game;
|
|
17
14
|
constructor(game: GraphQLClient);
|
|
18
|
-
/** Browse the app's active listings with admission standing per listing. */
|
|
19
|
-
listings(variables: MarketplaceListingsQueryVariables): Promise<MarketplaceListingsQuery['playerCodeListings']>;
|
|
20
|
-
/** Published versions of one listing (capability summaries + consent hashes). */
|
|
21
|
-
versions(variables: MarketplaceListingVersionsQueryVariables): Promise<MarketplaceListingVersionsQuery['playerCodeListingVersions']>;
|
|
22
|
-
/** The caller's entitlements in this app. */
|
|
23
|
-
myAcquisitions(variables: MarketplaceMyAcquisitionsQueryVariables): Promise<MarketplaceMyAcquisitionsQuery['myPlayerCodeAcquisitions']>;
|
|
24
|
-
/** The caller's active installs in this app. */
|
|
25
|
-
myInstalls(variables: MarketplaceMyInstallsQueryVariables): Promise<MarketplaceMyInstallsQuery['myPlayerCodeInstalls']>;
|
|
26
|
-
/** Create a listing (personal, or org-owned via input.ownerOrgId). */
|
|
27
|
-
publishListing(variables: MarketplacePublishListingMutationVariables): Promise<MarketplacePublishListingMutation['publishPlayerCode']>;
|
|
28
|
-
/** Publish an immutable version from compiled module versions (hashes only). */
|
|
29
|
-
publishVersion(variables: MarketplacePublishVersionMutationVariables): Promise<MarketplacePublishVersionMutation['publishPlayerCodeVersion']>;
|
|
30
|
-
/** Free acquisition (entitlement write; idempotent per listing+caller). */
|
|
31
|
-
acquire(variables: MarketplaceAcquireMutationVariables): Promise<MarketplaceAcquireMutation['acquirePlayerCode']>;
|
|
32
|
-
/**
|
|
33
|
-
* Install an acquisition after consenting to the version's capability
|
|
34
|
-
* hash. Server/bundled listings need an owned target gridId.
|
|
35
|
-
*/
|
|
36
|
-
install(variables: MarketplaceInstallMutationVariables): Promise<MarketplaceInstallMutation['installPlayerCode']>;
|
|
37
|
-
/** Remove instances/attachments/fetch rights; the acquisition is retained. */
|
|
38
|
-
uninstall(variables: MarketplaceUninstallMutationVariables): Promise<boolean>;
|
|
39
|
-
/**
|
|
40
|
-
* Client mods attached to a grid, with the caller's consent state.
|
|
41
|
-
* @deprecated Superseded by `client.exec.gridClientMods` (a ck-exec mod's CLIENT half); removed in 18.0.
|
|
42
|
-
*/
|
|
43
|
-
gridClientMods(variables: MarketplaceGridClientModsQueryVariables): Promise<MarketplaceGridClientModsQuery['gridClientMods']>;
|
|
44
|
-
/**
|
|
45
|
-
* Consent to one attachment's exact capability hash (per player).
|
|
46
|
-
* @deprecated Superseded by `client.exec.consentClientMod`; removed in 18.0.
|
|
47
|
-
*/
|
|
48
|
-
consentGridClientMod(variables: MarketplaceConsentGridClientModMutationVariables): Promise<boolean>;
|
|
49
|
-
/**
|
|
50
|
-
* Trust one author's active attachments in a grid at the exact aggregate
|
|
51
|
-
* capability hash returned by `gridClientMods`. Capability widening changes
|
|
52
|
-
* the hash and requires another explicit call.
|
|
53
|
-
* @deprecated Superseded by `client.exec.trustAuthor`; removed in 18.0.
|
|
54
|
-
*/
|
|
55
|
-
trustGridAuthor(variables: MarketplaceTrustGridAuthorMutationVariables): Promise<MarketplaceTrustGridAuthorMutation['trustGridAuthor']>;
|
|
56
|
-
/**
|
|
57
|
-
* Fetch an acquired/attached listing's client artifact (base64 + metadata).
|
|
58
|
-
* @deprecated Superseded by `client.exec.modClientArtifact`; removed in 18.0.
|
|
59
|
-
*/
|
|
60
|
-
clientArtifact(variables: MarketplaceClientArtifactQueryVariables): Promise<MarketplaceClientArtifactQuery['playerCodeClientArtifact']>;
|
|
61
|
-
/**
|
|
62
|
-
* Fetch and decode a client artifact into broker inputs (bytes, content
|
|
63
|
-
* hash, per-dispatch fuel budget) — the marketplace twin of
|
|
64
|
-
* `playerCompute.artifactBytes` for acquired and grid-attached mods.
|
|
65
|
-
* @deprecated Superseded by `client.exec.modClientArtifactBytes`, which also checks the
|
|
66
|
-
* bytes against their digest; `ExecClientHalves` runs a grid's CLIENT halves. Removed in 18.0.
|
|
67
|
-
*/
|
|
68
|
-
clientArtifactBytes(variables: MarketplaceClientArtifactQueryVariables): Promise<{
|
|
69
|
-
bytes: ArrayBuffer;
|
|
70
|
-
artifactHash: string;
|
|
71
|
-
fuelPerDispatch: bigint;
|
|
72
|
-
contractJson: string | null;
|
|
73
|
-
versionId: string;
|
|
74
|
-
}>;
|
|
75
15
|
/** The app's claim policy (self_claim / approval / invite / marketplace_only). */
|
|
76
16
|
gridClaimPolicy(variables: MarketplaceGridClaimPolicyQueryVariables): Promise<MarketplaceGridClaimPolicyQuery['gridClaimPolicy']>;
|
|
77
17
|
/** Pending claim requests (approvers see the app queue; players their own). */
|
|
@@ -103,8 +43,7 @@ export declare class MarketplaceAPI {
|
|
|
103
43
|
transferListing(variables: MarketplaceTransferListingMutationVariables): Promise<MarketplaceTransferListingMutation['transferPlayerCodeListing']>;
|
|
104
44
|
/**
|
|
105
45
|
* Catalog status: DELISTED/ACTIVE are owner actions; KILLED is the studio
|
|
106
|
-
* catalog kill
|
|
107
|
-
* also disable running installs fleet-wide.
|
|
46
|
+
* catalog kill.
|
|
108
47
|
*/
|
|
109
48
|
setListingStatus(variables: MarketplaceSetListingStatusMutationVariables): Promise<MarketplaceSetListingStatusMutation['setPlayerCodeListingStatus']>;
|
|
110
49
|
/** Configure the app's D4 grid claim policy (manage_apps). */
|
|
@@ -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,EAcL,KAAK,+BAA+B,EACpC,KAAK,wCAAwC,EAC7C,KAAK,iCAAiC,EACtC,KAAK,0C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,oEAAoE;IAC9D,oBAAoB,CACxB,SAAS,EAAE,gDAAgD,GAC1D,OAAO,CAAC,OAAO,CAAC;IAWnB,qEAAqE;IAC/D,cAAc,CAClB,SAAS,EAAE,uCAAuC,GACjD,OAAO,CAAC,8BAA8B,CAAC,uBAAuB,CAAC,CAAC;IAQnE,gFAAgF;IAC1E,WAAW,CACf,SAAS,EAAE,oCAAoC,GAC9C,OAAO,CAAC,2BAA2B,CAAC,uBAAuB,CAAC,CAAC;IAQhE,uDAAuD;IACjD,eAAe,CACnB,SAAS,EAAE,wCAAwC,GAClD,OAAO,CAAC,+BAA+B,CAAC,2BAA2B,CAAC,CAAC;IASxE,sDAAsD;IAChD,eAAe,CACnB,SAAS,EAAE,2CAA2C,GACrD,OAAO,CAAC,kCAAkC,CAAC,2BAA2B,CAAC,CAAC;IAS3E;;;OAGG;IACG,gBAAgB,CACpB,SAAS,EAAE,4CAA4C,GACtD,OAAO,CAAC,mCAAmC,CAAC,4BAA4B,CAAC,CAAC;IAS7E,8DAA8D;IACxD,kBAAkB,CACtB,SAAS,EAAE,8CAA8C,GACxD,OAAO,CAAC,qCAAqC,CAAC,uBAAuB,CAAC,CAAC;CAQ3E"}
|
|
@@ -1,127 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MarketplaceGridClaimPolicyDocument, MarketplaceGridClaimRequestsDocument, MarketplaceClaimGridOwnershipDocument, MarketplaceClaimGridChunkDocument, MarketplaceReleaseClaimedGridDocument, MarketplaceDecideGridClaimDocument, MarketplaceIssueGridClaimInviteDocument, MarketplaceAdmissionQueueDocument, MarketplaceAppListingsDocument, MarketplaceAppAcquisitionsDocument, MarketplaceTransferListingDocument, MarketplaceSetListingStatusDocument, MarketplaceSetGridClaimPolicyDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* `client.marketplace
|
|
5
|
-
*
|
|
6
|
-
* administration, ownership transfer, claim-policy config).
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* an acquisition is an entitlement write, and the paid modes ship with P4b.
|
|
11
|
-
* Publishing snapshots artifact hashes and the DERIVED capability summary —
|
|
12
|
-
* never source; installs consent to the summary's hash.
|
|
3
|
+
* Grid claims and the app's player-code administration — exposed as
|
|
4
|
+
* `client.marketplace`: the D4 grid claim flows (policy, requests, chunk and
|
|
5
|
+
* ownership claims, invites) and studio moderation (admission queue, catalog
|
|
6
|
+
* administration, ownership transfer, claim-policy config). The player-facing
|
|
7
|
+
* listings (publish, acquire, install) and grid-attached client mods went with
|
|
8
|
+
* legacy player compute; ck-exec mods publish and install with
|
|
9
|
+
* `client.exec.modPublish` / `modInstall`.
|
|
13
10
|
*/
|
|
14
11
|
export class MarketplaceAPI {
|
|
15
12
|
constructor(game) {
|
|
16
13
|
this.game = game;
|
|
17
14
|
}
|
|
18
|
-
// -- Store ---------------------------------------------------------
|
|
19
|
-
/** Browse the app's active listings with admission standing per listing. */
|
|
20
|
-
async listings(variables) {
|
|
21
|
-
const data = await this.game.request(MarketplaceListingsDocument, variables);
|
|
22
|
-
return data.playerCodeListings;
|
|
23
|
-
}
|
|
24
|
-
/** Published versions of one listing (capability summaries + consent hashes). */
|
|
25
|
-
async versions(variables) {
|
|
26
|
-
const data = await this.game.request(MarketplaceListingVersionsDocument, variables);
|
|
27
|
-
return data.playerCodeListingVersions;
|
|
28
|
-
}
|
|
29
|
-
/** The caller's entitlements in this app. */
|
|
30
|
-
async myAcquisitions(variables) {
|
|
31
|
-
const data = await this.game.request(MarketplaceMyAcquisitionsDocument, variables);
|
|
32
|
-
return data.myPlayerCodeAcquisitions;
|
|
33
|
-
}
|
|
34
|
-
/** The caller's active installs in this app. */
|
|
35
|
-
async myInstalls(variables) {
|
|
36
|
-
const data = await this.game.request(MarketplaceMyInstallsDocument, variables);
|
|
37
|
-
return data.myPlayerCodeInstalls;
|
|
38
|
-
}
|
|
39
|
-
/** Create a listing (personal, or org-owned via input.ownerOrgId). */
|
|
40
|
-
async publishListing(variables) {
|
|
41
|
-
const data = await this.game.request(MarketplacePublishListingDocument, variables);
|
|
42
|
-
return data.publishPlayerCode;
|
|
43
|
-
}
|
|
44
|
-
/** Publish an immutable version from compiled module versions (hashes only). */
|
|
45
|
-
async publishVersion(variables) {
|
|
46
|
-
const data = await this.game.request(MarketplacePublishVersionDocument, variables);
|
|
47
|
-
return data.publishPlayerCodeVersion;
|
|
48
|
-
}
|
|
49
|
-
/** Free acquisition (entitlement write; idempotent per listing+caller). */
|
|
50
|
-
async acquire(variables) {
|
|
51
|
-
const data = await this.game.request(MarketplaceAcquireDocument, variables);
|
|
52
|
-
return data.acquirePlayerCode;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Install an acquisition after consenting to the version's capability
|
|
56
|
-
* hash. Server/bundled listings need an owned target gridId.
|
|
57
|
-
*/
|
|
58
|
-
async install(variables) {
|
|
59
|
-
const data = await this.game.request(MarketplaceInstallDocument, variables);
|
|
60
|
-
return data.installPlayerCode;
|
|
61
|
-
}
|
|
62
|
-
/** Remove instances/attachments/fetch rights; the acquisition is retained. */
|
|
63
|
-
async uninstall(variables) {
|
|
64
|
-
const data = await this.game.request(MarketplaceUninstallDocument, variables);
|
|
65
|
-
return data.uninstallPlayerCode;
|
|
66
|
-
}
|
|
67
|
-
// -- Grid-attached client mods (D2) --------------------------------------------
|
|
68
|
-
// Superseded by ck-exec mods' CLIENT halves (`client.exec`, 17.14.0) and removed with the
|
|
69
|
-
// legacy engines in 18.0.
|
|
70
|
-
/**
|
|
71
|
-
* Client mods attached to a grid, with the caller's consent state.
|
|
72
|
-
* @deprecated Superseded by `client.exec.gridClientMods` (a ck-exec mod's CLIENT half); removed in 18.0.
|
|
73
|
-
*/
|
|
74
|
-
async gridClientMods(variables) {
|
|
75
|
-
const data = await this.game.request(MarketplaceGridClientModsDocument, variables);
|
|
76
|
-
return data.gridClientMods;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Consent to one attachment's exact capability hash (per player).
|
|
80
|
-
* @deprecated Superseded by `client.exec.consentClientMod`; removed in 18.0.
|
|
81
|
-
*/
|
|
82
|
-
async consentGridClientMod(variables) {
|
|
83
|
-
const data = await this.game.request(MarketplaceConsentGridClientModDocument, variables);
|
|
84
|
-
return data.consentGridClientMod;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Trust one author's active attachments in a grid at the exact aggregate
|
|
88
|
-
* capability hash returned by `gridClientMods`. Capability widening changes
|
|
89
|
-
* the hash and requires another explicit call.
|
|
90
|
-
* @deprecated Superseded by `client.exec.trustAuthor`; removed in 18.0.
|
|
91
|
-
*/
|
|
92
|
-
async trustGridAuthor(variables) {
|
|
93
|
-
const data = await this.game.request(MarketplaceTrustGridAuthorDocument, variables);
|
|
94
|
-
return data.trustGridAuthor;
|
|
95
|
-
}
|
|
96
|
-
/**
|
|
97
|
-
* Fetch an acquired/attached listing's client artifact (base64 + metadata).
|
|
98
|
-
* @deprecated Superseded by `client.exec.modClientArtifact`; removed in 18.0.
|
|
99
|
-
*/
|
|
100
|
-
async clientArtifact(variables) {
|
|
101
|
-
const data = await this.game.request(MarketplaceClientArtifactDocument, variables);
|
|
102
|
-
return data.playerCodeClientArtifact;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Fetch and decode a client artifact into broker inputs (bytes, content
|
|
106
|
-
* hash, per-dispatch fuel budget) — the marketplace twin of
|
|
107
|
-
* `playerCompute.artifactBytes` for acquired and grid-attached mods.
|
|
108
|
-
* @deprecated Superseded by `client.exec.modClientArtifactBytes`, which also checks the
|
|
109
|
-
* bytes against their digest; `ExecClientHalves` runs a grid's CLIENT halves. Removed in 18.0.
|
|
110
|
-
*/
|
|
111
|
-
async clientArtifactBytes(variables) {
|
|
112
|
-
const a = await this.clientArtifact(variables);
|
|
113
|
-
const binary = atob(a.artifactBase64);
|
|
114
|
-
const bytes = new Uint8Array(binary.length);
|
|
115
|
-
for (let i = 0; i < binary.length; i++)
|
|
116
|
-
bytes[i] = binary.charCodeAt(i);
|
|
117
|
-
return {
|
|
118
|
-
bytes: bytes.buffer,
|
|
119
|
-
artifactHash: a.artifactHash,
|
|
120
|
-
fuelPerDispatch: BigInt(a.clientFuelPerDispatch),
|
|
121
|
-
contractJson: a.contractJson ?? null,
|
|
122
|
-
versionId: a.versionId,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
15
|
// -- D4 grid claim flows (Game API) ---------------------------------------------
|
|
126
16
|
/** The app's claim policy (self_claim / approval / invite / marketplace_only). */
|
|
127
17
|
async gridClaimPolicy(variables) {
|
|
@@ -188,8 +78,7 @@ export class MarketplaceAPI {
|
|
|
188
78
|
}
|
|
189
79
|
/**
|
|
190
80
|
* Catalog status: DELISTED/ACTIVE are owner actions; KILLED is the studio
|
|
191
|
-
* catalog kill
|
|
192
|
-
* also disable running installs fleet-wide.
|
|
81
|
+
* catalog kill.
|
|
193
82
|
*/
|
|
194
83
|
async setListingStatus(variables) {
|
|
195
84
|
const data = await this.game.request(MarketplaceSetListingStatusDocument, variables);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type OrganizationQuery, type OrganizationBySlugQuery, type MyOrganizationsQuery, type OrgMembersQuery, type OrgRolesQuery, type MemberRolesQuery, type OrgPermissionsQuery, type OrgTokensQuery, type CreateOrganizationMutation, type
|
|
2
|
+
import { type OrganizationQuery, type OrganizationBySlugQuery, type MyOrganizationsQuery, type OrgMembersQuery, type OrgRolesQuery, type MemberRolesQuery, type OrgPermissionsQuery, type OrgTokensQuery, type CreateOrganizationMutation, type CreateOrgTokenMutation, type UpdateOrgTokenMutation, type RevokeOrgTokenMutation, type InviteOrgMemberMutation, type RemoveOrgMemberMutation, type UpdateOrgMemberRolesMutation, type CreateOrgRoleMutation, type UpdateOrgRoleMutation, type DeleteOrgRoleMutation, type CreateOrganizationInput, type CreateOrgTokenInput, type UpdateOrgTokenInput, type InviteOrgMemberInput, type CreateOrgRoleInput, type UpdateOrgRoleInput } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* Organizations, members, roles (RBAC), and org API tokens — exposed as
|
|
5
5
|
* `client.organizations` (and grouped under `client.admin`).
|
|
@@ -89,14 +89,6 @@ export declare class OrganizationsAPI {
|
|
|
89
89
|
* @returns The created {@link Organization}.
|
|
90
90
|
*/
|
|
91
91
|
create(input: CreateOrganizationInput): Promise<CreateOrganizationMutation['createOrganization']>;
|
|
92
|
-
/**
|
|
93
|
-
* Set an organization's lifecycle status. **Super-admin only.**
|
|
94
|
-
*
|
|
95
|
-
* @param orgId - Numeric org id.
|
|
96
|
-
* @param status - The new status (e.g. `"active"`, `"suspended"`).
|
|
97
|
-
* @returns The updated {@link Organization}.
|
|
98
|
-
*/
|
|
99
|
-
setStatus(orgId: string, status: string): Promise<SetOrgStatusMutation['setOrgStatus']>;
|
|
100
92
|
/**
|
|
101
93
|
* Mint a new org API token (for server-side studio backends). Requires the
|
|
102
94
|
* `manage_tokens` org permission. The plaintext secret is returned **once**.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/domains/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/domains/organizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAmBL,KAAK,iBAAiB,EACtB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,uB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OrgRolesDocument, MemberRolesDocument, OrgPermissionsDocument, OrgTokensDocument, CreateOrganizationDocument,
|
|
1
|
+
import { OrganizationDocument, OrganizationBySlugDocument, MyOrganizationsDocument, OrgMembersDocument, OrgRolesDocument, MemberRolesDocument, OrgPermissionsDocument, OrgTokensDocument, CreateOrganizationDocument, CreateOrgTokenDocument, UpdateOrgTokenDocument, RevokeOrgTokenDocument, InviteOrgMemberDocument, RemoveOrgMemberDocument, UpdateOrgMemberRolesDocument, CreateOrgRoleDocument, UpdateOrgRoleDocument, DeleteOrgRoleDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
3
|
* Organizations, members, roles (RBAC), and org API tokens — exposed as
|
|
4
4
|
* `client.organizations` (and grouped under `client.admin`).
|
|
@@ -124,20 +124,6 @@ export class OrganizationsAPI {
|
|
|
124
124
|
});
|
|
125
125
|
return data.createOrganization;
|
|
126
126
|
}
|
|
127
|
-
/**
|
|
128
|
-
* Set an organization's lifecycle status. **Super-admin only.**
|
|
129
|
-
*
|
|
130
|
-
* @param orgId - Numeric org id.
|
|
131
|
-
* @param status - The new status (e.g. `"active"`, `"suspended"`).
|
|
132
|
-
* @returns The updated {@link Organization}.
|
|
133
|
-
*/
|
|
134
|
-
async setStatus(orgId, status) {
|
|
135
|
-
const data = await this.api.request(SetOrgStatusDocument, {
|
|
136
|
-
orgId,
|
|
137
|
-
status,
|
|
138
|
-
});
|
|
139
|
-
return data.setOrgStatus;
|
|
140
|
-
}
|
|
141
127
|
/**
|
|
142
128
|
* Mint a new org API token (for server-side studio backends). Requires the
|
|
143
129
|
* `manage_tokens` org permission. The plaintext secret is returned **once**.
|
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type MyCheckoutsQuery, type MyCheckoutsConnectionQuery, type MyCheckoutsConnectionQueryVariables, type
|
|
2
|
+
import { type MyCheckoutsQuery, type MyCheckoutsConnectionQuery, type MyCheckoutsConnectionQueryVariables, type CreateCheckoutMutation, type CreateCheckoutInput, type CapturePaypalCheckoutMutation } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* Payment checkouts (wallet top-ups, plan purchases) — exposed as
|
|
5
5
|
* `client.payments` (and grouped under `client.admin`).
|
|
6
6
|
*
|
|
7
|
-
* Part of the management surface.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Part of the management surface. Every method requires an authenticated
|
|
8
|
+
* caller and acts on the caller's own checkouts. Amounts are minor currency
|
|
9
|
+
* units (`*Cents`).
|
|
10
10
|
*
|
|
11
11
|
* Note: {@link create} starts a real payment-provider checkout (Stripe /
|
|
12
12
|
* PayPal). In tests use sandbox provider keys only — never trigger real
|
|
13
13
|
* charges.
|
|
14
14
|
*
|
|
15
|
-
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED`
|
|
16
|
-
* above.
|
|
15
|
+
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` without a session.
|
|
17
16
|
*/
|
|
18
17
|
export declare class PaymentsAPI {
|
|
19
18
|
private readonly api;
|
|
@@ -36,19 +35,6 @@ export declare class PaymentsAPI {
|
|
|
36
35
|
limit?: number;
|
|
37
36
|
offset?: number;
|
|
38
37
|
}): Promise<MyCheckoutsQuery['myCheckouts']>;
|
|
39
|
-
/**
|
|
40
|
-
* List checkouts across all users with an optional filter. **Super-admin
|
|
41
|
-
* only.**
|
|
42
|
-
*
|
|
43
|
-
* @param opts - Optional {@link CheckoutFilterInput} `filter` and `limit` /
|
|
44
|
-
* `offset`.
|
|
45
|
-
* @returns The matching checkouts.
|
|
46
|
-
*/
|
|
47
|
-
all(opts?: {
|
|
48
|
-
filter?: CheckoutFilterInput;
|
|
49
|
-
limit?: number;
|
|
50
|
-
offset?: number;
|
|
51
|
-
}): Promise<CheckoutsQuery['checkouts']>;
|
|
52
38
|
/**
|
|
53
39
|
* Capture an approved PayPal order, finalizing the checkout it belongs to.
|
|
54
40
|
* Call this after the buyer approves the PayPal order returned by
|
|
@@ -71,34 +57,5 @@ export declare class PaymentsAPI {
|
|
|
71
57
|
* @returns A checkouts connection.
|
|
72
58
|
*/
|
|
73
59
|
mineConnection(args?: MyCheckoutsConnectionQueryVariables): Promise<MyCheckoutsConnectionQuery['myCheckoutsConnection']>;
|
|
74
|
-
/**
|
|
75
|
-
* Relay-style cursor pagination over all checkouts (with optional filter) —
|
|
76
|
-
* the preferred alternative to {@link all}. **Super-admin only.**
|
|
77
|
-
*
|
|
78
|
-
* @param args - Optional `first`, `after`, and {@link CheckoutFilterInput}.
|
|
79
|
-
* @returns A checkouts connection.
|
|
80
|
-
*/
|
|
81
|
-
allConnection(args?: CheckoutsConnectionQueryVariables): Promise<CheckoutsConnectionQuery['checkoutsConnection']>;
|
|
82
|
-
/**
|
|
83
|
-
* List provider webhook events (offset pagination). **Super-admin only** — an
|
|
84
|
-
* audit view of received Stripe/PayPal/SES events.
|
|
85
|
-
*
|
|
86
|
-
* @param opts - Optional `limit` / `offset`.
|
|
87
|
-
* @returns A page of {@link PaymentEventRecord}s.
|
|
88
|
-
* @remarks Prefer {@link eventsConnection} (Relay cursor pagination); the
|
|
89
|
-
* offset args here are deprecated server-side.
|
|
90
|
-
*/
|
|
91
|
-
events(opts?: {
|
|
92
|
-
limit?: PaymentEventsQueryVariables['limit'];
|
|
93
|
-
offset?: PaymentEventsQueryVariables['offset'];
|
|
94
|
-
}): Promise<PaymentEventsQuery['paymentEvents']>;
|
|
95
|
-
/**
|
|
96
|
-
* Relay-style cursor pagination over provider webhook events. **Super-admin
|
|
97
|
-
* only.** See https://docs.crowdedkingdoms.com/overview/pagination.
|
|
98
|
-
*
|
|
99
|
-
* @param args - Optional `first` and `after`.
|
|
100
|
-
* @returns A payment-events connection.
|
|
101
|
-
*/
|
|
102
|
-
eventsConnection(args?: PaymentEventsConnectionQueryVariables): Promise<PaymentEventsConnectionQuery['paymentEventsConnection']>;
|
|
103
60
|
}
|
|
104
61
|
//# sourceMappingURL=payments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/domains/payments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"payments.d.ts","sourceRoot":"","sources":["../../src/domains/payments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAKL,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAC/B,KAAK,mCAAmC,EACxC,KAAK,sBAAsB,EAC3B,KAAK,mBAAmB,EACxB,KAAK,6BAA6B,EACnC,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;GAaG;AACH,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAE/C;;;;;;OAMG;IACG,MAAM,CACV,KAAK,EAAE,mBAAmB,GACzB,OAAO,CAAC,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;IAOpD;;;;;OAKG;IACG,IAAI,CACR,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO,GAC7C,OAAO,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAQ3C;;;;;;;;;;;OAWG;IACG,aAAa,CACjB,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,6BAA6B,CAAC,uBAAuB,CAAC,CAAC;IAQlE;;;;;;;OAOG;IACG,cAAc,CAClB,IAAI,GAAE,mCAAwC,GAC7C,OAAO,CAAC,0BAA0B,CAAC,uBAAuB,CAAC,CAAC;CAOhE"}
|