@crowdedkingdoms/crowdyjs 12.2.0 → 13.0.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 +29 -0
- package/README.md +15 -4
- package/dist/crowdy-client.d.ts +1 -4
- package/dist/crowdy-client.d.ts.map +1 -1
- package/dist/crowdy-client.js +0 -3
- package/dist/domains/admin.d.ts +0 -4
- package/dist/domains/admin.d.ts.map +1 -1
- package/dist/domains/admin.js +0 -1
- package/dist/domains/billing.d.ts +1 -21
- package/dist/domains/billing.d.ts.map +1 -1
- package/dist/domains/billing.js +1 -30
- package/dist/domains/controlPlane.d.ts +14 -170
- package/dist/domains/controlPlane.d.ts.map +1 -1
- package/dist/domains/controlPlane.js +14 -249
- package/dist/domains/usage.d.ts +9 -32
- package/dist/domains/usage.d.ts.map +1 -1
- package/dist/domains/usage.js +9 -48
- package/dist/generated/graphql.d.ts +50 -2075
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +9 -59
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/kit/npcs.d.ts.map +1 -1
- package/dist/kit/social.d.ts.map +1 -1
- package/dist/lb-cookie-store.d.ts +4 -0
- package/dist/lb-cookie-store.d.ts.map +1 -1
- package/dist/lb-cookie-store.js +17 -0
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +38 -5
- package/package.json +1 -1
- package/dist/domains/environments.d.ts +0 -167
- package/dist/domains/environments.d.ts.map +0 -1
- package/dist/domains/environments.js +0 -238
package/MIGRATION.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
# CrowdyJS v13 — unified galaxy API (breaking)
|
|
2
|
+
|
|
3
|
+
The platform merged the Management API and Game API into ONE server on the
|
|
4
|
+
shared galaxy database. v13 resyncs the committed schema from the unified SDL
|
|
5
|
+
and removes the surfaces the platform retired:
|
|
6
|
+
|
|
7
|
+
- **`client.environments` (and `client.admin.environments`) removed.**
|
|
8
|
+
Dedicated customer environments no longer exist; every app runs on the
|
|
9
|
+
shared platform. `mintAppToken` still returns `gameApiUrl`/`gameApiWsUrl`
|
|
10
|
+
(they resolve to the shared host), so portal routing code keeps working.
|
|
11
|
+
- **`client.operator` reduced to platform compute ceilings**
|
|
12
|
+
(`computePlatformCeilings` / `setComputePlatformCeilings`). Infrastructure
|
|
13
|
+
operations (environments, change orders, secrets, releases, audit) moved to
|
|
14
|
+
the separate infra-control-plane service, which has its own auth, GraphQL
|
|
15
|
+
API, and operator console — not this SDK.
|
|
16
|
+
- **`client.usage`**: the per-environment rollups (`environmentSummary`,
|
|
17
|
+
`orgByEnvironment`, `environmentByApp`) are gone; org/app-scoped reporting
|
|
18
|
+
(`appSummary`, `appGraphqlOperations`, `playerPulse`) stays.
|
|
19
|
+
- **`client.billing`**: the per-environment capacity tier catalogs
|
|
20
|
+
(`buddyTiers`, `graphqlTiers`, `postgresTiers`) are gone; wallets, budgets
|
|
21
|
+
and transactions stay.
|
|
22
|
+
- **Endpoints**: `managementUrl` and `httpUrl` may now be the SAME origin
|
|
23
|
+
(e.g. `https://ck.test.cks-env.com`); configuring both remains supported
|
|
24
|
+
and the two-token model (session vs app-scoped) is unchanged.
|
|
25
|
+
|
|
26
|
+
Everything game-client (auth, users, world/UDP, stores, kit, game model,
|
|
27
|
+
compute, player compute/model, marketplace, Crowdy Studio + agent) is
|
|
28
|
+
unchanged — the merged schema is a superset for those surfaces.
|
|
29
|
+
|
|
1
30
|
# CrowdyJS v12.1 — Crowdy Studio embed kit (additive)
|
|
2
31
|
|
|
3
32
|
Version 12.1 ships the reusable game-embed chrome that previously lived only
|
package/README.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
The official browser-first TypeScript SDK for **Crowded Kingdoms**. CrowdyJS gives you typed clients for auth, the world/replication GraphQL API, and the UDP proxy subscription stream. As of **v7** it follows the Overworld two-token model: an identity **session token** for the Management API, and short-lived **app-scoped tokens** for gameplay via `client.portal` (see [Overworld portals & app-scoped tokens (v7)](#overworld-portals--app-scoped-tokens-v7)).
|
|
4
4
|
|
|
5
|
+
> **CrowdyJS v13 (breaking): unified galaxy API.** The platform merged the
|
|
6
|
+
> Management API and Game API into ONE server on the shared galaxy database
|
|
7
|
+
> (`managementUrl` and `httpUrl` may be the same origin now; the two-token
|
|
8
|
+
> model is unchanged). The schema is resynced from the unified SDL, and the
|
|
9
|
+
> retired surfaces are removed: `client.environments` (dedicated customer
|
|
10
|
+
> environments no longer exist), the per-environment usage rollups and
|
|
11
|
+
> capacity tier catalogs, and everything on `client.operator` except the
|
|
12
|
+
> platform compute ceilings (infra operations moved to the separate
|
|
13
|
+
> infra-control-plane service). See [MIGRATION.md](MIGRATION.md).
|
|
14
|
+
|
|
5
15
|
## Install
|
|
6
16
|
|
|
7
17
|
```bash
|
|
@@ -533,7 +543,6 @@ project as a safety action rather than interpreting a partial target.
|
|
|
533
543
|
| `client.billing` | Org wallet + per-app spend budgets. |
|
|
534
544
|
| `client.payments` | Payment checkouts (wallet top-ups, plan purchases). |
|
|
535
545
|
| `client.quotas` | Usage quotas at the org/app scope. |
|
|
536
|
-
| `client.environments` | Dedicated environments: quote, provision, scale, deploy, link apps. |
|
|
537
546
|
| `client.usage` | Replication + GraphQL usage reporting. |
|
|
538
547
|
| `client.sharedEnvironment` | Publish to shared, runtime gating, spend caps, auto-billing. |
|
|
539
548
|
| `client.gameApps` | App grids (`createGrid` / `deleteGrid`), first-class grid ownership (`ownership` / `assignOwnership` / `transferOwnership`), and grid runtime-permission administration. |
|
|
@@ -543,7 +552,7 @@ project as a safety action rather than interpreting a partial target.
|
|
|
543
552
|
|
|
544
553
|
| Sub-client | What it does |
|
|
545
554
|
|---|---|
|
|
546
|
-
| `client.operator` |
|
|
555
|
+
| `client.operator` | Platform compute ceilings (v13: infra operations moved to the separate infra-control-plane service). |
|
|
547
556
|
|
|
548
557
|
Auth, user reads, and the studio-admin / operator surfaces target `managementUrl` and use the **identity session token**; the game-client world/UDP surfaces target `httpUrl` / `wsUrl` and require an **app-scoped token** for that app. Use one identity client plus a per-game client (see [Overworld portals & app-scoped tokens (v7)](#overworld-portals--app-scoped-tokens-v7)); each client's `AuthState` carries its token to its own endpoints, so HTTP and WebSocket auth never drift within a client.
|
|
549
558
|
|
|
@@ -930,8 +939,10 @@ alongside the legacy offset lists. The surfaces are namespaced by audience:
|
|
|
930
939
|
`client.billing`) — privileged organization/app administration. Drive these from a
|
|
931
940
|
**studio backend** with an org-scoped or admin token, **not** from an untrusted
|
|
932
941
|
browser; the server still enforces the relevant org/app permission on every call.
|
|
933
|
-
- **Operator** (`client.operator`) — platform
|
|
934
|
-
`users.is_operator`. For internal operator tooling
|
|
942
|
+
- **Operator** (`client.operator`) — platform-policy operations (compute
|
|
943
|
+
ceilings) that require `users.is_operator`. For internal operator tooling
|
|
944
|
+
only. Infrastructure operations live in the separate infra-control-plane
|
|
945
|
+
service as of v13, not this SDK.
|
|
935
946
|
|
|
936
947
|
The SDK never relaxes server-side authorization — exposing an operation here just
|
|
937
948
|
gives you a typed wrapper; the caller still needs the right token and permission. For
|
package/dist/crowdy-client.d.ts
CHANGED
|
@@ -39,7 +39,6 @@ import { AppAccessAPI } from './domains/appAccess.js';
|
|
|
39
39
|
import { BillingAPI } from './domains/billing.js';
|
|
40
40
|
import { PaymentsAPI } from './domains/payments.js';
|
|
41
41
|
import { QuotasAPI } from './domains/quotas.js';
|
|
42
|
-
import { EnvironmentsAPI } from './domains/environments.js';
|
|
43
42
|
import { UsageAPI } from './domains/usage.js';
|
|
44
43
|
import { SharedEnvironmentAPI } from './domains/sharedEnvironment.js';
|
|
45
44
|
import { ControlPlaneAPI } from './domains/controlPlane.js';
|
|
@@ -161,8 +160,6 @@ export declare class CrowdyClient {
|
|
|
161
160
|
readonly payments: PaymentsAPI;
|
|
162
161
|
/** Usage quotas at the org/app scope (studio admin). */
|
|
163
162
|
readonly quotas: QuotasAPI;
|
|
164
|
-
/** Dedicated customer environments: provision, scale, deploy (studio admin). */
|
|
165
|
-
readonly environments: EnvironmentsAPI;
|
|
166
163
|
/** Replication + GraphQL usage reporting (studio admin). */
|
|
167
164
|
readonly usage: UsageAPI;
|
|
168
165
|
/** Shared-environment publishing, runtime gating, auto-billing (studio admin). */
|
|
@@ -172,7 +169,7 @@ export declare class CrowdyClient {
|
|
|
172
169
|
/**
|
|
173
170
|
* Studio-admin facade grouping the privileged management sub-clients
|
|
174
171
|
* (`organizations`, `appAccess`, `billing`, `payments`, `quotas`,
|
|
175
|
-
* `
|
|
172
|
+
* `usage`, `sharedEnvironment`, `grids`) under one namespace.
|
|
176
173
|
*/
|
|
177
174
|
readonly admin: AdminAPI;
|
|
178
175
|
/** Chunk reads/writes: terrain, LODs, chunk state, distance queries. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crowdy-client.d.ts","sourceRoot":"","sources":["../src/crowdy-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;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C,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAIpC,0DAA0D;IAC1D,QAAQ,IAAI,MAAM,GAAG,IAAI;IAIzB;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,oBAAoB,IAAI,OAAO,CAAC,gBAAgB,CAAC;YAczC,2BAA2B;IAczC;;;;;;;OAOG;IACH,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,WAAW;IAIjC;;;;;;;;;;;;OAYG;IACH,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa;IAS3D,gEAAgE;IAChE,KAAK,IAAI,IAAI;CAKd;AAED,wBAAgB,kBAAkB,CAChC,MAAM,GAAE,kBAAuB,GAC9B,YAAY,CAEd"}
|
package/dist/crowdy-client.js
CHANGED
|
@@ -38,7 +38,6 @@ import { AppAccessAPI } from './domains/appAccess.js';
|
|
|
38
38
|
import { BillingAPI } from './domains/billing.js';
|
|
39
39
|
import { PaymentsAPI } from './domains/payments.js';
|
|
40
40
|
import { QuotasAPI } from './domains/quotas.js';
|
|
41
|
-
import { EnvironmentsAPI } from './domains/environments.js';
|
|
42
41
|
import { UsageAPI } from './domains/usage.js';
|
|
43
42
|
import { SharedEnvironmentAPI } from './domains/sharedEnvironment.js';
|
|
44
43
|
import { ControlPlaneAPI } from './domains/controlPlane.js';
|
|
@@ -103,7 +102,6 @@ export class CrowdyClient {
|
|
|
103
102
|
this.billing = new BillingAPI(this.management);
|
|
104
103
|
this.payments = new PaymentsAPI(this.management);
|
|
105
104
|
this.quotas = new QuotasAPI(this.management);
|
|
106
|
-
this.environments = new EnvironmentsAPI(this.management);
|
|
107
105
|
this.usage = new UsageAPI(this.management);
|
|
108
106
|
this.sharedEnvironment = new SharedEnvironmentAPI(this.management);
|
|
109
107
|
this.operator = new ControlPlaneAPI(this.management);
|
|
@@ -140,7 +138,6 @@ export class CrowdyClient {
|
|
|
140
138
|
billing: this.billing,
|
|
141
139
|
payments: this.payments,
|
|
142
140
|
quotas: this.quotas,
|
|
143
|
-
environments: this.environments,
|
|
144
141
|
usage: this.usage,
|
|
145
142
|
sharedEnvironment: this.sharedEnvironment,
|
|
146
143
|
grids: this.gameApps,
|
package/dist/domains/admin.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import type { AppAccessAPI } from './appAccess.js';
|
|
|
4
4
|
import type { BillingAPI } from './billing.js';
|
|
5
5
|
import type { PaymentsAPI } from './payments.js';
|
|
6
6
|
import type { QuotasAPI } from './quotas.js';
|
|
7
|
-
import type { EnvironmentsAPI } from './environments.js';
|
|
8
7
|
import type { UsageAPI } from './usage.js';
|
|
9
8
|
import type { SharedEnvironmentAPI } from './sharedEnvironment.js';
|
|
10
9
|
import type { GameAppsAPI } from './gameApps.js';
|
|
@@ -41,8 +40,6 @@ export declare class AdminAPI {
|
|
|
41
40
|
readonly payments: PaymentsAPI;
|
|
42
41
|
/** Usage quotas at the org/app scope. */
|
|
43
42
|
readonly quotas: QuotasAPI;
|
|
44
|
-
/** Dedicated customer environments: provision, scale, deploy. */
|
|
45
|
-
readonly environments: EnvironmentsAPI;
|
|
46
43
|
/** Replication + GraphQL usage reporting. */
|
|
47
44
|
readonly usage: UsageAPI;
|
|
48
45
|
/** Shared-environment publishing, runtime gating, auto-billing. */
|
|
@@ -56,7 +53,6 @@ export declare class AdminAPI {
|
|
|
56
53
|
billing: BillingAPI;
|
|
57
54
|
payments: PaymentsAPI;
|
|
58
55
|
quotas: QuotasAPI;
|
|
59
|
-
environments: EnvironmentsAPI;
|
|
60
56
|
usage: UsageAPI;
|
|
61
57
|
sharedEnvironment: SharedEnvironmentAPI;
|
|
62
58
|
grids: GameAppsAPI;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/domains/admin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAA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;IACzC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,6CAA6C;IAC7C,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACzB,mEAAmE;IACnE,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB,CAAC;IACjD,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;gBAEhB,IAAI,EAAE;QAChB,aAAa,EAAE,gBAAgB,CAAC;QAChC,IAAI,EAAE,OAAO,CAAC;QACd,SAAS,EAAE,YAAY,CAAC;QACxB,OAAO,EAAE,UAAU,CAAC;QACpB,QAAQ,EAAE,WAAW,CAAC;QACtB,MAAM,EAAE,SAAS,CAAC;QAClB,KAAK,EAAE,QAAQ,CAAC;QAChB,iBAAiB,EAAE,oBAAoB,CAAC;QACxC,KAAK,EAAE,WAAW,CAAC;KACpB;CAWF"}
|
package/dist/domains/admin.js
CHANGED
|
@@ -26,7 +26,6 @@ export class AdminAPI {
|
|
|
26
26
|
this.billing = deps.billing;
|
|
27
27
|
this.payments = deps.payments;
|
|
28
28
|
this.quotas = deps.quotas;
|
|
29
|
-
this.environments = deps.environments;
|
|
30
29
|
this.usage = deps.usage;
|
|
31
30
|
this.sharedEnvironment = deps.sharedEnvironment;
|
|
32
31
|
this.grids = deps.grids;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type WalletBalanceQuery, type WalletTransactionsQuery, type WalletTransactionsConnectionQuery, type WalletTransactionsConnectionQueryVariables, type AppBudgetQuery, type AppBudgetsQuery, type SetAppBudgetMutation
|
|
2
|
+
import { type WalletBalanceQuery, type WalletTransactionsQuery, type WalletTransactionsConnectionQuery, type WalletTransactionsConnectionQueryVariables, type AppBudgetQuery, type AppBudgetsQuery, type SetAppBudgetMutation } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
4
|
* Org wallet + per-app budgets — exposed as `client.billing` (and grouped under
|
|
5
5
|
* `client.admin`).
|
|
@@ -73,25 +73,5 @@ export declare class BillingAPI {
|
|
|
73
73
|
* @returns A wallet-transactions connection.
|
|
74
74
|
*/
|
|
75
75
|
walletTransactionsConnection(args: WalletTransactionsConnectionQueryVariables): Promise<WalletTransactionsConnectionQuery['walletTransactionsConnection']>;
|
|
76
|
-
/**
|
|
77
|
-
* Buddy (UDP replication) capacity billing-tier catalog. **Public.** Each
|
|
78
|
-
* tier lists its messages/sec + bandwidth allotment and capacity charge; use
|
|
79
|
-
* with {@link EnvironmentsAPI.updateBillingTiers} to set an environment's tier.
|
|
80
|
-
*
|
|
81
|
-
* @returns The Buddy billing tiers.
|
|
82
|
-
*/
|
|
83
|
-
buddyTiers(): Promise<BuddyBillingTiersQuery['buddyBillingTiers']>;
|
|
84
|
-
/**
|
|
85
|
-
* GraphQL (Game API) capacity billing-tier catalog. **Public.**
|
|
86
|
-
*
|
|
87
|
-
* @returns The GraphQL billing tiers.
|
|
88
|
-
*/
|
|
89
|
-
graphqlTiers(): Promise<GraphqlBillingTiersQuery['graphqlBillingTiers']>;
|
|
90
|
-
/**
|
|
91
|
-
* Postgres capacity billing-tier catalog. **Public.**
|
|
92
|
-
*
|
|
93
|
-
* @returns The Postgres billing tiers.
|
|
94
|
-
*/
|
|
95
|
-
postgresTiers(): Promise<PostgresBillingTiersQuery['postgresBillingTiers']>;
|
|
96
76
|
}
|
|
97
77
|
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/domains/billing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/domains/billing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAOL,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,iCAAiC,EACtC,KAAK,0CAA0C,EAC/C,KAAK,cAAc,EACnB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;GAWG;AACH,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,aAAa;IAEtD;;;;;;OAMG;IACG,aAAa,CACjB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;IAK/C;;;;;;;OAOG;IACG,kBAAkB,CACtB,KAAK,EAAE,MAAM,EACb,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAO,GAC7C,OAAO,CAAC,uBAAuB,CAAC,oBAAoB,CAAC,CAAC;IASzD;;;;;;;OAOG;IACG,SAAS,CACb,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;IAQvC;;;;;;OAMG;IACG,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;IAKvE;;;;;;;;;OASG;IACG,YAAY,CAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,EACb,iBAAiB,EAAE,MAAM,GACxB,OAAO,CAAC,oBAAoB,CAAC,cAAc,CAAC,CAAC;IAShD;;;;;;;;OAQG;IACG,4BAA4B,CAChC,IAAI,EAAE,0CAA0C,GAC/C,OAAO,CACR,iCAAiC,CAAC,8BAA8B,CAAC,CAClE;CAWF"}
|
package/dist/domains/billing.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WalletBalanceDocument, WalletTransactionsDocument, WalletTransactionsConnectionDocument, AppBudgetDocument, AppBudgetsDocument, SetAppBudgetDocument,
|
|
1
|
+
import { WalletBalanceDocument, WalletTransactionsDocument, WalletTransactionsConnectionDocument, AppBudgetDocument, AppBudgetsDocument, SetAppBudgetDocument, } from '../generated/graphql.js';
|
|
2
2
|
/**
|
|
3
3
|
* Org wallet + per-app budgets — exposed as `client.billing` (and grouped under
|
|
4
4
|
* `client.admin`).
|
|
@@ -99,33 +99,4 @@ export class BillingAPI {
|
|
|
99
99
|
const data = await this.management.request(WalletTransactionsConnectionDocument, args);
|
|
100
100
|
return data.walletTransactionsConnection;
|
|
101
101
|
}
|
|
102
|
-
/**
|
|
103
|
-
* Buddy (UDP replication) capacity billing-tier catalog. **Public.** Each
|
|
104
|
-
* tier lists its messages/sec + bandwidth allotment and capacity charge; use
|
|
105
|
-
* with {@link EnvironmentsAPI.updateBillingTiers} to set an environment's tier.
|
|
106
|
-
*
|
|
107
|
-
* @returns The Buddy billing tiers.
|
|
108
|
-
*/
|
|
109
|
-
async buddyTiers() {
|
|
110
|
-
const data = await this.management.request(BuddyBillingTiersDocument);
|
|
111
|
-
return data.buddyBillingTiers;
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* GraphQL (Game API) capacity billing-tier catalog. **Public.**
|
|
115
|
-
*
|
|
116
|
-
* @returns The GraphQL billing tiers.
|
|
117
|
-
*/
|
|
118
|
-
async graphqlTiers() {
|
|
119
|
-
const data = await this.management.request(GraphqlBillingTiersDocument);
|
|
120
|
-
return data.graphqlBillingTiers;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Postgres capacity billing-tier catalog. **Public.**
|
|
124
|
-
*
|
|
125
|
-
* @returns The Postgres billing tiers.
|
|
126
|
-
*/
|
|
127
|
-
async postgresTiers() {
|
|
128
|
-
const data = await this.management.request(PostgresBillingTiersDocument);
|
|
129
|
-
return data.postgresBillingTiers;
|
|
130
|
-
}
|
|
131
102
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type { GraphQLClient } from '../client.js';
|
|
2
|
-
import { type
|
|
2
|
+
import { type CpComputePlatformCeilingsQuery, type CpSetComputePlatformCeilingsMutation, type CpSetComputePlatformCeilingsInput } from '../generated/graphql.js';
|
|
3
3
|
/**
|
|
4
|
-
* Operator (
|
|
4
|
+
* Operator (platform-policy) surface — exposed as `client.operator`.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
6
|
+
* As of the unified galaxy API this surface is reduced to the platform-wide
|
|
7
|
+
* compute ceilings: dedicated customer environments were retired, and the
|
|
8
|
+
* infrastructure control plane (environments, change orders, secrets, release
|
|
9
|
+
* management, audit) moved to the separate infra-control-plane service with
|
|
10
|
+
* its own auth and operator console. EVERY operation here still requires
|
|
11
|
+
* `users.is_operator` (super-admins implicitly have it).
|
|
11
12
|
*
|
|
12
13
|
* @throws {CrowdyGraphQLError} `UNAUTHENTICATED` without a session, `FORBIDDEN`
|
|
13
14
|
* when the caller is not an operator.
|
|
@@ -16,179 +17,22 @@ export declare class ControlPlaneAPI {
|
|
|
16
17
|
private readonly management;
|
|
17
18
|
constructor(management: GraphQLClient);
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* The platform-wide compute ceilings (max modules, tick rates, fuel,
|
|
21
|
+
* memory, run time, db-op and egress budgets).
|
|
20
22
|
*
|
|
21
|
-
* @
|
|
22
|
-
* @returns A page of operator environment rows.
|
|
23
|
-
*/
|
|
24
|
-
environments(opts?: {
|
|
25
|
-
page?: number;
|
|
26
|
-
pageSize?: number;
|
|
27
|
-
}): Promise<CpEnvironmentsQuery['cpEnvironments']>;
|
|
28
|
-
/**
|
|
29
|
-
* Operator view of one environment by slug (across any org).
|
|
30
|
-
*
|
|
31
|
-
* @param slug - Environment slug.
|
|
32
|
-
* @returns The environment row, or `null` if not found.
|
|
33
|
-
*/
|
|
34
|
-
environment(slug: string): Promise<CpEnvironmentQuery['cpEnvironment']>;
|
|
35
|
-
/**
|
|
36
|
-
* Paginated change orders, optionally filtered by environment.
|
|
37
|
-
*
|
|
38
|
-
* @param opts - Optional `environmentId` filter, `page`, `pageSize`.
|
|
39
|
-
* @returns A page of change-order rows.
|
|
40
|
-
*/
|
|
41
|
-
changeOrders(opts?: {
|
|
42
|
-
environmentId?: string;
|
|
43
|
-
page?: number;
|
|
44
|
-
pageSize?: number;
|
|
45
|
-
}): Promise<CpChangeOrdersQuery['cpChangeOrders']>;
|
|
46
|
-
/**
|
|
47
|
-
* One change order with its tasks and steps.
|
|
48
|
-
*
|
|
49
|
-
* @param id - Change order UUID.
|
|
50
|
-
* @returns The change-order detail, or `null` if not found.
|
|
51
|
-
*/
|
|
52
|
-
changeOrder(id: string): Promise<CpChangeOrderQuery['cpChangeOrder']>;
|
|
53
|
-
/**
|
|
54
|
-
* Most recent operator audit entries (newest first), optionally filtered.
|
|
55
|
-
*
|
|
56
|
-
* @param opts - Optional `environmentId` filter and `limit` (default 200).
|
|
57
|
-
* @returns The audit entries.
|
|
58
|
-
*/
|
|
59
|
-
audit(opts?: {
|
|
60
|
-
environmentId?: string;
|
|
61
|
-
limit?: number;
|
|
62
|
-
}): Promise<CpAuditQuery['cpAudit']>;
|
|
63
|
-
/**
|
|
64
|
-
* Control-plane secret metadata (names/kinds only, never plaintext).
|
|
65
|
-
*
|
|
66
|
-
* @param environmentId - Optional environment UUID filter.
|
|
67
|
-
* @returns The secret metadata rows.
|
|
68
|
-
*/
|
|
69
|
-
secrets(environmentId?: string): Promise<CpSecretsQuery['cpSecrets']>;
|
|
70
|
-
/**
|
|
71
|
-
* Environment-delivered secret metadata (names/kinds only, never plaintext).
|
|
72
|
-
*
|
|
73
|
-
* @param environmentId - Optional environment UUID filter.
|
|
74
|
-
* @returns The env-secret metadata rows.
|
|
75
|
-
*/
|
|
76
|
-
envSecrets(environmentId?: string): Promise<CpEnvSecretsQuery['cpEnvSecrets']>;
|
|
77
|
-
/**
|
|
78
|
-
* OVH flavor catalog with provider vs. customer pricing.
|
|
79
|
-
*
|
|
80
|
-
* @param region - Optional region code filter (e.g. `'GRA11'`).
|
|
81
|
-
* @returns The catalog rows.
|
|
82
|
-
*/
|
|
83
|
-
ovhCatalogSummary(region?: string): Promise<CpOvhCatalogSummaryQuery['cpOvhCatalogSummary']>;
|
|
84
|
-
/**
|
|
85
|
-
* Platform-wide compute ceilings (the maxima `computeSetPolicy` clamps to).
|
|
86
|
-
* Every knob is nullable: `null` means no operator override, so the
|
|
87
|
-
* env-var/bootstrap default applies on the game-api side.
|
|
88
|
-
*
|
|
89
|
-
* @returns The stored ceiling overrides plus updatedAt/updatedByUserId.
|
|
23
|
+
* @returns The stored ceilings row.
|
|
90
24
|
*/
|
|
91
25
|
computePlatformCeilings(): Promise<CpComputePlatformCeilingsQuery['cpComputePlatformCeilings']>;
|
|
92
26
|
/**
|
|
93
27
|
* Patch the platform compute ceilings. Patch semantics per knob: omit =
|
|
94
28
|
* unchanged, explicit `null` = clear the override (fall back to the
|
|
95
|
-
* game-api bootstrap default), positive value = set.
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
* `compute.platform_ceilings_set` audit entry.
|
|
29
|
+
* game-api bootstrap default), positive value = set. Takes effect on the
|
|
30
|
+
* next `computeSetPolicy` call (no restart), within a 30s cache bound.
|
|
31
|
+
* Writes a `compute.platform_ceilings_set` audit entry.
|
|
99
32
|
*
|
|
100
33
|
* @param input - The per-knob patch.
|
|
101
34
|
* @returns The stored ceilings after the patch.
|
|
102
35
|
*/
|
|
103
36
|
setComputePlatformCeilings(input: CpSetComputePlatformCeilingsInput): Promise<CpSetComputePlatformCeilingsMutation['cpSetComputePlatformCeilings']>;
|
|
104
|
-
/**
|
|
105
|
-
* Operator per-minute usage summary for any environment (not org-scoped).
|
|
106
|
-
*
|
|
107
|
-
* @param environmentSlug - Environment slug.
|
|
108
|
-
* @param since - Start of the window (ISO-8601 DateTime) up to now.
|
|
109
|
-
* @returns The usage summary.
|
|
110
|
-
*/
|
|
111
|
-
usageSummary(environmentSlug: string, since: string): Promise<CpUsageSummaryQuery['cpUsageSummary']>;
|
|
112
|
-
/**
|
|
113
|
-
* cks-game-api git tags not yet pinned by any environment release.
|
|
114
|
-
*
|
|
115
|
-
* @returns The unreleased tags with proposed versions.
|
|
116
|
-
*/
|
|
117
|
-
unreleasedGameApiTags(): Promise<CpUnreleasedGameApiTagsQuery['cpUnreleasedGameApiTags']>;
|
|
118
|
-
/**
|
|
119
|
-
* Environment release manifests merged from git + DB.
|
|
120
|
-
*
|
|
121
|
-
* @returns The version rows with latest-available and git-source flags.
|
|
122
|
-
*/
|
|
123
|
-
environmentVersions(): Promise<CpEnvironmentVersionsQuery['cpEnvironmentVersions']>;
|
|
124
|
-
/**
|
|
125
|
-
* List users with operator and/or super-admin privileges.
|
|
126
|
-
*
|
|
127
|
-
* @returns The privileged users.
|
|
128
|
-
*/
|
|
129
|
-
operatorUsers(): Promise<OperatorUsersQuery['operatorUsers']>;
|
|
130
|
-
/**
|
|
131
|
-
* Toggle deletion protection on an environment (blocks purge when enabled).
|
|
132
|
-
* Writes an audit entry.
|
|
133
|
-
*
|
|
134
|
-
* @param environmentId - Environment UUID.
|
|
135
|
-
* @param enabled - `true` to protect, `false` to unprotect.
|
|
136
|
-
* @returns `true` on success.
|
|
137
|
-
*/
|
|
138
|
-
setDeletionProtection(environmentId: string, enabled: boolean): Promise<SetEnvironmentDeletionProtectionMutation['setEnvironmentDeletionProtection']>;
|
|
139
|
-
/**
|
|
140
|
-
* Create/overwrite a control-plane secret (plaintext is write-only). Writes an
|
|
141
|
-
* audit entry.
|
|
142
|
-
*
|
|
143
|
-
* @param environmentId - Environment UUID.
|
|
144
|
-
* @param name - Secret name/key.
|
|
145
|
-
* @param plaintext - Secret value to encrypt and store.
|
|
146
|
-
* @param kind - Optional classification tag.
|
|
147
|
-
* @returns The secret metadata row.
|
|
148
|
-
*/
|
|
149
|
-
putSecret(environmentId: string, name: string, plaintext: string, kind?: string): Promise<PutCpSecretMutation['putCpSecret']>;
|
|
150
|
-
/**
|
|
151
|
-
* Delete a control-plane secret by environment + name. Writes an audit entry.
|
|
152
|
-
*
|
|
153
|
-
* @param environmentId - Environment UUID.
|
|
154
|
-
* @param name - Secret name/key to delete.
|
|
155
|
-
* @returns `true` when a secret was removed.
|
|
156
|
-
*/
|
|
157
|
-
deleteSecret(environmentId: string, name: string): Promise<DeleteCpSecretMutation['deleteCpSecret']>;
|
|
158
|
-
/**
|
|
159
|
-
* Create/overwrite an environment-delivered secret (injected into the tenant
|
|
160
|
-
* runtime; plaintext is write-only). Writes an audit entry.
|
|
161
|
-
*
|
|
162
|
-
* @param environmentId - Environment UUID.
|
|
163
|
-
* @param name - Secret name/key.
|
|
164
|
-
* @param plaintext - Secret value to encrypt and store.
|
|
165
|
-
* @param kind - Optional classification tag.
|
|
166
|
-
* @returns The env-secret metadata row.
|
|
167
|
-
*/
|
|
168
|
-
putEnvSecret(environmentId: string, name: string, plaintext: string, kind?: string): Promise<PutCpEnvSecretMutation['putCpEnvSecret']>;
|
|
169
|
-
/**
|
|
170
|
-
* Ingest a release manifest into the deployable catalog. Writes an audit
|
|
171
|
-
* entry.
|
|
172
|
-
*
|
|
173
|
-
* @param input - {@link IngestEnvironmentVersionInput} (version, force).
|
|
174
|
-
* @returns The ingested version row.
|
|
175
|
-
*/
|
|
176
|
-
ingestEnvironmentVersion(input: IngestEnvironmentVersionInput): Promise<IngestEnvironmentVersionMutation['ingestEnvironmentVersion']>;
|
|
177
|
-
/**
|
|
178
|
-
* Cut a new environment release from a cks-game-api git tag (ingests + commits
|
|
179
|
-
* the manifest to git). SIDE EFFECT: retargets redeploy and writes to GitHub.
|
|
180
|
-
*
|
|
181
|
-
* @param input - {@link PublishEnvironmentReleaseFromGameApiTagInput}.
|
|
182
|
-
* @returns The publish result.
|
|
183
|
-
*/
|
|
184
|
-
publishReleaseFromGameApiTag(input: PublishEnvironmentReleaseFromGameApiTagInput): Promise<PublishEnvironmentReleaseFromGameApiTagMutation['publishEnvironmentReleaseFromGameApiTag']>;
|
|
185
|
-
/**
|
|
186
|
-
* Yank (withdraw) an environment version so it can no longer be deployed.
|
|
187
|
-
* Existing environments are unaffected. Writes an audit entry.
|
|
188
|
-
*
|
|
189
|
-
* @param version - Environment version to yank (e.g. `'v0.1.4'`).
|
|
190
|
-
* @returns `true` on success.
|
|
191
|
-
*/
|
|
192
|
-
yankEnvironmentVersion(version: string): Promise<YankEnvironmentVersionMutation['yankEnvironmentVersion']>;
|
|
193
37
|
}
|
|
194
38
|
//# sourceMappingURL=controlPlane.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controlPlane.d.ts","sourceRoot":"","sources":["../../src/domains/controlPlane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,
|
|
1
|
+
{"version":3,"file":"controlPlane.d.ts","sourceRoot":"","sources":["../../src/domains/controlPlane.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAGL,KAAK,8BAA8B,EACnC,KAAK,oCAAoC,EACzC,KAAK,iCAAiC,EACvC,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;GAYG;AACH,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,UAAU;gBAAV,UAAU,EAAE,aAAa;IAEtD;;;;;OAKG;IACG,uBAAuB,IAAI,OAAO,CACtC,8BAA8B,CAAC,2BAA2B,CAAC,CAC5D;IAOD;;;;;;;;;OASG;IACG,0BAA0B,CAC9B,KAAK,EAAE,iCAAiC,GACvC,OAAO,CACR,oCAAoC,CAAC,8BAA8B,CAAC,CACrE;CAOF"}
|