retell-sdk 5.49.1 → 5.50.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 (129) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +11 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +11 -9
  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/index.d.mts +1 -0
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +1 -0
  13. package/index.d.ts.map +1 -1
  14. package/index.js +4 -1
  15. package/index.js.map +1 -1
  16. package/index.mjs +1 -0
  17. package/index.mjs.map +1 -1
  18. package/lib/webhook_auth.d.mts +18 -0
  19. package/lib/webhook_auth.d.mts.map +1 -0
  20. package/lib/webhook_auth.d.ts +18 -0
  21. package/lib/webhook_auth.d.ts.map +1 -0
  22. package/lib/webhook_auth.js +80 -0
  23. package/lib/webhook_auth.js.map +1 -0
  24. package/lib/webhook_auth.mjs +75 -0
  25. package/lib/webhook_auth.mjs.map +1 -0
  26. package/package.json +11 -1
  27. package/resources/agent.d.mts +69 -69
  28. package/resources/agent.d.mts.map +1 -1
  29. package/resources/agent.d.ts +69 -69
  30. package/resources/agent.d.ts.map +1 -1
  31. package/resources/agent.js +30 -30
  32. package/resources/agent.js.map +1 -1
  33. package/resources/agent.mjs +30 -30
  34. package/resources/agent.mjs.map +1 -1
  35. package/resources/call.d.mts +1350 -1350
  36. package/resources/call.d.mts.map +1 -1
  37. package/resources/call.d.ts +1350 -1350
  38. package/resources/call.d.ts.map +1 -1
  39. package/resources/call.js +60 -60
  40. package/resources/call.js.map +1 -1
  41. package/resources/call.mjs +60 -60
  42. package/resources/call.mjs.map +1 -1
  43. package/resources/chat-agent.d.mts +70 -70
  44. package/resources/chat-agent.d.mts.map +1 -1
  45. package/resources/chat-agent.d.ts +70 -70
  46. package/resources/chat-agent.d.ts.map +1 -1
  47. package/resources/chat-agent.js +31 -31
  48. package/resources/chat-agent.js.map +1 -1
  49. package/resources/chat-agent.mjs +31 -31
  50. package/resources/chat-agent.mjs.map +1 -1
  51. package/resources/chat.d.mts +97 -97
  52. package/resources/chat.d.mts.map +1 -1
  53. package/resources/chat.d.ts +97 -97
  54. package/resources/chat.d.ts.map +1 -1
  55. package/resources/chat.js +55 -55
  56. package/resources/chat.js.map +1 -1
  57. package/resources/chat.mjs +55 -55
  58. package/resources/chat.mjs.map +1 -1
  59. package/resources/conversation-flow-component.d.mts +25 -25
  60. package/resources/conversation-flow-component.d.mts.map +1 -1
  61. package/resources/conversation-flow-component.d.ts +25 -25
  62. package/resources/conversation-flow-component.d.ts.map +1 -1
  63. package/resources/conversation-flow-component.js +12 -12
  64. package/resources/conversation-flow-component.js.map +1 -1
  65. package/resources/conversation-flow-component.mjs +12 -12
  66. package/resources/conversation-flow-component.mjs.map +1 -1
  67. package/resources/conversation-flow.d.mts +25 -25
  68. package/resources/conversation-flow.d.mts.map +1 -1
  69. package/resources/conversation-flow.d.ts +25 -25
  70. package/resources/conversation-flow.d.ts.map +1 -1
  71. package/resources/conversation-flow.js +12 -12
  72. package/resources/conversation-flow.js.map +1 -1
  73. package/resources/conversation-flow.mjs +12 -12
  74. package/resources/conversation-flow.mjs.map +1 -1
  75. package/resources/index.d.mts +9 -9
  76. package/resources/index.d.mts.map +1 -1
  77. package/resources/index.d.ts +9 -9
  78. package/resources/index.d.ts.map +1 -1
  79. package/resources/llm.d.mts +24 -24
  80. package/resources/llm.d.mts.map +1 -1
  81. package/resources/llm.d.ts +24 -24
  82. package/resources/llm.d.ts.map +1 -1
  83. package/resources/llm.js +11 -11
  84. package/resources/llm.js.map +1 -1
  85. package/resources/llm.mjs +11 -11
  86. package/resources/llm.mjs.map +1 -1
  87. package/resources/phone-number.d.mts +130 -130
  88. package/resources/phone-number.d.mts.map +1 -1
  89. package/resources/phone-number.d.ts +130 -130
  90. package/resources/phone-number.d.ts.map +1 -1
  91. package/resources/phone-number.js +27 -27
  92. package/resources/phone-number.js.map +1 -1
  93. package/resources/phone-number.mjs +27 -27
  94. package/resources/phone-number.mjs.map +1 -1
  95. package/resources/tests.d.mts +95 -95
  96. package/resources/tests.d.mts.map +1 -1
  97. package/resources/tests.d.ts +95 -95
  98. package/resources/tests.d.ts.map +1 -1
  99. package/resources/tests.js +27 -27
  100. package/resources/tests.js.map +1 -1
  101. package/resources/tests.mjs +27 -27
  102. package/resources/tests.mjs.map +1 -1
  103. package/resources/voice.d.mts +8 -8
  104. package/resources/voice.d.mts.map +1 -1
  105. package/resources/voice.d.ts +8 -8
  106. package/resources/voice.d.ts.map +1 -1
  107. package/resources/voice.js +12 -12
  108. package/resources/voice.js.map +1 -1
  109. package/resources/voice.mjs +12 -12
  110. package/resources/voice.mjs.map +1 -1
  111. package/src/client.ts +21 -18
  112. package/src/index.ts +1 -0
  113. package/src/lib/webhook_auth.ts +112 -0
  114. package/src/resources/agent.ts +90 -90
  115. package/src/resources/call.ts +1821 -1821
  116. package/src/resources/chat-agent.ts +95 -95
  117. package/src/resources/chat.ts +112 -112
  118. package/src/resources/conversation-flow-component.ts +34 -34
  119. package/src/resources/conversation-flow.ts +34 -34
  120. package/src/resources/index.ts +18 -18
  121. package/src/resources/llm.ts +30 -30
  122. package/src/resources/phone-number.ts +152 -152
  123. package/src/resources/tests.ts +136 -136
  124. package/src/resources/voice.ts +12 -12
  125. package/src/version.ts +1 -1
  126. package/version.d.mts +1 -1
  127. package/version.d.ts +1 -1
  128. package/version.js +1 -1
  129. package/version.mjs +1 -1
