@crowdedkingdoms/crowdyjs 8.9.0 → 8.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/MIGRATION.md +16 -0
- package/README.md +5 -1
- package/dist/domains/compute.d.ts +1 -1
- package/dist/domains/compute.js +1 -1
- package/dist/domains/gameModel.d.ts +22 -9
- package/dist/domains/gameModel.d.ts.map +1 -1
- package/dist/domains/gameModel.js +22 -9
- package/dist/generated/graphql.d.ts +53 -11
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +6 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -2
- package/dist/kit/blueprints/index.d.ts +1 -1
- package/dist/kit/blueprints/index.d.ts.map +1 -1
- package/dist/kit/blueprints/index.js +1 -1
- package/dist/kit/blueprints/inventory.d.ts +47 -1
- package/dist/kit/blueprints/inventory.d.ts.map +1 -1
- package/dist/kit/blueprints/inventory.js +112 -12
- package/dist/kit/combat.d.ts +4 -3
- package/dist/kit/combat.d.ts.map +1 -1
- package/dist/kit/combat.js +4 -3
- package/dist/kit/index.d.ts +1 -1
- package/dist/kit/index.d.ts.map +1 -1
- package/dist/kit/index.js +1 -1
- package/dist/kit/inventory.d.ts +13 -0
- package/dist/kit/inventory.d.ts.map +1 -1
- package/dist/kit/inventory.js +33 -4
- package/dist/kit/npcs.d.ts +4 -1
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/quests.d.ts +4 -0
- package/dist/kit/quests.d.ts.map +1 -1
- package/dist/kit/quests.js +9 -2
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/kit/worldsim.d.ts +4 -1
- package/dist/kit/worldsim.d.ts.map +1 -1
- package/package.json +1 -1
package/MIGRATION.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
# CrowdyJS v8.10 Notes
|
|
2
|
+
|
|
3
|
+
## Added
|
|
4
|
+
|
|
5
|
+
- `inventoryBlueprint({ recipes, barters })` generates atomic Model
|
|
6
|
+
transactions; `kit.inventory.craft(...)` and `.barter(...)` invoke them.
|
|
7
|
+
- Competitive inventory posture:
|
|
8
|
+
`stackInstantiableBy: 'admin'`, `grantAuthority: 'server'`, plus matching
|
|
9
|
+
runtime `ownerIdKind` for legacy string-owner worlds.
|
|
10
|
+
- Compute SDK default `0.1.3`, including transactional `model_invoke` and
|
|
11
|
+
explicitly owned module-created containers.
|
|
12
|
+
|
|
13
|
+
This release is additive. The default inventory posture remains
|
|
14
|
+
member-created/owner-grant for compatibility; competitive games should opt
|
|
15
|
+
into the hardened posture and provide a trusted stack bootstrap.
|
|
16
|
+
|
|
1
17
|
# CrowdyJS v8.9 Notes
|
|
2
18
|
|
|
3
19
|
## Added
|
package/README.md
CHANGED
|
@@ -12,7 +12,11 @@ npm install @crowdedkingdoms/crowdyjs
|
|
|
12
12
|
|
|
13
13
|
CrowdyJS v4 targets browsers by default and uses native `fetch`, `WebSocket`, `crypto`, `btoa`, and `atob`. Node tools can still use the SDK, but must provide browser-compatible globals when opening realtime connections.
|
|
14
14
|
|
|
15
|
-
> **Server compatibility:** v5.2+ targets environments on release **v0.1.19 or later** (`cks-game-api >= v0.10.3`, `cks-management-api >= v0.1.70`). The destructive mutations send an `idempotencyKey` argument that older servers don't define. v6.1's `client.gameApps.deleteGrid` additionally requires release **v0.1.33+** (`cks-game-api >= v0.12.3`). The game-model **permission effects** fields (`permissionEffects` on `gameModel.upsertFunction`/`seed`, `permissionEffectsAppliedJson` on events) require a `cks-game-api` build with the `2026-07-17-model-permission-effects` migration (v0.13.11+); older servers reject queries/mutations that include them (omit the fields and everything else keeps working). The **permission-read** surface (the `has_grid_permission`/`grid_at`/`has_chunk_permission` expression builtins the kit's `chunkPermission` locks compile to, and selector `*PermissionWhere` predicates) additionally requires `cks-game-api` **v0.13.12+**. Older `cks-game-api` builds report game-model **invoke policy denials** as `FORBIDDEN` GraphQL errors instead of resolving with `success: false`; as of this version the kit's invoke helpers map that error onto the documented `{ success: false, errorMessage }` result, so kit callers behave identically against both server generations. v8.6's **`client.compute`** (Compute Modules — server-side Rust/WASM logic) requires a `cks-game-api` build with the compute surface (the `compute*` root fields, v0.13.13+ dev line); older servers reject these operations with a GraphQL validation error, and everything else keeps working. v8.9's **realtime + live-ops surfaces** (`kit.abilities`/`movement`/`territory`/`racing`/`liveops`/`moderation`/`telemetry`, the loot engine path, `client.compute.deployTemplate` + `kit.deploy({engines})`, and the type-94..98 event parsers) complete the 30-abstraction catalog; v8.8's **session-genre engine surfaces** (`kit.instances`/`director`/`matchmaking`/`minigames`, the engine paths on matches/decks/leaderboards, `economy.orderBook`, and the type-91/92/93 event parsers) talk to the Wave 2 engine templates; capability detection keeps model-only deployments on today's behavior. v8.7's **engine kit surfaces** (`kit.mobs`, `kit.pets`, `kit.combat.attackRouted`, `kit.worldsim.forecast`, and the `kit/wire` pose/lane registry) talk to compute-module game engines built on the Wave 0/1 `cks-game-api` dev line (`crowdy-game-kit` crates); capability detection makes them degrade gracefully — model-only deployments keep today's behavior.
|
|
15
|
+
> **Server compatibility:** v8.11's **container query predicates** (`where`/`limit`/`offset` on `gameModel.containers`) and **automation compute actions** (`actionKind: 'compute_invoke'` with `computeModuleName`/`computeExport` on `gameModel.upsertAutomation`; `property_changed` events additionally carry `oldValue`/`newValue` to compute modules) require the 2026-07 `cks-game-api` dev line with the `2026-07-19-automation-compute-action` migration; older servers reject the new arguments/fields (omit them and everything else keeps working). v5.2+ targets environments on release **v0.1.19 or later** (`cks-game-api >= v0.10.3`, `cks-management-api >= v0.1.70`). The destructive mutations send an `idempotencyKey` argument that older servers don't define. v6.1's `client.gameApps.deleteGrid` additionally requires release **v0.1.33+** (`cks-game-api >= v0.12.3`). The game-model **permission effects** fields (`permissionEffects` on `gameModel.upsertFunction`/`seed`, `permissionEffectsAppliedJson` on events) require a `cks-game-api` build with the `2026-07-17-model-permission-effects` migration (v0.13.11+); older servers reject queries/mutations that include them (omit the fields and everything else keeps working). The **permission-read** surface (the `has_grid_permission`/`grid_at`/`has_chunk_permission` expression builtins the kit's `chunkPermission` locks compile to, and selector `*PermissionWhere` predicates) additionally requires `cks-game-api` **v0.13.12+**. Older `cks-game-api` builds report game-model **invoke policy denials** as `FORBIDDEN` GraphQL errors instead of resolving with `success: false`; as of this version the kit's invoke helpers map that error onto the documented `{ success: false, errorMessage }` result, so kit callers behave identically against both server generations. v8.6's **`client.compute`** (Compute Modules — server-side Rust/WASM logic) requires a `cks-game-api` build with the compute surface (the `compute*` root fields, v0.13.13+ dev line); older servers reject these operations with a GraphQL validation error, and everything else keeps working. v8.9's **realtime + live-ops surfaces** (`kit.abilities`/`movement`/`territory`/`racing`/`liveops`/`moderation`/`telemetry`, the loot engine path, `client.compute.deployTemplate` + `kit.deploy({engines})`, and the type-94..98 event parsers) complete the 30-abstraction catalog; v8.8's **session-genre engine surfaces** (`kit.instances`/`director`/`matchmaking`/`minigames`, the engine paths on matches/decks/leaderboards, `economy.orderBook`, and the type-91/92/93 event parsers) talk to the Wave 2 engine templates; capability detection keeps model-only deployments on today's behavior. v8.7's **engine kit surfaces** (`kit.mobs`, `kit.pets`, `kit.combat.attackRouted`, `kit.worldsim.forecast`, and the `kit/wire` pose/lane registry) talk to compute-module game engines built on the Wave 0/1 `cks-game-api` dev line (`crowdy-game-kit` crates); capability detection makes them degrade gracefully — model-only deployments keep today's behavior.
|
|
16
|
+
|
|
17
|
+
> **v8.10 inventory authority:** generated craft/barter transactions work on
|
|
18
|
+
> existing Model servers. Compute-refereed durable commits require Compute SDK
|
|
19
|
+
> `0.1.3` / the `model_invoke` host call.
|
|
16
20
|
|
|
17
21
|
## Standalone builds and schema refresh
|
|
18
22
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
2
|
import { type ComputeUpsertModuleMutation, type ComputeUpsertModuleMutationVariables, type ComputeDeployVersionMutation, type ComputeSetModuleEnabledMutation, type ComputeSetModuleEnabledMutationVariables, type ComputeDeleteModuleMutation, type ComputeDeleteModuleMutationVariables, type ComputeUpsertTriggerMutation, type ComputeUpsertTriggerMutationVariables, type ComputeDeleteTriggerMutation, type ComputeDeleteTriggerMutationVariables, type ComputeSetPolicyMutation, type ComputeSetPolicyMutationVariables, type ComputeInvokeMutation, type ComputeInvokeMutationVariables, type ComputeModulesQuery, type ComputeModulesQueryVariables, type ComputeModuleQuery, type ComputeModuleQueryVariables, type ComputeModuleVersionsQuery, type ComputeModuleVersionsQueryVariables, type ComputeModuleTriggersQuery, type ComputeModuleTriggersQueryVariables, type ComputeModulePolicyQuery, type ComputeModulePolicyQueryVariables, type ComputeModuleRunsQuery, type ComputeModuleRunsQueryVariables, type ComputeModuleStatsQuery, type ComputeModuleStatsQueryVariables, type ComputeModuleLogsQuery, type ComputeModuleLogsQueryVariables, type ComputeDeployTemplateMutation, type ComputeDeployTemplateMutationVariables, type ComputeTemplatesQuery, type ComputeTemplatesQueryVariables, type ComputeAppDiagnosticsQuery, type ComputeAppDiagnosticsQueryVariables } from '../generated/graphql.js';
|
|
3
3
|
/** The crowdy-compute-sdk version the platform toolchain currently pins. */
|
|
4
|
-
export declare const COMPUTE_SDK_VERSION = "0.1.
|
|
4
|
+
export declare const COMPUTE_SDK_VERSION = "0.1.3";
|
|
5
5
|
/** The guest ABI version the platform currently supports. */
|
|
6
6
|
export declare const COMPUTE_ABI_VERSION = 0;
|
|
7
7
|
/** Options for {@link ComputeAPI.deployVersion}. */
|
package/dist/domains/compute.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ComputeUpsertModuleDocument, ComputeDeployVersionDocument, ComputeSetModuleEnabledDocument, ComputeDeleteModuleDocument, ComputeUpsertTriggerDocument, ComputeDeleteTriggerDocument, ComputeSetPolicyDocument, ComputeInvokeDocument, ComputeModulesDocument, ComputeModuleDocument, ComputeModuleVersionsDocument, ComputeModuleTriggersDocument, ComputeModulePolicyDocument, ComputeModuleRunsDocument, ComputeModuleStatsDocument, ComputeModuleLogsDocument, ComputeAppDiagnosticsDocument, ComputeDeployTemplateDocument, ComputeTemplatesDocument, } from '../generated/graphql.js';
|
|
2
2
|
/** The crowdy-compute-sdk version the platform toolchain currently pins. */
|
|
3
|
-
export const COMPUTE_SDK_VERSION = '0.1.
|
|
3
|
+
export const COMPUTE_SDK_VERSION = '0.1.3';
|
|
4
4
|
/** The guest ABI version the platform currently supports. */
|
|
5
5
|
export const COMPUTE_ABI_VERSION = 0;
|
|
6
6
|
/**
|
|
@@ -235,13 +235,21 @@ export declare class GameModelAPI {
|
|
|
235
235
|
container(variables: GameModelContainerQueryVariables): Promise<GameModelContainerQuery['gameModelContainer']>;
|
|
236
236
|
/**
|
|
237
237
|
* **Containers** — list containers in an app, optionally narrowed by container
|
|
238
|
-
* type and/or session.
|
|
239
|
-
*
|
|
240
|
-
* @param variables - `{ appId, typeName?, sessionId? }`:
|
|
241
|
-
* string); optional `typeName` (omit for all types);
|
|
242
|
-
* (omit for all containers, including app-global
|
|
238
|
+
* type and/or session, filtered by property predicates, and paged.
|
|
239
|
+
*
|
|
240
|
+
* @param variables - `{ appId, typeName?, sessionId?, where?, limit?, offset? }`:
|
|
241
|
+
* `appId` (decimal string); optional `typeName` (omit for all types);
|
|
242
|
+
* optional `sessionId` (omit for all containers, including app-global
|
|
243
|
+
* ones); optional `where` (max 8 AND-combined
|
|
244
|
+
* `{ key, op, valueJson }` predicates — ops `==`, `!=`, `<`, `>`, `<=`,
|
|
245
|
+
* `>=`; requires `typeName`; missing properties fall back to the type
|
|
246
|
+
* default — the same predicate shape automation selectors use); optional
|
|
247
|
+
* `limit`/`offset` paging applied after filtering over the stable
|
|
248
|
+
* created-at ordering. Requires game-api with container predicates
|
|
249
|
+
* (2026-07 or later); older servers reject the new arguments.
|
|
243
250
|
* @returns The matching {@link GmContainer}s.
|
|
244
|
-
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING
|
|
251
|
+
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING`, or
|
|
252
|
+
* `BAD_USER_INPUT` for `where` without `typeName` / unsupported ops.
|
|
245
253
|
*/
|
|
246
254
|
containers(variables: GameModelContainersQueryVariables): Promise<GameModelContainersQuery['gameModelContainers']>;
|
|
247
255
|
/**
|
|
@@ -587,9 +595,14 @@ export declare class GameModelAPI {
|
|
|
587
595
|
* Requires the app-admin **`manage_apps`** permission.
|
|
588
596
|
*
|
|
589
597
|
* @param input - {@link UpsertAutomationInput}: `appId`; `name` (upsert key);
|
|
590
|
-
* `
|
|
591
|
-
* `
|
|
592
|
-
* `
|
|
598
|
+
* the action — `actionKind: 'model_function'` (default) with
|
|
599
|
+
* `functionName`, or `actionKind: 'compute_invoke'` with
|
|
600
|
+
* `computeModuleName` + `computeExport` (invokes a compute-module invoke
|
|
601
|
+
* export on the trusted server path; `targetMode` forced to `global`,
|
|
602
|
+
* selectors don't apply — requires game-api 2026-07+); `targetMode`
|
|
603
|
+
* (`container | type | global`) with `selfContainerId` /
|
|
604
|
+
* `targetTypeName`; optional `sessionId`, `paramsJson`, `selectorJson`
|
|
605
|
+
* (model-data candidate selection), `runAsUserId`; the trigger
|
|
593
606
|
* (`triggerType`, `scheduleKind`, `intervalMs` / `cronExpr`); and the safety
|
|
594
607
|
* budget (`maxTargets`, `maxFnDepth`, `gasLimit`, `runTimeoutMs`,
|
|
595
608
|
* `maxRunsPerMinute`, `failureThreshold`, `cooldownMs`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gameModel.d.ts","sourceRoot":"","sources":["../../src/domains/gameModel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAGL,KAAK,8BAA8B,EACnC,KAAK,uCAAuC,EAE5C,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAE1C,KAAK,+BAA+B,EACpC,KAAK,wCAAwC,EAE7C,KAAK,gCAAgC,EACrC,KAA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mBAAmB,CACvB,KAAK,EAAE,6CAA6C,CAAC,OAAO,CAAC,GAC5D,OAAO,CAAC,oCAAoC,CAAC,8BAA8B,CAAC,CAAC;IAKhF;;;;;;;;OAQG;IACG,aAAa,CACjB,SAAS,EAAE,uCAAuC,GACjD,OAAO,CAAC,8BAA8B,CAAC,wBAAwB,CAAC,CAAC;IAKpE;;;;;;OAMG;IACG,WAAW,CACf,SAAS,EAAE,kCAAkC,GAC5C,OAAO,CAAC,yBAAyB,CAAC,sBAAsB,CAAC,CAAC;IAK7D;;;;;;OAMG;IACG,UAAU,CACd,SAAS,EAAE,iCAAiC,GAC3C,OAAO,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,CAAC;IAK3D;;;;;;OAMG;IACG,kBAAkB,CACtB,SAAS,EAAE,yCAAyC,GACnD,OAAO,CAAC,gCAAgC,CAAC,6BAA6B,CAAC,CAAC;IAK3E;;;;;;OAMG;IACG,gBAAgB,CACpB,SAAS,EAAE,uCAAuC,GACjD,OAAO,CAAC,8BAA8B,CAAC,2BAA2B,CAAC,CAAC;IAKvE;;;;;;;OAOG;IACG,cAAc,CAClB,SAAS,EAAE,qCAAqC,GAC/C,OAAO,CAAC,4BAA4B,CAAC,yBAAyB,CAAC,CAAC;IAKnE;;;;;;;;OAQG;IACG,eAAe,CACnB,SAAS,EAAE,sCAAsC,GAChD,OAAO,CAAC,6BAA6B,CAAC,0BAA0B,CAAC,CAAC;IAKrE;;;;;;;;OAQG;IACG,cAAc,CAClB,SAAS,EAAE,qCAAqC,GAC/C,OAAO,CAAC,4BAA4B,CAAC,yBAAyB,CAAC,CAAC;CAIpE"}
|
|
@@ -272,13 +272,21 @@ export class GameModelAPI {
|
|
|
272
272
|
}
|
|
273
273
|
/**
|
|
274
274
|
* **Containers** — list containers in an app, optionally narrowed by container
|
|
275
|
-
* type and/or session.
|
|
276
|
-
*
|
|
277
|
-
* @param variables - `{ appId, typeName?, sessionId? }`:
|
|
278
|
-
* string); optional `typeName` (omit for all types);
|
|
279
|
-
* (omit for all containers, including app-global
|
|
275
|
+
* type and/or session, filtered by property predicates, and paged.
|
|
276
|
+
*
|
|
277
|
+
* @param variables - `{ appId, typeName?, sessionId?, where?, limit?, offset? }`:
|
|
278
|
+
* `appId` (decimal string); optional `typeName` (omit for all types);
|
|
279
|
+
* optional `sessionId` (omit for all containers, including app-global
|
|
280
|
+
* ones); optional `where` (max 8 AND-combined
|
|
281
|
+
* `{ key, op, valueJson }` predicates — ops `==`, `!=`, `<`, `>`, `<=`,
|
|
282
|
+
* `>=`; requires `typeName`; missing properties fall back to the type
|
|
283
|
+
* default — the same predicate shape automation selectors use); optional
|
|
284
|
+
* `limit`/`offset` paging applied after filtering over the stable
|
|
285
|
+
* created-at ordering. Requires game-api with container predicates
|
|
286
|
+
* (2026-07 or later); older servers reject the new arguments.
|
|
280
287
|
* @returns The matching {@link GmContainer}s.
|
|
281
|
-
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING
|
|
288
|
+
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` / `SCOPE_MISSING`, or
|
|
289
|
+
* `BAD_USER_INPUT` for `where` without `typeName` / unsupported ops.
|
|
282
290
|
*/
|
|
283
291
|
async containers(variables) {
|
|
284
292
|
const data = await this.gql.request(GameModelContainersDocument, variables);
|
|
@@ -706,9 +714,14 @@ export class GameModelAPI {
|
|
|
706
714
|
* Requires the app-admin **`manage_apps`** permission.
|
|
707
715
|
*
|
|
708
716
|
* @param input - {@link UpsertAutomationInput}: `appId`; `name` (upsert key);
|
|
709
|
-
* `
|
|
710
|
-
* `
|
|
711
|
-
* `
|
|
717
|
+
* the action — `actionKind: 'model_function'` (default) with
|
|
718
|
+
* `functionName`, or `actionKind: 'compute_invoke'` with
|
|
719
|
+
* `computeModuleName` + `computeExport` (invokes a compute-module invoke
|
|
720
|
+
* export on the trusted server path; `targetMode` forced to `global`,
|
|
721
|
+
* selectors don't apply — requires game-api 2026-07+); `targetMode`
|
|
722
|
+
* (`container | type | global`) with `selfContainerId` /
|
|
723
|
+
* `targetTypeName`; optional `sessionId`, `paramsJson`, `selectorJson`
|
|
724
|
+
* (model-data candidate selection), `runAsUserId`; the trigger
|
|
712
725
|
* (`triggerType`, `scheduleKind`, `intervalMs` / `cronExpr`); and the safety
|
|
713
726
|
* budget (`maxTargets`, `maxFnDepth`, `gasLimit`, `runTimeoutMs`,
|
|
714
727
|
* `maxRunsPerMinute`, `failureThreshold`, `cooldownMs`).
|
|
@@ -2228,12 +2228,18 @@ export type GmAppPolicy = {
|
|
|
2228
2228
|
/** An autonomous process (automation / NPC): a server-driven entry-point function bound to a trigger (schedule or model activity) plus a safety budget and circuit-breaker state. */
|
|
2229
2229
|
export type GmAutomation = {
|
|
2230
2230
|
__typename?: 'GmAutomation';
|
|
2231
|
+
/** Action kind: model_function (invoke a Model function) or compute_invoke (invoke a compute-module export). */
|
|
2232
|
+
actionKind: Scalars['String']['output'];
|
|
2231
2233
|
/** The app (tenant) that owns the automation. */
|
|
2232
2234
|
appId: Scalars['BigInt']['output'];
|
|
2233
2235
|
/** Unique automation id (UUID). */
|
|
2234
2236
|
automationId: Scalars['String']['output'];
|
|
2235
2237
|
/** Circuit-breaker state: closed | open | half_open. */
|
|
2236
2238
|
circuitState: Scalars['String']['output'];
|
|
2239
|
+
/** For action_kind=compute_invoke: the module invoke export called. */
|
|
2240
|
+
computeExport: Maybe<Scalars['String']['output']>;
|
|
2241
|
+
/** For action_kind=compute_invoke: the compute module name invoked. */
|
|
2242
|
+
computeModuleName: Maybe<Scalars['String']['output']>;
|
|
2237
2243
|
/** Current consecutive-failure count. */
|
|
2238
2244
|
consecutiveFailures: Scalars['Int']['output'];
|
|
2239
2245
|
/** Cooldown (ms) while the circuit is open. */
|
|
@@ -2246,8 +2252,8 @@ export type GmAutomation = {
|
|
|
2246
2252
|
enabled: Scalars['Boolean']['output'];
|
|
2247
2253
|
/** Consecutive failures that trip the circuit breaker. */
|
|
2248
2254
|
failureThreshold: Scalars['Int']['output'];
|
|
2249
|
-
/** The entry-point function name (must be autonomous_invocable). */
|
|
2250
|
-
functionName: Scalars['String']['output']
|
|
2255
|
+
/** The entry-point function name (must be autonomous_invocable). Null for compute_invoke actions. */
|
|
2256
|
+
functionName: Maybe<Scalars['String']['output']>;
|
|
2251
2257
|
/** Override: evaluation gas per invoke. */
|
|
2252
2258
|
gasLimit: Maybe<Scalars['Int']['output']>;
|
|
2253
2259
|
/** Interval in ms (schedule_kind=interval). */
|
|
@@ -2663,6 +2669,15 @@ export type GmPropertyDef = {
|
|
|
2663
2669
|
/** Who may write the property: function | owner | admin. */
|
|
2664
2670
|
writable: Scalars['String']['output'];
|
|
2665
2671
|
};
|
|
2672
|
+
/** One property predicate for filtered container lists (the same shape automation selectors use): compare a property value against a JSON literal. Missing properties fall back to the type default. */
|
|
2673
|
+
export type GmPropertyPredicateInput = {
|
|
2674
|
+
/** Property key to compare. */
|
|
2675
|
+
key: Scalars['String']['input'];
|
|
2676
|
+
/** Comparison operator: '==', '!=', '<', '>', '<=' or '>='. */
|
|
2677
|
+
op: Scalars['String']['input'];
|
|
2678
|
+
/** JSON-encoded comparison value (e.g. '"enemy"', 'true', '10'). */
|
|
2679
|
+
valueJson: Scalars['String']['input'];
|
|
2680
|
+
};
|
|
2666
2681
|
/** Summary of what a gameModelSeed call created. */
|
|
2667
2682
|
export type GmSeedResult = {
|
|
2668
2683
|
__typename?: 'GmSeedResult';
|
|
@@ -4573,7 +4588,7 @@ export type Query = {
|
|
|
4573
4588
|
gameModelContainerState: GmContainerState;
|
|
4574
4589
|
/** List all container types defined for an app. Requires app-admin ('manage_apps'). */
|
|
4575
4590
|
gameModelContainerTypes: Array<GmContainerType>;
|
|
4576
|
-
/** List containers in an app, optionally filtered by container type and/or session. Requires a valid token. */
|
|
4591
|
+
/** List containers in an app, optionally filtered by container type and/or session, by property predicates (`where`, requires typeName; the same predicate shape automation selectors use — missing properties fall back to the type default), and paged with offset/limit over the stable created-at ordering. Requires a valid token. */
|
|
4577
4592
|
gameModelContainers: Array<GmContainer>;
|
|
4578
4593
|
/** Query the function-invocation event log (audit trail) with optional filters and pagination. Useful for debugging functions or showing recent activity. Requires a valid token. */
|
|
4579
4594
|
gameModelEvents: Array<GmEvent>;
|
|
@@ -5015,8 +5030,11 @@ export type QueryGameModelContainerTypesArgs = {
|
|
|
5015
5030
|
};
|
|
5016
5031
|
export type QueryGameModelContainersArgs = {
|
|
5017
5032
|
appId: Scalars['BigInt']['input'];
|
|
5033
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
5034
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
5018
5035
|
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
5019
5036
|
typeName?: InputMaybe<Scalars['String']['input']>;
|
|
5037
|
+
where?: InputMaybe<Array<GmPropertyPredicateInput>>;
|
|
5020
5038
|
};
|
|
5021
5039
|
export type QueryGameModelEventsArgs = {
|
|
5022
5040
|
appId: Scalars['BigInt']['input'];
|
|
@@ -6171,8 +6189,14 @@ export type UpdateVoxelInput = {
|
|
|
6171
6189
|
};
|
|
6172
6190
|
/** Create or update an autonomous process (automation / NPC). Upsert key is (app, name). */
|
|
6173
6191
|
export type UpsertAutomationInput = {
|
|
6192
|
+
/** Action kind: model_function (default — invoke a Model function) or compute_invoke (invoke a compute-module export directly; the trusted server path, no invoke policy evaluation). */
|
|
6193
|
+
actionKind?: InputMaybe<Scalars['String']['input']>;
|
|
6174
6194
|
/** The app (tenant) that owns the automation. */
|
|
6175
6195
|
appId: Scalars['BigInt']['input'];
|
|
6196
|
+
/** For action_kind=compute_invoke: the module invoke export to call (must be bound as an invoke trigger on the module). */
|
|
6197
|
+
computeExport?: InputMaybe<Scalars['String']['input']>;
|
|
6198
|
+
/** For action_kind=compute_invoke: the compute module name to invoke. */
|
|
6199
|
+
computeModuleName?: InputMaybe<Scalars['String']['input']>;
|
|
6176
6200
|
/** Cooldown (ms) while the circuit is open. */
|
|
6177
6201
|
cooldownMs?: InputMaybe<Scalars['Int']['input']>;
|
|
6178
6202
|
/** Cron expression (schedule_kind=cron). */
|
|
@@ -6183,8 +6207,8 @@ export type UpsertAutomationInput = {
|
|
|
6183
6207
|
enabled?: InputMaybe<Scalars['Boolean']['input']>;
|
|
6184
6208
|
/** Consecutive failures that open the circuit. */
|
|
6185
6209
|
failureThreshold?: InputMaybe<Scalars['Int']['input']>;
|
|
6186
|
-
/** Entry-point function name (must be autonomous_invocable). */
|
|
6187
|
-
functionName
|
|
6210
|
+
/** Entry-point function name (must be autonomous_invocable). Required for action_kind=model_function; ignored for compute_invoke. */
|
|
6211
|
+
functionName?: InputMaybe<Scalars['String']['input']>;
|
|
6188
6212
|
/** Override: gas per invoke. */
|
|
6189
6213
|
gasLimit?: InputMaybe<Scalars['Int']['input']>;
|
|
6190
6214
|
/** Interval in ms (schedule_kind=interval). */
|
|
@@ -6211,7 +6235,7 @@ export type UpsertAutomationInput = {
|
|
|
6211
6235
|
selfContainerId?: InputMaybe<Scalars['String']['input']>;
|
|
6212
6236
|
/** Optional session scope (UUID). */
|
|
6213
6237
|
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
6214
|
-
/** Target mode: container | type | global. Defaults to container. */
|
|
6238
|
+
/** Target mode: container | type | global. Defaults to container (model_function) / global (compute_invoke). */
|
|
6215
6239
|
targetMode?: InputMaybe<Scalars['String']['input']>;
|
|
6216
6240
|
/** For target_mode=type: the container type to fan out over. */
|
|
6217
6241
|
targetTypeName?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -9874,7 +9898,10 @@ export type GmAutomationFieldsFragment = {
|
|
|
9874
9898
|
name: string;
|
|
9875
9899
|
description: string | null;
|
|
9876
9900
|
enabled: boolean;
|
|
9877
|
-
|
|
9901
|
+
actionKind: string;
|
|
9902
|
+
functionName: string | null;
|
|
9903
|
+
computeModuleName: string | null;
|
|
9904
|
+
computeExport: string | null;
|
|
9878
9905
|
targetMode: string;
|
|
9879
9906
|
selfContainerId: string | null;
|
|
9880
9907
|
targetTypeName: string | null;
|
|
@@ -9955,7 +9982,10 @@ export type GameModelUpsertAutomationMutation = {
|
|
|
9955
9982
|
name: string;
|
|
9956
9983
|
description: string | null;
|
|
9957
9984
|
enabled: boolean;
|
|
9958
|
-
|
|
9985
|
+
actionKind: string;
|
|
9986
|
+
functionName: string | null;
|
|
9987
|
+
computeModuleName: string | null;
|
|
9988
|
+
computeExport: string | null;
|
|
9959
9989
|
targetMode: string;
|
|
9960
9990
|
selfContainerId: string | null;
|
|
9961
9991
|
targetTypeName: string | null;
|
|
@@ -10004,7 +10034,10 @@ export type GameModelSetAutomationEnabledMutation = {
|
|
|
10004
10034
|
name: string;
|
|
10005
10035
|
description: string | null;
|
|
10006
10036
|
enabled: boolean;
|
|
10007
|
-
|
|
10037
|
+
actionKind: string;
|
|
10038
|
+
functionName: string | null;
|
|
10039
|
+
computeModuleName: string | null;
|
|
10040
|
+
computeExport: string | null;
|
|
10008
10041
|
targetMode: string;
|
|
10009
10042
|
selfContainerId: string | null;
|
|
10010
10043
|
targetTypeName: string | null;
|
|
@@ -10113,7 +10146,10 @@ export type GameModelAutomationsQuery = {
|
|
|
10113
10146
|
name: string;
|
|
10114
10147
|
description: string | null;
|
|
10115
10148
|
enabled: boolean;
|
|
10116
|
-
|
|
10149
|
+
actionKind: string;
|
|
10150
|
+
functionName: string | null;
|
|
10151
|
+
computeModuleName: string | null;
|
|
10152
|
+
computeExport: string | null;
|
|
10117
10153
|
targetMode: string;
|
|
10118
10154
|
selfContainerId: string | null;
|
|
10119
10155
|
targetTypeName: string | null;
|
|
@@ -10153,7 +10189,10 @@ export type GameModelAutomationQuery = {
|
|
|
10153
10189
|
name: string;
|
|
10154
10190
|
description: string | null;
|
|
10155
10191
|
enabled: boolean;
|
|
10156
|
-
|
|
10192
|
+
actionKind: string;
|
|
10193
|
+
functionName: string | null;
|
|
10194
|
+
computeModuleName: string | null;
|
|
10195
|
+
computeExport: string | null;
|
|
10157
10196
|
targetMode: string;
|
|
10158
10197
|
selfContainerId: string | null;
|
|
10159
10198
|
targetTypeName: string | null;
|
|
@@ -10490,6 +10529,9 @@ export type GameModelContainersQueryVariables = Exact<{
|
|
|
10490
10529
|
appId: Scalars['BigInt']['input'];
|
|
10491
10530
|
typeName?: InputMaybe<Scalars['String']['input']>;
|
|
10492
10531
|
sessionId?: InputMaybe<Scalars['String']['input']>;
|
|
10532
|
+
where?: InputMaybe<Array<GmPropertyPredicateInput> | GmPropertyPredicateInput>;
|
|
10533
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
10534
|
+
offset?: InputMaybe<Scalars['Int']['input']>;
|
|
10493
10535
|
}>;
|
|
10494
10536
|
export type GameModelContainersQuery = {
|
|
10495
10537
|
__typename?: 'Query';
|