retell-sdk 5.60.0 → 5.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent.d.mts +33 -30
  12. package/resources/agent.d.mts.map +1 -1
  13. package/resources/agent.d.ts +33 -30
  14. package/resources/agent.d.ts.map +1 -1
  15. package/resources/batch-call.d.mts +13 -12
  16. package/resources/batch-call.d.mts.map +1 -1
  17. package/resources/batch-call.d.ts +13 -12
  18. package/resources/batch-call.d.ts.map +1 -1
  19. package/resources/call.d.mts +39 -36
  20. package/resources/call.d.mts.map +1 -1
  21. package/resources/call.d.ts +39 -36
  22. package/resources/call.d.ts.map +1 -1
  23. package/resources/chat-agent.d.mts +18 -21
  24. package/resources/chat-agent.d.mts.map +1 -1
  25. package/resources/chat-agent.d.ts +18 -21
  26. package/resources/chat-agent.d.ts.map +1 -1
  27. package/resources/chat.d.mts +38 -0
  28. package/resources/chat.d.mts.map +1 -1
  29. package/resources/chat.d.ts +38 -0
  30. package/resources/chat.d.ts.map +1 -1
  31. package/resources/conversation-flow-component.d.mts +123 -45
  32. package/resources/conversation-flow-component.d.mts.map +1 -1
  33. package/resources/conversation-flow-component.d.ts +123 -45
  34. package/resources/conversation-flow-component.d.ts.map +1 -1
  35. package/resources/conversation-flow.d.mts +258 -99
  36. package/resources/conversation-flow.d.mts.map +1 -1
  37. package/resources/conversation-flow.d.ts +258 -99
  38. package/resources/conversation-flow.d.ts.map +1 -1
  39. package/resources/identity.d.mts +27 -0
  40. package/resources/identity.d.mts.map +1 -0
  41. package/resources/identity.d.ts +27 -0
  42. package/resources/identity.d.ts.map +1 -0
  43. package/resources/identity.js +15 -0
  44. package/resources/identity.js.map +1 -0
  45. package/resources/identity.mjs +11 -0
  46. package/resources/identity.mjs.map +1 -0
  47. package/resources/index.d.mts +1 -0
  48. package/resources/index.d.mts.map +1 -1
  49. package/resources/index.d.ts +1 -0
  50. package/resources/index.d.ts.map +1 -1
  51. package/resources/index.js +3 -1
  52. package/resources/index.js.map +1 -1
  53. package/resources/index.mjs +1 -0
  54. package/resources/index.mjs.map +1 -1
  55. package/resources/llm.d.mts +102 -9
  56. package/resources/llm.d.mts.map +1 -1
  57. package/resources/llm.d.ts +102 -9
  58. package/resources/llm.d.ts.map +1 -1
  59. package/resources/playground.d.mts +38 -0
  60. package/resources/playground.d.mts.map +1 -1
  61. package/resources/playground.d.ts +38 -0
  62. package/resources/playground.d.ts.map +1 -1
  63. package/resources/tests.d.mts +3 -3
  64. package/resources/tests.d.mts.map +1 -1
  65. package/resources/tests.d.ts +3 -3
  66. package/resources/tests.d.ts.map +1 -1
  67. package/src/client.ts +5 -0
  68. package/src/resources/agent.ts +36 -27
  69. package/src/resources/batch-call.ts +17 -10
  70. package/src/resources/call.ts +51 -30
  71. package/src/resources/chat-agent.ts +21 -18
  72. package/src/resources/chat.ts +44 -0
  73. package/src/resources/conversation-flow-component.ts +213 -45
  74. package/src/resources/conversation-flow.ts +444 -99
  75. package/src/resources/identity.ts +35 -0
  76. package/src/resources/index.ts +1 -0
  77. package/src/resources/llm.ts +114 -6
  78. package/src/resources/playground.ts +44 -0
  79. package/src/resources/tests.ts +9 -3
  80. package/src/version.ts +1 -1
  81. package/version.d.mts +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
  84. package/version.mjs +1 -1