@@ -53,22 +53,6 @@ export class ConversationFlow extends APIResource {
53
53
  return this._client.get(path`/get-conversation-flow/${conversationFlowID}`, { query, ...options });
54
54
  }
55
55
 
56
- /**
57
- * List conversation flows with pagination
58
- *
59
- * @example
60
- * ```ts
61
- * const conversationFlows =
62
- * await client.conversationFlow.list();
63
- * ```
64
- */
65
- list(
66
- query: ConversationFlowListParams | null | undefined = {},
67
- options?: RequestOptions,
68
- ): APIPromise<ConversationFlowListResponse> {
69
- return this._client.get('/v2/list-conversation-flows', { query, ...options });
70
- }
71
-
72
56
  /**
73
57
  * Update an existing conversation flow
74
58
  *
@@ -93,6 +77,22 @@ export class ConversationFlow extends APIResource {
93
77
  });
94
78
  }
95
79
 
80
+ /**
81
+ * List conversation flows with pagination
82
+ *
83
+ * @example
84
+ * ```ts
85
+ * const conversationFlows =
86
+ * await client.conversationFlow.list();
87
+ * ```
88
+ */
89
+ list(
90
+ query: ConversationFlowListParams | null | undefined = {},
91
+ options?: RequestOptions,
92
+ ): APIPromise<ConversationFlowListResponse> {
93
+ return this._client.get('/v2/list-conversation-flows', { query, ...options });
94
+ }
95
+
96
96
  /**
97
97
  * Delete a conversation flow and all its versions
98
98
  *
@@ -34687,23 +34687,6 @@ export interface ConversationFlowRetrieveParams {
34687
34687
  version?: number;
34688
34688
  }
34689
34689
 
34690
- export interface ConversationFlowListParams {
34691
- /**
34692
- * Maximum number of items to return.
34693
- */
34694
- limit?: number;
34695
-
34696
- /**
34697
- * Pagination key for fetching the next page.
34698
- */
34699
- pagination_key?: string;
34700
-
34701
- /**
34702
- * Sort order for results.
34703
- */
34704
- sort_order?: 'ascending' | 'descending';
34705
- }
34706
-
34707
34690
  export interface ConversationFlowUpdateParams {
34708
34691
  /**
34709
34692
  * Query param: Optional version of the conversation flow to update. Default to
@@ -51980,13 +51963,30 @@ export namespace ConversationFlowUpdateParams {
51980
51963
  }
51981
51964
  }
51982
51965
 
51966
+ export interface ConversationFlowListParams {
51967
+ /**
51968
+ * Maximum number of items to return.
51969
+ */
51970
+ limit?: number;
51971
+
51972
+ /**
51973
+ * Pagination key for fetching the next page.
51974
+ */
51975
+ pagination_key?: string;
51976
+
51977
+ /**
51978
+ * Sort order for results.
51979
+ */
51980
+ sort_order?: 'ascending' | 'descending';
51981
+ }
51982
+
51983
51983
  export declare namespace ConversationFlow {
51984
51984
  export {
51985
51985
  type ConversationFlowResponse as ConversationFlowResponse,
51986
51986
  type ConversationFlowListResponse as ConversationFlowListResponse,
51987
51987
  type ConversationFlowCreateParams as ConversationFlowCreateParams,
51988
51988
  type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams,
51989
- type ConversationFlowListParams as ConversationFlowListParams,
51990
51989
  type ConversationFlowUpdateParams as ConversationFlowUpdateParams,
51990
+ type ConversationFlowListParams as ConversationFlowListParams,
51991
51991
  };
51992
51992
  }
