retell-sdk 5.16.0 → 5.18.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 (112) hide show
  1. package/CHANGELOG.md +16 -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 +6 -6
  12. package/resources/agent.d.mts.map +1 -1
  13. package/resources/agent.d.ts +6 -6
  14. package/resources/agent.d.ts.map +1 -1
  15. package/resources/batch-call.d.mts +4 -4
  16. package/resources/batch-call.d.mts.map +1 -1
  17. package/resources/batch-call.d.ts +4 -4
  18. package/resources/batch-call.d.ts.map +1 -1
  19. package/resources/call.d.mts +13 -16
  20. package/resources/call.d.mts.map +1 -1
  21. package/resources/call.d.ts +13 -16
  22. package/resources/call.d.ts.map +1 -1
  23. package/resources/call.js +1 -4
  24. package/resources/call.js.map +1 -1
  25. package/resources/call.mjs +1 -4
  26. package/resources/call.mjs.map +1 -1
  27. package/resources/chat-agent.d.mts +3 -3
  28. package/resources/chat-agent.d.mts.map +1 -1
  29. package/resources/chat-agent.d.ts +3 -3
  30. package/resources/chat-agent.d.ts.map +1 -1
  31. package/resources/chat.d.mts +1 -4
  32. package/resources/chat.d.mts.map +1 -1
  33. package/resources/chat.d.ts +1 -4
  34. package/resources/chat.d.ts.map +1 -1
  35. package/resources/chat.js +1 -4
  36. package/resources/chat.js.map +1 -1
  37. package/resources/chat.mjs +1 -4
  38. package/resources/chat.mjs.map +1 -1
  39. package/resources/conversation-flow-component.d.mts +43 -47
  40. package/resources/conversation-flow-component.d.mts.map +1 -1
  41. package/resources/conversation-flow-component.d.ts +43 -47
  42. package/resources/conversation-flow-component.d.ts.map +1 -1
  43. package/resources/conversation-flow-component.js +1 -5
  44. package/resources/conversation-flow-component.js.map +1 -1
  45. package/resources/conversation-flow-component.mjs +1 -5
  46. package/resources/conversation-flow-component.mjs.map +1 -1
  47. package/resources/conversation-flow.d.mts +88 -92
  48. package/resources/conversation-flow.d.mts.map +1 -1
  49. package/resources/conversation-flow.d.ts +88 -92
  50. package/resources/conversation-flow.d.ts.map +1 -1
  51. package/resources/conversation-flow.js +1 -5
  52. package/resources/conversation-flow.js.map +1 -1
  53. package/resources/conversation-flow.mjs +1 -5
  54. package/resources/conversation-flow.mjs.map +1 -1
  55. package/resources/export-request.d.mts +48 -0
  56. package/resources/export-request.d.mts.map +1 -0
  57. package/resources/export-request.d.ts +48 -0
  58. package/resources/export-request.d.ts.map +1 -0
  59. package/resources/export-request.js +15 -0
  60. package/resources/export-request.js.map +1 -0
  61. package/resources/export-request.mjs +11 -0
  62. package/resources/export-request.mjs.map +1 -0
  63. package/resources/index.d.mts +1 -0
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +1 -0
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js +3 -1
  68. package/resources/index.js.map +1 -1
  69. package/resources/index.mjs +1 -0
  70. package/resources/index.mjs.map +1 -1
  71. package/resources/llm.d.mts +4 -7
  72. package/resources/llm.d.mts.map +1 -1
  73. package/resources/llm.d.ts +4 -7
  74. package/resources/llm.d.ts.map +1 -1
  75. package/resources/llm.js +1 -4
  76. package/resources/llm.js.map +1 -1
  77. package/resources/llm.mjs +1 -4
  78. package/resources/llm.mjs.map +1 -1
  79. package/resources/phone-number.d.mts +1 -5
  80. package/resources/phone-number.d.mts.map +1 -1
  81. package/resources/phone-number.d.ts +1 -5
  82. package/resources/phone-number.d.ts.map +1 -1
  83. package/resources/phone-number.js +1 -5
  84. package/resources/phone-number.js.map +1 -1
  85. package/resources/phone-number.mjs +1 -5
  86. package/resources/phone-number.mjs.map +1 -1
  87. package/resources/tests.d.mts +9 -3
  88. package/resources/tests.d.mts.map +1 -1
  89. package/resources/tests.d.ts +9 -3
  90. package/resources/tests.d.ts.map +1 -1
  91. package/resources/tests.js +6 -0
  92. package/resources/tests.js.map +1 -1
  93. package/resources/tests.mjs +6 -0
  94. package/resources/tests.mjs.map +1 -1
  95. package/src/client.ts +13 -0
  96. package/src/resources/agent.ts +6 -3
  97. package/src/resources/batch-call.ts +4 -1
  98. package/src/resources/call.ts +13 -7
  99. package/src/resources/chat-agent.ts +3 -0
  100. package/src/resources/chat.ts +1 -4
  101. package/src/resources/conversation-flow-component.ts +43 -5
  102. package/src/resources/conversation-flow.ts +88 -5
  103. package/src/resources/export-request.ts +71 -0
  104. package/src/resources/index.ts +5 -0
  105. package/src/resources/llm.ts +4 -4
  106. package/src/resources/phone-number.ts +1 -5
  107. package/src/resources/tests.ts +9 -0
  108. package/src/version.ts +1 -1
  109. package/version.d.mts +1 -1
  110. package/version.d.ts +1 -1
  111. package/version.js +1 -1
  112. package/version.mjs +1 -1
