@amigo-ai/platform-sdk 0.56.0 → 0.57.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 (48) hide show
  1. package/README.md +9 -6
  2. package/api.md +9 -22
  3. package/dist/index.cjs +67 -166
  4. package/dist/index.cjs.map +4 -4
  5. package/dist/index.js +4 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +67 -166
  8. package/dist/index.mjs.map +4 -4
  9. package/dist/resources/fhir.js +1 -7
  10. package/dist/resources/fhir.js.map +1 -1
  11. package/dist/resources/settings.js +1 -19
  12. package/dist/resources/settings.js.map +1 -1
  13. package/dist/resources/workspace-data-queries.js +41 -0
  14. package/dist/resources/workspace-data-queries.js.map +1 -0
  15. package/dist/resources/world.js +0 -27
  16. package/dist/resources/world.js.map +1 -1
  17. package/dist/types/generated/api.d.ts +885 -2242
  18. package/dist/types/generated/api.d.ts.map +1 -1
  19. package/dist/types/index.d.cts +4 -2
  20. package/dist/types/index.d.cts.map +1 -1
  21. package/dist/types/index.d.ts +4 -2
  22. package/dist/types/index.d.ts.map +1 -1
  23. package/dist/types/resources/actions.d.ts +0 -5
  24. package/dist/types/resources/actions.d.ts.map +1 -1
  25. package/dist/types/resources/calls.d.ts +12 -0
  26. package/dist/types/resources/calls.d.ts.map +1 -1
  27. package/dist/types/resources/fhir.d.ts +1 -22
  28. package/dist/types/resources/fhir.d.ts.map +1 -1
  29. package/dist/types/resources/intake.d.ts.map +1 -1
  30. package/dist/types/resources/metrics.d.ts +6 -2
  31. package/dist/types/resources/metrics.d.ts.map +1 -1
  32. package/dist/types/resources/operators.d.ts.map +1 -1
  33. package/dist/types/resources/services.d.ts +135 -0
  34. package/dist/types/resources/services.d.ts.map +1 -1
  35. package/dist/types/resources/settings.d.ts +5 -143
  36. package/dist/types/resources/settings.d.ts.map +1 -1
  37. package/dist/types/resources/skills.d.ts +0 -5
  38. package/dist/types/resources/skills.d.ts.map +1 -1
  39. package/dist/types/resources/surfaces.d.ts.map +1 -1
  40. package/dist/types/resources/workspace-data-queries.d.ts +22 -0
  41. package/dist/types/resources/workspace-data-queries.d.ts.map +1 -0
  42. package/dist/types/resources/world.d.ts +25 -82
  43. package/dist/types/resources/world.d.ts.map +1 -1
  44. package/package.json +1 -1
  45. package/dist/resources/webhook-destinations.js +0 -50
  46. package/dist/resources/webhook-destinations.js.map +0 -1
  47. package/dist/types/resources/webhook-destinations.d.ts +0 -125
  48. package/dist/types/resources/webhook-destinations.d.ts.map +0 -1
@@ -1645,7 +1645,7 @@ export interface paths {
1645
1645
  };
1646
1646
  /**
1647
1647
  * Call metric values
1648
- * @description Latest per-call Universal Metric Store values for the call detail sidebar.
1648
+ * @description Latest per-call realtime metric values for the call detail sidebar.
1649
1649
  */
1650
1650
  get: operations["list-call-metric-values"];
1651
1651
  put?: never;
@@ -2250,6 +2250,60 @@ export interface paths {
2250
2250
  patch?: never;
2251
2251
  trace?: never;
2252
2252
  };
