retell-sdk 5.49.1 → 5.49.2

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 (107) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/client.d.mts +9 -9
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +9 -9
  5. package/client.d.ts.map +1 -1
  6. package/package.json +1 -1
  7. package/resources/agent.d.mts +69 -69
  8. package/resources/agent.d.mts.map +1 -1
  9. package/resources/agent.d.ts +69 -69
  10. package/resources/agent.d.ts.map +1 -1
  11. package/resources/agent.js +30 -30
  12. package/resources/agent.js.map +1 -1
  13. package/resources/agent.mjs +30 -30
  14. package/resources/agent.mjs.map +1 -1
  15. package/resources/call.d.mts +1350 -1350
  16. package/resources/call.d.mts.map +1 -1
  17. package/resources/call.d.ts +1350 -1350
  18. package/resources/call.d.ts.map +1 -1
  19. package/resources/call.js +60 -60
  20. package/resources/call.js.map +1 -1
  21. package/resources/call.mjs +60 -60
  22. package/resources/call.mjs.map +1 -1
  23. package/resources/chat-agent.d.mts +70 -70
  24. package/resources/chat-agent.d.mts.map +1 -1
  25. package/resources/chat-agent.d.ts +70 -70
  26. package/resources/chat-agent.d.ts.map +1 -1
  27. package/resources/chat-agent.js +31 -31
  28. package/resources/chat-agent.js.map +1 -1
  29. package/resources/chat-agent.mjs +31 -31
  30. package/resources/chat-agent.mjs.map +1 -1
  31. package/resources/chat.d.mts +97 -97
  32. package/resources/chat.d.mts.map +1 -1
  33. package/resources/chat.d.ts +97 -97
  34. package/resources/chat.d.ts.map +1 -1
  35. package/resources/chat.js +55 -55
  36. package/resources/chat.js.map +1 -1
  37. package/resources/chat.mjs +55 -55
  38. package/resources/chat.mjs.map +1 -1
  39. package/resources/conversation-flow-component.d.mts +25 -25
  40. package/resources/conversation-flow-component.d.mts.map +1 -1
  41. package/resources/conversation-flow-component.d.ts +25 -25
  42. package/resources/conversation-flow-component.d.ts.map +1 -1
  43. package/resources/conversation-flow-component.js +12 -12
  44. package/resources/conversation-flow-component.js.map +1 -1
  45. package/resources/conversation-flow-component.mjs +12 -12
  46. package/resources/conversation-flow-component.mjs.map +1 -1
  47. package/resources/conversation-flow.d.mts +25 -25
  48. package/resources/conversation-flow.d.mts.map +1 -1
  49. package/resources/conversation-flow.d.ts +25 -25
  50. package/resources/conversation-flow.d.ts.map +1 -1
  51. package/resources/conversation-flow.js +12 -12
  52. package/resources/conversation-flow.js.map +1 -1
  53. package/resources/conversation-flow.mjs +12 -12
  54. package/resources/conversation-flow.mjs.map +1 -1
  55. package/resources/index.d.mts +9 -9
  56. package/resources/index.d.mts.map +1 -1
  57. package/resources/index.d.ts +9 -9
  58. package/resources/index.d.ts.map +1 -1
  59. package/resources/llm.d.mts +24 -24
  60. package/resources/llm.d.mts.map +1 -1
  61. package/resources/llm.d.ts +24 -24
  62. package/resources/llm.d.ts.map +1 -1
  63. package/resources/llm.js +11 -11
  64. package/resources/llm.js.map +1 -1
  65. package/resources/llm.mjs +11 -11
  66. package/resources/llm.mjs.map +1 -1
  67. package/resources/phone-number.d.mts +130 -130
  68. package/resources/phone-number.d.mts.map +1 -1
  69. package/resources/phone-number.d.ts +130 -130
  70. package/resources/phone-number.d.ts.map +1 -1
  71. package/resources/phone-number.js +27 -27
  72. package/resources/phone-number.js.map +1 -1
  73. package/resources/phone-number.mjs +27 -27
  74. package/resources/phone-number.mjs.map +1 -1
  75. package/resources/tests.d.mts +95 -95
  76. package/resources/tests.d.mts.map +1 -1
  77. package/resources/tests.d.ts +95 -95
  78. package/resources/tests.d.ts.map +1 -1
  79. package/resources/tests.js +27 -27
  80. package/resources/tests.js.map +1 -1
  81. package/resources/tests.mjs +27 -27
  82. package/resources/tests.mjs.map +1 -1
  83. package/resources/voice.d.mts +8 -8
  84. package/resources/voice.d.mts.map +1 -1
  85. package/resources/voice.d.ts +8 -8
  86. package/resources/voice.d.ts.map +1 -1
  87. package/resources/voice.js +12 -12
  88. package/resources/voice.js.map +1 -1
  89. package/resources/voice.mjs +12 -12
  90. package/resources/voice.mjs.map +1 -1
  91. package/src/client.ts +18 -18
  92. package/src/resources/agent.ts +90 -90
  93. package/src/resources/call.ts +1821 -1821
  94. package/src/resources/chat-agent.ts +95 -95
  95. package/src/resources/chat.ts +112 -112
  96. package/src/resources/conversation-flow-component.ts +34 -34
  97. package/src/resources/conversation-flow.ts +34 -34
  98. package/src/resources/index.ts +18 -18
  99. package/src/resources/llm.ts +30 -30
  100. package/src/resources/phone-number.ts +152 -152
  101. package/src/resources/tests.ts +136 -136
  102. package/src/resources/voice.ts +12 -12
  103. package/src/version.ts +1 -1
  104. package/version.d.mts +1 -1
  105. package/version.d.ts +1 -1
  106. package/version.js +1 -1
  107. package/version.mjs +1 -1