@@ -0,0 +1,71 @@
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 ExportRequest extends APIResource {
8
+ /**
9
+ * List export requests with pagination
10
+ */
11
+ list(
12
+ query: ExportRequestListParams | null | undefined = {},
13
+ options?: RequestOptions,
14
+ ): APIPromise<ExportRequestListResponse> {
15
+ return this._client.get('/v2/list-export-requests', { query, ...options });
16
+ }
17
+ }
18
+
19
+ export interface ExportRequestListResponse {
20
+ /**
21
+ * Whether more results are available.
22
+ */
23
+ has_more?: boolean;
24
+
25
+ items?: Array<ExportRequestListResponse.Item>;
26
+
27
+ /**
28
+ * Pagination key for the next page.
29
+ */
30
+ pagination_key?: string;
31
+ }
32
+
33
+ export namespace ExportRequestListResponse {
34
+ export interface Item {
35
+ channel?: 'call' | 'chat';
36
+
37
+ created_timestamp?: number;
38
+
39
+ export_request_id?: string;
40
+
41
+ status?: 'created' | 'processing' | 'completed' | 'error';
42
+
43
+ timezone?: string;
44
+
45
+ url?: string;
46
+ }
47
+ }
48
+
49
+ export interface ExportRequestListParams {
50
+ /**
51
+ * Maximum number of items to return.
52
+ */
53
+ limit?: number;
54
+
55
+ /**
56
+ * Pagination key for fetching the next page.
57
+ */
58
+ pagination_key?: string;
59
+
60
+ /**
61
+ * Sort order for results.
62
+ */
63
+ sort_order?: 'ascending' | 'descending';
64
+ }
65
+
66
+ export declare namespace ExportRequest {
67
+ export {
68
+ type ExportRequestListResponse as ExportRequestListResponse,
69
+ type ExportRequestListParams as ExportRequestListParams,
70
+ };
71
+ }
@@ -61,6 +61,11 @@ export {
61
61
  type ConversationFlowComponentCreateParams,
62
62
  type ConversationFlowComponentUpdateParams,
63
63
  } from './conversation-flow-component';
