@crowdedkingdoms/crowdyjs 15.3.0 → 15.4.0-test.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.
@@ -595,6 +595,26 @@ export type AgentPageInfo = {
595
595
  /** Whether another page exists after endCursor. */
596
596
  hasNextPage: Scalars['Boolean']['output'];
597
597
  };
598
+ /** One Crowdy Studio agent model price, in micro-USD per million tokens. Only an ACTIVE row with a model_id ever prices a run. */
599
+ export type AgentRateCardEntryType = {
600
+ __typename?: 'AgentRateCardEntryType';
601
+ /** Micro-USD per million cached prompt tokens. */
602
+ cachedInputMicroUsdPerMillion: Scalars['BigInt']['output'];
603
+ /** Stable code for this card row, unique across the table. */
604
+ code: Scalars['String']['output'];
605
+ /** ISO currency code. USD today. */
606
+ currency: Scalars['String']['output'];
607
+ /** Micro-USD per million uncached prompt tokens. */
608
+ inputMicroUsdPerMillion: Scalars['BigInt']['output'];
609
+ /** Provider model this prices, matched against the resolved model at ingest. Null is only legal on a non-ACTIVE row. */
610
+ modelId: Maybe<Scalars['String']['output']>;
611
+ /** Micro-USD per million completion tokens. */
612
+ outputMicroUsdPerMillion: Scalars['BigInt']['output'];
613
+ /** Micro-USD per million reasoning tokens. */
614
+ reasoningMicroUsdPerMillion: Scalars['BigInt']['output'];
615
+ /** DRAFT, ACTIVE or RETIRED. Only ACTIVE, inside its effective window, prices a run; an uncarded model is left unbilled rather than charged at cost. */
616
+ status: Scalars['String']['output'];
617
+ };
598
618
  /** Summary of one durable session run. */