@@ -44,18 +44,6 @@ class ConversationFlowComponent extends resource_1.APIResource {
44
44
  retrieve(conversationFlowComponentID, options) {
45
45
  return this._client.get((0, path_1.path) `/get-conversation-flow-component/${conversationFlowComponentID}`, options);
46
46
  }
47
- /**
48
- * List shared conversation flow components with pagination
49
- *
50
- * @example
51
- * ```ts
52
- * const conversationFlowComponents =
53
- * await client.conversationFlowComponent.list();
54
- * ```
55
- */
56
- list(query = {}, options) {
57
- return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
58
- }
59
47
  /**
60
48
  * Update an existing shared conversation flow component
61
49
  *
@@ -73,6 +61,18 @@ class ConversationFlowComponent extends resource_1.APIResource {
73
61
  ...options,
74
62
  });
75
63
  }
64
+ /**
65
+ * List shared conversation flow components with pagination
66
+ *
67
+ * @example
68
+ * ```ts
69
+ * const conversationFlowComponents =
70
+ * await client.conversationFlowComponent.list();
71
+ * ```
72
+ */
73
+ list(query = {}, options) {
74
+ return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
75
+ }
76
76
  /**
77
77
  * Delete a shared conversation flow component. When deleting a shared component,
78
78
  * creates local copies for all linked conversation flows.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-flow-component.js","sourceRoot":"","sources":["../src/resources/conversation-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CACF;AAtGD,8DAsGC"}
1
+ {"version":3,"file":"conversation-flow-component.js","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,yBAA0B,SAAQ,sBAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAtGD,8DAsGC"}
@@ -41,18 +41,6 @@ export class ConversationFlowComponent extends APIResource {
41
41
  retrieve(conversationFlowComponentID, options) {
42
42
  return this._client.get(path `/get-conversation-flow-component/${conversationFlowComponentID}`, options);
43
43
  }
44
- /**
45
- * List shared conversation flow components with pagination
46
- *
47
- * @example
48
- * ```ts
49
- * const conversationFlowComponents =
50
- * await client.conversationFlowComponent.list();
51
- * ```
52
- */
53
- list(query = {}, options) {
54
- return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
55
- }
56
44
  /**
57
45
  * Update an existing shared conversation flow component
58
46
  *
@@ -70,6 +58,18 @@ export class ConversationFlowComponent extends APIResource {
70
58
  ...options,
71
59
  });
72
60
  }
61
+ /**
62
+ * List shared conversation flow components with pagination
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * const conversationFlowComponents =
67
+ * await client.conversationFlowComponent.list();
68
+ * ```
69
+ */
70
+ list(query = {}, options) {
71
+ return this._client.get('/v2/list-conversation-flow-components', { query, ...options });
72
+ }
73
73
  /**
74
74
  * Delete a shared conversation flow component. When deleting a shared component,
75
75
  * creates local copies for all linked conversation flows.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation-flow-component.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"conversation-flow-component.mjs","sourceRoot":"","sources":["../src/resources/conversation-flow-component.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAE/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IACxD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CACJ,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,qCAAqC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;OAUG;IACH,QAAQ,CACN,2BAAmC,EACnC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,2BAA2B,EAAE,EAAE,OAAO,CAAC,CAAC;IAC1G,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,2BAAmC,EACnC,IAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YAClG,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;OAQG;IACH,IAAI,CACF,QAAgE,EAAE,EAClE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CAAC,2BAAmC,EAAE,OAAwB;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,uCAAuC,2BAA2B,EAAE,EAAE;YACnG,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -38,16 +38,6 @@ export declare class ConversationFlow extends APIResource {
38
38
  * ```
39
39
  */
40
40
  retrieve(conversationFlowID: string, query?: ConversationFlowRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
41
- /**
42
- * List conversation flows with pagination
43
- *
44
- * @example
45
- * ```ts
46
- * const conversationFlows =
47
- * await client.conversationFlow.list();
48
- * ```
49
- */
50
- list(query?: ConversationFlowListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowListResponse>;
51
41
  /**
52
42
  * Update an existing conversation flow
53
43
  *
@@ -60,6 +50,16 @@ export declare class ConversationFlow extends APIResource {
60
50
  * ```
61
51
  */
62
52
  update(conversationFlowID: string, params: ConversationFlowUpdateParams, options?: RequestOptions): APIPromise<ConversationFlowResponse>;
53
+ /**
54
+ * List conversation flows with pagination
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const conversationFlows =
59
+ * await client.conversationFlow.list();
60
+ * ```
61
+ */
62
+ list(query?: ConversationFlowListParams | null | undefined, options?: RequestOptions): APIPromise<ConversationFlowListResponse>;
63
63
  /**
64
64
  * Delete a conversation flow and all its versions
65
65
  *
@@ -24329,20 +24329,6 @@ export interface ConversationFlowRetrieveParams {
24329
24329
  */
24330
24330
  version?: number;
24331
24331
  }
24332
- export interface ConversationFlowListParams {
24333
- /**
24334
- * Maximum number of items to return.
24335
- */
24336
- limit?: number;
24337
- /**
24338
- * Pagination key for fetching the next page.
24339
- */
24340
- pagination_key?: string;
24341
- /**
24342
- * Sort order for results.
24343
- */
24344
- sort_order?: 'ascending' | 'descending';
24345
- }
24346
24332
  export interface ConversationFlowUpdateParams {
24347
24333
  /**
24348
24334
  * Query param: Optional version of the conversation flow to update. Default to
@@ -36462,7 +36448,21 @@ export declare namespace ConversationFlowUpdateParams {
36462
36448
  tool_id?: string;
36463
36449
  }
36464
36450
  }
36451
+ export interface ConversationFlowListParams {
36452
+ /**
36453
+ * Maximum number of items to return.
36454
+ */
36455
+ limit?: number;
36456
+ /**
36457
+ * Pagination key for fetching the next page.
36458
+ */
36459
+ pagination_key?: string;
36460
+ /**
36461
+ * Sort order for results.
36462
+ */
36463
+ sort_order?: 'ascending' | 'descending';
36464
+ }
36465
36465
  export declare namespace ConversationFlow {
36466
- 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, };
36466
+ 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, };
36467
36467
  }
36468
36468
  //# sourceMappingURL=conversation-flow.d.mts.map