@amigo-ai/platform-sdk 0.59.0 → 0.61.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 (49) hide show
  1. package/README.md +0 -1
  2. package/api.md +1 -1
  3. package/dist/index.cjs +47 -23
  4. package/dist/index.cjs.map +2 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +47 -23
  7. package/dist/index.mjs.map +2 -2
  8. package/dist/resources/actions.js +1 -1
  9. package/dist/resources/base.js +3 -0
  10. package/dist/resources/base.js.map +1 -1
  11. package/dist/resources/conversations.js.map +1 -1
  12. package/dist/resources/desktop-sessions.js +6 -6
  13. package/dist/resources/desktop-sessions.js.map +1 -1
  14. package/dist/resources/simulations.js.map +1 -1
  15. package/dist/resources/skills.js +1 -1
  16. package/dist/resources/tasks.js +3 -3
  17. package/dist/resources/tasks.js.map +1 -1
  18. package/dist/types/generated/api.d.ts +142 -760
  19. package/dist/types/generated/api.d.ts.map +1 -1
  20. package/dist/types/index.d.cts +1 -1
  21. package/dist/types/index.d.cts.map +1 -1
  22. package/dist/types/index.d.ts +1 -1
  23. package/dist/types/index.d.ts.map +1 -1
  24. package/dist/types/resources/actions.d.ts +2 -7
  25. package/dist/types/resources/actions.d.ts.map +1 -1
  26. package/dist/types/resources/base.d.ts +11 -0
  27. package/dist/types/resources/base.d.ts.map +1 -1
  28. package/dist/types/resources/conversations.d.ts +2 -0
  29. package/dist/types/resources/conversations.d.ts.map +1 -1
  30. package/dist/types/resources/data-sources.d.ts +5 -5
  31. package/dist/types/resources/desktop-sessions.d.ts +44 -21
  32. package/dist/types/resources/desktop-sessions.d.ts.map +1 -1
  33. package/dist/types/resources/intake.d.ts.map +1 -1
  34. package/dist/types/resources/integrations.d.ts +24 -102
  35. package/dist/types/resources/integrations.d.ts.map +1 -1
  36. package/dist/types/resources/metrics.d.ts.map +1 -1
  37. package/dist/types/resources/operators.d.ts.map +1 -1
  38. package/dist/types/resources/pipeline.d.ts +3 -3
  39. package/dist/types/resources/services.d.ts.map +1 -1
  40. package/dist/types/resources/settings.d.ts.map +1 -1
  41. package/dist/types/resources/simulations.d.ts +28 -1
  42. package/dist/types/resources/simulations.d.ts.map +1 -1
  43. package/dist/types/resources/skills.d.ts +2 -7
  44. package/dist/types/resources/skills.d.ts.map +1 -1
  45. package/dist/types/resources/surfaces.d.ts.map +1 -1
  46. package/dist/types/resources/tasks.d.ts +28 -42
  47. package/dist/types/resources/tasks.d.ts.map +1 -1
  48. package/dist/types/resources/world.d.ts.map +1 -1
  49. package/package.json +1 -1
