@amigo-ai/platform-sdk 0.17.3 → 0.19.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.
@@ -2006,7 +2006,10 @@ export interface paths {
2006
2006
  };
2007
2007
  get?: never;
2008
2008
  put?: never;
2009
- /** Send a message and get the agent's response */
2009
+ /**
2010
+ * Send a message and get the agent's response
2011
+ * @description Send a user message and receive the agent's response. Set `Accept: text/event-stream` to receive an SSE stream of token, tool_call_started, tool_call_completed, message, and done events instead of the synchronous JSON response.
2012
+ */
2010
2013
  post: operations["create_turn_v1__workspace_id__conversations__conversation_id__turns_post"];
2011
2014
  delete?: never;
2012
2015
  options?: never;
@@ -3397,6 +3400,26 @@ export interface paths {
3397
3400
  patch?: never;
3398
3401
  trace?: never;
3399
3402
  };
3403
+ "/v1/{workspace_id}/intake/links/{link_id}/uploads/{upload_id}/download": {
3404
+ parameters: {
3405
+ query?: never;
3406
+ header?: never;
3407
+ path?: never;
3408
+ cookie?: never;
3409
+ };
3410
+ /**
3411
+ * Download an uploaded file
3412
+ * @description Proxy the raw file bytes from the UC Volume back to the caller.
3413
+ */
3414
+ get: operations["download-intake-upload"];
3415
+ put?: never;
3416
+ post?: never;
3417
+ delete?: never;
3418
+ options?: never;
3419
+ head?: never;
3420
+ patch?: never;
3421
+ trace?: never;
3422
+ };
3400
3423
  "/v1/{workspace_id}/integrations": {
3401
3424
  parameters: {
3402
3425
  query?: never;
@@ -3959,15 +3982,6 @@ export interface paths {
3959
3982
  /**
3960
3983
  * Emit Metering Event
3961
3984
  * @description Emit one metering event for the calling workspace.
3962
- *
3963
- * Scope: workspace-scoped via path param; auth via API key (same as every
3964
- * other workspace route). 202 on success — emission is fire-and-forget.
3965
- *
3966
- * ``event_type`` is a free-form string (regex-validated). Aggregation
3967
- * into ``customer_meter_values`` is handled by SDP materialized views
3968
- * in ``databricks/pipelines/billing.py``; an event_type with no matching
3969
- * MV still lands in ``world_events`` but doesn't roll up into invoices
3970
- * until someone adds an MV for it.
3971
3985
  */
3972
3986
  post: operations["emit-metering-event"];
3973
3987
  delete?: never;
@@ -5662,6 +5676,26 @@ export interface paths {
5662
5676
  patch?: never;
5663
5677
  trace?: never;
5664
5678
  };
5679
+ "/v1/{workspace_id}/sessions/start": {
5680
+ parameters: {
5681
+ query?: never;
5682
+ header?: never;
5683
+ path?: never;
5684
+ cookie?: never;
5685
+ };
5686
+ get?: never;
5687
+ put?: never;
5688
+ /**
5689
+ * Start a text conversation session with an entity
5690
+ * @description Start an SMS, WhatsApp, or web text session with a world model entity. Resolves contact info from the entity, picks the workspace outbound number, and creates or resumes a conversation. Returns conversation_id for subsequent turns via POST /v1/{ws}/conversations/{id}/turns.
5691
+ */
5692
+ post: operations["start_text_session_v1__workspace_id__sessions_start_post"];
5693
+ delete?: never;
5694
+ options?: never;
5695
+ head?: never;
5696
+ patch?: never;
5697
+ trace?: never;
5698
+ };
5665
5699
  "/v1/{workspace_id}/sessions/{call_sid}/inject": {
5666
5700
  parameters: {
5667
5701
  query?: never;
@@ -8802,7 +8836,8 @@ export interface components {
8802
8836
  * @description Authentication configuration for an integration.
8803
8837
  *
8804
8838
  * Supports api_key_header, bearer_token, oauth2_client_credentials,
8805
- * oauth2_jwt_bearer, and gcp_wif.
8839
+ * oauth2_jwt_bearer, gcp_wif, smart_backend_services, and
8840
+ * bearer_token_exchange.
8806
8841
  */
8807
8842
  AuthConfig: {
8808
8843
  /** Assertion Algorithm */
@@ -8824,6 +8859,34 @@ export interface components {
8824
8859
  client_id?: string | null;
8825
8860
  /** Client Secret Ssm Param Path */
8826
8861
  client_secret_ssm_param_path?: string | null;
8862
+ /**
8863
+ * Exchange Default Ttl Seconds
8864
+ * @default 3600
8865
+ */
8866
+ exchange_default_ttl_seconds?: number;
8867
+ /** Exchange Expires In Field */
8868
+ exchange_expires_in_field?: string | null;
8869
+ /** Exchange Param Headers */
8870
+ exchange_param_headers?: components["schemas"]["ExchangeHeaderMapping"][];
8871
+ /**
8872
+ * Exchange Secret Format
8873
+ * @default {secret}
8874
+ */
8875
+ exchange_secret_format?: string;
8876
+ /**
8877
+ * Exchange Secret Header
8878
+ * @default X-API-KEY
8879
+ */
8880
+ exchange_secret_header?: string;
8881
+ /** Exchange Secret Ssm Param Path */
8882
+ exchange_secret_ssm_param_path?: string | null;
8883
+ /**
8884
+ * Exchange Token Field
8885
+ * @default token
8886
+ */
8887
+ exchange_token_field?: string;
8888
+ /** Exchange Url */
8889
+ exchange_url?: string | null;
8827
8890
  /** Gcp Scopes */
8828
8891
  gcp_scopes?: string[] | null;
8829
8892
  /** Header Name */
@@ -8847,7 +8910,7 @@ export interface components {
8847
8910
  * Type
8848
8911
  * @enum {string}
8849
8912
  */
8850
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
8913
+ type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
8851
8914
  };
8852
8915
  /**
8853
8916
  * AuthConfigWithSecrets
@@ -8879,6 +8942,35 @@ export interface components {
8879
8942
  /** Client Secret Ssm Param Path */
8880
8943
  client_secret_ssm_param_path?: string | null;
8881
8944
  client_secret_value?: components["schemas"]["SecretInput"] | null;
8945
+ /**
8946
+ * Exchange Default Ttl Seconds
8947
+ * @default 3600
8948
+ */
8949
+ exchange_default_ttl_seconds?: number;
8950
+ /** Exchange Expires In Field */
8951
+ exchange_expires_in_field?: string | null;
8952
+ /** Exchange Param Headers */
8953
+ exchange_param_headers?: components["schemas"]["ExchangeHeaderMapping"][];
8954
+ /**
8955
+ * Exchange Secret Format
8956
+ * @default {secret}
8957
+ */
8958
+ exchange_secret_format?: string;
8959
+ /**
8960
+ * Exchange Secret Header
8961
+ * @default X-API-KEY
8962
+ */
8963
+ exchange_secret_header?: string;
8964
+ /** Exchange Secret Ssm Param Path */
8965
+ exchange_secret_ssm_param_path?: string | null;
8966
+ exchange_secret_value?: components["schemas"]["SecretInput"] | null;
8967
+ /**
8968
+ * Exchange Token Field
8969
+ * @default token
8970
+ */
8971
+ exchange_token_field?: string;
8972
+ /** Exchange Url */
8973
+ exchange_url?: string | null;
8882
8974
  /** Gcp Scopes */
8883
8975
  gcp_scopes?: string[] | null;
8884
8976
  /** Header Name */
@@ -8903,7 +8995,7 @@ export interface components {
8903
8995
  * Type
8904
8996
  * @enum {string}
8905
8997
  */
8906
- type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services";
8998
+ type: "api_key_header" | "bearer_token" | "oauth2_client_credentials" | "oauth2_jwt_bearer" | "gcp_wif" | "smart_backend_services" | "bearer_token_exchange";
8907
8999
  };
8908
9000
  /** AuthInfoResponse */
8909
9001
  AuthInfoResponse: {
@@ -10882,6 +10974,29 @@ export interface components {
10882
10974
  /** Connectors */
10883
10975
  connectors: components["schemas"]["ConnectorDef"][];
10884
10976
  };
10977
+ /**
10978
+ * ContentPartPayload
10979
+ * @description HTTP/WebSocket shape for a modality-neutral conversation content part.
10980
+ */
10981
+ ContentPartPayload: {
10982
+ /** Media Type */
10983
+ media_type?: string | null;
10984
+ /** Metadata */
10985
+ metadata?: {
10986
+ [key: string]: unknown;
10987
+ };
10988
+ /** Provider Id */
10989
+ provider_id?: string | null;
10990
+ /** Text */
10991
+ text?: string | null;
10992
+ /**
10993
+ * Type
10994
+ * @default text
10995
+ */
10996
+ type?: string;
10997
+ /** Url */
10998
+ url?: string | null;
10999
+ };
10885
11000
  /** ContextGraphResponse */
10886
11001
  ContextGraphResponse: {
10887
11002
  /**
@@ -11072,7 +11187,10 @@ export interface components {
11072
11187
  final_state?: string | null;
11073
11188
  /** Has Recording */
11074
11189
  has_recording?: boolean | null;
11075
- /** Id */
11190
+ /**
11191
+ * Id
11192
+ * Format: uuid
11193
+ */
11076
11194
  id: string;
11077
11195
  /** Phone Number */
11078
11196
  phone_number?: string | null;
@@ -11162,6 +11280,11 @@ export interface components {
11162
11280
  * @enum {string}
11163
11281
  */
11164
11282
  status: "active" | "frozen" | "closed";
11283
+ /**
11284
+ * Turn Count
11285
+ * @default 0
11286
+ */
11287
+ turn_count?: number;
11165
11288
  /** Version */
11166
11289
  version: number;
11167
11290
  /**
@@ -11178,6 +11301,8 @@ export interface components {
11178
11301
  provider: components["schemas"]["ProviderType"];
11179
11302
  /** Provider Thread Id */
11180
11303
  provider_thread_id: string;
11304
+ /** Service Id */
11305
+ service_id?: string | null;
11181
11306
  };
11182
11307
  /** ConversationThreadResponse */
11183
11308
  ConversationThreadResponse: {
@@ -11198,6 +11323,8 @@ export interface components {
11198
11323
  provider_thread_id: string;
11199
11324
  /** Reactivated */
11200
11325
  reactivated: boolean;
11326
+ /** Service Id */
11327
+ service_id?: string | null;
11201
11328
  /** State */
11202
11329
  state: {
11203
11330
  [key: string]: unknown;
@@ -11207,6 +11334,11 @@ export interface components {
11207
11334
  * @constant
11208
11335
  */
11209
11336
  status: "active";
11337
+ /**
11338
+ * Turn Count
11339
+ * @default 0
11340
+ */
11341
+ turn_count?: number;
11210
11342
  /** Version */
11211
11343
  version: number;
11212
11344
  /**
@@ -11238,6 +11370,11 @@ export interface components {
11238
11370
  };
11239
11371
  /** ConversationTurn */
11240
11372
  ConversationTurn: {
11373
+ /**
11374
+ * Content
11375
+ * @default []
11376
+ */
11377
+ content?: components["schemas"]["ContentPartPayload"][];
11241
11378
  /**
11242
11379
  * Role
11243
11380
  * @enum {string}
@@ -11472,9 +11609,17 @@ export interface components {
11472
11609
  };
11473
11610
  /** CreateConversationRequest */
11474
11611
  CreateConversationRequest: {
11612
+ /**
11613
+ * Auto Greet
11614
+ * @default true
11615
+ */
11616
+ auto_greet?: boolean;
11475
11617
  /** Entity Id */
11476
11618
  entity_id?: string | null;
11477
- /** Service Id */
11619
+ /**
11620
+ * Service Id
11621
+ * Format: uuid
11622
+ */
11478
11623
  service_id: string;
11479
11624
  };
11480
11625
  /** CreateCustomerRequest */
@@ -11565,7 +11710,7 @@ export interface components {
11565
11710
  * Endpoints
11566
11711
  * @default []
11567
11712
  */
11568
- endpoints?: components["schemas"]["EndpointConfig"][];
11713
+ endpoints?: components["schemas"]["EndpointConfig-Input"][];
11569
11714
  /** Mcp Args */
11570
11715
  mcp_args?: string[] | null;
11571
11716
  /** Mcp Command */
@@ -13775,7 +13920,81 @@ export interface components {
13775
13920
  * EndpointConfig
13776
13921
  * @description Configuration for a single integration endpoint.
13777
13922
  */
13778
- EndpointConfig: {
13923
+ "EndpointConfig-Input": {
13924
+ auth?: components["schemas"]["AuthConfig"] | null;
13925
+ /** Base Url */
13926
+ base_url?: string | null;
13927
+ /**
13928
+ * Body Format
13929
+ * @default json
13930
+ * @enum {string}
13931
+ */
13932
+ body_format?: "json" | "form";
13933
+ /** Description */
13934
+ description: string;
13935
+ /**
13936
+ * Headers
13937
+ * @default {}
13938
+ */
13939
+ headers?: {
13940
+ [key: string]: string;
13941
+ };
13942
+ /**
13943
+ * Input Schema
13944
+ * @default {}
13945
+ */
13946
+ input_schema?: {
13947
+ [key: string]: unknown;
13948
+ };
13949
+ /**
13950
+ * Max Result Length
13951
+ * @default 0
13952
+ */
13953
+ max_result_length?: number;
13954
+ /**
13955
+ * Method
13956
+ * @default POST
13957
+ * @enum {string}
13958
+ */
13959
+ method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
13960
+ /** Name */
13961
+ name: string;
13962
+ /** Path */
13963
+ path: string;
13964
+ /** Response Filter */
13965
+ response_filter?: string[] | null;
13966
+ /** Response Mapping */
13967
+ response_mapping?: {
13968
+ [key: string]: string;
13969
+ } | null;
13970
+ /**
13971
+ * Result Delivery
13972
+ * @default interrupt
13973
+ * @enum {string}
13974
+ */
13975
+ result_delivery?: "interrupt" | "queue";
13976
+ /** Result Key */
13977
+ result_key?: string | null;
13978
+ /** Result Template */
13979
+ result_template?: string | null;
13980
+ /**
13981
+ * @default {
13982
+ * "max_retries": 2,
13983
+ * "retry_on_status": [
13984
+ * 429,
13985
+ * 502,
13986
+ * 503,
13987
+ * 504
13988
+ * ]
13989
+ * }
13990
+ */
13991
+ retry_config?: components["schemas"]["RetryConfig"];
13992
+ };
13993
+ /**
13994
+ * EndpointConfig
13995
+ * @description Configuration for a single integration endpoint.
13996
+ */
13997
+ "EndpointConfig-Output": {
13779
13998
  auth?: components["schemas"]["AuthConfig"] | null;
13780
13999
  /** Base Url */
13781
14000
  base_url?: string | null;
@@ -14740,6 +14959,35 @@ export interface components {
14740
14959
  /** Sources */
14741
14960
  sources: string[];
14742
14961
  };
14962
+ /**
14963
+ * ExchangeHeaderMapping
14964
+ * @description One header on a token-exchange request, sourced from a request param.
14965
+ *
14966
+ * Used by ``bearer_token_exchange`` auth type. Each mapping declares which
14967
+ * request param feeds which exchange-call header. The same param values
14968
+ * also form the per-call cache key, so distinct (e.g.) user_ids yield
14969
+ * distinct cached tokens.
14970
+ *
14971
+ * Examples:
14972
+ * ``ExchangeHeaderMapping(header_name="X-USER-ID", param_name="user_id")``
14973
+ * ``ExchangeHeaderMapping(header_name="X-Org-ID", param_name="org_id")``
14974
+ */
14975
+ ExchangeHeaderMapping: {
14976
+ /**
14977
+ * Consume
14978
+ * @default true
14979
+ */
14980
+ consume?: boolean;
14981
+ /** Header Name */
14982
+ header_name: string;
14983
+ /** Param Name */
14984
+ param_name: string;
14985
+ /**
14986
+ * Required
14987
+ * @default true
14988
+ */
14989
+ required?: boolean;
14990
+ };
14743
14991
  /** ExecutePanelRequest */
14744
14992
  ExecutePanelRequest: {
14745
14993
  /**
@@ -14871,6 +15119,8 @@ export interface components {
14871
15119
  bundle: {
14872
15120
  [key: string]: unknown;
14873
15121
  };
15122
+ /** Data Source Id */
15123
+ data_source_id?: string | null;
14874
15124
  /**
14875
15125
  * Source
14876
15126
  * @default fhir_import
@@ -15294,6 +15544,8 @@ export interface components {
15294
15544
  data: {
15295
15545
  [key: string]: unknown;
15296
15546
  };
15547
+ /** Data Source Id */
15548
+ data_source_id?: string | null;
15297
15549
  };
15298
15550
  /** FieldSaveRequest */
15299
15551
  FieldSaveRequest: {
@@ -16237,7 +16489,7 @@ export interface components {
16237
16489
  * Endpoints
16238
16490
  * @description Configured endpoints
16239
16491
  */
16240
- endpoints?: components["schemas"]["EndpointConfig"][];
16492
+ endpoints?: components["schemas"]["EndpointConfig-Output"][];
16241
16493
  /**
16242
16494
  * Id
16243
16495
  * @description Integration ID
@@ -16371,7 +16623,7 @@ export interface components {
16371
16623
  * Endpoints
16372
16624
  * @default []
16373
16625
  */
16374
- endpoints?: components["schemas"]["EndpointConfig"][];
16626
+ endpoints?: components["schemas"]["EndpointConfig-Output"][];
16375
16627
  /** Id */
16376
16628
  id: string;
16377
16629
  /** Mcp Args */
@@ -16626,6 +16878,11 @@ export interface components {
16626
16878
  /**
16627
16879
  * InvoiceLineItem
16628
16880
  * @description A single line item on an invoice.
16881
+ *
16882
+ * ``metering_source`` defaults to ``"production"`` for backward
16883
+ * compatibility with invoices generated before the metering_source
16884
+ * dimension was introduced — those invoices were production-only by
16885
+ * definition. New invoices always carry an explicit value.
16629
16886
  */
16630
16887
  InvoiceLineItem: {
16631
16888
  /**
@@ -16639,6 +16896,13 @@ export interface components {
16639
16896
  * @description Meter identifier
16640
16897
  */
16641
16898
  meter_key: string;
16899
+ /**
16900
+ * Metering Source
16901
+ * @description Traffic class
16902
+ * @default production
16903
+ * @enum {string}
16904
+ */
16905
+ metering_source?: "production" | "simulation";
16642
16906
  /**
16643
16907
  * Quantity
16644
16908
  * @description Usage quantity
@@ -17080,6 +17344,13 @@ export interface components {
17080
17344
  * @description Unique meter identifier (e.g. voice_minutes)
17081
17345
  */
17082
17346
  meter_key: string;
17347
+ /**
17348
+ * Metering Source
17349
+ * @description Traffic class — production or simulation, billed separately
17350
+ * @default production
17351
+ * @enum {string}
17352
+ */
17353
+ metering_source?: "production" | "simulation";
17083
17354
  /**
17084
17355
  * Unit
17085
17356
  * @description Unit of measurement (e.g. minutes, calls)
@@ -17110,6 +17381,13 @@ export interface components {
17110
17381
  * @description Meter identifier
17111
17382
  */
17112
17383
  meter_key: string;
17384
+ /**
17385
+ * Metering Source
17386
+ * @description Traffic class
17387
+ * @default production
17388
+ * @enum {string}
17389
+ */
17390
+ metering_source?: "production" | "simulation";
17113
17391
  /**
17114
17392
  * Period End
17115
17393
  * @description Period end (ISO-8601)
@@ -17138,21 +17416,26 @@ export interface components {
17138
17416
  };
17139
17417
  /** MeteringEmitRequest */
17140
17418
  MeteringEmitRequest: {
17141
- /** Event Type */
17142
- event_type: string;
17143
17419
  /**
17144
- * Metering Metadata
17145
- * @description Optional audit/dispute breadcrumbs.
17420
+ * Effective At
17421
+ * @description When the event happened. Defaults to ingest time.
17146
17422
  */
17423
+ effective_at?: string | null;
17424
+ /** Event Type */
17425
+ event_type: string;
17426
+ /** Metering Metadata */
17147
17427
  metering_metadata?: {
17148
17428
  [key: string]: unknown;
17149
17429
  } | null;
17150
17430
  /** Metering Quantity */
17151
17431
  metering_quantity: number;
17152
17432
  /**
17153
- * Metering Unit
17154
- * @description Optional unit string ('pages', 'minutes', 'tokens') describing what metering_quantity represents.
17433
+ * Metering Source
17434
+ * @description Traffic class 'production' or 'simulation'.
17435
+ * @enum {string}
17155
17436
  */
17437
+ metering_source: "production" | "simulation";
17438
+ /** Metering Unit */
17156
17439
  metering_unit?: string | null;
17157
17440
  };
17158
17441
  /** MetricCatalogEntry */
@@ -21255,6 +21538,8 @@ export interface components {
21255
21538
  status: "running" | "completed" | "failed";
21256
21539
  /** Tags */
21257
21540
  tags?: string[];
21541
+ /** Total Scenarios Requested */
21542
+ total_scenarios_requested?: number | null;
21258
21543
  /**
21259
21544
  * Total Sessions
21260
21545
  * @default 0
@@ -21824,6 +22109,78 @@ export interface components {
21824
22109
  [key: string]: unknown;
21825
22110
  }[] | null;
21826
22111
  };
22112
+ /** StartSessionRequest */
22113
+ StartSessionRequest: {
22114
+ /**
22115
+ * Channel Kind
22116
+ * @enum {string}
22117
+ */
22118
+ channel_kind: "sms" | "whatsapp" | "web";
22119
+ /**
22120
+ * Entity Id
22121
+ * Format: uuid
22122
+ */
22123
+ entity_id: string;
22124
+ /**
22125
+ * Greeting
22126
+ * @description Custom greeting. Agent auto-greets if omitted.
22127
+ */
22128
+ greeting?: string | null;
22129
+ /**
22130
+ * Idempotency Key
22131
+ * @description Client-provided idempotency key for SMS/WhatsApp.
22132
+ */
22133
+ idempotency_key?: string | null;
22134
+ /**
22135
+ * Phone To
22136
+ * @description E.164 phone override for SMS/WhatsApp. Resolved from entity if omitted.
22137
+ */
22138
+ phone_to?: string | null;
22139
+ /**
22140
+ * Service Id
22141
+ * Format: uuid
22142
+ */
22143
+ service_id: string;
22144
+ /**
22145
+ * Surface Id
22146
+ * @description Surface to deliver inline in the conversation.
22147
+ */
22148
+ surface_id?: string | null;
22149
+ };
22150
+ /** StartSessionResponse */
22151
+ StartSessionResponse: {
22152
+ /**
22153
+ * Channel Kind
22154
+ * @enum {string}
22155
+ */
22156
+ channel_kind: "sms" | "whatsapp" | "web";
22157
+ /**
22158
+ * Conversation Id
22159
+ * Format: uuid
22160
+ */
22161
+ conversation_id: string;
22162
+ /** Created At */
22163
+ created_at: string;
22164
+ /**
22165
+ * Entity Id
22166
+ * Format: uuid
22167
+ */
22168
+ entity_id: string;
22169
+ /** Phone From */
22170
+ phone_from?: string | null;
22171
+ /** Phone To */
22172
+ phone_to?: string | null;
22173
+ /**
22174
+ * Service Id
22175
+ * Format: uuid
22176
+ */
22177
+ service_id: string;
22178
+ /**
22179
+ * Session Status
22180
+ * @enum {string}
22181
+ */
22182
+ session_status: "created" | "resumed" | "already_active";
22183
+ };
21827
22184
  /**
21828
22185
  * StateRiskOverride
21829
22186
  * @description Per-state escalation tuning. Stored on ActionState.
@@ -23797,18 +24154,60 @@ export interface components {
23797
24154
  };
23798
24155
  /** TurnConversationSnapshot */
23799
24156
  TurnConversationSnapshot: {
23800
- /** Id */
24157
+ /**
24158
+ * Id
24159
+ * Format: uuid
24160
+ */
23801
24161
  id: string;
23802
24162
  /**
23803
24163
  * Status
23804
24164
  * @enum {string}
23805
24165
  */
23806
24166
  status: "active" | "frozen" | "closed" | "completed" | "in-progress" | "failed";
23807
- /** Turn Count */
23808
- turn_count: number;
24167
+ /**
24168
+ * Turn Count
24169
+ * @default 0
24170
+ */
24171
+ turn_count?: number;
23809
24172
  /** Updated At */
23810
24173
  updated_at: string;
23811
24174
  };
24175
+ /** TurnDoneEvent */
24176
+ TurnDoneEvent: {
24177
+ /** Conversation Id */
24178
+ conversation_id: string;
24179
+ /**
24180
+ * @description discriminator enum property added by openapi-typescript
24181
+ * @enum {string}
24182
+ */
24183
+ event: "done";
24184
+ /** Status */
24185
+ status: string;
24186
+ /** Turn Count */
24187
+ turn_count: number;
24188
+ };
24189
+ /** TurnErrorEvent */
24190
+ TurnErrorEvent: {
24191
+ /**
24192
+ * @description discriminator enum property added by openapi-typescript
24193
+ * @enum {string}
24194
+ */
24195
+ event: "error";
24196
+ /** Message */
24197
+ message: string;
24198
+ };
24199
+ /** TurnMessageEvent */
24200
+ TurnMessageEvent: {
24201
+ /**
24202
+ * @description discriminator enum property added by openapi-typescript
24203
+ * @enum {string}
24204
+ */
24205
+ event: "message";
24206
+ /** Role */
24207
+ role: string;
24208
+ /** Text */
24209
+ text: string;
24210
+ };
23812
24211
  /**
23813
24212
  * TurnPolicy
23814
24213
  * @description Voice pipeline parameters declared per HSM state.
@@ -23865,6 +24264,12 @@ export interface components {
23865
24264
  };
23866
24265
  /** TurnRequest */
23867
24266
  TurnRequest: {
24267
+ /** Content */
24268
+ content?: components["schemas"]["ContentPartPayload"][] | null;
24269
+ /** Media Type */
24270
+ media_type?: string | null;
24271
+ /** Media Url */
24272
+ media_url?: string | null;
23868
24273
  /** Message */
23869
24274
  message: string;
23870
24275
  };
@@ -23882,6 +24287,19 @@ export interface components {
23882
24287
  /** Turn Id */
23883
24288
  turn_id: string;
23884
24289
  };
24290
+ TurnStreamEvent: components["schemas"]["TurnTokenEvent"] | components["schemas"]["TurnToolCallStartedEvent"] | components["schemas"]["TurnToolCallCompletedEvent"] | components["schemas"]["TurnThinkingEvent"] | components["schemas"]["TurnMessageEvent"] | components["schemas"]["TurnDoneEvent"] | components["schemas"]["TurnErrorEvent"];
24291
+ /** TurnThinkingEvent */
24292
+ TurnThinkingEvent: {
24293
+ /**
24294
+ * @description discriminator enum property added by openapi-typescript
24295
+ * @enum {string}
24296
+ */
24297
+ event: "thinking";
24298
+ /** Tier */
24299
+ tier: number;
24300
+ /** Tier Name */
24301
+ tier_name: string;
24302
+ };
23885
24303
  /** TurnTimeline */
23886
24304
  TurnTimeline: {
23887
24305
  /** Active End */
@@ -23893,6 +24311,46 @@ export interface components {
23893
24311
  /** Turn Index */
23894
24312
  turn_index: number;
23895
24313
  };
24314
+ /** TurnTokenEvent */
24315
+ TurnTokenEvent: {
24316
+ /**
24317
+ * @description discriminator enum property added by openapi-typescript
24318
+ * @enum {string}
24319
+ */
24320
+ event: "token";
24321
+ /** Text */
24322
+ text: string;
24323
+ };
24324
+ /** TurnToolCallCompletedEvent */
24325
+ TurnToolCallCompletedEvent: {
24326
+ /** Call Id */
24327
+ call_id: string;
24328
+ /**
24329
+ * @description discriminator enum property added by openapi-typescript
24330
+ * @enum {string}
24331
+ */
24332
+ event: "tool_call_completed";
24333
+ /** Result */
24334
+ result: string;
24335
+ /** Succeeded */
24336
+ succeeded: boolean;
24337
+ /** Tool Name */
24338
+ tool_name: string;
24339
+ };
24340
+ /** TurnToolCallStartedEvent */
24341
+ TurnToolCallStartedEvent: {
24342
+ /** Call Id */
24343
+ call_id: string;
24344
+ /**
24345
+ * @description discriminator enum property added by openapi-typescript
24346
+ * @enum {string}
24347
+ */
24348
+ event: "tool_call_started";
24349
+ /** Input */
24350
+ input: string;
24351
+ /** Tool Name */
24352
+ tool_name: string;
24353
+ };
23896
24354
  /** UnificationRuleResponse */
23897
24355
  UnificationRuleResponse: {
23898
24356
  /** Accuracy */
@@ -24034,7 +24492,7 @@ export interface components {
24034
24492
  /** Enabled */
24035
24493
  enabled?: boolean | null;
24036
24494
  /** Endpoints */
24037
- endpoints?: components["schemas"]["EndpointConfig"][] | null;
24495
+ endpoints?: components["schemas"]["EndpointConfig-Input"][] | null;
24038
24496
  /** Mcp Args */
24039
24497
  mcp_args?: string[] | null;
24040
24498
  /** Mcp Command */
@@ -24419,6 +24877,13 @@ export interface components {
24419
24877
  * @description Meter identifier
24420
24878
  */
24421
24879
  meter_key: string;
24880
+ /**
24881
+ * Metering Source
24882
+ * @description Traffic class
24883
+ * @default production
24884
+ * @enum {string}
24885
+ */
24886
+ metering_source?: "production" | "simulation";
24422
24887
  /**
24423
24888
  * Period End
24424
24889
  * @description Period end date (ISO-8601)
@@ -25373,6 +25838,20 @@ export interface components {
25373
25838
  /** Role */
25374
25839
  role: string;
25375
25840
  };
25841
+ /** WorkspaceMemberRoleUpdatedEvent */
25842
+ WorkspaceMemberRoleUpdatedEvent: {
25843
+ /** Entity Id */
25844
+ entity_id: string;
25845
+ /**
25846
+ * @description discriminator enum property added by openapi-typescript
25847
+ * @enum {string}
25848
+ */
25849
+ event_type: "workspace.member_role_updated";
25850
+ /** Previous Role */
25851
+ previous_role: string;
25852
+ /** Role */
25853
+ role: string;
25854
+ };
25376
25855
  /** WorkspaceResponse */
25377
25856
  WorkspaceResponse: {
25378
25857
  /** Backend Org Id */
@@ -25402,7 +25881,7 @@ export interface components {
25402
25881
  */
25403
25882
  updated_at: string;
25404
25883
  };
25405
- 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"]["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"];
25884
+ 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"];
25406
25885
  /** WorldDashboardResponse */
25407
25886
  WorldDashboardResponse: {
25408
25887
  /** Avg Confidence */
@@ -25614,7 +26093,10 @@ export interface components {
25614
26093
  final_state?: string | null;
25615
26094
  /** Has Recording */
25616
26095
  has_recording?: boolean | null;
25617
- /** Id */
26096
+ /**
26097
+ * Id
26098
+ * Format: uuid
26099
+ */
25618
26100
  id: string;
25619
26101
  /** Phone Number */
25620
26102
  phone_number?: string | null;
@@ -30681,6 +31163,7 @@ export interface operations {
30681
31163
  };
30682
31164
  content: {
30683
31165
  "application/json": components["schemas"]["TurnResponse"];
31166
+ "text/event-stream": components["schemas"]["TurnStreamEvent"];
30684
31167
  };
30685
31168
  };
30686
31169
  /** @description Validation Error */
@@ -33633,6 +34116,53 @@ export interface operations {
33633
34116
  };
33634
34117
  };
33635
34118
  };
34119
+ "download-intake-upload": {
34120
+ parameters: {
34121
+ query?: never;
34122
+ header?: never;
34123
+ path: {
34124
+ link_id: string;
34125
+ upload_id: string;
34126
+ workspace_id: string;
34127
+ };
34128
+ cookie?: never;
34129
+ };
34130
+ requestBody?: never;
34131
+ responses: {
34132
+ /** @description File bytes with Content-Disposition: attachment */
34133
+ 200: {
34134
+ headers: {
34135
+ [name: string]: unknown;
34136
+ };
34137
+ content: {
34138
+ "application/octet-stream": string;
34139
+ };
34140
+ };
34141
+ /** @description Link, upload, or file not found */
34142
+ 404: {
34143
+ headers: {
34144
+ [name: string]: unknown;
34145
+ };
34146
+ content?: never;
34147
+ };
34148
+ /** @description Validation Error */
34149
+ 422: {
34150
+ headers: {
34151
+ [name: string]: unknown;
34152
+ };
34153
+ content: {
34154
+ "application/json": components["schemas"]["HTTPValidationError"];
34155
+ };
34156
+ };
34157
+ /** @description UC Volume storage backend unavailable */
34158
+ 502: {
34159
+ headers: {
34160
+ [name: string]: unknown;
34161
+ };
34162
+ content?: never;
34163
+ };
34164
+ };
34165
+ };
33636
34166
  "list-integrations": {
33637
34167
  parameters: {
33638
34168
  query?: {
@@ -38723,6 +39253,60 @@ export interface operations {
38723
39253
  };
38724
39254
  };
38725
39255
  };
39256
+ start_text_session_v1__workspace_id__sessions_start_post: {
39257
+ parameters: {
39258
+ query?: never;
39259
+ header?: never;
39260
+ path: {
39261
+ workspace_id: string;
39262
+ };
39263
+ cookie?: never;
39264
+ };
39265
+ requestBody: {
39266
+ content: {
39267
+ "application/json": components["schemas"]["StartSessionRequest"];
39268
+ };
39269
+ };
39270
+ responses: {
39271
+ /** @description Successful Response */
39272
+ 201: {
39273
+ headers: {
39274
+ [name: string]: unknown;
39275
+ };
39276
+ content: {
39277
+ "application/json": components["schemas"]["StartSessionResponse"];
39278
+ };
39279
+ };
39280
+ /** @description Service or entity not found. */
39281
+ 404: {
39282
+ headers: {
39283
+ [name: string]: unknown;
39284
+ };
39285
+ content?: never;
39286
+ };
39287
+ /** @description No outbound-capable phone number in workspace. */
39288
+ 409: {
39289
+ headers: {
39290
+ [name: string]: unknown;
39291
+ };
39292
+ content?: never;
39293
+ };
39294
+ /** @description Entity has no phone for SMS/WhatsApp channel. */
39295
+ 422: {
39296
+ headers: {
39297
+ [name: string]: unknown;
39298
+ };
39299
+ content?: never;
39300
+ };
39301
+ /** @description Agent service unavailable. */
39302
+ 503: {
39303
+ headers: {
39304
+ [name: string]: unknown;
39305
+ };
39306
+ content?: never;
39307
+ };
39308
+ };
39309
+ };
38726
39310
  inject_session_event_v1__workspace_id__sessions__call_sid__inject_post: {
38727
39311
  parameters: {
38728
39312
  query?: never;