@faiber/faiber-state-sdk 0.24.1 → 1.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/README.md +34 -14
- package/dist/.tsbuildinfo +1 -1
- package/dist/api.d.ts +24 -42
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +5 -1
- package/dist/api.js.map +1 -1
- package/dist/contracts.types.d.ts +116 -1
- package/dist/contracts.types.d.ts.map +1 -1
- package/dist/match.d.ts +13 -7
- package/dist/match.d.ts.map +1 -1
- package/dist/match.js +13 -4
- package/dist/match.js.map +1 -1
- package/dist/operations.d.ts +176 -168
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +136 -126
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +8 -11
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/realtime.d.ts +16 -4
- package/dist/realtime.d.ts.map +1 -1
- package/dist/realtime.js +83 -31
- package/dist/realtime.js.map +1 -1
- package/dist/types.d.ts +20 -10
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -3
- package/provenance.json +32 -0
package/dist/operations.d.ts
CHANGED
|
@@ -2,52 +2,52 @@ import { ServiceApi, type Identifier, type RequestOptions } from "@faiber/sdk-co
|
|
|
2
2
|
import type * as T from "./operations.types.js";
|
|
3
3
|
export declare class StateOperations extends ServiceApi {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Page configured game-tenant sessions newest first; defaults page=1/page_size=25, page >=1 and size clamped 10..100. Snake_case filters combine with AND; user_id means membership.
|
|
6
6
|
* Calls `GET /api/v1/game-operations/sessions` through the shared IDP-aware Faiber client.
|
|
7
7
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
8
8
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
9
|
-
* @returns The complete Axios response, including the typed
|
|
10
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
9
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
10
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
11
11
|
*/
|
|
12
|
-
routesGameOperationSessionsGet(params?: T.RoutesGameOperationSessionsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<
|
|
12
|
+
routesGameOperationSessionsGet(params?: T.RoutesGameOperationSessionsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameOperationSessionsResponse, unknown, {}, any>>;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Page configured game-tenant events by descending sequence; defaults page=1/page_size=50, size clamped 10..100. Optional kind and user_id combine; absent session returns404.
|
|
15
15
|
* Calls `GET /api/v1/game-operations/sessions/{session_id}/events` through the shared IDP-aware Faiber client.
|
|
16
16
|
* @param sessionId Backend path identifier `session_id`.
|
|
17
17
|
* @param params Typed query parameters; omitted members retain backend defaults.
|
|
18
18
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
19
|
-
* @returns The complete Axios response, including the typed
|
|
20
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
19
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
20
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
21
21
|
*/
|
|
22
|
-
routesGameOperationEventsGet(sessionId: Identifier, params?: T.RoutesGameOperationEventsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<
|
|
22
|
+
routesGameOperationEventsGet(sessionId: Identifier, params?: T.RoutesGameOperationEventsGetQuery, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameOperationEventsResponse, unknown, {}, any>>;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Read configured game-tenant counts grouped by game, status, payment and settlement status. Runtime tenant comes from service configuration, not x-organization-id.
|
|
25
25
|
* Calls `GET /api/v1/game-operations/summary` through the shared IDP-aware Faiber client.
|
|
26
26
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
27
|
-
* @returns The complete Axios response, including the typed
|
|
28
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
27
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
28
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
29
29
|
*/
|
|
30
|
-
routesGameOperationsSummaryGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<
|
|
30
|
+
routesGameOperationsSummaryGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameOperationsSummaryResponse, unknown, {}, any>>;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Read configured game-tenant economy entries, including disabled worlds, ordered by slug.
|
|
33
33
|
* Calls `GET /api/v1/game-operations/worlds` through the shared IDP-aware Faiber client.
|
|
34
34
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
35
|
-
* @returns The complete Axios response, including the typed
|
|
36
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
35
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
36
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
37
37
|
*/
|
|
38
|
-
routesGameOperationWorldsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<
|
|
38
|
+
routesGameOperationWorldsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameEconomiesResponse, unknown, {}, any>>;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Replace economy settings: entryCoins 0..1000000 (solo games must remain free), burnPercent 0..100 rounded to basis points; errors422.
|
|
41
41
|
* Calls `PATCH /api/v1/game-operations/worlds/{game_id}/economy` through the shared IDP-aware Faiber client.
|
|
42
42
|
* @param gameId Backend path identifier `game_id`.
|
|
43
43
|
* @param data Typed JSON request body.
|
|
44
44
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
45
|
-
* @returns The complete Axios response, including the typed
|
|
46
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
45
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
46
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
47
47
|
*/
|
|
48
|
-
routesUpdateGameOperationEconomyPatch(gameId: Identifier, data: T.RoutesUpdateGameOperationEconomyPatchInput, options?: RequestOptions<T.RoutesUpdateGameOperationEconomyPatchInput>): Promise<import("axios").AxiosResponse<
|
|
48
|
+
routesUpdateGameOperationEconomyPatch(gameId: Identifier, data: T.RoutesUpdateGameOperationEconomyPatchInput, options?: RequestOptions<T.RoutesUpdateGameOperationEconomyPatchInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameEconomyResponse, T.RoutesUpdateGameOperationEconomyPatchInput, {}, any>>;
|
|
49
49
|
/**
|
|
50
|
-
* Open room replication with
|
|
50
|
+
* Open room replication with room_id/player_id/ticket query parameters. Five-minute ticket is validated at upgrade; wrong/expired ticket401. Input identity is bound to the upgrade. Receives snapshot/patch/player/ack/pong/error frames.
|
|
51
51
|
* Calls `GET /api/v1/realtime` as a WebSocket upgrade.
|
|
52
52
|
* @param ticket Scoped ticket from the authenticated room join endpoint.
|
|
53
53
|
* @param options Injectable WebSocket constructor and AbortSignal; cancellation closes the socket.
|
|
@@ -56,352 +56,352 @@ export declare class StateOperations extends ServiceApi {
|
|
|
56
56
|
*/
|
|
57
57
|
routesRealtimeGet(ticket: import("./types.js").JoinTicket, options?: import("./contracts.types.js").StateRoomRealtimeOptions): Promise<import("./realtime.js").StateRealtimeClient>;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Delete an organization room; missing/foreign room404; success data:true.
|
|
60
60
|
* Calls `DELETE /api/v1/rooms/{room_id}` through the shared IDP-aware Faiber client.
|
|
61
61
|
* @param roomId Backend path identifier `room_id`.
|
|
62
62
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
63
|
-
* @returns The complete Axios response, including the typed
|
|
64
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
63
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
64
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
65
65
|
*/
|
|
66
|
-
routesDeleteRoomDelete(roomId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}>>;
|
|
66
|
+
routesDeleteRoomDelete(roomId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}, any>>;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Read a complete organization room snapshot including players and entities; missing/foreign room404.
|
|
69
69
|
* Calls `GET /api/v1/rooms/{room_id}` through the shared IDP-aware Faiber client.
|
|
70
70
|
* @param roomId Backend path identifier `room_id`.
|
|
71
71
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
72
|
-
* @returns The complete Axios response, including the typed
|
|
73
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
72
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
73
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
74
74
|
*/
|
|
75
|
-
routesGetRoomGet(roomId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room>, unknown, {}>>;
|
|
75
|
+
routesGetRoomGet(roomId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room>, unknown, {}, any>>;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Update room name, capacity or status; null fields preserve. Capacity clamps1..4096 and cannot shrink below current players (409); blank name400.
|
|
78
78
|
* Calls `PUT /api/v1/rooms/{room_id}` through the shared IDP-aware Faiber client.
|
|
79
79
|
* @param roomId Backend path identifier `room_id`.
|
|
80
80
|
* @param data Typed JSON request body.
|
|
81
81
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
82
|
-
* @returns The complete Axios response, including the typed
|
|
83
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
82
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
83
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
84
84
|
*/
|
|
85
|
-
routesUpdateRoomPut(roomId: Identifier, data: T.RoutesUpdateRoomPutInput, options?: RequestOptions<T.RoutesUpdateRoomPutInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room>, T.RoutesUpdateRoomPutInput, {}>>;
|
|
85
|
+
routesUpdateRoomPut(roomId: Identifier, data: T.RoutesUpdateRoomPutInput, options?: RequestOptions<T.RoutesUpdateRoomPutInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room>, T.RoutesUpdateRoomPutInput, {}, any>>;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Invoke WASM for a caller-owned player (management grants can act for others). Guest must export ()->i32 returning0; numeric writes and fuel limits apply. Returns authoritative patch; execution errors400.
|
|
88
88
|
* Calls `POST /api/v1/rooms/{room_id}/endpoints/{slug}` through the shared IDP-aware Faiber client.
|
|
89
89
|
* @param roomId Backend path identifier `room_id`.
|
|
90
90
|
* @param slug Backend path identifier `slug`.
|
|
91
91
|
* @param data Typed JSON request body.
|
|
92
92
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
93
|
-
* @returns The complete Axios response, including the typed
|
|
94
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute.
|
|
93
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
94
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:execute (state management/wildcard/admin aliases accepted).
|
|
95
95
|
*/
|
|
96
|
-
routesInvokeEndpointPost(roomId: Identifier, slug: Identifier, data: T.RoutesInvokeEndpointPostInput, options?: RequestOptions<T.RoutesInvokeEndpointPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").StatePatch>, T.RoutesInvokeEndpointPostInput, {}>>;
|
|
96
|
+
routesInvokeEndpointPost(roomId: Identifier, slug: Identifier, data: T.RoutesInvokeEndpointPostInput, options?: RequestOptions<T.RoutesInvokeEndpointPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").StatePatch>, T.RoutesInvokeEndpointPostInput, {}, any>>;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Create a player/entity and five-minute scoped room ticket. user_id must match caller unless state management grant; full/foreign/missing room400.
|
|
99
99
|
* Calls `POST /api/v1/rooms/{room_id}/join` through the shared IDP-aware Faiber client.
|
|
100
100
|
* @param roomId Backend path identifier `room_id`.
|
|
101
101
|
* @param data Typed JSON request body.
|
|
102
102
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
103
|
-
* @returns The complete Axios response, including the typed
|
|
104
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute.
|
|
103
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
104
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:execute (state management/wildcard/admin aliases accepted).
|
|
105
105
|
*/
|
|
106
|
-
routesJoinRoomPost(roomId: Identifier, data: T.RoutesJoinRoomPostInput, options?: RequestOptions<T.RoutesJoinRoomPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").JoinTicket>, T.RoutesJoinRoomPostInput, {}>>;
|
|
106
|
+
routesJoinRoomPost(roomId: Identifier, data: T.RoutesJoinRoomPostInput, options?: RequestOptions<T.RoutesJoinRoomPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").JoinTicket>, T.RoutesJoinRoomPostInput, {}, any>>;
|
|
107
107
|
/**
|
|
108
|
-
*
|
|
108
|
+
* List organization worlds with managed game worlds, sorted by name. managed worlds cannot be updated/deleted.
|
|
109
109
|
* Calls `GET /api/v1/worlds` through the shared IDP-aware Faiber client.
|
|
110
110
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
111
|
-
* @returns The complete Axios response, including the typed
|
|
112
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
111
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
112
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
113
113
|
*/
|
|
114
|
-
routesListWorldsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World[]>, unknown, {}>>;
|
|
114
|
+
routesListWorldsGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World[]>, unknown, {}, any>>;
|
|
115
115
|
/**
|
|
116
|
-
*
|
|
116
|
+
* Create an in-memory world; nonempty name and slug required. Missing replication uses60/20/128/120; physics defaults disabled.
|
|
117
117
|
* Calls `POST /api/v1/worlds` through the shared IDP-aware Faiber client.
|
|
118
118
|
* @param data Typed JSON request body.
|
|
119
119
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
120
|
-
* @returns The complete Axios response, including the typed
|
|
121
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
120
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
121
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
122
122
|
*/
|
|
123
|
-
routesCreateWorldPost(data: T.RoutesCreateWorldPostInput, options?: RequestOptions<T.RoutesCreateWorldPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World>, T.RoutesCreateWorldPostInput, {}>>;
|
|
123
|
+
routesCreateWorldPost(data: T.RoutesCreateWorldPostInput, options?: RequestOptions<T.RoutesCreateWorldPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World>, T.RoutesCreateWorldPostInput, {}, any>>;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* Delete an organization world and its rooms, endpoints and WASM modules; managed world409; missing404; success data:true.
|
|
126
126
|
* Calls `DELETE /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
127
127
|
* @param worldId Backend path identifier `world_id`.
|
|
128
128
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
129
|
-
* @returns The complete Axios response, including the typed
|
|
130
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
129
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
130
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
131
131
|
*/
|
|
132
|
-
routesDeleteWorldDelete(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}>>;
|
|
132
|
+
routesDeleteWorldDelete(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}, any>>;
|
|
133
133
|
/**
|
|
134
|
-
*
|
|
134
|
+
* Read an organization world or configured managed game projection; absent world404.
|
|
135
135
|
* Calls `GET /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
136
136
|
* @param worldId Backend path identifier `world_id`.
|
|
137
137
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
138
|
-
* @returns The complete Axios response, including the typed
|
|
139
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
138
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
139
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
140
140
|
*/
|
|
141
|
-
routesGetWorldGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World>, unknown, {}>>;
|
|
141
|
+
routesGetWorldGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World>, unknown, {}, any>>;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Update an organization world; null/missing fields preserve values. Supplied nested configs replace existing configs with serde defaults. Managed game worlds409; blank name400.
|
|
144
144
|
* Calls `PUT /api/v1/worlds/{world_id}` through the shared IDP-aware Faiber client.
|
|
145
145
|
* @param worldId Backend path identifier `world_id`.
|
|
146
146
|
* @param data Typed JSON request body.
|
|
147
147
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
148
|
-
* @returns The complete Axios response, including the typed
|
|
149
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
148
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
149
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
150
150
|
*/
|
|
151
|
-
routesUpdateWorldPut(worldId: Identifier, data: T.RoutesUpdateWorldPutInput, options?: RequestOptions<T.RoutesUpdateWorldPutInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World>, T.RoutesUpdateWorldPutInput, {}>>;
|
|
151
|
+
routesUpdateWorldPut(worldId: Identifier, data: T.RoutesUpdateWorldPutInput, options?: RequestOptions<T.RoutesUpdateWorldPutInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").World>, T.RoutesUpdateWorldPutInput, {}, any>>;
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* List world export bindings; missing/foreign world404.
|
|
154
154
|
* Calls `GET /api/v1/worlds/{world_id}/endpoints` through the shared IDP-aware Faiber client.
|
|
155
155
|
* @param worldId Backend path identifier `world_id`.
|
|
156
156
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
157
|
-
* @returns The complete Axios response, including the typed
|
|
158
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
157
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
158
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
159
159
|
*/
|
|
160
|
-
routesListEndpointsGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmEndpoint[]>, unknown, {}>>;
|
|
160
|
+
routesListEndpointsGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmEndpoint[]>, unknown, {}, any>>;
|
|
161
161
|
/**
|
|
162
|
-
*
|
|
162
|
+
* Bind a world WASM module export to a component and slug. Foreign module400; module export signature checked on invocation.
|
|
163
163
|
* Calls `POST /api/v1/worlds/{world_id}/endpoints` through the shared IDP-aware Faiber client.
|
|
164
164
|
* @param worldId Backend path identifier `world_id`.
|
|
165
165
|
* @param data Typed JSON request body.
|
|
166
166
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
167
|
-
* @returns The complete Axios response, including the typed
|
|
168
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
167
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
168
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
169
169
|
*/
|
|
170
|
-
routesCreateEndpointPost(worldId: Identifier, data: T.RoutesCreateEndpointPostInput, options?: RequestOptions<T.RoutesCreateEndpointPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmEndpoint>, T.RoutesCreateEndpointPostInput, {}>>;
|
|
170
|
+
routesCreateEndpointPost(worldId: Identifier, data: T.RoutesCreateEndpointPostInput, options?: RequestOptions<T.RoutesCreateEndpointPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmEndpoint>, T.RoutesCreateEndpointPostInput, {}, any>>;
|
|
171
171
|
/**
|
|
172
|
-
*
|
|
172
|
+
* Delete an organization world export binding; missing world/binding404; success data:true.
|
|
173
173
|
* Calls `DELETE /api/v1/worlds/{world_id}/endpoints/{endpoint_id}` through the shared IDP-aware Faiber client.
|
|
174
174
|
* @param worldId Backend path identifier `world_id`.
|
|
175
175
|
* @param endpointId Backend path identifier `endpoint_id`.
|
|
176
176
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
177
|
-
* @returns The complete Axios response, including the typed
|
|
178
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
177
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
178
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
179
179
|
*/
|
|
180
|
-
routesDeleteEndpointDelete(worldId: Identifier, endpointId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}>>;
|
|
180
|
+
routesDeleteEndpointDelete(worldId: Identifier, endpointId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}, any>>;
|
|
181
181
|
/**
|
|
182
|
-
*
|
|
182
|
+
* List organization rooms for a world. Unknown/foreign world returns an empty list.
|
|
183
183
|
* Calls `GET /api/v1/worlds/{world_id}/rooms` through the shared IDP-aware Faiber client.
|
|
184
184
|
* @param worldId Backend path identifier `world_id`.
|
|
185
185
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
186
|
-
* @returns The complete Axios response, including the typed
|
|
187
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
186
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
187
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
188
188
|
*/
|
|
189
|
-
routesListRoomsGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room[]>, unknown, {}>>;
|
|
189
|
+
routesListRoomsGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room[]>, unknown, {}, any>>;
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* Create a room in an in-memory organization world. capacity defaults32 and clamps1..4096; absent/foreign world400.
|
|
192
192
|
* Calls `POST /api/v1/worlds/{world_id}/rooms` through the shared IDP-aware Faiber client.
|
|
193
193
|
* @param worldId Backend path identifier `world_id`.
|
|
194
194
|
* @param data Typed JSON request body.
|
|
195
195
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
196
|
-
* @returns The complete Axios response, including the typed
|
|
197
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
196
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
197
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
198
198
|
*/
|
|
199
|
-
routesCreateRoomPost(worldId: Identifier, data: T.RoutesCreateRoomPostInput, options?: RequestOptions<T.RoutesCreateRoomPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room>, T.RoutesCreateRoomPostInput, {}>>;
|
|
199
|
+
routesCreateRoomPost(worldId: Identifier, data: T.RoutesCreateRoomPostInput, options?: RequestOptions<T.RoutesCreateRoomPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").Room>, T.RoutesCreateRoomPostInput, {}, any>>;
|
|
200
200
|
/**
|
|
201
|
-
*
|
|
201
|
+
* List organization world WASM metadata; missing/foreign world404.
|
|
202
202
|
* Calls `GET /api/v1/worlds/{world_id}/wasm` through the shared IDP-aware Faiber client.
|
|
203
203
|
* @param worldId Backend path identifier `world_id`.
|
|
204
204
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
205
|
-
* @returns The complete Axios response, including the typed
|
|
206
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:read.
|
|
205
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
206
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:read (state management/wildcard/admin aliases accepted).
|
|
207
207
|
*/
|
|
208
|
-
routesListWasmGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmModuleInfo[]>, unknown, {}>>;
|
|
208
|
+
routesListWasmGet(worldId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmModuleInfo[]>, unknown, {}, any>>;
|
|
209
209
|
/**
|
|
210
|
-
*
|
|
210
|
+
* Upload JSON base64 WASM, validate bytes and return SHA256 metadata. Invalid base64/WASM400, missing/foreign world404.
|
|
211
211
|
* Calls `POST /api/v1/worlds/{world_id}/wasm` through the shared IDP-aware Faiber client.
|
|
212
212
|
* @param worldId Backend path identifier `world_id`.
|
|
213
213
|
* @param data Typed JSON request body.
|
|
214
214
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
215
|
-
* @returns The complete Axios response, including the typed
|
|
216
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
215
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
216
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
217
217
|
*/
|
|
218
|
-
routesUploadWasmPost(worldId: Identifier, data: T.RoutesUploadWasmPostInput, options?: RequestOptions<T.RoutesUploadWasmPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmModuleInfo>, T.RoutesUploadWasmPostInput, {}>>;
|
|
218
|
+
routesUploadWasmPost(worldId: Identifier, data: T.RoutesUploadWasmPostInput, options?: RequestOptions<T.RoutesUploadWasmPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./types.js").WasmModuleInfo>, T.RoutesUploadWasmPostInput, {}, any>>;
|
|
219
219
|
/**
|
|
220
|
-
*
|
|
220
|
+
* Delete a world module; attached endpoints must be deleted first(409). Missing world/module404; success data:true.
|
|
221
221
|
* Calls `DELETE /api/v1/worlds/{world_id}/wasm/{module_id}` through the shared IDP-aware Faiber client.
|
|
222
222
|
* @param worldId Backend path identifier `world_id`.
|
|
223
223
|
* @param moduleId Backend path identifier `module_id`.
|
|
224
224
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
225
|
-
* @returns The complete Axios response, including the typed
|
|
226
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:write.
|
|
225
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
226
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user, non-nil x-organization-id UUID and state:write (state management/wildcard/admin aliases accepted).
|
|
227
227
|
*/
|
|
228
|
-
routesDeleteWasmDelete(worldId: Identifier, moduleId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}>>;
|
|
228
|
+
routesDeleteWasmDelete(worldId: Identifier, moduleId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<boolean>, unknown, {}, any>>;
|
|
229
229
|
/**
|
|
230
|
-
*
|
|
230
|
+
* List the caller latest50 member session projections ordered newest first.
|
|
231
231
|
* Calls `GET /api/v2/game-history` through the shared IDP-aware Faiber client.
|
|
232
232
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
233
|
-
* @returns The complete Axios response, including the typed
|
|
234
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
233
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
234
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
235
235
|
*/
|
|
236
|
-
gamesRoutesHistoryGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView[]>, unknown, {}>>;
|
|
236
|
+
gamesRoutesHistoryGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView[]>, unknown, {}, any>>;
|
|
237
237
|
/**
|
|
238
|
-
*
|
|
238
|
+
* Read an invite lobby visible to creator or session member; absent/inaccessible lobby422.
|
|
239
239
|
* Calls `GET /api/v2/game-lobbies/{code}` through the shared IDP-aware Faiber client.
|
|
240
240
|
* @param code Backend path identifier `code`.
|
|
241
241
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
242
|
-
* @returns The complete Axios response, including the typed
|
|
243
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
242
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
243
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
244
244
|
*/
|
|
245
|
-
gamesRoutesLobbyGet(code: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyView>, unknown, {}>>;
|
|
245
|
+
gamesRoutesLobbyGet(code: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyView>, unknown, {}, any>>;
|
|
246
246
|
/**
|
|
247
|
-
*
|
|
247
|
+
* Join waiting unexpired invite lobby; code is trimmed and uppercased; invalid/full/expired lobby422.
|
|
248
248
|
* Calls `POST /api/v2/game-lobbies/{code}/join` through the shared IDP-aware Faiber client.
|
|
249
249
|
* @param code Backend path identifier `code`.
|
|
250
250
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
251
|
-
* @returns The complete Axios response, including the typed
|
|
252
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
251
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
252
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
253
253
|
*/
|
|
254
|
-
gamesRoutesJoinLobbyPost(code: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyJoined>, unknown, {}>>;
|
|
254
|
+
gamesRoutesJoinLobbyPost(code: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyJoined>, unknown, {}, any>>;
|
|
255
255
|
/**
|
|
256
|
-
*
|
|
256
|
+
* Read caller-owned queue ticket; absent/foreign ticket404. sessionId remains null while queued.
|
|
257
257
|
* Calls `GET /api/v2/game-matchmaking/{ticket_id}` through the shared IDP-aware Faiber client.
|
|
258
258
|
* @param ticketId Backend path identifier `ticket_id`.
|
|
259
259
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
260
|
-
* @returns The complete Axios response, including the typed
|
|
261
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
260
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
261
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
262
262
|
*/
|
|
263
|
-
gamesRoutesTicketGet(ticketId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameQueueTicket>, unknown, {}>>;
|
|
263
|
+
gamesRoutesTicketGet(ticketId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameQueueTicket>, unknown, {}, any>>;
|
|
264
264
|
/**
|
|
265
|
-
*
|
|
265
|
+
* Read caller finished-session aggregates by game/difficulty; sufficientData requires at least3 samples.
|
|
266
266
|
* Calls `GET /api/v2/game-progress` through the shared IDP-aware Faiber client.
|
|
267
267
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
268
|
-
* @returns The complete Axios response, including the typed
|
|
269
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
268
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
269
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
270
270
|
*/
|
|
271
|
-
gamesRoutesProgressGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameProgress[]>, unknown, {}>>;
|
|
271
|
+
gamesRoutesProgressGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameProgress[]>, unknown, {}, any>>;
|
|
272
272
|
/**
|
|
273
|
-
*
|
|
273
|
+
* Read caller-member session projection; absent/foreign404. Board/challenge/lastEvent JSON depends on registered game and ruleset.
|
|
274
274
|
* Calls `GET /api/v2/game-sessions/{session_id}` through the shared IDP-aware Faiber client.
|
|
275
275
|
* @param sessionId Backend path identifier `session_id`.
|
|
276
276
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
277
|
-
* @returns The complete Axios response, including the typed
|
|
278
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
277
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
278
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
279
279
|
*/
|
|
280
|
-
gamesRoutesViewGet(sessionId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, unknown, {}>>;
|
|
280
|
+
gamesRoutesViewGet(sessionId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, unknown, {}, any>>;
|
|
281
281
|
/**
|
|
282
|
-
*
|
|
282
|
+
* Apply stable commandId with expectedVersion; duplicate IDs return current projection, stale versions409. Game/ruleset determines answer/action JSON. Never automatically rebase conflicts.
|
|
283
283
|
* Calls `POST /api/v2/game-sessions/{session_id}/commands` through the shared IDP-aware Faiber client.
|
|
284
284
|
* @param sessionId Backend path identifier `session_id`.
|
|
285
285
|
* @param data Typed JSON request body.
|
|
286
286
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
287
|
-
* @returns The complete Axios response, including the typed
|
|
288
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
287
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
288
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
289
289
|
*/
|
|
290
|
-
gamesRoutesCommandPost(sessionId: Identifier, data: T.GamesRoutesCommandPostInput, options?: RequestOptions<T.GamesRoutesCommandPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, import("./contracts.types.js").GameCommandInput, {}>>;
|
|
290
|
+
gamesRoutesCommandPost(sessionId: Identifier, data: T.GamesRoutesCommandPostInput, options?: RequestOptions<T.GamesRoutesCommandPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, import("./contracts.types.js").GameCommandInput, {}, any>>;
|
|
291
291
|
/**
|
|
292
|
-
*
|
|
292
|
+
* Mark member ready; paid sessions enforce readiness timeout and upstream escrow funding. Returns current caller projection; domain errors422.
|
|
293
293
|
* Calls `POST /api/v2/game-sessions/{session_id}/ready` through the shared IDP-aware Faiber client.
|
|
294
294
|
* @param sessionId Backend path identifier `session_id`.
|
|
295
295
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
296
|
-
* @returns The complete Axios response, including the typed
|
|
297
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
296
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
297
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
298
298
|
*/
|
|
299
|
-
gamesRoutesReadyPost(sessionId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, unknown, {}>>;
|
|
299
|
+
gamesRoutesReadyPost(sessionId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, unknown, {}, any>>;
|
|
300
300
|
/**
|
|
301
|
-
*
|
|
301
|
+
* Read configured-tenant caller world progression ordered by game.
|
|
302
302
|
* Calls `GET /api/v2/game-world-progress` through the shared IDP-aware Faiber client.
|
|
303
303
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
304
|
-
* @returns The complete Axios response, including the typed
|
|
305
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
304
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
305
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
306
306
|
*/
|
|
307
|
-
gamesRoutesWorldProgressGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameWorldProgress[]>, unknown, {}>>;
|
|
307
|
+
gamesRoutesWorldProgressGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameWorldProgress[]>, unknown, {}, any>>;
|
|
308
308
|
/**
|
|
309
|
-
*
|
|
309
|
+
* Read enabled configured-tenant game catalog with current entryCoins and burnPercent. No authentication permission required.
|
|
310
310
|
* Calls `GET /api/v2/games` through the shared IDP-aware Faiber client.
|
|
311
311
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
312
|
-
* @returns The complete Axios response, including the typed
|
|
312
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
313
313
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: public catalog.
|
|
314
314
|
*/
|
|
315
|
-
gamesRoutesCatalogGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameCatalogEntry[]>, unknown, {}>>;
|
|
315
|
+
gamesRoutesCatalogGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameCatalogEntry[]>, unknown, {}, any>>;
|
|
316
316
|
/**
|
|
317
|
-
*
|
|
317
|
+
* Read enabled configured-tenant game definition and economy; unknown/disabled game404.
|
|
318
318
|
* Calls `GET /api/v2/games/{game_id}` through the shared IDP-aware Faiber client.
|
|
319
319
|
* @param gameId Backend path identifier `game_id`.
|
|
320
320
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
321
|
-
* @returns The complete Axios response, including the typed
|
|
321
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
322
322
|
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: public catalog.
|
|
323
323
|
*/
|
|
324
|
-
gamesRoutesGameGet(gameId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameCatalogEntry>, unknown, {}>>;
|
|
324
|
+
gamesRoutesGameGet(gameId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameCatalogEntry>, unknown, {}, any>>;
|
|
325
325
|
/**
|
|
326
|
-
*
|
|
326
|
+
* Create invite lobby for authenticated caller; defaults difficulty11-14/paidfalse, expiry600seconds.
|
|
327
327
|
* Calls `POST /api/v2/games/{game_id}/lobbies` through the shared IDP-aware Faiber client.
|
|
328
328
|
* @param gameId Backend path identifier `game_id`.
|
|
329
329
|
* @param data Typed JSON request body.
|
|
330
330
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
331
|
-
* @returns The complete Axios response, including the typed
|
|
332
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
331
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
332
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
333
333
|
*/
|
|
334
|
-
gamesRoutesCreateLobbyPost(gameId: Identifier, data: T.GamesRoutesCreateLobbyPostInput, options?: RequestOptions<T.GamesRoutesCreateLobbyPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyCreated>, import("./contracts.types.js").GameQueueInput, {}>>;
|
|
334
|
+
gamesRoutesCreateLobbyPost(gameId: Identifier, data: T.GamesRoutesCreateLobbyPostInput, options?: RequestOptions<T.GamesRoutesCreateLobbyPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyCreated>, import("./contracts.types.js").GameQueueInput, {}, any>>;
|
|
335
335
|
/**
|
|
336
|
-
*
|
|
336
|
+
* Queue authenticated caller by game/difficulty/paid; default difficulty11-14, paidfalse; returns queued/matched receipt with90-second expiry.
|
|
337
337
|
* Calls `POST /api/v2/games/{game_id}/matchmaking` through the shared IDP-aware Faiber client.
|
|
338
338
|
* @param gameId Backend path identifier `game_id`.
|
|
339
339
|
* @param data Typed JSON request body.
|
|
340
340
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
341
|
-
* @returns The complete Axios response, including the typed
|
|
342
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
341
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
342
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
343
343
|
*/
|
|
344
|
-
gamesRoutesEnqueuePost(gameId: Identifier, data: T.GamesRoutesEnqueuePostInput, options?: RequestOptions<T.GamesRoutesEnqueuePostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameQueueReceipt>, import("./contracts.types.js").GameQueueInput, {}>>;
|
|
344
|
+
gamesRoutesEnqueuePost(gameId: Identifier, data: T.GamesRoutesEnqueuePostInput, options?: RequestOptions<T.GamesRoutesEnqueuePostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameQueueReceipt>, import("./contracts.types.js").GameQueueInput, {}, any>>;
|
|
345
345
|
/**
|
|
346
|
-
*
|
|
346
|
+
* Queue the authenticated caller for kheradgah only; mode is ranked_duel/ranked_alliance/open_court. Other game404, domain conflict409.
|
|
347
347
|
* Calls `POST /api/v2/games/{game_id}/matchmaking/tickets` through the shared IDP-aware Faiber client.
|
|
348
348
|
* @param gameId Backend path identifier `game_id`.
|
|
349
349
|
* @param data Typed JSON request body.
|
|
350
350
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
351
|
-
* @returns The complete Axios response, including the typed
|
|
352
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
351
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
352
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
353
353
|
*/
|
|
354
|
-
kheradgahRoutesEnqueuePost(gameId: Identifier, data: T.KheradgahRoutesEnqueuePostInput, options?: RequestOptions<T.KheradgahRoutesEnqueuePostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>, import("./contracts.types.js").KheradgahQueueInput, {}>>;
|
|
354
|
+
kheradgahRoutesEnqueuePost(gameId: Identifier, data: T.KheradgahRoutesEnqueuePostInput, options?: RequestOptions<T.KheradgahRoutesEnqueuePostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>, import("./contracts.types.js").KheradgahQueueInput, {}, any>>;
|
|
355
355
|
/**
|
|
356
|
-
*
|
|
356
|
+
* Cancel caller-owned queued kheradgah ticket; matched tickets409, other game404.
|
|
357
357
|
* Calls `DELETE /api/v2/games/{game_id}/matchmaking/tickets/{ticket_id}` through the shared IDP-aware Faiber client.
|
|
358
358
|
* @param gameId Backend path identifier `game_id`.
|
|
359
359
|
* @param ticketId Backend path identifier `ticket_id`.
|
|
360
360
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
361
|
-
* @returns The complete Axios response, including the typed
|
|
362
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
361
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
362
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
363
363
|
*/
|
|
364
|
-
kheradgahRoutesCancelDelete(gameId: Identifier, ticketId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>, unknown, {}>>;
|
|
364
|
+
kheradgahRoutesCancelDelete(gameId: Identifier, ticketId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>, unknown, {}, any>>;
|
|
365
365
|
/**
|
|
366
|
-
*
|
|
366
|
+
* Read caller-owned kheradgah matchmaking ticket; unknown game/ticket404.
|
|
367
367
|
* Calls `GET /api/v2/games/{game_id}/matchmaking/tickets/{ticket_id}` through the shared IDP-aware Faiber client.
|
|
368
368
|
* @param gameId Backend path identifier `game_id`.
|
|
369
369
|
* @param ticketId Backend path identifier `ticket_id`.
|
|
370
370
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
371
|
-
* @returns The complete Axios response, including the typed
|
|
372
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
371
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
372
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
373
373
|
*/
|
|
374
|
-
kheradgahRoutesTicketGet(gameId: Identifier, ticketId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>, unknown, {}>>;
|
|
374
|
+
kheradgahRoutesTicketGet(gameId: Identifier, ticketId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>, unknown, {}, any>>;
|
|
375
375
|
/**
|
|
376
|
-
*
|
|
376
|
+
* Create a server-authoritative session. SDK supplies required gameId from the path; the handler also overrides it. Solo sessions only; paid sessions must use matchmaking. difficulty defaults11-14 and accepts8-10/11-14/15-18; paid defaultsfalse. Invalid game404, domain validation422.
|
|
377
377
|
* Calls `POST /api/v2/games/{game_id}/sessions` through the shared IDP-aware Faiber client.
|
|
378
378
|
* @param gameId Backend path identifier `game_id`.
|
|
379
379
|
* @param data Typed JSON request body.
|
|
380
380
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
381
|
-
* @returns The complete Axios response, including the typed
|
|
382
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
381
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
382
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
383
383
|
*/
|
|
384
|
-
gamesRoutesCreateSessionPost(gameId: Identifier, data: T.GamesRoutesCreateSessionPostInput, options?: RequestOptions<T.GamesRoutesCreateSessionPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, import("./contracts.types.js").GameCreateInput, {}>>;
|
|
384
|
+
gamesRoutesCreateSessionPost(gameId: Identifier, data: T.GamesRoutesCreateSessionPostInput, options?: RequestOptions<T.GamesRoutesCreateSessionPostInput>): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>, import("./contracts.types.js").GameCreateInput, {}, any>>;
|
|
385
385
|
/**
|
|
386
|
-
*
|
|
386
|
+
* Issue a30-second one-use kheradgah connection ticket to a match member; missing/foreign match404. Send ticket in hello frame within5seconds.
|
|
387
387
|
* Calls `POST /api/v2/matches/{match_id}/connections` through the shared IDP-aware Faiber client.
|
|
388
388
|
* @param matchId Backend path identifier `match_id`.
|
|
389
389
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
390
|
-
* @returns The complete Axios response, including the typed
|
|
391
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
390
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
391
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
392
392
|
*/
|
|
393
|
-
kheradgahRoutesConnectionPost(matchId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahConnectionTicket>, unknown, {}>>;
|
|
393
|
+
kheradgahRoutesConnectionPost(matchId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahConnectionTicket>, unknown, {}, any>>;
|
|
394
394
|
/**
|
|
395
|
-
*
|
|
395
|
+
* Read member-specific kheradgah projection: only own hand and answer statistics are disclosed; finished question is null; missing/foreign match404.
|
|
396
396
|
* Calls `GET /api/v2/matches/{match_id}/view` through the shared IDP-aware Faiber client.
|
|
397
397
|
* @param matchId Backend path identifier `match_id`.
|
|
398
398
|
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
399
|
-
* @returns The complete Axios response, including the typed
|
|
400
|
-
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute
|
|
399
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
400
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: authenticated IDP user with state:execute (management/admin/wildcard aliases accepted); owner/member checks apply where relevant.
|
|
401
401
|
*/
|
|
402
|
-
kheradgahRoutesViewGet(matchId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahView>, unknown, {}>>;
|
|
402
|
+
kheradgahRoutesViewGet(matchId: Identifier, options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahView>, unknown, {}, any>>;
|
|
403
403
|
/**
|
|
404
|
-
* Open
|
|
404
|
+
* Open allowed-Origin match WebSocket. Send one-use ticket in hello within5seconds; invalid hello/ticket returns error frame. Commands return accepted result or rejected code then fresh snapshot; conflicts use frames, not HTTP409.
|
|
405
405
|
* Calls `GET /api/v2/realtime` as a WebSocket upgrade.
|
|
406
406
|
* @param ticket One-use connection ticket from the authenticated match connection endpoint.
|
|
407
407
|
* @param options Injectable WebSocket constructor and AbortSignal; cancellation closes the socket.
|
|
@@ -409,5 +409,13 @@ export declare class StateOperations extends ServiceApi {
|
|
|
409
409
|
* @throws Error when WebSocket is unavailable, the ticket origin differs, or the connection fails; required permission: one-use, 30-second connection ticket issued by the authenticated match connection operation; Origin validation.
|
|
410
410
|
*/
|
|
411
411
|
connectMatchRealtime(ticket: import("./contracts.types.js").KheradgahConnectionTicket, options?: import("./contracts.types.js").KheradgahRealtimeOptions): Promise<WebSocket>;
|
|
412
|
+
/**
|
|
413
|
+
* Read the static process advertisement with websocket and kheradgah.v1. This does not attest database, game, gateway, persistence or WebSocket readiness.
|
|
414
|
+
* Calls `GET /health` through the shared IDP-aware Faiber client.
|
|
415
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
416
|
+
* @returns The complete Axios response, including the typed handler payload, status, and headers.
|
|
417
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: public static process advertisement; deployment gateway policy remains separate.
|
|
418
|
+
*/
|
|
419
|
+
mainProcessHealthGet(options?: RequestOptions): Promise<import("axios").AxiosResponse<import("./contracts.types.js").StateProcessHealthResponse, unknown, {}, any>>;
|
|
412
420
|
}
|
|
413
421
|
//# sourceMappingURL=operations.d.ts.map
|