retell-sdk 5.31.0 → 5.32.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 (128) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/client.d.mts +9 -11
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -11
  5. package/client.d.ts.map +1 -1
  6. package/client.js +0 -3
  7. package/client.js.map +1 -1
  8. package/client.mjs +0 -3
  9. package/client.mjs.map +1 -1
  10. package/index.d.mts +0 -1
  11. package/index.d.mts.map +1 -1
  12. package/index.d.ts +0 -1
  13. package/index.d.ts.map +1 -1
  14. package/index.js +1 -4
  15. package/index.js.map +1 -1
  16. package/index.mjs +0 -1
  17. package/index.mjs.map +1 -1
  18. package/internal/uploads.js +2 -12
  19. package/internal/uploads.js.map +1 -1
  20. package/internal/uploads.mjs +2 -12
  21. package/internal/uploads.mjs.map +1 -1
  22. package/package.json +1 -11
  23. package/resources/agent.d.mts +44 -44
  24. package/resources/agent.d.mts.map +1 -1
  25. package/resources/agent.d.ts +44 -44
  26. package/resources/agent.d.ts.map +1 -1
  27. package/resources/agent.js +25 -25
  28. package/resources/agent.js.map +1 -1
  29. package/resources/agent.mjs +25 -25
  30. package/resources/agent.mjs.map +1 -1
  31. package/resources/call.d.mts +1367 -1367
  32. package/resources/call.d.mts.map +1 -1
  33. package/resources/call.d.ts +1367 -1367
  34. package/resources/call.d.ts.map +1 -1
  35. package/resources/call.js +60 -60
  36. package/resources/call.js.map +1 -1
  37. package/resources/call.mjs +60 -60
  38. package/resources/call.mjs.map +1 -1
  39. package/resources/chat-agent.d.mts +46 -46
  40. package/resources/chat-agent.d.mts.map +1 -1
  41. package/resources/chat-agent.d.ts +46 -46
  42. package/resources/chat-agent.d.ts.map +1 -1
  43. package/resources/chat-agent.js +27 -27
  44. package/resources/chat-agent.js.map +1 -1
  45. package/resources/chat-agent.mjs +27 -27
  46. package/resources/chat-agent.mjs.map +1 -1
  47. package/resources/chat.d.mts +92 -92
  48. package/resources/chat.d.mts.map +1 -1
  49. package/resources/chat.d.ts +92 -92
  50. package/resources/chat.d.ts.map +1 -1
  51. package/resources/chat.js +55 -55
  52. package/resources/chat.js.map +1 -1
  53. package/resources/chat.mjs +55 -55
  54. package/resources/chat.mjs.map +1 -1
  55. package/resources/conversation-flow-component.d.mts +25 -25
  56. package/resources/conversation-flow-component.d.mts.map +1 -1
  57. package/resources/conversation-flow-component.d.ts +25 -25
  58. package/resources/conversation-flow-component.d.ts.map +1 -1
  59. package/resources/conversation-flow-component.js +12 -12
  60. package/resources/conversation-flow-component.js.map +1 -1
  61. package/resources/conversation-flow-component.mjs +12 -12
  62. package/resources/conversation-flow-component.mjs.map +1 -1
  63. package/resources/conversation-flow.d.mts +26 -26
  64. package/resources/conversation-flow.d.mts.map +1 -1
  65. package/resources/conversation-flow.d.ts +26 -26
  66. package/resources/conversation-flow.d.ts.map +1 -1
  67. package/resources/conversation-flow.js +12 -12
  68. package/resources/conversation-flow.js.map +1 -1
  69. package/resources/conversation-flow.mjs +12 -12
  70. package/resources/conversation-flow.mjs.map +1 -1
  71. package/resources/index.d.mts +9 -9
  72. package/resources/index.d.mts.map +1 -1
  73. package/resources/index.d.ts +9 -9
  74. package/resources/index.d.ts.map +1 -1
  75. package/resources/llm.d.mts +24 -24
  76. package/resources/llm.d.mts.map +1 -1
  77. package/resources/llm.d.ts +24 -24
  78. package/resources/llm.d.ts.map +1 -1
  79. package/resources/llm.js +11 -11
  80. package/resources/llm.js.map +1 -1
  81. package/resources/llm.mjs +11 -11
  82. package/resources/llm.mjs.map +1 -1
  83. package/resources/phone-number.d.mts +8 -8
  84. package/resources/phone-number.d.ts +8 -8
  85. package/resources/tests.d.mts +95 -95
  86. package/resources/tests.d.mts.map +1 -1
  87. package/resources/tests.d.ts +95 -95
  88. package/resources/tests.d.ts.map +1 -1
  89. package/resources/tests.js +27 -27
  90. package/resources/tests.js.map +1 -1
  91. package/resources/tests.mjs +27 -27
  92. package/resources/tests.mjs.map +1 -1
  93. package/resources/voice.d.mts +8 -8
  94. package/resources/voice.d.mts.map +1 -1
  95. package/resources/voice.d.ts +8 -8
  96. package/resources/voice.d.ts.map +1 -1
  97. package/resources/voice.js +12 -12
  98. package/resources/voice.js.map +1 -1
  99. package/resources/voice.mjs +12 -12
  100. package/resources/voice.mjs.map +1 -1
  101. package/src/client.ts +18 -22
  102. package/src/index.ts +0 -1
  103. package/src/internal/uploads.ts +4 -12
  104. package/src/resources/agent.ts +61 -61
  105. package/src/resources/call.ts +2364 -2364
  106. package/src/resources/chat-agent.ts +63 -63
  107. package/src/resources/chat.ts +107 -107
  108. package/src/resources/conversation-flow-component.ts +34 -34
  109. package/src/resources/conversation-flow.ts +35 -35
  110. package/src/resources/index.ts +18 -18
  111. package/src/resources/llm.ts +30 -30
  112. package/src/resources/phone-number.ts +8 -8
  113. package/src/resources/tests.ts +136 -136
  114. package/src/resources/voice.ts +12 -12
  115. package/src/version.ts +1 -1
  116. package/version.d.mts +1 -1
  117. package/version.d.ts +1 -1
  118. package/version.js +1 -1
  119. package/version.mjs +1 -1
  120. package/lib/webhook_auth.d.mts +0 -11
  121. package/lib/webhook_auth.d.mts.map +0 -1
  122. package/lib/webhook_auth.d.ts +0 -11
  123. package/lib/webhook_auth.d.ts.map +0 -1
  124. package/lib/webhook_auth.js +0 -48
  125. package/lib/webhook_auth.js.map +0 -1
  126. package/lib/webhook_auth.mjs +0 -43
  127. package/lib/webhook_auth.mjs.map +0 -1
  128. package/src/lib/webhook_auth.ts +0 -76
