retell-sdk 5.49.0 → 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 (112) hide show
  1. package/CHANGELOG.md +24 -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/internal/uploads.js +12 -2
  7. package/internal/uploads.js.map +1 -1
  8. package/internal/uploads.mjs +12 -2
  9. package/internal/uploads.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/agent.d.mts +69 -69
  12. package/resources/agent.d.mts.map +1 -1
  13. package/resources/agent.d.ts +69 -69
  14. package/resources/agent.d.ts.map +1 -1
  15. package/resources/agent.js +30 -30
  16. package/resources/agent.js.map +1 -1
  17. package/resources/agent.mjs +30 -30
  18. package/resources/agent.mjs.map +1 -1
  19. package/resources/call.d.mts +1350 -1350
  20. package/resources/call.d.mts.map +1 -1
  21. package/resources/call.d.ts +1350 -1350
  22. package/resources/call.d.ts.map +1 -1
  23. package/resources/call.js +60 -60
  24. package/resources/call.js.map +1 -1
  25. package/resources/call.mjs +60 -60
  26. package/resources/call.mjs.map +1 -1
  27. package/resources/chat-agent.d.mts +70 -70
  28. package/resources/chat-agent.d.mts.map +1 -1
  29. package/resources/chat-agent.d.ts +70 -70
  30. package/resources/chat-agent.d.ts.map +1 -1
  31. package/resources/chat-agent.js +31 -31
  32. package/resources/chat-agent.js.map +1 -1
  33. package/resources/chat-agent.mjs +31 -31
  34. package/resources/chat-agent.mjs.map +1 -1
  35. package/resources/chat.d.mts +97 -97
  36. package/resources/chat.d.mts.map +1 -1
  37. package/resources/chat.d.ts +97 -97
  38. package/resources/chat.d.ts.map +1 -1
  39. package/resources/chat.js +55 -55
  40. package/resources/chat.js.map +1 -1
  41. package/resources/chat.mjs +55 -55
  42. package/resources/chat.mjs.map +1 -1
  43. package/resources/conversation-flow-component.d.mts +25 -25
  44. package/resources/conversation-flow-component.d.mts.map +1 -1
  45. package/resources/conversation-flow-component.d.ts +25 -25
  46. package/resources/conversation-flow-component.d.ts.map +1 -1
  47. package/resources/conversation-flow-component.js +12 -12
  48. package/resources/conversation-flow-component.js.map +1 -1
  49. package/resources/conversation-flow-component.mjs +12 -12
  50. package/resources/conversation-flow-component.mjs.map +1 -1
  51. package/resources/conversation-flow.d.mts +25 -25
  52. package/resources/conversation-flow.d.mts.map +1 -1
  53. package/resources/conversation-flow.d.ts +25 -25
  54. package/resources/conversation-flow.d.ts.map +1 -1
  55. package/resources/conversation-flow.js +12 -12
  56. package/resources/conversation-flow.js.map +1 -1
  57. package/resources/conversation-flow.mjs +12 -12
  58. package/resources/conversation-flow.mjs.map +1 -1
  59. package/resources/index.d.mts +9 -9
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +9 -9
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/llm.d.mts +24 -24
  64. package/resources/llm.d.mts.map +1 -1
  65. package/resources/llm.d.ts +24 -24
  66. package/resources/llm.d.ts.map +1 -1
  67. package/resources/llm.js +11 -11
  68. package/resources/llm.js.map +1 -1
  69. package/resources/llm.mjs +11 -11
  70. package/resources/llm.mjs.map +1 -1
  71. package/resources/phone-number.d.mts +130 -130
  72. package/resources/phone-number.d.mts.map +1 -1
  73. package/resources/phone-number.d.ts +130 -130
  74. package/resources/phone-number.d.ts.map +1 -1
  75. package/resources/phone-number.js +27 -27
  76. package/resources/phone-number.js.map +1 -1
  77. package/resources/phone-number.mjs +27 -27
  78. package/resources/phone-number.mjs.map +1 -1
  79. package/resources/tests.d.mts +95 -95
  80. package/resources/tests.d.mts.map +1 -1
  81. package/resources/tests.d.ts +95 -95
  82. package/resources/tests.d.ts.map +1 -1
  83. package/resources/tests.js +27 -27
  84. package/resources/tests.js.map +1 -1
  85. package/resources/tests.mjs +27 -27
  86. package/resources/tests.mjs.map +1 -1
  87. package/resources/voice.d.mts +8 -8
  88. package/resources/voice.d.mts.map +1 -1
  89. package/resources/voice.d.ts +8 -8
  90. package/resources/voice.d.ts.map +1 -1
  91. package/resources/voice.js +12 -12
  92. package/resources/voice.js.map +1 -1
  93. package/resources/voice.mjs +12 -12
  94. package/resources/voice.mjs.map +1 -1
  95. package/src/client.ts +18 -18
  96. package/src/internal/uploads.ts +12 -4
  97. package/src/resources/agent.ts +90 -90
  98. package/src/resources/call.ts +1821 -1821
  99. package/src/resources/chat-agent.ts +95 -95
  100. package/src/resources/chat.ts +112 -112
  101. package/src/resources/conversation-flow-component.ts +34 -34
  102. package/src/resources/conversation-flow.ts +34 -34
  103. package/src/resources/index.ts +18 -18
  104. package/src/resources/llm.ts +30 -30
  105. package/src/resources/phone-number.ts +152 -152
  106. package/src/resources/tests.ts +136 -136
  107. package/src/resources/voice.ts +12 -12
  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
