retell-sdk 4.40.0 → 4.41.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.
@@ -816,11 +816,6 @@ export namespace ConversationFlowResponse {
816
816
  */
817
817
  id: string;
818
818
 
819
- /**
820
- * Whether to speak during tool execution
821
- */
822
- speak_during_execution: boolean;
823
-
824
819
  /**
825
820
  * Tool ID for function nodes
826
821
  */
@@ -862,6 +857,11 @@ export namespace ConversationFlowResponse {
862
857
  * Optional name for display purposes
863
858
  */
864
859
  name?: string;
860
+
861
+ /**
862
+ * Whether to speak during tool execution
863
+ */
864
+ speak_during_execution?: boolean;
865
865
  }
866
866
 
867
867
  export namespace FunctionNode {
@@ -2905,11 +2905,6 @@ export namespace ConversationFlowResponse {
2905
2905
  */
2906
2906
  mcp_tool_name: string;
2907
2907
 
2908
- /**
2909
- * If true, will speak during execution
2910
- */
2911
- speak_during_execution: boolean;
2912
-
2913
2908
  /**
2914
2909
  * Type of the node
2915
2910
  */
@@ -2948,6 +2943,11 @@ export namespace ConversationFlowResponse {
2948
2943
  * is the path to the variable in the response
2949
2944
  */
2950
2945
  response_variables?: { [key: string]: string };
2946
+
2947
+ /**
2948
+ * If true, will speak during execution
2949
+ */
2950
+ speak_during_execution?: boolean;
2951
2951
  }
2952
2952
 
2953
2953
  export namespace McpNode {
@@ -3985,11 +3985,6 @@ export namespace ConversationFlowCreateParams {
3985
3985
  */
3986
3986
  id: string;
3987
3987
 
3988
- /**
3989
- * Whether to speak during tool execution
3990
- */
3991
- speak_during_execution: boolean;
3992
-
3993
3988
  /**
3994
3989
  * Tool ID for function nodes
3995
3990
  */
@@ -4031,6 +4026,11 @@ export namespace ConversationFlowCreateParams {
4031
4026
  * Optional name for display purposes
4032
4027
  */
4033
4028
  name?: string;
4029
+
4030
+ /**
4031
+ * Whether to speak during tool execution
4032
+ */
4033
+ speak_during_execution?: boolean;
4034
4034
  }
4035
4035
 
4036
4036
  export namespace FunctionNode {
@@ -6074,11 +6074,6 @@ export namespace ConversationFlowCreateParams {
6074
6074
  */
6075
6075
  mcp_tool_name: string;
6076
6076
 
6077
- /**
6078
- * If true, will speak during execution
6079
- */
6080
- speak_during_execution: boolean;
6081
-
6082
6077
  /**
6083
6078
  * Type of the node
6084
6079
  */
@@ -6117,6 +6112,11 @@ export namespace ConversationFlowCreateParams {
6117
6112
  * is the path to the variable in the response
6118
6113
  */
6119
6114
  response_variables?: { [key: string]: string };
6115
+
6116
+ /**
6117
+ * If true, will speak during execution
6118
+ */
6119
+ speak_during_execution?: boolean;
6120
6120
  }
6121
6121
 
6122
6122
  export namespace McpNode {
@@ -7230,11 +7230,6 @@ export namespace ConversationFlowUpdateParams {
7230
7230
  */
7231
7231
  id: string;
7232
7232
 
7233
- /**
7234
- * Whether to speak during tool execution
7235
- */
7236
- speak_during_execution: boolean;
7237
-
7238
7233
  /**
7239
7234
  * Tool ID for function nodes
7240
7235
  */
@@ -7276,6 +7271,11 @@ export namespace ConversationFlowUpdateParams {
7276
7271
  * Optional name for display purposes
7277
7272
  */
7278
7273
  name?: string;
7274
+
7275
+ /**
7276
+ * Whether to speak during tool execution
7277
+ */
7278
+ speak_during_execution?: boolean;
7279
7279
  }
7280
7280
 
7281
7281
  export namespace FunctionNode {
@@ -9319,11 +9319,6 @@ export namespace ConversationFlowUpdateParams {
9319
9319
  */
9320
9320
  mcp_tool_name: string;
9321
9321
 
9322
- /**
9323
- * If true, will speak during execution
9324
- */
9325
- speak_during_execution: boolean;
9326
-
9327
9322
  /**
9328
9323
  * Type of the node
9329
9324
  */
@@ -9362,6 +9357,11 @@ export namespace ConversationFlowUpdateParams {
9362
9357
  * is the path to the variable in the response
9363
9358
  */
9364
9359
  response_variables?: { [key: string]: string };
9360
+
9361
+ /**
9362
+ * If true, will speak during execution
9363
+ */
9364
+ speak_during_execution?: boolean;
9365
9365
  }
9366
9366
 
9367
9367
  export namespace McpNode {
@@ -9758,10 +9758,26 @@ export namespace ConversationFlowUpdateParams {
9758
9758
  }
9759
9759
 
9760
9760
  export interface ConversationFlowListParams {
9761
+ /**
9762
+ * Limit the number of conversation flows returned. Default 1000, Max 1000. To
9763
+ * retrieve more than 1000, use pagination_key to continue fetching the next page.
9764
+ */
9761
9765
  limit?: number;
9762
9766
 
9767
+ /**
9768
+ * The pagination key to continue fetching the next page of conversation flows.
9769
+ * Pagination key is represented by a conversation flow id here, and it's exclusive
9770
+ * (not included in the fetched conversation flows). The last conversation flow id
9771
+ * from the list conversation flows is usually used as pagination key here. If not
9772
+ * set, will start from the beginning.
9773
+ */
9763
9774
  pagination_key?: string;
9764
9775
 
9776
+ /**
9777
+ * Specifies the version of the conversation flow associated with the
9778
+ * pagination_key. When paginating, both the pagination_key and its version must be
9779
+ * provided to ensure consistent ordering and to fetch the next page correctly.
9780
+ */
9765
9781
  pagination_key_version?: number;
9766
9782
  }
9767
9783
 
@@ -8,6 +8,7 @@ export {
8
8
  type AgentCreateParams,
9
9
  type AgentRetrieveParams,
10
10
  type AgentUpdateParams,
11
+ type AgentListParams,
11
12
  } from './agent';
12
13
  export { BatchCall, type BatchCallResponse, type BatchCallCreateBatchCallParams } from './batch-call';
13
14
  export {
@@ -54,6 +55,7 @@ export {
54
55
  type LlmCreateParams,
55
56
  type LlmRetrieveParams,
56
57
  type LlmUpdateParams,
58
+ type LlmListParams,
57
59
  } from './llm';
58
60
  export {
59
61
  PhoneNumber,
@@ -80,8 +80,16 @@ export class Llm extends APIResource {
80
80
  * const llmResponses = await client.llm.list();
81
81
  * ```
82
82
  */
83
- list(options?: Core.RequestOptions): Core.APIPromise<LlmListResponse> {
84
- return this._client.get('/list-retell-llms', options);
83
+ list(query?: LlmListParams, options?: Core.RequestOptions): Core.APIPromise<LlmListResponse>;
84
+ list(options?: Core.RequestOptions): Core.APIPromise<LlmListResponse>;
85
+ list(
86
+ query: LlmListParams | Core.RequestOptions = {},
87
+ options?: Core.RequestOptions,
88
+ ): Core.APIPromise<LlmListResponse> {
89
+ if (isRequestOptions(query)) {
90
+ return this.list({}, query);
91
+ }
92
+ return this._client.get('/list-retell-llms', { query, ...options });
85
93
  }
86
94
 
87
95
  /**
@@ -529,14 +537,6 @@ export namespace LlmResponse {
529
537
  */
530
538
  speak_after_execution: boolean;
531
539
 
532
- /**
533
- * Determines whether the agent would say sentence like "One moment, let me check
534
- * that." when executing the function. Recommend to turn on if your function call
535
- * takes over 1s (including network) to complete, so that your agent remains
536
- * responsive.
537
- */
538
- speak_during_execution: boolean;
539
-
540
540
  type: 'custom';
541
541
 
542
542
  /**
@@ -583,6 +583,14 @@ export namespace LlmResponse {
583
583
  */
584
584
  response_variables?: { [key: string]: string };
585
585
 
586
+ /**
587
+ * Determines whether the agent would say sentence like "One moment, let me check
588
+ * that." when executing the function. Recommend to turn on if your function call
589
+ * takes over 1s (including network) to complete, so that your agent remains
590
+ * responsive.
591
+ */
592
+ speak_during_execution?: boolean;
593
+
586
594
  /**
587
595
  * The maximum time in milliseconds the tool can run before it's considered
588
596
  * timeout. If the tool times out, the agent would have that info. The minimum
@@ -1224,14 +1232,6 @@ export namespace LlmResponse {
1224
1232
  */
1225
1233
  speak_after_execution: boolean;
1226
1234
 
1227
- /**
1228
- * Determines whether the agent would say sentence like "One moment, let me check
1229
- * that." when executing the function. Recommend to turn on if your function call
1230
- * takes over 1s (including network) to complete, so that your agent remains
1231
- * responsive.
1232
- */
1233
- speak_during_execution: boolean;
1234
-
1235
1235
  type: 'custom';
1236
1236
 
1237
1237
  /**
@@ -1278,6 +1278,14 @@ export namespace LlmResponse {
1278
1278
  */
1279
1279
  response_variables?: { [key: string]: string };
1280
1280
 
1281
+ /**
1282
+ * Determines whether the agent would say sentence like "One moment, let me check
1283
+ * that." when executing the function. Recommend to turn on if your function call
1284
+ * takes over 1s (including network) to complete, so that your agent remains
1285
+ * responsive.
1286
+ */
1287
+ speak_during_execution?: boolean;
1288
+
1281
1289
  /**
1282
1290
  * The maximum time in milliseconds the tool can run before it's considered
1283
1291
  * timeout. If the tool times out, the agent would have that info. The minimum
@@ -1940,14 +1948,6 @@ export namespace LlmCreateParams {
1940
1948
  */
1941
1949
  speak_after_execution: boolean;
1942
1950
 
1943
- /**
1944
- * Determines whether the agent would say sentence like "One moment, let me check
1945
- * that." when executing the function. Recommend to turn on if your function call
1946
- * takes over 1s (including network) to complete, so that your agent remains
1947
- * responsive.
1948
- */
1949
- speak_during_execution: boolean;
1950
-
1951
1951
  type: 'custom';
1952
1952
 
1953
1953
  /**
@@ -1994,6 +1994,14 @@ export namespace LlmCreateParams {
1994
1994
  */
1995
1995
  response_variables?: { [key: string]: string };
1996
1996
 
1997
+ /**
1998
+ * Determines whether the agent would say sentence like "One moment, let me check
1999
+ * that." when executing the function. Recommend to turn on if your function call
2000
+ * takes over 1s (including network) to complete, so that your agent remains
2001
+ * responsive.
2002
+ */
2003
+ speak_during_execution?: boolean;
2004
+
1997
2005
  /**
1998
2006
  * The maximum time in milliseconds the tool can run before it's considered
1999
2007
  * timeout. If the tool times out, the agent would have that info. The minimum
@@ -2635,14 +2643,6 @@ export namespace LlmCreateParams {
2635
2643
  */
2636
2644
  speak_after_execution: boolean;
2637
2645
 
2638
- /**
2639
- * Determines whether the agent would say sentence like "One moment, let me check
2640
- * that." when executing the function. Recommend to turn on if your function call
2641
- * takes over 1s (including network) to complete, so that your agent remains
2642
- * responsive.
2643
- */
2644
- speak_during_execution: boolean;
2645
-
2646
2646
  type: 'custom';
2647
2647
 
2648
2648
  /**
@@ -2689,6 +2689,14 @@ export namespace LlmCreateParams {
2689
2689
  */
2690
2690
  response_variables?: { [key: string]: string };
2691
2691
 
2692
+ /**
2693
+ * Determines whether the agent would say sentence like "One moment, let me check
2694
+ * that." when executing the function. Recommend to turn on if your function call
2695
+ * takes over 1s (including network) to complete, so that your agent remains
2696
+ * responsive.
2697
+ */
2698
+ speak_during_execution?: boolean;
2699
+
2692
2700
  /**
2693
2701
  * The maximum time in milliseconds the tool can run before it's considered
2694
2702
  * timeout. If the tool times out, the agent would have that info. The minimum
@@ -3365,14 +3373,6 @@ export namespace LlmUpdateParams {
3365
3373
  */
3366
3374
  speak_after_execution: boolean;
3367
3375
 
3368
- /**
3369
- * Determines whether the agent would say sentence like "One moment, let me check
3370
- * that." when executing the function. Recommend to turn on if your function call
3371
- * takes over 1s (including network) to complete, so that your agent remains
3372
- * responsive.
3373
- */
3374
- speak_during_execution: boolean;
3375
-
3376
3376
  type: 'custom';
3377
3377
 
3378
3378
  /**
@@ -3419,6 +3419,14 @@ export namespace LlmUpdateParams {
3419
3419
  */
3420
3420
  response_variables?: { [key: string]: string };
3421
3421
 
3422
+ /**
3423
+ * Determines whether the agent would say sentence like "One moment, let me check
3424
+ * that." when executing the function. Recommend to turn on if your function call
3425
+ * takes over 1s (including network) to complete, so that your agent remains
3426
+ * responsive.
3427
+ */
3428
+ speak_during_execution?: boolean;
3429
+
3422
3430
  /**
3423
3431
  * The maximum time in milliseconds the tool can run before it's considered
3424
3432
  * timeout. If the tool times out, the agent would have that info. The minimum
@@ -4060,14 +4068,6 @@ export namespace LlmUpdateParams {
4060
4068
  */
4061
4069
  speak_after_execution: boolean;
4062
4070
 
4063
- /**
4064
- * Determines whether the agent would say sentence like "One moment, let me check
4065
- * that." when executing the function. Recommend to turn on if your function call
4066
- * takes over 1s (including network) to complete, so that your agent remains
4067
- * responsive.
4068
- */
4069
- speak_during_execution: boolean;
4070
-
4071
4071
  type: 'custom';
4072
4072
 
4073
4073
  /**
@@ -4114,6 +4114,14 @@ export namespace LlmUpdateParams {
4114
4114
  */
4115
4115
  response_variables?: { [key: string]: string };
4116
4116
 
4117
+ /**
4118
+ * Determines whether the agent would say sentence like "One moment, let me check
4119
+ * that." when executing the function. Recommend to turn on if your function call
4120
+ * takes over 1s (including network) to complete, so that your agent remains
4121
+ * responsive.
4122
+ */
4123
+ speak_during_execution?: boolean;
4124
+
4117
4125
  /**
4118
4126
  * The maximum time in milliseconds the tool can run before it's considered
4119
4127
  * timeout. If the tool times out, the agent would have that info. The minimum
@@ -4361,6 +4369,28 @@ export namespace LlmUpdateParams {
4361
4369
  }
4362
4370
  }
4363
4371
 
4372
+ export interface LlmListParams {
4373
+ /**
4374
+ * A limit on the number of objects to be returned. Limit can range between 1 and
4375
+ * 1000, and the default is 1000.
4376
+ */
4377
+ limit?: number;
4378
+
4379
+ /**
4380
+ * The pagination key to continue fetching the next page of LLMs. Pagination key is
4381
+ * represented by a llm id, pagination key and version pair is exclusive (not
4382
+ * included in the fetched page). If not set, will start from the beginning.
4383
+ */
4384
+ pagination_key?: string;
4385
+
4386
+ /**
4387
+ * Specifies the version of the llm associated with the pagination_key. When
4388
+ * paginating, both the pagination_key and its version must be provided to ensure
4389
+ * consistent ordering and to fetch the next page correctly.
4390
+ */
4391
+ pagination_key_version?: number;
4392
+ }
4393
+
4364
4394
  export declare namespace Llm {
4365
4395
  export {
4366
4396
  type LlmResponse as LlmResponse,
@@ -4368,5 +4398,6 @@ export declare namespace Llm {
4368
4398
  type LlmCreateParams as LlmCreateParams,
4369
4399
  type LlmRetrieveParams as LlmRetrieveParams,
4370
4400
  type LlmUpdateParams as LlmUpdateParams,
4401
+ type LlmListParams as LlmListParams,
4371
4402
  };
4372
4403
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.40.0'; // x-release-please-version
1
+ export const VERSION = '4.41.0'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.40.0";
1
+ export declare const VERSION = "4.41.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 = '4.40.0'; // x-release-please-version
4
+ exports.VERSION = '4.41.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.40.0'; // x-release-please-version
1
+ export const VERSION = '4.41.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map