@crowdedkingdoms/crowdyjs 13.3.0 → 13.4.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/dist/domains/compute.d.ts +17 -1
- package/dist/domains/compute.d.ts.map +1 -1
- package/dist/domains/compute.js +20 -1
- package/dist/generated/graphql.d.ts +85 -6
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +10 -9
- package/dist/kit/decks.d.ts +1 -1
- package/dist/kit/npcs.d.ts +2 -2
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/kit/worldsim.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
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';
|
|
2
|
+
import { type ComputeUpsertModuleMutation, type ComputeUpsertModuleMutationVariables, type ComputeDeployVersionMutation, type ComputeSetModuleEnabledMutation, type ComputeSetModuleEnabledMutationVariables, type ComputeResetBreakerMutation, type ComputeResetBreakerMutationVariables, 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
4
|
export declare const COMPUTE_SDK_VERSION = "0.1.3";
|
|
5
5
|
/** The guest ABI version the platform currently supports. */
|
|
@@ -71,8 +71,24 @@ export declare class ComputeAPI {
|
|
|
71
71
|
* Enable or disable a module. Enabling requires a successfully compiled
|
|
72
72
|
* deployed version and resets the failure circuit; disabling stops all
|
|
73
73
|
* scheduling. Requires the org **`manage_compute`** permission.
|
|
74
|
+
*
|
|
75
|
+
* This does **not** restart a module that was stopped for exceeding a
|
|
76
|
+
* resource limit (`breakerLatchedAt`). Deploy a fixed version, or call
|
|
77
|
+
* {@link resetBreaker}.
|
|
74
78
|
*/
|
|
75
79
|
setModuleEnabled(variables: ComputeSetModuleEnabledMutationVariables): Promise<ComputeSetModuleEnabledMutation['computeSetModuleEnabled']>;
|
|
80
|
+
/**
|
|
81
|
+
* Restart a module that was stopped for exceeding a resource limit, without
|
|
82
|
+
* deploying a new version.
|
|
83
|
+
*
|
|
84
|
+
* A module stopped this way reports `breakerLatchedAt` and a
|
|
85
|
+
* `breakerReason` saying what it exceeded. Deploying a fix clears it
|
|
86
|
+
* automatically and is the normal path; use this when the limit itself was
|
|
87
|
+
* wrong, or the load is being accepted deliberately. The reason is recorded
|
|
88
|
+
* with the module's history. Requires the org **`manage_compute`**
|
|
89
|
+
* permission.
|
|
90
|
+
*/
|
|
91
|
+
resetBreaker(variables: ComputeResetBreakerMutationVariables): Promise<ComputeResetBreakerMutation['computeResetBreaker']>;
|
|
76
92
|
/**
|
|
77
93
|
* Delete a module and (via cascade) its versions, triggers, and lease. Run
|
|
78
94
|
* history is retained for auditing. **Destructive.** Requires the org
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compute.d.ts","sourceRoot":"","sources":["../../src/domains/compute.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EAEL,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EAEzC,KAAK,4BAA4B,EAEjC,KAAK,+BAA+B,EACpC,KAAK,wCAAwC,EAE7C,KAAK,2BAA2B,EAChC,KAAK,oCAAoC,EAEzC,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAE1C,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAE1C,KAAK,wBAAwB,EAC7B,KAAK,iCAAiC,EAEtC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EAEnC,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EAEjC,KAAK,kBAAkB,EACvB,KAAK,2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GAC3C,OAAO,CAAC,wBAAwB,CAAC,qBAAqB,CAAC,CAAC;IAK3D;;;;;OAKG;IACG,UAAU,CACd,SAAS,EAAE,+BAA+B,GACzC,OAAO,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;IAKvD;;;;OAIG;IACG,WAAW,CACf,SAAS,EAAE,gCAAgC,GAC1C,OAAO,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAC;IAKzD;;;OAGG;IACG,UAAU,CACd,SAAS,EAAE,+BAA+B,GACzC,OAAO,CAAC,sBAAsB,CAAC,mBAAmB,CAAC,CAAC;IAKvD;;;;OAIG;IACG,cAAc,CAClB,SAAS,EAAE,mCAAmC,GAC7C,OAAO,CAAC,0BAA0B,CAAC,uBAAuB,CAAC,CAAC;CAIhE"}
|
package/dist/domains/compute.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
1
|
+
import { ComputeUpsertModuleDocument, ComputeDeployVersionDocument, ComputeSetModuleEnabledDocument, ComputeResetBreakerDocument, 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
3
|
export const COMPUTE_SDK_VERSION = '0.1.3';
|
|
4
4
|
/** The guest ABI version the platform currently supports. */
|
|
@@ -64,11 +64,30 @@ export class ComputeAPI {
|
|
|
64
64
|
* Enable or disable a module. Enabling requires a successfully compiled
|
|
65
65
|
* deployed version and resets the failure circuit; disabling stops all
|
|
66
66
|
* scheduling. Requires the org **`manage_compute`** permission.
|
|
67
|
+
*
|
|
68
|
+
* This does **not** restart a module that was stopped for exceeding a
|
|
69
|
+
* resource limit (`breakerLatchedAt`). Deploy a fixed version, or call
|
|
70
|
+
* {@link resetBreaker}.
|
|
67
71
|
*/
|
|
68
72
|
async setModuleEnabled(variables) {
|
|
69
73
|
const data = await this.gql.request(ComputeSetModuleEnabledDocument, variables);
|
|
70
74
|
return data.computeSetModuleEnabled;
|
|
71
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Restart a module that was stopped for exceeding a resource limit, without
|
|
78
|
+
* deploying a new version.
|
|
79
|
+
*
|
|
80
|
+
* A module stopped this way reports `breakerLatchedAt` and a
|
|
81
|
+
* `breakerReason` saying what it exceeded. Deploying a fix clears it
|
|
82
|
+
* automatically and is the normal path; use this when the limit itself was
|
|
83
|
+
* wrong, or the load is being accepted deliberately. The reason is recorded
|
|
84
|
+
* with the module's history. Requires the org **`manage_compute`**
|
|
85
|
+
* permission.
|
|
86
|
+
*/
|
|
87
|
+
async resetBreaker(variables) {
|
|
88
|
+
const data = await this.gql.request(ComputeResetBreakerDocument, variables);
|
|
89
|
+
return data.computeResetBreaker;
|
|
90
|
+
}
|
|
72
91
|
/**
|
|
73
92
|
* Delete a module and (via cascade) its versions, triggers, and lease. Run
|
|
74
93
|
* history is retained for auditing. **Destructive.** Requires the org
|
|
@@ -1969,6 +1969,10 @@ export type CpComputePlatformCeilings = {
|
|
|
1969
1969
|
maxModules: Maybe<Scalars['Int']['output']>;
|
|
1970
1970
|
/** Max wall-clock watchdog deadline per entry call in milliseconds (max_run_ms ceiling). Null = no override (game-api bootstrap default 5000). */
|
|
1971
1971
|
maxRunMs: Maybe<Scalars['Int']['output']>;
|
|
1972
|
+
/** Max module state bytes written per minute (max_state_bytes_per_min ceiling; decimal string). Null = no override (game-api bootstrap default 1073741824). */
|
|
1973
|
+
maxStateBytesPerMin: Maybe<Scalars['BigInt']['output']>;
|
|
1974
|
+
/** Max module state saves per minute (max_state_writes_per_min ceiling). Null = no override (game-api bootstrap default 6000). */
|
|
1975
|
+
maxStateWritesPerMin: Maybe<Scalars['Int']['output']>;
|
|
1972
1976
|
/** Max tick trigger rate in Hz per module (max_tick_hz ceiling). Null = no override (game-api bootstrap default 60). */
|
|
1973
1977
|
maxTickHz: Maybe<Scalars['Int']['output']>;
|
|
1974
1978
|
/** When the ceilings row was last updated (UTC). */
|
|
@@ -1994,6 +1998,10 @@ export type CpSetComputePlatformCeilingsInput = {
|
|
|
1994
1998
|
maxModules?: InputMaybe<Scalars['Int']['input']>;
|
|
1995
1999
|
/** Max watchdog deadline per entry call in milliseconds. > 0; explicit null clears the override; omit to leave unchanged. */
|
|
1996
2000
|
maxRunMs?: InputMaybe<Scalars['Int']['input']>;
|
|
2001
|
+
/** Max module state bytes written per minute (decimal string). > 0; explicit null clears the override; omit to leave unchanged. */
|
|
2002
|
+
maxStateBytesPerMin?: InputMaybe<Scalars['BigInt']['input']>;
|
|
2003
|
+
/** Max module state saves per minute. > 0; explicit null clears the override; omit to leave unchanged. */
|
|
2004
|
+
maxStateWritesPerMin?: InputMaybe<Scalars['Int']['input']>;
|
|
1997
2005
|
/** Max tick rate in Hz per module. > 0; explicit null clears the override; omit to leave unchanged. */
|
|
1998
2006
|
maxTickHz?: InputMaybe<Scalars['Int']['input']>;
|
|
1999
2007
|
};
|
|
@@ -3601,7 +3609,7 @@ export type GmAutomationRun = {
|
|
|
3601
3609
|
/** The app (tenant). */
|
|
3602
3610
|
appId: Scalars['BigInt']['output'];
|
|
3603
3611
|
/** The automation that ran, or null for a timer fire (which has no owning automation). */
|
|
3604
|
-
automationId:
|
|
3612
|
+
automationId: Scalars['String']['output'];
|
|
3605
3613
|
/** The automation name at run time, or the invoked function name for a timer fire. */
|
|
3606
3614
|
automationName: Scalars['String']['output'];
|
|
3607
3615
|
/** Cascade depth (0 = top-level). */
|
|
@@ -4665,6 +4673,8 @@ export type Mutation = {
|
|
|
4665
4673
|
computeDeployVersion: WasmModuleVersion;
|
|
4666
4674
|
/** Invoke a compute module's client-callable export (a trigger with triggerType=invoke). Synchronous RPC: the module runs and returns its result directly (unlike the spatial send surface's dual-success model). Authorization: the export's invoke policy (authority tree) — or holders of 'manage_compute' only when no policy is set. Requires a valid app token. */
|
|
4667
4675
|
computeInvoke: ComputeInvokeResult;
|
|
4676
|
+
/** Restart a module that was stopped for exceeding a resource limit, without deploying a new version. Deploying a fix clears the stop on its own and is the normal path; use this when the limit itself was wrong or the load is being accepted deliberately. The reason is recorded. Requires the org 'manage_compute' permission. */
|
|
4677
|
+
computeResetBreaker: WasmModule;
|
|
4668
4678
|
/** Enable or disable a compute module. Enabling requires a deployed version and resets the module's circuit breaker; disabling stops all scheduling. Requires the org 'manage_compute' permission. */
|
|
4669
4679
|
computeSetModuleEnabled: WasmModule;
|
|
4670
4680
|
/** Set the app's compute policy (platform guardrails): the kill switch, module count / tick-rate / fuel / memory / runtime / host-op / egress ceilings, and circuit-breaker tuning. Omitted fields keep current values. Requires the org 'manage_compute' permission. */
|
|
@@ -5196,6 +5206,11 @@ export type MutationComputeInvokeArgs = {
|
|
|
5196
5206
|
moduleName: Scalars['String']['input'];
|
|
5197
5207
|
paramsJson?: InputMaybe<Scalars['String']['input']>;
|
|
5198
5208
|
};
|
|
5209
|
+
export type MutationComputeResetBreakerArgs = {
|
|
5210
|
+
appId: Scalars['BigInt']['input'];
|
|
5211
|
+
name: Scalars['String']['input'];
|
|
5212
|
+
reason: Scalars['String']['input'];
|
|
5213
|
+
};
|
|
5199
5214
|
export type MutationComputeSetModuleEnabledArgs = {
|
|
5200
5215
|
appId: Scalars['BigInt']['input'];
|
|
5201
5216
|
enabled: Scalars['Boolean']['input'];
|
|
@@ -7085,7 +7100,7 @@ export type Query = {
|
|
|
7085
7100
|
computeModules: Array<WasmModule>;
|
|
7086
7101
|
/** The platform's engine-template registry: ready-made compute engines (mob/world/match/deck/instance/director/matchmaking/market/board/minigame/abilities/movement-warden/territory/racing/...) deployable by name with computeDeployTemplate. Requires the org 'manage_compute' permission. */
|
|
7087
7102
|
computeTemplates: Array<ComputeTemplateInfo>;
|
|
7088
|
-
/** Operator only (is_operator). The stored platform ceilings for the per-app WASM compute policy (the
|
|
7103
|
+
/** Operator only (is_operator). The stored platform ceilings for the per-app WASM compute policy (the knobs computeSetPolicy clamps against). Null fields mean no operator override: game-api uses its COMPUTE_PLATFORM_MAX_* env var, then the code default. Read-only. */
|
|
7089
7104
|
cpComputePlatformCeilings: CpComputePlatformCeilings;
|
|
7090
7105
|
/** Operator only (is_operator or is_super_admin). Read the platform Agentic Studio enablement, global emergency kill, model/tool/mode/risk allowlists, budget ceilings, retention/privacy policy, pilot funding seam, timestamps, and revision. No provider credential or request body is stored or returned. */
|
|
7091
7106
|
cpCrowdyStudioAgentPlatformPolicy: CrowdyStudioAgentPolicy;
|
|
@@ -8661,8 +8676,14 @@ export type SetComputePolicyInput = {
|
|
|
8661
8676
|
maxModules?: InputMaybe<Scalars['Int']['input']>;
|
|
8662
8677
|
/** Wall-clock watchdog budget per entry call (ms). */
|
|
8663
8678
|
maxRunMs?: InputMaybe<Scalars['Int']['input']>;
|
|
8679
|
+
/** Max state bytes a module may write per minute. */
|
|
8680
|
+
maxStateBytesPerMin?: InputMaybe<Scalars['BigInt']['input']>;
|
|
8681
|
+
/** Max state saves a module may write per minute. */
|
|
8682
|
+
maxStateWritesPerMin?: InputMaybe<Scalars['Int']['input']>;
|
|
8664
8683
|
/** Max tick rate (Hz) any module may request. */
|
|
8665
8684
|
maxTickHz?: InputMaybe<Scalars['Float']['input']>;
|
|
8685
|
+
/** Minimum gap in milliseconds between saves of a module’s state. Saves made inside the window are combined and the newest one is written, so a module that saves every tick still only writes once per window. */
|
|
8686
|
+
statePersistMinIntervalMs?: InputMaybe<Scalars['Int']['input']>;
|
|
8666
8687
|
};
|
|
8667
8688
|
/** Set one property value on a container directly. */
|
|
8668
8689
|
export type SetContainerPropertyInput = {
|
|
@@ -9923,6 +9944,10 @@ export type WasmModule = {
|
|
|
9923
9944
|
alwaysOn: Scalars['Boolean']['output'];
|
|
9924
9945
|
/** The app (tenant) that owns the module. */
|
|
9925
9946
|
appId: Scalars['BigInt']['output'];
|
|
9947
|
+
/** When this module was stopped for exceeding a resource limit. Null when it is running normally. Unlike the circuit breaker this does not clear on its own: deploy a new version, or ask an admin to reset it. */
|
|
9948
|
+
breakerLatchedAt: Maybe<Scalars['DateTime']['output']>;
|
|
9949
|
+
/** What the module exceeded and what to change, when it has been stopped for a resource limit. Null when it is running normally. */
|
|
9950
|
+
breakerReason: Maybe<Scalars['String']['output']>;
|
|
9926
9951
|
/** Circuit-breaker state: closed | open | half_open. */
|
|
9927
9952
|
circuitState: Scalars['String']['output'];
|
|
9928
9953
|
/** Current consecutive-failure count. */
|
|
@@ -9987,8 +10012,14 @@ export type WasmModulePolicy = {
|
|
|
9987
10012
|
maxModules: Scalars['Int']['output'];
|
|
9988
10013
|
/** Wall-clock watchdog budget per entry call (ms). */
|
|
9989
10014
|
maxRunMs: Scalars['Int']['output'];
|
|
10015
|
+
/** Max state bytes a module may write per minute. Saves beyond this are refused and ck.state_set returns false. */
|
|
10016
|
+
maxStateBytesPerMin: Scalars['BigInt']['output'];
|
|
10017
|
+
/** Max state saves a module may write per minute. Saves beyond this are refused and ck.state_set returns false. */
|
|
10018
|
+
maxStateWritesPerMin: Scalars['Int']['output'];
|
|
9990
10019
|
/** Max tick rate (Hz) any module may request. */
|
|
9991
10020
|
maxTickHz: Scalars['Float']['output'];
|
|
10021
|
+
/** Minimum gap in milliseconds between saves of a module’s state. Saves made inside the window are combined and the newest one is written, so a module that saves every tick still only writes once per window. */
|
|
10022
|
+
statePersistMinIntervalMs: Scalars['Int']['output'];
|
|
9992
10023
|
};
|
|
9993
10024
|
/** One recorded compute execution (init / tick batch / event / invoke): timing, fuel, host-call counts, outcome. Written by the runtime (Phase 2); empty until modules execute. */
|
|
9994
10025
|
export type WasmModuleRun = {
|
|
@@ -11685,6 +11716,8 @@ export type ComputeModuleFieldsFragment = {
|
|
|
11685
11716
|
circuitState: string;
|
|
11686
11717
|
consecutiveFailures: number;
|
|
11687
11718
|
cooldownUntil: string | null;
|
|
11719
|
+
breakerLatchedAt: string | null;
|
|
11720
|
+
breakerReason: string | null;
|
|
11688
11721
|
lastError: string | null;
|
|
11689
11722
|
createdAt: string;
|
|
11690
11723
|
updatedAt: string;
|
|
@@ -11737,6 +11770,9 @@ export type ComputePolicyFieldsFragment = {
|
|
|
11737
11770
|
maxEgressBytesPerMin: string;
|
|
11738
11771
|
failureThreshold: number;
|
|
11739
11772
|
cooldownMs: number;
|
|
11773
|
+
statePersistMinIntervalMs: number;
|
|
11774
|
+
maxStateWritesPerMin: number;
|
|
11775
|
+
maxStateBytesPerMin: string;
|
|
11740
11776
|
};
|
|
11741
11777
|
export type ComputeRunFieldsFragment = {
|
|
11742
11778
|
__typename?: 'WasmModuleRun';
|
|
@@ -11775,6 +11811,8 @@ export type ComputeUpsertModuleMutation = {
|
|
|
11775
11811
|
circuitState: string;
|
|
11776
11812
|
consecutiveFailures: number;
|
|
11777
11813
|
cooldownUntil: string | null;
|
|
11814
|
+
breakerLatchedAt: string | null;
|
|
11815
|
+
breakerReason: string | null;
|
|
11778
11816
|
lastError: string | null;
|
|
11779
11817
|
createdAt: string;
|
|
11780
11818
|
updatedAt: string;
|
|
@@ -11820,6 +11858,34 @@ export type ComputeSetModuleEnabledMutation = {
|
|
|
11820
11858
|
circuitState: string;
|
|
11821
11859
|
consecutiveFailures: number;
|
|
11822
11860
|
cooldownUntil: string | null;
|
|
11861
|
+
breakerLatchedAt: string | null;
|
|
11862
|
+
breakerReason: string | null;
|
|
11863
|
+
lastError: string | null;
|
|
11864
|
+
createdAt: string;
|
|
11865
|
+
updatedAt: string;
|
|
11866
|
+
};
|
|
11867
|
+
};
|
|
11868
|
+
export type ComputeResetBreakerMutationVariables = Exact<{
|
|
11869
|
+
appId: Scalars['BigInt']['input'];
|
|
11870
|
+
name: Scalars['String']['input'];
|
|
11871
|
+
reason: Scalars['String']['input'];
|
|
11872
|
+
}>;
|
|
11873
|
+
export type ComputeResetBreakerMutation = {
|
|
11874
|
+
__typename?: 'Mutation';
|
|
11875
|
+
computeResetBreaker: {
|
|
11876
|
+
__typename?: 'WasmModule';
|
|
11877
|
+
moduleId: string;
|
|
11878
|
+
appId: string;
|
|
11879
|
+
name: string;
|
|
11880
|
+
description: string | null;
|
|
11881
|
+
enabled: boolean;
|
|
11882
|
+
alwaysOn: boolean;
|
|
11883
|
+
currentVersionId: string | null;
|
|
11884
|
+
circuitState: string;
|
|
11885
|
+
consecutiveFailures: number;
|
|
11886
|
+
cooldownUntil: string | null;
|
|
11887
|
+
breakerLatchedAt: string | null;
|
|
11888
|
+
breakerReason: string | null;
|
|
11823
11889
|
lastError: string | null;
|
|
11824
11890
|
createdAt: string;
|
|
11825
11891
|
updatedAt: string;
|
|
@@ -11885,6 +11951,9 @@ export type ComputeSetPolicyMutation = {
|
|
|
11885
11951
|
maxEgressBytesPerMin: string;
|
|
11886
11952
|
failureThreshold: number;
|
|
11887
11953
|
cooldownMs: number;
|
|
11954
|
+
statePersistMinIntervalMs: number;
|
|
11955
|
+
maxStateWritesPerMin: number;
|
|
11956
|
+
maxStateBytesPerMin: string;
|
|
11888
11957
|
};
|
|
11889
11958
|
};
|
|
11890
11959
|
export type ComputeInvokeMutationVariables = Exact<{
|
|
@@ -11920,6 +11989,8 @@ export type ComputeModulesQuery = {
|
|
|
11920
11989
|
circuitState: string;
|
|
11921
11990
|
consecutiveFailures: number;
|
|
11922
11991
|
cooldownUntil: string | null;
|
|
11992
|
+
breakerLatchedAt: string | null;
|
|
11993
|
+
breakerReason: string | null;
|
|
11923
11994
|
lastError: string | null;
|
|
11924
11995
|
createdAt: string;
|
|
11925
11996
|
updatedAt: string;
|
|
@@ -11943,6 +12014,8 @@ export type ComputeModuleQuery = {
|
|
|
11943
12014
|
circuitState: string;
|
|
11944
12015
|
consecutiveFailures: number;
|
|
11945
12016
|
cooldownUntil: string | null;
|
|
12017
|
+
breakerLatchedAt: string | null;
|
|
12018
|
+
breakerReason: string | null;
|
|
11946
12019
|
lastError: string | null;
|
|
11947
12020
|
createdAt: string;
|
|
11948
12021
|
updatedAt: string;
|
|
@@ -12016,6 +12089,9 @@ export type ComputeModulePolicyQuery = {
|
|
|
12016
12089
|
maxEgressBytesPerMin: string;
|
|
12017
12090
|
failureThreshold: number;
|
|
12018
12091
|
cooldownMs: number;
|
|
12092
|
+
statePersistMinIntervalMs: number;
|
|
12093
|
+
maxStateWritesPerMin: number;
|
|
12094
|
+
maxStateBytesPerMin: string;
|
|
12019
12095
|
};
|
|
12020
12096
|
};
|
|
12021
12097
|
export type ComputeModuleRunsQueryVariables = Exact<{
|
|
@@ -12146,6 +12222,8 @@ export type ComputeDeployTemplateMutation = {
|
|
|
12146
12222
|
circuitState: string;
|
|
12147
12223
|
consecutiveFailures: number;
|
|
12148
12224
|
cooldownUntil: string | null;
|
|
12225
|
+
breakerLatchedAt: string | null;
|
|
12226
|
+
breakerReason: string | null;
|
|
12149
12227
|
lastError: string | null;
|
|
12150
12228
|
createdAt: string;
|
|
12151
12229
|
updatedAt: string;
|
|
@@ -14815,7 +14893,7 @@ export type GmAutomationRunFieldsFragment = {
|
|
|
14815
14893
|
runId: string;
|
|
14816
14894
|
appId: string;
|
|
14817
14895
|
flowId: string | null;
|
|
14818
|
-
automationId: string
|
|
14896
|
+
automationId: string;
|
|
14819
14897
|
automationName: string;
|
|
14820
14898
|
triggerSource: string;
|
|
14821
14899
|
triggerId: string | null;
|
|
@@ -14986,7 +15064,7 @@ export type GameModelRunAutomationMutation = {
|
|
|
14986
15064
|
runId: string;
|
|
14987
15065
|
appId: string;
|
|
14988
15066
|
flowId: string | null;
|
|
14989
|
-
automationId: string
|
|
15067
|
+
automationId: string;
|
|
14990
15068
|
automationName: string;
|
|
14991
15069
|
triggerSource: string;
|
|
14992
15070
|
triggerId: string | null;
|
|
@@ -15145,7 +15223,7 @@ export type GameModelAutomationRunsQuery = {
|
|
|
15145
15223
|
runId: string;
|
|
15146
15224
|
appId: string;
|
|
15147
15225
|
flowId: string | null;
|
|
15148
|
-
automationId: string
|
|
15226
|
+
automationId: string;
|
|
15149
15227
|
automationName: string;
|
|
15150
15228
|
triggerSource: string;
|
|
15151
15229
|
triggerId: string | null;
|
|
@@ -15733,7 +15811,7 @@ export type GameModelFlowQuery = {
|
|
|
15733
15811
|
runId: string;
|
|
15734
15812
|
appId: string;
|
|
15735
15813
|
flowId: string | null;
|
|
15736
|
-
automationId: string
|
|
15814
|
+
automationId: string;
|
|
15737
15815
|
automationName: string;
|
|
15738
15816
|
triggerSource: string;
|
|
15739
15817
|
triggerId: string | null;
|
|
@@ -20118,6 +20196,7 @@ export declare const UpdateChunkStateDocument: DocumentNode<UpdateChunkStateMuta
|
|
|
20118
20196
|
export declare const ComputeUpsertModuleDocument: DocumentNode<ComputeUpsertModuleMutation, ComputeUpsertModuleMutationVariables>;
|
|
20119
20197
|
export declare const ComputeDeployVersionDocument: DocumentNode<ComputeDeployVersionMutation, ComputeDeployVersionMutationVariables>;
|
|
20120
20198
|
export declare const ComputeSetModuleEnabledDocument: DocumentNode<ComputeSetModuleEnabledMutation, ComputeSetModuleEnabledMutationVariables>;
|
|
20199
|
+
export declare const ComputeResetBreakerDocument: DocumentNode<ComputeResetBreakerMutation, ComputeResetBreakerMutationVariables>;
|
|
20121
20200
|
export declare const ComputeDeleteModuleDocument: DocumentNode<ComputeDeleteModuleMutation, ComputeDeleteModuleMutationVariables>;
|
|
20122
20201
|
export declare const ComputeUpsertTriggerDocument: DocumentNode<ComputeUpsertTriggerMutation, ComputeUpsertTriggerMutationVariables>;
|
|
20123
20202
|
export declare const ComputeDeleteTriggerDocument: DocumentNode<ComputeDeleteTriggerMutation, ComputeDeleteTriggerMutationVariables>;
|