@@ -33,6 +33,21 @@ export class Agent extends APIResource {
33
33
  retrieve(agentID, query = {}, options) {
34
34
  return this._client.get(path `/get-agent/${agentID}`, { query, ...options });
35
35
  }
36
+ /**
37
+ * Update an existing agent's latest draft version
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const agentResponse = await client.agent.update(
42
+ * '16b980523634a6dc504898cda492e939',
43
+ * { agent_name: 'Jarvis' },
44
+ * );
45
+ * ```
46
+ */
47
+ update(agentID, params, options) {
48
+ const { version, ...body } = params;
49
+ return this._client.patch(path `/update-agent/${agentID}`, { query: { version }, body, ...options });
50
+ }
36
51
  /**
37
52
  * List unique agents with pagination.
38
53
  *
@@ -57,21 +72,6 @@ export class Agent extends APIResource {
57
72
  ...options,
58
73
  });
59
74
  }
60
- /**
61
- * Update an existing agent's latest draft version
62
- *
63
- * @example
64
- * ```ts
65
- * const agentResponse = await client.agent.update(
66
- * '16b980523634a6dc504898cda492e939',
67
- * { agent_name: 'Jarvis' },
68
- * );
69
- * ```
70
- */
71
- update(agentID, params, options) {
72
- const { version, ...body } = params;
73
- return this._client.patch(path `/update-agent/${agentID}`, { query: { version }, body, ...options });
74
- }
75
75
  /**
76
76
  * Delete an existing agent
77
77
  *
@@ -88,21 +88,6 @@ export class Agent extends APIResource {
88
88
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
89
89
  });
90
90
  }
91
- /**
92
- * Publish an existing draft version in place.
93
- *
94
- * @example
95
- * ```ts
96
- * await client.agent.publish('agent_xxx', { version: 15 });
97
- * ```
98
- */
99
- publish(agentID, body, options) {
100
- return this._client.post(path `/publish-agent-version/${agentID}`, {
101
- body,
102
- ...options,
103
- headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
104
- });
105
- }
106
91
  /**
107
92
  * Create a new draft agent version from a base version.
108
93
  *
@@ -148,5 +133,20 @@ export class Agent extends APIResource {
148
133
  getVersions(agentID, options) {
149
134
  return this._client.get(path `/get-agent-versions/${agentID}`, options);
150
135
  }
136
+ /**
137
+ * Publish an existing draft version in place.
138
+ *
139
+ * @example
140
+ * ```ts
141
+ * await client.agent.publish('agent_xxx', { version: 15 });
142
+ * ```
143
+ */
144
+ publish(agentID, body, options) {
145
+ return this._client.post(path `/publish-agent-version/${agentID}`, {
146
+ body,
147
+ ...options,
148
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
149
+ });
150
+ }
151
151
  }
152
152
  //# sourceMappingURL=agent.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"agent.mjs","sourceRoot":"","sources":["../src/resources/agent.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAA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