@faiber/faiber-state-sdk 0.21.0 → 0.22.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 +12 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/api.d.ts +2 -0
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +2 -0
- package/dist/api.js.map +1 -1
- package/dist/contracts.types.d.ts +225 -0
- package/dist/contracts.types.d.ts.map +1 -0
- package/dist/contracts.types.js +2 -0
- package/dist/contracts.types.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/match-realtime.d.ts +10 -0
- package/dist/match-realtime.d.ts.map +1 -0
- package/dist/match-realtime.js +61 -0
- package/dist/match-realtime.js.map +1 -0
- package/dist/operations.d.ts +208 -25
- package/dist/operations.d.ts.map +1 -1
- package/dist/operations.js +232 -8
- package/dist/operations.js.map +1 -1
- package/dist/operations.types.d.ts +76 -45
- package/dist/operations.types.d.ts.map +1 -1
- package/dist/types.d.ts +10 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/operations.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ServiceApi, urlEncoded } from "@faiber/sdk-core";
|
|
2
|
+
import { openMatchRealtime, openRoomRealtime } from "./match-realtime.js";
|
|
2
3
|
export class StateOperations extends ServiceApi {
|
|
3
4
|
/**
|
|
4
5
|
* Performs the game operation sessions operation for the routes capability.
|
|
@@ -56,15 +57,15 @@ export class StateOperations extends ServiceApi {
|
|
|
56
57
|
return this.client.request({ ...options, method: "PATCH", url: `/api/v1/game-operations/worlds/${encodeURIComponent(gameId)}/economy`, data: data });
|
|
57
58
|
}
|
|
58
59
|
/**
|
|
59
|
-
*
|
|
60
|
-
* Calls `GET /api/v1/realtime`
|
|
61
|
-
* @param
|
|
62
|
-
* @param options
|
|
63
|
-
* @returns The
|
|
64
|
-
* @throws
|
|
60
|
+
* Open room replication with the ticket returned by join. This operation uses a WebSocket upgrade, not an Axios HTTP request.
|
|
61
|
+
* Calls `GET /api/v1/realtime` as a WebSocket upgrade.
|
|
62
|
+
* @param ticket Scoped ticket from the authenticated room join endpoint.
|
|
63
|
+
* @param options Injectable WebSocket constructor and AbortSignal; cancellation closes the socket.
|
|
64
|
+
* @returns The connected StateRealtimeClient, with typed ServerEvent subscriptions.
|
|
65
|
+
* @throws Error when WebSocket is unavailable, the ticket origin differs, or the connection fails; required permission: short-lived room ticket issued by the authenticated join endpoint.
|
|
65
66
|
*/
|
|
66
|
-
routesRealtimeGet(
|
|
67
|
-
return this.client
|
|
67
|
+
routesRealtimeGet(ticket, options) {
|
|
68
|
+
return openRoomRealtime(this.client, ticket, options);
|
|
68
69
|
}
|
|
69
70
|
/**
|
|
70
71
|
* Performs the delete room operation for the routes capability.
|
|
@@ -273,5 +274,228 @@ export class StateOperations extends ServiceApi {
|
|
|
273
274
|
routesDeleteWasmDelete(worldId, moduleId, options) {
|
|
274
275
|
return this.client.request({ ...options, method: "DELETE", url: `/api/v1/worlds/${encodeURIComponent(worldId)}/wasm/${encodeURIComponent(moduleId)}` });
|
|
275
276
|
}
|
|
277
|
+
/**
|
|
278
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
279
|
+
* Calls `GET /api/v2/game-history` through the shared IDP-aware Faiber client.
|
|
280
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
281
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
282
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
283
|
+
*/
|
|
284
|
+
gamesRoutesHistoryGet(options) {
|
|
285
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/game-history` });
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
289
|
+
* Calls `GET /api/v2/game-lobbies/{code}` through the shared IDP-aware Faiber client.
|
|
290
|
+
* @param code Backend path identifier `code`.
|
|
291
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
292
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
293
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
294
|
+
*/
|
|
295
|
+
gamesRoutesLobbyGet(code, options) {
|
|
296
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/game-lobbies/${encodeURIComponent(code)}` });
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
300
|
+
* Calls `POST /api/v2/game-lobbies/{code}/join` through the shared IDP-aware Faiber client.
|
|
301
|
+
* @param code Backend path identifier `code`.
|
|
302
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
303
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
304
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
305
|
+
*/
|
|
306
|
+
gamesRoutesJoinLobbyPost(code, options) {
|
|
307
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/game-lobbies/${encodeURIComponent(code)}/join` });
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
311
|
+
* Calls `GET /api/v2/game-matchmaking/{ticket_id}` through the shared IDP-aware Faiber client.
|
|
312
|
+
* @param ticketId Backend path identifier `ticket_id`.
|
|
313
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
314
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
315
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
316
|
+
*/
|
|
317
|
+
gamesRoutesTicketGet(ticketId, options) {
|
|
318
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/game-matchmaking/${encodeURIComponent(ticketId)}` });
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
322
|
+
* Calls `GET /api/v2/game-progress` through the shared IDP-aware Faiber client.
|
|
323
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
324
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
325
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
326
|
+
*/
|
|
327
|
+
gamesRoutesProgressGet(options) {
|
|
328
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/game-progress` });
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
332
|
+
* Calls `GET /api/v2/game-sessions/{session_id}` through the shared IDP-aware Faiber client.
|
|
333
|
+
* @param sessionId Backend path identifier `session_id`.
|
|
334
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
335
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
336
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
337
|
+
*/
|
|
338
|
+
gamesRoutesViewGet(sessionId, options) {
|
|
339
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/game-sessions/${encodeURIComponent(sessionId)}` });
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
343
|
+
* Calls `POST /api/v2/game-sessions/{session_id}/commands` through the shared IDP-aware Faiber client.
|
|
344
|
+
* @param sessionId Backend path identifier `session_id`.
|
|
345
|
+
* @param data Typed JSON request body.
|
|
346
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
347
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
348
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
349
|
+
*/
|
|
350
|
+
gamesRoutesCommandPost(sessionId, data, options) {
|
|
351
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/game-sessions/${encodeURIComponent(sessionId)}/commands`, data: data });
|
|
352
|
+
}
|
|
353
|
+
/**
|
|
354
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
355
|
+
* Calls `POST /api/v2/game-sessions/{session_id}/ready` through the shared IDP-aware Faiber client.
|
|
356
|
+
* @param sessionId Backend path identifier `session_id`.
|
|
357
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
358
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
359
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
360
|
+
*/
|
|
361
|
+
gamesRoutesReadyPost(sessionId, options) {
|
|
362
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/game-sessions/${encodeURIComponent(sessionId)}/ready` });
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
366
|
+
* Calls `GET /api/v2/game-world-progress` through the shared IDP-aware Faiber client.
|
|
367
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
368
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
369
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
370
|
+
*/
|
|
371
|
+
gamesRoutesWorldProgressGet(options) {
|
|
372
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/game-world-progress` });
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
376
|
+
* Calls `GET /api/v2/games` through the shared IDP-aware Faiber client.
|
|
377
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
378
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
379
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: public catalog.
|
|
380
|
+
*/
|
|
381
|
+
gamesRoutesCatalogGet(options) {
|
|
382
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/games` });
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
386
|
+
* Calls `GET /api/v2/games/{game_id}` through the shared IDP-aware Faiber client.
|
|
387
|
+
* @param gameId Backend path identifier `game_id`.
|
|
388
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
389
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
390
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: public catalog.
|
|
391
|
+
*/
|
|
392
|
+
gamesRoutesGameGet(gameId, options) {
|
|
393
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/games/${encodeURIComponent(gameId)}` });
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
397
|
+
* Calls `POST /api/v2/games/{game_id}/lobbies` through the shared IDP-aware Faiber client.
|
|
398
|
+
* @param gameId Backend path identifier `game_id`.
|
|
399
|
+
* @param data Typed JSON request body.
|
|
400
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
401
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
402
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
403
|
+
*/
|
|
404
|
+
gamesRoutesCreateLobbyPost(gameId, data, options) {
|
|
405
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/games/${encodeURIComponent(gameId)}/lobbies`, data: data });
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
409
|
+
* Calls `POST /api/v2/games/{game_id}/matchmaking` through the shared IDP-aware Faiber client.
|
|
410
|
+
* @param gameId Backend path identifier `game_id`.
|
|
411
|
+
* @param data Typed JSON request body.
|
|
412
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
413
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
414
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
415
|
+
*/
|
|
416
|
+
gamesRoutesEnqueuePost(gameId, data, options) {
|
|
417
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/games/${encodeURIComponent(gameId)}/matchmaking`, data: data });
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
421
|
+
* Calls `POST /api/v2/games/{game_id}/matchmaking/tickets` through the shared IDP-aware Faiber client.
|
|
422
|
+
* @param gameId Backend path identifier `game_id`.
|
|
423
|
+
* @param data Typed JSON request body.
|
|
424
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
425
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
426
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
427
|
+
*/
|
|
428
|
+
kheradgahRoutesEnqueuePost(gameId, data, options) {
|
|
429
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/games/${encodeURIComponent(gameId)}/matchmaking/tickets`, data: data });
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
433
|
+
* Calls `DELETE /api/v2/games/{game_id}/matchmaking/tickets/{ticket_id}` through the shared IDP-aware Faiber client.
|
|
434
|
+
* @param gameId Backend path identifier `game_id`.
|
|
435
|
+
* @param ticketId Backend path identifier `ticket_id`.
|
|
436
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
437
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
438
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
439
|
+
*/
|
|
440
|
+
kheradgahRoutesCancelDelete(gameId, ticketId, options) {
|
|
441
|
+
return this.client.request({ ...options, method: "DELETE", url: `/api/v2/games/${encodeURIComponent(gameId)}/matchmaking/tickets/${encodeURIComponent(ticketId)}` });
|
|
442
|
+
}
|
|
443
|
+
/**
|
|
444
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
445
|
+
* Calls `GET /api/v2/games/{game_id}/matchmaking/tickets/{ticket_id}` through the shared IDP-aware Faiber client.
|
|
446
|
+
* @param gameId Backend path identifier `game_id`.
|
|
447
|
+
* @param ticketId Backend path identifier `ticket_id`.
|
|
448
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
449
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
450
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
451
|
+
*/
|
|
452
|
+
kheradgahRoutesTicketGet(gameId, ticketId, options) {
|
|
453
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/games/${encodeURIComponent(gameId)}/matchmaking/tickets/${encodeURIComponent(ticketId)}` });
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
457
|
+
* Calls `POST /api/v2/games/{game_id}/sessions` through the shared IDP-aware Faiber client.
|
|
458
|
+
* @param gameId Backend path identifier `game_id`.
|
|
459
|
+
* @param data Typed JSON request body.
|
|
460
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
461
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
462
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
463
|
+
*/
|
|
464
|
+
gamesRoutesCreateSessionPost(gameId, data, options) {
|
|
465
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/games/${encodeURIComponent(gameId)}/sessions`, data: { ...data, "gameId": String(gameId) } });
|
|
466
|
+
}
|
|
467
|
+
/**
|
|
468
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
469
|
+
* Calls `POST /api/v2/matches/{match_id}/connections` through the shared IDP-aware Faiber client.
|
|
470
|
+
* @param matchId Backend path identifier `match_id`.
|
|
471
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
472
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
473
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
474
|
+
*/
|
|
475
|
+
kheradgahRoutesConnectionPost(matchId, options) {
|
|
476
|
+
return this.client.request({ ...options, method: "POST", url: `/api/v2/matches/${encodeURIComponent(matchId)}/connections` });
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Use the server-authoritative v2 game API. Commands require the current version; stale versions return 409. The response is {data}, not a v1 envelope.
|
|
480
|
+
* Calls `GET /api/v2/matches/{match_id}/view` through the shared IDP-aware Faiber client.
|
|
481
|
+
* @param matchId Backend path identifier `match_id`.
|
|
482
|
+
* @param options Axios headers, timeout, cancellation signal, credentials, adapter, and other request options.
|
|
483
|
+
* @returns The complete Axios response, including the typed service envelope, status, and headers.
|
|
484
|
+
* @throws AxiosError for authentication, permission, validation, not-found, conflict, or transport failures; required permission: state:execute and authenticated game membership.
|
|
485
|
+
*/
|
|
486
|
+
kheradgahRoutesViewGet(matchId, options) {
|
|
487
|
+
return this.client.request({ ...options, method: "GET", url: `/api/v2/matches/${encodeURIComponent(matchId)}/view` });
|
|
488
|
+
}
|
|
489
|
+
/**
|
|
490
|
+
* Open the v2 match WebSocket and send its one-use hello ticket within five seconds. Acquire a fresh connection ticket after reconnecting.
|
|
491
|
+
* Calls `GET /api/v2/realtime` as a WebSocket upgrade.
|
|
492
|
+
* @param ticket One-use connection ticket from the authenticated match connection endpoint.
|
|
493
|
+
* @param options Injectable WebSocket constructor and AbortSignal; cancellation closes the socket.
|
|
494
|
+
* @returns The connected WebSocket; messages use KheradgahServerFrame, not an Axios response.
|
|
495
|
+
* @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.
|
|
496
|
+
*/
|
|
497
|
+
connectMatchRealtime(ticket, options) {
|
|
498
|
+
return openMatchRealtime(this.client, ticket, options);
|
|
499
|
+
}
|
|
276
500
|
}
|
|
277
501
|
//# sourceMappingURL=operations.js.map
|
package/dist/operations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,OAAO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CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;CACF"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApiEnvelope,
|
|
1
|
+
import type { ApiEnvelope, JsonObject, JsonValue, QueryParams } from "@faiber/sdk-core";
|
|
2
2
|
/** Generated route contracts. Dynamic payload members remain JSON-safe and are documented with their Rust source type. */
|
|
3
3
|
/** Backend query type: AdminSessionFilter. */
|
|
4
4
|
export interface RoutesGameOperationSessionsGetQuery extends QueryParams {
|
|
@@ -32,8 +32,8 @@ export interface RoutesGameOperationWorldsGetResponse extends ApiEnvelope<JsonVa
|
|
|
32
32
|
}
|
|
33
33
|
/** Backend request type: UpdateGameEconomy. */
|
|
34
34
|
export interface RoutesUpdateGameOperationEconomyPatchInput extends JsonObject {
|
|
35
|
-
"
|
|
36
|
-
"
|
|
35
|
+
"entryCoins": number;
|
|
36
|
+
"burnPercent": number;
|
|
37
37
|
"enabled": boolean;
|
|
38
38
|
}
|
|
39
39
|
/** Backend response type: api. */
|
|
@@ -45,15 +45,12 @@ export interface RoutesRealtimeGetQuery extends QueryParams {
|
|
|
45
45
|
"player_id": string;
|
|
46
46
|
"ticket": string;
|
|
47
47
|
}
|
|
48
|
+
/** Backend response type: websocket. */
|
|
49
|
+
export type RoutesRealtimeGetResponse = import("./types.js").ServerEvent;
|
|
48
50
|
/** Backend response type: api. */
|
|
49
|
-
export
|
|
50
|
-
}
|
|
51
|
-
/** Backend response type: api. */
|
|
52
|
-
export interface RoutesDeleteRoomDeleteResponse extends ApiEnvelope<JsonValue> {
|
|
53
|
-
}
|
|
51
|
+
export type RoutesDeleteRoomDeleteResponse = import("./contracts.types.js").GameResult<boolean>;
|
|
54
52
|
/** Backend response type: api. */
|
|
55
|
-
export
|
|
56
|
-
}
|
|
53
|
+
export type RoutesGetRoomGetResponse = import("./contracts.types.js").GameResult<import("./types.js").Room>;
|
|
57
54
|
/** Backend request type: UpdateRoom. */
|
|
58
55
|
export type RoutesUpdateRoomPutInputStatus = "waiting" | "running" | "paused" | "closed";
|
|
59
56
|
export interface RoutesUpdateRoomPutInput extends JsonObject {
|
|
@@ -62,8 +59,7 @@ export interface RoutesUpdateRoomPutInput extends JsonObject {
|
|
|
62
59
|
"status"?: RoutesUpdateRoomPutInputStatus | null;
|
|
63
60
|
}
|
|
64
61
|
/** Backend response type: api. */
|
|
65
|
-
export
|
|
66
|
-
}
|
|
62
|
+
export type RoutesUpdateRoomPutResponse = import("./contracts.types.js").GameResult<import("./types.js").Room>;
|
|
67
63
|
/** Backend request type: InvokeWasm. */
|
|
68
64
|
export interface RoutesInvokeEndpointPostInput extends JsonObject {
|
|
69
65
|
"player_id": string;
|
|
@@ -71,18 +67,15 @@ export interface RoutesInvokeEndpointPostInput extends JsonObject {
|
|
|
71
67
|
"inputs"?: number[];
|
|
72
68
|
}
|
|
73
69
|
/** Backend response type: api. */
|
|
74
|
-
export
|
|
75
|
-
}
|
|
70
|
+
export type RoutesInvokeEndpointPostResponse = import("./contracts.types.js").GameResult<import("./types.js").StatePatch>;
|
|
76
71
|
/** Backend request type: JoinRoom. */
|
|
77
72
|
export interface RoutesJoinRoomPostInput extends JsonObject {
|
|
78
73
|
"user_id": string;
|
|
79
74
|
}
|
|
80
75
|
/** Backend response type: api. */
|
|
81
|
-
export
|
|
82
|
-
}
|
|
76
|
+
export type RoutesJoinRoomPostResponse = import("./contracts.types.js").GameResult<import("./types.js").JoinTicket>;
|
|
83
77
|
/** Backend response type: api. */
|
|
84
|
-
export
|
|
85
|
-
}
|
|
78
|
+
export type RoutesListWorldsGetResponse = import("./contracts.types.js").GameResult<import("./types.js").World[]>;
|
|
86
79
|
/** Backend request type: CreateWorld. */
|
|
87
80
|
export type RoutesCreateWorldPostInputComponentsPropertiesKind = "boolean" | "integer" | "number" | "string" | "vec2" | "vec3" | "quaternion" | "json";
|
|
88
81
|
export type RoutesCreateWorldPostInputComponentsPropertiesAuthority = "server" | "owner" | "shared";
|
|
@@ -107,7 +100,7 @@ export interface RoutesCreateWorldPostInputReplication extends JsonObject {
|
|
|
107
100
|
export interface RoutesCreateWorldPostInputPhysics extends JsonObject {
|
|
108
101
|
"enabled"?: boolean;
|
|
109
102
|
"dimensions"?: number;
|
|
110
|
-
"gravity"?:
|
|
103
|
+
"gravity"?: [number, number, number];
|
|
111
104
|
"deterministic"?: boolean;
|
|
112
105
|
}
|
|
113
106
|
export interface RoutesCreateWorldPostInput extends JsonObject {
|
|
@@ -118,14 +111,11 @@ export interface RoutesCreateWorldPostInput extends JsonObject {
|
|
|
118
111
|
"physics"?: RoutesCreateWorldPostInputPhysics;
|
|
119
112
|
}
|
|
120
113
|
/** Backend response type: api. */
|
|
121
|
-
export
|
|
122
|
-
}
|
|
114
|
+
export type RoutesCreateWorldPostResponse = import("./contracts.types.js").GameResult<import("./types.js").World>;
|
|
123
115
|
/** Backend response type: api. */
|
|
124
|
-
export
|
|
125
|
-
}
|
|
116
|
+
export type RoutesDeleteWorldDeleteResponse = import("./contracts.types.js").GameResult<boolean>;
|
|
126
117
|
/** Backend response type: api. */
|
|
127
|
-
export
|
|
128
|
-
}
|
|
118
|
+
export type RoutesGetWorldGetResponse = import("./contracts.types.js").GameResult<import("./types.js").World>;
|
|
129
119
|
/** Backend request type: UpdateWorld. */
|
|
130
120
|
export type RoutesUpdateWorldPutInputComponentsPropertiesKind = "boolean" | "integer" | "number" | "string" | "vec2" | "vec3" | "quaternion" | "json";
|
|
131
121
|
export type RoutesUpdateWorldPutInputComponentsPropertiesAuthority = "server" | "owner" | "shared";
|
|
@@ -150,7 +140,7 @@ export interface RoutesUpdateWorldPutInputReplication extends JsonObject {
|
|
|
150
140
|
export interface RoutesUpdateWorldPutInputPhysics extends JsonObject {
|
|
151
141
|
"enabled"?: boolean;
|
|
152
142
|
"dimensions"?: number;
|
|
153
|
-
"gravity"?:
|
|
143
|
+
"gravity"?: [number, number, number];
|
|
154
144
|
"deterministic"?: boolean;
|
|
155
145
|
}
|
|
156
146
|
export interface RoutesUpdateWorldPutInput extends JsonObject {
|
|
@@ -160,11 +150,9 @@ export interface RoutesUpdateWorldPutInput extends JsonObject {
|
|
|
160
150
|
"physics"?: RoutesUpdateWorldPutInputPhysics | null;
|
|
161
151
|
}
|
|
162
152
|
/** Backend response type: api. */
|
|
163
|
-
export
|
|
164
|
-
}
|
|
153
|
+
export type RoutesUpdateWorldPutResponse = import("./contracts.types.js").GameResult<import("./types.js").World>;
|
|
165
154
|
/** Backend response type: api. */
|
|
166
|
-
export
|
|
167
|
-
}
|
|
155
|
+
export type RoutesListEndpointsGetResponse = import("./contracts.types.js").GameResult<import("./types.js").WasmEndpoint[]>;
|
|
168
156
|
/** Backend request type: CreateWasmEndpoint. */
|
|
169
157
|
export interface RoutesCreateEndpointPostInput extends JsonObject {
|
|
170
158
|
"module_id": string;
|
|
@@ -174,25 +162,20 @@ export interface RoutesCreateEndpointPostInput extends JsonObject {
|
|
|
174
162
|
"reliable"?: boolean;
|
|
175
163
|
}
|
|
176
164
|
/** Backend response type: api. */
|
|
177
|
-
export
|
|
178
|
-
}
|
|
165
|
+
export type RoutesCreateEndpointPostResponse = import("./contracts.types.js").GameResult<import("./types.js").WasmEndpoint>;
|
|
179
166
|
/** Backend response type: api. */
|
|
180
|
-
export
|
|
181
|
-
}
|
|
167
|
+
export type RoutesDeleteEndpointDeleteResponse = import("./contracts.types.js").GameResult<boolean>;
|
|
182
168
|
/** Backend response type: api. */
|
|
183
|
-
export
|
|
184
|
-
}
|
|
169
|
+
export type RoutesListRoomsGetResponse = import("./contracts.types.js").GameResult<import("./types.js").Room[]>;
|
|
185
170
|
/** Backend request type: CreateRoom. */
|
|
186
171
|
export interface RoutesCreateRoomPostInput extends JsonObject {
|
|
187
172
|
"name": string;
|
|
188
173
|
"capacity"?: number;
|
|
189
174
|
}
|
|
190
175
|
/** Backend response type: api. */
|
|
191
|
-
export
|
|
192
|
-
}
|
|
176
|
+
export type RoutesCreateRoomPostResponse = import("./contracts.types.js").GameResult<import("./types.js").Room>;
|
|
193
177
|
/** Backend response type: api. */
|
|
194
|
-
export
|
|
195
|
-
}
|
|
178
|
+
export type RoutesListWasmGetResponse = import("./contracts.types.js").GameResult<import("./types.js").WasmModuleInfo[]>;
|
|
196
179
|
/** Backend request type: UploadWasm. */
|
|
197
180
|
export interface RoutesUploadWasmPostInput extends JsonObject {
|
|
198
181
|
"name": string;
|
|
@@ -200,9 +183,57 @@ export interface RoutesUploadWasmPostInput extends JsonObject {
|
|
|
200
183
|
"exports"?: string[];
|
|
201
184
|
}
|
|
202
185
|
/** Backend response type: api. */
|
|
203
|
-
export
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
186
|
+
export type RoutesUploadWasmPostResponse = import("./contracts.types.js").GameResult<import("./types.js").WasmModuleInfo>;
|
|
187
|
+
/** Backend response type: api. */
|
|
188
|
+
export type RoutesDeleteWasmDeleteResponse = import("./contracts.types.js").GameResult<boolean>;
|
|
189
|
+
/** Backend response type: Value. */
|
|
190
|
+
export type GamesRoutesHistoryGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView[]>;
|
|
191
|
+
/** Backend response type: Value. */
|
|
192
|
+
export type GamesRoutesLobbyGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyView>;
|
|
193
|
+
/** Backend response type: Value. */
|
|
194
|
+
export type GamesRoutesJoinLobbyPostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyJoined>;
|
|
195
|
+
/** Backend response type: Value. */
|
|
196
|
+
export type GamesRoutesTicketGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameQueueTicket>;
|
|
197
|
+
/** Backend response type: Value. */
|
|
198
|
+
export type GamesRoutesProgressGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameProgress[]>;
|
|
199
|
+
/** Backend response type: Value. */
|
|
200
|
+
export type GamesRoutesViewGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>;
|
|
201
|
+
/** Backend request type: GameCommand. */
|
|
202
|
+
export type GamesRoutesCommandPostInput = import("./contracts.types.js").GameCommandInput;
|
|
203
|
+
/** Backend response type: Value. */
|
|
204
|
+
export type GamesRoutesCommandPostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>;
|
|
205
|
+
/** Backend response type: Value. */
|
|
206
|
+
export type GamesRoutesReadyPostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>;
|
|
207
|
+
/** Backend response type: Value. */
|
|
208
|
+
export type GamesRoutesWorldProgressGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameWorldProgress[]>;
|
|
209
|
+
/** Backend response type: Value. */
|
|
210
|
+
export type GamesRoutesCatalogGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameCatalogEntry[]>;
|
|
211
|
+
/** Backend response type: Value. */
|
|
212
|
+
export type GamesRoutesGameGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameCatalogEntry>;
|
|
213
|
+
/** Backend request type: EnqueueInput. */
|
|
214
|
+
export type GamesRoutesCreateLobbyPostInput = import("./contracts.types.js").GameQueueInput;
|
|
215
|
+
/** Backend response type: Value. */
|
|
216
|
+
export type GamesRoutesCreateLobbyPostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameLobbyCreated>;
|
|
217
|
+
/** Backend request type: EnqueueInput. */
|
|
218
|
+
export type GamesRoutesEnqueuePostInput = import("./contracts.types.js").GameQueueInput;
|
|
219
|
+
/** Backend response type: Value. */
|
|
220
|
+
export type GamesRoutesEnqueuePostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameQueueReceipt>;
|
|
221
|
+
/** Backend request type: EnqueueMatchmaking. */
|
|
222
|
+
export type KheradgahRoutesEnqueuePostInput = import("./contracts.types.js").KheradgahQueueInput;
|
|
223
|
+
/** Backend response type: Value. */
|
|
224
|
+
export type KheradgahRoutesEnqueuePostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>;
|
|
225
|
+
/** Backend response type: Value. */
|
|
226
|
+
export type KheradgahRoutesCancelDeleteResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>;
|
|
227
|
+
/** Backend response type: Value. */
|
|
228
|
+
export type KheradgahRoutesTicketGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahTicket>;
|
|
229
|
+
/** Backend request type: CreateSession. */
|
|
230
|
+
export type GamesRoutesCreateSessionPostInput = import("./contracts.types.js").GameCreateInput;
|
|
231
|
+
/** Backend response type: Value. */
|
|
232
|
+
export type GamesRoutesCreateSessionPostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").GameSessionView>;
|
|
233
|
+
/** Backend response type: Value. */
|
|
234
|
+
export type KheradgahRoutesConnectionPostResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahConnectionTicket>;
|
|
235
|
+
/** Backend response type: Value. */
|
|
236
|
+
export type KheradgahRoutesViewGetResponse = import("./contracts.types.js").GameResult<import("./contracts.types.js").KheradgahView>;
|
|
237
|
+
/** Backend response type: websocket. */
|
|
238
|
+
export type KheradgahRoutesRealtimeGetResponse = import("./contracts.types.js").KheradgahServerFrame;
|
|
208
239
|
//# sourceMappingURL=operations.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.types.d.ts","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"operations.types.d.ts","sourceRoot":"","sources":["../src/operations.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAe,UAAU,EAAE,SAAS,EAAE,WAAW,EAAc,MAAM,kBAAkB,CAAC;AAEjH,0HAA0H;AAC1H,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,WAAW;IACtE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB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
|
2
2
|
export type PropertyType = "boolean" | "integer" | "number" | "string" | "vec2" | "vec3" | "quaternion" | "json";
|
|
3
3
|
export type PropertyAuthority = "server" | "owner" | "shared";
|
|
4
4
|
export interface StateProperty {
|
|
@@ -185,12 +185,15 @@ export interface InvokeWasmInput {
|
|
|
185
185
|
entity_id: string;
|
|
186
186
|
inputs?: number[];
|
|
187
187
|
}
|
|
188
|
-
export
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
export type
|
|
192
|
-
export type
|
|
193
|
-
export type
|
|
188
|
+
export interface StateResponse<T> {
|
|
189
|
+
data: T;
|
|
190
|
+
}
|
|
191
|
+
export type WorldListResponse = StateResponse<World[]>;
|
|
192
|
+
export type WorldResponse = StateResponse<World>;
|
|
193
|
+
export type RoomListResponse = StateResponse<Room[]>;
|
|
194
|
+
export type RoomResponse = StateResponse<Room>;
|
|
195
|
+
export type JoinResponse = StateResponse<JoinTicket>;
|
|
196
|
+
export type StatePatchResponse = StateResponse<StatePatch>;
|
|
194
197
|
export interface StateHealthData extends JsonObject {
|
|
195
198
|
service: "infera-state";
|
|
196
199
|
status: "healthy";
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAe,UAAU,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC3E,MAAM,MAAM,YAAY,GAAG,SAAS,GAAC,SAAS,GAAC,QAAQ,GAAC,QAAQ,GAAC,MAAM,GAAC,MAAM,GAAC,YAAY,GAAC,MAAM,CAAC;AACnG,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAC,OAAO,GAAC,QAAQ,CAAC;AAC1D,MAAM,WAAW,aAAa;IAAG,IAAI,EAAC,MAAM,CAAC;IA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