@opencx/mcp 1.15.61 → 1.15.63

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.
package/dist/schema.d.ts CHANGED
@@ -135,6 +135,26 @@ export interface paths {
135
135
  patch?: never;
136
136
  trace?: never;
137
137
  };
138
+ "/agent-availability/me/wrap-up/ready": {
139
+ parameters: {
140
+ query?: never;
141
+ header?: never;
142
+ path?: never;
143
+ cookie?: never;
144
+ };
145
+ get?: never;
146
+ put?: never;
147
+ /**
148
+ * Finish your wrap-up for a closed phone session
149
+ * @description End only the authenticated teammate’s wrap-up for the supplied closed phone session. Requires a user-bound token. Does not close the session, change availability, or clear wrap-up belonging to another session. Returns cleared=false when no matching wrap-up remains.
150
+ */
151
+ post: operations["finishSessionWrapUp"];
152
+ delete?: never;
153
+ options?: never;
154
+ head?: never;
155
+ patch?: never;
156
+ trace?: never;
157
+ };
138
158
  "/agent-availability/{userId}": {
139
159
  parameters: {
140
160
  query?: never;
@@ -2095,6 +2115,50 @@ export interface paths {
2095
2115
  patch?: never;
2096
2116
  trace?: never;
2097
2117
  };
2118
+ "/macros/suggestion-insights": {
2119
+ parameters: {
2120
+ query?: never;
2121
+ header?: never;
2122
+ path?: never;
2123
+ cookie?: never;
2124
+ };
2125
+ /**
2126
+ * List macro suggestion insights
2127
+ * @description How each org-wide macro is doing as a suggestion over the last 30 days: how often it was shown, used from the suggestions, or reached for by search instead, and the state it is in (`learning`, `steady`, `proven`, `muted`, or `off` when the macro is excluded or suggestions are off). Pass `include_weekly=true` for 12 weekly counts per macro. Macros excluded from suggestions with no activity in the last 30 days are left out.
2128
+ */
2129
+ get: operations["listMacroSuggestionInsights"];
2130
+ put?: never;
2131
+ post?: never;
2132
+ delete?: never;
2133
+ options?: never;
2134
+ head?: never;
2135
+ patch?: never;
2136
+ trace?: never;
2137
+ };
2138
+ "/macros/settings": {
2139
+ parameters: {
2140
+ query?: never;
2141
+ header?: never;
2142
+ path?: never;
2143
+ cookie?: never;
2144
+ };
2145
+ /**
2146
+ * Get macro settings
2147
+ * @description The macro settings: the languages every org-wide macro is translated into (`translation_languages`, empty when translation is off), the most that can be chosen, the language codes that can be chosen, and whether suggested macros are on for the workspace.
2148
+ */
2149
+ get: operations["getMacroSettings"];
2150
+ /**
2151
+ * Update macro settings
2152
+ * @description Choose the languages every org-wide macro is translated into. Choosing a language translates every org-wide macro into it; languages that are already chosen are not translated again. Translations are read-only generated copies: edit the macro and they refresh. Variables are never translated. Whether suggested macros are on for the workspace is read-only here (`suggestions_enabled` in the response); it is changed in Settings → Workspace. Returns the new settings.
2153
+ */
2154
+ put: operations["updateMacroSettings"];
2155
+ post?: never;
2156
+ delete?: never;
2157
+ options?: never;
2158
+ head?: never;
2159
+ patch?: never;
2160
+ trace?: never;
2161
+ };
2098
2162
  "/macros/{id}": {
2099
2163
  parameters: {
2100
2164
  query?: never;
@@ -2123,6 +2187,66 @@ export interface paths {
2123
2187
  patch: operations["updateMacro"];
2124
2188
  trace?: never;
2125
2189
  };
2190
+ "/macros/{id}/suggestion-insights": {
2191
+ parameters: {
2192
+ query?: never;
2193
+ header?: never;
2194
+ path?: never;
2195
+ cookie?: never;
2196
+ };
2197
+ /**
2198
+ * Get macro suggestion insights
2199
+ * @description How one org-wide macro is doing as a suggestion over the last 30 days, with 12 weekly counts: shown, used from the suggestions, reached for by search instead, hit rate, the bar it has to clear, and its state (`learning`, `steady`, `proven`, `muted`, or `off`).
2200
+ */
2201
+ get: operations["getMacroSuggestionInsights"];
2202
+ put?: never;
2203
+ post?: never;
2204
+ delete?: never;
2205
+ options?: never;
2206
+ head?: never;
2207
+ patch?: never;
2208
+ trace?: never;
2209
+ };
2210
+ "/macros/{id}/translations": {
2211
+ parameters: {
2212
+ query?: never;
2213
+ header?: never;
2214
+ path?: never;
2215
+ cookie?: never;
2216
+ };
2217
+ /**
2218
+ * Get macro translations
2219
+ * @description One org-wide macro's translation into each selected language: its `status` (`ready`, `pending` while it is being translated or after the macro changed, or `failed`) and the translated `title`, `content` and option labels, which are empty until the translation is ready. `source_language` is the language the macro itself is written in, which gets no translation. Translations are read-only generated copies: edit the macro and they refresh. Personal macros are not included.
2220
+ */
2221
+ get: operations["getMacroTranslations"];
2222
+ put?: never;
2223
+ post?: never;
2224
+ delete?: never;
2225
+ options?: never;
2226
+ head?: never;
2227
+ patch?: never;
2228
+ trace?: never;
2229
+ };
2230
+ "/macros/{id}/translations/retranslate": {
2231
+ parameters: {
2232
+ query?: never;
2233
+ header?: never;
2234
+ path?: never;
2235
+ cookie?: never;
2236
+ };
2237
+ get?: never;
2238
+ put?: never;
2239
+ /**
2240
+ * Retranslate a macro
2241
+ * @description Translate one org-wide macro again into the listed languages, or into every selected language when `languages` is left out (failed ones included). Send `{}` to redo every selected language. Returns the languages now waiting. Fails with 400 when no translation languages are selected (see `updateMacroSettings`), when a listed language is not one of them, or when the macro has no translation in a listed language (such as its own).
2242
+ */
2243
+ post: operations["retranslateMacro"];
2244
+ delete?: never;
2245
+ options?: never;
2246
+ head?: never;
2247
+ patch?: never;
2248
+ trace?: never;
2249
+ };
2126
2250
  "/skills": {
2127
2251
  parameters: {
2128
2252
  query?: never;
@@ -3115,12 +3239,12 @@ export interface paths {
3115
3239
  };
3116
3240
  /**
3117
3241
  * Get phone agent knowledge-source tree
3118
- * @description Returns independently configurable instruction and knowledge search scopes.
3242
+ * @description Returns the instructions and knowledge the agent can use, which of them are selected, and how the agent gets them during calls. An agent only uses what is selected.
3119
3243
  */
3120
3244
  get: operations["getPhoneAgentKnowledgeSources"];
3121
3245
  /**
3122
3246
  * Update phone agent knowledge sources
3123
- * @description Set independent instruction and knowledge search scopes. Use all mode with empty selections to search all eligible sources.
3247
+ * @description Select the instructions and knowledge the agent can use. Nothing else reaches the agent: an empty list means none. New items inside a selected folder are included; new folders and items outside selected folders are not. When the selection fits, the agent loads it at the start of each call; otherwise it searches it during calls.
3124
3248
  */
3125
3249
  put: operations["updatePhoneAgentKnowledgeSources"];
3126
3250
  post?: never;
@@ -3262,6 +3386,70 @@ export interface paths {
3262
3386
  patch?: never;
3263
3387
  trace?: never;
3264
3388
  };
3389
+ "/phone/web-calls": {
3390
+ parameters: {
3391
+ query?: never;
3392
+ header?: never;
3393
+ path?: never;
3394
+ cookie?: never;
3395
+ };
3396
+ get?: never;
3397
+ put?: never;
3398
+ /**
3399
+ * Create an app voice call
3400
+ * @description Server-only. Requires phone:write and enabled Voice SDK access. Authenticate the customer before choosing their contact and destination. Return these temporary credentials only to that customer.
3401
+ */
3402
+ post: operations["createWebCall"];
3403
+ delete?: never;
3404
+ options?: never;
3405
+ head?: never;
3406
+ patch?: never;
3407
+ trace?: never;
3408
+ };
3409
+ "/phone/web-calls/{callId}/connect": {
3410
+ parameters: {
3411
+ query?: never;
3412
+ header?: never;
3413
+ path?: never;
3414
+ cookie?: never;
3415
+ };
3416
+ get?: never;
3417
+ put?: never;
3418
+ /**
3419
+ * Start a connected app voice call
3420
+ * @description SDK call. Authorize with the call controlToken, after publishing microphone audio. Repeated activation does not start another call.
3421
+ */
3422
+ post: operations["connectWebCall"];
3423
+ delete?: never;
3424
+ options?: never;
3425
+ head?: never;
3426
+ patch?: never;
3427
+ trace?: never;
3428
+ };
3429
+ "/phone/web-calls/{callId}": {
3430
+ parameters: {
3431
+ query?: never;
3432
+ header?: never;
3433
+ path?: never;
3434
+ cookie?: never;
3435
+ };
3436
+ /**
3437
+ * Get app voice call status
3438
+ * @description Authorize with this call’s controlToken.
3439
+ */
3440
+ get: operations["getWebCall"];
3441
+ put?: never;
3442
+ post?: never;
3443
+ /**
3444
+ * End an app voice call
3445
+ * @description Authorize with this call’s controlToken. Ends all participants in this call. Repeated requests are safe.
3446
+ */
3447
+ delete: operations["endWebCall"];
3448
+ options?: never;
3449
+ head?: never;
3450
+ patch?: never;
3451
+ trace?: never;
3452
+ };
3265
3453
  "/redaction/message": {
3266
3454
  parameters: {
3267
3455
  query?: never;
@@ -5167,6 +5355,26 @@ export interface paths {
5167
5355
  patch?: never;
5168
5356
  trace?: never;
5169
5357
  };
5358
+ "/widget/authenticate-user-by-phone": {
5359
+ parameters: {
5360
+ query?: never;
5361
+ header?: never;
5362
+ path?: never;
5363
+ cookie?: never;
5364
+ };
5365
+ get?: never;
5366
+ put?: never;
5367
+ /**
5368
+ * Authenticate a widget user by phone number
5369
+ * @description Returns a token for the contact with this phone number, creating the contact when none exists. When several contacts share the number, the oldest one is used.
5370
+ */
5371
+ post: operations["authenticateWidgetUserByPhone"];
5372
+ delete?: never;
5373
+ options?: never;
5374
+ head?: never;
5375
+ patch?: never;
5376
+ trace?: never;
5377
+ };
5170
5378
  "/test": {
5171
5379
  parameters: {
5172
5380
  query?: never;
@@ -6948,6 +7156,9 @@ export interface components {
6948
7156
  } | null;
6949
7157
  /** @enum {string} */
6950
7158
  PhoneHandoffReason: "ai_initiated" | "no_agent_assigned" | "agent_unavailable" | "caller_requested" | "timeout" | "unknown";
7159
+ RetranslateMacroDto: {
7160
+ languages?: string[];
7161
+ };
6951
7162
  CreateStructuredFieldGroupDto: {
6952
7163
  name: string;
6953
7164
  description?: string | null;
@@ -7169,6 +7380,27 @@ export interface components {
7169
7380
  /** @description Seconds between automatic assignments to the same agent under the least-busy strategy: 0 turns pacing off, otherwise 15 to 3600. */
7170
7381
  auto_assign_interval_seconds?: number;
7171
7382
  };
7383
+ CreateWebCallDto: {
7384
+ /**
7385
+ * Format: uuid
7386
+ * @description Reuse for retries of the same call creation request.
7387
+ */
7388
+ requestId: string;
7389
+ /** @description Verified contact belonging to your organization. Resolve this on your server. */
7390
+ contactId: string;
7391
+ destination: {
7392
+ /** @constant */
7393
+ type: "agent";
7394
+ id: string;
7395
+ } | {
7396
+ /** @constant */
7397
+ type: "team";
7398
+ /** Format: uuid */
7399
+ id: string;
7400
+ };
7401
+ /** @default 1800 */
7402
+ maxDurationSeconds: number;
7403
+ };
7172
7404
  /** @enum {string} */
7173
7405
  MiniAppIcon: "ChartBar" | "ChartBarHorizontal" | "ChartLine" | "ChartLineUp" | "ChartPie" | "ChartDonut" | "ChartScatter" | "ChartPolar" | "TrendUp" | "TrendDown" | "Graph" | "Table" | "ListBullets" | "Kanban" | "Funnel" | "Gauge" | "Pulse" | "Percent" | "Calculator" | "Target" | "Crosshair" | "Timer" | "Clock" | "CalendarBlank" | "Users" | "UsersThree" | "User" | "UserCircle" | "IdentificationBadge" | "Headset" | "Handshake" | "Chat" | "ChatsTeardrop" | "Envelope" | "Phone" | "Globe" | "Megaphone" | "PaperPlaneTilt" | "Bell" | "Star" | "Heart" | "Smiley" | "ThumbsUp" | "Warning" | "ShieldCheck" | "Trophy" | "Medal" | "Flag" | "Fire" | "Rocket" | "Lightning" | "Sparkle" | "Robot" | "Brain" | "MagicWand" | "Atom" | "Lightbulb" | "Money" | "CurrencyDollar" | "Coins" | "CreditCard" | "Receipt" | "ShoppingCart" | "Package" | "Truck" | "Storefront" | "Buildings" | "MapPin" | "Tag" | "Bookmark" | "Ticket" | "Database" | "Stack" | "Cube" | "Wrench" | "Gear" | "Flask" | "FileText" | "ClipboardText" | "Notebook" | "SquaresFour" | "TreeStructure" | "Eye" | "Binoculars" | "Compass" | "Scales" | "Question" | "Info";
7174
7406
  CreateMiniAppDto: {
@@ -7221,12 +7453,12 @@ export interface components {
7221
7453
  };
7222
7454
  UpdateKnowledgeSourcesDto: {
7223
7455
  /**
7224
- * @description Explicit instruction scope mode. Omit only for compatibility with older clients.
7456
+ * @description Deprecated; omit. "all" (with empty instructionIds and directoryIds) selects every instruction folder and every instruction outside a folder available now. New folders and new instructions outside a folder are not selected.
7225
7457
  * @enum {string}
7226
7458
  */
7227
7459
  instructionMode?: "all" | "selected";
7228
7460
  /**
7229
- * @description Explicit knowledge scope mode. Omit only for compatibility with older clients.
7461
+ * @description Deprecated; omit. "all" (with empty knowledge selections) selects every knowledge folder available now. New folders are not selected.
7230
7462
  * @enum {string}
7231
7463
  */
7232
7464
  knowledgeMode?: "all" | "selected";
@@ -8363,6 +8595,10 @@ export interface components {
8363
8595
  chat_context?: string;
8364
8596
  http_action_overrides?: components["schemas"]["PublicAPIHttpOverrides"];
8365
8597
  };
8598
+ AuthenticateUserByPhonePayloadDto: {
8599
+ /** @description Phone number including the country code, e.g. +14155550123 */
8600
+ phone: string;
8601
+ };
8366
8602
  SaveContactInput: {
8367
8603
  contact: {
8368
8604
  /** Format: email */
@@ -8666,6 +8902,10 @@ export interface components {
8666
8902
  */
8667
8903
  region?: "eu-west-1" | "us-east-1";
8668
8904
  };
8905
+ UpdateMacroSettingsDto: {
8906
+ /** @description The full list of language codes (lower-case, such as `es`; at most 10, each from `supported_translation_languages`, no repeats) to translate every org-wide macro into. It replaces the current list, so send every language you want to keep. `[]` turns macro translation off. */
8907
+ translation_languages: string[];
8908
+ };
8669
8909
  CreateOfficeHoursPublicDto: {
8670
8910
  /** @description Schedule name (e.g. "Business Hours", "Weekend Support") */
8671
8911
  name: string;
@@ -8814,7 +9054,7 @@ export interface components {
8814
9054
  * @description Sort field (default: last_message_at)
8815
9055
  * @enum {string}
8816
9056
  */
8817
- sort_by?: "last_message_at" | "created_at" | "sla_urgency";
9057
+ sort_by?: "last_message_at" | "created_at" | "sla_urgency" | "snoozed_until";
8818
9058
  /**
8819
9059
  * @description Sort direction (default: desc)
8820
9060
  * @enum {string}
@@ -8824,7 +9064,9 @@ export interface components {
8824
9064
  * @description Group the session list by this field. Omit for a flat list.
8825
9065
  * @enum {string}
8826
9066
  */
8827
- group_by?: "channel" | "assignee_id" | "status" | "ai_closure_type" | "language" | "inbox_id";
9067
+ group_by?: "tags" | "contact_attribute" | "session_attribute" | "channel" | "assignee_id" | "status" | "ai_closure_type" | "language" | "inbox_id";
9068
+ /** @description Exact attribute key for contact_attribute or session_attribute grouping. Missing or empty leaves the list ungrouped. */
9069
+ group_by_attribute?: string;
8828
9070
  /**
8829
9071
  * @description User ids the view is shared with. Leave both share lists empty to share the view with the whole organization. Name users and/or teams to restrict it to them, or pass only your own user id to keep it private. Sharing requires the `sessions-shared-views:write` permission — without it a created view is locked to its creator and the share lists on an update are ignored.
8830
9072
  * @default []
@@ -8897,14 +9139,16 @@ export interface components {
8897
9139
  * @description New sort field
8898
9140
  * @enum {string}
8899
9141
  */
8900
- sort_by?: "last_message_at" | "created_at" | "sla_urgency";
9142
+ sort_by?: "last_message_at" | "created_at" | "sla_urgency" | "snoozed_until";
8901
9143
  /**
8902
9144
  * @description New sort direction
8903
9145
  * @enum {string}
8904
9146
  */
8905
9147
  sort_order?: "asc" | "desc";
8906
9148
  /** @description New grouping field; null removes grouping. Omit to leave it unchanged. */
8907
- group_by?: ("channel" | "assignee_id" | "status" | "ai_closure_type" | "language" | "inbox_id") | null;
9149
+ group_by?: ("tags" | "contact_attribute" | "session_attribute" | "channel" | "assignee_id" | "status" | "ai_closure_type" | "language" | "inbox_id") | null;
9150
+ /** @description Attribute key for attribute grouping. Null clears the key. Omit to preserve it when the grouping field stays the same. */
9151
+ group_by_attribute?: string | null;
8908
9152
  /** @description User ids the view is shared with. Leave both share lists empty to share the view with the whole organization. Name users and/or teams to restrict it to them, or pass only your own user id to keep it private. Sharing requires the `sessions-shared-views:write` permission — without it a created view is locked to its creator and the share lists on an update are ignored. */
8909
9153
  shared_with_user_ids?: number[];
8910
9154
  /** @description Team ids (from GET /teams) whose members can see the view. */
@@ -8994,7 +9238,7 @@ export interface components {
8994
9238
  * @enum {string}
8995
9239
  */
8996
9240
  tts_provider?: "elevenlabs" | "cartesia";
8997
- /** @description ISO-639-1 language codes the agent should speak. A subset of {en, es, fr, de, hi, ru, pt, ja, it, nl} can be combined freely. Any other code (e.g. "ar", "tr", "zh") must be the only entry; Arabic accepts dialect tags such as "ar-SA". */
9241
+ /** @description ISO-639-1 language codes the agent should speak. Supported languages can be combined; Arabic accepts dialect tags such as "ar-SA". */
8998
9242
  language?: string[];
8999
9243
  /** @description What the agent says when it picks up (default: "Hello?") */
9000
9244
  first_message?: string | null;
@@ -9028,7 +9272,7 @@ export interface components {
9028
9272
  * @enum {string}
9029
9273
  */
9030
9274
  tts_provider?: "elevenlabs" | "cartesia";
9031
- /** @description ISO-639-1 language codes the agent should speak. A subset of {en, es, fr, de, hi, ru, pt, ja, it, nl} can be combined freely. Any other code (e.g. "ar", "tr", "zh") must be the only entry; Arabic accepts dialect tags such as "ar-SA". */
9275
+ /** @description ISO-639-1 language codes the agent should speak. Supported languages can be combined; Arabic accepts dialect tags such as "ar-SA". */
9032
9276
  language?: string[];
9033
9277
  /** @description What the agent says when it picks up (default: "Hello?") */
9034
9278
  first_message?: string | null;
@@ -9238,6 +9482,10 @@ export interface components {
9238
9482
  /** @description Additional context about the situation */
9239
9483
  context?: string;
9240
9484
  };
9485
+ FinishSessionWrapUpBodyDto: {
9486
+ /** Format: uuid */
9487
+ session_id: string;
9488
+ };
9241
9489
  SetChatSessionSubStatusInput: {
9242
9490
  /**
9243
9491
  * Format: uuid
@@ -9319,6 +9567,8 @@ export interface components {
9319
9567
  content: string;
9320
9568
  /** @description Up to 3 options the customer can tap instead of typing, sent with the macro on channels that show them. Each `label` is up to 20 characters. `type` is `text` (the tap reaches the session as the customer's reply) or `workflow` (the tap runs the macro's Macro Option Clicked workflows and the AI doesn't reply). This is the full list: on update, pass an existing option's `id` to keep it (workflows branching on that id keep working); options left out are removed, `[]` removes all, and omitting the field leaves them untouched. A macro with options needs body text. */
9321
9569
  options?: components["schemas"]["MacroOptionInputDto"][];
9570
+ /** @description When true, this macro is never suggested to agents. They can still search for it and use it. Defaults to false. */
9571
+ exclude_from_suggestions?: boolean;
9322
9572
  };
9323
9573
  UpdateMacroInput: {
9324
9574
  category?: string;
@@ -9327,6 +9577,8 @@ export interface components {
9327
9577
  content?: string;
9328
9578
  /** @description Up to 3 options the customer can tap instead of typing, sent with the macro on channels that show them. Each `label` is up to 20 characters. `type` is `text` (the tap reaches the session as the customer's reply) or `workflow` (the tap runs the macro's Macro Option Clicked workflows and the AI doesn't reply). This is the full list: on update, pass an existing option's `id` to keep it (workflows branching on that id keep working); options left out are removed, `[]` removes all, and omitting the field leaves them untouched. A macro with options needs body text. */
9329
9579
  options?: components["schemas"]["MacroOptionInputDto"][];
9580
+ /** @description When true, this macro is never suggested to agents. They can still search for it and use it. */
9581
+ exclude_from_suggestions?: boolean;
9330
9582
  };
9331
9583
  UpsertTagInputDto: {
9332
9584
  /** @description Tag name (e.g. "billing", "refund", "feature-request") */
@@ -9636,6 +9888,7 @@ export interface components {
9636
9888
  ring_duration_seconds: number | null;
9637
9889
  recording_status: ("pending" | "completed" | "failed") | null;
9638
9890
  has_recording: boolean;
9891
+ has_voicemail?: boolean;
9639
9892
  is_session_latest_call: boolean;
9640
9893
  /** Format: date-time */
9641
9894
  created_at: string;
@@ -9651,6 +9904,11 @@ export interface components {
9651
9904
  kind: "macro";
9652
9905
  macro_id: string;
9653
9906
  macro_title: string;
9907
+ } | {
9908
+ /** @constant */
9909
+ kind: "workflow";
9910
+ workflow_id: string;
9911
+ workflow_run_id: string;
9654
9912
  };
9655
9913
  MessageOptionsDto: {
9656
9914
  source: components["schemas"]["MessageOptionsSourceDto"];
@@ -10090,7 +10348,7 @@ export interface components {
10090
10348
  }) | null;
10091
10349
  knowledgebase_called?: boolean | null;
10092
10350
  /** @enum {string} */
10093
- type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
10351
+ type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "primary_contact_changed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "session_priority_changed_by_agent" | "session_priority_changed_by_system" | "session_snoozed" | "session_unsnoozed" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
10094
10352
  ivr_selection?: {
10095
10353
  /** Format: uuid */
10096
10354
  runId: string;
@@ -10262,6 +10520,26 @@ export interface components {
10262
10520
  customDataKeys?: string[];
10263
10521
  }[];
10264
10522
  };
10523
+ MacroTranslationsDto: {
10524
+ saved_reply_id: string;
10525
+ source_language: string | null;
10526
+ items: {
10527
+ language: string;
10528
+ /** @enum {string} */
10529
+ status: "pending" | "ready" | "failed";
10530
+ title: string;
10531
+ content: string;
10532
+ options: {
10533
+ id: string;
10534
+ label: string;
10535
+ }[];
10536
+ /** Format: date-time */
10537
+ updated_at: string;
10538
+ }[];
10539
+ };
10540
+ RetranslateMacroResponseDto: {
10541
+ queued_languages: string[];
10542
+ };
10265
10543
  StructuredFieldGroupDto: {
10266
10544
  /** Format: uuid */
10267
10545
  id: string;
@@ -10339,6 +10617,8 @@ export interface components {
10339
10617
  options: components["schemas"]["MessageOptionDto"][];
10340
10618
  user_id: number | null;
10341
10619
  overrides_saved_reply_id: string | null;
10620
+ exclude_from_suggestions: boolean;
10621
+ source_language: string | null;
10342
10622
  /** Format: date-time */
10343
10623
  created_at: string;
10344
10624
  /** Format: date-time */
@@ -10716,6 +10996,19 @@ export interface components {
10716
10996
  group_capacity: number | null;
10717
10997
  global_capacity: number;
10718
10998
  };
10999
+ WebCallCredentialsDto: {
11000
+ /** Format: uuid */
11001
+ callId: string;
11002
+ /** Format: uuid */
11003
+ sessionId: string;
11004
+ controlToken: string;
11005
+ /** Format: date-time */
11006
+ expiresAt: string;
11007
+ };
11008
+ WebCallStatusDto: {
11009
+ /** @enum {string} */
11010
+ state: "waiting" | "queued" | "connected" | "ended";
11011
+ };
10719
11012
  CreateMiniAppResponseDto: {
10720
11013
  /** Format: uuid */
10721
11014
  app_id: string;
@@ -10802,6 +11095,19 @@ export interface components {
10802
11095
  UpdateAgentWorkflowsResponseDto: {
10803
11096
  success: boolean;
10804
11097
  };
11098
+ PhoneAgentKnowledgePlanDto: {
11099
+ /**
11100
+ * @description How a save now would give the agent its selection. none: nothing is selected, so the agent only follows its own instructions. preload: every selected source is loaded at the start of each call. search: the selection is too large to load, so the agent searches it during calls.
11101
+ * @enum {string}
11102
+ */
11103
+ mode: "none" | "preload" | "search";
11104
+ /** @description Whether the agent searches during calls now. Set when the agent is saved; differs from mode when the selected sources changed size since. */
11105
+ searchEnabled: boolean;
11106
+ /** @description Selected instructions and knowledge documents currently available to voice calls */
11107
+ selectedSourceCount: number;
11108
+ /** @description Share of the room for loading sources at call start that the agent's instructions and selection would use. Above 100, the agent searches instead. */
11109
+ capacityUsedPercent: number;
11110
+ };
10805
11111
  KnowledgeSourceRoutingGuideDto: {
10806
11112
  /** @enum {string} */
10807
11113
  status: "fresh" | "stale" | "invalid";
@@ -10876,18 +11182,20 @@ export interface components {
10876
11182
  KnowledgeSourceTreeDto: {
10877
11183
  directories: components["schemas"]["KnowledgeSourceDirectoryDto"][];
10878
11184
  uncategorized: components["schemas"]["KnowledgeSourceTreeItemDto"][];
10879
- /** @description Estimated tokens for all selected instructions */
11185
+ /** @description Estimated tokens of the selected instructions and knowledge documents */
10880
11186
  totalTokens: number;
10881
11187
  /**
10882
- * @description All eligible instructions are searchable when all; otherwise only explicit selections
11188
+ * @description Deprecated: always selected. The agent only uses the instructions selected here.
10883
11189
  * @enum {string}
10884
11190
  */
10885
11191
  instructionMode: "all" | "selected";
10886
11192
  /**
10887
- * @description All eligible knowledge is searchable when all; otherwise only explicit selections
11193
+ * @description Deprecated: always selected. The agent only uses the knowledge selected here.
10888
11194
  * @enum {string}
10889
11195
  */
10890
11196
  knowledgeMode: "all" | "selected";
11197
+ /** @description How the agent gets the selected sources during calls; null for agents on another runtime */
11198
+ knowledgePlan: components["schemas"]["PhoneAgentKnowledgePlanDto"] | null;
10891
11199
  selectedInstructionIds: string[];
10892
11200
  selectedDirectoryIds: string[];
10893
11201
  selectedKnowledgeItemIds: string[];
@@ -10909,12 +11217,20 @@ export interface components {
10909
11217
  };
10910
11218
  UpdateKnowledgeSourcesResponseDto: {
10911
11219
  success: boolean;
10912
- /** @description Estimated tokens for all selected instructions */
11220
+ /** @description Estimated tokens of the selected instructions and knowledge documents */
10913
11221
  totalTokens: number;
10914
- /** @enum {string} */
11222
+ /**
11223
+ * @description Deprecated: always selected.
11224
+ * @enum {string}
11225
+ */
10915
11226
  instructionMode: "all" | "selected";
10916
- /** @enum {string} */
11227
+ /**
11228
+ * @description Deprecated: always selected.
11229
+ * @enum {string}
11230
+ */
10917
11231
  knowledgeMode: "all" | "selected";
11232
+ /** @description How the agent gets the selected sources during calls; null for agents on another runtime */
11233
+ knowledgePlan: components["schemas"]["PhoneAgentKnowledgePlanDto"] | null;
10918
11234
  selectedInstructionIds: string[];
10919
11235
  selectedDirectoryIds: string[];
10920
11236
  selectedKnowledgeItemIds: string[];
@@ -10980,6 +11296,8 @@ export interface components {
10980
11296
  assigned_agent_id?: string | null;
10981
11297
  assigned_agent_name?: string | null;
10982
11298
  assigned_agent_provider?: ("vapi" | "openai-realtime-voice" | "livekit") | null;
11299
+ assigned_interpreter_id?: string | null;
11300
+ assigned_interpreter_name?: string | null;
10983
11301
  region?: ("apac" | "eu" | "us") | null;
10984
11302
  twilio_phone_number_sid?: string | null;
10985
11303
  };
@@ -11146,6 +11464,27 @@ export interface components {
11146
11464
  /** Format: date-time */
11147
11465
  updated_at: string;
11148
11466
  };
11467
+ MacroSuggestionInsightsDto: {
11468
+ saved_reply_id: string;
11469
+ /** @constant */
11470
+ window_days: 30;
11471
+ /** @enum {string} */
11472
+ state: "off" | "learning" | "proven" | "steady" | "muted";
11473
+ shown: number;
11474
+ applied: number;
11475
+ missed: number;
11476
+ hit_rate: number | null;
11477
+ threshold: number;
11478
+ weekly: {
11479
+ week_start: string;
11480
+ shown: number;
11481
+ applied: number;
11482
+ missed: number;
11483
+ }[];
11484
+ };
11485
+ MacroSuggestionInsightsListDto: {
11486
+ items: components["schemas"]["MacroSuggestionInsightsDto"][];
11487
+ };
11149
11488
  /** @enum {string} */
11150
11489
  SavedReplyVariableEnum: "agent.full_name" | "agent.first_name" | "agent.email" | "contact.full_name" | "contact.first_name" | "contact.last_name" | "contact.email" | "contact.phone" | "session.number" | "session.status" | "session.language" | "org.name";
11151
11490
  SavedReplyVariablesResponseDto: {
@@ -12313,28 +12652,6 @@ export interface components {
12313
12652
  noop: number;
12314
12653
  };
12315
12654
  };
12316
- EmailFleetDnsSetupDto: {
12317
- /** Format: uuid */
12318
- domain_id: string;
12319
- domain: string;
12320
- zone: string;
12321
- /** @enum {string} */
12322
- status: "preparing" | "needs_dns" | "verified" | "check_failed";
12323
- checked_at: string | null;
12324
- records: {
12325
- /** @enum {string} */
12326
- type: "A" | "MX" | "TXT" | "CNAME";
12327
- host: string;
12328
- value: string;
12329
- ttl: number;
12330
- purpose?: string;
12331
- actual: string | null;
12332
- verified: boolean | null;
12333
- }[];
12334
- };
12335
- EmailFleetDnsSetupsDto: {
12336
- domains: components["schemas"]["EmailFleetDnsSetupDto"][];
12337
- };
12338
12655
  EmailFleetSuggestionDto: {
12339
12656
  domain: string;
12340
12657
  available: boolean;
@@ -12360,20 +12677,42 @@ export interface components {
12360
12677
  };
12361
12678
  };
12362
12679
  };
12363
- SkillDto: {
12680
+ EmailFleetDnsSetupDto: {
12364
12681
  /** Format: uuid */
12365
- id: string;
12366
- org_id: string;
12367
- name: string;
12368
- description: string | null;
12369
- /** Format: date-time */
12370
- created_at: string;
12371
- /** Format: date-time */
12372
- updated_at: string;
12373
- };
12374
- CustomTrainingDirectoriesDto: {
12375
- id: string;
12376
- name: string;
12682
+ domain_id: string;
12683
+ domain: string;
12684
+ zone: string;
12685
+ /** @enum {string} */
12686
+ status: "preparing" | "needs_dns" | "verified" | "check_failed";
12687
+ checked_at: string | null;
12688
+ records: {
12689
+ /** @enum {string} */
12690
+ type: "A" | "MX" | "TXT" | "CNAME";
12691
+ host: string;
12692
+ value: string;
12693
+ ttl: number;
12694
+ purpose?: string;
12695
+ actual: string | null;
12696
+ verified: boolean | null;
12697
+ }[];
12698
+ };
12699
+ EmailFleetDnsSetupsDto: {
12700
+ domains: components["schemas"]["EmailFleetDnsSetupDto"][];
12701
+ };
12702
+ SkillDto: {
12703
+ /** Format: uuid */
12704
+ id: string;
12705
+ org_id: string;
12706
+ name: string;
12707
+ description: string | null;
12708
+ /** Format: date-time */
12709
+ created_at: string;
12710
+ /** Format: date-time */
12711
+ updated_at: string;
12712
+ };
12713
+ CustomTrainingDirectoriesDto: {
12714
+ id: string;
12715
+ name: string;
12377
12716
  org_id: string;
12378
12717
  /** @description Parent folder id; null for a top-level folder. */
12379
12718
  parent_id: string | null;
@@ -13260,7 +13599,7 @@ export interface components {
13260
13599
  */
13261
13600
  type: "unmapped_event";
13262
13601
  /** @enum {string} */
13263
- message_type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
13602
+ message_type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "primary_contact_changed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "session_priority_changed_by_agent" | "session_priority_changed_by_system" | "session_snoozed" | "session_unsnoozed" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
13264
13603
  content: {
13265
13604
  /** @constant */
13266
13605
  type: "text";
@@ -13551,7 +13890,7 @@ export interface components {
13551
13890
  */
13552
13891
  type: "unmapped_event";
13553
13892
  /** @enum {string} */
13554
- message_type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
13893
+ message_type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "primary_contact_changed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "session_priority_changed_by_agent" | "session_priority_changed_by_system" | "session_snoozed" | "session_unsnoozed" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
13555
13894
  content: {
13556
13895
  /** @constant */
13557
13896
  type: "text";
@@ -13835,7 +14174,7 @@ export interface components {
13835
14174
  * @description Stored event type used by include/exclude filters; it can differ from the normalized event.type.
13836
14175
  * @enum {string}
13837
14176
  */
13838
- message_type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
14177
+ message_type: "agent_assigned_by_integration" | "agent_assigned_by_system" | "agent_assigned_by_user" | "agent_changed" | "agent_comment" | "agent_initiated_session" | "agent_joined" | "agent_message" | "agent_reopened_session" | "agent_took_session_from_ai" | "agent_unassigned_by_integration" | "agent_unassigned_by_system" | "agent_unassigned_by_user" | "ai_assumed_the_session_resolved" | "ai_decided_to_not_reply" | "ai_decided_to_resolve_the_issue" | "ai_follow_up_cancelled" | "ai_follow_up_fired" | "ai_follow_up_scheduled" | "ai_reopened_session" | "ai_response_cancelled" | "ai_resumed_by_system" | "ai_suggestion" | "call_history" | "call_transferred" | "closed_resolved_by_agent" | "closed_resolved_by_api" | "closed_resolved_by_contact" | "closed_resolved_by_integration" | "closed_resolved_by_system" | "closed_unresolved_by_agent" | "closed_unresolved_by_api" | "closed_unresolved_by_system" | "contact_data_updated" | "csat_request_cancelled" | "csat_requested" | "csat_submitted" | "email_draft_message" | "handoff" | "handoff_to_salesforce_miaw" | "handoff_to_third_party_failed" | "handoff_to_zendesk" | "integration_reopened_session" | "ivr_selection" | "message" | "pii_attachment_removed" | "primary_contact_changed" | "prohibited_topic_detected" | "quoted_content_modified" | "salesforce_fields_updated" | "sequence_message" | "session_forwarded" | "session_language_changed_by_agent" | "session_language_changed_by_api" | "session_language_changed_by_integration" | "session_language_changed_by_system" | "session_priority_changed_by_agent" | "session_priority_changed_by_system" | "session_snoozed" | "session_unsnoozed" | "skills_added_by_system" | "sla_applied_by_agent" | "sla_applied_by_system" | "sla_first_reply_breached" | "sla_first_reply_completed_after_breach" | "sla_first_reply_fulfilled" | "sla_first_reply_metric_started" | "sla_freezed_office_hours_ended" | "sla_freezed_snoozed" | "sla_next_reply_breached" | "sla_next_reply_completed_after_breach" | "sla_next_reply_fulfilled" | "sla_next_reply_metric_started" | "sla_removed_by_agent" | "sla_removed_by_system" | "sla_resolution_breached" | "sla_resolution_completed_after_breach" | "sla_resolution_fulfilled" | "sla_resolution_metric_started" | "sla_resolution_paused_resolved" | "sla_resolution_paused_waiting_on_customer" | "sla_resolution_resumed_customer_replied" | "sla_resolution_resumed_reopened" | "sla_resumed_office_hours_started" | "sla_resumed_snooze_cancelled" | "sla_resumed_snooze_expired" | "state_checkpoint" | "sub_session_created" | "sub_session_linked_by_agent" | "sub_session_linked_by_api" | "sub_session_linked_by_integration" | "sub_session_linked_by_system" | "sub_session_unlinked_by_agent" | "sub_session_unlinked_by_api" | "sub_session_unlinked_by_integration" | "sub_session_unlinked_by_system" | "sub_status_removed_by_agent" | "sub_status_removed_by_api" | "sub_status_removed_by_integration" | "sub_status_removed_by_system" | "sub_status_set_by_agent" | "sub_status_set_by_api" | "sub_status_set_by_integration" | "sub_status_set_by_system" | "system_reopened_session" | "tag_added_by_agent" | "tag_added_by_api" | "tag_added_by_integration" | "tag_added_by_system" | "tag_removed_by_agent" | "tag_removed_by_api" | "tag_removed_by_integration" | "tag_removed_by_system" | "team_assigned_by_integration" | "team_assigned_by_system" | "team_assigned_by_user" | "team_unassigned_by_integration" | "team_unassigned_by_system" | "team_unassigned_by_user" | "user_confirmed_the_session_resolved" | "voice_call_ai_joined" | "voice_call_ai_left" | "voice_call_contact_answered" | "voice_call_contact_joined" | "voice_call_contact_left" | "voice_call_ended" | "voice_call_failed_to_start" | "voice_call_human_answered" | "voice_call_human_joined" | "voice_call_human_left" | "voice_call_started" | "workflow_message" | "workflow_note" | "workflow_triggered";
13839
14178
  actor: {
13840
14179
  /** @enum {string} */
13841
14180
  type: "human" | "api" | "workflow" | "system" | "integration" | "ai" | "contact" | "unknown";
@@ -14140,6 +14479,92 @@ export interface components {
14140
14479
  /** @description Timestamp of the first recorded human reply to this session. Null when no human reply has been recorded. */
14141
14480
  first_human_message_at: string | null;
14142
14481
  };
14482
+ GetChatSessionDetailOutput: {
14483
+ /** Format: uuid */
14484
+ id: string;
14485
+ /** @description All tags currently assigned to this session, ordered by tag name. Empty when no tags are assigned. */
14486
+ tags: components["schemas"]["SessionTagOutput"][];
14487
+ /** @enum {string} */
14488
+ status: "open" | "closed_resolved" | "closed_unresolved";
14489
+ /** @description Id of the custom status refining `status`, or null when only the built-in status applies. Resolve it with GET /custom-statuses. */
14490
+ sub_status_id: string | null;
14491
+ ai_closure_type: ("assumed_resolved" | "handed_off" | "resolved") | null;
14492
+ sentiment: ("angry" | "happy" | "neutral") | null;
14493
+ /** @description AI-generated summary of the conversation. Populated for both AI-resolved and handed-off sessions once the session has been summarized; null otherwise. */
14494
+ summary: string | null;
14495
+ /** @description Session title: the email subject, a subject set by an agent, or an AI-generated title. Null until one is set. */
14496
+ title: string | null;
14497
+ channel: {
14498
+ type: components["schemas"]["SessionChannel"];
14499
+ };
14500
+ contact?: {
14501
+ /** Format: uuid */
14502
+ id: string;
14503
+ email: string | null;
14504
+ phone_number: string | null;
14505
+ name: string | null;
14506
+ custom_data: {
14507
+ [key: string]: string;
14508
+ } | null;
14509
+ non_verified_custom_data: {
14510
+ [key: string]: string | number | boolean;
14511
+ } | null;
14512
+ /** @description ISO 8601 timestamp of when the contact was created */
14513
+ created_at: string;
14514
+ /** @description ISO 8601 timestamp of when the contact was last updated */
14515
+ updated_at: string;
14516
+ non_verified_name: string | null;
14517
+ non_verified_email: string | null;
14518
+ };
14519
+ language?: string;
14520
+ /**
14521
+ * @deprecated
14522
+ * @description Deprecated: use assignee. Contains the recorded human user ID as a string, or null for AI and unassigned sessions. Use assignee.type to distinguish them. This deprecation applies only to response fields; assignment requests still accept assignee_id.
14523
+ */
14524
+ assignee_id?: string | null;
14525
+ assignee: components["schemas"]["ChatSessionAssignee"];
14526
+ /** @description Session-level custom data stored on the chat session. */
14527
+ custom_data?: {
14528
+ [key: string]: string | number | boolean;
14529
+ };
14530
+ team?: {
14531
+ /** Format: uuid */
14532
+ id: string;
14533
+ name: string;
14534
+ description?: string;
14535
+ };
14536
+ /** @description Support team assigned to this session. Null when no team can be resolved within the session organization. */
14537
+ support_team: {
14538
+ /**
14539
+ * Format: uuid
14540
+ * @description Stable team ID, preserved when the team is renamed.
14541
+ */
14542
+ id: string;
14543
+ name: string;
14544
+ } | null;
14545
+ handoff?: {
14546
+ /** @enum {string} */
14547
+ sentiment?: "angry" | "happy" | "neutral";
14548
+ summary: string;
14549
+ };
14550
+ ticketing_system?: {
14551
+ /** @enum {string} */
14552
+ name: "dynamics365" | "freshchat" | "freshdesk" | "freshdesk_ticketing" | "front" | "gorgias" | "hubspot" | "infobip" | "intercom" | "open" | "salesforce" | "salesforce_v2" | "twilio_flex" | "zendesk" | "zendesk_v2";
14553
+ external_id: string;
14554
+ /** @enum {string} */
14555
+ id_type: "conversation_id" | "ticket_id" | "case_id" | "conversation_sid";
14556
+ };
14557
+ ticket_number: number;
14558
+ assist_mode: boolean;
14559
+ /** Format: date-time */
14560
+ created_at: string;
14561
+ /** Format: date-time */
14562
+ updated_at: string;
14563
+ /** @description Timestamp of the first recorded human reply to this session. Null when no human reply has been recorded. */
14564
+ first_human_message_at: string | null;
14565
+ /** @description Download link for the latest completed call recording in a phone or web session, or null when unavailable. Valid for seven days; fetch this session again to refresh it. Available only when getting a session by ID. */
14566
+ recording_url: string | null;
14567
+ };
14143
14568
  SessionAssigneeUpdateOutput: {
14144
14569
  no_change: boolean;
14145
14570
  session: components["schemas"]["GetChatSessionOutput"];
@@ -14326,6 +14751,7 @@ export interface components {
14326
14751
  };
14327
14752
  };
14328
14753
  assistMode: boolean;
14754
+ emailContactRevision?: number;
14329
14755
  mode?: {
14330
14756
  id: string;
14331
14757
  name: string;
@@ -14691,6 +15117,16 @@ export interface components {
14691
15117
  domainRecords: unknown | null;
14692
15118
  domainStatus: string | null;
14693
15119
  };
15120
+ MacroSettingsDto: {
15121
+ /** @description Language codes (lower-case, such as `es`) every org-wide macro is translated into, in the order they were chosen. Empty means macro translation is off. */
15122
+ translation_languages: string[];
15123
+ /** @description The most languages that can be chosen. */
15124
+ max_translation_languages: number;
15125
+ /** @description The language codes that can be chosen. */
15126
+ supported_translation_languages: string[];
15127
+ /** @description Whether suggested macros are on for the workspace. When off, no agent sees them. */
15128
+ suggestions_enabled: boolean;
15129
+ };
14694
15130
  HandoffAnalyticsPublicResponseDto: {
14695
15131
  summary: string;
14696
15132
  total_handoffs: number;
@@ -14905,11 +15341,13 @@ export interface components {
14905
15341
  /** @description True when the view was built in the dashboard with OR/exclude groups or filters outside this API's vocabulary. Its `filters` read back as null, and updating `filters` on it REPLACES the whole saved query with the simple set you send. */
14906
15342
  advanced: boolean;
14907
15343
  /** @description Sort field the view opens with */
14908
- sort_by: ("last_message_at" | "created_at" | "sla_urgency") | null;
15344
+ sort_by: ("last_message_at" | "created_at" | "sla_urgency" | "snoozed_until") | null;
14909
15345
  /** @description Sort direction the view opens with */
14910
15346
  sort_order: ("asc" | "desc") | null;
14911
15347
  /** @description Field sessions are grouped by in the list, when the view groups them */
14912
- group_by: ("channel" | "assignee_id" | "status" | "ai_closure_type" | "language" | "inbox_id") | null;
15348
+ group_by: ("tags" | "contact_attribute" | "session_attribute" | "channel" | "assignee_id" | "status" | "ai_closure_type" | "language" | "inbox_id") | null;
15349
+ /** @description Exact attribute key for contact or session attribute grouping, or null when no key is set. */
15350
+ group_by_attribute: string | null;
14913
15351
  /** @description User ids the view is shared with. Empty (with no teams) means the whole org. */
14914
15352
  shared_with_user_ids: number[];
14915
15353
  /** @description Team ids the view is shared with. Empty (with no users) means the whole org. */
@@ -15128,6 +15566,9 @@ export interface components {
15128
15566
  /** @description When the organization was last updated. */
15129
15567
  updated_at: string | null;
15130
15568
  };
15569
+ WebCallSuccessDto: {
15570
+ success: boolean;
15571
+ };
15131
15572
  HandBackCallOutput: {
15132
15573
  /** Format: uuid */
15133
15574
  session_id: string;
@@ -15170,6 +15611,7 @@ export interface components {
15170
15611
  use_org_knowledgebase: boolean;
15171
15612
  background_noise_preset: ("office" | "bar" | "city-street") | null;
15172
15613
  recording_enabled: boolean;
15614
+ /** @description Whether the agent searches its selected knowledge during calls. Set on save: on only when the selection is too large to load at the start of each call. */
15173
15615
  search_enabled: boolean;
15174
15616
  stt_keyterms: string[];
15175
15617
  stt_model: ("deepgram/flux-general" | "deepgram/nova-3" | "deepgram/nova-3-medical" | "cartesia/ink-whisper" | "elevenlabs/scribe_v2_realtime" | "xai/stt-1" | "assemblyai/universal-3-5-pro" | "speechmatics/enhanced" | "google/gemini-3.5-transcribe-live" | "soniox/stt-rt-v5" | "openai/gpt-live-transcribe") | null;
@@ -15389,7 +15831,7 @@ export interface components {
15389
15831
  /** Format: email */
15390
15832
  email: string;
15391
15833
  avatar_url?: string | null;
15392
- permissions?: ("*" | "sessions:read" | "sessions:write" | "hybrid-inbox:read" | "sessions-personal-views:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "sessions-create:write" | "sessions-sub-sessions:write" | "contacts:read" | "contacts:write" | "companies:read" | "companies:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "help-center-content:read" | "help-center-content:write" | "workflows:read" | "workflows:write" | "workflows:execute" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "companion:read" | "companion:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "settings:read" | "settings:write" | "settings-general:read" | "settings-general:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-structured-fields:read" | "settings-structured-fields:write" | "settings-webhooks:read" | "settings-webhooks:write" | "settings-secrets:read" | "settings-secrets:write" | "settings-handoff:read" | "settings-handoff:write" | "settings-translations:read" | "settings-translations:write" | "settings-sso:read" | "settings-sso:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-agent-availability:read" | "settings-agent-availability:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-reports:read" | "settings-reports:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-email-fleet:read" | "settings-email-fleet:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-custom-statuses:read" | "settings-custom-statuses:write" | "settings-availability-statuses:read" | "settings-availability-statuses:write" | "settings-personal-profile:read" | "settings-personal-profile:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
15834
+ permissions?: ("*" | "sessions:read" | "sessions:write" | "team-sessions:read" | "team-sessions:write" | "assigned-sessions:read" | "assigned-sessions:write" | "hybrid-inbox:read" | "sessions-personal-views:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "sessions-create:write" | "sessions-sub-sessions:write" | "contacts:read" | "contacts:write" | "companies:read" | "companies:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "help-center-content:read" | "help-center-content:write" | "workflows:read" | "workflows:write" | "workflows:execute" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "companion:read" | "companion:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "settings:read" | "settings:write" | "settings-general:read" | "settings-general:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-structured-fields:read" | "settings-structured-fields:write" | "settings-webhooks:read" | "settings-webhooks:write" | "settings-secrets:read" | "settings-secrets:write" | "settings-handoff:read" | "settings-handoff:write" | "settings-translations:read" | "settings-translations:write" | "settings-sso:read" | "settings-sso:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-agent-availability:read" | "settings-agent-availability:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-reports:read" | "settings-reports:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-email-fleet:read" | "settings-email-fleet:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-custom-statuses:read" | "settings-custom-statuses:write" | "settings-availability-statuses:read" | "settings-availability-statuses:write" | "settings-personal-profile:read" | "settings-personal-profile:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
15393
15835
  roles: components["schemas"]["OrgUserRole"][];
15394
15836
  };
15395
15837
  OrgUserDetail: {
@@ -15399,7 +15841,7 @@ export interface components {
15399
15841
  /** Format: email */
15400
15842
  email: string;
15401
15843
  avatar_url?: string | null;
15402
- permissions?: ("*" | "sessions:read" | "sessions:write" | "hybrid-inbox:read" | "sessions-personal-views:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "sessions-create:write" | "sessions-sub-sessions:write" | "contacts:read" | "contacts:write" | "companies:read" | "companies:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "help-center-content:read" | "help-center-content:write" | "workflows:read" | "workflows:write" | "workflows:execute" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "companion:read" | "companion:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "settings:read" | "settings:write" | "settings-general:read" | "settings-general:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-structured-fields:read" | "settings-structured-fields:write" | "settings-webhooks:read" | "settings-webhooks:write" | "settings-secrets:read" | "settings-secrets:write" | "settings-handoff:read" | "settings-handoff:write" | "settings-translations:read" | "settings-translations:write" | "settings-sso:read" | "settings-sso:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-agent-availability:read" | "settings-agent-availability:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-reports:read" | "settings-reports:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-email-fleet:read" | "settings-email-fleet:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-custom-statuses:read" | "settings-custom-statuses:write" | "settings-availability-statuses:read" | "settings-availability-statuses:write" | "settings-personal-profile:read" | "settings-personal-profile:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
15844
+ permissions?: ("*" | "sessions:read" | "sessions:write" | "team-sessions:read" | "team-sessions:write" | "assigned-sessions:read" | "assigned-sessions:write" | "hybrid-inbox:read" | "sessions-personal-views:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "sessions-create:write" | "sessions-sub-sessions:write" | "contacts:read" | "contacts:write" | "companies:read" | "companies:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "help-center-content:read" | "help-center-content:write" | "workflows:read" | "workflows:write" | "workflows:execute" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "companion:read" | "companion:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "settings:read" | "settings:write" | "settings-general:read" | "settings-general:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-structured-fields:read" | "settings-structured-fields:write" | "settings-webhooks:read" | "settings-webhooks:write" | "settings-secrets:read" | "settings-secrets:write" | "settings-handoff:read" | "settings-handoff:write" | "settings-translations:read" | "settings-translations:write" | "settings-sso:read" | "settings-sso:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-agent-availability:read" | "settings-agent-availability:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-reports:read" | "settings-reports:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-email-fleet:read" | "settings-email-fleet:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-custom-statuses:read" | "settings-custom-statuses:write" | "settings-availability-statuses:read" | "settings-availability-statuses:write" | "settings-personal-profile:read" | "settings-personal-profile:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[] | null;
15403
15845
  roles: components["schemas"]["OrgUserRole"][];
15404
15846
  teams: {
15405
15847
  group: components["schemas"]["GroupDto"];
@@ -15421,7 +15863,7 @@ export interface components {
15421
15863
  id: string;
15422
15864
  name: string;
15423
15865
  description: string | null;
15424
- permissions: ("*" | "sessions:read" | "sessions:write" | "hybrid-inbox:read" | "sessions-personal-views:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "sessions-create:write" | "sessions-sub-sessions:write" | "contacts:read" | "contacts:write" | "companies:read" | "companies:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "help-center-content:read" | "help-center-content:write" | "workflows:read" | "workflows:write" | "workflows:execute" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "companion:read" | "companion:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "settings:read" | "settings:write" | "settings-general:read" | "settings-general:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-structured-fields:read" | "settings-structured-fields:write" | "settings-webhooks:read" | "settings-webhooks:write" | "settings-secrets:read" | "settings-secrets:write" | "settings-handoff:read" | "settings-handoff:write" | "settings-translations:read" | "settings-translations:write" | "settings-sso:read" | "settings-sso:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-agent-availability:read" | "settings-agent-availability:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-reports:read" | "settings-reports:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-email-fleet:read" | "settings-email-fleet:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-custom-statuses:read" | "settings-custom-statuses:write" | "settings-availability-statuses:read" | "settings-availability-statuses:write" | "settings-personal-profile:read" | "settings-personal-profile:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[];
15866
+ permissions: ("*" | "sessions:read" | "sessions:write" | "team-sessions:read" | "team-sessions:write" | "assigned-sessions:read" | "assigned-sessions:write" | "hybrid-inbox:read" | "sessions-personal-views:write" | "sessions-shared-views:read" | "sessions-shared-views:write" | "sessions-create:write" | "sessions-sub-sessions:write" | "contacts:read" | "contacts:write" | "companies:read" | "companies:write" | "sequences:read" | "sequences:write" | "ai-training:read" | "ai-training:write" | "reports:read" | "reports:write" | "help-center:read" | "help-center:write" | "help-center-content:read" | "help-center-content:write" | "workflows:read" | "workflows:write" | "workflows:execute" | "actions:read" | "actions:write" | "mini-apps:read" | "mini-apps:write" | "companion:read" | "companion:write" | "redaction:read" | "redaction:write" | "voc:read" | "voc:write" | "audit-logs:read" | "settings:read" | "settings:write" | "settings-general:read" | "settings-general:write" | "settings-billing:read" | "settings-billing:write" | "settings-api-keys:read" | "settings-api-keys:write" | "settings-autopilot:read" | "settings-autopilot:write" | "settings-structured-fields:read" | "settings-structured-fields:write" | "settings-webhooks:read" | "settings-webhooks:write" | "settings-secrets:read" | "settings-secrets:write" | "settings-handoff:read" | "settings-handoff:write" | "settings-translations:read" | "settings-translations:write" | "settings-sso:read" | "settings-sso:write" | "settings-integrations:read" | "settings-integrations:write" | "settings-members:read" | "settings-members:write" | "settings-agent-availability:read" | "settings-agent-availability:write" | "settings-tags:read" | "settings-tags:write" | "settings-sla:read" | "settings-sla:write" | "settings-csat:read" | "settings-csat:write" | "settings-reports:read" | "settings-reports:write" | "settings-office-hours:read" | "settings-office-hours:write" | "settings-channels:read" | "settings-channels:write" | "settings-channels-voice:read" | "settings-channels-voice:write" | "settings-email-fleet:read" | "settings-email-fleet:write" | "settings-helpdesk:read" | "settings-helpdesk:write" | "settings-custom-statuses:read" | "settings-custom-statuses:write" | "settings-availability-statuses:read" | "settings-availability-statuses:write" | "settings-personal-profile:read" | "settings-personal-profile:write" | "settings-groups:read" | "settings-groups:write" | "settings-roles:read" | "settings-roles:write" | "settings-macros:read" | "settings-macros:write" | "settings-skills:read" | "settings-skills:write")[];
15425
15867
  };
15426
15868
  PublicInsight: {
15427
15869
  /** Format: uuid */
@@ -15634,6 +16076,9 @@ export interface components {
15634
16076
  success: boolean;
15635
16077
  };
15636
16078
  ActionTagsResponseDto: string[];
16079
+ FinishSessionWrapUpResponseDto: {
16080
+ cleared: boolean;
16081
+ };
15637
16082
  ListChatSessionsOutput: {
15638
16083
  items: components["schemas"]["GetChatSessionOutput"][];
15639
16084
  next: string | null;
@@ -16289,6 +16734,39 @@ export interface operations {
16289
16734
  };
16290
16735
  };
16291
16736
  };
16737
+ finishSessionWrapUp: {
16738
+ parameters: {
16739
+ query?: never;
16740
+ header?: never;
16741
+ path?: never;
16742
+ cookie?: never;
16743
+ };
16744
+ requestBody: {
16745
+ content: {
16746
+ "application/json": components["schemas"]["FinishSessionWrapUpBodyDto"];
16747
+ };
16748
+ };
16749
+ responses: {
16750
+ /** @description Default Response */
16751
+ 201: {
16752
+ headers: {
16753
+ [name: string]: unknown;
16754
+ };
16755
+ content: {
16756
+ "application/json": components["schemas"]["FinishSessionWrapUpResponseDto"];
16757
+ };
16758
+ };
16759
+ /** @description Internal Server Error */
16760
+ 500: {
16761
+ headers: {
16762
+ [name: string]: unknown;
16763
+ };
16764
+ content: {
16765
+ "application/json": components["schemas"]["ErrorDto"];
16766
+ };
16767
+ };
16768
+ };
16769
+ };
16292
16770
  updateAgentAvailability: {
16293
16771
  parameters: {
16294
16772
  query?: never;
@@ -16768,7 +17246,7 @@ export interface operations {
16768
17246
  [name: string]: unknown;
16769
17247
  };
16770
17248
  content: {
16771
- "application/json": components["schemas"]["GetChatSessionOutput"];
17249
+ "application/json": components["schemas"]["GetChatSessionDetailOutput"];
16772
17250
  };
16773
17251
  };
16774
17252
  /** @description Internal Server Error */
@@ -20687,6 +21165,99 @@ export interface operations {
20687
21165
  };
20688
21166
  };
20689
21167
  };
21168
+ listMacroSuggestionInsights: {
21169
+ parameters: {
21170
+ query?: {
21171
+ include_weekly?: "true" | "false";
21172
+ };
21173
+ header?: never;
21174
+ path?: never;
21175
+ cookie?: never;
21176
+ };
21177
+ requestBody?: never;
21178
+ responses: {
21179
+ /** @description Default Response */
21180
+ 200: {
21181
+ headers: {
21182
+ [name: string]: unknown;
21183
+ };
21184
+ content: {
21185
+ "application/json": components["schemas"]["MacroSuggestionInsightsListDto"];
21186
+ };
21187
+ };
21188
+ /** @description Internal Server Error */
21189
+ 500: {
21190
+ headers: {
21191
+ [name: string]: unknown;
21192
+ };
21193
+ content: {
21194
+ "application/json": components["schemas"]["ErrorDto"];
21195
+ };
21196
+ };
21197
+ };
21198
+ };
21199
+ getMacroSettings: {
21200
+ parameters: {
21201
+ query?: never;
21202
+ header?: never;
21203
+ path?: never;
21204
+ cookie?: never;
21205
+ };
21206
+ requestBody?: never;
21207
+ responses: {
21208
+ /** @description Default Response */
21209
+ 200: {
21210
+ headers: {
21211
+ [name: string]: unknown;
21212
+ };
21213
+ content: {
21214
+ "application/json": components["schemas"]["MacroSettingsDto"];
21215
+ };
21216
+ };
21217
+ /** @description Internal Server Error */
21218
+ 500: {
21219
+ headers: {
21220
+ [name: string]: unknown;
21221
+ };
21222
+ content: {
21223
+ "application/json": components["schemas"]["ErrorDto"];
21224
+ };
21225
+ };
21226
+ };
21227
+ };
21228
+ updateMacroSettings: {
21229
+ parameters: {
21230
+ query?: never;
21231
+ header?: never;
21232
+ path?: never;
21233
+ cookie?: never;
21234
+ };
21235
+ requestBody: {
21236
+ content: {
21237
+ "application/json": components["schemas"]["UpdateMacroSettingsDto"];
21238
+ };
21239
+ };
21240
+ responses: {
21241
+ /** @description Default Response */
21242
+ 200: {
21243
+ headers: {
21244
+ [name: string]: unknown;
21245
+ };
21246
+ content: {
21247
+ "application/json": components["schemas"]["MacroSettingsDto"];
21248
+ };
21249
+ };
21250
+ /** @description Internal Server Error */
21251
+ 500: {
21252
+ headers: {
21253
+ [name: string]: unknown;
21254
+ };
21255
+ content: {
21256
+ "application/json": components["schemas"]["ErrorDto"];
21257
+ };
21258
+ };
21259
+ };
21260
+ };
20690
21261
  getMacro: {
20691
21262
  parameters: {
20692
21263
  query?: never;
@@ -20785,6 +21356,106 @@ export interface operations {
20785
21356
  };
20786
21357
  };
20787
21358
  };
21359
+ getMacroSuggestionInsights: {
21360
+ parameters: {
21361
+ query?: never;
21362
+ header?: never;
21363
+ path: {
21364
+ /** @description Macro ID */
21365
+ id: string;
21366
+ };
21367
+ cookie?: never;
21368
+ };
21369
+ requestBody?: never;
21370
+ responses: {
21371
+ /** @description Default Response */
21372
+ 200: {
21373
+ headers: {
21374
+ [name: string]: unknown;
21375
+ };
21376
+ content: {
21377
+ "application/json": components["schemas"]["MacroSuggestionInsightsDto"];
21378
+ };
21379
+ };
21380
+ /** @description Internal Server Error */
21381
+ 500: {
21382
+ headers: {
21383
+ [name: string]: unknown;
21384
+ };
21385
+ content: {
21386
+ "application/json": components["schemas"]["ErrorDto"];
21387
+ };
21388
+ };
21389
+ };
21390
+ };
21391
+ getMacroTranslations: {
21392
+ parameters: {
21393
+ query?: never;
21394
+ header?: never;
21395
+ path: {
21396
+ /** @description Macro ID */
21397
+ id: string;
21398
+ };
21399
+ cookie?: never;
21400
+ };
21401
+ requestBody?: never;
21402
+ responses: {
21403
+ /** @description Default Response */
21404
+ 200: {
21405
+ headers: {
21406
+ [name: string]: unknown;
21407
+ };
21408
+ content: {
21409
+ "application/json": components["schemas"]["MacroTranslationsDto"];
21410
+ };
21411
+ };
21412
+ /** @description Internal Server Error */
21413
+ 500: {
21414
+ headers: {
21415
+ [name: string]: unknown;
21416
+ };
21417
+ content: {
21418
+ "application/json": components["schemas"]["ErrorDto"];
21419
+ };
21420
+ };
21421
+ };
21422
+ };
21423
+ retranslateMacro: {
21424
+ parameters: {
21425
+ query?: never;
21426
+ header?: never;
21427
+ path: {
21428
+ /** @description Macro ID */
21429
+ id: string;
21430
+ };
21431
+ cookie?: never;
21432
+ };
21433
+ requestBody: {
21434
+ content: {
21435
+ "application/json": components["schemas"]["RetranslateMacroDto"];
21436
+ };
21437
+ };
21438
+ responses: {
21439
+ /** @description Default Response */
21440
+ 202: {
21441
+ headers: {
21442
+ [name: string]: unknown;
21443
+ };
21444
+ content: {
21445
+ "application/json": components["schemas"]["RetranslateMacroResponseDto"];
21446
+ };
21447
+ };
21448
+ /** @description Internal Server Error */
21449
+ 500: {
21450
+ headers: {
21451
+ [name: string]: unknown;
21452
+ };
21453
+ content: {
21454
+ "application/json": components["schemas"]["ErrorDto"];
21455
+ };
21456
+ };
21457
+ };
21458
+ };
20788
21459
  listSkills: {
20789
21460
  parameters: {
20790
21461
  query?: never;
@@ -22886,7 +23557,7 @@ export interface operations {
22886
23557
  listVoices: {
22887
23558
  parameters: {
22888
23559
  query?: {
22889
- /** @description Filter by language (e.g. "en", "ar", "nl") */
23560
+ /** @description Filter by language (e.g. "en", "ar", "nl"). A base code also matches its regional variants ("ar" returns "ar-SA" and "ar-EG" voices); a regional code matches only itself. */
22890
23561
  language?: string;
22891
23562
  /** @description Filter by gender (e.g. "male", "female") */
22892
23563
  gender?: string;
@@ -23445,6 +24116,132 @@ export interface operations {
23445
24116
  };
23446
24117
  };
23447
24118
  };
24119
+ createWebCall: {
24120
+ parameters: {
24121
+ query?: never;
24122
+ header?: never;
24123
+ path?: never;
24124
+ cookie?: never;
24125
+ };
24126
+ requestBody: {
24127
+ content: {
24128
+ "application/json": components["schemas"]["CreateWebCallDto"];
24129
+ };
24130
+ };
24131
+ responses: {
24132
+ /** @description Default Response */
24133
+ 200: {
24134
+ headers: {
24135
+ [name: string]: unknown;
24136
+ };
24137
+ content: {
24138
+ "application/json": components["schemas"]["WebCallCredentialsDto"];
24139
+ };
24140
+ };
24141
+ /** @description Internal Server Error */
24142
+ 500: {
24143
+ headers: {
24144
+ [name: string]: unknown;
24145
+ };
24146
+ content: {
24147
+ "application/json": components["schemas"]["ErrorDto"];
24148
+ };
24149
+ };
24150
+ };
24151
+ };
24152
+ connectWebCall: {
24153
+ parameters: {
24154
+ query?: never;
24155
+ header?: never;
24156
+ path: {
24157
+ callId: string;
24158
+ };
24159
+ cookie?: never;
24160
+ };
24161
+ requestBody?: never;
24162
+ responses: {
24163
+ /** @description Default Response */
24164
+ 200: {
24165
+ headers: {
24166
+ [name: string]: unknown;
24167
+ };
24168
+ content: {
24169
+ "application/json": components["schemas"]["WebCallSuccessDto"];
24170
+ };
24171
+ };
24172
+ /** @description Internal Server Error */
24173
+ 500: {
24174
+ headers: {
24175
+ [name: string]: unknown;
24176
+ };
24177
+ content: {
24178
+ "application/json": components["schemas"]["ErrorDto"];
24179
+ };
24180
+ };
24181
+ };
24182
+ };
24183
+ getWebCall: {
24184
+ parameters: {
24185
+ query?: never;
24186
+ header?: never;
24187
+ path: {
24188
+ callId: string;
24189
+ };
24190
+ cookie?: never;
24191
+ };
24192
+ requestBody?: never;
24193
+ responses: {
24194
+ /** @description Default Response */
24195
+ 200: {
24196
+ headers: {
24197
+ [name: string]: unknown;
24198
+ };
24199
+ content: {
24200
+ "application/json": components["schemas"]["WebCallStatusDto"];
24201
+ };
24202
+ };
24203
+ /** @description Internal Server Error */
24204
+ 500: {
24205
+ headers: {
24206
+ [name: string]: unknown;
24207
+ };
24208
+ content: {
24209
+ "application/json": components["schemas"]["ErrorDto"];
24210
+ };
24211
+ };
24212
+ };
24213
+ };
24214
+ endWebCall: {
24215
+ parameters: {
24216
+ query?: never;
24217
+ header?: never;
24218
+ path: {
24219
+ callId: string;
24220
+ };
24221
+ cookie?: never;
24222
+ };
24223
+ requestBody?: never;
24224
+ responses: {
24225
+ /** @description Default Response */
24226
+ 200: {
24227
+ headers: {
24228
+ [name: string]: unknown;
24229
+ };
24230
+ content: {
24231
+ "application/json": components["schemas"]["WebCallSuccessDto"];
24232
+ };
24233
+ };
24234
+ /** @description Internal Server Error */
24235
+ 500: {
24236
+ headers: {
24237
+ [name: string]: unknown;
24238
+ };
24239
+ content: {
24240
+ "application/json": components["schemas"]["ErrorDto"];
24241
+ };
24242
+ };
24243
+ };
24244
+ };
23448
24245
  redactMessage: {
23449
24246
  parameters: {
23450
24247
  query?: never;
@@ -27367,6 +28164,39 @@ export interface operations {
27367
28164
  };
27368
28165
  };
27369
28166
  };
28167
+ authenticateWidgetUserByPhone: {
28168
+ parameters: {
28169
+ query?: never;
28170
+ header?: never;
28171
+ path?: never;
28172
+ cookie?: never;
28173
+ };
28174
+ requestBody: {
28175
+ content: {
28176
+ "application/json": components["schemas"]["AuthenticateUserByPhonePayloadDto"];
28177
+ };
28178
+ };
28179
+ responses: {
28180
+ /** @description Default Response */
28181
+ 201: {
28182
+ headers: {
28183
+ [name: string]: unknown;
28184
+ };
28185
+ content: {
28186
+ "application/json": components["schemas"]["VerifiedWidgetContactTokenResponseDto"];
28187
+ };
28188
+ };
28189
+ /** @description Internal Server Error */
28190
+ 500: {
28191
+ headers: {
28192
+ [name: string]: unknown;
28193
+ };
28194
+ content: {
28195
+ "application/json": components["schemas"]["ErrorDto"];
28196
+ };
28197
+ };
28198
+ };
28199
+ };
27370
28200
  testConnection: {
27371
28201
  parameters: {
27372
28202
  query?: never;