retell-sdk 6.0.1 → 6.1.1

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 (96) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/agent.d.mts +3222 -526
  10. package/resources/agent.d.mts.map +1 -1
  11. package/resources/agent.d.ts +3222 -526
  12. package/resources/agent.d.ts.map +1 -1
  13. package/resources/app.d.mts +122 -5
  14. package/resources/app.d.mts.map +1 -1
  15. package/resources/app.d.ts +122 -5
  16. package/resources/app.d.ts.map +1 -1
  17. package/resources/app.js +17 -1
  18. package/resources/app.js.map +1 -1
  19. package/resources/app.mjs +17 -1
  20. package/resources/app.mjs.map +1 -1
  21. package/resources/batch-call.d.mts +912 -13
  22. package/resources/batch-call.d.mts.map +1 -1
  23. package/resources/batch-call.d.ts +912 -13
  24. package/resources/batch-call.d.ts.map +1 -1
  25. package/resources/call.d.mts +7843 -3792
  26. package/resources/call.d.mts.map +1 -1
  27. package/resources/call.d.ts +7843 -3792
  28. package/resources/call.d.ts.map +1 -1
  29. package/resources/call.js +1 -1
  30. package/resources/call.mjs +1 -1
  31. package/resources/chat-agent.d.mts +3125 -453
  32. package/resources/chat-agent.d.mts.map +1 -1
  33. package/resources/chat-agent.d.ts +3125 -453
  34. package/resources/chat-agent.d.ts.map +1 -1
  35. package/resources/chat.d.mts +892 -26
  36. package/resources/chat.d.mts.map +1 -1
  37. package/resources/chat.d.ts +892 -26
  38. package/resources/chat.d.ts.map +1 -1
  39. package/resources/contact.d.mts +162 -20
  40. package/resources/contact.d.mts.map +1 -1
  41. package/resources/contact.d.ts +162 -20
  42. package/resources/contact.d.ts.map +1 -1
  43. package/resources/contact.js +98 -4
  44. package/resources/contact.js.map +1 -1
  45. package/resources/contact.mjs +98 -4
  46. package/resources/contact.mjs.map +1 -1
  47. package/resources/conversation-flow-component.d.mts +3282 -243
  48. package/resources/conversation-flow-component.d.mts.map +1 -1
  49. package/resources/conversation-flow-component.d.ts +3282 -243
  50. package/resources/conversation-flow-component.d.ts.map +1 -1
  51. package/resources/conversation-flow.d.mts +7347 -1269
  52. package/resources/conversation-flow.d.mts.map +1 -1
  53. package/resources/conversation-flow.d.ts +7347 -1269
  54. package/resources/conversation-flow.d.ts.map +1 -1
  55. package/resources/crm.d.mts +37 -5
  56. package/resources/crm.d.mts.map +1 -1
  57. package/resources/crm.d.ts +37 -5
  58. package/resources/crm.d.ts.map +1 -1
  59. package/resources/identity.d.mts +4 -0
  60. package/resources/identity.d.mts.map +1 -1
  61. package/resources/identity.d.ts +4 -0
  62. package/resources/identity.d.ts.map +1 -1
  63. package/resources/index.d.mts +1 -1
  64. package/resources/index.d.mts.map +1 -1
  65. package/resources/index.d.ts +1 -1
  66. package/resources/index.d.ts.map +1 -1
  67. package/resources/index.js.map +1 -1
  68. package/resources/index.mjs.map +1 -1
  69. package/resources/llm.d.mts +867 -9
  70. package/resources/llm.d.mts.map +1 -1
  71. package/resources/llm.d.ts +867 -9
  72. package/resources/llm.d.ts.map +1 -1
  73. package/resources/tests.d.mts +3 -3
  74. package/resources/tests.d.mts.map +1 -1
  75. package/resources/tests.d.ts +3 -3
  76. package/resources/tests.d.ts.map +1 -1
  77. package/src/client.ts +4 -0
  78. package/src/resources/agent.ts +4786 -1504
  79. package/src/resources/app.ts +144 -4
  80. package/src/resources/batch-call.ts +1115 -10
  81. package/src/resources/call.ts +9825 -4806
  82. package/src/resources/chat-agent.ts +3958 -698
  83. package/src/resources/chat.ts +1133 -50
  84. package/src/resources/contact.ts +168 -20
  85. package/src/resources/conversation-flow-component.ts +4466 -191
  86. package/src/resources/conversation-flow.ts +9084 -525
  87. package/src/resources/crm.ts +44 -5
  88. package/src/resources/identity.ts +5 -0
  89. package/src/resources/index.ts +2 -0
  90. package/src/resources/llm.ts +1045 -46
  91. package/src/resources/tests.ts +21 -0
  92. package/src/version.ts +1 -1
  93. package/version.d.mts +1 -1
  94. package/version.d.ts +1 -1
  95. package/version.js +1 -1
  96. package/version.mjs +1 -1
