@crowdedkingdoms/crowdyjs 17.12.0-dev.1 → 17.13.0-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.
@@ -3716,6 +3716,36 @@ export type ExecDeployResult = {
3716
3716
  /** The version now active for the app. */
3717
3717
  version: Scalars['Int']['output'];
3718
3718
  };
3719
+ /** Calls to one endpoint (a node type's method) of an app's ck-exec code over a window, by outcome (dev-tier preview). A client's or an instance's call is counted once, by the host it entered on, with the status its caller got; a platform event (`$timer`, `$topic`, `$presence`, `$session`, `$world`) is counted by the host that ran it. Counts are whole numbers. */
3720
+ export type ExecEndpointStat = {
3721
+ __typename?: 'ExecEndpointStat';
3722
+ /** Calls the handler answered with an error (`AppError`). */
3723
+ appErrors: Scalars['Float']['output'];
3724
+ /** Calls refused as busy: a full mailbox, the root hub’s call rate, or the caller’s call limit (120 calls per 10 seconds per player and app on a host, refused `Busy` with a message starting "rate limited"). */
3725
+ busy: Scalars['Float']['output'];
3726
+ /** Calls in the window. */
3727
+ calls: Scalars['Float']['output'];
3728
+ /** Calls not answered before their deadline (`DeadlineExceeded`). */
3729
+ deadlineExceeded: Scalars['Float']['output'];
3730
+ /** Calls refused as not allowed (`Denied`). */
3731
+ denied: Scalars['Float']['output'];
3732
+ /** The first minute of the window with calls. */
3733
+ firstMinute: Scalars['DateTime']['output'];
3734
+ /** The last minute of the window with calls. Each host reports a minute once it ends. */
3735
+ lastMinute: Scalars['DateTime']['output'];
3736
+ /** The timed calls’ average latency in milliseconds. For a client’s or an instance’s call it runs from reaching the host the call entered on to its answer leaving that host: queueing, the handler, and any hop to the host that runs the target. For a platform event it is the time in the handler. Null when no call was timed. */
3737
+ latencyMsAvg: Maybe<Scalars['Float']['output']>;
3738
+ /** The longest of those latencies in milliseconds; null when no call was timed. */
3739
+ latencyMsMax: Maybe<Scalars['Float']['output']>;
3740
+ /** The method called; a `$` method is a platform event, and `(other)` as for `nodeType`. */
3741
+ method: Scalars['String']['output'];
3742
+ /** The node type called; `(other)` for calls to endpoints past the 256 one host counts per app a minute. */
3743
+ nodeType: Scalars['String']['output'];
3744
+ /** Calls that failed otherwise: not found, unavailable, trapped, moved, internal or a bad request. */
3745
+ otherErrors: Scalars['Float']['output'];
3746
+ /** Calls a handler answered (`Ok` or `AppError`); the latencies are over these. */
3747
+ timedCalls: Scalars['Float']['output'];
3748
+ };
3719
3749
  /** An instance the execution manager has placed for an app (dev-tier preview). */