599
619
  export type AgentRun = {
600
620
  __typename?: 'AgentRun';
@@ -997,8 +1017,15 @@ export type App = {
997
1017
  orgId: Scalars['BigInt']['output'];
998
1018
  /** OAuth-style redirect-URI allow-list for the portal handoff. A portal authorization code’s redirect_uri must match one of these by origin; empty disallows browser portal entry to this app. */
999
1019
  redirectUris: Array<Scalars['String']['output']>;
1000
- /** Reserved sustained egress in bytes/s for shared apps. 0 = free tier; >0 bypasses the ~1 MB/s rate limit and incurs a monthly reservation fee. */
1020
+ /**
1021
+ * Reserved realtime (UDP) capacity in bytes/s for shared apps. Superseded by reservedUdpBytesPerSec.
1022
+ * @deprecated Renamed 2026-09-01 when reservations split by traffic type. Use reservedUdpBytesPerSec; this returns the same value for one release.
1023
+ */
1001
1024
  reservedEgressBytesPerSec: Scalars['BigInt']['output'];
1025
+ /** Reserved API request rate in GraphQL operations/sec. Guarantees a minimum the platform provisions for you; it is not a limit on how many requests you may make. Billed monthly whether or not used. 0 = none. */
1026
+ reservedGraphqlOpsPerSec: Scalars['BigInt']['output'];
1027
+ /** Reserved realtime (UDP) capacity in bytes/s. Guarantees a minimum the platform provisions for you; it is not a limit on what you may send. Billed monthly whether or not used. 0 = none. */
1028
+ reservedUdpBytesPerSec: Scalars['BigInt']['output'];
1002
1029
  /** When runtimeStatus is not "active", why the runtime is gated: "free_allowance", "insufficient_funds", "spend_cap", or "subscription_lapsed". Null when active. */
1003
1030
  runtimeDenialReason: Maybe<Scalars['String']['output']>;
1004
1031
  /** Shared-environment runtime gate, mirrored to the game DB and enforced by game-api + Buddy: "active", "grace", "denied", or "suspended". */
@@ -5377,7 +5404,7 @@ export type Mutation = {
5377
5404
  setAppGridClaimPolicy: GridClaimPolicy;
5378
5405
  /** Set the app's marketplace org revenue share in basis points (OQ-3; taken from the post-platform remainder). Requires 'manage_billing'. BWF uses 0. */
5379
5406
  setAppMarketplaceOrgShare: Scalars['Int']['output'];
5380
- /** Reserve sustained egress throughput for a shared app (bypasses the ~1 MB/s free-tier rate limit). Billed at $3/MB/s/month from the org wallet; upgrades are prorated for the current month. Requires 'manage_billing' on the app's org. */
5407
+ /** Reserve capacity for a shared app. A reservation is a FLOOR, not a ceiling: the platform provisions and holds a minimum for you and does not limit what you may use beyond it. Billed monthly from the org wallet whether or not it is used; upgrades are prorated for the current month. Note that the ~1 MB/s free-tier shaping is lifted by funding a wallet, not by reserving. Requires 'manage_billing' on the app's org. */
5381
5408
  setAppReservedThroughput: SetAppReservedThroughputResult;
5382
5409
  /** Sets per-app hourly/daily spend caps (in cents) and returns the re-evaluated runtime state. Pass null for a limit to clear that cap. Exceeding a cap denies the app's runtime (runtimeDenialReason = spend_cap). Requires the 'manage_billing' permission on the app's org. */
5383
5410
  setAppSpendCaps: AppRuntimeState;
@@ -5475,7 +5502,7 @@ export type Mutation = {
5475
5502
  updateGamertag: User;
5476
5503
  /** Replaces the full set of roles assigned to an org member. Requires the 'manage_members' permission on the org (super admins bypass). Pass the complete desired role list; roles not included are removed. */
5477
5504
  updateOrgMemberRoles: OrgMember;
5478
- /** Updates a role's name, description, and/or permission set. Requires the 'manage_members' permission on the role's org (super admins bypass). If input.permissions is provided it replaces the entire set (empty array clears all); omit to leave permissions unchanged. */
5505
+ /** Updates a role's name, description, and/or permission set. Requires the 'manage_members' permission on the role's org (super admins bypass). If input.permissions is provided it replaces the entire set (empty array clears all); omit to leave permissions unchanged. Throws FORBIDDEN when input.permissions is given for a SYSTEM role (such as the org's built-in 'admin'): system roles have a fixed permission set, so create a custom role and assign that instead. Name and description remain editable on a system role. */
5479
5506
  updateOrgRole: OrgRole;
5480
5507
  /** Updates an org token's metadata (label, expiry, active flag). Requires the 'manage_tokens' permission on the token's org (super admins bypass). Does not rotate the secret value. */
5481
5508
  updateOrgToken: OrgToken;
@@ -6358,6 +6385,7 @@ export type MutationUpdateOrgMemberRolesArgs = {
6358
6385
  userId: Scalars['BigInt']['input'];
6359
6386
  };
6360
6387
  export type MutationUpdateOrgRoleArgs = {
6388
+ idempotencyKey?: InputMaybe<Scalars['String']['input']>;
6361
6389
  input: UpdateOrgRoleInput;
6362
6390
  orgRoleId: Scalars['BigInt']['input'];
6363
6391
  };
@@ -7451,6 +7479,26 @@ export type PortalConsentState = {
7451
7479
  /** True for first-party/trusted apps (consent is always skipped). */
7452
7480
  trusted: Scalars['Boolean']['output'];
7453
7481
  };
7482
+ /** One priced dimension of the public rate card: its rate and its free allowances. A dimension with a price of 0 is metered but not charged. */
7483
+ export type PublicRateCardEntryType = {
7484
+ __typename?: 'PublicRateCardEntryType';
7485
+ /** ISO currency code. USD today. */
7486
+ currency: Scalars['String']['output'];
7487
+ /** Raw metric units free per clock hour before anything is charged, as a BigInt decimal string. Null when this dimension has no allowance row, which for a priced dimension means it bills from the first unit. */
7488
+ freePerHour: Maybe<Scalars['BigInt']['output']>;
7489
+ /** Raw metric units free per UTC calendar month, as a BigInt decimal string. On the PLAYER card this is the pooled monthly trial budget per (player, app). Null when this dimension has no monthly allowance. */
7490
+ freePerMonth: Maybe<Scalars['BigInt']['output']>;
7491
+ /** The metered dimension, e.g. "graphql_recv_ops" or "player_wasm_compute_units". This is the key your usage is aggregated under, so it is what to match a bill line against. */
7492
+ metric: Scalars['String']['output'];
7493
+ /** Cents charged per unitQuantity raw units, above the free allowance. Fractional values are permitted. 0 means metered but not charged. */
7494
+ priceCents: Scalars['Float']['output'];
7495
+ /** Which card this row is on. */
7496
+ scope: RateScope;
7497
+ /** Human unit this price is quoted in, e.g. "GiB" or "M units". Display only; the arithmetic uses unitQuantity. */
7498
+ unitLabel: Scalars['String']['output'];
7499
+ /** How many raw metric units one priceCents charge covers, as a BigInt decimal string. A price of 19 with unitQuantity 1073741824 is 19 cents per GiB. priceCents and unitQuantity are two halves of one price and mean nothing apart. */
7500
+ unitQuantity: Scalars['BigInt']['output'];
7501
+ };
7454
7502
  /** Result of publishing an app to the shared environment. All paths publish immediately; usage above the free hourly allowance is wallet-billed. */
7455
7503
  export type PublishAppResult = {
7456
7504
  __typename?: 'PublishAppResult';
@@ -7519,6 +7567,8 @@ export type Query = {
7519
7567
  actors: Array<Actor>;
7520
7568
  /** Relay-style cursor-paginated version of `actors`: lists actors owned by the authenticated user, optionally narrowed by `filter` (appId, avatarId, uuid, chunk). Page forward with `first` (default 50, max 200) and `after` (an opaque cursor from a previous page’s `pageInfo.endCursor`); `totalCount` is the full number of matching actors. Requires a valid game token; only the caller’s own actors are returned (full state included). */
7521
7569
  actorsConnection: ActorsConnection;
7570
+ /** OPERATOR ONLY. The Crowdy Studio agent price list: every model card with its four per-million token prices and its lifecycle status. Separate from billingRateCard because agent pricing is per model rather than per metered dimension. Read-only. */
7571
+ agentRateCards: Array<AgentRateCardEntryType>;
7522
7572
  /** Convenience for UI: returns true when the authenticated caller is the currently elected host for the given app (same election as gameHost), otherwise false (including when no host is elected). Not authoritative for server-side mutations — use gameModelInvoke's is_host policy for that. Requires a valid bearer game token (same auth as gameHost). */
7523
7573
  amIGameHost: Scalars['Boolean']['output'];
7524
7574
  /** Fetch a single app by its numeric id. Requires authentication (any signed-in user); does NOT enforce org/app permissions, so it can read apps the caller does not own, of any visibility/status. Returns null if the id does not exist. Prefer appBySlug for slug-based marketplace lookups. */
@@ -7589,7 +7639,7 @@ export type Query = {
7589
7639
  batchLookupActors: Array<Actor>;
7590
7640
  /** OPERATOR ONLY. Every organization currently marked billing_exempt. An exemption nobody can enumerate is an exemption that outlives its reason. */
7591
7641
  billingExemptOrgs: Array<BillingExemptOrgType>;
7592
- /** OPERATOR ONLY. The metered rate card for a scope: every priced dimension with its unit, price and hourly free allowance. SHARED is organization usage billed to the org wallet as "shared_usage"; PLAYER is player compute billed to the player wallet as "usage_debit". A dimension priced at 0 is metered but not charged. Read-only. */
7642
+ /** OPERATOR ONLY. The metered rate card for a scope: every priced dimension with its unit, price and hourly free allowance. SHARED is organization usage billed to the org wallet as "shared_usage"; PLAYER is player compute billed to the player wallet as "usage_debit". A dimension priced at 0 is metered but not charged. Read-only. Customers read the same rates through `meteredRateCard`, which is public and omits the operator note. */
7593
7643
  billingRateCard: Array<RateCardEntryType>;
7594
7644
  /** Fetch one channel by id. Errors if the id is not a channel. */
7595
7645
  channel: Group;
@@ -7761,6 +7811,8 @@ export type Query = {
7761
7811
  me: Maybe<User>;
7762
7812
  /** Lists the roles assigned to a single org member. Requires a valid session token. */
7763
7813
  memberRoles: Array<OrgRole>;
7814
+ /** PUBLIC: no authentication required. The metered rate card for a scope — every priced dimension with its unit, price, and free allowances. SHARED is organization usage billed to the org wallet; PLAYER is player compute billed to the player wallet. A dimension priced at 0 is metered but not charged. These are the rates in effect right now on this tier, which is what API ToS 4.1 undertakes to make available. Read-only. */
7815
+ meteredRateCard: Array<PublicRateCardEntryType>;
7764
7816
  /** The authenticated caller's own access record for a given app, or null if they have none. Requires authentication. Use this to check whether the current user is entitled to the app and on which tier; inspect status to distinguish active vs revoked. */
7765
7817
  myAppAccess: Maybe<AppUserAccess>;
7766
7818
  /** Apps the authenticated caller can see in their account: those owned by an org they are an active member of, OR those where they hold an active app_user_access grant. Requires authentication. Includes apps of any visibility/status (e.g. drafts the caller can access). Ordered newest-first. */
@@ -8386,6 +8438,9 @@ export type QueryListVoxelsArgs = {
8386
8438
  export type QueryMemberRolesArgs = {
8387
8439
  orgMemberId: Scalars['BigInt']['input'];
8388
8440
  };
8441
+ export type QueryMeteredRateCardArgs = {
8442
+ scope: RateScope;
8443
+ };
8389
8444
  export type QueryMyAppAccessArgs = {
8390
8445
  appId: Scalars['BigInt']['input'];
8391
8446
  };
@@ -8633,7 +8688,7 @@ export type RateCardEntryType = {
8633
8688
  scope: RateScope;
8634
8689
  /** Human unit this price is quoted in, e.g. "GiB" or "M units". Display only; the arithmetic uses unitQuantity. */
8635
8690
  unitLabel: Scalars['String']['output'];
8636
- /** How many raw metric units one priceCents charge covers, as a BigInt decimal string. A price of 15 with unitQuantity 1073741824 is 15 cents per GiB. */
8691
+ /** How many raw metric units one priceCents charge covers, as a BigInt decimal string. A price of 19 with unitQuantity 1073741824 is 19 cents per GiB. */
8637
8692
  unitQuantity: Scalars['BigInt']['output'];
8638
8693
  };
8639
8694
  /** One field that moved, with the value it held before. Reported so a price change is auditable from the response rather than reconstructed afterwards. */
@@ -9580,7 +9635,7 @@ export type SetQuotaInput = {
9580
9635
  tierId?: InputMaybe<Scalars['BigInt']['input']>;
9581
9636
  };
9582
9637
  export type SetRateCardInput = {
9583
- /** Required when a unit change also changes the money. Restating 15c per GiB as 1.396984c per 100 MB is the same price and needs nothing; changing 20c per 100 MB to 20c per GiB-month is a 7841x cut and must be stated deliberately. The mutation refuses rather than guessing which one you meant. */
9638
+ /** Required when a unit change also changes the money. Restating 19c per GiB as 1.769513c per 100 MB is the same price and needs nothing; changing 20c per 100 MB to 20c per GiB-month is a 7841x cut and must be stated deliberately. The mutation refuses rather than guessing which one you meant. */
9584
9639
  acknowledgeRepricing?: InputMaybe<Scalars['Boolean']['input']>;
9585
9640
  /** New hourly free allowance in raw metric units, as a BigInt decimal string. Must be >= 0. Omit to leave the allowance unchanged. */
9586
9641
  freePerHour?: InputMaybe<Scalars['BigInt']['input']>;
@@ -10094,7 +10149,7 @@ export type UpsertAutomationTriggerInput = {
10094
10149
  };
10095
10150
  /** Create or update a WASM compute module (metadata only; source is uploaded with computeDeployVersion). Upsert key is (app, name). */
10096
10151
  export type UpsertComputeModuleInput = {
10097
- /** Run without active players (world simulation). Policy-gated; defaults to false. */
10152
+ /** RETIRED. Modules run only while their app has a player present. Accepted as false or omitted; true is refused. */
10098
10153
  alwaysOn?: InputMaybe<Scalars['Boolean']['input']>;
10099
10154
  /** The app (tenant) that owns the module. */
10100
10155
  appId: Scalars['BigInt']['input'];
@@ -10741,7 +10796,10 @@ export type WasmComputeStats = {
10741
10796
  /** A WASM compute module: developer-authored Rust compiled to sandboxed WASM on game-api instances. Holds metadata, the deployed version pointer, and circuit-breaker state; source lives in versions. */
10742
10797
  export type WasmModule = {
10743
10798
  __typename?: 'WasmModule';
10744
- /** Whether the module runs without active players (world simulation). Policy-gated. */
10799
+ /**
10800
+ * RETIRED. Always false. Modules run only while their app has a player present.
10801
+ * @deprecated Retired 2026-09-01: nothing runs for an app with no player in it, so this is always false. Stop selecting it.
10802
+ */
10745
10803
  alwaysOn: Scalars['Boolean']['output'];
10746
10804
  /** The app (tenant) that owns the module. */
10747
10805
  appId: Scalars['BigInt']['output'];
@@ -11386,6 +11444,8 @@ export type AppQuery = {
11386
11444
  metadata: string | null;
11387
11445
  splitMode: boolean;
11388
11446
  deploymentTarget: string;
11447
+ reservedUdpBytesPerSec: string;
11448
+ reservedGraphqlOpsPerSec: string;
11389
11449
  runtimeStatus: string;
11390
11450
  runtimeDenialReason: string | null;
11391
11451
  gameApiUrl: string | null;
@@ -12547,7 +12607,6 @@ export type ComputeModuleFieldsFragment = {
12547
12607
  name: string;
12548
12608
  description: string | null;
12549
12609
  enabled: boolean;
12550
- alwaysOn: boolean;
12551
12610
  currentVersionId: string | null;
12552
12611
  circuitState: string;
12553
12612
  consecutiveFailures: number;
@@ -12642,7 +12701,6 @@ export type ComputeUpsertModuleMutation = {
12642
12701
  name: string;
12643
12702
  description: string | null;
12644
12703
  enabled: boolean;
12645
- alwaysOn: boolean;
12646
12704
  currentVersionId: string | null;
12647
12705
  circuitState: string;
12648
12706
  consecutiveFailures: number;
@@ -12689,7 +12747,6 @@ export type ComputeSetModuleEnabledMutation = {
12689
12747
  name: string;
12690
12748
  description: string | null;
12691
12749
  enabled: boolean;
12692
- alwaysOn: boolean;
12693
12750
  currentVersionId: string | null;
12694
12751
  circuitState: string;
12695
12752
  consecutiveFailures: number;
@@ -12715,7 +12772,6 @@ export type ComputeResetBreakerMutation = {
12715
12772
  name: string;
12716
12773
  description: string | null;
12717
12774
  enabled: boolean;
12718
- alwaysOn: boolean;
12719
12775
  currentVersionId: string | null;
12720
12776
  circuitState: string;
12721
12777
  consecutiveFailures: number;
@@ -12820,7 +12876,6 @@ export type ComputeModulesQuery = {
12820
12876
  name: string;
12821
12877
  description: string | null;
12822
12878
  enabled: boolean;
12823
- alwaysOn: boolean;
12824
12879
  currentVersionId: string | null;
12825
12880
  circuitState: string;
12826
12881
  consecutiveFailures: number;
@@ -12845,7 +12900,6 @@ export type ComputeModuleQuery = {
12845
12900
  name: string;
12846
12901
  description: string | null;
12847
12902
  enabled: boolean;
12848
- alwaysOn: boolean;
12849
12903
  currentVersionId: string | null;
12850
12904
  circuitState: string;
12851
12905
  consecutiveFailures: number;
@@ -13053,7 +13107,6 @@ export type ComputeDeployTemplateMutation = {
13053
13107
  name: string;
13054
13108
  description: string | null;
13055
13109
  enabled: boolean;
13056
- alwaysOn: boolean;
13057
13110
  currentVersionId: string | null;
13058
13111
  circuitState: string;
13059
13112
  consecutiveFailures: number;
@@ -19864,6 +19917,26 @@ export type RemoveSharedPaymentMethodMutation = {
19864
19917
  __typename?: 'Mutation';
19865
19918
  removeSharedPaymentMethod: boolean;
19866
19919
  };
19920
+ export type SetAppReservedThroughputMutationVariables = Exact<{
19921
+ input: SetAppReservedThroughputInput;
19922
+ idempotencyKey?: InputMaybe<Scalars['String']['input']>;
19923
+ }>;
19924
+ export type SetAppReservedThroughputMutation = {
19925
+ __typename?: 'Mutation';
19926
+ setAppReservedThroughput: {
19927
+ __typename?: 'SetAppReservedThroughputResult';
19928
+ chargedCents: string;
19929
+ app: {
19930
+ __typename?: 'App';
19931
+ appId: string;
19932
+ deploymentTarget: string;
19933
+ reservedUdpBytesPerSec: string;
19934
+ reservedGraphqlOpsPerSec: string;
19935
+ runtimeStatus: string;
19936
+ runtimeDenialReason: string | null;
19937
+ };
19938
+ };
19939
+ };
19867
19940
  export type DeleteUserAppStateMutationVariables = Exact<{
19868
19941
  appId: Scalars['BigInt']['input'];
19869
19942
  }>;
@@ -21328,6 +21401,7 @@ export declare const SetAppSpendCapsDocument: DocumentNode<SetAppSpendCapsMutati
21328
21401
  export declare const SetAutoBillingDocument: DocumentNode<SetAutoBillingMutation, SetAutoBillingMutationVariables>;
21329
21402
  export declare const SetupSharedPaymentMethodDocument: DocumentNode<SetupSharedPaymentMethodMutation, SetupSharedPaymentMethodMutationVariables>;
21330
21403
  export declare const RemoveSharedPaymentMethodDocument: DocumentNode<RemoveSharedPaymentMethodMutation, RemoveSharedPaymentMethodMutationVariables>;
21404
+ export declare const SetAppReservedThroughputDocument: DocumentNode<SetAppReservedThroughputMutation, SetAppReservedThroughputMutationVariables>;
21331
21405
  export declare const DeleteUserAppStateDocument: DocumentNode<DeleteUserAppStateMutation, DeleteUserAppStateMutationVariables>;
21332
21406
  export declare const UpdateUserAppStateDocument: DocumentNode<UpdateUserAppStateMutation, UpdateUserAppStateMutationVariables>;
21333
21407
  export declare const UserAppStateDocument: DocumentNode<UserAppStateQuery, UserAppStateQueryVariables>;