@amigo-ai/platform-sdk 0.62.1 → 0.64.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.
@@ -2351,6 +2351,101 @@ export interface paths {
2351
2351
  patch?: never;
2352
2352
  trace?: never;
2353
2353
  };
2354
+ "/v1/{workspace_id}/external-integrations": {
2355
+ parameters: {
2356
+ query?: never;
2357
+ header?: never;
2358
+ path?: never;
2359
+ cookie?: never;
2360
+ };
2361
+ /** List External Integrations */
2362
+ get: operations["list-external-integrations"];
2363
+ put?: never;
2364
+ /** Create External Integration */
2365
+ post: operations["create-external-integration"];
2366
+ delete?: never;
2367
+ options?: never;
2368
+ head?: never;
2369
+ patch?: never;
2370
+ trace?: never;
2371
+ };
2372
+ "/v1/{workspace_id}/external-integrations/{integration_id}": {
2373
+ parameters: {
2374
+ query?: never;
2375
+ header?: never;
2376
+ path?: never;
2377
+ cookie?: never;
2378
+ };
2379
+ /** Get External Integration */
2380
+ get: operations["get-external-integration"];
2381
+ put?: never;
2382
+ post?: never;
2383
+ /**
2384
+ * Delete external integration
2385
+ * @description Soft-deletes an active external integration by marking it inactive, then revokes any active client credentials for that integration in the same workspace-scoped transaction. Requires an admin or owner role with `ExternalIntegration.delete` and `ApiKey.delete` permissions.
2386
+ */
2387
+ delete: operations["delete-external-integration"];
2388
+ options?: never;
2389
+ head?: never;
2390
+ /**
2391
+ * Update external integration
2392
+ * @description Updates external integration metadata. Supports partial updates for `name`, `display_name`, and `description`; pass `description: null` to clear the description. Requires an admin or owner role with `ExternalIntegration.update` permission.
2393
+ */
2394
+ patch: operations["update-external-integration"];
2395
+ trace?: never;
2396
+ };
2397
+ "/v1/{workspace_id}/external-integrations/{integration_id}/credentials": {
2398
+ parameters: {
2399
+ query?: never;
2400
+ header?: never;
2401
+ path?: never;
2402
+ cookie?: never;
2403
+ };
2404
+ /** List External Integration Credentials */
2405
+ get: operations["list-external-integration-credentials"];
2406
+ put?: never;
2407
+ /** Create External Integration Credential */
2408
+ post: operations["create-external-integration-credential"];
2409
+ delete?: never;
2410
+ options?: never;
2411
+ head?: never;
2412
+ patch?: never;
2413
+ trace?: never;
2414
+ };
2415
+ "/v1/{workspace_id}/external-integrations/{integration_id}/credentials/{credential_id}": {
2416
+ parameters: {
2417
+ query?: never;
2418
+ header?: never;
2419
+ path?: never;
2420
+ cookie?: never;
2421
+ };
2422
+ get?: never;
2423
+ put?: never;
2424
+ post?: never;
2425
+ /** Revoke External Integration Credential */
2426
+ delete: operations["revoke-external-integration-credential"];
2427
+ options?: never;
2428
+ head?: never;
2429
+ patch?: never;
2430
+ trace?: never;
2431
+ };
2432
+ "/v1/{workspace_id}/external-integrations/{integration_id}/credentials/{credential_id}/rotate": {
2433
+ parameters: {
2434
+ query?: never;
2435
+ header?: never;
2436
+ path?: never;
2437
+ cookie?: never;
2438
+ };
2439
+ get?: never;
2440
+ put?: never;
2441
+ /** Rotate External Integration Credential */
2442
+ post: operations["rotate-external-integration-credential"];
2443
+ delete?: never;
2444
+ options?: never;
2445
+ head?: never;
2446
+ patch?: never;
2447
+ trace?: never;
2448
+ };
2354
2449
  "/v1/{workspace_id}/fhir/import": {
2355
2450
  parameters: {
2356
2451
  query?: never;
@@ -3037,6 +3132,46 @@ export interface paths {
3037
3132
  patch?: never;
3038
3133
  trace?: never;
3039
3134
  };
3135
+ "/v1/{workspace_id}/integrations/approvals/{conversation_id}/approve": {
3136
+ parameters: {
3137
+ query?: never;
3138
+ header?: never;
3139
+ path?: never;
3140
+ cookie?: never;
3141
+ };
3142
+ get?: never;
3143
+ put?: never;
3144
+ /**
3145
+ * Approve a pending integration-write approval
3146
+ * @description Approve a pending human-in-the-loop integration-write approval for a conversation. Publishes `integration.approval_granted` to the workspace event channel; the subscribed text session fires the gated write. Requires `ReviewQueue.review` permission.
3147
+ */
3148
+ post: operations["approve-integration-write"];
3149
+ delete?: never;
3150
+ options?: never;
3151
+ head?: never;
3152
+ patch?: never;
3153
+ trace?: never;
3154
+ };
3155
+ "/v1/{workspace_id}/integrations/approvals/{conversation_id}/reject": {
3156
+ parameters: {
3157
+ query?: never;
3158
+ header?: never;
3159
+ path?: never;
3160
+ cookie?: never;
3161
+ };
3162
+ get?: never;
3163
+ put?: never;
3164
+ /**
3165
+ * Reject a pending integration-write approval
3166
+ * @description Reject a pending human-in-the-loop integration-write approval for a conversation. Publishes `integration.approval_rejected` to the workspace event channel; the subscribed text session declines the gated write. Requires `ReviewQueue.review` permission.
3167
+ */
3168
+ post: operations["reject-integration-write"];
3169
+ delete?: never;
3170
+ options?: never;
3171
+ head?: never;
3172
+ patch?: never;
3173
+ trace?: never;
3174
+ };
3040
3175
  "/v1/{workspace_id}/integrations/{integration_id}": {
3041
3176
  parameters: {
3042
3177
  query?: never;
@@ -5078,37 +5213,6 @@ export interface paths {
5078
5213
  patch?: never;
5079
5214
  trace?: never;
5080
5215
  };
5081
- "/v1/{workspace_id}/settings/connectors": {
5082
- parameters: {
5083
- query?: never;
5084
- header?: never;
5085
- path?: never;
5086
- cookie?: never;
5087
- };
5088
- /**
5089
- * Get connector settings
5090
- * @description Get connector definitions for this workspace.
5091
- *
5092
- * Permissions: authenticated (any role).
5093
- */
5094
- get: operations["get-connector-settings"];
5095
- /**
5096
- * Update connector settings
5097
- * @description Replace all connector definitions for this workspace.
5098
- *
5099
- * Validates connection_config per source_type. Syncs world.data_sources
5100
- * index for FK compatibility.
5101
- *
5102
- * Permissions: admin, owner.
5103
- */
5104
- put: operations["update-connector-settings"];
5105
- post?: never;
5106
- delete?: never;
5107
- options?: never;
5108
- head?: never;
5109
- patch?: never;
5110
- trace?: never;
5111
- };
5112
5216
  "/v1/{workspace_id}/settings/environments": {
5113
5217
  parameters: {
5114
5218
  query?: never;
@@ -5998,6 +6102,26 @@ export interface paths {
5998
6102
  patch?: never;
5999
6103
  trace?: never;
6000
6104
  };
6105
+ "/v1/{workspace_id}/simulations/suite-runs/{suite_run_id}": {
6106
+ parameters: {
6107
+ query?: never;
6108
+ header?: never;
6109
+ path?: never;
6110
+ cookie?: never;
6111
+ };
6112
+ /**
6113
+ * Get Simulation Suite Run Results
6114
+ * @description Fetch aggregate results for a durable suite run.
6115
+ */
6116
+ get: operations["get-simulation-suite-run-results"];
6117
+ put?: never;
6118
+ post?: never;
6119
+ delete?: never;
6120
+ options?: never;
6121
+ head?: never;
6122
+ patch?: never;
6123
+ trace?: never;
6124
+ };
6001
6125
  "/v1/{workspace_id}/simulations/suites": {
6002
6126
  parameters: {
6003
6127
  query?: never;
@@ -6061,6 +6185,26 @@ export interface paths {
6061
6185
  patch?: never;
6062
6186
  trace?: never;
6063
6187
  };
6188
+ "/v1/{workspace_id}/simulations/suites/{suite_id}/runs": {
6189
+ parameters: {
6190
+ query?: never;
6191
+ header?: never;
6192
+ path?: never;
6193
+ cookie?: never;
6194
+ };
6195
+ /**
6196
+ * List Simulation Suite Runs
6197
+ * @description List durable suite-run groups for a first-class suite.
6198
+ */
6199
+ get: operations["list-simulation-suite-runs"];
6200
+ put?: never;
6201
+ post?: never;
6202
+ delete?: never;
6203
+ options?: never;
6204
+ head?: never;
6205
+ patch?: never;
6206
+ trace?: never;
6207
+ };
6064
6208
  "/v1/{workspace_id}/skills": {
6065
6209
  parameters: {
6066
6210
  query?: never;
@@ -9030,11 +9174,7 @@ export interface components {
9030
9174
  };
9031
9175
  /** ChannelEventRequest */
9032
9176
  ChannelEventRequest: {
9033
- /**
9034
- * Channel
9035
- * @enum {string}
9036
- */
9037
- channel: "email" | "sms" | "voice";
9177
+ channel: components["schemas"]["ChannelKind"];
9038
9178
  /** Data */
9039
9179
  data?: {
9040
9180
  [key: string]: unknown;
@@ -9078,7 +9218,7 @@ export interface components {
9078
9218
  * Each kind maps to one or more providers.
9079
9219
  * @enum {string}
9080
9220
  */
9081
- ChannelKind: "voice" | "sms" | "whatsapp" | "email" | "web";
9221
+ ChannelKind: "voice" | "sms" | "whatsapp" | "email" | "web" | "imessage";
9082
9222
  /**
9083
9223
  * ChannelOverride
9084
9224
  * @description Per-channel behavior override for a state.
@@ -9513,53 +9653,6 @@ export interface components {
9513
9653
  [key: string]: unknown;
9514
9654
  };
9515
9655
  };
9516
- /**
9517
- * ConnectorDef
9518
- * @description A single connector definition stored in platform.connector_configs.
9519
- */
9520
- ConnectorDef: {
9521
- /** Connection Config */
9522
- connection_config?: {
9523
- [key: string]: unknown;
9524
- };
9525
- /** Connector Type */
9526
- connector_type?: string | null;
9527
- /** Display Name */
9528
- display_name?: string | null;
9529
- /** Entity Types */
9530
- entity_types?: string[];
9531
- /** Field Mappings */
9532
- field_mappings?: {
9533
- [key: string]: unknown;
9534
- };
9535
- /**
9536
- * Id
9537
- * Format: uuid
9538
- */
9539
- id?: string;
9540
- /**
9541
- * Is Active
9542
- * @default true
9543
- */
9544
- is_active?: boolean;
9545
- /** Name */
9546
- name: string;
9547
- /** Outbound Entity Types */
9548
- outbound_entity_types?: string[];
9549
- /**
9550
- * Source Type
9551
- * @enum {string}
9552
- */
9553
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
9554
- /** Sync Schedule */
9555
- sync_schedule?: string | null;
9556
- /**
9557
- * Sync Strategy
9558
- * @default manual
9559
- * @enum {string}
9560
- */
9561
- sync_strategy?: "manual" | "scheduled" | "webhook" | "continuous" | "polling";
9562
- };
9563
9656
  /** ConnectorHealthItem */
9564
9657
  ConnectorHealthItem: {
9565
9658
  /**
@@ -9702,24 +9795,6 @@ export interface components {
9702
9795
  */
9703
9796
  total: number;
9704
9797
  };
9705
- /**
9706
- * ConnectorSettingsRequest
9707
- * @description Request for PUT /v1/{ws}/settings/connectors.
9708
- *
9709
- * Replaces the entire connector list.
9710
- */
9711
- ConnectorSettingsRequest: {
9712
- /** Connectors */
9713
- connectors: components["schemas"]["ConnectorDef"][];
9714
- };
9715
- /**
9716
- * ConnectorSettingsResponse
9717
- * @description Response for GET /v1/{ws}/settings/connectors.
9718
- */
9719
- ConnectorSettingsResponse: {
9720
- /** Connectors */
9721
- connectors: components["schemas"]["ConnectorDef"][];
9722
- };
9723
9798
  /** Constraint */
9724
9799
  Constraint: {
9725
9800
  /**
@@ -9914,11 +9989,7 @@ export interface components {
9914
9989
  call_sid?: string | null;
9915
9990
  /** Caller Id */
9916
9991
  caller_id?: string | null;
9917
- /**
9918
- * Channel Kind
9919
- * @enum {string}
9920
- */
9921
- channel_kind: "voice" | "sms" | "whatsapp" | "web" | "email";
9992
+ channel_kind: components["schemas"]["ChannelKind"];
9922
9993
  /** Completion Reason */
9923
9994
  completion_reason?: string | null;
9924
9995
  /** Created At */
@@ -10033,6 +10104,11 @@ export interface components {
10033
10104
  * @description Wall-clock tool execution time in milliseconds, measured at the engage_step call site. Omitted (null) on legacy turns that did not capture timing.
10034
10105
  */
10035
10106
  duration_ms?: number | null;
10107
+ /**
10108
+ * Error Message
10109
+ * @description Failure detail recorded for the tool call when ``succeeded`` is false. Null on successful calls or when no message was captured.
10110
+ */
10111
+ error_message?: string | null;
10036
10112
  /** Input */
10037
10113
  input?: {
10038
10114
  [key: string]: unknown;
@@ -10088,6 +10164,12 @@ export interface components {
10088
10164
  text: string;
10089
10165
  /** Timestamp */
10090
10166
  timestamp?: string | null;
10167
+ /**
10168
+ * Tool Calls
10169
+ * @description Tool calls executed during this (agent) turn. Populated only when the request opts in via ``include_tool_calls=true``; empty otherwise and on turns that did not invoke tools.
10170
+ * @default []
10171
+ */
10172
+ tool_calls?: components["schemas"]["ConversationToolCallDetail"][];
10091
10173
  };
10092
10174
  /** ConversationTurnAvailableAction */
10093
10175
  ConversationTurnAvailableAction: {
@@ -10340,7 +10422,7 @@ export interface components {
10340
10422
  * Source Type
10341
10423
  * @enum {string}
10342
10424
  */
10343
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
10425
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
10344
10426
  /** Sync Schedule */
10345
10427
  sync_schedule?: string | null;
10346
10428
  /**
@@ -11436,8 +11518,6 @@ export interface components {
11436
11518
  * Format: date-time
11437
11519
  */
11438
11520
  created_at: string;
11439
- /** Discovered By */
11440
- discovered_by: string | null;
11441
11521
  /** Display Name */
11442
11522
  display_name: string | null;
11443
11523
  /** Entity Types */
@@ -11460,8 +11540,6 @@ export interface components {
11460
11540
  is_active: boolean;
11461
11541
  /** Is Stale */
11462
11542
  is_stale: boolean;
11463
- /** Last Health Check */
11464
- last_health_check: string | null;
11465
11543
  /** Last Sync At */
11466
11544
  last_sync_at: string | null;
11467
11545
  /** Last Sync Event Count */
@@ -11474,7 +11552,7 @@ export interface components {
11474
11552
  * Source Type
11475
11553
  * @enum {string}
11476
11554
  */
11477
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
11555
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
11478
11556
  /** Sync Schedule */
11479
11557
  sync_schedule: string | null;
11480
11558
  /**
@@ -13391,8 +13469,123 @@ export interface components {
13391
13469
  */
13392
13470
  recommend_candidates?: number;
13393
13471
  };
13472
+ /** ExternalIntegrationCredentialRequest */
13473
+ ExternalIntegrationCredentialRequest: {
13474
+ /** Expires At */
13475
+ expires_at?: string | null;
13476
+ name?: components["schemas"]["NameString"] | null;
13477
+ /** Service Ids */
13478
+ service_ids: string[];
13479
+ };
13480
+ /** ExternalIntegrationCredentialResponse */
13481
+ ExternalIntegrationCredentialResponse: {
13482
+ /** Client Id */
13483
+ client_id: string;
13484
+ /** Created At */
13485
+ created_at?: string | null;
13486
+ /** Expires At */
13487
+ expires_at?: string | null;
13488
+ /**
13489
+ * Id
13490
+ * Format: uuid
13491
+ */
13492
+ id: string;
13493
+ /**
13494
+ * Integration Id
13495
+ * Format: uuid
13496
+ */
13497
+ integration_id: string;
13498
+ /** Is Active */
13499
+ is_active: boolean;
13500
+ /** Name */
13501
+ name?: string | null;
13502
+ /** Revoked At */
13503
+ revoked_at?: string | null;
13504
+ /** Rotated At */
13505
+ rotated_at?: string | null;
13506
+ /** Service Ids */
13507
+ service_ids: string[];
13508
+ /** Updated At */
13509
+ updated_at?: string | null;
13510
+ /**
13511
+ * Workspace Id
13512
+ * Format: uuid
13513
+ */
13514
+ workspace_id: string;
13515
+ };
13516
+ /** ExternalIntegrationCredentialSecretResponse */
13517
+ ExternalIntegrationCredentialSecretResponse: {
13518
+ /** Client Secret */
13519
+ client_secret: string;
13520
+ credential: components["schemas"]["ExternalIntegrationCredentialResponse"];
13521
+ };
13522
+ /** ExternalIntegrationRequest */
13523
+ ExternalIntegrationRequest: {
13524
+ /** Description */
13525
+ description?: string | null;
13526
+ display_name: components["schemas"]["NameString"];
13527
+ /** Name */
13528
+ name: string;
13529
+ };
13530
+ /** ExternalIntegrationResponse */
13531
+ ExternalIntegrationResponse: {
13532
+ /** Created At */
13533
+ created_at?: string | null;
13534
+ /** Created By Credential Id */
13535
+ created_by_credential_id?: string | null;
13536
+ /**
13537
+ * Created By Entity Id
13538
+ * Format: uuid
13539
+ */
13540
+ created_by_entity_id: string;
13541
+ /** Description */
13542
+ description?: string | null;
13543
+ display_name: components["schemas"]["NameString"];
13544
+ /**
13545
+ * Id
13546
+ * Format: uuid
13547
+ */
13548
+ id: string;
13549
+ /** Is Active */
13550
+ is_active: boolean;
13551
+ /** Name */
13552
+ name: string;
13553
+ /** Updated At */
13554
+ updated_at?: string | null;
13555
+ /**
13556
+ * Workspace Id
13557
+ * Format: uuid
13558
+ */
13559
+ workspace_id: string;
13560
+ };
13561
+ /** ExternalIntegrationUpdateRequest */
13562
+ ExternalIntegrationUpdateRequest: {
13563
+ /** Description */
13564
+ description?: string | null;
13565
+ /** Display Name */
13566
+ display_name?: components["schemas"]["NameString"];
13567
+ /** Name */
13568
+ name?: string;
13569
+ };
13394
13570
  ExternalSystemString: string;
13395
13571
  ExternalValueString: string;
13572
+ /**
13573
+ * FailureClass
13574
+ * @description Why a tool result is a failure — produced by the executor at RUN time.
13575
+ *
13576
+ * Unlike ``ResultDelivery`` (a fixed config-time axis), this is a runtime
13577
+ * classification the executor knows at the moment of failure. It flavors the
13578
+ * agent-facing failure wording and the world-event / status-tool observability,
13579
+ * and it is ALSO an optional routing key: a state x tool binding may set
13580
+ * ``ToolCallSpec.failure_delivery_by_class`` to deliver differently per class
13581
+ * (e.g. interrupt on timeout, queue on a generic error). With no per-class map
13582
+ * (the default), failed results route by the ``failure_delivery`` floor,
13583
+ * unchanged. Add a member only in the same change that wires a producer for it —
13584
+ * adding one also widens the per-class routing surface, so it must be a
13585
+ * deliberate, produced class.
13586
+ * @enum {string}
13587
+ */
13588
+ FailureClass: "timeout" | "input_rejected" | "rounds_exhausted" | "generic";
13396
13589
  /** FeatureDef */
13397
13590
  FeatureDef: {
13398
13591
  /** Kind */
@@ -14814,6 +15007,52 @@ export interface components {
14814
15007
  /** Size Bytes */
14815
15008
  size_bytes: number;
14816
15009
  };
15010
+ /** IntegrationApprovalGrantedEvent */
15011
+ IntegrationApprovalGrantedEvent: {
15012
+ /** Conversation Id */
15013
+ conversation_id: string;
15014
+ /**
15015
+ * @description discriminator enum property added by openapi-typescript
15016
+ * @enum {string}
15017
+ */
15018
+ event_type: "integration.approval_granted";
15019
+ };
15020
+ /** IntegrationApprovalRejectedEvent */
15021
+ IntegrationApprovalRejectedEvent: {
15022
+ /** Conversation Id */
15023
+ conversation_id: string;
15024
+ /**
15025
+ * @description discriminator enum property added by openapi-typescript
15026
+ * @enum {string}
15027
+ */
15028
+ event_type: "integration.approval_rejected";
15029
+ /**
15030
+ * Reason
15031
+ * @default null
15032
+ */
15033
+ reason?: string | null;
15034
+ };
15035
+ /**
15036
+ * IntegrationApprovalResponse
15037
+ * @description Resolution outcome for a pending integration-write approval.
15038
+ */
15039
+ IntegrationApprovalResponse: {
15040
+ /** Conversation Id */
15041
+ conversation_id: string;
15042
+ /**
15043
+ * Status
15044
+ * @enum {string}
15045
+ */
15046
+ status: "granted" | "rejected";
15047
+ };
15048
+ /**
15049
+ * IntegrationRejectRequest
15050
+ * @description Reject body — optional free-text reason surfaced to the agent.
15051
+ */
15052
+ IntegrationRejectRequest: {
15053
+ /** Reason */
15054
+ reason?: string | null;
15055
+ };
14817
15056
  /**
14818
15057
  * IntegrationToolRef
14819
15058
  * @description Reference to an integration endpoint by integration + endpoint name.
@@ -15439,6 +15678,16 @@ export interface components {
15439
15678
  */
15440
15679
  max_upload_bytes: number;
15441
15680
  };
15681
+ /** ListSimulationSuiteRunsResponse */
15682
+ ListSimulationSuiteRunsResponse: {
15683
+ /** Runs */
15684
+ runs: components["schemas"]["SimulationSuiteRunSummary"][];
15685
+ /**
15686
+ * Suite Id
15687
+ * Format: uuid
15688
+ */
15689
+ suite_id: string;
15690
+ };
15442
15691
  /** ListSimulationSuitesResponse */
15443
15692
  ListSimulationSuitesResponse: {
15444
15693
  /** Suites */
@@ -15768,6 +16017,11 @@ export interface components {
15768
16017
  * @description When the event happened. Defaults to ingest time.
15769
16018
  */
15770
16019
  effective_at?: string | null;
16020
+ /**
16021
+ * Event Id
16022
+ * @description Optional deterministic row id (typically uuid5(NAMESPACE, '<stable-key>')). Re-emitting with the same value lands on the same world_events row instead of double-billing. Use for backfills and retries. Default: server generates a random uuid4.
16023
+ */
16024
+ event_id?: string | null;
15771
16025
  /** Event Type */
15772
16026
  event_type: string;
15773
16027
  /** Metering Metadata */
@@ -17171,6 +17425,17 @@ export interface components {
17171
17425
  /** Total */
17172
17426
  total?: number | null;
17173
17427
  };
17428
+ /** PaginatedResponse[ExternalIntegrationResponse] */
17429
+ PaginatedResponse_ExternalIntegrationResponse_: {
17430
+ /** Continuation Token */
17431
+ continuation_token?: number | null;
17432
+ /** Has More */
17433
+ has_more: boolean;
17434
+ /** Items */
17435
+ items: components["schemas"]["ExternalIntegrationResponse"][];
17436
+ /** Total */
17437
+ total?: number | null;
17438
+ };
17174
17439
  /** PaginatedResponse[InvoiceItem] */
17175
17440
  PaginatedResponse_InvoiceItem_: {
17176
17441
  /** Continuation Token */
@@ -18303,7 +18568,7 @@ export interface components {
18303
18568
  * Multiple providers may serve the same ChannelKind.
18304
18569
  * @enum {string}
18305
18570
  */
18306
- ProviderType: "twilio" | "websocket";
18571
+ ProviderType: "twilio" | "websocket" | "ses" | "sendblue";
18307
18572
  /** ProvisionResponse */
18308
18573
  ProvisionResponse: {
18309
18574
  workspace: components["schemas"]["WorkspaceResponse"];
@@ -18814,6 +19079,15 @@ export interface components {
18814
19079
  * @description REST variant — base URL, auth config, endpoint count.
18815
19080
  */
18816
19081
  RestIntegrationResponse: {
19082
+ /**
19083
+ * Approval Policy
19084
+ * @description Human-in-the-loop approval gate. ``none`` = no approval required;
19085
+ * ``writes`` = approval required for write-classified endpoints;
19086
+ * ``all`` = approval required for every endpoint.
19087
+ * @default none
19088
+ * @enum {string}
19089
+ */
19090
+ approval_policy?: "none" | "writes" | "all";
18817
19091
  /**
18818
19092
  * Auth
18819
19093
  * @description Authentication configuration (lib TypedDict union).
@@ -20756,6 +21030,118 @@ export interface components {
20756
21030
  */
20757
21031
  workspace_id: string;
20758
21032
  };
21033
+ /** SimulationSuiteRunResultsResponse */
21034
+ SimulationSuiteRunResultsResponse: {
21035
+ /** Average Score */
21036
+ average_score?: number | null;
21037
+ /** Capability Breakdown */
21038
+ capability_breakdown?: {
21039
+ [key: string]: components["schemas"]["SimulationBenchmarkBreakdownSummary"];
21040
+ };
21041
+ /**
21042
+ * Completed Count
21043
+ * @default 0
21044
+ */
21045
+ completed_count?: number;
21046
+ /**
21047
+ * Fail Count
21048
+ * @default 0
21049
+ */
21050
+ fail_count?: number;
21051
+ /**
21052
+ * Failed Count
21053
+ * @default 0
21054
+ */
21055
+ failed_count?: number;
21056
+ /**
21057
+ * Metric Result Count
21058
+ * @default 0
21059
+ */
21060
+ metric_result_count?: number;
21061
+ /**
21062
+ * Metric Status
21063
+ * @default pending
21064
+ * @enum {string}
21065
+ */
21066
+ metric_status?: "pending" | "available" | "unavailable";
21067
+ /** Metrics Last Checked At */
21068
+ metrics_last_checked_at?: string | null;
21069
+ /** Missing Run Ids */
21070
+ missing_run_ids?: string[];
21071
+ /**
21072
+ * Pass Count
21073
+ * @default 0
21074
+ */
21075
+ pass_count?: number;
21076
+ /** Per Run */
21077
+ per_run?: components["schemas"]["SimulationBenchmarkPerRunSummary"][];
21078
+ /** Run Ids */
21079
+ run_ids: string[];
21080
+ /**
21081
+ * Scored Count
21082
+ * @default 0
21083
+ */
21084
+ scored_count?: number;
21085
+ /** Status Counts */
21086
+ status_counts?: {
21087
+ [key: string]: number;
21088
+ };
21089
+ /** Suite Id */
21090
+ suite_id?: string | null;
21091
+ /**
21092
+ * Suite Run Id
21093
+ * Format: uuid
21094
+ */
21095
+ suite_run_id: string;
21096
+ summary: components["schemas"]["SimulationSuiteRunSummary"];
21097
+ /** Total Runs */
21098
+ total_runs: number;
21099
+ };
21100
+ /** SimulationSuiteRunSummary */
21101
+ SimulationSuiteRunSummary: {
21102
+ /** Case Ids */
21103
+ case_ids?: string[];
21104
+ /** Completed At */
21105
+ completed_at?: string | null;
21106
+ /** Created At */
21107
+ created_at?: string | null;
21108
+ /** Result Pointer */
21109
+ result_pointer?: {
21110
+ [key: string]: unknown;
21111
+ };
21112
+ /** Run Ids */
21113
+ run_ids: string[];
21114
+ /**
21115
+ * Status
21116
+ * @enum {string}
21117
+ */
21118
+ status: "running" | "completed" | "failed";
21119
+ /** Status Counts */
21120
+ status_counts?: {
21121
+ [key: string]: number;
21122
+ };
21123
+ /** Suite Id */
21124
+ suite_id?: string | null;
21125
+ /**
21126
+ * Suite Run Id
21127
+ * Format: uuid
21128
+ */
21129
+ suite_run_id: string;
21130
+ /** Tags */
21131
+ tags?: string[];
21132
+ /** Total Runs */
21133
+ total_runs: number;
21134
+ /**
21135
+ * Total Sessions
21136
+ * @default 0
21137
+ */
21138
+ total_sessions?: number;
21139
+ /**
21140
+ * Total Turns
21141
+ * @default 0
21142
+ */
21143
+ total_turns?: number;
21144
+ };
20759
21145
  /** SimulationTurnPolicyResponse */
20760
21146
  SimulationTurnPolicyResponse: {
20761
21147
  /**
@@ -21035,7 +21421,7 @@ export interface components {
21035
21421
  * Source Type
21036
21422
  * @enum {string}
21037
21423
  */
21038
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21424
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21039
21425
  };
21040
21426
  /** SourceOverviewResponse */
21041
21427
  SourceOverviewResponse: {
@@ -21095,7 +21481,7 @@ export interface components {
21095
21481
  * Source Type
21096
21482
  * @enum {string}
21097
21483
  */
21098
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21484
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21099
21485
  };
21100
21486
  /** SourceStatus */
21101
21487
  SourceStatus: {
@@ -21134,7 +21520,7 @@ export interface components {
21134
21520
  * Source Type
21135
21521
  * @enum {string}
21136
21522
  */
21137
- source_type: "rest_api" | "webhook" | "file_drop" | "fhir" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21523
+ source_type: "rest_api" | "webhook" | "file_drop" | "fhir_store" | "ehr" | "database" | "custom" | "smart_fhir" | "customer_intake" | "lakebase_schema" | "crm";
21138
21524
  /** Status */
21139
21525
  status: string;
21140
21526
  /**
@@ -22576,6 +22962,18 @@ export interface components {
22576
22962
  * @enum {string}
22577
22963
  */
22578
22964
  delivery?: "interrupt" | "queue";
22965
+ /**
22966
+ * Execution
22967
+ * @default blocking
22968
+ * @enum {string}
22969
+ */
22970
+ execution?: "blocking" | "background";
22971
+ /** Failure Delivery */
22972
+ failure_delivery?: ("interrupt" | "queue") | null;
22973
+ /** Failure Delivery By Class */
22974
+ failure_delivery_by_class?: {
22975
+ [key: string]: "interrupt" | "queue";
22976
+ } | null;
22579
22977
  /**
22580
22978
  * Navigate On Completion
22581
22979
  * @default false
@@ -23723,42 +24121,35 @@ export interface components {
23723
24121
  /**
23724
24122
  * UpdateSimulationCaseRequest
23725
24123
  * @description Partial update for one durable simulation case.
24124
+ *
24125
+ * Mirrors the nested ``CreateSimulationCaseItem`` shape with every field
24126
+ * optional so ``model_dump(exclude_unset=True)`` only emits the keys the
24127
+ * caller actually sent. Reuses the same nested submodels as create so the
24128
+ * durable fields (``scenario``, ``grounding``, ``evals``, ``metadata``) can
24129
+ * be PATCHed. ``extra="forbid"`` rejects the retired pre-V192 flat fields
24130
+ * (scenario_instructions, initial_message, temperament, fixtures,
24131
+ * constraints, target_spec, assertions, provenance) with 422 instead of
24132
+ * silently dropping them.
23726
24133
  */
23727
24134
  UpdateSimulationCaseRequest: {
23728
- /** Assertions */
23729
- assertions?: {
23730
- [key: string]: unknown;
23731
- }[] | null;
23732
- /** Constraints */
23733
- constraints?: {
23734
- [key: string]: unknown;
23735
- } | null;
23736
24135
  /** Description */
23737
24136
  description?: string | null;
23738
- /** Fixtures */
23739
- fixtures?: {
24137
+ /** Evals */
24138
+ evals?: (components["schemas"]["SimulationCaseMetricEval"] | components["schemas"]["SimulationCaseAssertionEval"])[] | null;
24139
+ grounding?: components["schemas"]["SimulationCaseGrounding"] | null;
24140
+ /** Metadata */
24141
+ metadata?: {
23740
24142
  [key: string]: unknown;
23741
24143
  } | null;
23742
- /** Initial Message */
23743
- initial_message?: string | null;
23744
24144
  /** Persona */
23745
24145
  persona?: {
23746
24146
  [key: string]: unknown;
23747
24147
  } | null;
23748
- /** Provenance */
23749
- provenance?: string | null;
23750
- /** Scenario Instructions */
23751
- scenario_instructions?: string | null;
24148
+ scenario?: components["schemas"]["SimulationCaseScenario"] | null;
23752
24149
  /** Service Id */
23753
24150
  service_id?: string | null;
23754
24151
  /** Tags */
23755
24152
  tags?: string[] | null;
23756
- /** Target Spec */
23757
- target_spec?: {
23758
- [key: string]: unknown;
23759
- } | null;
23760
- /** Temperament */
23761
- temperament?: string | null;
23762
24153
  };
23763
24154
  /** UpdateSimulationSuiteRequest */
23764
24155
  UpdateSimulationSuiteRequest: {
@@ -24674,7 +25065,7 @@ export interface components {
24674
25065
  */
24675
25066
  updated_at: string;
24676
25067
  };
24677
- WorkspaceSSEEvent: components["schemas"]["CallStartedEvent"] | components["schemas"]["CallEndedEvent"] | components["schemas"]["CallEscalatedEvent"] | components["schemas"]["EncounterUpdatedEvent"] | components["schemas"]["NarrativeUpdatedEvent"] | components["schemas"]["ReviewSubmittedEvent"] | components["schemas"]["SimulationTurnStoredEvent"] | components["schemas"]["SurfaceCreatedEvent"] | components["schemas"]["SurfaceDeliveredEvent"] | components["schemas"]["SurfaceUpdatedEvent"] | components["schemas"]["SurfaceArchivedEvent"] | components["schemas"]["SurfaceReshapedEvent"] | components["schemas"]["SurfaceSubmittedEvent"] | components["schemas"]["SurfaceFieldSavedEvent"] | components["schemas"]["SurfaceOpenedEvent"] | components["schemas"]["SurfacePendingReviewEvent"] | components["schemas"]["SurfaceReviewApprovedEvent"] | components["schemas"]["SurfaceReviewRejectedEvent"] | components["schemas"]["TextStartedEvent"] | components["schemas"]["TextCompletedEvent"] | components["schemas"]["TriggerFiredEvent"] | components["schemas"]["TriggerCompletedEvent"] | components["schemas"]["TriggerFailedEvent"] | components["schemas"]["PipelineSyncCompletedEvent"] | components["schemas"]["PipelineErrorEvent"] | components["schemas"]["OperatorRegisteredEvent"] | components["schemas"]["OperatorStatusChangedEvent"] | components["schemas"]["OperatorProfileUpdatedEvent"] | components["schemas"]["OperatorJoinedCallEvent"] | components["schemas"]["OperatorLeftCallEvent"] | components["schemas"]["OperatorModeChangedEvent"] | components["schemas"]["OperatorWrapUpEvent"] | components["schemas"]["WorkspaceMemberAddedEvent"] | components["schemas"]["WorkspaceMemberRoleUpdatedEvent"] | components["schemas"]["WorkspaceInvitationSentEvent"] | components["schemas"]["WorkspaceInvitationAcceptedEvent"] | components["schemas"]["ChannelEmailDeliveredEvent"] | components["schemas"]["ChannelEmailBouncedEvent"] | components["schemas"]["ChannelEmailComplainedEvent"] | components["schemas"]["ChannelEmailRejectedEvent"] | components["schemas"]["ChannelEmailDelayedEvent"] | components["schemas"]["ChannelEmailOpenedEvent"] | components["schemas"]["ChannelEmailClickedEvent"] | components["schemas"]["ChannelEmailReceivedEvent"] | components["schemas"]["ChannelVoicemailStatusEvent"];
25068
+ WorkspaceSSEEvent: components["schemas"]["CallStartedEvent"] | components["schemas"]["CallEndedEvent"] | components["schemas"]["CallEscalatedEvent"] | components["schemas"]["EncounterUpdatedEvent"] | components["schemas"]["NarrativeUpdatedEvent"] | components["schemas"]["ReviewSubmittedEvent"] | components["schemas"]["SimulationTurnStoredEvent"] | components["schemas"]["SurfaceCreatedEvent"] | components["schemas"]["SurfaceDeliveredEvent"] | components["schemas"]["SurfaceUpdatedEvent"] | components["schemas"]["SurfaceArchivedEvent"] | components["schemas"]["SurfaceReshapedEvent"] | components["schemas"]["SurfaceSubmittedEvent"] | components["schemas"]["SurfaceFieldSavedEvent"] | components["schemas"]["SurfaceOpenedEvent"] | components["schemas"]["SurfacePendingReviewEvent"] | components["schemas"]["SurfaceReviewApprovedEvent"] | components["schemas"]["SurfaceReviewRejectedEvent"] | components["schemas"]["IntegrationApprovalGrantedEvent"] | components["schemas"]["IntegrationApprovalRejectedEvent"] | components["schemas"]["TextStartedEvent"] | components["schemas"]["TextCompletedEvent"] | components["schemas"]["TriggerFiredEvent"] | components["schemas"]["TriggerCompletedEvent"] | components["schemas"]["TriggerFailedEvent"] | components["schemas"]["PipelineSyncCompletedEvent"] | components["schemas"]["PipelineErrorEvent"] | components["schemas"]["OperatorRegisteredEvent"] | components["schemas"]["OperatorStatusChangedEvent"] | components["schemas"]["OperatorProfileUpdatedEvent"] | components["schemas"]["OperatorJoinedCallEvent"] | components["schemas"]["OperatorLeftCallEvent"] | components["schemas"]["OperatorModeChangedEvent"] | components["schemas"]["OperatorWrapUpEvent"] | components["schemas"]["WorkspaceMemberAddedEvent"] | components["schemas"]["WorkspaceMemberRoleUpdatedEvent"] | components["schemas"]["WorkspaceInvitationSentEvent"] | components["schemas"]["WorkspaceInvitationAcceptedEvent"] | components["schemas"]["ChannelEmailDeliveredEvent"] | components["schemas"]["ChannelEmailBouncedEvent"] | components["schemas"]["ChannelEmailComplainedEvent"] | components["schemas"]["ChannelEmailRejectedEvent"] | components["schemas"]["ChannelEmailDelayedEvent"] | components["schemas"]["ChannelEmailOpenedEvent"] | components["schemas"]["ChannelEmailClickedEvent"] | components["schemas"]["ChannelEmailReceivedEvent"] | components["schemas"]["ChannelVoicemailStatusEvent"];
24678
25069
  /** WorldDashboardResponse */
24679
25070
  WorldDashboardResponse: {
24680
25071
  /** Avg Confidence */
@@ -24922,11 +25313,7 @@ export interface components {
24922
25313
  call_sid?: string | null;
24923
25314
  /** Caller Id */
24924
25315
  caller_id?: string | null;
24925
- /**
24926
- * Channel Kind
24927
- * @enum {string}
24928
- */
24929
- channel_kind: "voice" | "sms" | "whatsapp" | "web" | "email";
25316
+ channel_kind: components["schemas"]["ChannelKind"];
24930
25317
  /** Completion Reason */
24931
25318
  completion_reason?: string | null;
24932
25319
  /** Created At */
@@ -25065,6 +25452,15 @@ export interface components {
25065
25452
  * @description Create body — REST only.
25066
25453
  */
25067
25454
  src__routes__integrations__create_integration__Request: {
25455
+ /**
25456
+ * Approval Policy
25457
+ * @description Human-in-the-loop approval gate. ``none`` (default) = no approval
25458
+ * required; ``writes`` = approval required for write-classified endpoints;
25459
+ * ``all`` = approval required for every endpoint.
25460
+ * @default none
25461
+ * @enum {string}
25462
+ */
25463
+ approval_policy?: "none" | "writes" | "all";
25068
25464
  /**
25069
25465
  * Auth
25070
25466
  * @description Auth configuration. When set, ``secret_value`` is required.
@@ -25137,9 +25533,23 @@ export interface components {
25137
25533
  * @description Inputs to ``POST /{integration_id}/endpoints/{endpoint_id}/test``.
25138
25534
  */
25139
25535
  src__routes__integrations__test_endpoint__Request: {
25536
+ /**
25537
+ * Auth Params
25538
+ * @description Caller-supplied values for auth-routed params.
25539
+ *
25540
+ * A ``custom_token_exchange`` integration declares ``param_headers`` /
25541
+ * ``param_body_fields`` whose ``param_name`` placeholders are NOT part of the
25542
+ * endpoint's ``input_schema`` (they feed the pre-flight token exchange, not the
25543
+ * endpoint call). They never reach the auth renderer through ``params`` alone, so
25544
+ * the renderer raised before any HTTP call. Supply them here to exercise the
25545
+ * exchange end-to-end. Keys here also override matching flat-``params`` keys.
25546
+ */
25547
+ auth_params?: {
25548
+ [key: string]: unknown;
25549
+ };
25140
25550
  /**
25141
25551
  * Params
25142
- * @description Tool arguments.
25552
+ * @description Tool arguments — the endpoint's ``input_schema``-declared inputs (path/query/body).
25143
25553
  */
25144
25554
  params?: {
25145
25555
  [key: string]: unknown;
@@ -25241,6 +25651,14 @@ export interface components {
25241
25651
  * @description PATCH body — each field is sentinel-defaulted; absent ≠ explicit-null.
25242
25652
  */
25243
25653
  src__routes__integrations__update_integration__Request: {
25654
+ /**
25655
+ * Approval Policy
25656
+ * @description Change the human-in-the-loop approval gate. ``none`` = no approval
25657
+ * required; ``writes`` = approval required for write-classified endpoints;
25658
+ * ``all`` = approval required for every endpoint. Absent ⇒ untouched.
25659
+ * @enum {string}
25660
+ */
25661
+ approval_policy?: "none" | "writes" | "all";
25244
25662
  /**
25245
25663
  * Auth
25246
25664
  * @description New auth config. Absent ⇒ untouched; null ⇒ clear; value ⇒ replace.
@@ -26873,7 +27291,7 @@ export interface operations {
26873
27291
  "application/json": components["schemas"]["WorkspaceResponse"];
26874
27292
  };
26875
27293
  };
26876
- /** @description Insufficient permissions or unsupported principal type. */
27294
+ /** @description Missing the workspaces:write scope (developer grant) or unsupported principal type. */
26877
27295
  403: {
26878
27296
  headers: {
26879
27297
  [name: string]: unknown;
@@ -30562,7 +30980,7 @@ export interface operations {
30562
30980
  parameters: {
30563
30981
  query?: {
30564
30982
  /** @description Filter by channel */
30565
- channel_kind?: ("voice" | "sms" | "whatsapp" | "web" | "email") | null;
30983
+ channel_kind?: components["schemas"]["ChannelKind"] | null;
30566
30984
  /** @description Filter by status */
30567
30985
  status?: ("active" | "closed" | "completed" | "in-progress" | "failed") | null;
30568
30986
  limit?: number;
@@ -30633,7 +31051,10 @@ export interface operations {
30633
31051
  };
30634
31052
  get_conversation_v1__workspace_id__conversations__conversation_id__get: {
30635
31053
  parameters: {
30636
- query?: never;
31054
+ query?: {
31055
+ /** @description Include per-turn tool_calls[] in the returned turns. Off by default so the payload stays small and (potentially PHI-bearing) tool output is opt-in, matching POST /turns?include_tool_calls=true. */
31056
+ include_tool_calls?: boolean;
31057
+ };
30637
31058
  header?: never;
30638
31059
  path: {
30639
31060
  workspace_id: string;
@@ -30698,6 +31119,8 @@ export interface operations {
30698
31119
  query?: {
30699
31120
  /** @description Include tool call details in response */
30700
31121
  include_tool_calls?: boolean;
31122
+ /** @description Poll for background results without sending a user message. Drains any background tool calls that completed since the last turn and reports them; returns empty output when nothing is pending. Must NOT be combined with a request-body ``message`` (422) or SSE streaming (422). Poll no more than once every ~5s per conversation — each poll loads session state. */
31123
+ poll?: boolean;
30701
31124
  };
30702
31125
  header?: never;
30703
31126
  path: {
@@ -31799,6 +32222,307 @@ export interface operations {
31799
32222
  };
31800
32223
  };
31801
32224
  };
32225
+ "list-external-integrations": {
32226
+ parameters: {
32227
+ query?: {
32228
+ search?: components["schemas"]["SearchString"] | null;
32229
+ sort_by?: string | null;
32230
+ limit?: number;
32231
+ continuation_token?: number;
32232
+ };
32233
+ header?: never;
32234
+ path: {
32235
+ workspace_id: string;
32236
+ };
32237
+ cookie?: never;
32238
+ };
32239
+ requestBody?: never;
32240
+ responses: {
32241
+ /** @description Successful Response */
32242
+ 200: {
32243
+ headers: {
32244
+ [name: string]: unknown;
32245
+ };
32246
+ content: {
32247
+ "application/json": components["schemas"]["PaginatedResponse_ExternalIntegrationResponse_"];
32248
+ };
32249
+ };
32250
+ /** @description Validation Error */
32251
+ 422: {
32252
+ headers: {
32253
+ [name: string]: unknown;
32254
+ };
32255
+ content: {
32256
+ "application/json": components["schemas"]["HTTPValidationError"];
32257
+ };
32258
+ };
32259
+ };
32260
+ };
32261
+ "create-external-integration": {
32262
+ parameters: {
32263
+ query?: never;
32264
+ header?: never;
32265
+ path: {
32266
+ workspace_id: string;
32267
+ };
32268
+ cookie?: never;
32269
+ };
32270
+ requestBody: {
32271
+ content: {
32272
+ "application/json": components["schemas"]["ExternalIntegrationRequest"];
32273
+ };
32274
+ };
32275
+ responses: {
32276
+ /** @description Successful Response */
32277
+ 201: {
32278
+ headers: {
32279
+ [name: string]: unknown;
32280
+ };
32281
+ content: {
32282
+ "application/json": components["schemas"]["ExternalIntegrationResponse"];
32283
+ };
32284
+ };
32285
+ /** @description Validation Error */
32286
+ 422: {
32287
+ headers: {
32288
+ [name: string]: unknown;
32289
+ };
32290
+ content: {
32291
+ "application/json": components["schemas"]["HTTPValidationError"];
32292
+ };
32293
+ };
32294
+ };
32295
+ };
32296
+ "get-external-integration": {
32297
+ parameters: {
32298
+ query?: never;
32299
+ header?: never;
32300
+ path: {
32301
+ workspace_id: string;
32302
+ integration_id: string;
32303
+ };
32304
+ cookie?: never;
32305
+ };
32306
+ requestBody?: never;
32307
+ responses: {
32308
+ /** @description Successful Response */
32309
+ 200: {
32310
+ headers: {
32311
+ [name: string]: unknown;
32312
+ };
32313
+ content: {
32314
+ "application/json": components["schemas"]["ExternalIntegrationResponse"];
32315
+ };
32316
+ };
32317
+ /** @description Validation Error */
32318
+ 422: {
32319
+ headers: {
32320
+ [name: string]: unknown;
32321
+ };
32322
+ content: {
32323
+ "application/json": components["schemas"]["HTTPValidationError"];
32324
+ };
32325
+ };
32326
+ };
32327
+ };
32328
+ "delete-external-integration": {
32329
+ parameters: {
32330
+ query?: never;
32331
+ header?: never;
32332
+ path: {
32333
+ workspace_id: string;
32334
+ integration_id: string;
32335
+ };
32336
+ cookie?: never;
32337
+ };
32338
+ requestBody?: never;
32339
+ responses: {
32340
+ /** @description Successful Response */
32341
+ 204: {
32342
+ headers: {
32343
+ [name: string]: unknown;
32344
+ };
32345
+ content?: never;
32346
+ };
32347
+ /** @description Validation Error */
32348
+ 422: {
32349
+ headers: {
32350
+ [name: string]: unknown;
32351
+ };
32352
+ content: {
32353
+ "application/json": components["schemas"]["HTTPValidationError"];
32354
+ };
32355
+ };
32356
+ };
32357
+ };
32358
+ "update-external-integration": {
32359
+ parameters: {
32360
+ query?: never;
32361
+ header?: never;
32362
+ path: {
32363
+ workspace_id: string;
32364
+ integration_id: string;
32365
+ };
32366
+ cookie?: never;
32367
+ };
32368
+ requestBody: {
32369
+ content: {
32370
+ "application/json": components["schemas"]["ExternalIntegrationUpdateRequest"];
32371
+ };
32372
+ };
32373
+ responses: {
32374
+ /** @description Successful Response */
32375
+ 200: {
32376
+ headers: {
32377
+ [name: string]: unknown;
32378
+ };
32379
+ content: {
32380
+ "application/json": components["schemas"]["ExternalIntegrationResponse"];
32381
+ };
32382
+ };
32383
+ /** @description Validation Error */
32384
+ 422: {
32385
+ headers: {
32386
+ [name: string]: unknown;
32387
+ };
32388
+ content: {
32389
+ "application/json": components["schemas"]["HTTPValidationError"];
32390
+ };
32391
+ };
32392
+ };
32393
+ };
32394
+ "list-external-integration-credentials": {
32395
+ parameters: {
32396
+ query?: never;
32397
+ header?: never;
32398
+ path: {
32399
+ workspace_id: string;
32400
+ integration_id: string;
32401
+ };
32402
+ cookie?: never;
32403
+ };
32404
+ requestBody?: never;
32405
+ responses: {
32406
+ /** @description Successful Response */
32407
+ 200: {
32408
+ headers: {
32409
+ [name: string]: unknown;
32410
+ };
32411
+ content: {
32412
+ "application/json": components["schemas"]["ExternalIntegrationCredentialResponse"][];
32413
+ };
32414
+ };
32415
+ /** @description Validation Error */
32416
+ 422: {
32417
+ headers: {
32418
+ [name: string]: unknown;
32419
+ };
32420
+ content: {
32421
+ "application/json": components["schemas"]["HTTPValidationError"];
32422
+ };
32423
+ };
32424
+ };
32425
+ };
32426
+ "create-external-integration-credential": {
32427
+ parameters: {
32428
+ query?: never;
32429
+ header?: never;
32430
+ path: {
32431
+ workspace_id: string;
32432
+ integration_id: string;
32433
+ };
32434
+ cookie?: never;
32435
+ };
32436
+ requestBody: {
32437
+ content: {
32438
+ "application/json": components["schemas"]["ExternalIntegrationCredentialRequest"];
32439
+ };
32440
+ };
32441
+ responses: {
32442
+ /** @description Successful Response */
32443
+ 201: {
32444
+ headers: {
32445
+ [name: string]: unknown;
32446
+ };
32447
+ content: {
32448
+ "application/json": components["schemas"]["ExternalIntegrationCredentialSecretResponse"];
32449
+ };
32450
+ };
32451
+ /** @description Validation Error */
32452
+ 422: {
32453
+ headers: {
32454
+ [name: string]: unknown;
32455
+ };
32456
+ content: {
32457
+ "application/json": components["schemas"]["HTTPValidationError"];
32458
+ };
32459
+ };
32460
+ };
32461
+ };
32462
+ "revoke-external-integration-credential": {
32463
+ parameters: {
32464
+ query?: never;
32465
+ header?: never;
32466
+ path: {
32467
+ workspace_id: string;
32468
+ integration_id: string;
32469
+ credential_id: string;
32470
+ };
32471
+ cookie?: never;
32472
+ };
32473
+ requestBody?: never;
32474
+ responses: {
32475
+ /** @description Successful Response */
32476
+ 204: {
32477
+ headers: {
32478
+ [name: string]: unknown;
32479
+ };
32480
+ content?: never;
32481
+ };
32482
+ /** @description Validation Error */
32483
+ 422: {
32484
+ headers: {
32485
+ [name: string]: unknown;
32486
+ };
32487
+ content: {
32488
+ "application/json": components["schemas"]["HTTPValidationError"];
32489
+ };
32490
+ };
32491
+ };
32492
+ };
32493
+ "rotate-external-integration-credential": {
32494
+ parameters: {
32495
+ query?: never;
32496
+ header?: never;
32497
+ path: {
32498
+ workspace_id: string;
32499
+ integration_id: string;
32500
+ credential_id: string;
32501
+ };
32502
+ cookie?: never;
32503
+ };
32504
+ requestBody?: never;
32505
+ responses: {
32506
+ /** @description Successful Response */
32507
+ 200: {
32508
+ headers: {
32509
+ [name: string]: unknown;
32510
+ };
32511
+ content: {
32512
+ "application/json": components["schemas"]["ExternalIntegrationCredentialSecretResponse"];
32513
+ };
32514
+ };
32515
+ /** @description Validation Error */
32516
+ 422: {
32517
+ headers: {
32518
+ [name: string]: unknown;
32519
+ };
32520
+ content: {
32521
+ "application/json": components["schemas"]["HTTPValidationError"];
32522
+ };
32523
+ };
32524
+ };
32525
+ };
31802
32526
  "fhir-import": {
31803
32527
  parameters: {
31804
32528
  query?: never;
@@ -33317,6 +34041,130 @@ export interface operations {
33317
34041
  };
33318
34042
  };
33319
34043
  };
34044
+ "approve-integration-write": {
34045
+ parameters: {
34046
+ query?: never;
34047
+ header?: never;
34048
+ path: {
34049
+ workspace_id: string;
34050
+ conversation_id: string;
34051
+ };
34052
+ cookie?: never;
34053
+ };
34054
+ requestBody?: never;
34055
+ responses: {
34056
+ /** @description Successful Response */
34057
+ 200: {
34058
+ headers: {
34059
+ [name: string]: unknown;
34060
+ };
34061
+ content: {
34062
+ "application/json": components["schemas"]["IntegrationApprovalResponse"];
34063
+ };
34064
+ };
34065
+ /** @description Missing or invalid API key. */
34066
+ 401: {
34067
+ headers: {
34068
+ [name: string]: unknown;
34069
+ };
34070
+ content?: never;
34071
+ };
34072
+ /** @description Insufficient permissions. */
34073
+ 403: {
34074
+ headers: {
34075
+ [name: string]: unknown;
34076
+ };
34077
+ content?: never;
34078
+ };
34079
+ /** @description Conversation not found in this workspace. */
34080
+ 404: {
34081
+ headers: {
34082
+ [name: string]: unknown;
34083
+ };
34084
+ content?: never;
34085
+ };
34086
+ /** @description Validation Error */
34087
+ 422: {
34088
+ headers: {
34089
+ [name: string]: unknown;
34090
+ };
34091
+ content: {
34092
+ "application/json": components["schemas"]["HTTPValidationError"];
34093
+ };
34094
+ };
34095
+ /** @description Rate limited. */
34096
+ 429: {
34097
+ headers: {
34098
+ [name: string]: unknown;
34099
+ };
34100
+ content?: never;
34101
+ };
34102
+ };
34103
+ };
34104
+ "reject-integration-write": {
34105
+ parameters: {
34106
+ query?: never;
34107
+ header?: never;
34108
+ path: {
34109
+ workspace_id: string;
34110
+ conversation_id: string;
34111
+ };
34112
+ cookie?: never;
34113
+ };
34114
+ requestBody: {
34115
+ content: {
34116
+ "application/json": components["schemas"]["IntegrationRejectRequest"];
34117
+ };
34118
+ };
34119
+ responses: {
34120
+ /** @description Successful Response */
34121
+ 200: {
34122
+ headers: {
34123
+ [name: string]: unknown;
34124
+ };
34125
+ content: {
34126
+ "application/json": components["schemas"]["IntegrationApprovalResponse"];
34127
+ };
34128
+ };
34129
+ /** @description Missing or invalid API key. */
34130
+ 401: {
34131
+ headers: {
34132
+ [name: string]: unknown;
34133
+ };
34134
+ content?: never;
34135
+ };
34136
+ /** @description Insufficient permissions. */
34137
+ 403: {
34138
+ headers: {
34139
+ [name: string]: unknown;
34140
+ };
34141
+ content?: never;
34142
+ };
34143
+ /** @description Conversation not found in this workspace. */
34144
+ 404: {
34145
+ headers: {
34146
+ [name: string]: unknown;
34147
+ };
34148
+ content?: never;
34149
+ };
34150
+ /** @description Validation Error */
34151
+ 422: {
34152
+ headers: {
34153
+ [name: string]: unknown;
34154
+ };
34155
+ content: {
34156
+ "application/json": components["schemas"]["HTTPValidationError"];
34157
+ };
34158
+ };
34159
+ /** @description Rate limited. */
34160
+ 429: {
34161
+ headers: {
34162
+ [name: string]: unknown;
34163
+ };
34164
+ content?: never;
34165
+ };
34166
+ };
34167
+ };
33320
34168
  "get-integration": {
33321
34169
  parameters: {
33322
34170
  query?: never;
@@ -37414,268 +38262,58 @@ export interface operations {
37414
38262
  };
37415
38263
  };
37416
38264
  };
37417
- "delete-service": {
37418
- parameters: {
37419
- query?: never;
37420
- header?: never;
37421
- path: {
37422
- workspace_id: string;
37423
- service_id: string;
37424
- };
37425
- cookie?: never;
37426
- };
37427
- requestBody?: never;
37428
- responses: {
37429
- /** @description Successful Response */
37430
- 204: {
37431
- headers: {
37432
- [name: string]: unknown;
37433
- };
37434
- content?: never;
37435
- };
37436
- /** @description Missing or invalid API key. */
37437
- 401: {
37438
- headers: {
37439
- [name: string]: unknown;
37440
- };
37441
- content?: never;
37442
- };
37443
- /** @description Insufficient permissions. */
37444
- 403: {
37445
- headers: {
37446
- [name: string]: unknown;
37447
- };
37448
- content?: never;
37449
- };
37450
- /** @description Not found. */
37451
- 404: {
37452
- headers: {
37453
- [name: string]: unknown;
37454
- };
37455
- content?: never;
37456
- };
37457
- /** @description Validation Error */
37458
- 422: {
37459
- headers: {
37460
- [name: string]: unknown;
37461
- };
37462
- content: {
37463
- "application/json": components["schemas"]["HTTPValidationError"];
37464
- };
37465
- };
37466
- };
37467
- };
37468
- "text-turn": {
37469
- parameters: {
37470
- query?: never;
37471
- header?: never;
37472
- path: {
37473
- workspace_id: string;
37474
- service_id: string;
37475
- };
37476
- cookie?: never;
37477
- };
37478
- requestBody: {
37479
- content: {
37480
- "application/json": components["schemas"]["TextTurnRequest"];
37481
- };
37482
- };
37483
- responses: {
37484
- /** @description Agent text reply */
37485
- 200: {
37486
- headers: {
37487
- [name: string]: unknown;
37488
- };
37489
- content: {
37490
- "application/json": components["schemas"]["TextTurnResponse"];
37491
- };
37492
- };
37493
- /** @description Agent elected silence */
37494
- 204: {
37495
- headers: {
37496
- [name: string]: unknown;
37497
- };
37498
- content?: never;
37499
- };
37500
- /** @description Concurrent text turn in progress for this speaker */
37501
- 409: {
37502
- headers: {
37503
- [name: string]: unknown;
37504
- };
37505
- content?: never;
37506
- };
37507
- /** @description Validation Error */
37508
- 422: {
37509
- headers: {
37510
- [name: string]: unknown;
37511
- };
37512
- content: {
37513
- "application/json": components["schemas"]["HTTPValidationError"];
37514
- };
37515
- };
37516
- };
37517
- };
37518
- "resolve-service-tools": {
37519
- parameters: {
37520
- query?: never;
37521
- header?: never;
37522
- path: {
37523
- workspace_id: string;
37524
- service_id: string;
37525
- };
37526
- cookie?: never;
37527
- };
37528
- requestBody?: never;
37529
- responses: {
37530
- /** @description Successful Response */
37531
- 200: {
37532
- headers: {
37533
- [name: string]: unknown;
37534
- };
37535
- content: {
37536
- "application/json": components["schemas"]["ToolResolveResponse"];
37537
- };
37538
- };
37539
- /** @description Missing or invalid credentials. */
37540
- 401: {
37541
- headers: {
37542
- [name: string]: unknown;
37543
- };
37544
- content?: never;
37545
- };
37546
- /** @description Insufficient permissions. */
37547
- 403: {
37548
- headers: {
37549
- [name: string]: unknown;
37550
- };
37551
- content?: never;
37552
- };
37553
- /** @description Validation Error */
37554
- 422: {
37555
- headers: {
37556
- [name: string]: unknown;
37557
- };
37558
- content: {
37559
- "application/json": components["schemas"]["HTTPValidationError"];
37560
- };
37561
- };
37562
- /** @description Voice agent service unavailable. */
37563
- 503: {
37564
- headers: {
37565
- [name: string]: unknown;
37566
- };
37567
- content?: never;
37568
- };
37569
- };
37570
- };
37571
- "upsert-service-version-set": {
37572
- parameters: {
37573
- query?: never;
37574
- header?: never;
37575
- path: {
37576
- workspace_id: string;
37577
- service_id: string;
37578
- /** @description Version set name (e.g. 'release') */
37579
- name: string;
37580
- };
37581
- cookie?: never;
37582
- };
37583
- requestBody: {
37584
- content: {
37585
- "application/json": components["schemas"]["UpsertVersionSetRequest"];
37586
- };
37587
- };
37588
- responses: {
37589
- /** @description Successful Response */
37590
- 204: {
37591
- headers: {
37592
- [name: string]: unknown;
37593
- };
37594
- content?: never;
37595
- };
37596
- /** @description Missing or invalid API key. */
37597
- 401: {
37598
- headers: {
37599
- [name: string]: unknown;
37600
- };
37601
- content?: never;
37602
- };
37603
- /** @description Insufficient permissions. */
37604
- 403: {
37605
- headers: {
37606
- [name: string]: unknown;
37607
- };
37608
- content?: never;
37609
- };
37610
- /** @description Not found. */
37611
- 404: {
37612
- headers: {
37613
- [name: string]: unknown;
37614
- };
37615
- content?: never;
37616
- };
37617
- /** @description Name already taken. */
37618
- 409: {
37619
- headers: {
37620
- [name: string]: unknown;
37621
- };
37622
- content?: never;
37623
- };
37624
- /** @description Invalid request body. */
37625
- 422: {
37626
- headers: {
37627
- [name: string]: unknown;
37628
- };
37629
- content?: never;
37630
- };
37631
- };
37632
- };
37633
- "list-voice-judge-recent": {
38265
+ "delete-service": {
37634
38266
  parameters: {
37635
- query?: {
37636
- /** @description Max rows to return (default 20, max 100) */
37637
- limit?: number;
37638
- /** @description Offset for pagination (default 0) */
37639
- offset?: number;
37640
- };
38267
+ query?: never;
37641
38268
  header?: never;
37642
38269
  path: {
37643
38270
  workspace_id: string;
37644
- /** @description Service UUID */
37645
38271
  service_id: string;
37646
38272
  };
37647
38273
  cookie?: never;
37648
38274
  };
37649
38275
  requestBody?: never;
37650
38276
  responses: {
37651
- /** @description Voice judge rows (newest first) */
37652
- 200: {
38277
+ /** @description Successful Response */
38278
+ 204: {
37653
38279
  headers: {
37654
38280
  [name: string]: unknown;
37655
38281
  };
37656
- content: {
37657
- "application/json": components["schemas"]["VoiceJudgeRecentResponse"];
37658
- };
38282
+ content?: never;
37659
38283
  };
37660
- /** @description Validation Error */
37661
- 422: {
38284
+ /** @description Missing or invalid API key. */
38285
+ 401: {
37662
38286
  headers: {
37663
38287
  [name: string]: unknown;
37664
38288
  };
37665
- content: {
37666
- "application/json": components["schemas"]["HTTPValidationError"];
38289
+ content?: never;
38290
+ };
38291
+ /** @description Insufficient permissions. */
38292
+ 403: {
38293
+ headers: {
38294
+ [name: string]: unknown;
37667
38295
  };
38296
+ content?: never;
37668
38297
  };
37669
- /** @description Analytics warehouse not configured or transiently unavailable */
37670
- 503: {
38298
+ /** @description Not found. */
38299
+ 404: {
37671
38300
  headers: {
37672
38301
  [name: string]: unknown;
37673
38302
  };
37674
38303
  content?: never;
37675
38304
  };
38305
+ /** @description Validation Error */
38306
+ 422: {
38307
+ headers: {
38308
+ [name: string]: unknown;
38309
+ };
38310
+ content: {
38311
+ "application/json": components["schemas"]["HTTPValidationError"];
38312
+ };
38313
+ };
37676
38314
  };
37677
38315
  };
37678
- "voice-turn": {
38316
+ "text-turn": {
37679
38317
  parameters: {
37680
38318
  query?: never;
37681
38319
  header?: never;
@@ -37687,18 +38325,17 @@ export interface operations {
37687
38325
  };
37688
38326
  requestBody: {
37689
38327
  content: {
37690
- "multipart/form-data": components["schemas"]["Body_voice-turn"];
38328
+ "application/json": components["schemas"]["TextTurnRequest"];
37691
38329
  };
37692
38330
  };
37693
38331
  responses: {
37694
- /** @description OGG Opus agent reply */
38332
+ /** @description Agent text reply */
37695
38333
  200: {
37696
38334
  headers: {
37697
38335
  [name: string]: unknown;
37698
38336
  };
37699
38337
  content: {
37700
- "application/json": unknown;
37701
- "audio/ogg": unknown;
38338
+ "application/json": components["schemas"]["TextTurnResponse"];
37702
38339
  };
37703
38340
  };
37704
38341
  /** @description Agent elected silence */
@@ -37708,7 +38345,7 @@ export interface operations {
37708
38345
  };
37709
38346
  content?: never;
37710
38347
  };
37711
- /** @description Concurrent voice turn in progress for this speaker */
38348
+ /** @description Concurrent text turn in progress for this speaker */
37712
38349
  409: {
37713
38350
  headers: {
37714
38351
  [name: string]: unknown;
@@ -37726,12 +38363,13 @@ export interface operations {
37726
38363
  };
37727
38364
  };
37728
38365
  };
37729
- list_active_sessions_v1__workspace_id__sessions_active_get: {
38366
+ "resolve-service-tools": {
37730
38367
  parameters: {
37731
38368
  query?: never;
37732
38369
  header?: never;
37733
38370
  path: {
37734
38371
  workspace_id: string;
38372
+ service_id: string;
37735
38373
  };
37736
38374
  cookie?: never;
37737
38375
  };
@@ -37743,42 +38381,130 @@ export interface operations {
37743
38381
  [name: string]: unknown;
37744
38382
  };
37745
38383
  content: {
37746
- "application/json": components["schemas"]["ActiveSession"][];
38384
+ "application/json": components["schemas"]["ToolResolveResponse"];
38385
+ };
38386
+ };
38387
+ /** @description Missing or invalid credentials. */
38388
+ 401: {
38389
+ headers: {
38390
+ [name: string]: unknown;
38391
+ };
38392
+ content?: never;
38393
+ };
38394
+ /** @description Insufficient permissions. */
38395
+ 403: {
38396
+ headers: {
38397
+ [name: string]: unknown;
37747
38398
  };
38399
+ content?: never;
38400
+ };
38401
+ /** @description Validation Error */
38402
+ 422: {
38403
+ headers: {
38404
+ [name: string]: unknown;
38405
+ };
38406
+ content: {
38407
+ "application/json": components["schemas"]["HTTPValidationError"];
38408
+ };
38409
+ };
38410
+ /** @description Voice agent service unavailable. */
38411
+ 503: {
38412
+ headers: {
38413
+ [name: string]: unknown;
38414
+ };
38415
+ content?: never;
37748
38416
  };
37749
38417
  };
37750
38418
  };
37751
- start_text_session_v1__workspace_id__sessions_start_post: {
38419
+ "upsert-service-version-set": {
37752
38420
  parameters: {
37753
38421
  query?: never;
37754
38422
  header?: never;
37755
38423
  path: {
37756
38424
  workspace_id: string;
38425
+ service_id: string;
38426
+ /** @description Version set name (e.g. 'release') */
38427
+ name: string;
37757
38428
  };
37758
38429
  cookie?: never;
37759
38430
  };
37760
38431
  requestBody: {
37761
38432
  content: {
37762
- "application/json": components["schemas"]["StartSessionRequest"];
38433
+ "application/json": components["schemas"]["UpsertVersionSetRequest"];
37763
38434
  };
37764
38435
  };
37765
38436
  responses: {
37766
38437
  /** @description Successful Response */
37767
- 201: {
38438
+ 204: {
37768
38439
  headers: {
37769
38440
  [name: string]: unknown;
37770
38441
  };
37771
- content: {
37772
- "application/json": components["schemas"]["StartSessionResponse"];
38442
+ content?: never;
38443
+ };
38444
+ /** @description Missing or invalid API key. */
38445
+ 401: {
38446
+ headers: {
38447
+ [name: string]: unknown;
37773
38448
  };
38449
+ content?: never;
37774
38450
  };
37775
- /** @description Service or entity not found. */
38451
+ /** @description Insufficient permissions. */
38452
+ 403: {
38453
+ headers: {
38454
+ [name: string]: unknown;
38455
+ };
38456
+ content?: never;
38457
+ };
38458
+ /** @description Not found. */
37776
38459
  404: {
37777
38460
  headers: {
37778
38461
  [name: string]: unknown;
37779
38462
  };
37780
38463
  content?: never;
37781
38464
  };
38465
+ /** @description Name already taken. */
38466
+ 409: {
38467
+ headers: {
38468
+ [name: string]: unknown;
38469
+ };
38470
+ content?: never;
38471
+ };
38472
+ /** @description Invalid request body. */
38473
+ 422: {
38474
+ headers: {
38475
+ [name: string]: unknown;
38476
+ };
38477
+ content?: never;
38478
+ };
38479
+ };
38480
+ };
38481
+ "list-voice-judge-recent": {
38482
+ parameters: {
38483
+ query?: {
38484
+ /** @description Max rows to return (default 20, max 100) */
38485
+ limit?: number;
38486
+ /** @description Offset for pagination (default 0) */
38487
+ offset?: number;
38488
+ };
38489
+ header?: never;
38490
+ path: {
38491
+ workspace_id: string;
38492
+ /** @description Service UUID */
38493
+ service_id: string;
38494
+ };
38495
+ cookie?: never;
38496
+ };
38497
+ requestBody?: never;
38498
+ responses: {
38499
+ /** @description Voice judge rows (newest first) */
38500
+ 200: {
38501
+ headers: {
38502
+ [name: string]: unknown;
38503
+ };
38504
+ content: {
38505
+ "application/json": components["schemas"]["VoiceJudgeRecentResponse"];
38506
+ };
38507
+ };
37782
38508
  /** @description Validation Error */
37783
38509
  422: {
37784
38510
  headers: {
@@ -37788,7 +38514,7 @@ export interface operations {
37788
38514
  "application/json": components["schemas"]["HTTPValidationError"];
37789
38515
  };
37790
38516
  };
37791
- /** @description Agent service unavailable. */
38517
+ /** @description Analytics warehouse not configured or transiently unavailable */
37792
38518
  503: {
37793
38519
  headers: {
37794
38520
  [name: string]: unknown;
@@ -37797,33 +38523,41 @@ export interface operations {
37797
38523
  };
37798
38524
  };
37799
38525
  };
37800
- inject_session_event_v1__workspace_id__sessions__call_sid__inject_post: {
38526
+ "voice-turn": {
37801
38527
  parameters: {
37802
38528
  query?: never;
37803
38529
  header?: never;
37804
38530
  path: {
37805
38531
  workspace_id: string;
37806
- call_sid: string;
38532
+ service_id: string;
37807
38533
  };
37808
38534
  cookie?: never;
37809
38535
  };
37810
38536
  requestBody: {
37811
38537
  content: {
37812
- "application/json": components["schemas"]["InjectRequest"];
38538
+ "multipart/form-data": components["schemas"]["Body_voice-turn"];
37813
38539
  };
37814
38540
  };
37815
38541
  responses: {
37816
- /** @description Successful Response */
38542
+ /** @description OGG Opus agent reply */
37817
38543
  200: {
37818
38544
  headers: {
37819
38545
  [name: string]: unknown;
37820
38546
  };
37821
38547
  content: {
37822
- "application/json": components["schemas"]["InjectResponse"];
38548
+ "application/json": unknown;
38549
+ "audio/ogg": unknown;
37823
38550
  };
37824
38551
  };
37825
- /** @description Session not found. */
37826
- 404: {
38552
+ /** @description Agent elected silence */
38553
+ 204: {
38554
+ headers: {
38555
+ [name: string]: unknown;
38556
+ };
38557
+ content?: never;
38558
+ };
38559
+ /** @description Concurrent voice turn in progress for this speaker */
38560
+ 409: {
37827
38561
  headers: {
37828
38562
  [name: string]: unknown;
37829
38563
  };
@@ -37838,16 +38572,31 @@ export interface operations {
37838
38572
  "application/json": components["schemas"]["HTTPValidationError"];
37839
38573
  };
37840
38574
  };
37841
- /** @description Voice agent service unavailable. */
37842
- 503: {
38575
+ };
38576
+ };
38577
+ list_active_sessions_v1__workspace_id__sessions_active_get: {
38578
+ parameters: {
38579
+ query?: never;
38580
+ header?: never;
38581
+ path: {
38582
+ workspace_id: string;
38583
+ };
38584
+ cookie?: never;
38585
+ };
38586
+ requestBody?: never;
38587
+ responses: {
38588
+ /** @description Successful Response */
38589
+ 200: {
37843
38590
  headers: {
37844
38591
  [name: string]: unknown;
37845
38592
  };
37846
- content?: never;
38593
+ content: {
38594
+ "application/json": components["schemas"]["ActiveSession"][];
38595
+ };
37847
38596
  };
37848
38597
  };
37849
38598
  };
37850
- "get-branding-settings": {
38599
+ start_text_session_v1__workspace_id__sessions_start_post: {
37851
38600
  parameters: {
37852
38601
  query?: never;
37853
38602
  header?: never;
@@ -37856,19 +38605,39 @@ export interface operations {
37856
38605
  };
37857
38606
  cookie?: never;
37858
38607
  };
37859
- requestBody?: never;
38608
+ requestBody: {
38609
+ content: {
38610
+ "application/json": components["schemas"]["StartSessionRequest"];
38611
+ };
38612
+ };
37860
38613
  responses: {
37861
38614
  /** @description Successful Response */
37862
- 200: {
38615
+ 201: {
37863
38616
  headers: {
37864
38617
  [name: string]: unknown;
37865
38618
  };
37866
38619
  content: {
37867
- "application/json": components["schemas"]["BrandingSettingsResponse"];
38620
+ "application/json": components["schemas"]["StartSessionResponse"];
37868
38621
  };
37869
38622
  };
37870
- /** @description Rate limited */
37871
- 429: {
38623
+ /** @description Service or entity not found. */
38624
+ 404: {
38625
+ headers: {
38626
+ [name: string]: unknown;
38627
+ };
38628
+ content?: never;
38629
+ };
38630
+ /** @description Validation Error */
38631
+ 422: {
38632
+ headers: {
38633
+ [name: string]: unknown;
38634
+ };
38635
+ content: {
38636
+ "application/json": components["schemas"]["HTTPValidationError"];
38637
+ };
38638
+ };
38639
+ /** @description Agent service unavailable. */
38640
+ 503: {
37872
38641
  headers: {
37873
38642
  [name: string]: unknown;
37874
38643
  };
@@ -37876,18 +38645,19 @@ export interface operations {
37876
38645
  };
37877
38646
  };
37878
38647
  };
37879
- "update-branding-settings": {
38648
+ inject_session_event_v1__workspace_id__sessions__call_sid__inject_post: {
37880
38649
  parameters: {
37881
38650
  query?: never;
37882
38651
  header?: never;
37883
38652
  path: {
37884
38653
  workspace_id: string;
38654
+ call_sid: string;
37885
38655
  };
37886
38656
  cookie?: never;
37887
38657
  };
37888
38658
  requestBody: {
37889
38659
  content: {
37890
- "application/json": components["schemas"]["BrandingSettingsRequest"];
38660
+ "application/json": components["schemas"]["InjectRequest"];
37891
38661
  };
37892
38662
  };
37893
38663
  responses: {
@@ -37897,25 +38667,27 @@ export interface operations {
37897
38667
  [name: string]: unknown;
37898
38668
  };
37899
38669
  content: {
37900
- "application/json": components["schemas"]["BrandingSettingsResponse"];
38670
+ "application/json": components["schemas"]["InjectResponse"];
37901
38671
  };
37902
38672
  };
37903
- /** @description Workspace not found */
38673
+ /** @description Session not found. */
37904
38674
  404: {
37905
38675
  headers: {
37906
38676
  [name: string]: unknown;
37907
38677
  };
37908
38678
  content?: never;
37909
38679
  };
37910
- /** @description Validation error */
38680
+ /** @description Validation Error */
37911
38681
  422: {
37912
38682
  headers: {
37913
38683
  [name: string]: unknown;
37914
38684
  };
37915
- content?: never;
38685
+ content: {
38686
+ "application/json": components["schemas"]["HTTPValidationError"];
38687
+ };
37916
38688
  };
37917
- /** @description Rate limited */
37918
- 429: {
38689
+ /** @description Voice agent service unavailable. */
38690
+ 503: {
37919
38691
  headers: {
37920
38692
  [name: string]: unknown;
37921
38693
  };
@@ -37923,7 +38695,7 @@ export interface operations {
37923
38695
  };
37924
38696
  };
37925
38697
  };
37926
- "get-connector-settings": {
38698
+ "get-branding-settings": {
37927
38699
  parameters: {
37928
38700
  query?: never;
37929
38701
  header?: never;
@@ -37940,7 +38712,7 @@ export interface operations {
37940
38712
  [name: string]: unknown;
37941
38713
  };
37942
38714
  content: {
37943
- "application/json": components["schemas"]["ConnectorSettingsResponse"];
38715
+ "application/json": components["schemas"]["BrandingSettingsResponse"];
37944
38716
  };
37945
38717
  };
37946
38718
  /** @description Rate limited */
@@ -37952,7 +38724,7 @@ export interface operations {
37952
38724
  };
37953
38725
  };
37954
38726
  };
37955
- "update-connector-settings": {
38727
+ "update-branding-settings": {
37956
38728
  parameters: {
37957
38729
  query?: never;
37958
38730
  header?: never;
@@ -37963,7 +38735,7 @@ export interface operations {
37963
38735
  };
37964
38736
  requestBody: {
37965
38737
  content: {
37966
- "application/json": components["schemas"]["ConnectorSettingsRequest"];
38738
+ "application/json": components["schemas"]["BrandingSettingsRequest"];
37967
38739
  };
37968
38740
  };
37969
38741
  responses: {
@@ -37973,7 +38745,7 @@ export interface operations {
37973
38745
  [name: string]: unknown;
37974
38746
  };
37975
38747
  content: {
37976
- "application/json": components["schemas"]["ConnectorSettingsResponse"];
38748
+ "application/json": components["schemas"]["BrandingSettingsResponse"];
37977
38749
  };
37978
38750
  };
37979
38751
  /** @description Workspace not found */
@@ -39867,6 +40639,38 @@ export interface operations {
39867
40639
  };
39868
40640
  };
39869
40641
  };
40642
+ "get-simulation-suite-run-results": {
40643
+ parameters: {
40644
+ query?: never;
40645
+ header?: never;
40646
+ path: {
40647
+ workspace_id: string;
40648
+ suite_run_id: string;
40649
+ };
40650
+ cookie?: never;
40651
+ };
40652
+ requestBody?: never;
40653
+ responses: {
40654
+ /** @description Successful Response */
40655
+ 200: {
40656
+ headers: {
40657
+ [name: string]: unknown;
40658
+ };
40659
+ content: {
40660
+ "application/json": components["schemas"]["SimulationSuiteRunResultsResponse"];
40661
+ };
40662
+ };
40663
+ /** @description Validation Error */
40664
+ 422: {
40665
+ headers: {
40666
+ [name: string]: unknown;
40667
+ };
40668
+ content: {
40669
+ "application/json": components["schemas"]["HTTPValidationError"];
40670
+ };
40671
+ };
40672
+ };
40673
+ };
39870
40674
  "list-simulation-suites": {
39871
40675
  parameters: {
39872
40676
  query?: never;
@@ -40058,6 +40862,40 @@ export interface operations {
40058
40862
  };
40059
40863
  };
40060
40864
  };
40865
+ "list-simulation-suite-runs": {
40866
+ parameters: {
40867
+ query?: {
40868
+ limit?: number;
40869
+ };
40870
+ header?: never;
40871
+ path: {
40872
+ workspace_id: string;
40873
+ suite_id: string;
40874
+ };
40875
+ cookie?: never;
40876
+ };
40877
+ requestBody?: never;
40878
+ responses: {
40879
+ /** @description Successful Response */
40880
+ 200: {
40881
+ headers: {
40882
+ [name: string]: unknown;
40883
+ };
40884
+ content: {
40885
+ "application/json": components["schemas"]["ListSimulationSuiteRunsResponse"];
40886
+ };
40887
+ };
40888
+ /** @description Validation Error */
40889
+ 422: {
40890
+ headers: {
40891
+ [name: string]: unknown;
40892
+ };
40893
+ content: {
40894
+ "application/json": components["schemas"]["HTTPValidationError"];
40895
+ };
40896
+ };
40897
+ };
40898
+ };
40061
40899
  "list-skills": {
40062
40900
  parameters: {
40063
40901
  query?: {
@@ -42008,6 +42846,8 @@ export interface operations {
42008
42846
  entity_type?: string | null;
42009
42847
  /** @description Search by display name */
42010
42848
  q?: string | null;
42849
+ /** @description Sort order: `+display_name` (default) or `-display_name` for alphabetical, `+last_event_at` for oldest activity first, `-last_event_at` for most recent first. All sort orders use entity id as a final tiebreaker for stable pagination. */
42850
+ sort_by?: ("+display_name" | "-display_name" | "+last_event_at" | "-last_event_at") | null;
42011
42851
  limit?: number;
42012
42852
  offset?: number;
42013
42853
  };