@@ -0,0 +1,35 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { RequestOptions } from '../internal/request-options';
6
+
7
+ export class Identity extends APIResource {
8
+ /**
9
+ * Get info about the API key used to authenticate, and the org that owns it.
10
+ */
11
+ retrieve(options?: RequestOptions): APIPromise<IdentityRetrieveResponse> {
12
+ return this._client.get('/get-api-key-info', options);
13
+ }
14
+ }
15
+
16
+ export interface IdentityRetrieveResponse {
17
+ /**
18
+ * Display name of the API key used, if it has one.
19
+ */
20
+ api_key_name: string | null;
21
+
22
+ /**
23
+ * Unique id of the org that owns the API key.
24
+ */
25
+ org_id: string;
26
+
27
+ /**
28
+ * Display name of the org.
29
+ */
30
+ org_name: string;
31
+ }
32
+
33
+ export declare namespace Identity {
34
+ export { type IdentityRetrieveResponse as IdentityRetrieveResponse };
35
+ }
@@ -77,6 +77,7 @@ export {
77
77
  type ExportRequestListResponse,
78
78
  type ExportRequestListParams,
79
79
  } from './export-request';
80
+ export { Identity, type IdentityRetrieveResponse } from './identity';
80
81
  export {
81
82
  KnowledgeBase,
82
83
  type KnowledgeBaseResponse,
@@ -155,6 +155,12 @@ export interface LlmResponse {
155
155
  */
156
156
  is_published?: boolean;
157
157
 
158
+ /**
159
+ * Whether this Retell LLM is used for warm transfer. Can only be set at creation,
160
+ * and is ignored on update.
161
+ */
162
+ is_transfer_llm?: boolean | null;
163
+
158
164
  /**
159
165
  * Knowledge base configuration for RAG retrieval.
160
166
  */
@@ -195,6 +201,8 @@ export interface LlmResponse {
195
201
  | 'gemini-3.0-flash'
196
202
  | 'gemini-3.1-flash-lite'
197
203
  | 'gemini-3.5-flash'
204
+ | 'gemini-3.5-flash-lite'
205
+ | 'gemini-3.6-flash'
198
206
  | null;
199
207
 
200
208
  /**
@@ -867,7 +875,7 @@ export namespace LlmResponse {
867
875
  /**
868
876
  * The static message to be sent in the SMS. Can contain dynamic variables.
869
877
  */
870
- content?: string;
878
+ text?: string;
871
879
 
872
880
  type?: 'predefined';
873
881
  }
@@ -950,6 +958,20 @@ export namespace LlmResponse {
950
958
  */
951
959
  headers?: { [key: string]: string };
952
960
 
961
+ /**
962
+ * Maximum number of times to retry the request after a failed attempt, from 0 (no
963
+ * retry) to 5. Retries happen on any failure, with exponential backoff between
964
+ * attempts; the backoff delay is not configurable. `timeout_ms` applies per
965
+ * attempt rather than as a budget across all attempts, so an attempt that times
966
+ * out is still retried and the worst-case total duration is `timeout_ms`
967
+ * multiplied by (`max_retry` + 1) as well as any latency incurred by the
968
+ * exponential backoff + jitter between each retry. Only the final attempt's result
969
+ * is reported to the agent. Because retries repeat the request, only set this
970
+ * above 0 if your endpoint is idempotent — a retried request may be processed more
971
+ * than once. Defaults to 0 (no retry).
972
+ */
973
+ max_retry?: number;
974
+
953
975
  /**
954
976
  * Method to use for the request, default to POST.
955
977
  */
@@ -2163,7 +2185,7 @@ export namespace LlmResponse {
2163
2185
  /**
2164
2186
  * The static message to be sent in the SMS. Can contain dynamic variables.
2165
2187
  */
2166
- content?: string;
2188
+ text?: string;
2167
2189
 
2168
2190
  type?: 'predefined';
2169
2191
  }
@@ -2246,6 +2268,20 @@ export namespace LlmResponse {
2246
2268
  */
2247
2269
  headers?: { [key: string]: string };
2248
2270
 
2271
+ /**
2272
+ * Maximum number of times to retry the request after a failed attempt, from 0 (no
2273
+ * retry) to 5. Retries happen on any failure, with exponential backoff between
2274
+ * attempts; the backoff delay is not configurable. `timeout_ms` applies per
2275
+ * attempt rather than as a budget across all attempts, so an attempt that times
2276
+ * out is still retried and the worst-case total duration is `timeout_ms`
2277
+ * multiplied by (`max_retry` + 1) as well as any latency incurred by the
2278
+ * exponential backoff + jitter between each retry. Only the final attempt's result
2279
+ * is reported to the agent. Because retries repeat the request, only set this
2280
+ * above 0 if your endpoint is idempotent — a retried request may be processed more
2281
+ * than once. Defaults to 0 (no retry).
2282
+ */
2283
+ max_retry?: number;
2284
+
2249
2285
  /**
2250
2286
  * Method to use for the request, default to POST.
2251
2287
  */
@@ -2778,6 +2814,12 @@ export interface LlmCreateParams {
2778
2814
  | LlmCreateParams.McpTool
2779
2815
  > | null;
2780
2816
 
2817
+ /**
2818
+ * Whether this Retell LLM is used for warm transfer. Can only be set at creation,
2819
+ * and is ignored on update.
2820
+ */
2821
+ is_transfer_llm?: boolean | null;
2822
+
2781
2823
  /**
2782
2824
  * Knowledge base configuration for RAG retrieval.
2783
2825
  */
@@ -2818,6 +2860,8 @@ export interface LlmCreateParams {
2818
2860
  | 'gemini-3.0-flash'
2819
2861
  | 'gemini-3.1-flash-lite'
2820
2862
  | 'gemini-3.5-flash'
2863
+ | 'gemini-3.5-flash-lite'
2864
+ | 'gemini-3.6-flash'
2821
2865
  | null;
2822
2866
 
2823
2867
  /**
@@ -3485,7 +3529,7 @@ export namespace LlmCreateParams {
3485
3529
  /**
3486
3530
  * The static message to be sent in the SMS. Can contain dynamic variables.
3487
3531
  */
3488
- content?: string;
3532
+ text?: string;
3489
3533
 
3490
3534
  type?: 'predefined';
3491
3535
  }
@@ -3568,6 +3612,20 @@ export namespace LlmCreateParams {
3568
3612
  */
3569
3613
  headers?: { [key: string]: string };
3570
3614
 
3615
+ /**
3616
+ * Maximum number of times to retry the request after a failed attempt, from 0 (no
3617
+ * retry) to 5. Retries happen on any failure, with exponential backoff between
3618
+ * attempts; the backoff delay is not configurable. `timeout_ms` applies per
3619
+ * attempt rather than as a budget across all attempts, so an attempt that times
3620
+ * out is still retried and the worst-case total duration is `timeout_ms`
3621
+ * multiplied by (`max_retry` + 1) as well as any latency incurred by the
3622
+ * exponential backoff + jitter between each retry. Only the final attempt's result
3623
+ * is reported to the agent. Because retries repeat the request, only set this
3624
+ * above 0 if your endpoint is idempotent — a retried request may be processed more
3625
+ * than once. Defaults to 0 (no retry).
3626
+ */
3627
+ max_retry?: number;
3628
+
3571
3629
  /**
3572
3630
  * Method to use for the request, default to POST.
3573
3631
  */
@@ -4781,7 +4839,7 @@ export namespace LlmCreateParams {
4781
4839
  /**
4782
4840
  * The static message to be sent in the SMS. Can contain dynamic variables.
4783
4841
  */
4784
- content?: string;
4842
+ text?: string;
4785
4843
 
4786
4844
  type?: 'predefined';
4787
4845
  }
@@ -4864,6 +4922,20 @@ export namespace LlmCreateParams {
4864
4922
  */
4865
4923
  headers?: { [key: string]: string };
4866
4924
 
4925
+ /**
4926
+ * Maximum number of times to retry the request after a failed attempt, from 0 (no
4927
+ * retry) to 5. Retries happen on any failure, with exponential backoff between
4928
+ * attempts; the backoff delay is not configurable. `timeout_ms` applies per
4929
+ * attempt rather than as a budget across all attempts, so an attempt that times
4930
+ * out is still retried and the worst-case total duration is `timeout_ms`
4931
+ * multiplied by (`max_retry` + 1) as well as any latency incurred by the
4932
+ * exponential backoff + jitter between each retry. Only the final attempt's result
4933
+ * is reported to the agent. Because retries repeat the request, only set this
4934
+ * above 0 if your endpoint is idempotent — a retried request may be processed more
4935
+ * than once. Defaults to 0 (no retry).
4936
+ */
4937
+ max_retry?: number;
4938
+
4867
4939
  /**
4868
4940
  * Method to use for the request, default to POST.
4869
4941
  */
@@ -5397,6 +5469,12 @@ export interface LlmUpdateParams {
5397
5469
  | LlmUpdateParams.McpTool
5398
5470
  > | null;
5399
5471
 
5472
+ /**
5473
+ * Body param: Whether this Retell LLM is used for warm transfer. Can only be set
5474
+ * at creation, and is ignored on update.
5475
+ */
5476
+ is_transfer_llm?: boolean | null;
5477
+
5400
5478
  /**
5401
5479
  * Body param: Knowledge base configuration for RAG retrieval.
5402
5480
  */
@@ -5438,6 +5516,8 @@ export interface LlmUpdateParams {
5438
5516
  | 'gemini-3.0-flash'
5439
5517
  | 'gemini-3.1-flash-lite'
5440
5518
  | 'gemini-3.5-flash'
5519
+ | 'gemini-3.5-flash-lite'
5520
+ | 'gemini-3.6-flash'
5441
5521
  | null;
5442
5522
 
5443
5523
  /**
@@ -6105,7 +6185,7 @@ export namespace LlmUpdateParams {
6105
6185
  /**
6106
6186
  * The static message to be sent in the SMS. Can contain dynamic variables.
6107
6187
  */
6108
- content?: string;
6188
+ text?: string;
6109
6189
 
6110
6190
  type?: 'predefined';
6111
6191
  }
@@ -6188,6 +6268,20 @@ export namespace LlmUpdateParams {
6188
6268
  */
6189
6269
  headers?: { [key: string]: string };
6190
6270
 
6271
+ /**
6272
+ * Maximum number of times to retry the request after a failed attempt, from 0 (no
6273
+ * retry) to 5. Retries happen on any failure, with exponential backoff between
6274
+ * attempts; the backoff delay is not configurable. `timeout_ms` applies per
6275
+ * attempt rather than as a budget across all attempts, so an attempt that times
6276
+ * out is still retried and the worst-case total duration is `timeout_ms`
6277
+ * multiplied by (`max_retry` + 1) as well as any latency incurred by the
6278
+ * exponential backoff + jitter between each retry. Only the final attempt's result
6279
+ * is reported to the agent. Because retries repeat the request, only set this
6280
+ * above 0 if your endpoint is idempotent — a retried request may be processed more
6281
+ * than once. Defaults to 0 (no retry).
6282
+ */
6283
+ max_retry?: number;
6284
+
6191
6285
  /**
6192
6286
  * Method to use for the request, default to POST.
6193
6287
  */
@@ -7401,7 +7495,7 @@ export namespace LlmUpdateParams {
7401
7495
  /**
7402
7496
  * The static message to be sent in the SMS. Can contain dynamic variables.
7403
7497
  */
7404
- content?: string;
7498
+ text?: string;
7405
7499
 
7406
7500
  type?: 'predefined';
7407
7501
  }
@@ -7484,6 +7578,20 @@ export namespace LlmUpdateParams {
7484
7578
  */
7485
7579
  headers?: { [key: string]: string };
7486
7580
 
7581
+ /**
7582
+ * Maximum number of times to retry the request after a failed attempt, from 0 (no
7583
+ * retry) to 5. Retries happen on any failure, with exponential backoff between
7584
+ * attempts; the backoff delay is not configurable. `timeout_ms` applies per
7585
+ * attempt rather than as a budget across all attempts, so an attempt that times
7586
+ * out is still retried and the worst-case total duration is `timeout_ms`
7587
+ * multiplied by (`max_retry` + 1) as well as any latency incurred by the
7588
+ * exponential backoff + jitter between each retry. Only the final attempt's result
7589
+ * is reported to the agent. Because retries repeat the request, only set this
7590
+ * above 0 if your endpoint is idempotent — a retried request may be processed more
7591
+ * than once. Defaults to 0 (no retry).
7592
+ */
7593
+ max_retry?: number;
7594
+
7487
7595
  /**
7488
7596
  * Method to use for the request, default to POST.
7489
7597
  */
@@ -109,6 +109,28 @@ export namespace PlaygroundCompletionResponse {
109
109
  * Unique id of the message
110
110
  */
111
111
  message_id?: string;
112
+
113
+ /**
114
+ * Multimedia attachments received with this message (MMS). Display only; a textual
115
+ * summary of each attachment is already included in content. Response only —
116
+ * supplying it in a request has no effect and is silently ignored. Omitted from
117
+ * PII-scrubbed messages.
118
+ */
119
+ multimedia?: Array<MessageBase.Multimedia>;
120
+ }
121
+
122
+ export namespace MessageBase {
123
+ export interface Multimedia {
124
+ /**
125
+ * URL of the multimedia attachment.
126
+ */
127
+ url: string;
128
+
129
+ /**
130
+ * Optional textual summary of the attachment.
131
+ */
132
+ summary?: string;
133
+ }
112
134
  }
113
135
 
114
136
  export interface ToolCallInvocationMessageBase {
@@ -394,6 +416,28 @@ export namespace PlaygroundCompletionParams {
394
416
  * Unique id of the message
395
417
  */
396
418
  message_id?: string;
419
+
420
+ /**
421
+ * Multimedia attachments received with this message (MMS). Display only; a textual
422
+ * summary of each attachment is already included in content. Response only —
423
+ * supplying it in a request has no effect and is silently ignored. Omitted from
424
+ * PII-scrubbed messages.
425
+ */
426
+ multimedia?: Array<MessageBase.Multimedia>;
427
+ }
428
+
429
+ export namespace MessageBase {
430
+ export interface Multimedia {
431
+ /**
432
+ * URL of the multimedia attachment.
433
+ */
434
+ url: string;
435
+
436
+ /**
437
+ * Optional textual summary of the attachment.
438
+ */
439
+ summary?: string;
440
+ }
397
441
  }
398
442
 
399
443
  export interface ToolCallInvocationMessageBase {
@@ -231,7 +231,9 @@ export interface TestCaseDefinitionResponse {
231
231
  | 'claude-4.5-haiku'
232
232
  | 'gemini-3.0-flash'
233
233
  | 'gemini-3.1-flash-lite'
234
- | 'gemini-3.5-flash';
234
+ | 'gemini-3.5-flash'
235
+ | 'gemini-3.5-flash-lite'
236
+ | 'gemini-3.6-flash';
235
237
 
236
238
  /**
237
239
  * Array of metric names to evaluate
@@ -559,7 +561,9 @@ export interface TestCreateTestCaseDefinitionParams {
559
561
  | 'claude-4.5-haiku'
560
562
  | 'gemini-3.0-flash'
561
563
  | 'gemini-3.1-flash-lite'
562
- | 'gemini-3.5-flash';
564
+ | 'gemini-3.5-flash'
565
+ | 'gemini-3.5-flash-lite'
566
+ | 'gemini-3.6-flash';
563
567
 
564
568
  /**
565
569
  * Mock tool calls for testing
@@ -761,7 +765,9 @@ export interface TestUpdateTestCaseDefinitionParams {
761
765
  | 'claude-4.5-haiku'
762
766
  | 'gemini-3.0-flash'
763
767
  | 'gemini-3.1-flash-lite'
764
- | 'gemini-3.5-flash';
768
+ | 'gemini-3.5-flash'
769
+ | 'gemini-3.5-flash-lite'
770
+ | 'gemini-3.6-flash';
765
771
 
766
772
  /**
767
773
  * Array of metric names to evaluate
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.60.0'; // x-release-please-version
1
+ export const VERSION = '5.61.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.60.0";
1
+ export declare const VERSION = "5.61.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.60.0";
1
+ export declare const VERSION = "5.61.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '5.60.0'; // x-release-please-version
4
+ exports.VERSION = '5.61.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.60.0'; // x-release-please-version
1
+ export const VERSION = '5.61.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map