@escapeaihq/client-core 0.138.0 → 0.140.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.
Files changed (47) hide show
  1. package/dist/api.d.ts +37 -0
  2. package/dist/api.d.ts.map +1 -1
  3. package/dist/api.js +38 -0
  4. package/dist/api.js.map +1 -1
  5. package/dist/domains/personas.d.ts +6 -0
  6. package/dist/domains/personas.d.ts.map +1 -1
  7. package/dist/domains/personas.js +12 -0
  8. package/dist/domains/personas.js.map +1 -1
  9. package/dist/domains/runtime.d.ts +25 -0
  10. package/dist/domains/runtime.d.ts.map +1 -0
  11. package/dist/domains/runtime.js +29 -0
  12. package/dist/domains/runtime.js.map +1 -0
  13. package/dist/generated/contract.d.ts.map +1 -1
  14. package/dist/generated/contract.js +5 -0
  15. package/dist/generated/contract.js.map +1 -1
  16. package/dist/index.d.ts +2 -0
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +3 -0
  19. package/dist/index.js.map +1 -1
  20. package/dist/runtimeEvents.d.ts +111 -0
  21. package/dist/runtimeEvents.d.ts.map +1 -0
  22. package/dist/runtimeEvents.js +55 -0
  23. package/dist/runtimeEvents.js.map +1 -0
  24. package/dist/sceneBridge.d.ts +193 -0
  25. package/dist/sceneBridge.d.ts.map +1 -0
  26. package/dist/sceneBridge.js +329 -0
  27. package/dist/sceneBridge.js.map +1 -0
  28. package/dist/toolSchemas.d.ts +5 -0
  29. package/dist/toolSchemas.d.ts.map +1 -1
  30. package/dist/toolSchemas.js +1 -0
  31. package/dist/toolSchemas.js.map +1 -1
  32. package/dist/websocket.d.ts +18 -1
  33. package/dist/websocket.d.ts.map +1 -1
  34. package/dist/websocket.js +16 -0
  35. package/dist/websocket.js.map +1 -1
  36. package/package.json +1 -1
  37. package/src/__tests__/persona-generation.test.ts +47 -0
  38. package/src/__tests__/scene-bridge.test.ts +314 -0
  39. package/src/api.ts +50 -0
  40. package/src/domains/personas.ts +14 -0
  41. package/src/domains/runtime.ts +38 -0
  42. package/src/generated/contract.ts +5 -0
  43. package/src/index.ts +3 -0
  44. package/src/runtimeEvents.ts +127 -0
  45. package/src/sceneBridge.ts +433 -0
  46. package/src/toolSchemas.ts +1 -0
  47. package/src/websocket.ts +25 -1
package/dist/api.d.ts CHANGED
@@ -9,6 +9,7 @@ import type { InventoryAction, PartyAction } from './domains/adventures';
9
9
  import type { CreateStoryboardRequest, CreateStoryboardResponse, ExportStoryboardResponse, ListStoryboardsResponse, PatchStoryboardFrameRequest, RegionEditFrameRequest, ReorderStoryboardFramesRequest, RetryStoryboardFrameRequest, SelectFrameVariantRequest, PrepareStoryboardWorldsResponse, ReleaseStoryboardWorldsRequest, ReleaseStoryboardWorldsResponse, SetFrameWorldRequest, StoryboardDetailResponse, StoryboardExportTarget, StoryboardFrameResponse, StoryboardResponse, StoryboardView, StyleProfile } from './domains/storyboards';
10
10
  import type { ArtifactDeletionReport, ListArtifactsParams, ListArtifactsResponse, ListGenerationRunsParams, ListGenerationRunsResponse } from './domains/artifacts';
11
11
  import type { CurateQuestsResponse, CutsceneClipResponse, CutsceneDefinitionWire, ListCutscenesResponse, PutCutscenesResponse, QuestCurationDelta, QuestHistoryResponse, QuestMapResponse, QuestPreviewResponse, ReliveResponse, SessionQuestStateResponse } from './domains/quests';
12
+ import type { RuntimeEventBatchRequest, RuntimeEventBatchResponse } from './runtimeEvents';
12
13
  import type { BundleLinkFields, BundleManifestResult } from './domains/visemeBundles';