64
+ export {
65
+ ExportRequest,
66
+ type ExportRequestListResponse,
67
+ type ExportRequestListParams,
68
+ } from './export-request';
64
69
  export {
65
70
  KnowledgeBase,
66
71
  type KnowledgeBaseResponse,
@@ -64,10 +64,7 @@ export class Llm extends APIResource {
64
64
  /**
65
65
  * List all Retell LLM Response Engines that can be attached to an agent.
66
66
  *
67
- * @example
68
- * ```ts
69
- * const llmResponses = await client.llm.list();
70
- * ```
67
+ * @deprecated
71
68
  */
72
69
  list(query: LlmListParams | null | undefined = {}, options?: RequestOptions): APIPromise<LlmListResponse> {
73
70
  return this._client.get('/list-retell-llms', { query, ...options });
@@ -189,6 +186,7 @@ export interface LlmResponse {
189
186
  | 'gpt-5.4'
190
187
  | 'gpt-5.4-mini'
191
188
  | 'gpt-5.4-nano'
189
+ | 'gpt-5.5'
192
190
  | 'claude-4.5-sonnet'
193
191
  | 'claude-4.6-sonnet'
194
192
  | 'claude-4.5-haiku'
@@ -2730,6 +2728,7 @@ export interface LlmCreateParams {
2730
2728
  | 'gpt-5.4'
2731
2729
  | 'gpt-5.4-mini'
2732
2730
  | 'gpt-5.4-nano'
2731
+ | 'gpt-5.5'
2733
2732
  | 'claude-4.5-sonnet'
2734
2733
  | 'claude-4.6-sonnet'
2735
2734
  | 'claude-4.5-haiku'
@@ -5285,6 +5284,7 @@ export interface LlmUpdateParams {
5285
5284
  | 'gpt-5.4'
5286
5285
  | 'gpt-5.4-mini'
5287
5286
  | 'gpt-5.4-nano'
5287
+ | 'gpt-5.5'
5288
5288
  | 'claude-4.5-sonnet'
5289
5289
  | 'claude-4.6-sonnet'
5290
5290
  | 'claude-4.5-haiku'
@@ -71,11 +71,7 @@ export class PhoneNumber extends APIResource {
71
71
  /**
72
72
  * List all phone numbers
73
73
  *
74
- * @example
75
- * ```ts
76
- * const phoneNumberResponses =
77
- * await client.phoneNumber.list();
78
- * ```
74
+ * @deprecated
79
75
  */
80
76
  list(options?: RequestOptions): APIPromise<PhoneNumberListResponse> {
81
77
  return this._client.get('/list-phone-numbers', options);
@@ -60,6 +60,8 @@ export class Tests extends APIResource {
60
60
 
61
61
  /**
62
62
  * List batch test jobs for a response engine
63
+ *
64
+ * @deprecated
63
65
  */
64
66
  listBatchTests(
65
67
  query: TestListBatchTestsParams,
@@ -70,6 +72,8 @@ export class Tests extends APIResource {
70
72
 
71
73
  /**
72
74
  * List test case definitions for a response engine
75
+ *
76
+ * @deprecated
73
77
  */
74
78
  listTestCaseDefinitions(
75
79
  query: TestListTestCaseDefinitionsParams,
@@ -80,6 +84,8 @@ export class Tests extends APIResource {
80
84
 
81
85
  /**
82
86
  * List all test case jobs (test runs) for a batch test job
87
+ *
88
+ * @deprecated
83
89
  */
84
90
  listTestRuns(testCaseBatchJobID: string, options?: RequestOptions): APIPromise<TestListTestRunsResponse> {
85
91
  return this._client.get(path`/list-test-runs/${testCaseBatchJobID}`, options);
@@ -218,6 +224,7 @@ export interface TestCaseDefinitionResponse {
218
224
  | 'gpt-5.4'
219
225
  | 'gpt-5.4-mini'
220
226
  | 'gpt-5.4-nano'
227
+ | 'gpt-5.5'
221
228
  | 'claude-4.5-sonnet'
222
229
  | 'claude-4.6-sonnet'
223
230
  | 'claude-4.5-haiku'
@@ -493,6 +500,7 @@ export interface TestCreateTestCaseDefinitionParams {
493
500
  | 'gpt-5.4'
494
501
  | 'gpt-5.4-mini'
495
502
  | 'gpt-5.4-nano'
503
+ | 'gpt-5.5'
496
504
  | 'claude-4.5-sonnet'
497
505
  | 'claude-4.6-sonnet'
498
506
  | 'claude-4.5-haiku'
@@ -648,6 +656,7 @@ export interface TestUpdateTestCaseDefinitionParams {
648
656
  | 'gpt-5.4'
649
657
  | 'gpt-5.4-mini'
650
658
  | 'gpt-5.4-nano'
659
+ | 'gpt-5.5'
651
660
  | 'claude-4.5-sonnet'
652
661
  | 'claude-4.6-sonnet'
653
662
  | 'claude-4.5-haiku'
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.16.0'; // x-release-please-version
1
+ export const VERSION = '5.18.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.16.0";
1
+ export declare const VERSION = "5.18.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.16.0";
1
+ export declare const VERSION = "5.18.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.16.0'; // x-release-please-version
4
+ exports.VERSION = '5.18.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.16.0'; // x-release-please-version
1
+ export const VERSION = '5.18.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map