@crowdedkingdoms/crowdyjs 18.25.0-test.1 → 18.26.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.
- package/MIGRATION.md +21 -0
- package/README.md +18 -0
- package/dist/binary-relay.d.ts +7 -1
- package/dist/binary-relay.d.ts.map +1 -1
- package/dist/binary-relay.js +14 -0
- package/dist/default-origin.d.ts +6 -6
- package/dist/default-origin.d.ts.map +1 -1
- package/dist/default-origin.js +6 -6
- package/dist/domains/apps.d.ts +6 -0
- package/dist/domains/apps.d.ts.map +1 -1
- package/dist/domains/apps.js +6 -0
- package/dist/domains/sharedEnvironment.d.ts +0 -6
- package/dist/domains/sharedEnvironment.d.ts.map +1 -1
- package/dist/domains/sharedEnvironment.js +0 -6
- package/dist/generated/graphql-schema.d.ts +13 -7
- package/dist/generated/graphql-schema.d.ts.map +1 -1
- package/dist/generated/graphql.d.ts +4 -0
- package/dist/generated/graphql.d.ts.map +1 -1
- package/dist/generated/graphql.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/realtime.d.ts +15 -3
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +13 -3
- package/package.json +1 -1
package/MIGRATION.md
CHANGED
|
@@ -120,6 +120,27 @@ super-admin's session). There is no SDK replacement.
|
|
|
120
120
|
`dev`'s SDL after #417 merged (`npm run schema:sync:paths -- --schema <that schema.gql>`, then
|
|
121
121
|
`npm run codegen`).
|
|
122
122
|
|
|
123
|
+
## 18.26.0: a session released for idleness is final
|
|
124
|
+
|
|
125
|
+
**What it needs.** ck-api `v2.64.0` (cks-game-api #643): `apps.app()` and `apps.update()` select
|
|
126
|
+
`idleTimeoutSeconds` and `effectiveIdleTimeoutSeconds`; against an older API those reads fail
|
|
127
|
+
GraphQL validation. The release itself is the replication server's (reason 5 on
|
|
128
|
+
`COMMAND_SESSION_RELEASED`), and needs nothing from the SDK to happen.
|
|
129
|
+
|
|
130
|
+
**What changes for a game.** A realtime session that sends no gameplay input (movement, edits,
|
|
131
|
+
messages, voice, video; not keep-alives, and not keyframes repeating an unchanged state) for the
|
|
132
|
+
app's idle timeout is released, 15 minutes by default. Before 18.26.0 the SDK read the relay's
|
|
133
|
+
close as a dropped connection and reconnected, which defeated the rule; now:
|
|
134
|
+
|
|
135
|
+
- the binary relay's close 4410 (`GAMEPLAY_IDLE_CLOSE_CODE`) and the GraphQL proxy's
|
|
136
|
+
`RealtimeConnectionEvent` `IDLE_TIMEOUT` (`IDLE_TIMEOUT_CODE`, `retryable: false`) set the
|
|
137
|
+
status to the new **`inactive`** and stop the transport from reconnecting;
|
|
138
|
+
- `client.realtime.connect()` reopens it; call it on the player's next input.
|
|
139
|
+
|
|
140
|
+
`RealtimeStatus` gains `'inactive'`: a `switch` that must be exhaustive needs a case for it. An app
|
|
141
|
+
that never wants idle players released sets `apps.update(appId, { idleTimeoutSeconds: 0 })`; one
|
|
142
|
+
that wants a different period sets 60 to 86400 seconds; `null` returns it to the default.
|
|
143
|
+
|
|
123
144
|
## 18.25.0: appointed moderators, regions, and the consent refusal's reason
|
|
124
145
|
|
|
125
146
|
**What it needs.** ck-api `v2.61.0` (cks-game-api #623, #624): `apps.app()` and `apps.update()`
|
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ so it needs that Game API or newer; promote the Game API before the SDK on each
|
|
|
34
34
|
|
|
35
35
|
| CrowdyJS | Needs the Game API (ck-api) |
|
|
36
36
|
| --- | --- |
|
|
37
|
+
| 18.26.0 | v2.64.0 or later (app reads and `apps.update` select `idleTimeoutSeconds` and `effectiveIdleTimeoutSeconds`) |
|
|
37
38
|
| 18.25.0 | v2.61.0 or later (app reads and `apps.update` select `hasSafetyModerator`; `platform.territoryPolicies` selects `regionCode`) |
|
|
38
39
|
| 18.24.0 | v2.60.0 or later (`users.me` selects `ageBracket` and `country`; app reads and `apps.update` select the safety log and age fields; the teen safety calls). `auth.recordPlayerConsents` with both flags and `auth.playerLegalAcceptance()` without an app work against older releases |
|
|
39
40
|
| 18.22.0 | v2.58.0 or later (`ExecInstance.orphaned`) |
|
|
@@ -588,6 +589,23 @@ while `AUTH_REQUIRED` / `APP_ID_REQUIRED` must be fixed by the caller first.
|
|
|
588
589
|
Unsubscribing stops delivery only; call `client.udp.disconnect()` to close the
|
|
589
590
|
UDP proxy session.
|
|
590
591
|
|
|
592
|
+
**A session that goes 15 minutes without gameplay input ends, and the SDK does not
|
|
593
|
+
reconnect it** (18.26.0). The replication server releases a player who sends no movement,
|
|
594
|
+
edits, messages, voice or video for the app's idle timeout (`effectiveIdleTimeoutSeconds`
|
|
595
|
+
on the app: 900 unless the app sets its own with `apps.update({ idleTimeoutSeconds })`, and
|
|
596
|
+
never when it sets 0). Keep-alives and keyframes that repeat an unchanged state do not count.
|
|
597
|
+
The status becomes `inactive` on both transports (relay close `GAMEPLAY_IDLE_CLOSE_CODE`,
|
|
598
|
+
4410, or the `IDLE_TIMEOUT_CODE` connection event). Reconnect on the player's next input:
|
|
599
|
+
|
|
600
|
+
```ts
|
|
601
|
+
client.realtime.onStatus((status) => {
|
|
602
|
+
if (status === 'inactive') showPausedOverlay(); // the player stepped away
|
|
603
|
+
});
|
|
604
|
+
onPlayerInput(() => {
|
|
605
|
+
if (client.realtime.status() === 'inactive') client.realtime.connect();
|
|
606
|
+
});
|
|
607
|
+
```
|
|
608
|
+
|
|
591
609
|
`genericSpatial` receives opcode 140 (`GENERIC_SPATIAL_1`), an app-defined spatial payload the
|
|
592
610
|
server fans out without reading — what `client.udp.sendGenericSpatial` and CrowdyCPP's
|
|
593
611
|
`Connection::sendGenericSpatial` send. It travels only on the binary relay
|
package/dist/binary-relay.d.ts
CHANGED
|
@@ -16,11 +16,17 @@ import { CrowdyRealtimeError } from './errors.js';
|
|
|
16
16
|
import type { UdpNotification } from './realtime.js';
|
|
17
17
|
import { type RelaySignContext } from './binary-wire.js';
|
|
18
18
|
export declare const RELAY_SUBPROTOCOL = "crowdy-relay-v1";
|
|
19
|
+
/**
|
|
20
|
+
* The relay's close code for a session the replication server released because
|
|
21
|
+
* the player sent no gameplay input for the app's idle timeout
|
|
22
|
+
* (`App.effectiveIdleTimeoutSeconds`). Final: the transport does not reconnect.
|
|
23
|
+
*/
|
|
24
|
+
export declare const GAMEPLAY_IDLE_CLOSE_CODE = 4410;
|
|
19
25
|
export interface BinaryRelayCallbacks {
|
|
20
26
|
getToken(): string | null;
|
|
21
27
|
onNotification(notification: UdpNotification): void;
|
|
22
28
|
onError(error: CrowdyRealtimeError): void;
|
|
23
|
-
onStatus(status: 'connecting' | 'connected' | 'reconnecting' | 'disconnected'): void;
|
|
29
|
+
onStatus(status: 'connecting' | 'connected' | 'reconnecting' | 'disconnected' | 'inactive'): void;
|
|
24
30
|
/**
|
|
25
31
|
* The relay endpoint looks permanently unavailable (older server, blocked
|
|
26
32
|
* upgrade). The owner should fall back to the GraphQL transport.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary-relay.d.ts","sourceRoot":"","sources":["../src/binary-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EASL,KAAK,gBAAgB,EAEtB,MAAM,kBAAkB,CAAC;AAE1B,eAAO,MAAM,iBAAiB,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"binary-relay.d.ts","sourceRoot":"","sources":["../src/binary-relay.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAA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,uCAAuC;IACvC,KAAK,IAAI,oBAAoB;IAI7B,wEAAwE;IACxE,OAAO,IAAI,OAAO;IAQlB,wEAAwE;IACxE,cAAc,IAAI,gBAAgB,GAAG,IAAI;IAIzC,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAO5B,UAAU,IAAI,IAAI;IAwBlB,oEAAoE;IACpE,OAAO,IAAI,IAAI;IASf;;;;OAIG;IACH,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI;IAgDlC;;;;OAIG;IACH,UAAU,IAAI,IAAI;IAoBlB,OAAO,CAAC,QAAQ;IAQhB,OAAO,CAAC,IAAI;YA8HE,kBAAkB;IAuChC;;;;;OAKG;IACH,OAAO,CAAC,iBAAiB;IAYzB,OAAO,CAAC,gBAAgB;YAOV,gBAAgB;IAc9B;;;;;;OAMG;IACH,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,UAAU;CAyBnB"}
|
package/dist/binary-relay.js
CHANGED
|
@@ -16,6 +16,12 @@ import { CrowdyRealtimeError } from './errors.js';
|
|
|
16
16
|
import { BUNDLE_LENGTH_PREFIX_BYTES, bundleSizeOf, createSignContext, packMessageBundle, parseRelayFrame, RELAY_MAX_BUNDLE_MEMBER_BYTES, RELAY_MAX_BUNDLE_MEMBERS, RELAY_MAX_DATAGRAM_BYTES, serializeClientCapabilities, } from './binary-wire.js';
|
|
17
17
|
export const RELAY_SUBPROTOCOL = 'crowdy-relay-v1';
|
|
18
18
|
const BEARER_PREFIX = 'bearer.';
|
|
19
|
+
/**
|
|
20
|
+
* The relay's close code for a session the replication server released because
|
|
21
|
+
* the player sent no gameplay input for the app's idle timeout
|
|
22
|
+
* (`App.effectiveIdleTimeoutSeconds`). Final: the transport does not reconnect.
|
|
23
|
+
*/
|
|
24
|
+
export const GAMEPLAY_IDLE_CLOSE_CODE = 4410;
|
|
19
25
|
/** Consecutive pre-ready failures before we declare the relay unavailable. */
|
|
20
26
|
const UNAVAILABLE_AFTER_FAILURES = 2;
|
|
21
27
|
/**
|
|
@@ -320,6 +326,14 @@ export class BinaryRelayTransport {
|
|
|
320
326
|
this.callbacks.onStatus('disconnected');
|
|
321
327
|
return;
|
|
322
328
|
}
|
|
329
|
+
// Released for idleness: the player stopped playing. Final by decision
|
|
330
|
+
// (2026-11-10), because reconnecting would hold the session the timeout
|
|
331
|
+
// ended; the game calls connect() again on the player's next input.
|
|
332
|
+
if (event.code === GAMEPLAY_IDLE_CLOSE_CODE) {
|
|
333
|
+
this.desired = false;
|
|
334
|
+
this.callbacks.onStatus('inactive');
|
|
335
|
+
return;
|
|
336
|
+
}
|
|
323
337
|
if (!hadReady) {
|
|
324
338
|
this.preReadyFailures += 1;
|
|
325
339
|
// Two different failures hide behind "the handshake did not complete",
|
package/dist/default-origin.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
3
|
+
* `sync-client-origins.mjs --write --tier dev` writes this file, and
|
|
4
4
|
* `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
|
|
5
5
|
* host that declaration does not carry. Regenerate; never hand-edit.
|
|
6
6
|
*
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
* than no default at all. Every fallback this SDK ever removed named a host that
|
|
11
11
|
* was already dead. A generated file plus a gate is what makes this one different.
|
|
12
12
|
*
|
|
13
|
-
* Source: the operator's per-tier public CK API origin declaration, tier '
|
|
13
|
+
* Source: the operator's per-tier public CK API origin declaration, tier 'dev'
|
|
14
14
|
*/
|
|
15
15
|
/** The tier this build of the SDK is published for. */
|
|
16
|
-
export declare const CROWDY_DEFAULT_TIER = "
|
|
16
|
+
export declare const CROWDY_DEFAULT_TIER = "dev";
|
|
17
17
|
/** The public CK API origin for that tier. */
|
|
18
|
-
export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.
|
|
18
|
+
export declare const CROWDY_DEFAULT_HTTP_ORIGIN = "https://ck.dev.crowdedkingdoms.com";
|
|
19
19
|
/** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
|
|
20
|
-
export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.
|
|
20
|
+
export declare const CROWDY_DEFAULT_WS_ORIGIN = "wss://ck.dev.crowdedkingdoms.com";
|
|
21
21
|
/** The bare hostname, for callers that need to compare rather than dial. */
|
|
22
|
-
export declare const CROWDY_DEFAULT_HOST = "ck.
|
|
22
|
+
export declare const CROWDY_DEFAULT_HOST = "ck.dev.crowdedkingdoms.com";
|
|
23
23
|
//# sourceMappingURL=default-origin.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"default-origin.d.ts","sourceRoot":"","sources":["../src/default-origin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,uDAAuD;AACvD,eAAO,MAAM,mBAAmB,QAAQ,CAAC;AAEzC,8CAA8C;AAC9C,eAAO,MAAM,0BAA0B,uCAAuC,CAAC;AAE/E,mFAAmF;AACnF,eAAO,MAAM,wBAAwB,qCAAqC,CAAC;AAE3E,4EAA4E;AAC5E,eAAO,MAAM,mBAAmB,+BAA+B,CAAC"}
|
package/dist/default-origin.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GENERATED — do not edit. The operator tooling's
|
|
3
|
-
* `sync-client-origins.mjs --write --tier
|
|
3
|
+
* `sync-client-origins.mjs --write --tier dev` writes this file, and
|
|
4
4
|
* `check-sdk-default-origin.mjs` refuses it when it names the wrong tier or a
|
|
5
5
|
* host that declaration does not carry. Regenerate; never hand-edit.
|
|
6
6
|
*
|
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* than no default at all. Every fallback this SDK ever removed named a host that
|
|
11
11
|
* was already dead. A generated file plus a gate is what makes this one different.
|
|
12
12
|
*
|
|
13
|
-
* Source: the operator's per-tier public CK API origin declaration, tier '
|
|
13
|
+
* Source: the operator's per-tier public CK API origin declaration, tier 'dev'
|
|
14
14
|
*/
|
|
15
15
|
/** The tier this build of the SDK is published for. */
|
|
16
|
-
export const CROWDY_DEFAULT_TIER = '
|
|
16
|
+
export const CROWDY_DEFAULT_TIER = 'dev';
|
|
17
17
|
/** The public CK API origin for that tier. */
|
|
18
|
-
export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.
|
|
18
|
+
export const CROWDY_DEFAULT_HTTP_ORIGIN = 'https://ck.dev.crowdedkingdoms.com';
|
|
19
19
|
/** The same host over WebSocket. A scheme is composed; a hostname is looked up. */
|
|
20
|
-
export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.
|
|
20
|
+
export const CROWDY_DEFAULT_WS_ORIGIN = 'wss://ck.dev.crowdedkingdoms.com';
|
|
21
21
|
/** The bare hostname, for callers that need to compare rather than dial. */
|
|
22
|
-
export const CROWDY_DEFAULT_HOST = 'ck.
|
|
22
|
+
export const CROWDY_DEFAULT_HOST = 'ck.dev.crowdedkingdoms.com';
|
package/dist/domains/apps.d.ts
CHANGED
|
@@ -261,6 +261,12 @@ export declare class AppsAPI {
|
|
|
261
261
|
* it to the platform's, and `effectiveMinPlayerAge` reads the result. Younger players
|
|
262
262
|
* are refused `AGE_REQUIREMENT_NOT_MET` at their next mint or refresh.
|
|
263
263
|
*
|
|
264
|
+
* `idleTimeoutSeconds` (ck-api v2.64.0) is how long a realtime session may go without
|
|
265
|
+
* gameplay input before the replication server releases it: 60 to 86400, `0` for never,
|
|
266
|
+
* `null` for the platform default (900); `effectiveIdleTimeoutSeconds` reads the result. A
|
|
267
|
+
* released player's realtime status becomes `inactive` and nothing reconnects until the
|
|
268
|
+
* game calls `client.realtime.connect()`. Takes effect within about 15 seconds.
|
|
269
|
+
*
|
|
264
270
|
* App reads and this update also return `hasSafetyModerator` (ck-api v2.61.0): whether the
|
|
265
271
|
* organization has appointed a safety moderator, a member whose own role grants
|
|
266
272
|
* `moderate_safety` (an admin alone does not count). An app that admits players under 18
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.d.ts","sourceRoot":"","sources":["../../src/domains/apps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAkBL,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,+BAA+B,EACpC,KAAK,QAAQ,EAEb,KAAK,cAAc,EAEnB,KAAK,WAAW,EAChB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,+BAA+B,EACpC,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,EACnC,KAAK,yBAAyB,EAE9B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,yBAAyB,CAAC;AAEjC;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACvB,4DAA4D;IAC5D,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;;OAIG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC;AAgBnF;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAKjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,oBAAoB,IAAI,OAAO,CACnC,yBAAyB,CAAC,sBAAsB,CAAC,CAClD;IAKD;;;;;;;;;;;;;;OAcG;IACG,MAAM,CACV,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAK1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAyCG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,cAAc,GACpB,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAQ1C;;;;;;;OAOG;IACG,OAAO,CACX,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC;CAI7C"}
|
package/dist/domains/apps.js
CHANGED
|
@@ -302,6 +302,12 @@ export class AppsAPI {
|
|
|
302
302
|
* it to the platform's, and `effectiveMinPlayerAge` reads the result. Younger players
|
|
303
303
|
* are refused `AGE_REQUIREMENT_NOT_MET` at their next mint or refresh.
|
|
304
304
|
*
|
|
305
|
+
* `idleTimeoutSeconds` (ck-api v2.64.0) is how long a realtime session may go without
|
|
306
|
+
* gameplay input before the replication server releases it: 60 to 86400, `0` for never,
|
|
307
|
+
* `null` for the platform default (900); `effectiveIdleTimeoutSeconds` reads the result. A
|
|
308
|
+
* released player's realtime status becomes `inactive` and nothing reconnects until the
|
|
309
|
+
* game calls `client.realtime.connect()`. Takes effect within about 15 seconds.
|
|
310
|
+
*
|
|
305
311
|
* App reads and this update also return `hasSafetyModerator` (ck-api v2.61.0): whether the
|
|
306
312
|
* organization has appointed a safety moderator, a member whose own role grants
|
|
307
313
|
* `moderate_safety` (an admin alone does not count). An app that admits players under 18
|
|
@@ -110,12 +110,6 @@ export declare class SharedEnvironmentAPI {
|
|
|
110
110
|
* byte is metered from the first one whether or not you hold a reservation:
|
|
111
111
|
* reserving 5 MB/s does not make the first 5 MB/s free.
|
|
112
112
|
*
|
|
113
|
-
* **It is not how you lift the free-tier cap.** Unfunded free apps are shaped
|
|
114
|
-
* at roughly 1 MB/s. That shaping is lifted by funding the org wallet or
|
|
115
|
-
* enabling auto-billing ({@link setAutoBilling}), not by reserving — before
|
|
116
|
-
* 2026-09-01 a reservation did double duty as a rate-limit bypass and no longer
|
|
117
|
-
* does.
|
|
118
|
-
*
|
|
119
113
|
* Billed monthly whether or not the capacity is used; upgrades are prorated for
|
|
120
114
|
* the current month, and lowering or clearing a reservation charges nothing.
|
|
121
115
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sharedEnvironment.d.ts","sourceRoot":"","sources":["../../src/domains/sharedEnvironment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,EAcL,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,0BAA0B,EAC/B,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,uBAAuB,EAC5B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACrB,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;;GAaG;AACH,qBAAa,oBAAoB;IACnB,OAAO,CAAC,QAAQ,CAAC,GAAG;gBAAH,GAAG,EAAE,aAAa;IAE/C;;;;OAIG;IACG,KAAK,IAAI,OAAO,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IAK7D;;;;;OAKG;IACG,YAAY,CAChB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,CAAC;IAOnD;;;;;OAKG;IACG,eAAe,CACnB,KAAK,EAAE,MAAM,G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;OAOG;IACG,mBAAmB,CACvB,KAAK,EAAE,MAAM,EACb,eAAe,EAAE,MAAM,EACvB,cAAc,CAAC,EAAE,MAAM,GACtB,OAAO,CAAC,iCAAiC,CAAC,2BAA2B,CAAC,CAAC;CAO3E"}
|
|
@@ -147,12 +147,6 @@ export class SharedEnvironmentAPI {
|
|
|
147
147
|
* byte is metered from the first one whether or not you hold a reservation:
|
|
148
148
|
* reserving 5 MB/s does not make the first 5 MB/s free.
|
|
149
149
|
*
|
|
150
|
-
* **It is not how you lift the free-tier cap.** Unfunded free apps are shaped
|
|
151
|
-
* at roughly 1 MB/s. That shaping is lifted by funding the org wallet or
|
|
152
|
-
* enabling auto-billing ({@link setAutoBilling}), not by reserving — before
|
|
153
|
-
* 2026-09-01 a reservation did double duty as a rate-limit bypass and no longer
|
|
154
|
-
* does.
|
|
155
|
-
*
|
|
156
150
|
* Billed monthly whether or not the capacity is used; upgrades are prorated for
|
|
157
151
|
* the current month, and lowering or clearing a reservation charges nothing.
|
|
158
152
|
*
|
|
@@ -911,6 +911,8 @@ export type App = {
|
|
|
911
911
|
deploymentTarget: Scalars['String']['output'];
|
|
912
912
|
/** Short plain-text description shown in listings; also matched by the marketplace free-text filter. */
|
|
913
913
|
description: Maybe<Scalars['String']['output']>;
|
|
914
|
+
/** Seconds a realtime session may go without gameplay input (movement, messages, edits, voice; keep-alives and keyframes that repeat an unchanged state do not count) before the replication server releases it with reason idle. 900 (15 minutes) unless the app sets its own; 0 means never. A released player is not reconnected automatically: the SDKs report the session inactive and the game reconnects on the next player input. */
|
|
915
|
+
effectiveIdleTimeoutSeconds: Scalars['Int']['output'];
|
|
914
916
|
/** The youngest age the app admits now: the higher of minPlayerAge and the platform's minimum (18 until players 13 and over are admitted, then 13). A player's country can require more (territoryPolicies); younger players are refused AGE_REQUIREMENT_NOT_MET at mint. */
|
|
915
917
|
effectiveMinPlayerAge: Scalars['Int']['output'];
|
|
916
918
|
/** Resolved game-api base URL for SDK/runtime calls: the per-tenant URL for dedicated apps, or the shared platform URL for shared apps. Null for legacy or not-yet-deployed apps. */
|
|
@@ -921,6 +923,8 @@ export type App = {
|
|
|
921
923
|
gridClaimPolicy: Scalars['String']['output'];
|
|
922
924
|
/** Whether the app's organization has a safety moderator: a member one of whose roles grants moderate_safety itself (the admin role alone does not count; the moderator is appointed) and who is not deleted, blocked, banned from the organization or a minor. An app that admits players under 18 needs one, or its minors' sign-ins are refused SAFETY_MODERATOR_REQUIRED (the same check). Null unless you are a member of the app's organization (or a super admin). */
|
|
923
925
|
hasSafetyModerator: Maybe<Scalars['Boolean']['output']>;
|
|
926
|
+
/** The app's own gameplay idle timeout in seconds, when it sets one: 0 turns the timeout off, otherwise 60 to 86400. null uses the platform default (effectiveIdleTimeoutSeconds). Set with updateApp (manage_apps). */
|
|
927
|
+
idleTimeoutSeconds: Maybe<Scalars['Int']['output']>;
|
|
924
928
|
/** True for first-party/trusted apps: portal entry skips the consent screen. The Overworld (app 1) is trusted. Studio admins cannot set this; it is platform-controlled. */
|
|
925
929
|
isTrusted: Scalars['Boolean']['output'];
|
|
926
930
|
/** Browser destination (origin/URL) a player is redirected to when they portal into this app from the Overworld. Used to route the player and to validate portal redirect URIs. */
|
|
@@ -5251,7 +5255,7 @@ export type Mutation = {
|
|
|
5251
5255
|
setAppManagedPlayerMods: Scalars['Boolean']['output'];
|
|
5252
5256
|
/** Set the documents the app's players accept before playing, replacing the list: documents not named stop being required, and a new version of one asks every player of the app again at their next mint or refresh (LEGAL_ACCEPTANCE_REQUIRED until they accept it). At most 10; ids may not reuse the platform's. Requires the 'manage_apps' permission on the app; super admins bypass. */
|
|
5253
5257
|
setAppRequiredDocuments: Array<LegalDocument>;
|
|
5254
|
-
/** 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.
|
|
5258
|
+
/** 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. Requires 'manage_billing' on the app's org. */
|
|
5255
5259
|
setAppReservedThroughput: SetAppReservedThroughputResult;
|
|
5256
5260
|
/** 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. */
|
|
5257
5261
|
setAppSpendCaps: AppRuntimeState;
|
|
@@ -5349,7 +5353,7 @@ export type Mutation = {
|
|
|
5349
5353
|
updateActor: Actor;
|
|
5350
5354
|
/** Replaces an actor’s `publicState` and/or `privateState` blobs (fields omitted from `input` are left unchanged). OWNER-EXCLUSIVE: only the actor’s owner may write (throws Unauthorized otherwise). Game-plane: requires an app token for the actor’s app (a session token or another app’s token is answered NotFound). `uuid` is the 32-character ASCII actor id; blobs are base64-encoded binary. */
|
|
5351
5355
|
updateActorState: Actor;
|
|
5352
|
-
/** Update mutable fields of an existing app (name, description, visibility, status, metadata, wildernessWritesOpen, claimOwnerKeys, replayLoggingEnabled, replayLoggingRecordsMedia, replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge); only fields present in the input are changed. Turning replayLoggingEnabled on is refused with INPUT_LOG_FUNDS_NEEDED unless the org's wallet can spend at least the projected cost of keeping one retention period of the app's recent traffic (extensions.requiredMicrousd and spendableMicrousd say how much), or the org is billing-exempt; recordings already kept go on billing after it is turned off, until they age out. Turning it off is refused with SAFETY_LOG_REQUIRED while the app admits players under 18. Requires the 'manage_apps' permission on the app (resolved via its org); super admins bypass. Use this to publish (status=LIVE), change visibility, or restore an archived app (status back to DRAFT/LIVE). Throws if the app id does not exist. */
|
|
5356
|
+
/** Update mutable fields of an existing app (name, description, visibility, status, metadata, wildernessWritesOpen, claimOwnerKeys, replayLoggingEnabled, replayLoggingRecordsMedia, replayLoggingRecordsVoice, replayLoggingRecordsVideo, minPlayerAge, idleTimeoutSeconds); only fields present in the input are changed. Turning replayLoggingEnabled on is refused with INPUT_LOG_FUNDS_NEEDED unless the org's wallet can spend at least the projected cost of keeping one retention period of the app's recent traffic (extensions.requiredMicrousd and spendableMicrousd say how much), or the org is billing-exempt; recordings already kept go on billing after it is turned off, until they age out. Turning it off is refused with SAFETY_LOG_REQUIRED while the app admits players under 18. Requires the 'manage_apps' permission on the app (resolved via its org); super admins bypass. Use this to publish (status=LIVE), change visibility, or restore an archived app (status back to DRAFT/LIVE). Throws if the app id does not exist. */
|
|
5353
5357
|
updateApp: App;
|
|
5354
5358
|
/** Updates an avatar’s mutable fields (currently `name`) and returns it. OWNER-EXCLUSIVE: only the avatar’s owner may call this (throws Unauthorized otherwise). Requires a valid game token. To change state blobs use `updateAvatarState`. */
|
|
5355
5359
|
updateAvatar: Avatar;
|
|
@@ -6438,7 +6442,7 @@ export type OrgManagedPlayerSettings = {
|
|
|
6438
6442
|
orgId: Scalars['BigInt']['output'];
|
|
6439
6443
|
/** How many managed players it holds now. */
|
|
6440
6444
|
playerCount: Scalars['BigInt']['output'];
|
|
6441
|
-
/** Whether the organization has accepted the current version. Until it has, its managed players are neither created nor signed in
|
|
6445
|
+
/** Whether the organization has accepted the current version. Until it has, its managed players are neither created nor signed in (ORG_LEGAL_ACCEPTANCE_REQUIRED); a player signed in under an earlier acceptance keeps playing until its session expires. */
|
|
6442
6446
|
termsAccepted: Scalars['Boolean']['output'];
|
|
6443
6447
|
/** When it accepted that version. */
|
|
6444
6448
|
termsAcceptedAt: Maybe<Scalars['DateTime']['output']>;
|
|
@@ -7245,7 +7249,7 @@ export type PublicRateCardEntryType = {
|
|
|
7245
7249
|
/** 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. */
|
|
7246
7250
|
unitQuantity: Scalars['BigInt']['output'];
|
|
7247
7251
|
};
|
|
7248
|
-
/** Result of publishing an app to the shared environment. All paths publish immediately. Usage above the free allowances is wallet-billed: each app has a per-dimension hourly allowance and, for client egress, 5 decimal GB per calendar month.
|
|
7252
|
+
/** Result of publishing an app to the shared environment. All paths publish immediately. Usage above the free allowances is wallet-billed: each app has a per-dimension hourly allowance and, for client egress, 5 decimal GB per calendar month. */
|
|
7249
7253
|
export type PublishAppResult = {
|
|
7250
7254
|
__typename?: 'PublishAppResult';
|
|
7251
7255
|
appId: Scalars['BigInt']['output'];
|
|
@@ -8443,13 +8447,13 @@ export declare enum RateScope {
|
|
|
8443
8447
|
/** Realtime lifecycle event delivered on the udpNotifications subscription. It is a control frame — it carries no appId, so it is never dropped by the per-app fan-out filter. Branch on `code`; use `retryable` to decide whether retrying can succeed. Most codes report that a session could not be opened or correctly scoped and are TERMINAL: the subscription completes immediately after emitting one, so the client must fix the cause and resubscribe. The exception is SERVER_DRAINING, which arrives mid-stream on a healthy subscription and does NOT end it — see that code below. */
|
|
8444
8448
|
export type RealtimeConnectionEvent = {
|
|
8445
8449
|
__typename?: 'RealtimeConnectionEvent';
|
|
8446
|
-
/** Machine-readable failure reason. Branch on this (not on `message`). Known values: AUTH_REQUIRED — no valid bearer game token was presented on the WS connection_init / request; authenticate via the Management API and resubscribe (not retryable as-is). APP_ID_REQUIRED — the subscription was opened without an appId scope; udpNotifications must be app-scoped (game tokens are app-agnostic and one socket is shared across apps), so pass the app you are playing and resubscribe (not retryable as-is). UDP_PROXY_CONNECTION_FAILED — the proxy could not open or keep a UDP socket to the selected game server (transient/infrastructure); back off and resubscribe (retryable). `message` carries the specific underlying detail for this case. SERVER_DRAINING — this API instance is being taken out of service; the stream KEEPS WORKING, but you should re-run discovery (gameClientBootstrap or mintAppToken) and move your HTTP calls and your socket together to the instance it returns before this one stops. Reaches every client of the instance, including one behind the load balancer: a draining instance stops naming itself in discovery and expires the affinity cookie the balancer set, so the move lands elsewhere. */
|
|
8450
|
+
/** Machine-readable failure reason. Branch on this (not on `message`). Known values: AUTH_REQUIRED — no valid bearer game token was presented on the WS connection_init / request; authenticate via the Management API and resubscribe (not retryable as-is). APP_ID_REQUIRED — the subscription was opened without an appId scope; udpNotifications must be app-scoped (game tokens are app-agnostic and one socket is shared across apps), so pass the app you are playing and resubscribe (not retryable as-is). UDP_PROXY_CONNECTION_FAILED — the proxy could not open or keep a UDP socket to the selected game server (transient/infrastructure); back off and resubscribe (retryable). `message` carries the specific underlying detail for this case. SERVER_DRAINING — this API instance is being taken out of service; the stream KEEPS WORKING, but you should re-run discovery (gameClientBootstrap or mintAppToken) and move your HTTP calls and your socket together to the instance it returns before this one stops. Reaches every client of the instance, including one behind the load balancer: a draining instance stops naming itself in discovery and expires the affinity cookie the balancer set, so the move lands elsewhere. IDLE_TIMEOUT — the replication server released the session because the player sent no gameplay input for the app's idle timeout (App.effectiveIdleTimeoutSeconds); the stream then completes. Not retryable as-is: do not resubscribe until the player acts again, then subscribe as for a new session. */
|
|
8447
8451
|
code: Scalars['String']['output'];
|
|
8448
8452
|
/** Human-readable explanation of the failure, suitable for logs and developer-facing surfaces. Do not parse or branch on this text — branch on `code` instead. */
|
|
8449
8453
|
message: Scalars['String']['output'];
|
|
8450
8454
|
/** Whether resubscribing without changing anything may succeed. true for transient failures (e.g. UDP_PROXY_CONNECTION_FAILED) — back off and retry. false for caller errors that must be fixed first (AUTH_REQUIRED needs a fresh/valid game token; APP_ID_REQUIRED needs an appId-scoped subscription). */
|
|
8451
8455
|
retryable: Scalars['Boolean']['output'];
|
|
8452
|
-
/** Lifecycle status: "failed" when the session could not be established or had to be torn down,
|
|
8456
|
+
/** Lifecycle status: "failed" when the session could not be established or had to be torn down, "draining" for the one advisory case (SERVER_DRAINING) where the stream stays open, or "inactive" when the replication server released an idle session (IDLE_TIMEOUT). */
|
|
8453
8457
|
status: Scalars['String']['output'];
|
|
8454
8458
|
};
|
|
8455
8459
|
/** A player’s birth date, country and (under 18) parental agreement. Kept as the year and month only. */
|
|
@@ -8952,7 +8956,7 @@ export type SetAppReservedThroughputInput = {
|
|
|
8952
8956
|
appId: Scalars['BigInt']['input'];
|
|
8953
8957
|
/** Organization that owns the app. */
|
|
8954
8958
|
orgId: Scalars['BigInt']['input'];
|
|
8955
|
-
/** Reserved sustained realtime capacity in bytes/s (decimal MB/s: 1_000_000 = 1 MB/s). 0 clears the reservation, which releases the provisioned floor and stops the monthly fee
|
|
8959
|
+
/** Reserved sustained realtime capacity in bytes/s (decimal MB/s: 1_000_000 = 1 MB/s). 0 clears the reservation, which releases the provisioned floor and stops the monthly fee. A reservation buys capacity, not volume: the fee is charged in addition to metered usage and includes no data allowance. */
|
|
8956
8960
|
reservedBytesPerSec: Scalars['BigInt']['input'];
|
|
8957
8961
|
};
|
|
8958
8962
|
/** Result of setAppReservedThroughput: updated app + reservation fee debited (0 when downgrading or unchanged). */
|
|
@@ -9650,6 +9654,8 @@ export type UpdateAppInput = {
|
|
|
9650
9654
|
claimOwnerKeys?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
9651
9655
|
/** New short description. Omit to leave unchanged. */
|
|
9652
9656
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
9657
|
+
/** Seconds a realtime session may go without gameplay input before the replication server releases it with reason idle: 60 to 86400, or 0 to turn the timeout off. null returns the app to the platform default (900 seconds). Takes effect within about 15 seconds, for sessions already open too. Omit to leave unchanged. */
|
|
9658
|
+
idleTimeoutSeconds?: InputMaybe<Scalars['Int']['input']>;
|
|
9653
9659
|
/** New JSON-encoded marketplace metadata string, replacing the existing value (see App.metadata). Omit to leave unchanged. */
|
|
9654
9660
|
metadata?: InputMaybe<Scalars['String']['input']>;
|
|
9655
9661
|
/** The youngest age the app admits, 13 to 18. It only ever raises the platform's minimum (18 until players 13 and over are admitted, then 13), never lowers it; younger players are refused AGE_REQUIREMENT_NOT_MET at their next mint or refresh. null returns the app to the platform's minimum. Omit to leave unchanged. */
|