@@ -52,6 +52,17 @@ export class CRM extends APIResource {
52
52
  }
53
53
 
54
54
  export interface CRMConfig {
55
+ /**
56
+ * Workspace-shared memory rewrite prompt. Null uses the built-in preset. Supports
57
+ * conversation dynamic variables using {{variable_name}}.
58
+ */
59
+ contact_memory_update_prompt: string | null;
60
+
61
+ /**
62
+ * Built-in memory rewrite prompt.
63
+ */
64
+ default_contact_memory_update_prompt: string;
65
+
55
66
  org_id: string;
56
67
 
57
68
  /**
@@ -68,7 +79,7 @@ export interface CRMConfig {
68
79
  /**
69
80
  * Tags available to contacts in this organization.
70
81
  */
71
- contact_tags?: Array<string>;
82
+ contact_tags?: Array<CRMConfig.ContactTag>;
72
83
 
73
84
  crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
74
85
 
@@ -81,6 +92,18 @@ export interface CRMConfig {
81
92
  }
82
93
 
83
94
  export namespace CRMConfig {
95
+ export interface ContactTag {
96
+ /**
97
+ * Unique identifier for the tag.
98
+ */
99
+ id: string;
100
+
101
+ /**
102
+ * Human-readable label for the tag.
103
+ */
104
+ label: string;
105
+ }
106
+
84
107
  export interface CRMAnalysisDataMapping {
85
108
  /**
86
109
  * Name of the post-call analysis field to read the value from. A value that does
@@ -228,11 +251,18 @@ export interface CRMUpdateConfigParams {
228
251
  contact_columns_order?: Array<string>;
229
252
 
230
253
  /**
231
- * Replaces the organization's available contact tags. Tags are trimmed and
232
- * deduplicated. Omit to leave unchanged, or send null or an empty array to clear
233
- * the list. Does not change tags already assigned to contacts.
254
+ * Workspace-shared memory rewrite prompt. Pass null to restore the built-in
255
+ * preset. Supports conversation dynamic variables using {{variable_name}}.
256
+ */
257
+ contact_memory_update_prompt?: string | null;
258
+
259
+ /**
260
+ * Replaces the organization's available contact tags. Tag IDs must be unique
261
+ * 32-character hexadecimal strings and labels are trimmed. Omit to leave
262
+ * unchanged, or send null or an empty array to clear the list. Does not change
263
+ * tags already assigned to contacts.
234
264
  */
235
- contact_tags?: Array<string> | null;
265
+ contact_tags?: Array<CRMUpdateConfigParams.ContactTag> | null;
236
266
 
237
267
  /**
238
268
  * Replaces the stored list.
@@ -250,6 +280,15 @@ export interface CRMUpdateConfigParams {
250
280
  }
251
281
 
252
282
  export namespace CRMUpdateConfigParams {
283
+ export interface ContactTag {
284
+ id: string;
285
+
286
+ /**
287
+ * Human-readable label for the tag.
288
+ */
289
+ label: string;
290
+ }
291
+
253
292
  export interface CRMAnalysisDataMapping {
254
293
  /**
255
294
  * Name of the post-call analysis field to read the value from. A value that does
@@ -19,6 +19,11 @@ export interface IdentityRetrieveResponse {
19
19
  */
20
20
  api_key_name: string | null;
21
21
 
22
+ /**
23
+ * ID of the org that owns the API key.
24
+ */
25
+ org_id: string;
26
+
22
27
  /**
23
28
  * Display name of the org.
24
29
  */
@@ -21,12 +21,14 @@ export {
21
21
  App,
22
22
  type AppResponse,
23
23
  type AppListResponse,
24
+ type AppGetToolSchemaResponse,
24
25
  type AppListUsagesResponse,
25
26
  type AppTestAuthResponse,
26
27
  type AppCreateParams,
27
28
  type AppUpdateParams,
28
29
  type AppListParams,
29
30
  type AppDeleteParams,
31
+ type AppGetToolSchemaParams,
30
32
  type AppListUsagesParams,
31
33
  } from './app';
32
34
  export { Asset, type AssetCreateResponse, type AssetCreateParams } from './asset';