@@ -1689,7 +1689,7 @@ export interface paths {
1689
1689
  *
1690
1690
  * **Latency**: 500ms-2s (reads from analytics warehouse, not transactional store).
1691
1691
  *
1692
- * **Status values**: `ready` = analysis complete, `pending` = call completed but analysis queued (retry in 15 minutes), `unavailable` = no recording or analysis transiently unavailable (retry later).
1692
+ * **Status values**: `ready` = analysis complete, `pending` = call completed but analysis queued (retry in 30 minutes), `unavailable` = no recording or analysis transiently unavailable (retry later).
1693
1693
  */
1694
1694
  get: operations["get-call-trace-analysis"];
1695
1695
  put?: never;
@@ -2307,91 +2307,6 @@ export interface paths {
2307
2307
  patch?: never;
2308
2308
  trace?: never;
2309
2309
  };
2310
- "/v1/{workspace_id}/desktop-sessions": {
2311
- parameters: {
2312
- query?: never;
2313
- header?: never;
2314
- path?: never;
2315
- cookie?: never;
2316
- };
2317
- get?: never;
2318
- put?: never;
2319
- /** Create Desktop Session */
2320
- post: operations["create_desktop_session_v1__workspace_id__desktop_sessions_post"];
2321
- delete?: never;
2322
- options?: never;
2323
- head?: never;
2324
- patch?: never;
2325
- trace?: never;
2326
- };
2327
- "/v1/{workspace_id}/desktop-sessions/{session_id}": {
2328
- parameters: {
2329
- query?: never;
2330
- header?: never;
2331
- path?: never;
2332
- cookie?: never;
2333
- };
2334
- get?: never;
2335
- put?: never;
2336
- post?: never;
2337
- /** Disconnect Session */
2338
- delete: operations["disconnect_session_v1__workspace_id__desktop_sessions__session_id__delete"];
2339
- options?: never;
2340
- head?: never;
2341
- patch?: never;
2342
- trace?: never;
2343
- };
2344
- "/v1/{workspace_id}/desktop-sessions/{session_id}/action": {
2345
- parameters: {
2346
- query?: never;
2347
- header?: never;
2348
- path?: never;
2349
- cookie?: never;
2350
- };
2351
- get?: never;
2352
- put?: never;
2353
- /** Perform Action */
2354
- post: operations["perform_action_v1__workspace_id__desktop_sessions__session_id__action_post"];
2355
- delete?: never;
2356
- options?: never;
2357
- head?: never;
2358
- patch?: never;
2359
- trace?: never;
2360
- };
2361
- "/v1/{workspace_id}/desktop-sessions/{session_id}/screenshot": {
2362
- parameters: {
2363
- query?: never;
2364
- header?: never;
2365
- path?: never;
2366
- cookie?: never;
2367
- };
2368
- /** Get Screenshot */
2369
- get: operations["get_screenshot_v1__workspace_id__desktop_sessions__session_id__screenshot_get"];
2370
- put?: never;
2371
- post?: never;
2372
- delete?: never;
2373
- options?: never;
2374
- head?: never;
2375
- patch?: never;
2376
- trace?: never;
2377
- };
2378
- "/v1/{workspace_id}/desktop-sessions/{session_id}/status": {
2379
- parameters: {
2380
- query?: never;
2381
- header?: never;
2382
- path?: never;
2383
- cookie?: never;
2384
- };
2385
- /** Get Session Status */
2386
- get: operations["get_session_status_v1__workspace_id__desktop_sessions__session_id__status_get"];
2387
- put?: never;
2388
- post?: never;
2389
- delete?: never;
2390
- options?: never;
2391
- head?: never;
2392
- patch?: never;
2393
- trace?: never;
2394
- };
2395
2310
  "/v1/{workspace_id}/entities/{entity_id}/brief": {
2396
2311
  parameters: {
2397
2312
  query?: never;
@@ -3107,7 +3022,7 @@ export interface paths {
3107
3022
  };
3108
3023
  /**
3109
3024
  * List integrations
3110
- * @description List every integration (REST + desktop) for a workspace. Optionally filter by `enabled` or `search` (name/display_name/id ilike). Sort via repeated `sort_by` query params; each entry is `+field` or `-field` (allowed fields: name, created_at, updated_at). Default: `-created_at`. Cursor opaque — round-trip `continuation_token` unchanged with the same `sort_by`. Requires `Integration.view` permission.
3025
+ * @description List every integration for a workspace. Optionally filter by `enabled` or `search` (name/display_name/id ilike). Sort via repeated `sort_by` query params; each entry is `+field` or `-field` (allowed fields: name, created_at, updated_at). Default: `-created_at`. Cursor opaque — round-trip `continuation_token` unchanged with the same `sort_by`. Requires `Integration.view` permission.
3111
3026
  */
3112
3027
  get: operations["list-integrations"];
3113
3028
  put?: never;
@@ -3131,7 +3046,7 @@ export interface paths {
3131
3046
  };
3132
3047
  /**
3133
3048
  * Get an integration
3134
- * @description Retrieve an integration (REST or desktop) by ID. Requires `Integration.view` permission.
3049
+ * @description Retrieve an integration by ID. Requires `Integration.view` permission.
3135
3050
  */
3136
3051
  get: operations["get-integration"];
3137
3052
  put?: never;
@@ -6508,46 +6423,6 @@ export interface paths {
6508
6423
  patch: operations["update-workspace-table"];
6509
6424
  trace?: never;
6510
6425
  };
6511
- "/v1/{workspace_id}/tasks/by-call/{call_sid}": {
6512
- parameters: {
6513
- query?: never;
6514
- header?: never;
6515
- path?: never;
6516
- cookie?: never;
6517
- };
6518
- /**
6519
- * List Tasks By Call
6520
- * @description List all tasks for a call. Only returns tasks matching the current workspace.
6521
- */
6522
- get: operations["list_tasks_by_call_v1__workspace_id__tasks_by_call__call_sid__get"];
6523
- put?: never;
6524
- post?: never;
6525
- delete?: never;
6526
- options?: never;
6527
- head?: never;
6528
- patch?: never;
6529
- trace?: never;
6530
- };
6531
- "/v1/{workspace_id}/tasks/{task_id}": {
6532
- parameters: {
6533
- query?: never;
6534
- header?: never;
6535
- path?: never;
6536
- cookie?: never;
6537
- };
6538
- /**
6539
- * Get Task
6540
- * @description Get task state by ID. Requires workspace context — the task's workspace_id must match.
6541
- */
6542
- get: operations["get_task_v1__workspace_id__tasks__task_id__get"];
6543
- put?: never;
6544
- post?: never;
6545
- delete?: never;
6546
- options?: never;
6547
- head?: never;
6548
- patch?: never;
6549
- trace?: never;
6550
- };
6551
6426
  "/v1/{workspace_id}/tools/execute": {
6552
6427
  parameters: {
6553
6428
  query?: never;
@@ -7312,41 +7187,6 @@ export interface components {
7312
7187
  /** Filler Hint */
7313
7188
  filler_hint?: string | null;
7314
7189
  };
7315
- /** ActionRequest */
7316
- ActionRequest: {
7317
- /** Amount */
7318
- amount?: number | null;
7319
- /** Button */
7320
- button?: string | null;
7321
- /** Direction */
7322
- direction?: ("up" | "down" | "left" | "right") | null;
7323
- /** Key */
7324
- key?: string | null;
7325
- /** Text */
7326
- text?: string | null;
7327
- /**
7328
- * Type
7329
- * @enum {string}
7330
- */
7331
- type: "click" | "double_click" | "type" | "key" | "scroll" | "move" | "drag" | "clipboard_type";
7332
- /** X */
7333
- x?: number | null;
7334
- /** X1 */
7335
- x1?: number | null;
7336
- /** X2 */
7337
- x2?: number | null;
7338
- /** Y */
7339
- y?: number | null;
7340
- /** Y1 */
7341
- y1?: number | null;
7342
- /** Y2 */
7343
- y2?: number | null;
7344
- };
7345
- /** ActionResponse */
7346
- ActionResponse: {
7347
- /** Ok */
7348
- ok: boolean;
7349
- };
7350
7190
  /**
7351
7191
  * ActionState
7352
7192
  * @description User-facing engagement state with actions and exit conditions.
@@ -9710,7 +9550,7 @@ export interface components {
9710
9550
  * Source Type
9711
9551
  * @enum {string}
9712
9552
  */
9713
- source_type: "ehr" | "fhir_store" | "smart_fhir" | "rest_api" | "webhook" | "file_drop" | "lakebase_schema";
9553
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
9714
9554
  /** Sync Schedule */
9715
9555
  sync_schedule?: string | null;
9716
9556
  /**
@@ -10212,6 +10052,12 @@ export interface components {
10212
10052
  };
10213
10053
  /** ConversationTurn */
10214
10054
  ConversationTurn: {
10055
+ /**
10056
+ * Available Actions
10057
+ * @description Action choices available in the turn's resolved context-graph state. Empty when actions cannot be resolved or the resolved state is not an action state.
10058
+ * @default []
10059
+ */
10060
+ available_actions?: components["schemas"]["ConversationTurnAvailableAction"][];
10215
10061
  /**
10216
10062
  * Content
10217
10063
  * @default []
@@ -10222,11 +10068,39 @@ export interface components {
10222
10068
  * @enum {string}
10223
10069
  */
10224
10070
  role: "agent" | "user" | "system";
10071
+ /**
10072
+ * Selected Action Description
10073
+ * @description Description of the context-graph action selected for this turn. Null means no action was selected or no selected action was recorded.
10074
+ */
10075
+ selected_action_description?: string | null;
10076
+ /** @description Context-graph state transition that occurred during this turn. Null means no transition took place or no transition was recorded. If multiple transitions were recorded, the API reports the first source state and final destination state. */
10077
+ state_transition?: components["schemas"]["ConversationTurnStateTransition"] | null;
10225
10078
  /** Text */
10226
10079
  text: string;
10227
10080
  /** Timestamp */
10228
10081
  timestamp?: string | null;
10229
10082
  };
10083
+ /** ConversationTurnAvailableAction */
10084
+ ConversationTurnAvailableAction: {
10085
+ /**
10086
+ * Description
10087
+ * @description Human-readable description of an action available in the turn's state.
10088
+ */
10089
+ description: string;
10090
+ };
10091
+ /** ConversationTurnStateTransition */
10092
+ ConversationTurnStateTransition: {
10093
+ /**
10094
+ * From
10095
+ * @description Source context-graph state before the turn's state transition.
10096
+ */
10097
+ from: string;
10098
+ /**
10099
+ * To
10100
+ * @description Destination context-graph state after the turn's state transition.
10101
+ */
10102
+ to: string;
10103
+ };
10230
10104
  /** ConvertEnvironmentRequest */
10231
10105
  ConvertEnvironmentRequest: {
10232
10106
  confirm_slug: components["schemas"]["SlugString"];
@@ -10457,7 +10331,7 @@ export interface components {
10457
10331
  * Source Type
10458
10332
  * @enum {string}
10459
10333
  */
10460
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake";
10334
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
10461
10335
  /** Sync Schedule */
10462
10336
  sync_schedule?: string | null;
10463
10337
  /**
@@ -10711,14 +10585,27 @@ export interface components {
10711
10585
  */
10712
10586
  tenant_name: string;
10713
10587
  };
10714
- /** CreateSessionResponse */
10715
- CreateSessionResponse: {
10716
- /** Connected */
10717
- connected: boolean;
10718
- /** Display Size */
10719
- display_size: number[];
10720
- /** Session Id */
10721
- session_id: string;
10588
+ /** CreateSessionRequest */
10589
+ CreateSessionRequest: {
10590
+ /** Branch Name */
10591
+ branch_name?: string | null;
10592
+ /**
10593
+ * Caller Id
10594
+ * @description Simulated caller phone number used to resolve patient context when `entity_id` is not provided (or does not match a row). Omitted/blank values are normalized to the `sim-orchestrator` sentinel, which yields no phone match and an empty caller context — same default the voice test-call WebSocket uses, so patient lookups resolve consistently across modalities.
10595
+ */
10596
+ caller_id?: string | null;
10597
+ /**
10598
+ * Entity Id
10599
+ * @description Optional world entity UUID to bind caller context directly. Precedence rules: (1) when this resolves to a world entity in the workspace, it WINS — `caller_id` is not used for identity resolution, and the resolution provenance is `entity_id_lookup`; (2) when this is a well-formed UUID with no matching entity (stale, deleted, wrong workspace), the session falls back to phone lookup against `caller_id` (provenance `phone_lookup`) — no error is raised, the sim is survivable; (3) malformed UUIDs are rejected with HTTP 422 before the request reaches agent-engine. The supplied `caller_id` is still recorded on the active call and surfaced in the greeting metadata in case (1).
10600
+ */
10601
+ entity_id?: string | null;
10602
+ /**
10603
+ * Service Id
10604
+ * Format: uuid
10605
+ */
10606
+ service_id: string;
10607
+ /** Tags */
10608
+ tags?: string[];
10722
10609
  };
10723
10610
  /**
10724
10611
  * CreateSimulationCaseItem
@@ -10802,12 +10689,6 @@ export interface components {
10802
10689
  * @default true
10803
10690
  */
10804
10691
  enabled?: boolean;
10805
- /**
10806
- * Execution Tier
10807
- * @default orchestrated
10808
- * @enum {string}
10809
- */
10810
- execution_tier?: "orchestrated" | "computer_use";
10811
10692
  /** Input Schema */
10812
10693
  input_schema: {
10813
10694
  [key: string]: unknown;
@@ -11584,7 +11465,7 @@ export interface components {
11584
11465
  * Source Type
11585
11466
  * @enum {string}
11586
11467
  */
11587
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake";
11468
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
11588
11469
  /** Sync Schedule */
11589
11470
  sync_schedule: string | null;
11590
11471
  /**
@@ -11872,93 +11753,6 @@ export interface components {
11872
11753
  url?: string | null;
11873
11754
  };
11874
11755
  DescriptionString: string;
11875
- /**
11876
- * DesktopIntegrationResponse
11877
- * @description Desktop variant — Computer Use connection fields. System-provisioned.
11878
- */
11879
- DesktopIntegrationResponse: {
11880
- /**
11881
- * Created At
11882
- * Format: date-time
11883
- * @description When the integration was created.
11884
- */
11885
- created_at: string;
11886
- /** Desktop Allowed Domains */
11887
- desktop_allowed_domains: string[];
11888
- /** Desktop Display Height */
11889
- desktop_display_height: number;
11890
- /** Desktop Display Width */
11891
- desktop_display_width: number;
11892
- /** Desktop Gateway Host */
11893
- desktop_gateway_host: string | null;
11894
- /** Desktop Gateway Password Ssm Path */
11895
- desktop_gateway_password_ssm_path: string | null;
11896
- /** Desktop Gateway User Ssm Path */
11897
- desktop_gateway_user_ssm_path: string | null;
11898
- /** Desktop Host */
11899
- desktop_host: string | null;
11900
- /** Desktop Load Balance Info */
11901
- desktop_load_balance_info: string | null;
11902
- /** Desktop Password Ssm Path */
11903
- desktop_password_ssm_path: string | null;
11904
- /** Desktop Port */
11905
- desktop_port: number | null;
11906
- /** Desktop Rdp File */
11907
- desktop_rdp_file: string | null;
11908
- /** Desktop Remote App */
11909
- desktop_remote_app: string | null;
11910
- /** Desktop Remote App Cmd */
11911
- desktop_remote_app_cmd: string | null;
11912
- /** Desktop Security */
11913
- desktop_security: ("nla" | "tls" | "rdp") | null;
11914
- /** Desktop Start Url */
11915
- desktop_start_url: string | null;
11916
- /**
11917
- * Desktop Type
11918
- * @enum {string}
11919
- */
11920
- desktop_type: "rdp" | "vnc" | "browser";
11921
- /** Desktop Username Ssm Path */
11922
- desktop_username_ssm_path: string | null;
11923
- /**
11924
- * Display Name
11925
- * @description Human-readable name.
11926
- */
11927
- display_name: string;
11928
- /**
11929
- * Enabled
11930
- * @description Whether the integration is active.
11931
- */
11932
- enabled: boolean;
11933
- /**
11934
- * Id
11935
- * Format: uuid
11936
- * @description Integration ID.
11937
- */
11938
- id: string;
11939
- /**
11940
- * @description Discriminator. (enum property replaced by openapi-typescript)
11941
- * @enum {string}
11942
- */
11943
- kind: "desktop";
11944
- /**
11945
- * Name
11946
- * @description Slug-like identifier, immutable post-create.
11947
- */
11948
- name: string;
11949
- /**
11950
- * Updated At
11951
- * Format: date-time
11952
- * @description When the integration was last updated.
11953
- */
11954
- updated_at: string;
11955
- /**
11956
- * Workspace Id
11957
- * Format: uuid
11958
- * @description Workspace ID.
11959
- */
11960
- workspace_id: string;
11961
- };
11962
11756
  /** DestroySessionResponse */
11963
11757
  DestroySessionResponse: {
11964
11758
  /**
@@ -12038,11 +11832,6 @@ export interface components {
12038
11832
  /** Total Facts */
12039
11833
  total_facts: number;
12040
11834
  };
12041
- /** DisconnectResponse */
12042
- DisconnectResponse: {
12043
- /** Ok */
12044
- ok: boolean;
12045
- };
12046
11835
  /** DistrictMetricsResponse */
12047
11836
  DistrictMetricsResponse: {
12048
11837
  /** Count */
@@ -15052,128 +14841,6 @@ export interface components {
15052
14841
  */
15053
14842
  turn_taking_quality?: string | null;
15054
14843
  };
15055
- /**
15056
- * InternalDesktopIntegrationItem
15057
- * @description Wire format for desktop integrations consumed by agent-engine.
15058
- */
15059
- InternalDesktopIntegrationItem: {
15060
- /**
15061
- * Desktop Allowed Domains
15062
- * @default []
15063
- */
15064
- desktop_allowed_domains?: string[];
15065
- /**
15066
- * Desktop Display Height
15067
- * @default 768
15068
- */
15069
- desktop_display_height?: number;
15070
- /**
15071
- * Desktop Display Width
15072
- * @default 1024
15073
- */
15074
- desktop_display_width?: number;
15075
- /** Desktop Gateway Host */
15076
- desktop_gateway_host?: string | null;
15077
- /** Desktop Gateway Password Ssm Path */
15078
- desktop_gateway_password_ssm_path?: string | null;
15079
- /** Desktop Gateway User Ssm Path */
15080
- desktop_gateway_user_ssm_path?: string | null;
15081
- /** Desktop Host */
15082
- desktop_host?: string | null;
15083
- /** Desktop Load Balance Info */
15084
- desktop_load_balance_info?: string | null;
15085
- /** Desktop Password Ssm Path */
15086
- desktop_password_ssm_path?: string | null;
15087
- /** Desktop Port */
15088
- desktop_port?: number | null;
15089
- /** Desktop Rdp File */
15090
- desktop_rdp_file?: string | null;
15091
- /** Desktop Remote App */
15092
- desktop_remote_app?: string | null;
15093
- /** Desktop Remote App Cmd */
15094
- desktop_remote_app_cmd?: string | null;
15095
- /** Desktop Security */
15096
- desktop_security?: ("nla" | "tls" | "rdp") | null;
15097
- /** Desktop Start Url */
15098
- desktop_start_url?: string | null;
15099
- /**
15100
- * Desktop Type
15101
- * @enum {string}
15102
- */
15103
- desktop_type: "rdp" | "vnc" | "browser";
15104
- /** Desktop Username Ssm Path */
15105
- desktop_username_ssm_path?: string | null;
15106
- /** Display Name */
15107
- display_name: string;
15108
- /**
15109
- * Enabled
15110
- * @default true
15111
- */
15112
- enabled?: boolean;
15113
- /**
15114
- * Id
15115
- * Format: uuid
15116
- */
15117
- id: string;
15118
- /**
15119
- * Kind
15120
- * @default desktop
15121
- * @constant
15122
- */
15123
- kind?: "desktop";
15124
- /** Name */
15125
- name: string;
15126
- /**
15127
- * Workspace Id
15128
- * Format: uuid
15129
- */
15130
- workspace_id: string;
15131
- };
15132
- /** InternalIntegrationsListResponse */
15133
- InternalIntegrationsListResponse: {
15134
- /** Items */
15135
- items: (components["schemas"]["InternalRestIntegrationItem"] | components["schemas"]["InternalDesktopIntegrationItem"])[];
15136
- };
15137
- /**
15138
- * InternalRestIntegrationItem
15139
- * @description Wire format for REST integrations consumed by agent-engine.
15140
- */
15141
- InternalRestIntegrationItem: {
15142
- /** Auth */
15143
- auth?: components["schemas"]["StaticHeaderAuthDict"] | components["schemas"]["OAuth2ClientCredentialsAuthDict"] | components["schemas"]["OAuth2JwtBearerAuthDict"] | components["schemas"]["CustomTokenExchangeAuthDict"] | null;
15144
- /** Base Url */
15145
- base_url: string;
15146
- /** Display Name */
15147
- display_name: string;
15148
- /**
15149
- * Enabled
15150
- * @default true
15151
- */
15152
- enabled?: boolean;
15153
- /**
15154
- * Endpoints
15155
- * @default []
15156
- */
15157
- endpoints?: components["schemas"]["EndpointResponse"][];
15158
- /**
15159
- * Id
15160
- * Format: uuid
15161
- */
15162
- id: string;
15163
- /**
15164
- * Kind
15165
- * @default rest
15166
- * @constant
15167
- */
15168
- kind?: "rest";
15169
- /** Name */
15170
- name: string;
15171
- /**
15172
- * Workspace Id
15173
- * Format: uuid
15174
- */
15175
- workspace_id: string;
15176
- };
15177
14844
  /**
15178
14845
  * InternalServiceConfigResponse
15179
14846
  * @description Composite response matching ServiceConfig shape for voice-agent consumption.
@@ -15212,12 +14879,6 @@ export interface components {
15212
14879
  * @default true
15213
14880
  */
15214
14881
  enabled?: boolean;
15215
- /**
15216
- * Execution Tier
15217
- * @default orchestrated
15218
- * @enum {string}
15219
- */
15220
- execution_tier?: "orchestrated" | "computer_use";
15221
14882
  /**
15222
14883
  * Id
15223
14884
  * Format: uuid
@@ -19182,10 +18843,12 @@ export interface components {
19182
18843
  */
19183
18844
  id: string;
19184
18845
  /**
19185
- * @description Discriminator. (enum property replaced by openapi-typescript)
19186
- * @enum {string}
18846
+ * Kind
18847
+ * @description Discriminator.
18848
+ * @default rest
18849
+ * @constant
19187
18850
  */
19188
- kind: "rest";
18851
+ kind?: "rest";
19189
18852
  /**
19190
18853
  * Name
19191
18854
  * @description Slug-like identifier, immutable post-create.
@@ -20314,19 +19977,6 @@ export interface components {
20314
19977
  */
20315
19978
  workspace_id?: string | null;
20316
19979
  };
20317
- /** SessionStatusResponse */
20318
- SessionStatusResponse: {
20319
- /** Connected */
20320
- connected: boolean;
20321
- /** Created At */
20322
- created_at: number;
20323
- /** Healthy */
20324
- healthy: boolean;
20325
- /** Idle Seconds */
20326
- idle_seconds: number;
20327
- /** Session Id */
20328
- session_id: string;
20329
- };
20330
19980
  /** SetColumnDefaultAction */
20331
19981
  SetColumnDefaultAction: {
20332
19982
  default: components["schemas"]["Default"];
@@ -20741,6 +20391,53 @@ export interface components {
20741
20391
  /** Temperament */
20742
20392
  temperament?: string | null;
20743
20393
  };
20394
+ /** SimulationEvalResultResponse */
20395
+ SimulationEvalResultResponse: {
20396
+ /** Actual */
20397
+ actual?: unknown | null;
20398
+ /** Assertion Kind */
20399
+ assertion_kind?: string | null;
20400
+ /** Case Id */
20401
+ case_id?: string | null;
20402
+ /** Created At */
20403
+ created_at?: string | null;
20404
+ /** Definition */
20405
+ definition?: {
20406
+ [key: string]: unknown;
20407
+ };
20408
+ /** Details */
20409
+ details?: {
20410
+ [key: string]: unknown;
20411
+ };
20412
+ /** Eval Key */
20413
+ eval_key: string;
20414
+ /**
20415
+ * Eval Type
20416
+ * @enum {string}
20417
+ */
20418
+ eval_type: "assertion" | "metric";
20419
+ /** Expected */
20420
+ expected?: unknown | null;
20421
+ /** Id */
20422
+ id?: string | null;
20423
+ /** Metric Key */
20424
+ metric_key?: string | null;
20425
+ /** Passed */
20426
+ passed?: boolean | null;
20427
+ /** Rationale */
20428
+ rationale?: string | null;
20429
+ /** Run Id */
20430
+ run_id?: string | null;
20431
+ /** Score */
20432
+ score?: number | null;
20433
+ /** Session Id */
20434
+ session_id?: string | null;
20435
+ /**
20436
+ * Status
20437
+ * @enum {string}
20438
+ */
20439
+ status: "passed" | "failed" | "pending" | "skipped" | "error";
20440
+ };
20744
20441
  /** SimulationIntelligenceResponse */
20745
20442
  SimulationIntelligenceResponse: {
20746
20443
  /** Intelligence */
@@ -20804,6 +20501,28 @@ export interface components {
20804
20501
  completed_at?: string | null;
20805
20502
  /** Created At */
20806
20503
  created_at?: string | null;
20504
+ /**
20505
+ * Eval Error Count
20506
+ * @default 0
20507
+ */
20508
+ eval_error_count?: number;
20509
+ /**
20510
+ * Eval Fail Count
20511
+ * @default 0
20512
+ */
20513
+ eval_fail_count?: number;
20514
+ /**
20515
+ * Eval Pass Count
20516
+ * @default 0
20517
+ */
20518
+ eval_pass_count?: number;
20519
+ /**
20520
+ * Eval Result Count
20521
+ * @default 0
20522
+ */
20523
+ eval_result_count?: number;
20524
+ /** Eval Results */
20525
+ eval_results?: components["schemas"]["SimulationEvalResultResponse"][];
20807
20526
  /**
20808
20527
  * Id
20809
20528
  * Format: uuid
@@ -21153,11 +20872,6 @@ export interface components {
21153
20872
  enable_citations: boolean;
21154
20873
  /** Enabled */
21155
20874
  enabled: boolean;
21156
- /**
21157
- * Execution Tier
21158
- * @enum {string}
21159
- */
21160
- execution_tier: "orchestrated" | "computer_use";
21161
20875
  /**
21162
20876
  * Id
21163
20877
  * Format: uuid
@@ -21312,7 +21026,7 @@ export interface components {
21312
21026
  * Source Type
21313
21027
  * @enum {string}
21314
21028
  */
21315
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake";
21029
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21316
21030
  };
21317
21031
  /** SourceOverviewResponse */
21318
21032
  SourceOverviewResponse: {
@@ -21372,7 +21086,7 @@ export interface components {
21372
21086
  * Source Type
21373
21087
  * @enum {string}
21374
21088
  */
21375
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake";
21089
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21376
21090
  };
21377
21091
  /** SourceStatus */
21378
21092
  SourceStatus: {
@@ -21411,7 +21125,7 @@ export interface components {
21411
21125
  * Source Type
21412
21126
  * @enum {string}
21413
21127
  */
21414
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake";
21128
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21415
21129
  /** Status */
21416
21130
  status: string;
21417
21131
  /**
@@ -22379,71 +22093,6 @@ export interface components {
22379
22093
  /** Ordered Pathways */
22380
22094
  ordered_pathways?: components["schemas"]["OrderedPathway"][];
22381
22095
  };
22382
- /** TaskListResponse */
22383
- TaskListResponse: {
22384
- /** Tasks */
22385
- tasks: components["schemas"]["TaskStateResponse"][];
22386
- };
22387
- /** TaskStateResponse */
22388
- TaskStateResponse: {
22389
- /**
22390
- * Cached Tokens
22391
- * @default 0
22392
- */
22393
- cached_tokens?: number;
22394
- /** Call Sid */
22395
- call_sid: string;
22396
- /** Completed At */
22397
- completed_at?: string | null;
22398
- /** Dispatched At */
22399
- dispatched_at?: string | null;
22400
- /** Duration Ms */
22401
- duration_ms?: number | null;
22402
- /** Error */
22403
- error?: string | null;
22404
- /** Error Type */
22405
- error_type?: string | null;
22406
- /**
22407
- * Input Tokens
22408
- * @default 0
22409
- */
22410
- input_tokens?: number;
22411
- /**
22412
- * Output Tokens
22413
- * @default 0
22414
- */
22415
- output_tokens?: number;
22416
- /** Progress Message */
22417
- progress_message?: string | null;
22418
- /** Progress Step */
22419
- progress_step?: number | null;
22420
- /** Result */
22421
- result?: string | null;
22422
- /** Skill */
22423
- skill: string;
22424
- /**
22425
- * Status
22426
- * @enum {string}
22427
- */
22428
- status: "pending" | "dispatched" | "running" | "completed" | "failed" | "cancelled" | "timeout";
22429
- /**
22430
- * Sub Tool Count
22431
- * @default 0
22432
- */
22433
- sub_tool_count?: number;
22434
- /** Task Id */
22435
- task_id: string;
22436
- /**
22437
- * Tier
22438
- * @enum {string}
22439
- */
22440
- tier: "companion" | "desktop" | "computer_use";
22441
- /**
22442
- * Workspace Id
22443
- * Format: uuid
22444
- */
22445
- workspace_id: string;
22446
- };
22447
22096
  /** TestCallerNumbersRequest */
22448
22097
  TestCallerNumbersRequest: {
22449
22098
  /** Numbers */
@@ -24132,8 +23781,6 @@ export interface components {
24132
23781
  enable_citations?: boolean | null;
24133
23782
  /** Enabled */
24134
23783
  enabled?: boolean | null;
24135
- /** Execution Tier */
24136
- execution_tier?: ("orchestrated" | "computer_use") | null;
24137
23784
  /** Input Schema */
24138
23785
  input_schema?: {
24139
23786
  [key: string]: unknown;
@@ -25318,10 +24965,6 @@ export interface components {
25318
24965
  /** Updated At */
25319
24966
  updated_at: string;
25320
24967
  };
25321
- /** CreateSessionRequest */
25322
- src__routes__desktop_sessions__CreateSessionRequest: {
25323
- integration_name: components["schemas"]["NameString"];
25324
- };
25325
24968
  /**
25326
24969
  * Request
25327
24970
  * @description Add a new endpoint to a REST integration (V186 flat shape).
@@ -25478,7 +25121,7 @@ export interface components {
25478
25121
  * Items
25479
25122
  * @description The integrations matching the request filters.
25480
25123
  */
25481
- items: (components["schemas"]["RestIntegrationResponse"] | components["schemas"]["DesktopIntegrationResponse"])[];
25124
+ items: components["schemas"]["RestIntegrationResponse"][];
25482
25125
  };
25483
25126
  /**
25484
25127
  * Request
@@ -25680,28 +25323,6 @@ export interface components {
25680
25323
  */
25681
25324
  workspace_id: string;
25682
25325
  };
25683
- /** CreateSessionRequest */
25684
- src__routes__simulations__CreateSessionRequest: {
25685
- /** Branch Name */
25686
- branch_name?: string | null;
25687
- /**
25688
- * Caller Id
25689
- * @description Simulated caller phone number used to resolve patient context when `entity_id` is not provided (or does not match a row). Omitted/blank values are normalized to the `sim-orchestrator` sentinel, which yields no phone match and an empty caller context — same default the voice test-call WebSocket uses, so patient lookups resolve consistently across modalities.
25690
- */
25691
- caller_id?: string | null;
25692
- /**
25693
- * Entity Id
25694
- * @description Optional world entity UUID to bind caller context directly. Precedence rules: (1) when this resolves to a world entity in the workspace, it WINS — `caller_id` is not used for identity resolution, and the resolution provenance is `entity_id_lookup`; (2) when this is a well-formed UUID with no matching entity (stale, deleted, wrong workspace), the session falls back to phone lookup against `caller_id` (provenance `phone_lookup`) — no error is raised, the sim is survivable; (3) malformed UUIDs are rejected with HTTP 422 before the request reaches agent-engine. The supplied `caller_id` is still recorded on the active call and surfaced in the greeting metadata in case (1).
25695
- */
25696
- entity_id?: string | null;
25697
- /**
25698
- * Service Id
25699
- * Format: uuid
25700
- */
25701
- service_id: string;
25702
- /** Tags */
25703
- tags?: string[];
25704
- };
25705
25326
  /**
25706
25327
  * Request
25707
25328
  * @description Create body — the authored shape of a new workspace data query.
@@ -32073,173 +31694,6 @@ export interface operations {
32073
31694
  };
32074
31695
  };
32075
31696
  };
32076
- create_desktop_session_v1__workspace_id__desktop_sessions_post: {
32077
- parameters: {
32078
- query?: never;
32079
- header?: never;
32080
- path: {
32081
- workspace_id: string;
32082
- };
32083
- cookie?: never;
32084
- };
32085
- requestBody: {
32086
- content: {
32087
- "application/json": components["schemas"]["src__routes__desktop_sessions__CreateSessionRequest"];
32088
- };
32089
- };
32090
- responses: {
32091
- /** @description Successful Response */
32092
- 201: {
32093
- headers: {
32094
- [name: string]: unknown;
32095
- };
32096
- content: {
32097
- "application/json": components["schemas"]["CreateSessionResponse"];
32098
- };
32099
- };
32100
- /** @description Validation Error */
32101
- 422: {
32102
- headers: {
32103
- [name: string]: unknown;
32104
- };
32105
- content: {
32106
- "application/json": components["schemas"]["HTTPValidationError"];
32107
- };
32108
- };
32109
- };
32110
- };
32111
- disconnect_session_v1__workspace_id__desktop_sessions__session_id__delete: {
32112
- parameters: {
32113
- query?: never;
32114
- header?: never;
32115
- path: {
32116
- workspace_id: string;
32117
- session_id: string;
32118
- };
32119
- cookie?: never;
32120
- };
32121
- requestBody?: never;
32122
- responses: {
32123
- /** @description Successful Response */
32124
- 200: {
32125
- headers: {
32126
- [name: string]: unknown;
32127
- };
32128
- content: {
32129
- "application/json": components["schemas"]["DisconnectResponse"];
32130
- };
32131
- };
32132
- /** @description Validation Error */
32133
- 422: {
32134
- headers: {
32135
- [name: string]: unknown;
32136
- };
32137
- content: {
32138
- "application/json": components["schemas"]["HTTPValidationError"];
32139
- };
32140
- };
32141
- };
32142
- };
32143
- perform_action_v1__workspace_id__desktop_sessions__session_id__action_post: {
32144
- parameters: {
32145
- query?: never;
32146
- header?: never;
32147
- path: {
32148
- workspace_id: string;
32149
- session_id: string;
32150
- };
32151
- cookie?: never;
32152
- };
32153
- requestBody: {
32154
- content: {
32155
- "application/json": components["schemas"]["ActionRequest"];
32156
- };
32157
- };
32158
- responses: {
32159
- /** @description Successful Response */
32160
- 200: {
32161
- headers: {
32162
- [name: string]: unknown;
32163
- };
32164
- content: {
32165
- "application/json": components["schemas"]["ActionResponse"];
32166
- };
32167
- };
32168
- /** @description Validation Error */
32169
- 422: {
32170
- headers: {
32171
- [name: string]: unknown;
32172
- };
32173
- content: {
32174
- "application/json": components["schemas"]["HTTPValidationError"];
32175
- };
32176
- };
32177
- };
32178
- };
32179
- get_screenshot_v1__workspace_id__desktop_sessions__session_id__screenshot_get: {
32180
- parameters: {
32181
- query?: never;
32182
- header?: never;
32183
- path: {
32184
- workspace_id: string;
32185
- session_id: string;
32186
- };
32187
- cookie?: never;
32188
- };
32189
- requestBody?: never;
32190
- responses: {
32191
- /** @description Successful Response */
32192
- 200: {
32193
- headers: {
32194
- [name: string]: unknown;
32195
- };
32196
- content: {
32197
- "application/json": unknown;
32198
- };
32199
- };
32200
- /** @description Validation Error */
32201
- 422: {
32202
- headers: {
32203
- [name: string]: unknown;
32204
- };
32205
- content: {
32206
- "application/json": components["schemas"]["HTTPValidationError"];
32207
- };
32208
- };
32209
- };
32210
- };
32211
- get_session_status_v1__workspace_id__desktop_sessions__session_id__status_get: {
32212
- parameters: {
32213
- query?: never;
32214
- header?: never;
32215
- path: {
32216
- workspace_id: string;
32217
- session_id: string;
32218
- };
32219
- cookie?: never;
32220
- };
32221
- requestBody?: never;
32222
- responses: {
32223
- /** @description Successful Response */
32224
- 200: {
32225
- headers: {
32226
- [name: string]: unknown;
32227
- };
32228
- content: {
32229
- "application/json": components["schemas"]["SessionStatusResponse"];
32230
- };
32231
- };
32232
- /** @description Validation Error */
32233
- 422: {
32234
- headers: {
32235
- [name: string]: unknown;
32236
- };
32237
- content: {
32238
- "application/json": components["schemas"]["HTTPValidationError"];
32239
- };
32240
- };
32241
- };
32242
- };
32243
31697
  get_latest_brief_v1__workspace_id__entities__entity_id__brief_get: {
32244
31698
  parameters: {
32245
31699
  query?: never;
@@ -33872,7 +33326,7 @@ export interface operations {
33872
33326
  [name: string]: unknown;
33873
33327
  };
33874
33328
  content: {
33875
- "application/json": components["schemas"]["RestIntegrationResponse"] | components["schemas"]["DesktopIntegrationResponse"];
33329
+ "application/json": components["schemas"]["RestIntegrationResponse"];
33876
33330
  };
33877
33331
  };
33878
33332
  /** @description Missing or invalid API key. */
@@ -39850,7 +39304,7 @@ export interface operations {
39850
39304
  };
39851
39305
  requestBody: {
39852
39306
  content: {
39853
- "application/json": components["schemas"]["src__routes__simulations__CreateSessionRequest"];
39307
+ "application/json": components["schemas"]["CreateSessionRequest"];
39854
39308
  };
39855
39309
  };
39856
39310
  responses: {
@@ -40068,7 +39522,7 @@ export interface operations {
40068
39522
  };
40069
39523
  requestBody: {
40070
39524
  content: {
40071
- "application/json": components["schemas"]["src__routes__simulations__CreateSessionRequest"];
39525
+ "application/json": components["schemas"]["CreateSessionRequest"];
40072
39526
  };
40073
39527
  };
40074
39528
  responses: {
@@ -40599,7 +40053,6 @@ export interface operations {
40599
40053
  parameters: {
40600
40054
  query?: {
40601
40055
  enabled?: boolean | null;
40602
- execution_tier?: ("orchestrated" | "computer_use") | null;
40603
40056
  search?: components["schemas"]["SearchString"] | null;
40604
40057
  sort_by?: string | null;
40605
40058
  limit?: number;
@@ -41729,77 +41182,6 @@ export interface operations {
41729
41182
  };
41730
41183
  };
41731
41184
  };
41732
- list_tasks_by_call_v1__workspace_id__tasks_by_call__call_sid__get: {
41733
- parameters: {
41734
- query?: never;
41735
- header?: never;
41736
- path: {
41737
- workspace_id: string;
41738
- call_sid: string;
41739
- };
41740
- cookie?: never;
41741
- };
41742
- requestBody?: never;
41743
- responses: {
41744
- /** @description List of tasks (may be empty) */
41745
- 200: {
41746
- headers: {
41747
- [name: string]: unknown;
41748
- };
41749
- content: {
41750
- "application/json": components["schemas"]["TaskListResponse"];
41751
- };
41752
- };
41753
- /** @description Validation Error */
41754
- 422: {
41755
- headers: {
41756
- [name: string]: unknown;
41757
- };
41758
- content: {
41759
- "application/json": components["schemas"]["HTTPValidationError"];
41760
- };
41761
- };
41762
- };
41763
- };
41764
- get_task_v1__workspace_id__tasks__task_id__get: {
41765
- parameters: {
41766
- query?: never;
41767
- header?: never;
41768
- path: {
41769
- workspace_id: string;
41770
- task_id: string;
41771
- };
41772
- cookie?: never;
41773
- };
41774
- requestBody?: never;
41775
- responses: {
41776
- /** @description Successful Response */
41777
- 200: {
41778
- headers: {
41779
- [name: string]: unknown;
41780
- };
41781
- content: {
41782
- "application/json": components["schemas"]["TaskStateResponse"];
41783
- };
41784
- };
41785
- /** @description Task not found or expired */
41786
- 404: {
41787
- headers: {
41788
- [name: string]: unknown;
41789
- };
41790
- content?: never;
41791
- };
41792
- /** @description Validation Error */
41793
- 422: {
41794
- headers: {
41795
- [name: string]: unknown;
41796
- };
41797
- content: {
41798
- "application/json": components["schemas"]["HTTPValidationError"];
41799
- };
41800
- };
41801
- };
41802
- };
41803
41185
  "execute-tool-test": {
41804
41186
  parameters: {
41805
41187
  query?: never;