2253
+ "/v1/{workspace_id}/data_queries": {
2254
+ parameters: {
2255
+ query?: never;
2256
+ header?: never;
2257
+ path?: never;
2258
+ cookie?: never;
2259
+ };
2260
+ /** List Workspace Data Queries */
2261
+ get: operations["list-workspace-data-queries"];
2262
+ put?: never;
2263
+ /** Create Workspace Data Query */
2264
+ post: operations["create-workspace-data-query"];
2265
+ delete?: never;
2266
+ options?: never;
2267
+ head?: never;
2268
+ patch?: never;
2269
+ trace?: never;
2270
+ };
2271
+ "/v1/{workspace_id}/data_queries/{query_id}": {
2272
+ parameters: {
2273
+ query?: never;
2274
+ header?: never;
2275
+ path?: never;
2276
+ cookie?: never;
2277
+ };
2278
+ /** Get Workspace Data Query */
2279
+ get: operations["get-workspace-data-query"];
2280
+ put?: never;
2281
+ post?: never;
2282
+ /** Delete Workspace Data Query */
2283
+ delete: operations["delete-workspace-data-query"];
2284
+ options?: never;
2285
+ head?: never;
2286
+ /** Update Workspace Data Query */
2287
+ patch: operations["update-workspace-data-query"];
2288
+ trace?: never;
2289
+ };
2290
+ "/v1/{workspace_id}/data_queries/{query_id}/invoke": {
2291
+ parameters: {
2292
+ query?: never;
2293
+ header?: never;
2294
+ path?: never;
2295
+ cookie?: never;
2296
+ };
2297
+ get?: never;
2298
+ put?: never;
2299
+ /** Invoke Workspace Data Query */
2300
+ post: operations["invoke-workspace-data-query"];
2301
+ delete?: never;
2302
+ options?: never;
2303
+ head?: never;
2304
+ patch?: never;
2305
+ trace?: never;
2306
+ };
2253
2307
  "/v1/{workspace_id}/desktop-sessions": {
2254
2308
  parameters: {
2255
2309
  query?: never;
@@ -2687,26 +2741,6 @@ export interface paths {
2687
2741
  patch?: never;
2688
2742
  trace?: never;
2689
2743
  };
2690
- "/v1/{workspace_id}/fhir/sync-failures": {
2691
- parameters: {
2692
- query?: never;
2693
- header?: never;
2694
- path?: never;
2695
- cookie?: never;
2696
- };
2697
- /**
2698
- * List sync failures
2699
- * @description Get events that permanently failed to sync to the external EHR. These need manual attention.
2700
- */
2701
- get: operations["fhir-sync-failures"];
2702
- put?: never;
2703
- post?: never;
2704
- delete?: never;
2705
- options?: never;
2706
- head?: never;
2707
- patch?: never;
2708
- trace?: never;
2709
- };
2710
2744
  "/v1/{workspace_id}/fhir/views/appointments": {
2711
2745
  parameters: {
2712
2746
  query?: never;
@@ -2949,23 +2983,6 @@ export interface paths {
2949
2983
  patch?: never;
2950
2984
  trace?: never;
2951
2985
  };
2952
- "/v1/{workspace_id}/hooks/{destination_id}": {
2953
- parameters: {
2954
- query?: never;
2955
- header?: never;
2956
- path?: never;
2957
- cookie?: never;
2958
- };
2959
- get?: never;
2960
- put?: never;
2961
- /** Receive Webhook */
2962
- post: operations["receive_webhook_v1__workspace_id__hooks__destination_id__post"];
2963
- delete?: never;
2964
- options?: never;
2965
- head?: never;
2966
- patch?: never;
2967
- trace?: never;
2968
- };
2969
2986
  "/v1/{workspace_id}/insights/digest": {
2970
2987
  parameters: {
2971
2988
  query?: never;
@@ -3854,26 +3871,6 @@ export interface paths {
3854
3871
  patch?: never;
3855
3872
  trace?: never;
3856
3873
  };
3857
- "/v1/{workspace_id}/metrics/{metric_key}/evaluate": {
3858
- parameters: {
3859
- query?: never;
3860
- header?: never;
3861
- path?: never;
3862
- cookie?: never;
3863
- };
3864
- get?: never;
3865
- put?: never;
3866
- /**
3867
- * Evaluate a metric once without storing it
3868
- * @description Execute one metric definition without persisting to UMS.
3869
- */
3870
- post: operations["evaluate-metric"];
3871
- delete?: never;
3872
- options?: never;
3873
- head?: never;
3874
- patch?: never;
3875
- trace?: never;
3876
- };
3877
3874
  "/v1/{workspace_id}/metrics/{metric_key}/trend": {
3878
3875
  parameters: {
3879
3876
  query?: never;
@@ -4481,7 +4478,7 @@ export interface paths {
4481
4478
  * List prompt logs for a workspace
4482
4479
  * @description Lists ``prompt_log`` events emitted by agent-engine — full system prompt, conversation history, tool catalog, LLM model, and response — for auditing and debugging. Reads the Delta ``world_events`` ledger via Databricks SQL; typical latency is 1-5s with a 15s ceiling on cold-start.
4483
4480
  *
4484
- * **Conversation filter**: pass ``conversation_id`` (UUID from ``world.entities``) for the canonical mental model works uniformly across voice, text, and sim modalities. ``call_sid`` is the legacy direct-SID filter (Twilio CA-SID for voice, session_id UUID otherwise) and is mutually exclusive with ``conversation_id``.
4481
+ * **Conversation filter**: pass ``conversation_id`` for the canonical mental model. Text conversations resolve from ``world.conversations``; voice/call IDs resolve through the projected conversation entity. ``call_sid`` is the legacy direct-SID filter (Twilio CA-SID for voice, session_id UUID otherwise) and is mutually exclusive with ``conversation_id``.
4485
4482
  *
4486
4483
  * **Other filters**: ``prompt_type``, ``state_name``, ``from_ts``, ``to_ts``. When no selectivity-bearing filter (conversation_id / call_sid / time range) is supplied, the query is auto-capped to the last 7 days; the applied window is reported in ``applied_time_window_days``.
4487
4484
  *
@@ -5239,39 +5236,6 @@ export interface paths {
5239
5236
  patch?: never;
5240
5237
  trace?: never;
5241
5238
  };
5242
- "/v1/{workspace_id}/settings/behaviors": {
5243
- parameters: {
5244
- query?: never;
5245
- header?: never;
5246
- path?: never;
5247
- cookie?: never;
5248
- };
5249
- /**
5250
- * Get dynamic behavior settings
5251
- * @description Get the workspace dynamic behavior settings.
5252
- *
5253
- * Returns defaults (disabled, empty) when not configured.
5254
- *
5255
- * Permissions: authenticated (any role).
5256
- */
5257
- get: operations["get-behavior-settings"];
5258
- /**
5259
- * Update dynamic behavior settings
5260
- * @description Update the workspace dynamic behavior settings.
5261
- *
5262
- * Partial updates supported — only provided fields are changed.
5263
- * Behaviors list is replaced entirely when provided.
5264
- *
5265
- * Permissions: admin, owner.
5266
- */
5267
- put: operations["update-behavior-settings"];
5268
- post?: never;
5269
- delete?: never;
5270
- options?: never;
5271
- head?: never;
5272
- patch?: never;
5273
- trace?: never;
5274
- };
5275
5239
  "/v1/{workspace_id}/settings/branding": {
5276
5240
  parameters: {
5277
5241
  query?: never;
@@ -5716,34 +5680,6 @@ export interface paths {
5716
5680
  patch?: never;
5717
5681
  trace?: never;
5718
5682
  };
5719
- "/v1/{workspace_id}/settings/workflows": {
5720
- parameters: {
5721
- query?: never;
5722
- header?: never;
5723
- path?: never;
5724
- cookie?: never;
5725
- };
5726
- /**
5727
- * Get workflow specs
5728
- * @description Get workflow specs for this workspace.
5729
- *
5730
- * Permissions: authenticated (any role).
5731
- */
5732
- get: operations["get-workflow-settings"];
5733
- /**
5734
- * Update workflow specs
5735
- * @description Update workflow specs.
5736
- *
5737
- * Permissions: admin, owner.
5738
- */
5739
- put: operations["update-workflow-settings"];
5740
- post?: never;
5741
- delete?: never;
5742
- options?: never;
5743
- head?: never;
5744
- patch?: never;
5745
- trace?: never;
5746
- };
5747
5683
  "/v1/{workspace_id}/simulations/benchmarks/results": {
5748
5684
  parameters: {
5749
5685
  query?: never;
@@ -6300,7 +6236,7 @@ export interface paths {
6300
6236
  get: operations["get-skill"];
6301
6237
  /**
6302
6238
  * Update a skill
6303
- * @description Update a skill's configuration. Increments version and creates an audit trail snapshot.
6239
+ * @description Update a skill's configuration in place.
6304
6240
  *
6305
6241
  * **Field semantics.** Omitted fields and explicit ``null`` are treated identically — both leave the existing value unchanged. Empty-string is rejected with 422 for fields that carry a ``minLength`` bound (``model``). Clearing a previously-set optional value back to ``null`` is not currently supported via PUT.
6306
6242
  *
@@ -6310,7 +6246,7 @@ export interface paths {
6310
6246
  post?: never;
6311
6247
  /**
6312
6248
  * Delete a skill
6313
- * @description Delete a skill. SkillVersion audit trail is retained.
6249
+ * @description Delete a skill.
6314
6250
  *
6315
6251
  * **Not idempotent.** A second concurrent caller racing the same delete will receive ``404 Not Found`` once the row is gone — clients should treat 404 as success-equivalent for cleanup workflows. Requires `Skill.delete` permission.
6316
6252
  */
@@ -6864,104 +6800,6 @@ export interface paths {
6864
6800
  patch?: never;
6865
6801
  trace?: never;
6866
6802
  };
6867
- "/v1/{workspace_id}/voicemail": {
6868
- parameters: {
6869
- query?: never;
6870
- header?: never;
6871
- path?: never;
6872
- cookie?: never;
6873
- };
6874
- /**
6875
- * List voicemails
6876
- * @description List voicemail records with optional filters. Requires Channel.view permission.
6877
- */
6878
- get: operations["list-voicemails"];
6879
- put?: never;
6880
- /**
6881
- * Send a voicemail
6882
- * @description Send a ringless voicemail. Accepts multipart form with use_case_id, recipient_phone_number (US E.164), and audio MP3 file (10-60s, max 8 MB). Requires Channel.send permission.
6883
- */
6884
- post: operations["send-voicemail"];
6885
- delete?: never;
6886
- options?: never;
6887
- head?: never;
6888
- patch?: never;
6889
- trace?: never;
6890
- };
6891
- "/v1/{workspace_id}/webhook-destinations": {
6892
- parameters: {
6893
- query?: never;
6894
- header?: never;
6895
- path?: never;
6896
- cookie?: never;
6897
- };
6898
- /** List webhook destinations */
6899
- get: operations["list-webhook-destinations"];
6900
- put?: never;
6901
- /** Create a webhook destination */
6902
- post: operations["create-webhook-destination"];
6903
- delete?: never;
6904
- options?: never;
6905
- head?: never;
6906
- patch?: never;
6907
- trace?: never;
6908
- };
6909
- "/v1/{workspace_id}/webhook-destinations/{destination_id}": {
6910
- parameters: {
6911
- query?: never;
6912
- header?: never;
6913
- path?: never;
6914
- cookie?: never;
6915
- };
6916
- /** Get a webhook destination */
6917
- get: operations["get-webhook-destination"];
6918
- /** Update a webhook destination */
6919
- put: operations["update-webhook-destination"];
6920
- post?: never;
6921
- /** Delete a webhook destination */
6922
- delete: operations["delete-webhook-destination"];
6923
- options?: never;
6924
- head?: never;
6925
- patch?: never;
6926
- trace?: never;
6927
- };
6928
- "/v1/{workspace_id}/webhook-destinations/{destination_id}/deliveries": {
6929
- parameters: {
6930
- query?: never;
6931
- header?: never;
6932
- path?: never;
6933
- cookie?: never;
6934
- };
6935
- /**
6936
- * List webhook delivery history
6937
- * @description Delivery history from the Lakebase entity-event timeline read model.
6938
- */
6939
- get: operations["list-webhook-destination-deliveries"];
6940
- put?: never;
6941
- post?: never;
6942
- delete?: never;
6943
- options?: never;
6944
- head?: never;
6945
- patch?: never;
6946
- trace?: never;
6947
- };
6948
- "/v1/{workspace_id}/webhook-destinations/{destination_id}/rotate-secret": {
6949
- parameters: {
6950
- query?: never;
6951
- header?: never;
6952
- path?: never;
6953
- cookie?: never;
6954
- };
6955
- get?: never;
6956
- put?: never;
6957
- /** Rotate the destination's HMAC signing secret */
6958
- post: operations["rotate-webhook-destination-secret"];
6959
- delete?: never;
6960
- options?: never;
6961
- head?: never;
6962
- patch?: never;
6963
- trace?: never;
6964
- };
6965
6803
  "/v1/{workspace_id}/world/connectors": {
6966
6804
  parameters: {
6967
6805
  query?: never;
@@ -7179,7 +7017,7 @@ export interface paths {
7179
7017
  };
7180
7018
  /**
7181
7019
  * List current enrichment values for an entity
7182
- * @description Current winners per (entity, key) from world.entity_enrichment (Synced-Table-populated view of SDP's entity_enrichment_current). Each row carries value, value_type, confidence, source, effective_at.
7020
+ * @description Current winners per (entity, key) from world.entity_enrichment_out_synced (Synced-Table-populated view of SDP's entity_enrichment_out). Each row carries value, value_type, confidence, source, effective_at.
7183
7021
  */
7184
7022
  get: operations["list-entity-enrichment"];
7185
7023
  put?: never;
@@ -7470,86 +7308,6 @@ export interface paths {
7470
7308
  patch?: never;
7471
7309
  trace?: never;
7472
7310
  };
7473
- "/v1/{workspace_id}/world/sync/events": {
7474
- parameters: {
7475
- query?: never;
7476
- header?: never;
7477
- path?: never;
7478
- cookie?: never;
7479
- };
7480
- /**
7481
- * List sync events by status
7482
- * @description Lists outbound events filtered by sync status (pending or failed). Optionally scope the queue to a specific outbound data source or source system, or narrow to a specific FHIR resource type/ID. Includes entity display_name for the UI. Use for the pending events table (status=pending) or the retry table (status=failed).
7483
- */
7484
- get: operations["world-sync-events"];
7485
- put?: never;
7486
- post?: never;
7487
- delete?: never;
7488
- options?: never;
7489
- head?: never;
7490
- patch?: never;
7491
- trace?: never;
7492
- };
7493
- "/v1/{workspace_id}/world/sync/queue": {
7494
- parameters: {
7495
- query?: never;
7496
- header?: never;
7497
- path?: never;
7498
- cookie?: never;
7499
- };
7500
- /**
7501
- * Outbound sync queue depth
7502
- * @description Pending and failed outbound sync event counts, grouped by FHIR resource type. Includes oldest pending timestamp and last successful sync time. Queries Lakebase — not Valkey.
7503
- */
7504
- get: operations["world-sync-queue"];
7505
- put?: never;
7506
- post?: never;
7507
- delete?: never;
7508
- options?: never;
7509
- head?: never;
7510
- patch?: never;
7511
- trace?: never;
7512
- };
7513
- "/v1/{workspace_id}/world/sync/retry-all": {
7514
- parameters: {
7515
- query?: never;
7516
- header?: never;
7517
- path?: never;
7518
- cookie?: never;
7519
- };
7520
- get?: never;
7521
- put?: never;
7522
- /**
7523
- * Retry all failed sync events
7524
- * @description Clears sync_error on all failed events in the workspace and re-publishes each to the outbound sync channel.
7525
- */
7526
- post: operations["world-sync-retry-all"];
7527
- delete?: never;
7528
- options?: never;
7529
- head?: never;
7530
- patch?: never;
7531
- trace?: never;
7532
- };
7533
- "/v1/{workspace_id}/world/sync/retry/{event_id}": {
7534
- parameters: {
7535
- query?: never;
7536
- header?: never;
7537
- path?: never;
7538
- cookie?: never;
7539
- };
7540
- get?: never;
7541
- put?: never;
7542
- /**
7543
- * Retry a failed sync event
7544
- * @description Clears sync_error on a failed event and re-publishes to the outbound sync channel. The event re-enters the sync pipeline.
7545
- */
7546
- post: operations["world-sync-retry"];
7547
- delete?: never;
7548
- options?: never;
7549
- head?: never;
7550
- patch?: never;
7551
- trace?: never;
7552
- };
7553
7311
  }
7554
7312
  export type webhooks = Record<string, never>;
7555
7313
  export interface components {
@@ -7878,10 +7636,10 @@ export interface components {
7878
7636
  };
7879
7637
  /** AddColumnAction */
7880
7638
  AddColumnAction: {
7881
- column: components["schemas"]["src__routes__workspace_tables__update_workspace_table__Request__Column"];
7639
+ column: components["schemas"]["Column-Input"];
7882
7640
  /**
7883
- * @description discriminator enum property added by openapi-typescript
7884
- * @enum {string}
7641
+ * Op
7642
+ * @constant
7885
7643
  */
7886
7644
  op: "add_column";
7887
7645
  };
@@ -7891,8 +7649,8 @@ export interface components {
7891
7649
  columns: components["schemas"]["IdentifierString"][];
7892
7650
  index_name: components["schemas"]["IdentifierString"];
7893
7651
  /**
7894
- * @description discriminator enum property added by openapi-typescript
7895
- * @enum {string}
7652
+ * Op
7653
+ * @constant
7896
7654
  */
7897
7655
  op: "add_index";
7898
7656
  };
@@ -7902,8 +7660,8 @@ export interface components {
7902
7660
  columns: components["schemas"]["IdentifierString"][];
7903
7661
  constraint_name?: components["schemas"]["IdentifierString"] | null;
7904
7662
  /**
7905
- * @description discriminator enum property added by openapi-typescript
7906
- * @enum {string}
7663
+ * Op
7664
+ * @constant
7907
7665
  */
7908
7666
  op: "add_unique";
7909
7667
  };
@@ -8090,6 +7848,7 @@ export interface components {
8090
7848
  */
8091
7849
  workspace_id: string;
8092
7850
  };
7851
+ AlterAction: components["schemas"]["AddColumnAction"] | components["schemas"]["DropColumnAction"] | components["schemas"]["RenameColumnAction"] | components["schemas"]["ChangeColumnTypeAction"] | components["schemas"]["SetColumnNullableAction"] | components["schemas"]["SetColumnDefaultAction"] | components["schemas"]["DropColumnDefaultAction"] | components["schemas"]["AddUniqueAction"] | components["schemas"]["DropConstraintAction"] | components["schemas"]["AddIndexAction"] | components["schemas"]["DropIndexAction"];
8093
7852
  /**
8094
7853
  * AnnotationState
8095
7854
  * @description Injects a hardcoded inner thought (no LLM call).
@@ -8617,100 +8376,6 @@ export interface components {
8617
8376
  /** Reason */
8618
8377
  reason: string;
8619
8378
  };
8620
- /**
8621
- * BehaviorAction
8622
- * @description What happens when the behavior activates.
8623
- */
8624
- BehaviorAction: {
8625
- /**
8626
- * Add Tools
8627
- * @description Tool names to make available when active
8628
- */
8629
- add_tools?: string[];
8630
- /**
8631
- * Filler Override
8632
- * @description Override filler type when active
8633
- */
8634
- filler_override?: ("empathy" | "receipt" | "working" | "silent") | null;
8635
- /**
8636
- * Instruction
8637
- * @description Instruction injected into the engage prompt when active
8638
- * @default
8639
- */
8640
- instruction?: string;
8641
- /**
8642
- * Remove Tools
8643
- * @description Tool names to hide when active
8644
- */
8645
- remove_tools?: string[];
8646
- /** Turn Policy Overrides */
8647
- turn_policy_overrides?: {
8648
- [key: string]: unknown;
8649
- };
8650
- };
8651
- /**
8652
- * BehaviorDef
8653
- * @description A named dynamic behavior definition.
8654
- */
8655
- BehaviorDef: {
8656
- action?: components["schemas"]["BehaviorAction"];
8657
- /**
8658
- * Cooldown Turns
8659
- * @default 3
8660
- */
8661
- cooldown_turns?: number;
8662
- /** @default */
8663
- description?: components["schemas"]["DescriptionString"];
8664
- /**
8665
- * Enabled
8666
- * @default true
8667
- */
8668
- enabled?: boolean;
8669
- name: components["schemas"]["NameString"];
8670
- /**
8671
- * Priority
8672
- * @default 0
8673
- */
8674
- priority?: number;
8675
- trigger?: components["schemas"]["BehaviorTrigger"];
8676
- };
8677
- /**
8678
- * BehaviorSettingsRequest
8679
- * @description Partial update — only provided fields are changed.
8680
- */
8681
- BehaviorSettingsRequest: {
8682
- /** Behaviors */
8683
- behaviors?: components["schemas"]["BehaviorDef"][] | null;
8684
- /** Enabled */
8685
- enabled?: boolean | null;
8686
- };
8687
- /** BehaviorSettingsResponse */
8688
- BehaviorSettingsResponse: {
8689
- /** Behaviors */
8690
- behaviors: components["schemas"]["BehaviorDef"][];
8691
- /** Enabled */
8692
- enabled: boolean;
8693
- };
8694
- /**
8695
- * BehaviorTrigger
8696
- * @description Conditions that activate this behavior.
8697
- */
8698
- BehaviorTrigger: {
8699
- /**
8700
- * Emotion Tiers
8701
- * @description Empathy tiers (0-3) that activate this behavior
8702
- */
8703
- emotion_tiers?: number[];
8704
- /** Intent Categories */
8705
- intent_categories?: string[];
8706
- /** Keywords */
8707
- keywords?: string[];
8708
- /**
8709
- * States
8710
- * @description Context graph state names that activate this behavior
8711
- */
8712
- states?: string[];
8713
- };
8714
8379
  /** BillingDashboardResponse */
8715
8380
  BillingDashboardResponse: {
8716
8381
  /**
@@ -8757,18 +8422,6 @@ export interface components {
8757
8422
  */
8758
8423
  workspace_id: string;
8759
8424
  };
8760
- /** Body_send-voicemail */
8761
- "Body_send-voicemail": {
8762
- /** Audio */
8763
- audio: string;
8764
- /** Recipient Phone Number */
8765
- recipient_phone_number: string;
8766
- /**
8767
- * Use Case Id
8768
- * Format: uuid
8769
- */
8770
- use_case_id: string;
8771
- };
8772
8425
  /** Body_voice-turn */
8773
8426
  "Body_voice-turn": {
8774
8427
  /** Audio */
@@ -9295,6 +8948,11 @@ export interface components {
9295
8948
  /** @description Tool usage statistics */
9296
8949
  tool_summary?: components["schemas"]["ToolSummary"] | null;
9297
8950
  };
8951
+ /** CallIntelligenceMetricProjectionRequest */
8952
+ CallIntelligenceMetricProjectionRequest: {
8953
+ /** Call Sid */
8954
+ call_sid: string;
8955
+ };
9298
8956
  /** CallListResponse */
9299
8957
  CallListResponse: {
9300
8958
  /** Continuation Token */
@@ -9550,8 +9208,8 @@ export interface components {
9550
9208
  name: components["schemas"]["IdentifierString"];
9551
9209
  new_type: components["schemas"]["ColumnType"];
9552
9210
  /**
9553
- * @description discriminator enum property added by openapi-typescript
9554
- * @enum {string}
9211
+ * Op
9212
+ * @constant
9555
9213
  */
9556
9214
  op: "change_column_type";
9557
9215
  };
@@ -10100,6 +9758,17 @@ export interface components {
10100
9758
  validation?: string | null;
10101
9759
  };
10102
9760
  /** Column */
9761
+ "Column-Input": {
9762
+ default?: components["schemas"]["Default"] | null;
9763
+ name: components["schemas"]["IdentifierString"];
9764
+ /**
9765
+ * Nullable
9766
+ * @default true
9767
+ */
9768
+ nullable?: boolean;
9769
+ type: components["schemas"]["ColumnType"];
9770
+ };
9771
+ /** Column */
10103
9772
  "Column-Output": {
10104
9773
  /**
10105
9774
  * Data Type
@@ -10771,49 +10440,6 @@ export interface components {
10771
10440
  /** Total */
10772
10441
  total: number;
10773
10442
  };
10774
- /** ConversationStateSaveRequest */
10775
- ConversationStateSaveRequest: {
10776
- /** Entity Id */
10777
- entity_id?: string | null;
10778
- /** Resume At */
10779
- resume_at?: string | null;
10780
- /** State */
10781
- state: {
10782
- [key: string]: unknown;
10783
- };
10784
- /**
10785
- * Status
10786
- * @enum {string}
10787
- */
10788
- status: "active" | "frozen" | "closed";
10789
- /** Version */
10790
- version: number;
10791
- };
10792
- /** ConversationStateSaveResponse */
10793
- ConversationStateSaveResponse: {
10794
- /**
10795
- * Conversation Id
10796
- * Format: uuid
10797
- */
10798
- conversation_id: string;
10799
- /**
10800
- * Status
10801
- * @enum {string}
10802
- */
10803
- status: "active" | "frozen" | "closed";
10804
- /**
10805
- * Turn Count
10806
- * @default 0
10807
- */
10808
- turn_count?: number;
10809
- /** Version */
10810
- version: number;
10811
- /**
10812
- * Workspace Id
10813
- * Format: uuid
10814
- */
10815
- workspace_id: string;
10816
- };
10817
10443
  /** ConversationThreadRequest */
10818
10444
  ConversationThreadRequest: {
10819
10445
  channel_kind: components["schemas"]["ChannelKind"];
@@ -10846,22 +10472,11 @@ export interface components {
10846
10472
  reactivated: boolean;
10847
10473
  /** Service Id */
10848
10474
  service_id?: string | null;
10849
- /** State */
10850
- state: {
10851
- [key: string]: unknown;
10852
- };
10853
10475
  /**
10854
10476
  * Status
10855
10477
  * @constant
10856
10478
  */
10857
10479
  status: "active";
10858
- /**
10859
- * Turn Count
10860
- * @default 0
10861
- */
10862
- turn_count?: number;
10863
- /** Version */
10864
- version: number;
10865
10480
  /**
10866
10481
  * Workspace Id
10867
10482
  * Format: uuid
@@ -11484,7 +11099,7 @@ export interface components {
11484
11099
  * @default {}
11485
11100
  */
11486
11101
  version_sets?: {
11487
- [key: string]: components["schemas"]["VersionSet"];
11102
+ [key: string]: components["schemas"]["VersionSet-Input"];
11488
11103
  };
11489
11104
  voice_config?: components["schemas"]["ServiceVoiceConfig-Input"] | null;
11490
11105
  };
@@ -11766,27 +11381,6 @@ export interface components {
11766
11381
  */
11767
11382
  timezone?: string;
11768
11383
  };
11769
- /** CreateWebhookDestinationRequest */
11770
- CreateWebhookDestinationRequest: {
11771
- /** Accepted Event Types */
11772
- accepted_event_types?: components["schemas"]["EventTypeString"][];
11773
- description?: components["schemas"]["DescriptionString"] | null;
11774
- /** Field Mapping */
11775
- field_mapping?: {
11776
- [key: string]: string;
11777
- } | null;
11778
- name: components["schemas"]["NameString"];
11779
- /**
11780
- * Retry Attempts
11781
- * @default 3
11782
- */
11783
- retry_attempts?: number;
11784
- /**
11785
- * Trigger Id
11786
- * Format: uuid
11787
- */
11788
- trigger_id: string;
11789
- };
11790
11384
  /**
11791
11385
  * CreateWorkspaceRequest
11792
11386
  * @description Request body for ``POST /v1/me/workspaces``.
@@ -12527,6 +12121,23 @@ export interface components {
12527
12121
  /** Feature Name */
12528
12122
  feature_name: string;
12529
12123
  };
12124
+ /** Default */
12125
+ Default: {
12126
+ /**
12127
+ * Kind
12128
+ * @enum {string}
12129
+ */
12130
+ kind: "literal" | "uuid_v4" | "now" | "current_date";
12131
+ /**
12132
+ * Value
12133
+ * @description Only meaningful for ``kind="literal"``. Other kinds ignore it.
12134
+ * A ``dict`` value is rendered as a JSONB literal — pair it with a
12135
+ * ``jsonb`` column.
12136
+ */
12137
+ value?: string | number | boolean | {
12138
+ [key: string]: unknown;
12139
+ } | null;
12140
+ };
12530
12141
  /**
12531
12142
  * DeliverSurfaceRequest
12532
12143
  * @description Request to mark a surface as delivered.
@@ -12566,27 +12177,6 @@ export interface components {
12566
12177
  /** Url */
12567
12178
  url?: string | null;
12568
12179
  };
12569
- /** DeliveryResponse */
12570
- DeliveryResponse: {
12571
- /**
12572
- * Created At
12573
- * @description When the delivery event was created
12574
- */
12575
- created_at?: string | null;
12576
- /** Data */
12577
- data: {
12578
- [key: string]: unknown;
12579
- };
12580
- /** Effective At */
12581
- effective_at: string | null;
12582
- /**
12583
- * Event Id
12584
- * Format: uuid
12585
- */
12586
- event_id: string;
12587
- /** Event Type */
12588
- event_type: string;
12589
- };
12590
12180
  DescriptionString: string;
12591
12181
  /** DestroySessionResponse */
12592
12182
  DestroySessionResponse: {
@@ -12743,8 +12333,8 @@ export interface components {
12743
12333
  DropColumnAction: {
12744
12334
  name: components["schemas"]["IdentifierString"];
12745
12335
  /**
12746
- * @description discriminator enum property added by openapi-typescript
12747
- * @enum {string}
12336
+ * Op
12337
+ * @constant
12748
12338
  */
12749
12339
  op: "drop_column";
12750
12340
  };
@@ -12752,8 +12342,8 @@ export interface components {
12752
12342
  DropColumnDefaultAction: {
12753
12343
  name: components["schemas"]["IdentifierString"];
12754
12344
  /**
12755
- * @description discriminator enum property added by openapi-typescript
12756
- * @enum {string}
12345
+ * Op
12346
+ * @constant
12757
12347
  */
12758
12348
  op: "drop_column_default";
12759
12349
  };
@@ -12761,8 +12351,8 @@ export interface components {
12761
12351
  DropConstraintAction: {
12762
12352
  name: components["schemas"]["IdentifierString"];
12763
12353
  /**
12764
- * @description discriminator enum property added by openapi-typescript
12765
- * @enum {string}
12354
+ * Op
12355
+ * @constant
12766
12356
  */
12767
12357
  op: "drop_constraint";
12768
12358
  };
@@ -12770,8 +12360,8 @@ export interface components {
12770
12360
  DropIndexAction: {
12771
12361
  index_name: components["schemas"]["IdentifierString"];
12772
12362
  /**
12773
- * @description discriminator enum property added by openapi-typescript
12774
- * @enum {string}
12363
+ * Op
12364
+ * @constant
12775
12365
  */
12776
12366
  op: "drop_index";
12777
12367
  };
@@ -13242,7 +12832,7 @@ export interface components {
13242
12832
  */
13243
12833
  ingested_at: string;
13244
12834
  /** Is Current */
13245
- is_current: boolean;
12835
+ is_current: boolean | null;
13246
12836
  /** Source */
13247
12837
  source: string;
13248
12838
  /** Source System */
@@ -13259,6 +12849,11 @@ export interface components {
13259
12849
  };
13260
12850
  /** EnrichmentHistoryResponse */
13261
12851
  EnrichmentHistoryResponse: {
12852
+ /**
12853
+ * Dropped Count
12854
+ * @default 0
12855
+ */
12856
+ dropped_count?: number;
13262
12857
  /**
13263
12858
  * Entity Id
13264
12859
  * Format: uuid
@@ -13430,11 +13025,15 @@ export interface components {
13430
13025
  };
13431
13026
  /** EntityEventResponse */
13432
13027
  EntityEventResponse: {
13028
+ /** Amount */
13029
+ amount?: number | null;
13030
+ call_sid?: components["schemas"]["EventCallSidString"] | null;
13031
+ channel?: components["schemas"]["EventChannelString"] | null;
13433
13032
  /**
13434
13033
  * Confidence
13435
13034
  * @default 1
13436
13035
  */
13437
- confidence?: number;
13036
+ confidence?: number | null;
13438
13037
  /**
13439
13038
  * Created At
13440
13039
  * @description When the event was created
@@ -13444,8 +13043,13 @@ export interface components {
13444
13043
  data?: {
13445
13044
  [key: string]: unknown;
13446
13045
  };
13046
+ description?: components["schemas"]["EventDescriptionString"] | null;
13047
+ direction?: components["schemas"]["EventDirectionString"] | null;
13048
+ display_name?: components["schemas"]["EventDisplayNameString"] | null;
13447
13049
  /** Domain */
13448
13050
  domain: string;
13051
+ /** Duration Seconds */
13052
+ duration_seconds?: number | null;
13449
13053
  /** Effective At */
13450
13054
  effective_at?: string | null;
13451
13055
  /** Entity Type */
@@ -13469,16 +13073,18 @@ export interface components {
13469
13073
  * Is Current
13470
13074
  * @default true
13471
13075
  */
13472
- is_current?: boolean;
13076
+ is_current?: boolean | null;
13077
+ outcome?: components["schemas"]["EventOutcomeString"] | null;
13473
13078
  /** Produced By Agent */
13474
13079
  produced_by_agent?: string | null;
13475
13080
  /**
13476
13081
  * Source
13477
13082
  * @default manual
13478
13083
  */
13479
- source?: string;
13084
+ source?: string | null;
13480
13085
  /** Source System */
13481
13086
  source_system?: string | null;
13087
+ status?: components["schemas"]["EventStatusString"] | null;
13482
13088
  /** Supersedes */
13483
13089
  supersedes?: string | null;
13484
13090
  /** Sync Error */
@@ -13853,6 +13459,11 @@ export interface components {
13853
13459
  by_event_type?: {
13854
13460
  [key: string]: number;
13855
13461
  };
13462
+ /**
13463
+ * Event Type Window Days
13464
+ * @description Window applied to by_event_type counts when an entity_type filter is supplied.
13465
+ */
13466
+ event_type_window_days?: number | null;
13856
13467
  /** Sync Failed */
13857
13468
  sync_failed: number;
13858
13469
  /** Sync Pending */
@@ -14172,6 +13783,13 @@ export interface components {
14172
13783
  */
14173
13784
  workspace_id: string;
14174
13785
  };
13786
+ EventCallSidString: string;
13787
+ EventChannelString: string;
13788
+ EventDescriptionString: string;
13789
+ EventDirectionString: string;
13790
+ EventDisplayNameString: string;
13791
+ EventOutcomeString: string;
13792
+ EventStatusString: string;
14175
13793
  /**
14176
13794
  * EventSummary
14177
13795
  * @description Inline event data for review context — avoids extra API calls.
@@ -14747,10 +14365,6 @@ export interface components {
14747
14365
  source?: string | null;
14748
14366
  /** Source System */
14749
14367
  source_system?: string | null;
14750
- /** Sync Error */
14751
- sync_error?: string | null;
14752
- /** Synced At */
14753
- synced_at?: string | null;
14754
14368
  };
14755
14369
  /** FhirResourceHistoryResponse */
14756
14370
  FhirResourceHistoryResponse: {
@@ -14871,11 +14485,6 @@ export interface components {
14871
14485
  resource_type_counts?: {
14872
14486
  [key: string]: number;
14873
14487
  };
14874
- /**
14875
- * Sync Failure Count
14876
- * @default 0
14877
- */
14878
- sync_failure_count?: number;
14879
14488
  /** Sync Healthy */
14880
14489
  sync_healthy?: boolean | null;
14881
14490
  };
@@ -15517,16 +15126,6 @@ export interface components {
15517
15126
  HealthSyncResponse: {
15518
15127
  /** Connector Heartbeats */
15519
15128
  connector_heartbeats?: components["schemas"]["ConnectorHeartbeat"][];
15520
- /** Failed Count */
15521
- failed_count: number;
15522
- /** Healthy */
15523
- healthy: boolean;
15524
- /** Last Sync Success At */
15525
- last_sync_success_at?: string | null;
15526
- /** Oldest Pending Minutes */
15527
- oldest_pending_minutes?: number | null;
15528
- /** Pending Count */
15529
- pending_count: number;
15530
15129
  };
15531
15130
  /** HipaaReportResponse */
15532
15131
  HipaaReportResponse: {
@@ -16064,11 +15663,6 @@ export interface components {
16064
15663
  * @default false
16065
15664
  */
16066
15665
  use_structured_output?: boolean;
16067
- /**
16068
- * Version
16069
- * @default 1
16070
- */
16071
- version?: number;
16072
15666
  /**
16073
15667
  * Workspace Id
16074
15668
  * Format: uuid
@@ -16231,28 +15825,6 @@ export interface components {
16231
15825
  */
16232
15826
  row_count?: number;
16233
15827
  };
16234
- /** Item */
16235
- Item: {
16236
- /**
16237
- * Created At
16238
- * Format: date-time
16239
- */
16240
- created_at: string;
16241
- /**
16242
- * Id
16243
- * Format: uuid
16244
- */
16245
- id: string;
16246
- /** Physical Name */
16247
- physical_name: string;
16248
- /** Table Name */
16249
- table_name: string;
16250
- /**
16251
- * Workspace Id
16252
- * Format: uuid
16253
- */
16254
- workspace_id: string;
16255
- };
16256
15828
  /**
16257
15829
  * JoinCallRequest
16258
15830
  * @description Request to join an active call as operator.
@@ -16340,16 +15912,70 @@ export interface components {
16340
15912
  };
16341
15913
  /** LLMConfig */
16342
15914
  LLMConfig: {
15915
+ experience_controls?: components["schemas"]["LLMExperienceControls"] | null;
16343
15916
  /** Llm Name */
16344
15917
  llm_name: string;
16345
- /**
16346
- * Params
16347
- * @default {}
16348
- */
15918
+ /** Params */
16349
15919
  params?: {
16350
15920
  [key: string]: unknown;
16351
15921
  };
16352
15922
  };
15923
+ /**
15924
+ * LLMExperienceControls
15925
+ * @description First-class chat experience controls for consumer-facing agents.
15926
+ *
15927
+ * ``params`` remains available as a provider-specific escape hatch. These
15928
+ * fields cover the OpenAI Chat Completions controls that most directly shape
15929
+ * response tone, feel, determinism, latency, and structured output behavior.
15930
+ * Token budgets are intentionally excluded so version sets do not reintroduce
15931
+ * accidental response truncation.
15932
+ */
15933
+ LLMExperienceControls: {
15934
+ /** Frequency Penalty */
15935
+ frequency_penalty?: number | null;
15936
+ /** Logit Bias */
15937
+ logit_bias?: {
15938
+ [key: string]: number;
15939
+ } | null;
15940
+ /** Logprobs */
15941
+ logprobs?: boolean | null;
15942
+ /** Metadata */
15943
+ metadata?: {
15944
+ [key: string]: string;
15945
+ } | null;
15946
+ /** Parallel Tool Calls */
15947
+ parallel_tool_calls?: boolean | null;
15948
+ /** Presence Penalty */
15949
+ presence_penalty?: number | null;
15950
+ /** Prompt Cache Key */
15951
+ prompt_cache_key?: string | null;
15952
+ /** Prompt Cache Retention */
15953
+ prompt_cache_retention?: ("in-memory" | "24h") | null;
15954
+ /** Reasoning Effort */
15955
+ reasoning_effort?: ("none" | "minimal" | "low" | "medium" | "high" | "xhigh") | null;
15956
+ /** Response Format */
15957
+ response_format?: {
15958
+ [key: string]: unknown;
15959
+ } | null;
15960
+ /** Safety Identifier */
15961
+ safety_identifier?: string | null;
15962
+ /** Seed */
15963
+ seed?: number | null;
15964
+ /** Service Tier */
15965
+ service_tier?: string | null;
15966
+ /** Stop */
15967
+ stop?: string | string[] | null;
15968
+ /** Store */
15969
+ store?: boolean | null;
15970
+ /** Temperature */
15971
+ temperature?: number | null;
15972
+ /** Top Logprobs */
15973
+ top_logprobs?: number | null;
15974
+ /** Top P */
15975
+ top_p?: number | null;
15976
+ /** Verbosity */
15977
+ verbosity?: ("low" | "medium" | "high") | null;
15978
+ };
16353
15979
  /**
16354
15980
  * LanguageProviderEntry
16355
15981
  * @description Per-language TTS provider configuration.
@@ -16589,22 +16215,6 @@ export interface components {
16589
16215
  */
16590
16216
  workspace_id: string;
16591
16217
  };
16592
- /** MarkSyncedRequest */
16593
- MarkSyncedRequest: {
16594
- /** Data Source Id */
16595
- data_source_id?: string | null;
16596
- /**
16597
- * Event Id
16598
- * Format: uuid
16599
- */
16600
- event_id: string;
16601
- /** Sync Error */
16602
- sync_error?: string | null;
16603
- /** Synced At */
16604
- synced_at?: string | null;
16605
- /** Workspace Id */
16606
- workspace_id?: string | null;
16607
- };
16608
16218
  /** MemoryAnalyticsResponse */
16609
16219
  MemoryAnalyticsResponse: {
16610
16220
  /** Active Dimensions */
@@ -16894,8 +16504,9 @@ export interface components {
16894
16504
  MetricCatalogEntry: {
16895
16505
  /** Builtin */
16896
16506
  builtin: boolean;
16897
- /** Description */
16898
- description?: string | null;
16507
+ /** Custom Source Key */
16508
+ custom_source_key?: string | null;
16509
+ description?: components["schemas"]["DescriptionString"] | null;
16899
16510
  /**
16900
16511
  * Extraction Mode
16901
16512
  * @default static
@@ -16913,7 +16524,17 @@ export interface components {
16913
16524
  * @default false
16914
16525
  */
16915
16526
  has_prompt?: boolean;
16916
- key: components["schemas"]["SlugString"];
16527
+ /**
16528
+ * Key
16529
+ * @description Metric key (lowercase alphanumeric + underscores)
16530
+ */
16531
+ key: string;
16532
+ /**
16533
+ * Latency Tier
16534
+ * @default batch
16535
+ * @enum {string}
16536
+ */
16537
+ latency_tier?: "streaming" | "near_realtime" | "batch";
16917
16538
  /**
16918
16539
  * Metric Type
16919
16540
  * @enum {string}
@@ -16926,6 +16547,17 @@ export interface components {
16926
16547
  */
16927
16548
  model_tier?: "free" | "fast" | "balanced" | "max" | "custom";
16928
16549
  name: components["schemas"]["NameString"];
16550
+ /**
16551
+ * Period Granularity
16552
+ * @default daily
16553
+ * @enum {string}
16554
+ */
16555
+ period_granularity?: "hourly" | "daily";
16556
+ /**
16557
+ * Source
16558
+ * @enum {string}
16559
+ */
16560
+ source: "call_intelligence" | "world_events" | "surface_events" | "emotion_events" | "connector_events" | "zerobus_events" | "voice_judge_results" | "custom";
16929
16561
  /** Unit */
16930
16562
  unit?: string | null;
16931
16563
  };
@@ -17007,6 +16639,11 @@ export interface components {
17007
16639
  * @enum {string}
17008
16640
  */
17009
16641
  channel_scope?: "all" | "voice" | "text" | "surface" | "inbound" | "outbound";
16642
+ /**
16643
+ * Custom Source Key
16644
+ * @description Extension source key used only when source='custom'.
16645
+ */
16646
+ custom_source_key?: string | null;
17010
16647
  description?: components["schemas"]["DescriptionString"] | null;
17011
16648
  /**
17012
16649
  * Event Types
@@ -17092,10 +16729,10 @@ export interface components {
17092
16729
  ratio_numerator_event?: string | null;
17093
16730
  /**
17094
16731
  * Source
17095
- * @description 'call_intelligence' reads from world.call_intelligence table. 'world_events' reads from Delta world_events. 'surface_events' reads from Delta world_events WHERE domain='surface'.
16732
+ * @description Source key for the producer that supplies this metric. Built-ins include 'call_intelligence', 'world_events', and 'surface_events'. Use 'custom' with custom_source_key for extension producers.
17096
16733
  * @enum {string}
17097
16734
  */
17098
- source: "call_intelligence" | "world_events" | "surface_events" | "emotion_events" | "connector_events" | "zerobus_events" | "voice_judge_results";
16735
+ source: "call_intelligence" | "world_events" | "surface_events" | "emotion_events" | "connector_events" | "zerobus_events" | "voice_judge_results" | "custom";
17099
16736
  /**
17100
16737
  * Source Filter
17101
16738
  * @description Optional SQL WHERE fragment for additional filtering (e.g. "source = 'voice_agent'"). Applied after event_type filter.
@@ -17122,46 +16759,28 @@ export interface components {
17122
16759
  */
17123
16760
  valid_range_min?: number | null;
17124
16761
  };
17125
- /** MetricEvaluateRequest */
17126
- MetricEvaluateRequest: {
17127
- /**
17128
- * As Of
17129
- * @description Optional point-in-time cutoff for selecting the call intelligence snapshot.
17130
- */
17131
- as_of?: string | null;
17132
- /**
17133
- * Persist
17134
- * @description On-demand metric evaluation never writes to metrics.metric_values.
17135
- * @default false
17136
- * @constant
17137
- */
17138
- persist?: false;
17139
- /**
17140
- * Subject Id
17141
- * @description CallSid, call UUID, or simulation session id
17142
- */
17143
- subject_id: string;
16762
+ /** MetricListResponse */
16763
+ MetricListResponse: {
16764
+ /** Metrics */
16765
+ metrics: (components["schemas"]["NumericalMetricValueResponse"] | components["schemas"]["CategoricalMetricValueResponse"] | components["schemas"]["BooleanMetricValueResponse"])[];
17144
16766
  };
17145
- /** MetricEvaluateResponse */
17146
- MetricEvaluateResponse: {
16767
+ /** MetricProjectionResponse */
16768
+ MetricProjectionResponse: {
16769
+ /** Accepted */
16770
+ accepted: number;
17147
16771
  /**
17148
- * Evaluated At
17149
- * Format: date-time
16772
+ * Queued Jobs
16773
+ * @deprecated
16774
+ * @default 0
17150
16775
  */
17151
- evaluated_at: string;
17152
- /** Metric */
17153
- metric: components["schemas"]["NumericalMetricValueResponse"] | components["schemas"]["CategoricalMetricValueResponse"] | components["schemas"]["BooleanMetricValueResponse"];
16776
+ queued_jobs?: number;
16777
+ /** Skipped Duplicates */
16778
+ skipped_duplicates: number;
17154
16779
  /**
17155
- * Persisted
17156
- * @default false
16780
+ * Status
17157
16781
  * @constant
17158
16782
  */
17159
- persisted?: false;
17160
- };
17161
- /** MetricListResponse */
17162
- MetricListResponse: {
17163
- /** Metrics */
17164
- metrics: (components["schemas"]["NumericalMetricValueResponse"] | components["schemas"]["CategoricalMetricValueResponse"] | components["schemas"]["BooleanMetricValueResponse"])[];
16783
+ status: "projected";
17165
16784
  };
17166
16785
  /**
17167
16786
  * MetricSettingsRequest
@@ -18076,17 +17695,6 @@ export interface components {
18076
17695
  /** Total */
18077
17696
  total?: number | null;
18078
17697
  };
18079
- /** PaginatedResponse[DeliveryResponse] */
18080
- PaginatedResponse_DeliveryResponse_: {
18081
- /** Continuation Token */
18082
- continuation_token?: number | null;
18083
- /** Has More */
18084
- has_more: boolean;
18085
- /** Items */
18086
- items: components["schemas"]["DeliveryResponse"][];
18087
- /** Total */
18088
- total?: number | null;
18089
- };
18090
17698
  /** PaginatedResponse[EscalationEventResponse] */
18091
17699
  PaginatedResponse_EscalationEventResponse_: {
18092
17700
  /** Continuation Token */
@@ -18263,17 +17871,6 @@ export interface components {
18263
17871
  /** Total */
18264
17872
  total?: number | null;
18265
17873
  };
18266
- /** PaginatedResponse[WebhookDestinationResponse] */
18267
- PaginatedResponse_WebhookDestinationResponse_: {
18268
- /** Continuation Token */
18269
- continuation_token?: number | null;
18270
- /** Has More */
18271
- has_more: boolean;
18272
- /** Items */
18273
- items: components["schemas"]["WebhookDestinationResponse"][];
18274
- /** Total */
18275
- total?: number | null;
18276
- };
18277
17874
  /** PaginatedResponse[WorkspaceResponse] */
18278
17875
  PaginatedResponse_WorkspaceResponse_: {
18279
17876
  /** Continuation Token */
@@ -18308,34 +17905,6 @@ export interface components {
18308
17905
  */
18309
17906
  rows: unknown[][];
18310
17907
  };
18311
- /**
18312
- * Parameter
18313
- * @description Typed declaration of one input parameter.
18314
- *
18315
- * For SQL function types, ``name`` becomes the ``:name`` placeholder
18316
- * in the SQL template. For Python function types, ``name`` becomes
18317
- * the positional argument name in ``def main(...)`` and the input
18318
- * column name on the UC UDF signature.
18319
- *
18320
- * The ``description`` propagates into the LLM tool spec (this is
18321
- * what Databricks' Agent Framework reads, and what Anthropic's
18322
- * tool-use spec exposes to the model). Missing descriptions
18323
- * silently break tool selection — the registration layer rejects
18324
- * empty strings.
18325
- */
18326
- Parameter: {
18327
- /** Default */
18328
- default?: string | number | boolean | null;
18329
- /** Description */
18330
- description: string;
18331
- /** Name */
18332
- name: string;
18333
- /**
18334
- * Type
18335
- * @enum {string}
18336
- */
18337
- type: "string" | "integer" | "number" | "boolean";
18338
- };
18339
17908
  /** Participant */
18340
17909
  Participant: {
18341
17910
  /** Display Name */
@@ -19735,7 +19304,7 @@ export interface components {
19735
19304
  /** Name */
19736
19305
  name: string;
19737
19306
  /** Parameters */
19738
- parameters?: components["schemas"]["Parameter"][];
19307
+ parameters?: components["schemas"]["platform_lib__platform_functions__models__Parameter"][];
19739
19308
  /**
19740
19309
  * Returns
19741
19310
  * @default table
@@ -19849,8 +19418,8 @@ export interface components {
19849
19418
  RenameColumnAction: {
19850
19419
  from: components["schemas"]["IdentifierString"];
19851
19420
  /**
19852
- * @description discriminator enum property added by openapi-typescript
19853
- * @enum {string}
19421
+ * Op
19422
+ * @constant
19854
19423
  */
19855
19424
  op: "rename_column";
19856
19425
  to: components["schemas"]["IdentifierString"];
@@ -20227,16 +19796,6 @@ export interface components {
20227
19796
  /** Duration Days */
20228
19797
  duration_days: number;
20229
19798
  };
20230
- /** RotateSecretResponse */
20231
- RotateSecretResponse: {
20232
- /**
20233
- * Rotation Expires At
20234
- * Format: date-time
20235
- */
20236
- rotation_expires_at: string;
20237
- /** Secret */
20238
- secret: string;
20239
- };
20240
19799
  /** RunSimulationBenchmarkRequest */
20241
19800
  RunSimulationBenchmarkRequest: {
20242
19801
  /** Branch Name */
@@ -20587,7 +20146,7 @@ export interface components {
20587
20146
  updated_at?: string | null;
20588
20147
  /** Version Sets */
20589
20148
  version_sets: {
20590
- [key: string]: components["schemas"]["VersionSet"];
20149
+ [key: string]: components["schemas"]["VersionSet-Output"];
20591
20150
  };
20592
20151
  voice_config?: components["schemas"]["ServiceVoiceConfig-Output"] | null;
20593
20152
  };
@@ -20728,7 +20287,7 @@ export interface components {
20728
20287
  updated_at: string;
20729
20288
  /** Version Sets */
20730
20289
  version_sets: {
20731
- [key: string]: components["schemas"]["VersionSet"];
20290
+ [key: string]: components["schemas"]["VersionSet-Output"];
20732
20291
  };
20733
20292
  voice_config?: components["schemas"]["ServiceVoiceConfig-Output"] | null;
20734
20293
  /**
@@ -21095,11 +20654,11 @@ export interface components {
21095
20654
  };
21096
20655
  /** SetColumnDefaultAction */
21097
20656
  SetColumnDefaultAction: {
21098
- default: components["schemas"]["src__routes__workspace_tables__update_workspace_table__Request__Default"];
20657
+ default: components["schemas"]["Default"];
21099
20658
  name: components["schemas"]["IdentifierString"];
21100
20659
  /**
21101
- * @description discriminator enum property added by openapi-typescript
21102
- * @enum {string}
20660
+ * Op
20661
+ * @constant
21103
20662
  */
21104
20663
  op: "set_column_default";
21105
20664
  };
@@ -21109,8 +20668,8 @@ export interface components {
21109
20668
  /** Nullable */
21110
20669
  nullable: boolean;
21111
20670
  /**
21112
- * @description discriminator enum property added by openapi-typescript
21113
- * @enum {string}
20671
+ * Op
20672
+ * @constant
21114
20673
  */
21115
20674
  op: "set_column_nullable";
21116
20675
  };
@@ -21888,8 +21447,6 @@ export interface components {
21888
21447
  urgency_keywords: string[];
21889
21448
  /** Use Structured Output */
21890
21449
  use_structured_output: boolean;
21891
- /** Version */
21892
- version: number;
21893
21450
  /**
21894
21451
  * Workspace Id
21895
21452
  * Format: uuid
@@ -22246,6 +21803,8 @@ export interface components {
22246
21803
  annotation?: string | null;
22247
21804
  /** From State */
22248
21805
  readonly from_state: string;
21806
+ /** Nav Ms */
21807
+ nav_ms?: number | null;
22249
21808
  /**
22250
21809
  * Next State
22251
21810
  * @default
@@ -22310,6 +21869,34 @@ export interface components {
22310
21869
  /** Valence */
22311
21870
  valence?: number | null;
22312
21871
  };
21872
+ /**
21873
+ * StoredParameter
21874
+ * @description One typed input parameter to a workspace data query — trusted shape.
21875
+ *
21876
+ * Read-path model: the DB's CHECK constraints already enforced ``name``
21877
+ * regex and ``type`` enum on write, and the deploy endpoint's strict
21878
+ * :class:`Parameter` validators enforced ``description`` length and
21879
+ * typo-rejection at the inbound network edge. After that, every
21880
+ * construction of this model (DB read projection, executor binding,
21881
+ * agent-engine spec, outbound response) is trusted — no 422 surface.
21882
+ *
21883
+ * ``default is None`` is the canonical "required" signal: the executor
21884
+ * raises if a caller omits a required argument, otherwise substitutes
21885
+ * the stored default.
21886
+ */
21887
+ StoredParameter: {
21888
+ /** Default */
21889
+ default?: string | number | boolean | null;
21890
+ /** Description */
21891
+ description: string;
21892
+ /** Name */
21893
+ name: string;
21894
+ /**
21895
+ * Type
21896
+ * @enum {string}
21897
+ */
21898
+ type: "string" | "integer" | "number" | "boolean";
21899
+ };
22313
21900
  /** StratifiedFitRow */
22314
21901
  StratifiedFitRow: {
22315
21902
  /** Auroc */
@@ -22931,64 +22518,6 @@ export interface components {
22931
22518
  */
22932
22519
  mode: "listen" | "takeover";
22933
22520
  };
22934
- /** SyncBulkRetryResponse */
22935
- SyncBulkRetryResponse: {
22936
- /** Failed To Publish */
22937
- failed_to_publish: number;
22938
- /** Retried */
22939
- retried: number;
22940
- };
22941
- /** SyncEventItem */
22942
- SyncEventItem: {
22943
- /**
22944
- * Created At
22945
- * @description When the event was created
22946
- */
22947
- created_at?: string | null;
22948
- /** Data Source Id */
22949
- data_source_id?: string | null;
22950
- /** Display Name */
22951
- display_name?: string | null;
22952
- /** Entity Id */
22953
- entity_id?: string | null;
22954
- /** Entity Type */
22955
- entity_type?: string | null;
22956
- /**
22957
- * Event Id
22958
- * Format: uuid
22959
- */
22960
- event_id: string;
22961
- /** Event Type */
22962
- event_type: string;
22963
- /** Fhir Resource Id */
22964
- fhir_resource_id?: string | null;
22965
- /** Fhir Resource Type */
22966
- fhir_resource_type?: string | null;
22967
- /** Source */
22968
- source: string;
22969
- /** Source System */
22970
- source_system?: string | null;
22971
- /** Sync Error */
22972
- sync_error?: string | null;
22973
- /**
22974
- * Sync Status
22975
- * @enum {string}
22976
- */
22977
- sync_status: "pending" | "synced" | "failed" | "processing" | "not_applicable";
22978
- /** Synced At */
22979
- synced_at?: string | null;
22980
- };
22981
- /** SyncEventsResponse */
22982
- SyncEventsResponse: {
22983
- /** Events */
22984
- events: components["schemas"]["SyncEventItem"][];
22985
- /** Has More */
22986
- has_more: boolean;
22987
- /** Next Offset */
22988
- next_offset?: number | null;
22989
- /** Total */
22990
- total: number;
22991
- };
22992
22521
  /** SyncFailureEntry */
22993
22522
  SyncFailureEntry: {
22994
22523
  /** Created At */
@@ -23007,39 +22536,6 @@ export interface components {
23007
22536
  /** Sync Error */
23008
22537
  sync_error: string | null;
23009
22538
  };
23010
- /** SyncFailureItem */
23011
- SyncFailureItem: {
23012
- /** Created At */
23013
- created_at?: string | null;
23014
- /** Data */
23015
- data?: {
23016
- [key: string]: unknown;
23017
- };
23018
- /** Entity Id */
23019
- entity_id?: string | null;
23020
- /**
23021
- * Event Id
23022
- * Format: uuid
23023
- */
23024
- event_id: string;
23025
- /** Event Type */
23026
- event_type: string;
23027
- /** Fhir Resource Id */
23028
- fhir_resource_id?: string | null;
23029
- /** Fhir Resource Type */
23030
- fhir_resource_type?: string | null;
23031
- /** Sync Error */
23032
- sync_error: string;
23033
- /** Synced At */
23034
- synced_at?: string | null;
23035
- };
23036
- /** SyncFailuresResponse */
23037
- SyncFailuresResponse: {
23038
- /** Failures */
23039
- failures: components["schemas"]["SyncFailureItem"][];
23040
- /** Total */
23041
- total: number;
23042
- };
23043
22539
  /** SyncHistoryEntry */
23044
22540
  SyncHistoryEntry: {
23045
22541
  /** Date */
@@ -23051,33 +22547,6 @@ export interface components {
23051
22547
  /** Synced Count */
23052
22548
  synced_count: number;
23053
22549
  };
23054
- /** SyncQueueResponse */
23055
- SyncQueueResponse: {
23056
- /** By Resource Type */
23057
- by_resource_type?: {
23058
- [key: string]: {
23059
- [key: string]: number;
23060
- };
23061
- };
23062
- /** Failed Count */
23063
- failed_count: number;
23064
- /** Last Sync Success At */
23065
- last_sync_success_at?: string | null;
23066
- /** Oldest Pending At */
23067
- oldest_pending_at?: string | null;
23068
- /** Pending Count */
23069
- pending_count: number;
23070
- };
23071
- /** SyncRetryResponse */
23072
- SyncRetryResponse: {
23073
- /**
23074
- * Event Id
23075
- * Format: uuid
23076
- */
23077
- event_id: string;
23078
- /** Status */
23079
- status: string;
23080
- };
23081
22550
  /**
23082
22551
  * TMSMappingReleaseParams
23083
22552
  * @description How long before a TMS mapping appointment its slot is released
@@ -24466,10 +23935,14 @@ export interface components {
24466
23935
  compound_emotions?: {
24467
23936
  [key: string]: unknown;
24468
23937
  }[] | null;
23938
+ /** Decision Bearing */
23939
+ decision_bearing?: boolean | null;
24469
23940
  /** Emotion Label */
24470
23941
  emotion_label?: string | null;
24471
23942
  /** Emotion Valence */
24472
23943
  emotion_valence?: number | null;
23944
+ /** Empathy Tier */
23945
+ empathy_tier?: number | null;
24473
23946
  /** Engine Ms */
24474
23947
  engine_ms?: number | null;
24475
23948
  /** Eot Confidence */
@@ -24488,10 +23961,18 @@ export interface components {
24488
23961
  * @default false
24489
23962
  */
24490
23963
  interrupted?: boolean;
23964
+ /** Modality */
23965
+ modality?: string | null;
24491
23966
  /** Nav Ms */
24492
23967
  nav_ms?: number | null;
23968
+ /** Primary Effect Kind */
23969
+ primary_effect_kind?: string | null;
24493
23970
  /** Render Ms */
24494
23971
  render_ms?: number | null;
23972
+ /** Signal Kind */
23973
+ signal_kind?: string | null;
23974
+ /** Signal Source */
23975
+ signal_source?: string | null;
24495
23976
  /** Speaker Id */
24496
23977
  speaker_id?: string | null;
24497
23978
  /** Speaker Role */
@@ -24501,6 +23982,10 @@ export interface components {
24501
23982
  * @default
24502
23983
  */
24503
23984
  state?: string;
23985
+ /** State After */
23986
+ state_after?: string | null;
23987
+ /** State Before */
23988
+ state_before?: string | null;
24504
23989
  /**
24505
23990
  * State Transitions
24506
23991
  * @default []
@@ -24515,6 +24000,12 @@ export interface components {
24515
24000
  * @default []
24516
24001
  */
24517
24002
  tool_calls?: components["schemas"]["ToolCall"][];
24003
+ /** Tool Ms */
24004
+ tool_ms?: number | null;
24005
+ /** Tool Name */
24006
+ tool_name?: string | null;
24007
+ /** Tool Succeeded */
24008
+ tool_succeeded?: boolean | null;
24518
24009
  /**
24519
24010
  * Trigger
24520
24011
  * @default
@@ -24938,7 +24429,7 @@ export interface components {
24938
24429
  tool_capacity?: number | null;
24939
24430
  /** Version Sets */
24940
24431
  version_sets?: {
24941
- [key: string]: components["schemas"]["VersionSet"];
24432
+ [key: string]: components["schemas"]["VersionSet-Input"];
24942
24433
  } | null;
24943
24434
  voice_config?: components["schemas"]["ServiceVoiceConfig-Input"] | null;
24944
24435
  };
@@ -25070,21 +24561,6 @@ export interface components {
25070
24561
  /** Timezone */
25071
24562
  timezone?: string | null;
25072
24563
  };
25073
- /** UpdateWebhookDestinationRequest */
25074
- UpdateWebhookDestinationRequest: {
25075
- /** Accepted Event Types */
25076
- accepted_event_types?: components["schemas"]["EventTypeString"][] | null;
25077
- description?: components["schemas"]["DescriptionString"] | null;
25078
- /** Field Mapping */
25079
- field_mapping?: {
25080
- [key: string]: string;
25081
- } | null;
25082
- /** Is Active */
25083
- is_active?: boolean | null;
25084
- name?: components["schemas"]["NameString"] | null;
25085
- /** Retry Attempts */
25086
- retry_attempts?: number | null;
25087
- };
25088
24564
  /** UpdateWorkspaceRequest */
25089
24565
  UpdateWorkspaceRequest: {
25090
24566
  /** Connector Type */
@@ -25146,7 +24622,7 @@ export interface components {
25146
24622
  };
25147
24623
  /** UpsertVersionSetRequest */
25148
24624
  UpsertVersionSetRequest: {
25149
- version_set: components["schemas"]["VersionSet"];
24625
+ version_set: components["schemas"]["VersionSet-Input"];
25150
24626
  };
25151
24627
  /** UsageBucket */
25152
24628
  UsageBucket: {
@@ -25338,15 +24814,26 @@ export interface components {
25338
24814
  * VersionSet
25339
24815
  * @description Pins agent, state machine, and LLM model versions for a service.
25340
24816
  */
25341
- VersionSet: {
24817
+ "VersionSet-Input": {
25342
24818
  /** Agent Version Number */
25343
24819
  agent_version_number?: number | null;
25344
24820
  /** Context Graph Version Number */
25345
24821
  context_graph_version_number?: number | null;
25346
- /**
25347
- * Llm Model Preferences
25348
- * @default {}
25349
- */
24822
+ /** Llm Model Preferences */
24823
+ llm_model_preferences?: {
24824
+ [key: string]: components["schemas"]["LLMConfig"];
24825
+ };
24826
+ };
24827
+ /**
24828
+ * VersionSet
24829
+ * @description Pins agent, state machine, and LLM model versions for a service.
24830
+ */
24831
+ "VersionSet-Output": {
24832
+ /** Agent Version Number */
24833
+ agent_version_number?: number | null;
24834
+ /** Context Graph Version Number */
24835
+ context_graph_version_number?: number | null;
24836
+ /** Llm Model Preferences */
25350
24837
  llm_model_preferences?: {
25351
24838
  [key: string]: components["schemas"]["LLMConfig"];
25352
24839
  };
@@ -25682,373 +25169,6 @@ export interface components {
25682
25169
  */
25683
25170
  setup_id: string;
25684
25171
  };
25685
- /** VoicemailListResponse */
25686
- VoicemailListResponse: {
25687
- /** Items */
25688
- items: components["schemas"]["VoicemailResponse"][];
25689
- };
25690
- /** VoicemailResponse */
25691
- VoicemailResponse: {
25692
- /**
25693
- * Created At
25694
- * Format: date-time
25695
- */
25696
- created_at: string;
25697
- /** Recipient Phone Number */
25698
- recipient_phone_number: string;
25699
- /** Setup Id */
25700
- setup_id: string;
25701
- /** Status */
25702
- status: string;
25703
- /**
25704
- * Updated At
25705
- * Format: date-time
25706
- */
25707
- updated_at: string;
25708
- /** Use Case Id */
25709
- use_case_id: string;
25710
- /**
25711
- * Voicemail Id
25712
- * Format: uuid
25713
- */
25714
- voicemail_id: string;
25715
- };
25716
- /** VoicemailSentResponse */
25717
- VoicemailSentResponse: {
25718
- /** Sender Phone Number */
25719
- sender_phone_number: string;
25720
- /**
25721
- * Voicemail Id
25722
- * Format: uuid
25723
- */
25724
- voicemail_id: string;
25725
- };
25726
- /** WebhookDestinationCreatedResponse */
25727
- WebhookDestinationCreatedResponse: {
25728
- /** Accepted Event Types */
25729
- accepted_event_types: string[];
25730
- /**
25731
- * Created At
25732
- * @description When the webhook destination was created
25733
- */
25734
- created_at?: string | null;
25735
- /** Created By */
25736
- created_by: string | null;
25737
- /** Description */
25738
- description: string | null;
25739
- /** Field Mapping */
25740
- field_mapping: {
25741
- [key: string]: unknown;
25742
- } | null;
25743
- /**
25744
- * Id
25745
- * Format: uuid
25746
- */
25747
- id: string;
25748
- /** Is Active */
25749
- is_active: boolean;
25750
- /** Name */
25751
- name: string;
25752
- /** Retry Attempts */
25753
- retry_attempts: number;
25754
- /** Secret */
25755
- secret: string;
25756
- /**
25757
- * Trigger Id
25758
- * Format: uuid
25759
- */
25760
- trigger_id: string;
25761
- /**
25762
- * Updated At
25763
- * @description When the webhook destination was last updated
25764
- */
25765
- updated_at?: string | null;
25766
- /** Url */
25767
- url: string;
25768
- /**
25769
- * Workspace Id
25770
- * Format: uuid
25771
- */
25772
- workspace_id: string;
25773
- };
25774
- /** WebhookDestinationResponse */
25775
- WebhookDestinationResponse: {
25776
- /** Accepted Event Types */
25777
- accepted_event_types: string[];
25778
- /**
25779
- * Created At
25780
- * @description When the webhook destination was created
25781
- */
25782
- created_at?: string | null;
25783
- /** Created By */
25784
- created_by: string | null;
25785
- /** Description */
25786
- description: string | null;
25787
- /** Field Mapping */
25788
- field_mapping: {
25789
- [key: string]: unknown;
25790
- } | null;
25791
- /**
25792
- * Id
25793
- * Format: uuid
25794
- */
25795
- id: string;
25796
- /** Is Active */
25797
- is_active: boolean;
25798
- /** Name */
25799
- name: string;
25800
- /** Retry Attempts */
25801
- retry_attempts: number;
25802
- /**
25803
- * Trigger Id
25804
- * Format: uuid
25805
- */
25806
- trigger_id: string;
25807
- /**
25808
- * Updated At
25809
- * @description When the webhook destination was last updated
25810
- */
25811
- updated_at?: string | null;
25812
- /** Url */
25813
- url: string;
25814
- /**
25815
- * Workspace Id
25816
- * Format: uuid
25817
- */
25818
- workspace_id: string;
25819
- };
25820
- /** WebhookReceivedResponse */
25821
- WebhookReceivedResponse: {
25822
- /**
25823
- * Destination Id
25824
- * Format: uuid
25825
- */
25826
- destination_id: string;
25827
- /**
25828
- * Event Id
25829
- * Format: uuid
25830
- */
25831
- event_id: string;
25832
- };
25833
- /** WorkflowSettingsRequest */
25834
- WorkflowSettingsRequest: {
25835
- /** Workflows */
25836
- workflows: components["schemas"]["WorkflowSpec-Input"][];
25837
- };
25838
- /** WorkflowSettingsResponse */
25839
- WorkflowSettingsResponse: {
25840
- /** Workflows */
25841
- workflows?: components["schemas"]["WorkflowSpec-Output"][];
25842
- };
25843
- /**
25844
- * WorkflowSpec
25845
- * @description A workflow definition stored in workspace settings.
25846
- *
25847
- * Workflows are identified by name (unique within a workspace).
25848
- */
25849
- "WorkflowSpec-Input": {
25850
- /**
25851
- * Description
25852
- * @default
25853
- */
25854
- description?: string;
25855
- /**
25856
- * Enabled
25857
- * @default true
25858
- */
25859
- enabled?: boolean;
25860
- /** Id */
25861
- id?: string;
25862
- /** Input Query */
25863
- input_query?: string | null;
25864
- /**
25865
- * Max Concurrent
25866
- * @default 10
25867
- */
25868
- max_concurrent?: number;
25869
- /** Name */
25870
- name: string;
25871
- /** Steps */
25872
- steps: components["schemas"]["WorkflowStep-Input"][];
25873
- /**
25874
- * Timeout
25875
- * Format: duration
25876
- * @default P7D
25877
- */
25878
- timeout?: string;
25879
- trigger: components["schemas"]["WorkflowTrigger"];
25880
- };
25881
- /**
25882
- * WorkflowSpec
25883
- * @description A workflow definition stored in workspace settings.
25884
- *
25885
- * Workflows are identified by name (unique within a workspace).
25886
- */
25887
- "WorkflowSpec-Output": {
25888
- /**
25889
- * Description
25890
- * @default
25891
- */
25892
- description?: string;
25893
- /**
25894
- * Enabled
25895
- * @default true
25896
- */
25897
- enabled?: boolean;
25898
- /** Id */
25899
- id?: string;
25900
- /** Input Query */
25901
- input_query?: string | null;
25902
- /**
25903
- * Max Concurrent
25904
- * @default 10
25905
- */
25906
- max_concurrent?: number;
25907
- /** Name */
25908
- name: string;
25909
- /** Steps */
25910
- steps: components["schemas"]["WorkflowStep-Output"][];
25911
- /**
25912
- * Timeout
25913
- * Format: duration
25914
- * @default P7D
25915
- */
25916
- timeout?: string;
25917
- trigger: components["schemas"]["WorkflowTrigger"];
25918
- };
25919
- /**
25920
- * WorkflowStep
25921
- * @description A single step in a workflow spec.
25922
- *
25923
- * Steps are declarative — no LLM decides which step to run next.
25924
- * The engine executes them sequentially unless branch/for_each alters flow.
25925
- */
25926
- "WorkflowStep-Input": {
25927
- /** Body Steps */
25928
- body_steps?: components["schemas"]["WorkflowStep-Input"][] | null;
25929
- /** Condition */
25930
- condition?: string | null;
25931
- /** Endpoint */
25932
- endpoint?: string | null;
25933
- /** Integration */
25934
- integration?: string | null;
25935
- /** Items From */
25936
- items_from?: string | null;
25937
- /** Name */
25938
- name: string;
25939
- /** On False */
25940
- on_false?: string | null;
25941
- /** On True */
25942
- on_true?: string | null;
25943
- /** Request Body */
25944
- request_body?: {
25945
- [key: string]: unknown;
25946
- };
25947
- /**
25948
- * Retry Backoff Seconds
25949
- * @default 2
25950
- */
25951
- retry_backoff_seconds?: number;
25952
- /**
25953
- * Retry Count
25954
- * @default 3
25955
- */
25956
- retry_count?: number;
25957
- /** Surface Spec */
25958
- surface_spec?: {
25959
- [key: string]: unknown;
25960
- } | null;
25961
- /** Tool Name */
25962
- tool_name?: string | null;
25963
- /** Tool Params */
25964
- tool_params?: {
25965
- [key: string]: unknown;
25966
- };
25967
- /**
25968
- * Type
25969
- * @enum {string}
25970
- */
25971
- type: "tool_call" | "integration_call" | "wait" | "branch" | "for_each" | "surface";
25972
- /** Wait Duration */
25973
- wait_duration?: string | null;
25974
- /** Wait For Event */
25975
- wait_for_event?: string | null;
25976
- };
25977
- /**
25978
- * WorkflowStep
25979
- * @description A single step in a workflow spec.
25980
- *
25981
- * Steps are declarative — no LLM decides which step to run next.
25982
- * The engine executes them sequentially unless branch/for_each alters flow.
25983
- */
25984
- "WorkflowStep-Output": {
25985
- /** Body Steps */
25986
- body_steps?: components["schemas"]["WorkflowStep-Output"][] | null;
25987
- /** Condition */
25988
- condition?: string | null;
25989
- /** Endpoint */
25990
- endpoint?: string | null;
25991
- /** Integration */
25992
- integration?: string | null;
25993
- /** Items From */
25994
- items_from?: string | null;
25995
- /** Name */
25996
- name: string;
25997
- /** On False */
25998
- on_false?: string | null;
25999
- /** On True */
26000
- on_true?: string | null;
26001
- /** Request Body */
26002
- request_body?: {
26003
- [key: string]: unknown;
26004
- };
26005
- /**
26006
- * Retry Backoff Seconds
26007
- * @default 2
26008
- */
26009
- retry_backoff_seconds?: number;
26010
- /**
26011
- * Retry Count
26012
- * @default 3
26013
- */
26014
- retry_count?: number;
26015
- /** Surface Spec */
26016
- surface_spec?: {
26017
- [key: string]: unknown;
26018
- } | null;
26019
- /** Tool Name */
26020
- tool_name?: string | null;
26021
- /** Tool Params */
26022
- tool_params?: {
26023
- [key: string]: unknown;
26024
- };
26025
- /**
26026
- * Type
26027
- * @enum {string}
26028
- */
26029
- type: "tool_call" | "integration_call" | "wait" | "branch" | "for_each" | "surface";
26030
- /** Wait Duration */
26031
- wait_duration?: string | null;
26032
- /** Wait For Event */
26033
- wait_for_event?: string | null;
26034
- };
26035
- /**
26036
- * WorkflowTrigger
26037
- * @description When and how a workflow starts.
26038
- */
26039
- WorkflowTrigger: {
26040
- /** Cron Expression */
26041
- cron_expression?: string | null;
26042
- /** Event Filter */
26043
- event_filter?: {
26044
- [key: string]: unknown;
26045
- } | null;
26046
- /**
26047
- * Type
26048
- * @enum {string}
26049
- */
26050
- type: "cron" | "event" | "manual";
26051
- };
26052
25172
  /**
26053
25173
  * WorkspaceBenchmarks
26054
25174
  * @description Workspace-level call quality benchmarks for contextual comparison.
@@ -26109,6 +25229,48 @@ export interface components {
26109
25229
  */
26110
25230
  workspace_id: string;
26111
25231
  };
25232
+ /**
25233
+ * WorkspaceDataQueryItem
25234
+ * @description Wire shape for the response of every read + create/update handler.
25235
+ *
25236
+ * ``id`` (UUID) is the stable handle — every URL except list takes it.
25237
+ * ``name`` is the workspace-visible label (UNIQUE per workspace) and is
25238
+ * still what the LLM tool registry keys on (``wsq_<name>``), but it is
25239
+ * not the route identifier.
25240
+ *
25241
+ * ``input_schema`` is deliberately NOT exposed — it is fully derivable
25242
+ * from ``parameters[]``. UI consumers can build the JSON Schema view
25243
+ * locally if they need it.
25244
+ */
25245
+ WorkspaceDataQueryItem: {
25246
+ /**
25247
+ * Deployed At
25248
+ * Format: date-time
25249
+ */
25250
+ deployed_at: string;
25251
+ /**
25252
+ * Deployed By
25253
+ * Format: uuid
25254
+ */
25255
+ deployed_by: string;
25256
+ /** Description */
25257
+ description: string;
25258
+ /**
25259
+ * Id
25260
+ * Format: uuid
25261
+ */
25262
+ id: string;
25263
+ /** Last Invoked At */
25264
+ last_invoked_at?: string | null;
25265
+ /** Name */
25266
+ name: string;
25267
+ /** Parameters */
25268
+ parameters: components["schemas"]["StoredParameter"][];
25269
+ /** Sql Template */
25270
+ sql_template: string;
25271
+ /** Timeout Ms */
25272
+ timeout_ms: number;
25273
+ };
26112
25274
  /** WorkspaceInvitationAcceptedEvent */
26113
25275
  WorkspaceInvitationAcceptedEvent: {
26114
25276
  /**
@@ -26272,6 +25434,34 @@ export interface components {
26272
25434
  };
26273
25435
  _ToolMockKey: string;
26274
25436
  _ToolMockValue: string;
25437
+ /**
25438
+ * Parameter
25439
+ * @description Typed declaration of one input parameter.
25440
+ *
25441
+ * For SQL function types, ``name`` becomes the ``:name`` placeholder
25442
+ * in the SQL template. For Python function types, ``name`` becomes
25443
+ * the positional argument name in ``def main(...)`` and the input
25444
+ * column name on the UC UDF signature.
25445
+ *
25446
+ * The ``description`` propagates into the LLM tool spec (this is
25447
+ * what Databricks' Agent Framework reads, and what Anthropic's
25448
+ * tool-use spec exposes to the model). Missing descriptions
25449
+ * silently break tool selection — the registration layer rejects
25450
+ * empty strings.
25451
+ */
25452
+ platform_lib__platform_functions__models__Parameter: {
25453
+ /** Default */
25454
+ default?: string | number | boolean | null;
25455
+ /** Description */
25456
+ description: string;
25457
+ /** Name */
25458
+ name: string;
25459
+ /**
25460
+ * Type
25461
+ * @enum {string}
25462
+ */
25463
+ type: "string" | "integer" | "number" | "boolean";
25464
+ };
26275
25465
  /**
26276
25466
  * IntegrationToolRef
26277
25467
  * @description Reference to an integration endpoint by integration + endpoint name.
@@ -26563,10 +25753,148 @@ export interface components {
26563
25753
  /** Tags */
26564
25754
  tags?: string[];
26565
25755
  };
25756
+ /**
25757
+ * Request
25758
+ * @description Create body — the authored shape of a new workspace data query.
25759
+ *
25760
+ * The SQL template + parameters parity check + multi-statement /
25761
+ * session-state-command refusal runs inside :meth:`_validate_template`
25762
+ * so a bad payload surfaces as a Pydantic 422 with the standard wire
25763
+ * shape — no try/except in the handler.
25764
+ */
25765
+ src__routes__workspace_data_queries__create_workspace_data_query__Request: {
25766
+ /** Description */
25767
+ description: string;
25768
+ /** Name */
25769
+ name: string;
25770
+ /** Parameters */
25771
+ parameters?: components["schemas"]["src__routes__workspace_data_queries__create_workspace_data_query__Request__Parameter"][];
25772
+ /** Sql Template */
25773
+ sql_template: string;
25774
+ /**
25775
+ * Timeout Ms
25776
+ * @default 5000
25777
+ */
25778
+ timeout_ms?: number;
25779
+ };
25780
+ /**
25781
+ * Parameter
25782
+ * @description Strict write-side validator for one declared parameter.
25783
+ */
25784
+ src__routes__workspace_data_queries__create_workspace_data_query__Request__Parameter: {
25785
+ /** Default */
25786
+ default?: string | number | boolean | null;
25787
+ /** Description */
25788
+ description: string;
25789
+ /** Name */
25790
+ name: string;
25791
+ /**
25792
+ * Type
25793
+ * @enum {string}
25794
+ */
25795
+ type: "string" | "integer" | "number" | "boolean";
25796
+ };
25797
+ /** Request */
25798
+ src__routes__workspace_data_queries__invoke_workspace_data_query__Request: {
25799
+ /**
25800
+ * Input
25801
+ * @description Caller arguments matching the declared parameters.
25802
+ */
25803
+ input?: {
25804
+ [key: string]: unknown;
25805
+ };
25806
+ };
25807
+ /** Response */
25808
+ src__routes__workspace_data_queries__invoke_workspace_data_query__Response: {
25809
+ /**
25810
+ * Duration Ms
25811
+ * @default 0
25812
+ */
25813
+ duration_ms?: number;
25814
+ /** Result */
25815
+ result?: {
25816
+ [key: string]: unknown;
25817
+ }[];
25818
+ /**
25819
+ * Row Count
25820
+ * @default 0
25821
+ */
25822
+ row_count?: number;
25823
+ };
25824
+ /** Item */
25825
+ src__routes__workspace_data_queries__list_workspace_data_queries__Item: {
25826
+ /**
25827
+ * Deployed At
25828
+ * Format: date-time
25829
+ */
25830
+ deployed_at: string;
25831
+ /**
25832
+ * Deployed By
25833
+ * Format: uuid
25834
+ */
25835
+ deployed_by: string;
25836
+ /** Description */
25837
+ description: string;
25838
+ /**
25839
+ * Id
25840
+ * Format: uuid
25841
+ */
25842
+ id: string;
25843
+ /** Last Invoked At */
25844
+ last_invoked_at?: string | null;
25845
+ /** Name */
25846
+ name: string;
25847
+ /** Parameter Count */
25848
+ parameter_count: number;
25849
+ /** Sql Template */
25850
+ sql_template: string;
25851
+ /** Timeout Ms */
25852
+ timeout_ms: number;
25853
+ };
25854
+ /** Response */
25855
+ src__routes__workspace_data_queries__list_workspace_data_queries__Response: {
25856
+ /** Count */
25857
+ count: number;
25858
+ /** Items */
25859
+ items: components["schemas"]["src__routes__workspace_data_queries__list_workspace_data_queries__Item"][];
25860
+ };
25861
+ /**
25862
+ * Request
25863
+ * @description PATCH body — every field optional. Present ⇒ overwrite; absent ⇒ keep.
25864
+ */
25865
+ src__routes__workspace_data_queries__update_workspace_data_query__Request: {
25866
+ /** Description */
25867
+ description?: string | null;
25868
+ /** Name */
25869
+ name?: string | null;
25870
+ /** Parameters */
25871
+ parameters?: components["schemas"]["src__routes__workspace_data_queries__update_workspace_data_query__Request__Parameter"][] | null;
25872
+ /** Sql Template */
25873
+ sql_template?: string | null;
25874
+ /** Timeout Ms */
25875
+ timeout_ms?: number | null;
25876
+ };
25877
+ /**
25878
+ * Parameter
25879
+ * @description Strict write-side validator for one declared parameter.
25880
+ */
25881
+ src__routes__workspace_data_queries__update_workspace_data_query__Request__Parameter: {
25882
+ /** Default */
25883
+ default?: string | number | boolean | null;
25884
+ /** Description */
25885
+ description: string;
25886
+ /** Name */
25887
+ name: string;
25888
+ /**
25889
+ * Type
25890
+ * @enum {string}
25891
+ */
25892
+ type: "string" | "integer" | "number" | "boolean";
25893
+ };
26566
25894
  /** Request */
26567
25895
  src__routes__workspace_tables__create_workspace_table__Request: {
26568
25896
  /** Columns */
26569
- columns: components["schemas"]["src__routes__workspace_tables__create_workspace_table__Request__Column"][];
25897
+ columns: components["schemas"]["Column-Input"][];
26570
25898
  /** Indexes */
26571
25899
  indexes?: components["schemas"]["Index-Input"][];
26572
25900
  /** Primary Key */
@@ -26575,30 +25903,6 @@ export interface components {
26575
25903
  /** Unique */
26576
25904
  unique?: components["schemas"]["IdentifierString"][][];
26577
25905
  };
26578
- /** Column */
26579
- src__routes__workspace_tables__create_workspace_table__Request__Column: {
26580
- default?: components["schemas"]["src__routes__workspace_tables__create_workspace_table__Request__Default"] | null;
26581
- name: components["schemas"]["IdentifierString"];
26582
- /**
26583
- * Nullable
26584
- * @default true
26585
- */
26586
- nullable?: boolean;
26587
- type: components["schemas"]["ColumnType"];
26588
- };
26589
- /** Default */
26590
- src__routes__workspace_tables__create_workspace_table__Request__Default: {
26591
- /**
26592
- * Kind
26593
- * @enum {string}
26594
- */
26595
- kind: "literal" | "uuid_v4" | "now" | "current_date";
26596
- /**
26597
- * Value
26598
- * @description Only meaningful for ``kind="literal"``. Other kinds ignore it.
26599
- */
26600
- value?: string | number | boolean | null;
26601
- };
26602
25906
  /** Response */
26603
25907
  src__routes__workspace_tables__create_workspace_table__Response: {
26604
25908
  /**
@@ -26622,8 +25926,9 @@ export interface components {
26622
25926
  * Sql
26623
25927
  * @description One SQL statement: SELECT / WITH ... SELECT / INSERT / UPDATE /
26624
25928
  * DELETE. Multi-statement, DDL, and session-state commands (SET ROLE,
26625
- * RESET, SET SESSION AUTHORIZATION) reject with 400. ``pg_*``
26626
- * function calls reject with 400.
25929
+ * RESET, SET SESSION AUTHORIZATION) reject with 422 at the Pydantic
25930
+ * boundary. ``pg_*`` function calls reject with 400 at execute time
25931
+ * (no grant).
26627
25932
  */
26628
25933
  sql: string;
26629
25934
  };
@@ -26669,33 +25974,34 @@ export interface components {
26669
25974
  /** Response */
26670
25975
  src__routes__workspace_tables__list_workspace_tables__Response: {
26671
25976
  /** Items */
26672
- items: components["schemas"]["Item"][];
26673
- };
26674
- /** Request */
26675
- src__routes__workspace_tables__update_workspace_table__Request: {
26676
- /** Actions */
26677
- actions: (components["schemas"]["AddColumnAction"] | components["schemas"]["DropColumnAction"] | components["schemas"]["RenameColumnAction"] | components["schemas"]["ChangeColumnTypeAction"] | components["schemas"]["SetColumnNullableAction"] | components["schemas"]["SetColumnDefaultAction"] | components["schemas"]["DropColumnDefaultAction"] | components["schemas"]["AddUniqueAction"] | components["schemas"]["DropConstraintAction"] | components["schemas"]["AddIndexAction"] | components["schemas"]["DropIndexAction"])[];
25977
+ items: components["schemas"]["src__routes__workspace_tables__list_workspace_tables__Response__Item"][];
26678
25978
  };
26679
- /** Column */
26680
- src__routes__workspace_tables__update_workspace_table__Request__Column: {
26681
- default?: components["schemas"]["src__routes__workspace_tables__update_workspace_table__Request__Default"] | null;
26682
- name: components["schemas"]["IdentifierString"];
25979
+ /** Item */
25980
+ src__routes__workspace_tables__list_workspace_tables__Response__Item: {
26683
25981
  /**
26684
- * Nullable
26685
- * @default true
25982
+ * Created At
25983
+ * Format: date-time
26686
25984
  */
26687
- nullable?: boolean;
26688
- type: components["schemas"]["ColumnType"];
26689
- };
26690
- /** Default */
26691
- src__routes__workspace_tables__update_workspace_table__Request__Default: {
25985
+ created_at: string;
26692
25986
  /**
26693
- * Kind
26694
- * @enum {string}
25987
+ * Id
25988
+ * Format: uuid
26695
25989
  */
26696
- kind: "literal" | "uuid_v4" | "now" | "current_date";
26697
- /** Value */
26698
- value?: string | number | boolean | null;
25990
+ id: string;
25991
+ /** Physical Name */
25992
+ physical_name: string;
25993
+ /** Table Name */
25994
+ table_name: string;
25995
+ /**
25996
+ * Workspace Id
25997
+ * Format: uuid
25998
+ */
25999
+ workspace_id: string;
26000
+ };
26001
+ /** Request */
26002
+ src__routes__workspace_tables__update_workspace_table__Request: {
26003
+ /** Actions */
26004
+ actions: components["schemas"]["AlterAction"][];
26699
26005
  };
26700
26006
  /** Response */
26701
26007
  src__routes__workspace_tables__update_workspace_table__Response: {
@@ -27379,13 +26685,6 @@ export interface operations {
27379
26685
  };
27380
26686
  content?: never;
27381
26687
  };
27382
- /** @description Upload service unavailable */
27383
- 503: {
27384
- headers: {
27385
- [name: string]: unknown;
27386
- };
27387
- content?: never;
27388
- };
27389
26688
  };
27390
26689
  };
27391
26690
  "get-intake-link-info": {
@@ -29958,13 +29257,6 @@ export interface operations {
29958
29257
  };
29959
29258
  content?: never;
29960
29259
  };
29961
- /** @description Audit export not configured */
29962
- 503: {
29963
- headers: {
29964
- [name: string]: unknown;
29965
- };
29966
- content?: never;
29967
- };
29968
29260
  };
29969
29261
  };
29970
29262
  "list-audit-exports": {
@@ -30006,13 +29298,6 @@ export interface operations {
30006
29298
  };
30007
29299
  content?: never;
30008
29300
  };
30009
- /** @description Audit export not configured */
30010
- 503: {
30011
- headers: {
30012
- [name: string]: unknown;
30013
- };
30014
- content?: never;
30015
- };
30016
29301
  };
30017
29302
  };
30018
29303
  "get-phi-access-report": {
@@ -32397,13 +31682,182 @@ export interface operations {
32397
31682
  };
32398
31683
  };
32399
31684
  };
32400
- "data-source-status": {
31685
+ "data-source-status": {
31686
+ parameters: {
31687
+ query?: never;
31688
+ header?: never;
31689
+ path: {
31690
+ workspace_id: string;
31691
+ data_source_id: string;
31692
+ };
31693
+ cookie?: never;
31694
+ };
31695
+ requestBody?: never;
31696
+ responses: {
31697
+ /** @description Successful Response */
31698
+ 200: {
31699
+ headers: {
31700
+ [name: string]: unknown;
31701
+ };
31702
+ content: {
31703
+ "application/json": components["schemas"]["DataSourceStatusResponse"];
31704
+ };
31705
+ };
31706
+ /** @description Missing or invalid API key. */
31707
+ 401: {
31708
+ headers: {
31709
+ [name: string]: unknown;
31710
+ };
31711
+ content?: never;
31712
+ };
31713
+ /** @description Data source not found. */
31714
+ 404: {
31715
+ headers: {
31716
+ [name: string]: unknown;
31717
+ };
31718
+ content?: never;
31719
+ };
31720
+ /** @description Validation Error */
31721
+ 422: {
31722
+ headers: {
31723
+ [name: string]: unknown;
31724
+ };
31725
+ content: {
31726
+ "application/json": components["schemas"]["HTTPValidationError"];
31727
+ };
31728
+ };
31729
+ };
31730
+ };
31731
+ "trigger-data-source-sync": {
31732
+ parameters: {
31733
+ query?: never;
31734
+ header?: never;
31735
+ path: {
31736
+ workspace_id: string;
31737
+ data_source_id: string;
31738
+ };
31739
+ cookie?: never;
31740
+ };
31741
+ requestBody?: never;
31742
+ responses: {
31743
+ /** @description Successful Response */
31744
+ 202: {
31745
+ headers: {
31746
+ [name: string]: unknown;
31747
+ };
31748
+ content: {
31749
+ "application/json": components["schemas"]["TriggerSyncResponse"];
31750
+ };
31751
+ };
31752
+ /** @description Invalid data source ID format. */
31753
+ 400: {
31754
+ headers: {
31755
+ [name: string]: unknown;
31756
+ };
31757
+ content?: never;
31758
+ };
31759
+ /** @description Missing or invalid API key. */
31760
+ 401: {
31761
+ headers: {
31762
+ [name: string]: unknown;
31763
+ };
31764
+ content?: never;
31765
+ };
31766
+ /** @description Data source not found. */
31767
+ 404: {
31768
+ headers: {
31769
+ [name: string]: unknown;
31770
+ };
31771
+ content?: never;
31772
+ };
31773
+ /** @description Data source is already syncing. */
31774
+ 409: {
31775
+ headers: {
31776
+ [name: string]: unknown;
31777
+ };
31778
+ content: {
31779
+ "application/json": components["schemas"]["TriggerSyncConflictResponse"];
31780
+ };
31781
+ };
31782
+ /** @description Validation Error */
31783
+ 422: {
31784
+ headers: {
31785
+ [name: string]: unknown;
31786
+ };
31787
+ content: {
31788
+ "application/json": components["schemas"]["HTTPValidationError"];
31789
+ };
31790
+ };
31791
+ /** @description Rate limit exceeded. */
31792
+ 429: {
31793
+ headers: {
31794
+ [name: string]: unknown;
31795
+ };
31796
+ content?: never;
31797
+ };
31798
+ /** @description Connector-runner is unreachable. */
31799
+ 503: {
31800
+ headers: {
31801
+ [name: string]: unknown;
31802
+ };
31803
+ content?: never;
31804
+ };
31805
+ };
31806
+ };
31807
+ "data-source-sync-history": {
31808
+ parameters: {
31809
+ query?: {
31810
+ days?: number;
31811
+ };
31812
+ header?: never;
31813
+ path: {
31814
+ workspace_id: string;
31815
+ data_source_id: string;
31816
+ };
31817
+ cookie?: never;
31818
+ };
31819
+ requestBody?: never;
31820
+ responses: {
31821
+ /** @description Successful Response */
31822
+ 200: {
31823
+ headers: {
31824
+ [name: string]: unknown;
31825
+ };
31826
+ content: {
31827
+ "application/json": components["schemas"]["DataSourceSyncHistoryResponse"];
31828
+ };
31829
+ };
31830
+ /** @description Missing or invalid API key. */
31831
+ 401: {
31832
+ headers: {
31833
+ [name: string]: unknown;
31834
+ };
31835
+ content?: never;
31836
+ };
31837
+ /** @description Data source not found. */
31838
+ 404: {
31839
+ headers: {
31840
+ [name: string]: unknown;
31841
+ };
31842
+ content?: never;
31843
+ };
31844
+ /** @description Validation Error */
31845
+ 422: {
31846
+ headers: {
31847
+ [name: string]: unknown;
31848
+ };
31849
+ content: {
31850
+ "application/json": components["schemas"]["HTTPValidationError"];
31851
+ };
31852
+ };
31853
+ };
31854
+ };
31855
+ "list-workspace-data-queries": {
32401
31856
  parameters: {
32402
31857
  query?: never;
32403
31858
  header?: never;
32404
31859
  path: {
32405
31860
  workspace_id: string;
32406
- data_source_id: string;
32407
31861
  };
32408
31862
  cookie?: never;
32409
31863
  };
@@ -32415,103 +31869,168 @@ export interface operations {
32415
31869
  [name: string]: unknown;
32416
31870
  };
32417
31871
  content: {
32418
- "application/json": components["schemas"]["DataSourceStatusResponse"];
31872
+ "application/json": components["schemas"]["src__routes__workspace_data_queries__list_workspace_data_queries__Response"];
32419
31873
  };
32420
31874
  };
32421
- /** @description Missing or invalid API key. */
32422
- 401: {
31875
+ };
31876
+ };
31877
+ "create-workspace-data-query": {
31878
+ parameters: {
31879
+ query?: never;
31880
+ header?: never;
31881
+ path: {
31882
+ workspace_id: string;
31883
+ };
31884
+ cookie?: never;
31885
+ };
31886
+ requestBody: {
31887
+ content: {
31888
+ "application/json": components["schemas"]["src__routes__workspace_data_queries__create_workspace_data_query__Request"];
31889
+ };
31890
+ };
31891
+ responses: {
31892
+ /** @description Successful Response */
31893
+ 201: {
32423
31894
  headers: {
32424
31895
  [name: string]: unknown;
32425
31896
  };
32426
- content?: never;
31897
+ content: {
31898
+ "application/json": components["schemas"]["WorkspaceDataQueryItem"];
31899
+ };
32427
31900
  };
32428
- /** @description Data source not found. */
32429
- 404: {
31901
+ /** @description A workspace data query with the given name already exists */
31902
+ 409: {
32430
31903
  headers: {
32431
31904
  [name: string]: unknown;
32432
31905
  };
32433
31906
  content?: never;
32434
31907
  };
32435
- /** @description Validation Error */
31908
+ /** @description Validation or precondition failure */
32436
31909
  422: {
32437
31910
  headers: {
32438
31911
  [name: string]: unknown;
32439
31912
  };
32440
- content: {
32441
- "application/json": components["schemas"]["HTTPValidationError"];
32442
- };
31913
+ content?: never;
32443
31914
  };
32444
31915
  };
32445
31916
  };
32446
- "trigger-data-source-sync": {
31917
+ "get-workspace-data-query": {
32447
31918
  parameters: {
32448
31919
  query?: never;
32449
31920
  header?: never;
32450
31921
  path: {
32451
31922
  workspace_id: string;
32452
- data_source_id: string;
31923
+ query_id: string;
32453
31924
  };
32454
31925
  cookie?: never;
32455
31926
  };
32456
31927
  requestBody?: never;
32457
31928
  responses: {
32458
31929
  /** @description Successful Response */
32459
- 202: {
31930
+ 200: {
32460
31931
  headers: {
32461
31932
  [name: string]: unknown;
32462
31933
  };
32463
31934
  content: {
32464
- "application/json": components["schemas"]["TriggerSyncResponse"];
31935
+ "application/json": components["schemas"]["WorkspaceDataQueryItem"];
32465
31936
  };
32466
31937
  };
32467
- /** @description Invalid data source ID format. */
32468
- 400: {
31938
+ /** @description Workspace data query not found */
31939
+ 404: {
32469
31940
  headers: {
32470
31941
  [name: string]: unknown;
32471
31942
  };
32472
31943
  content?: never;
32473
31944
  };
32474
- /** @description Missing or invalid API key. */
32475
- 401: {
31945
+ /** @description Validation Error */
31946
+ 422: {
31947
+ headers: {
31948
+ [name: string]: unknown;
31949
+ };
31950
+ content: {
31951
+ "application/json": components["schemas"]["HTTPValidationError"];
31952
+ };
31953
+ };
31954
+ };
31955
+ };
31956
+ "delete-workspace-data-query": {
31957
+ parameters: {
31958
+ query?: never;
31959
+ header?: never;
31960
+ path: {
31961
+ workspace_id: string;
31962
+ query_id: string;
31963
+ };
31964
+ cookie?: never;
31965
+ };
31966
+ requestBody?: never;
31967
+ responses: {
31968
+ /** @description Successful Response */
31969
+ 204: {
32476
31970
  headers: {
32477
31971
  [name: string]: unknown;
32478
31972
  };
32479
31973
  content?: never;
32480
31974
  };
32481
- /** @description Data source not found. */
31975
+ /** @description Workspace data query not found */
32482
31976
  404: {
32483
31977
  headers: {
32484
31978
  [name: string]: unknown;
32485
31979
  };
32486
31980
  content?: never;
32487
31981
  };
32488
- /** @description Data source is already syncing. */
32489
- 409: {
31982
+ /** @description Validation Error */
31983
+ 422: {
32490
31984
  headers: {
32491
31985
  [name: string]: unknown;
32492
31986
  };
32493
31987
  content: {
32494
- "application/json": components["schemas"]["TriggerSyncConflictResponse"];
31988
+ "application/json": components["schemas"]["HTTPValidationError"];
32495
31989
  };
32496
31990
  };
32497
- /** @description Validation Error */
32498
- 422: {
31991
+ };
31992
+ };
31993
+ "update-workspace-data-query": {
31994
+ parameters: {
31995
+ query?: never;
31996
+ header?: never;
31997
+ path: {
31998
+ workspace_id: string;
31999
+ query_id: string;
32000
+ };
32001
+ cookie?: never;
32002
+ };
32003
+ requestBody: {
32004
+ content: {
32005
+ "application/json": components["schemas"]["src__routes__workspace_data_queries__update_workspace_data_query__Request"];
32006
+ };
32007
+ };
32008
+ responses: {
32009
+ /** @description Successful Response */
32010
+ 200: {
32499
32011
  headers: {
32500
32012
  [name: string]: unknown;
32501
32013
  };
32502
32014
  content: {
32503
- "application/json": components["schemas"]["HTTPValidationError"];
32015
+ "application/json": components["schemas"]["WorkspaceDataQueryItem"];
32504
32016
  };
32505
32017
  };
32506
- /** @description Rate limit exceeded. */
32507
- 429: {
32018
+ /** @description Workspace data query not found */
32019
+ 404: {
32508
32020
  headers: {
32509
32021
  [name: string]: unknown;
32510
32022
  };
32511
32023
  content?: never;
32512
32024
  };
32513
- /** @description Connector-runner is unreachable. */
32514
- 503: {
32025
+ /** @description A workspace data query with the given name already exists */
32026
+ 409: {
32027
+ headers: {
32028
+ [name: string]: unknown;
32029
+ };
32030
+ content?: never;
32031
+ };
32032
+ /** @description Validation failure */
32033
+ 422: {
32515
32034
  headers: {
32516
32035
  [name: string]: unknown;
32517
32036
  };
@@ -32519,19 +32038,21 @@ export interface operations {
32519
32038
  };
32520
32039
  };
32521
32040
  };
32522
- "data-source-sync-history": {
32041
+ "invoke-workspace-data-query": {
32523
32042
  parameters: {
32524
- query?: {
32525
- days?: number;
32526
- };
32043
+ query?: never;
32527
32044
  header?: never;
32528
32045
  path: {
32529
32046
  workspace_id: string;
32530
- data_source_id: string;
32047
+ query_id: string;
32531
32048
  };
32532
32049
  cookie?: never;
32533
32050
  };
32534
- requestBody?: never;
32051
+ requestBody: {
32052
+ content: {
32053
+ "application/json": components["schemas"]["src__routes__workspace_data_queries__invoke_workspace_data_query__Request"];
32054
+ };
32055
+ };
32535
32056
  responses: {
32536
32057
  /** @description Successful Response */
32537
32058
  200: {
@@ -32539,17 +32060,10 @@ export interface operations {
32539
32060
  [name: string]: unknown;
32540
32061
  };
32541
32062
  content: {
32542
- "application/json": components["schemas"]["DataSourceSyncHistoryResponse"];
32063
+ "application/json": components["schemas"]["src__routes__workspace_data_queries__invoke_workspace_data_query__Response"];
32543
32064
  };
32544
32065
  };
32545
- /** @description Missing or invalid API key. */
32546
- 401: {
32547
- headers: {
32548
- [name: string]: unknown;
32549
- };
32550
- content?: never;
32551
- };
32552
- /** @description Data source not found. */
32066
+ /** @description Workspace data query not found */
32553
32067
  404: {
32554
32068
  headers: {
32555
32069
  [name: string]: unknown;
@@ -32565,6 +32079,13 @@ export interface operations {
32565
32079
  "application/json": components["schemas"]["HTTPValidationError"];
32566
32080
  };
32567
32081
  };
32082
+ /** @description Execution failed */
32083
+ 503: {
32084
+ headers: {
32085
+ [name: string]: unknown;
32086
+ };
32087
+ content?: never;
32088
+ };
32568
32089
  };
32569
32090
  };
32570
32091
  create_desktop_session_v1__workspace_id__desktop_sessions_post: {
@@ -33527,48 +33048,6 @@ export interface operations {
33527
33048
  };
33528
33049
  };
33529
33050
  };
33530
- "fhir-sync-failures": {
33531
- parameters: {
33532
- query?: {
33533
- limit?: number;
33534
- fhir_resource_type?: string | null;
33535
- fhir_resource_id?: string | null;
33536
- };
33537
- header?: never;
33538
- path: {
33539
- workspace_id: string;
33540
- };
33541
- cookie?: never;
33542
- };
33543
- requestBody?: never;
33544
- responses: {
33545
- /** @description Successful Response */
33546
- 200: {
33547
- headers: {
33548
- [name: string]: unknown;
33549
- };
33550
- content: {
33551
- "application/json": components["schemas"]["SyncFailuresResponse"];
33552
- };
33553
- };
33554
- /** @description Missing or invalid API key. */
33555
- 401: {
33556
- headers: {
33557
- [name: string]: unknown;
33558
- };
33559
- content?: never;
33560
- };
33561
- /** @description Validation Error */
33562
- 422: {
33563
- headers: {
33564
- [name: string]: unknown;
33565
- };
33566
- content: {
33567
- "application/json": components["schemas"]["HTTPValidationError"];
33568
- };
33569
- };
33570
- };
33571
- };
33572
33051
  "fhir-appointments-view": {
33573
33052
  parameters: {
33574
33053
  query?: {
@@ -34024,13 +33503,6 @@ export interface operations {
34024
33503
  };
34025
33504
  content?: never;
34026
33505
  };
34027
- /** @description Databricks SQL client unavailable */
34028
- 503: {
34029
- headers: {
34030
- [name: string]: unknown;
34031
- };
34032
- content?: never;
34033
- };
34034
33506
  };
34035
33507
  };
34036
33508
  "test-function": {
@@ -34081,45 +33553,6 @@ export interface operations {
34081
33553
  };
34082
33554
  content?: never;
34083
33555
  };
34084
- /** @description Databricks SQL client unavailable */
34085
- 503: {
34086
- headers: {
34087
- [name: string]: unknown;
34088
- };
34089
- content?: never;
34090
- };
34091
- };
34092
- };
34093
- receive_webhook_v1__workspace_id__hooks__destination_id__post: {
34094
- parameters: {
34095
- query?: never;
34096
- header?: never;
34097
- path: {
34098
- workspace_id: string;
34099
- destination_id: string;
34100
- };
34101
- cookie?: never;
34102
- };
34103
- requestBody?: never;
34104
- responses: {
34105
- /** @description Successful Response */
34106
- 200: {
34107
- headers: {
34108
- [name: string]: unknown;
34109
- };
34110
- content: {
34111
- "application/json": components["schemas"]["WebhookReceivedResponse"];
34112
- };
34113
- };
34114
- /** @description Validation Error */
34115
- 422: {
34116
- headers: {
34117
- [name: string]: unknown;
34118
- };
34119
- content: {
34120
- "application/json": components["schemas"]["HTTPValidationError"];
34121
- };
34122
- };
34123
33556
  };
34124
33557
  };
34125
33558
  get_digest_v1__workspace_id__insights_digest_get: {
@@ -35847,69 +35280,6 @@ export interface operations {
35847
35280
  };
35848
35281
  };
35849
35282
  };
35850
- "evaluate-metric": {
35851
- parameters: {
35852
- query?: never;
35853
- header?: never;
35854
- path: {
35855
- workspace_id: string;
35856
- /** @description Metric key (lowercase alphanumeric + underscores) */
35857
- metric_key: string;
35858
- };
35859
- cookie?: never;
35860
- };
35861
- requestBody: {
35862
- content: {
35863
- "application/json": components["schemas"]["MetricEvaluateRequest"];
35864
- };
35865
- };
35866
- responses: {
35867
- /** @description Successful Response */
35868
- 200: {
35869
- headers: {
35870
- [name: string]: unknown;
35871
- };
35872
- content: {
35873
- "application/json": components["schemas"]["MetricEvaluateResponse"];
35874
- };
35875
- };
35876
- /** @description Metric or call intelligence not found */
35877
- 404: {
35878
- headers: {
35879
- [name: string]: unknown;
35880
- };
35881
- content?: never;
35882
- };
35883
- /** @description Metric cannot be evaluated on demand */
35884
- 422: {
35885
- headers: {
35886
- [name: string]: unknown;
35887
- };
35888
- content?: never;
35889
- };
35890
- /** @description Rate limited */
35891
- 429: {
35892
- headers: {
35893
- [name: string]: unknown;
35894
- };
35895
- content?: never;
35896
- };
35897
- /** @description Metric preview query failed */
35898
- 502: {
35899
- headers: {
35900
- [name: string]: unknown;
35901
- };
35902
- content?: never;
35903
- };
35904
- /** @description Analytics warehouse not configured */
35905
- 503: {
35906
- headers: {
35907
- [name: string]: unknown;
35908
- };
35909
- content?: never;
35910
- };
35911
- };
35912
- };
35913
35283
  "get-metric-trend": {
35914
35284
  parameters: {
35915
35285
  query?: {
@@ -37152,7 +36522,7 @@ export interface operations {
37152
36522
  "list-prompt-logs": {
37153
36523
  parameters: {
37154
36524
  query?: {
37155
- /** @description Conversation entity UUID (canonical identifier across all modalities — voice, text/web, sms, sim). Resolves to the underlying ``call_sid`` via ``world.entities``. Mutually exclusive with the ``call_sid`` query parameter. */
36525
+ /** @description Conversation entity UUID (canonical identifier across all modalities — voice, text/web, sms, sim). Resolves text conversations through the durable ``world.conversations`` row, then falls back to the voice/call entity projection. Mutually exclusive with the ``call_sid`` query parameter. */
37156
36526
  conversation_id?: string | null;
37157
36527
  /** @description Direct conversation identifier as stored on the prompt-log event: Twilio CA-SID for voice calls, session_id UUID for text/sim sessions. Most callers should use ``conversation_id`` instead — this is kept for legacy callers and external systems that hold the SID directly. Mutually exclusive with ``conversation_id``. */
37158
36528
  call_sid?: string | null;
@@ -39034,82 +38404,6 @@ export interface operations {
39034
38404
  };
39035
38405
  };
39036
38406
  };
39037
- "get-behavior-settings": {
39038
- parameters: {
39039
- query?: never;
39040
- header?: never;
39041
- path: {
39042
- workspace_id: string;
39043
- };
39044
- cookie?: never;
39045
- };
39046
- requestBody?: never;
39047
- responses: {
39048
- /** @description Successful Response */
39049
- 200: {
39050
- headers: {
39051
- [name: string]: unknown;
39052
- };
39053
- content: {
39054
- "application/json": components["schemas"]["BehaviorSettingsResponse"];
39055
- };
39056
- };
39057
- /** @description Rate limited */
39058
- 429: {
39059
- headers: {
39060
- [name: string]: unknown;
39061
- };
39062
- content?: never;
39063
- };
39064
- };
39065
- };
39066
- "update-behavior-settings": {
39067
- parameters: {
39068
- query?: never;
39069
- header?: never;
39070
- path: {
39071
- workspace_id: string;
39072
- };
39073
- cookie?: never;
39074
- };
39075
- requestBody: {
39076
- content: {
39077
- "application/json": components["schemas"]["BehaviorSettingsRequest"];
39078
- };
39079
- };
39080
- responses: {
39081
- /** @description Successful Response */
39082
- 200: {
39083
- headers: {
39084
- [name: string]: unknown;
39085
- };
39086
- content: {
39087
- "application/json": components["schemas"]["BehaviorSettingsResponse"];
39088
- };
39089
- };
39090
- /** @description Workspace not found */
39091
- 404: {
39092
- headers: {
39093
- [name: string]: unknown;
39094
- };
39095
- content?: never;
39096
- };
39097
- /** @description Validation error */
39098
- 422: {
39099
- headers: {
39100
- [name: string]: unknown;
39101
- };
39102
- content?: never;
39103
- };
39104
- /** @description Rate limited */
39105
- 429: {
39106
- headers: {
39107
- [name: string]: unknown;
39108
- };
39109
- content?: never;
39110
- };
39111
- };
39112
- };
39113
38407
  "get-branding-settings": {
39114
38408
  parameters: {
39115
38409
  query?: never;
@@ -40020,82 +39314,6 @@ export interface operations {
40020
39314
  };
40021
39315
  };
40022
39316
  };
40023
- "get-workflow-settings": {
40024
- parameters: {
40025
- query?: never;
40026
- header?: never;
40027
- path: {
40028
- workspace_id: string;
40029
- };
40030
- cookie?: never;
40031
- };
40032
- requestBody?: never;
40033
- responses: {
40034
- /** @description Successful Response */
40035
- 200: {
40036
- headers: {
40037
- [name: string]: unknown;
40038
- };
40039
- content: {
40040
- "application/json": components["schemas"]["WorkflowSettingsResponse"];
40041
- };
40042
- };
40043
- /** @description Rate limited */
40044
- 429: {
40045
- headers: {
40046
- [name: string]: unknown;
40047
- };
40048
- content?: never;
40049
- };
40050
- };
40051
- };
40052
- "update-workflow-settings": {
40053
- parameters: {
40054
- query?: never;
40055
- header?: never;
40056
- path: {
40057
- workspace_id: string;
40058
- };
40059
- cookie?: never;
40060
- };
40061
- requestBody: {
40062
- content: {
40063
- "application/json": components["schemas"]["WorkflowSettingsRequest"];
40064
- };
40065
- };
40066
- responses: {
40067
- /** @description Successful Response */
40068
- 200: {
40069
- headers: {
40070
- [name: string]: unknown;
40071
- };
40072
- content: {
40073
- "application/json": components["schemas"]["WorkflowSettingsResponse"];
40074
- };
40075
- };
40076
- /** @description Workspace not found */
40077
- 404: {
40078
- headers: {
40079
- [name: string]: unknown;
40080
- };
40081
- content?: never;
40082
- };
40083
- /** @description Validation error */
40084
- 422: {
40085
- headers: {
40086
- [name: string]: unknown;
40087
- };
40088
- content?: never;
40089
- };
40090
- /** @description Rate limited */
40091
- 429: {
40092
- headers: {
40093
- [name: string]: unknown;
40094
- };
40095
- content?: never;
40096
- };
40097
- };
40098
- };
40099
39317
  "get-simulation-benchmark-results": {
40100
39318
  parameters: {
40101
39319
  query?: never;
@@ -42982,231 +42200,15 @@ export interface operations {
42982
42200
  };
42983
42201
  content?: never;
42984
42202
  };
42985
- /** @description Use case not found. */
42986
- 404: {
42987
- headers: {
42988
- [name: string]: unknown;
42989
- };
42990
- content?: never;
42991
- };
42992
- /** @description Use case is bound to a service, or still has active phone assignments. */
42993
- 409: {
42994
- headers: {
42995
- [name: string]: unknown;
42996
- };
42997
- content?: never;
42998
- };
42999
- /** @description Validation Error */
43000
- 422: {
43001
- headers: {
43002
- [name: string]: unknown;
43003
- };
43004
- content: {
43005
- "application/json": components["schemas"]["HTTPValidationError"];
43006
- };
43007
- };
43008
- /** @description Channel manager unavailable. */
43009
- 502: {
43010
- headers: {
43011
- [name: string]: unknown;
43012
- };
43013
- content?: never;
43014
- };
43015
- /** @description Channel manager timed out. */
43016
- 504: {
43017
- headers: {
43018
- [name: string]: unknown;
43019
- };
43020
- content?: never;
43021
- };
43022
- };
43023
- };
43024
- "get-use-case-service-binding": {
43025
- parameters: {
43026
- query?: never;
43027
- header?: never;
43028
- path: {
43029
- workspace_id: string;
43030
- use_case_id: string;
43031
- };
43032
- cookie?: never;
43033
- };
43034
- requestBody?: never;
43035
- responses: {
43036
- /** @description Successful Response */
43037
- 200: {
43038
- headers: {
43039
- [name: string]: unknown;
43040
- };
43041
- content: {
43042
- "application/json": components["schemas"]["ServiceBindingResponse"];
43043
- };
43044
- };
43045
- /** @description Insufficient permissions. */
43046
- 403: {
43047
- headers: {
43048
- [name: string]: unknown;
43049
- };
43050
- content?: never;
43051
- };
43052
- /** @description Use case is not bound to a service in this workspace. */
43053
- 404: {
43054
- headers: {
43055
- [name: string]: unknown;
43056
- };
43057
- content?: never;
43058
- };
43059
- /** @description Validation Error */
43060
- 422: {
43061
- headers: {
43062
- [name: string]: unknown;
43063
- };
43064
- content: {
43065
- "application/json": components["schemas"]["HTTPValidationError"];
43066
- };
43067
- };
43068
- };
43069
- };
43070
- "bind-use-case-to-service": {
43071
- parameters: {
43072
- query?: never;
43073
- header?: never;
43074
- path: {
43075
- workspace_id: string;
43076
- use_case_id: string;
43077
- };
43078
- cookie?: never;
43079
- };
43080
- requestBody: {
43081
- content: {
43082
- "application/json": components["schemas"]["ServiceBindingRequest"];
43083
- };
43084
- };
43085
- responses: {
43086
- /** @description Successful Response */
43087
- 200: {
43088
- headers: {
43089
- [name: string]: unknown;
43090
- };
43091
- content: {
43092
- "application/json": components["schemas"]["ServiceBindingResponse"];
43093
- };
43094
- };
43095
- /** @description Insufficient permissions. */
43096
- 403: {
43097
- headers: {
43098
- [name: string]: unknown;
43099
- };
43100
- content?: never;
43101
- };
43102
- /** @description Use case or service not found. */
43103
- 404: {
43104
- headers: {
43105
- [name: string]: unknown;
43106
- };
43107
- content?: never;
43108
- };
43109
- /** @description Service already has a different use case bound for this channel. */
43110
- 409: {
43111
- headers: {
43112
- [name: string]: unknown;
43113
- };
43114
- content?: never;
43115
- };
43116
- /** @description Unsupported use case channel. */
43117
- 422: {
43118
- headers: {
43119
- [name: string]: unknown;
43120
- };
43121
- content?: never;
43122
- };
43123
- /** @description Channel manager unavailable. */
43124
- 502: {
43125
- headers: {
43126
- [name: string]: unknown;
43127
- };
43128
- content?: never;
43129
- };
43130
- /** @description Channel manager timed out. */
43131
- 504: {
43132
- headers: {
43133
- [name: string]: unknown;
43134
- };
43135
- content?: never;
43136
- };
43137
- };
43138
- };
43139
- "unbind-use-case-from-service": {
43140
- parameters: {
43141
- query?: never;
43142
- header?: never;
43143
- path: {
43144
- workspace_id: string;
43145
- use_case_id: string;
43146
- };
43147
- cookie?: never;
43148
- };
43149
- requestBody?: never;
43150
- responses: {
43151
- /** @description Successful Response */
43152
- 204: {
43153
- headers: {
43154
- [name: string]: unknown;
43155
- };
43156
- content?: never;
43157
- };
43158
- /** @description Insufficient permissions. */
43159
- 403: {
43160
- headers: {
43161
- [name: string]: unknown;
43162
- };
43163
- content?: never;
43164
- };
43165
- /** @description Use case is not bound to a service in this workspace. */
42203
+ /** @description Use case not found. */
43166
42204
  404: {
43167
42205
  headers: {
43168
42206
  [name: string]: unknown;
43169
42207
  };
43170
42208
  content?: never;
43171
42209
  };
43172
- /** @description Validation Error */
43173
- 422: {
43174
- headers: {
43175
- [name: string]: unknown;
43176
- };
43177
- content: {
43178
- "application/json": components["schemas"]["HTTPValidationError"];
43179
- };
43180
- };
43181
- };
43182
- };
43183
- "list-voicemails": {
43184
- parameters: {
43185
- query?: {
43186
- use_case_id?: string | null;
43187
- setup_id?: string | null;
43188
- status?: ("pending" | "skipped" | "failed" | "delivered" | "not_delivered")[] | null;
43189
- recipient_phone_number?: string | null;
43190
- };
43191
- header?: never;
43192
- path: {
43193
- workspace_id: string;
43194
- };
43195
- cookie?: never;
43196
- };
43197
- requestBody?: never;
43198
- responses: {
43199
- /** @description Successful Response */
43200
- 200: {
43201
- headers: {
43202
- [name: string]: unknown;
43203
- };
43204
- content: {
43205
- "application/json": components["schemas"]["VoicemailListResponse"];
43206
- };
43207
- };
43208
- /** @description Insufficient permissions. */
43209
- 403: {
42210
+ /** @description Use case is bound to a service, or still has active phone assignments. */
42211
+ 409: {
43210
42212
  headers: {
43211
42213
  [name: string]: unknown;
43212
42214
  };
@@ -43221,60 +42223,6 @@ export interface operations {
43221
42223
  "application/json": components["schemas"]["HTTPValidationError"];
43222
42224
  };
43223
42225
  };
43224
- };
43225
- };
43226
- "send-voicemail": {
43227
- parameters: {
43228
- query?: never;
43229
- header?: never;
43230
- path: {
43231
- workspace_id: string;
43232
- };
43233
- cookie?: never;
43234
- };
43235
- requestBody: {
43236
- content: {
43237
- "multipart/form-data": components["schemas"]["Body_send-voicemail"];
43238
- };
43239
- };
43240
- responses: {
43241
- /** @description Successful Response */
43242
- 201: {
43243
- headers: {
43244
- [name: string]: unknown;
43245
- };
43246
- content: {
43247
- "application/json": components["schemas"]["VoicemailSentResponse"];
43248
- };
43249
- };
43250
- /** @description Insufficient permissions. */
43251
- 403: {
43252
- headers: {
43253
- [name: string]: unknown;
43254
- };
43255
- content?: never;
43256
- };
43257
- /** @description Use case not found or no phone assigned. */
43258
- 404: {
43259
- headers: {
43260
- [name: string]: unknown;
43261
- };
43262
- content?: never;
43263
- };
43264
- /** @description Audio exceeds 8 MB. */
43265
- 413: {
43266
- headers: {
43267
- [name: string]: unknown;
43268
- };
43269
- content?: never;
43270
- };
43271
- /** @description Invalid audio or configuration. */
43272
- 422: {
43273
- headers: {
43274
- [name: string]: unknown;
43275
- };
43276
- content?: never;
43277
- };
43278
42226
  /** @description Channel manager unavailable. */
43279
42227
  502: {
43280
42228
  headers: {
@@ -43291,15 +42239,13 @@ export interface operations {
43291
42239
  };
43292
42240
  };
43293
42241
  };
43294
- "list-webhook-destinations": {
42242
+ "get-use-case-service-binding": {
43295
42243
  parameters: {
43296
- query?: {
43297
- limit?: number;
43298
- continuation_token?: number;
43299
- };
42244
+ query?: never;
43300
42245
  header?: never;
43301
42246
  path: {
43302
42247
  workspace_id: string;
42248
+ use_case_id: string;
43303
42249
  };
43304
42250
  cookie?: never;
43305
42251
  };
@@ -43311,89 +42257,17 @@ export interface operations {
43311
42257
  [name: string]: unknown;
43312
42258
  };
43313
42259
  content: {
43314
- "application/json": components["schemas"]["PaginatedResponse_WebhookDestinationResponse_"];
43315
- };
43316
- };
43317
- /** @description Validation Error */
43318
- 422: {
43319
- headers: {
43320
- [name: string]: unknown;
43321
- };
43322
- content: {
43323
- "application/json": components["schemas"]["HTTPValidationError"];
43324
- };
43325
- };
43326
- /** @description Rate limited */
43327
- 429: {
43328
- headers: {
43329
- [name: string]: unknown;
43330
- };
43331
- content?: never;
43332
- };
43333
- };
43334
- };
43335
- "create-webhook-destination": {
43336
- parameters: {
43337
- query?: never;
43338
- header?: never;
43339
- path: {
43340
- workspace_id: string;
43341
- };
43342
- cookie?: never;
43343
- };
43344
- requestBody: {
43345
- content: {
43346
- "application/json": components["schemas"]["CreateWebhookDestinationRequest"];
43347
- };
43348
- };
43349
- responses: {
43350
- /** @description Successful Response */
43351
- 201: {
43352
- headers: {
43353
- [name: string]: unknown;
43354
- };
43355
- content: {
43356
- "application/json": components["schemas"]["WebhookDestinationCreatedResponse"];
42260
+ "application/json": components["schemas"]["ServiceBindingResponse"];
43357
42261
  };
43358
42262
  };
43359
- /** @description Validation error */
43360
- 422: {
43361
- headers: {
43362
- [name: string]: unknown;
43363
- };
43364
- content?: never;
43365
- };
43366
- /** @description Rate limited */
43367
- 429: {
42263
+ /** @description Insufficient permissions. */
42264
+ 403: {
43368
42265
  headers: {
43369
42266
  [name: string]: unknown;
43370
42267
  };
43371
42268
  content?: never;
43372
42269
  };
43373
- };
43374
- };
43375
- "get-webhook-destination": {
43376
- parameters: {
43377
- query?: never;
43378
- header?: never;
43379
- path: {
43380
- workspace_id: string;
43381
- destination_id: string;
43382
- };
43383
- cookie?: never;
43384
- };
43385
- requestBody?: never;
43386
- responses: {
43387
- /** @description Successful Response */
43388
- 200: {
43389
- headers: {
43390
- [name: string]: unknown;
43391
- };
43392
- content: {
43393
- "application/json": components["schemas"]["WebhookDestinationResponse"];
43394
- };
43395
- };
43396
- /** @description Webhook destination not found */
42270
+ /** @description Use case is not bound to a service in this workspace. */
43397
42271
  404: {
43398
42272
  headers: {
43399
42273
  [name: string]: unknown;
@@ -43409,28 +42283,21 @@ export interface operations {
43409
42283
  "application/json": components["schemas"]["HTTPValidationError"];
43410
42284
  };
43411
42285
  };
43412
- /** @description Rate limited */
43413
- 429: {
43414
- headers: {
43415
- [name: string]: unknown;
43416
- };
43417
- content?: never;
43418
- };
43419
42286
  };
43420
42287
  };
43421
- "update-webhook-destination": {
42288
+ "bind-use-case-to-service": {
43422
42289
  parameters: {
43423
42290
  query?: never;
43424
42291
  header?: never;
43425
42292
  path: {
43426
42293
  workspace_id: string;
43427
- destination_id: string;
42294
+ use_case_id: string;
43428
42295
  };
43429
42296
  cookie?: never;
43430
42297
  };
43431
42298
  requestBody: {
43432
42299
  content: {
43433
- "application/json": components["schemas"]["UpdateWebhookDestinationRequest"];
42300
+ "application/json": components["schemas"]["ServiceBindingRequest"];
43434
42301
  };
43435
42302
  };
43436
42303
  responses: {
@@ -43440,62 +42307,46 @@ export interface operations {
43440
42307
  [name: string]: unknown;
43441
42308
  };
43442
42309
  content: {
43443
- "application/json": components["schemas"]["WebhookDestinationResponse"];
42310
+ "application/json": components["schemas"]["ServiceBindingResponse"];
43444
42311
  };
43445
42312
  };
43446
- /** @description Webhook destination not found */
43447
- 404: {
42313
+ /** @description Insufficient permissions. */
42314
+ 403: {
43448
42315
  headers: {
43449
42316
  [name: string]: unknown;
43450
42317
  };
43451
42318
  content?: never;
43452
42319
  };
43453
- /** @description Validation error */
43454
- 422: {
42320
+ /** @description Use case or service not found. */
42321
+ 404: {
43455
42322
  headers: {
43456
42323
  [name: string]: unknown;
43457
42324
  };
43458
42325
  content?: never;
43459
42326
  };
43460
- /** @description Rate limited */
43461
- 429: {
42327
+ /** @description Service already has a different use case bound for this channel. */
42328
+ 409: {
43462
42329
  headers: {
43463
42330
  [name: string]: unknown;
43464
42331
  };
43465
42332
  content?: never;
43466
42333
  };
43467
- };
43468
- };
43469
- "delete-webhook-destination": {
43470
- parameters: {
43471
- query?: never;
43472
- header?: never;
43473
- path: {
43474
- workspace_id: string;
43475
- destination_id: string;
43476
- };
43477
- cookie?: never;
43478
- };
43479
- requestBody?: never;
43480
- responses: {
43481
- /** @description Successful Response */
43482
- 204: {
42334
+ /** @description Unsupported use case channel. */
42335
+ 422: {
43483
42336
  headers: {
43484
42337
  [name: string]: unknown;
43485
42338
  };
43486
42339
  content?: never;
43487
42340
  };
43488
- /** @description Validation Error */
43489
- 422: {
42341
+ /** @description Channel manager unavailable. */
42342
+ 502: {
43490
42343
  headers: {
43491
42344
  [name: string]: unknown;
43492
42345
  };
43493
- content: {
43494
- "application/json": components["schemas"]["HTTPValidationError"];
43495
- };
42346
+ content?: never;
43496
42347
  };
43497
- /** @description Rate limited */
43498
- 429: {
42348
+ /** @description Channel manager timed out. */
42349
+ 504: {
43499
42350
  headers: {
43500
42351
  [name: string]: unknown;
43501
42352
  };
@@ -43503,89 +42354,47 @@ export interface operations {
43503
42354
  };
43504
42355
  };
43505
42356
  };
43506
- "list-webhook-destination-deliveries": {
42357
+ "unbind-use-case-from-service": {
43507
42358
  parameters: {
43508
- query?: {
43509
- limit?: number;
43510
- continuation_token?: number;
43511
- };
42359
+ query?: never;
43512
42360
  header?: never;
43513
42361
  path: {
43514
42362
  workspace_id: string;
43515
- destination_id: string;
42363
+ use_case_id: string;
43516
42364
  };
43517
42365
  cookie?: never;
43518
42366
  };
43519
42367
  requestBody?: never;
43520
42368
  responses: {
43521
42369
  /** @description Successful Response */
43522
- 200: {
43523
- headers: {
43524
- [name: string]: unknown;
43525
- };
43526
- content: {
43527
- "application/json": components["schemas"]["PaginatedResponse_DeliveryResponse_"];
43528
- };
43529
- };
43530
- /** @description Validation Error */
43531
- 422: {
43532
- headers: {
43533
- [name: string]: unknown;
43534
- };
43535
- content: {
43536
- "application/json": components["schemas"]["HTTPValidationError"];
43537
- };
43538
- };
43539
- /** @description Rate limited */
43540
- 429: {
42370
+ 204: {
43541
42371
  headers: {
43542
42372
  [name: string]: unknown;
43543
42373
  };
43544
42374
  content?: never;
43545
42375
  };
43546
- };
43547
- };
43548
- "rotate-webhook-destination-secret": {
43549
- parameters: {
43550
- query?: never;
43551
- header?: never;
43552
- path: {
43553
- workspace_id: string;
43554
- destination_id: string;
43555
- };
43556
- cookie?: never;
43557
- };
43558
- requestBody?: never;
43559
- responses: {
43560
- /** @description Successful Response */
43561
- 200: {
42376
+ /** @description Insufficient permissions. */
42377
+ 403: {
43562
42378
  headers: {
43563
42379
  [name: string]: unknown;
43564
42380
  };
43565
- content: {
43566
- "application/json": components["schemas"]["RotateSecretResponse"];
43567
- };
42381
+ content?: never;
43568
42382
  };
43569
- /** @description Webhook destination not found */
42383
+ /** @description Use case is not bound to a service in this workspace. */
43570
42384
  404: {
43571
42385
  headers: {
43572
42386
  [name: string]: unknown;
43573
42387
  };
43574
42388
  content?: never;
43575
42389
  };
43576
- /** @description Validation error */
42390
+ /** @description Validation Error */
43577
42391
  422: {
43578
42392
  headers: {
43579
42393
  [name: string]: unknown;
43580
42394
  };
43581
- content?: never;
43582
- };
43583
- /** @description Rate limited */
43584
- 429: {
43585
- headers: {
43586
- [name: string]: unknown;
42395
+ content: {
42396
+ "application/json": components["schemas"]["HTTPValidationError"];
43587
42397
  };
43588
- content?: never;
43589
42398
  };
43590
42399
  };
43591
42400
  };
@@ -44771,171 +43580,5 @@ export interface operations {
44771
43580
  };
44772
43581
  };
44773
43582
  };
44774
- "world-sync-events": {
44775
- parameters: {
44776
- query: {
44777
- status: "pending" | "synced" | "failed" | "processing" | "not_applicable";
44778
- /** @description Filter events to a specific outbound data source. */
44779
- data_source_id?: string | null;
44780
- /** @description Filter events to a specific source system. */
44781
- source_system?: string | null;
44782
- /** @description Filter events to a specific FHIR resource type. */
44783
- fhir_resource_type?: string | null;
44784
- /** @description Filter events to a specific FHIR resource ID. */
44785
- fhir_resource_id?: string | null;
44786
- limit?: number;
44787
- offset?: number;
44788
- };
44789
- header?: never;
44790
- path: {
44791
- workspace_id: string;
44792
- };
44793
- cookie?: never;
44794
- };
44795
- requestBody?: never;
44796
- responses: {
44797
- /** @description Successful Response */
44798
- 200: {
44799
- headers: {
44800
- [name: string]: unknown;
44801
- };
44802
- content: {
44803
- "application/json": components["schemas"]["SyncEventsResponse"];
44804
- };
44805
- };
44806
- /** @description Invalid status parameter. */
44807
- 400: {
44808
- headers: {
44809
- [name: string]: unknown;
44810
- };
44811
- content?: never;
44812
- };
44813
- /** @description Missing or invalid API key. */
44814
- 401: {
44815
- headers: {
44816
- [name: string]: unknown;
44817
- };
44818
- content?: never;
44819
- };
44820
- /** @description Validation Error */
44821
- 422: {
44822
- headers: {
44823
- [name: string]: unknown;
44824
- };
44825
- content: {
44826
- "application/json": components["schemas"]["HTTPValidationError"];
44827
- };
44828
- };
44829
- };
44830
- };
44831
- "world-sync-queue": {
44832
- parameters: {
44833
- query?: never;
44834
- header?: never;
44835
- path: {
44836
- workspace_id: string;
44837
- };
44838
- cookie?: never;
44839
- };
44840
- requestBody?: never;
44841
- responses: {
44842
- /** @description Successful Response */
44843
- 200: {
44844
- headers: {
44845
- [name: string]: unknown;
44846
- };
44847
- content: {
44848
- "application/json": components["schemas"]["SyncQueueResponse"];
44849
- };
44850
- };
44851
- /** @description Missing or invalid API key. */
44852
- 401: {
44853
- headers: {
44854
- [name: string]: unknown;
44855
- };
44856
- content?: never;
44857
- };
44858
- };
44859
- };
44860
- "world-sync-retry-all": {
44861
- parameters: {
44862
- query?: never;
44863
- header?: never;
44864
- path: {
44865
- workspace_id: string;
44866
- };
44867
- cookie?: never;
44868
- };
44869
- requestBody?: never;
44870
- responses: {
44871
- /** @description Successful Response */
44872
- 200: {
44873
- headers: {
44874
- [name: string]: unknown;
44875
- };
44876
- content: {
44877
- "application/json": components["schemas"]["SyncBulkRetryResponse"];
44878
- };
44879
- };
44880
- /** @description Missing or invalid API key. */
44881
- 401: {
44882
- headers: {
44883
- [name: string]: unknown;
44884
- };
44885
- content?: never;
44886
- };
44887
- };
44888
- };
44889
- "world-sync-retry": {
44890
- parameters: {
44891
- query?: never;
44892
- header?: never;
44893
- path: {
44894
- workspace_id: string;
44895
- event_id: string;
44896
- };
44897
- cookie?: never;
44898
- };
44899
- requestBody?: never;
44900
- responses: {
44901
- /** @description Successful Response */
44902
- 200: {
44903
- headers: {
44904
- [name: string]: unknown;
44905
- };
44906
- content: {
44907
- "application/json": components["schemas"]["SyncRetryResponse"];
44908
- };
44909
- };
44910
- /** @description Invalid event ID format. */
44911
- 400: {
44912
- headers: {
44913
- [name: string]: unknown;
44914
- };
44915
- content?: never;
44916
- };
44917
- /** @description Missing or invalid API key. */
44918
- 401: {
44919
- headers: {
44920
- [name: string]: unknown;
44921
- };
44922
- content?: never;
44923
- };
44924
- /** @description Event not found or has no sync_error. */
44925
- 404: {
44926
- headers: {
44927
- [name: string]: unknown;
44928
- };
44929
- content?: never;
44930
- };
44931
- /** @description Event missing FHIR resource type/ID. */
44932
- 422: {
44933
- headers: {
44934
- [name: string]: unknown;
44935
- };
44936
- content?: never;
44937
- };
44938
- };
44939
- };
44940
43583
  }
44941
43584
  //# sourceMappingURL=api.d.ts.map