3720
3750
  export type ExecInstance = {
3721
3751
  __typename?: 'ExecInstance';
@@ -3742,6 +3772,8 @@ export type ExecLogLine = {
3742
3772
  __typename?: 'ExecLogLine';
3743
3773
  /** When the instance logged it. */
3744
3774
  at: Scalars['DateTime']['output'];
3775
+ /** The flow of the call the instance was handling, as 32 lowercase hex digits. A client’s call and everything it causes (the calls it makes to other hubs, on any host, and the lines they log) share one flow; pass it as `flow` to `execLogs` to follow the chain. Null for a line written outside a call (start, snapshot, stop). */
3776
+ flow: Maybe<Scalars['String']['output']>;
3745
3777
  /** The execution host it ran on. */
3746
3778
  host: Scalars['String']['output'];
3747
3779
  /** The line’s id, time-ordered: pass the oldest one you have as `before` to page back. */
@@ -3849,6 +3881,8 @@ export type ExecVersion = {
3849
3881
  createdAt: Scalars['DateTime']['output'];
3850
3882
  /** Who deployed it, e.g. `user:<id>`. */
3851
3883
  createdBy: Maybe<Scalars['String']['output']>;
3884
+ /** The deployed manifest as JSON: the root and each node type with its kind, parent, client access, calls, node API scopes and limits. A type’s spawn seed is replaced by its size in bytes (`seed_bytes`). Null if the version’s row is gone. */
3885
+ manifestJson: Maybe<Scalars['String']['output']>;
3852
3886
  /** Node types in its manifest. */
3853
3887
  types: Scalars['Int']['output'];
3854
3888
  version: Scalars['Int']['output'];
@@ -7768,6 +7802,8 @@ export declare enum PlayerFaultCode {
7768
7802
  BudgetExceeded = "BUDGET_EXCEEDED",
7769
7803
  /** The app's own circuit is open after repeated failures. Retry after extensions.retryAfterMs. extensions.cause is watchdog_timeout when those failures were watchdog kills. This is not PLATFORM_BUSY and not a rate limit. */
7770
7804
  CircuitOpen = "CIRCUIT_OPEN",
7805
+ /** The engine this call needs is switched off on this tier, so the app's code does not run here. An operator's switch: retrying will not turn it back on, and the code's home is ck-exec. */
7806
+ EngineSwitchedOff = "ENGINE_SWITCHED_OFF",
7771
7807
  /** The arguments did not satisfy the function's contract. */
7772
7808
  InvalidRequest = "INVALID_REQUEST",
7773
7809
  /** An invoke policy or permission refused this caller. */
@@ -8415,6 +8451,8 @@ export type Query = {
8415
8451
  execAppStatus: ExecAppStatus;
8416
8452
  /** A ck-exec build's status, compiler log and modules (dev-tier preview); null when this app has no such build. Builds are kept for 7 days. Requires the org 'view_compute_diagnostics' permission. */
8417
8453
  execBuildStatus: Maybe<ExecBuild>;
8454
+ /** Calls to each endpoint of an app's ck-exec code over the last minutes, by outcome, with their latency, most called first (dev-tier preview). Each execution host reports a minute once it ends; counters are kept 7 days. Requires the org 'view_compute_diagnostics' permission. */
8455
+ execEndpointStats: Array<ExecEndpointStat>;
8418
8456
  /** What the execution manager has placed for an app: every instance, its phase and host (dev-tier preview). Requires the org 'view_compute_diagnostics' permission. */
8419
8457
  execInstances: Array<ExecInstance>;
8420
8458
  /** Guest log lines from an app's ck-exec instances (`ctx.log`), newest first, kept for 24 hours (dev-tier preview). Requires the org 'view_compute_diagnostics' permission. */
@@ -9023,12 +9061,18 @@ export type QueryExecBuildStatusArgs = {
9023
9061
  appId: Scalars['BigInt']['input'];
9024
9062
  buildId: Scalars['String']['input'];
9025
9063
  };
9064
+ export type QueryExecEndpointStatsArgs = {
9065
+ appId: Scalars['BigInt']['input'];
9066
+ nodeType?: InputMaybe<Scalars['String']['input']>;
9067
+ sinceMinutes?: InputMaybe<Scalars['Int']['input']>;
9068
+ };
9026
9069
  export type QueryExecInstancesArgs = {
9027
9070
  appId: Scalars['BigInt']['input'];
9028
9071
  };
9029
9072
  export type QueryExecLogsArgs = {
9030
9073
  appId: Scalars['BigInt']['input'];
9031
9074
  before?: InputMaybe<Scalars['String']['input']>;
9075
+ flow?: InputMaybe<Scalars['String']['input']>;
9032
9076
  key?: InputMaybe<Scalars['String']['input']>;
9033
9077
  limit?: InputMaybe<Scalars['Int']['input']>;
9034
9078
  maxLevel?: InputMaybe<Scalars['Int']['input']>;
@@ -14368,6 +14412,7 @@ export type ExecLogsQueryVariables = Exact<{
14368
14412
  maxLevel?: InputMaybe<Scalars['Int']['input']>;
14369
14413
  before?: InputMaybe<Scalars['String']['input']>;
14370
14414
  limit?: InputMaybe<Scalars['Int']['input']>;
14415
+ flow?: InputMaybe<Scalars['String']['input']>;
14371
14416
  }>;
14372
14417
  export type ExecLogsQuery = {
14373
14418
  __typename?: 'Query';
@@ -14380,6 +14425,7 @@ export type ExecLogsQuery = {
14380
14425
  host: string;
14381
14426
  at: string;
14382
14427
  text: string;
14428
+ flow: string | null;
14383
14429
  }>;
14384
14430
  };
14385
14431
  export type ExecInstancesQueryVariables = Exact<{
@@ -14412,6 +14458,31 @@ export type ExecVersionsQuery = {
14412
14458
  createdAt: string;
14413
14459
  types: number;
14414
14460
  active: boolean;
14461
+ manifestJson: string | null;
14462
+ }>;
14463
+ };
14464
+ export type ExecEndpointStatsQueryVariables = Exact<{
14465
+ appId: Scalars['BigInt']['input'];
14466
+ nodeType?: InputMaybe<Scalars['String']['input']>;
14467
+ sinceMinutes?: InputMaybe<Scalars['Int']['input']>;
14468
+ }>;
14469
+ export type ExecEndpointStatsQuery = {
14470
+ __typename?: 'Query';
14471
+ execEndpointStats: Array<{
14472
+ __typename?: 'ExecEndpointStat';
14473
+ nodeType: string;
14474
+ method: string;
14475
+ calls: number;
14476
+ appErrors: number;
14477
+ busy: number;
14478
+ denied: number;
14479
+ deadlineExceeded: number;
14480
+ otherErrors: number;
14481
+ timedCalls: number;
14482
+ latencyMsAvg: number | null;
14483
+ latencyMsMax: number | null;
14484
+ firstMinute: string;
14485
+ lastMinute: string;
14415
14486
  }>;
14416
14487
  };
14417
14488
  export type ExecAppStatusFieldsFragment = {
@@ -14753,6 +14824,7 @@ export type ExecModLogsQuery = {
14753
14824
  host: string;
14754
14825
  at: string;
14755
14826
  text: string;
14827
+ flow: string | null;
14756
14828
  }>;
14757
14829
  };
14758
14830
  export type ExecModPublishMutationVariables = Exact<{
@@ -21190,6 +21262,7 @@ export declare const ExecConnectAsDeveloperDocument: DocumentNode<ExecConnectAsD
21190
21262
  export declare const ExecLogsDocument: DocumentNode<ExecLogsQuery, ExecLogsQueryVariables>;
21191
21263
  export declare const ExecInstancesDocument: DocumentNode<ExecInstancesQuery, ExecInstancesQueryVariables>;
21192
21264
  export declare const ExecVersionsDocument: DocumentNode<ExecVersionsQuery, ExecVersionsQueryVariables>;
21265
+ export declare const ExecEndpointStatsDocument: DocumentNode<ExecEndpointStatsQuery, ExecEndpointStatsQueryVariables>;
21193
21266
  export declare const ExecAppStatusDocument: DocumentNode<ExecAppStatusQuery, ExecAppStatusQueryVariables>;
21194
21267
  export declare const ExecActivateVersionDocument: DocumentNode<ExecActivateVersionMutation, ExecActivateVersionMutationVariables>;
21195
21268
  export declare const ExecSetEnabledDocument: DocumentNode<ExecSetEnabledMutation, ExecSetEnabledMutationVariables>;