@@ -39,27 +39,27 @@ export declare class ConversationFlow extends APIResource {
39
39
  */
40
40
  retrieve(conversationFlowID: string, query?: ConversationFlowRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
41
41
  /**
42
- * Update an existing conversation flow
42
+ * List conversation flows with pagination
43
43
  *
44
44
  * @example
45
45
  * ```ts
46
- * const conversationFlowResponse =
47
- * await client.conversationFlow.update(
48
- * 'conversation_flow_id',
49
- * );
46
+ * const conversationFlows =
47
+ * await client.conversationFlow.list();
50
48
  * ```
51
49
  */
52
- update(conversationFlowID: string, params: ConversationFlowUpdateParams, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
50
+ list(query?: ConversationFlowListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowListResponse>;
53
51
  /**
54
- * List conversation flows with pagination
52
+ * Update an existing conversation flow
55
53
  *
56
54
  * @example
57
55
  * ```ts
58
- * const conversationFlows =
59
- * await client.conversationFlow.list();
56
+ * const conversationFlowResponse =
57
+ * await client.conversationFlow.update(
58
+ * 'conversation_flow_id',
59
+ * );
60
60
  * ```
61
61
  */
62
- list(query?: ConversationFlowListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowListResponse>;
62
+ update(conversationFlowID: string, params: ConversationFlowUpdateParams, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
63
63
  /**
64
64
  * Delete a conversation flow and all its versions
65
65
  *
@@ -23459,11 +23459,25 @@ export declare namespace ConversationFlowCreateParams {
23459
23459
  }
23460
23460
  export interface ConversationFlowRetrieveParams {
23461
23461
  /**
23462
- * Optional version of the conversation flow to retrieve. Default to latest
23462
+ * Optional version of the conversation flow to retrieve. Defaults to the latest
23463
23463
  * version.
23464
23464
  */
23465
23465
  version?: number;
23466
23466
  }
23467
+ export interface ConversationFlowListParams {
23468
+ /**
23469
+ * Maximum number of items to return.
23470
+ */
23471
+ limit?: number;
23472
+ /**
23473
+ * Pagination key for fetching the next page.
23474
+ */
23475
+ pagination_key?: string;
23476
+ /**
23477
+ * Sort order for results.
23478
+ */
23479
+ sort_order?: 'ascending' | 'descending';
23480
+ }
23467
23481
  export interface ConversationFlowUpdateParams {
23468
23482
  /**
23469
23483
  * Query param: Optional version of the conversation flow to update. Default to
@@ -35153,21 +35167,7 @@ export declare namespace ConversationFlowUpdateParams {
35153
35167
  tool_id?: string;
35154
35168
  }
35155
35169
  }
35156
- export interface ConversationFlowListParams {
35157
- /**
35158
- * Maximum number of items to return.
35159
- */
35160
- limit?: number;
35161
- /**
35162
- * Pagination key for fetching the next page.
35163
- */
35164
- pagination_key?: string;
35165
- /**
35166
- * Sort order for results.
35167
- */
35168
- sort_order?: 'ascending' | 'descending';
35169
- }
35170
35170
  export declare namespace ConversationFlow {
35171
- export { type ConversationFlowResponse as ConversationFlowResponse, type ConversationFlowListResponse as ConversationFlowListResponse, type ConversationFlowCreateParams as ConversationFlowCreateParams, type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams, type ConversationFlowUpdateParams as ConversationFlowUpdateParams, type ConversationFlowListParams as ConversationFlowListParams, };
35171
+ export { type ConversationFlowResponse as ConversationFlowResponse, type ConversationFlowListResponse as ConversationFlowListResponse, type ConversationFlowCreateParams as ConversationFlowCreateParams, type ConversationFlowRetrieveParams as ConversationFlowRetrieveParams, type ConversationFlowListParams as ConversationFlowListParams, type ConversationFlowUpdateParams as ConversationFlowUpdateParams, };
35172
35172
  }
35173
35173
  //# sourceMappingURL=conversation-flow.d.ts.map