13
14
  export { CHARACTER_STYLE_PRESETS, MAX_IMAGE_OPTION_COUNT, RecloneConflictError, } from './domains/personas';
14
15
  export type { CharacterStylePreset, RecloneConflictCode } from './domains/personas';
@@ -3777,6 +3778,8 @@ export interface PersonaListResponse {
3777
3778
  personas: PersonaConfig[];
3778
3779
  total: number;
3779
3780
  next_token?: string | null;
3781
+ /** §Q SHOW.8 — per-request correlation id; absent from an older backend. */
3782
+ traceId?: string | null;
3780
3783
  }
3781
3784
  /** Lifecycle of an async persona-generation job. Mirrors
3782
3785
  * ``shared/persona_models.py:PersonaJobStatus``. Non-terminal:
@@ -7143,6 +7146,7 @@ export declare class ApiClient {
7143
7146
  private readonly chat;
7144
7147
  private readonly graph;
7145
7148
  private readonly showcase;
7149
+ private readonly runtime;
7146
7150
  private readonly universes;
7147
7151
  private readonly adventureDefinitions;
7148
7152
  private readonly studioSettings;
@@ -8365,7 +8369,30 @@ export declare class ApiClient {
8365
8369
  nextToken?: string;
8366
8370
  status?: 'pending' | 'approved';
8367
8371
  sourceVideoId?: string;
8372
+ includeBlessed?: boolean;
8373
+ general?: boolean;
8368
8374
  }): Promise<PersonaListResponse>;
8375
+ /**
8376
+ * §Q SHOW.8: the VIEWER roster of one video — the personas a viewer may pick
8377
+ * and chat with. The caller's own personas of the video (as
8378
+ * {@link listPersonasByVideo} returns them), plus other creators' personas of
8379
+ * it that this caller may read (blessed and approved), each shaped exactly
8380
+ * like {@link getPersona}'s viewer copy (no authored prompt). Sends
8381
+ * `?source_video_id=<id>&includeBlessed=true`; the backend answers 403 when
8382
+ * the caller may not read the video. An older backend answers 400 (unknown
8383
+ * parameter).
8384
+ */
8385
+ listViewerPersonasByVideo(sourceVideoId: string): Promise<PersonaListResponse>;
8386
+ /**
8387
+ * §Q SHOW.9: the VIEWER roster of GENERAL personas — the ones that name no
8388
+ * video (a site guide an admin made). The caller's own general personas,
8389
+ * plus other owners' general personas this caller may read (blessed and
8390
+ * approved), each shaped exactly like {@link getPersona}'s viewer copy (no
8391
+ * authored prompt). Sends `?general=true&includeBlessed=true`; not paginated
8392
+ * (`next_token` is always null). An older backend answers 400 (unknown
8393
+ * parameter).
8394
+ */
8395
+ listViewerGeneralPersonas(): Promise<PersonaListResponse>;
8369
8396
  /**
8370
8397
  * C3a: list the personas auto-generated from a given source video. Thin
8371
8398
  * wrapper over {@link listPersonas} with ``sourceVideoId`` — backs the review
@@ -10681,6 +10708,16 @@ export declare class ApiClient {
10681
10708
  listShowcaseExperiences(options?: {
10682
10709
  signal?: AbortSignal;
10683
10710
  }): Promise<ShowcaseExperiencesResponse>;
10711
+ /**
10712
+ * §Q RUNTIME.3 — report a batch of external-runtime facts (zone reached,
10713
+ * object found, world predicate set, map area unlocked) into a running
10714
+ * adventure session the caller owns. `POST /api/v1/runtime/sessions/{id}/events`;
10715
+ * see {@link RuntimeApi.submitRuntimeEvents} for the status contract. The
10716
+ * WebSocket twin is {@link ChatWebSocket.sendRuntimeEvent}. Additive.
10717
+ */
10718
+ submitRuntimeEvents(sessionId: string, request: RuntimeEventBatchRequest, options?: {
10719
+ signal?: AbortSignal;
10720
+ }): Promise<RuntimeEventBatchResponse>;
10684
10721
  /** See {@link AdventureDefinitionsApi.createDefinition}. */
10685
10722
  createAdventureDefinition(request: CreateAdventureDefinitionRequest, options?: {
10686
10723
  signal?: AbortSignal;