retell-sdk 5.14.1 → 5.16.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 (47) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts.map +1 -1
  3. package/client.d.ts.map +1 -1
  4. package/client.js +11 -0
  5. package/client.js.map +1 -1
  6. package/client.mjs +11 -0
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent.d.mts +24 -15
  10. package/resources/agent.d.mts.map +1 -1
  11. package/resources/agent.d.ts +24 -15
  12. package/resources/agent.d.ts.map +1 -1
  13. package/resources/batch-call.d.mts +9 -6
  14. package/resources/batch-call.d.mts.map +1 -1
  15. package/resources/batch-call.d.ts +9 -6
  16. package/resources/batch-call.d.ts.map +1 -1
  17. package/resources/call.d.mts +33 -15
  18. package/resources/call.d.mts.map +1 -1
  19. package/resources/call.d.ts +33 -15
  20. package/resources/call.d.ts.map +1 -1
  21. package/resources/call.js +14 -0
  22. package/resources/call.js.map +1 -1
  23. package/resources/call.mjs +14 -0
  24. package/resources/call.mjs.map +1 -1
  25. package/resources/chat-agent.d.mts +24 -15
  26. package/resources/chat-agent.d.mts.map +1 -1
  27. package/resources/chat-agent.d.ts +24 -15
  28. package/resources/chat-agent.d.ts.map +1 -1
  29. package/resources/playground.d.mts +21 -0
  30. package/resources/playground.d.mts.map +1 -1
  31. package/resources/playground.d.ts +21 -0
  32. package/resources/playground.d.ts.map +1 -1
  33. package/resources/playground.js +21 -0
  34. package/resources/playground.js.map +1 -1
  35. package/resources/playground.mjs +21 -0
  36. package/resources/playground.mjs.map +1 -1
  37. package/src/client.ts +12 -0
  38. package/src/resources/agent.ts +219 -15
  39. package/src/resources/batch-call.ts +73 -5
  40. package/src/resources/call.ts +234 -15
  41. package/src/resources/chat-agent.ts +297 -18
  42. package/src/resources/playground.ts +21 -0
  43. package/src/version.ts +1 -1
  44. package/version.d.mts +1 -1
  45. package/version.d.ts +1 -1
  46. package/version.js +1 -1
  47. package/version.mjs +1 -1
@@ -10,6 +10,27 @@ export class Playground extends APIResource {
10
10
  * Stateless playground completion. Send the full conversation history (same shape
11
11
  * as chat completion messages) and receive only the newly generated messages.
12
12
  * Nothing is persisted server-side — the caller manages conversation state.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const response = await client.playground.completion(
17
+ * 'agent_id',
18
+ * {
19
+ * messages: [
20
+ * {
21
+ * content: "Hi, I'd like to check my appointment.",
22
+ * role: 'user',
23
+ * },
24
+ * {
25
+ * content:
26
+ * 'Sure! Could you please provide your name?',
27
+ * role: 'agent',
28
+ * },
29
+ * { content: 'My name is John Smith.', role: 'user' },
30
+ * ],
31
+ * },
32
+ * );
33
+ * ```
13
34
  */
14
35
  completion(
15
36
  agentID: string,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '5.14.1'; // x-release-please-version
1
+ export const VERSION = '5.16.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.14.1";
1
+ export declare const VERSION = "5.16.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "5.14.1";
1
+ export declare const VERSION = "5.16.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.14.1'; // x-release-please-version
4
+ exports.VERSION = '5.16.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '5.14.1'; // x-release-please-version
1
+ export const VERSION = '5.16.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map