@@ -8,11 +8,11 @@ export {
8
8
  type AgentGetVersionsResponse,
9
9
  type AgentCreateParams,
10
10
  type AgentRetrieveParams,
11
- type AgentListParams,
12
11
  type AgentUpdateParams,
13
- type AgentPublishParams,
12
+ type AgentListParams,
14
13
  type AgentCreateVersionParams,
15
14
  type AgentDeleteVersionParams,
15
+ type AgentPublishParams,
16
16
  } from './agent';
17
17
  export { BatchCall, type BatchCallResponse, type BatchCallCreateBatchCallParams } from './batch-call';
18
18
  export {
@@ -21,11 +21,11 @@ export {
21
21
  type PhoneCallResponse,
22
22
  type WebCallResponse,
23
23
  type CallListResponse,
24
+ type CallUpdateParams,
25
+ type CallListParams,
24
26
  type CallCreatePhoneCallParams,
25
- type CallRegisterPhoneCallParams,
26
27
  type CallCreateWebCallParams,
27
- type CallListParams,
28
- type CallUpdateParams,
28
+ type CallRegisterPhoneCallParams,
29
29
  } from './call';
30
30
  export {
31
31
  Chat,
@@ -33,10 +33,10 @@ export {
33
33
  type ChatListResponse,
34
34
  type ChatCreateChatCompletionResponse,
35
35
  type ChatCreateParams,
36
- type ChatCreateSMSChatParams,
37
- type ChatCreateChatCompletionParams,
38
- type ChatListParams,
39
36
  type ChatUpdateParams,
37
+ type ChatListParams,
38
+ type ChatCreateChatCompletionParams,
39
+ type ChatCreateSMSChatParams,
40
40
  } from './chat';
41
41
  export {
42
42
  ChatAgent,
@@ -46,11 +46,11 @@ export {
46
46
  type ChatAgentGetVersionsResponse,
47
47
  type ChatAgentCreateParams,
48
48
  type ChatAgentRetrieveParams,
49
- type ChatAgentListParams,
50
49
  type ChatAgentUpdateParams,
51
- type ChatAgentPublishParams,
50
+ type ChatAgentListParams,
52
51
  type ChatAgentCreateVersionParams,
53
52
  type ChatAgentDeleteVersionParams,
53
+ type ChatAgentPublishParams,
54
54
  } from './chat-agent';
55
55
  export { Concurrency, type ConcurrencyRetrieveResponse } from './concurrency';
56
56
  export {
@@ -59,16 +59,16 @@ export {
59
59
  type ConversationFlowListResponse,
60
60
  type ConversationFlowCreateParams,
61
61
  type ConversationFlowRetrieveParams,
62
- type ConversationFlowListParams,
63
62
  type ConversationFlowUpdateParams,
63
+ type ConversationFlowListParams,
64
64
  } from './conversation-flow';
65
65
  export {
66
66
  ConversationFlowComponent,
67
67
  type ConversationFlowComponentResponse,
68
68
  type ConversationFlowComponentListResponse,
69
69
  type ConversationFlowComponentCreateParams,
70
- type ConversationFlowComponentListParams,
71
70
  type ConversationFlowComponentUpdateParams,
71
+ type ConversationFlowComponentListParams,
72
72
  } from './conversation-flow-component';
73
73
  export {
74
74
  ExportRequest,
@@ -89,8 +89,8 @@ export {
89
89
  type LlmListResponse,
90
90
  type LlmCreateParams,
91
91
  type LlmRetrieveParams,
92
- type LlmListParams,
93
92
  type LlmUpdateParams,
93
+ type LlmListParams,
94
94
  } from './llm';
95
95
  export {
96
96
  McpTool,
@@ -103,9 +103,9 @@ export {
103
103
  type PhoneNumberResponse,
104
104
  type PhoneNumberListResponse,
105
105
  type PhoneNumberCreateParams,
106
- type PhoneNumberImportParams,
107
- type PhoneNumberListParams,
108
106
  type PhoneNumberUpdateParams,
107
+ type PhoneNumberListParams,
108
+ type PhoneNumberImportParams,
109
109
  } from './phone-number';
110
110
  export { Playground, type PlaygroundCompletionResponse, type PlaygroundCompletionParams } from './playground';
111
111
  export {
@@ -116,12 +116,12 @@ export {
116
116
  type TestListBatchTestsResponse,
117
117
  type TestListTestCaseDefinitionsResponse,
118
118
  type TestListTestRunsResponse,
119
- type TestCreateTestCaseDefinitionParams,
120
- type TestListTestCaseDefinitionsParams,
121
- type TestUpdateTestCaseDefinitionParams,
122
119
  type TestCreateBatchTestParams,
120
+ type TestCreateTestCaseDefinitionParams,
123
121
  type TestListBatchTestsParams,
122
+ type TestListTestCaseDefinitionsParams,
124
123
  type TestListTestRunsParams,
124
+ type TestUpdateTestCaseDefinitionParams,
125
125
  } from './tests';
126
126
  export {
127
127
  Voice,
@@ -38,18 +38,6 @@ export class Llm extends APIResource {
38
38
  return this._client.get(path`/get-retell-llm/${llmID}`, { query, ...options });
39
39
  }
40
40
 
41
- /**
42
- * List Retell LLM Response Engines with pagination
43
- *
44
- * @example
45
- * ```ts
46
- * const llms = await client.llm.list();
47
- * ```
48
- */
49
- list(query: LlmListParams | null | undefined = {}, options?: RequestOptions): APIPromise<LlmListResponse> {
50
- return this._client.get('/v2/list-retell-llms', { query, ...options });
51
- }
52
-
53
41
  /**
54
42
  * Update an existing Retell LLM Response Engine
55
43
  *
@@ -69,6 +57,18 @@ export class Llm extends APIResource {
69
57
  return this._client.patch(path`/update-retell-llm/${llmID}`, { query: { version }, body, ...options });
70
58
  }
71
59
 
60
+ /**
61
+ * List Retell LLM Response Engines with pagination
62
+ *
63
+ * @example
64
+ * ```ts
65
+ * const llms = await client.llm.list();
66
+ * ```
67
+ */
68
+ list(query: LlmListParams | null | undefined = {}, options?: RequestOptions): APIPromise<LlmListResponse> {
69
+ return this._client.get('/v2/list-retell-llms', { query, ...options });
70
+ }
71
+
72
72
  /**
73
73
  * Delete an existing Retell LLM Response Engine
74
74
  *
@@ -5335,23 +5335,6 @@ export interface LlmRetrieveParams {
5335
5335
  version?: number;
5336
5336
  }
5337
5337
 
5338
- export interface LlmListParams {
5339
- /**
5340
- * Maximum number of items to return.
5341
- */
5342
- limit?: number;
5343
-
5344
- /**
5345
- * Pagination key for fetching the next page.
5346
- */
5347
- pagination_key?: string;
5348
-
5349
- /**
5350
- * Sort order for results.
5351
- */
5352
- sort_order?: 'ascending' | 'descending';
5353
- }
5354
-
5355
5338
  export interface LlmUpdateParams {
5356
5339
  /**
5357
5340
  * Query param: Optional version of the API to use for this request. Default to
@@ -7965,13 +7948,30 @@ export namespace LlmUpdateParams {
7965
7948
  }
7966
7949
  }
7967
7950
 
7951
+ export interface LlmListParams {
7952
+ /**
7953
+ * Maximum number of items to return.
7954
+ */
7955
+ limit?: number;
7956
+
7957
+ /**
7958
+ * Pagination key for fetching the next page.
7959
+ */
7960
+ pagination_key?: string;
7961
+
7962
+ /**
7963
+ * Sort order for results.
7964
+ */
7965
+ sort_order?: 'ascending' | 'descending';
7966
+ }
7967
+
7968
7968
  export declare namespace Llm {
7969
7969
  export {
7970
7970
  type LlmResponse as LlmResponse,
7971
7971
  type LlmListResponse as LlmListResponse,
7972
7972
  type LlmCreateParams as LlmCreateParams,
7973
7973
  type LlmRetrieveParams as LlmRetrieveParams,
7974
- type LlmListParams as LlmListParams,
7975
7974
  type LlmUpdateParams as LlmUpdateParams,
7975
+ type LlmListParams as LlmListParams,
7976
7976
  };
7977
7977
  }