retell-sdk 5.63.0 → 5.65.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 (147) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/README.md +29 -0
  3. package/client.d.mts +20 -8
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +20 -8
  6. package/client.d.ts.map +1 -1
  7. package/client.js +12 -0
  8. package/client.js.map +1 -1
  9. package/client.mjs +12 -0
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/agent.d.mts +102 -12
  13. package/resources/agent.d.mts.map +1 -1
  14. package/resources/agent.d.ts +102 -12
  15. package/resources/agent.d.ts.map +1 -1
  16. package/resources/agent.js +32 -4
  17. package/resources/agent.js.map +1 -1
  18. package/resources/agent.mjs +32 -4
  19. package/resources/agent.mjs.map +1 -1
  20. package/resources/app.d.mts +439 -0
  21. package/resources/app.d.mts.map +1 -0
  22. package/resources/app.d.ts +439 -0
  23. package/resources/app.d.ts.map +1 -0
  24. package/resources/app.js +69 -0
  25. package/resources/app.js.map +1 -0
  26. package/resources/app.mjs +65 -0
  27. package/resources/app.mjs.map +1 -0
  28. package/resources/asset.d.mts +53 -0
  29. package/resources/asset.d.mts.map +1 -0
  30. package/resources/asset.d.ts +53 -0
  31. package/resources/asset.d.ts.map +1 -0
  32. package/resources/asset.js +20 -0
  33. package/resources/asset.js.map +1 -0
  34. package/resources/asset.mjs +16 -0
  35. package/resources/asset.mjs.map +1 -0
  36. package/resources/batch-call.d.mts +4 -2
  37. package/resources/batch-call.d.mts.map +1 -1
  38. package/resources/batch-call.d.ts +4 -2
  39. package/resources/batch-call.d.ts.map +1 -1
  40. package/resources/call.d.mts +221 -27
  41. package/resources/call.d.mts.map +1 -1
  42. package/resources/call.d.ts +221 -27
  43. package/resources/call.d.ts.map +1 -1
  44. package/resources/call.js +37 -5
  45. package/resources/call.js.map +1 -1
  46. package/resources/call.mjs +37 -5
  47. package/resources/call.mjs.map +1 -1
  48. package/resources/chat-agent.d.mts +4 -10
  49. package/resources/chat-agent.d.mts.map +1 -1
  50. package/resources/chat-agent.d.ts +4 -10
  51. package/resources/chat-agent.d.ts.map +1 -1
  52. package/resources/chat-agent.js +2 -8
  53. package/resources/chat-agent.js.map +1 -1
  54. package/resources/chat-agent.mjs +2 -8
  55. package/resources/chat-agent.mjs.map +1 -1
  56. package/resources/chat.d.mts +24 -11
  57. package/resources/chat.d.mts.map +1 -1
  58. package/resources/chat.d.ts +24 -11
  59. package/resources/chat.d.ts.map +1 -1
  60. package/resources/contact.d.mts +669 -0
  61. package/resources/contact.d.mts.map +1 -0
  62. package/resources/contact.d.ts +669 -0
  63. package/resources/contact.d.ts.map +1 -0
  64. package/resources/contact.js +100 -0
  65. package/resources/contact.js.map +1 -0
  66. package/resources/contact.mjs +96 -0
  67. package/resources/contact.mjs.map +1 -0
  68. package/resources/conversation-flow-component.d.mts +56 -8
  69. package/resources/conversation-flow-component.d.mts.map +1 -1
  70. package/resources/conversation-flow-component.d.ts +56 -8
  71. package/resources/conversation-flow-component.d.ts.map +1 -1
  72. package/resources/conversation-flow.d.mts +120 -16
  73. package/resources/conversation-flow.d.mts.map +1 -1
  74. package/resources/conversation-flow.d.ts +120 -16
  75. package/resources/conversation-flow.d.ts.map +1 -1
  76. package/resources/conversation-flow.js +3 -1
  77. package/resources/conversation-flow.js.map +1 -1
  78. package/resources/conversation-flow.mjs +3 -1
  79. package/resources/conversation-flow.mjs.map +1 -1
  80. package/resources/crm.d.mts +226 -0
  81. package/resources/crm.d.mts.map +1 -0
  82. package/resources/crm.d.ts +226 -0
  83. package/resources/crm.d.ts.map +1 -0
  84. package/resources/crm.js +46 -0
  85. package/resources/crm.js.map +1 -0
  86. package/resources/crm.mjs +42 -0
  87. package/resources/crm.mjs.map +1 -0
  88. package/resources/export-request.d.mts +2 -2
  89. package/resources/export-request.d.mts.map +1 -1
  90. package/resources/export-request.d.ts +2 -2
  91. package/resources/export-request.d.ts.map +1 -1
  92. package/resources/index.d.mts +8 -4
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +8 -4
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/knowledge-base.d.mts +16 -8
  101. package/resources/knowledge-base.d.mts.map +1 -1
  102. package/resources/knowledge-base.d.ts +16 -8
  103. package/resources/knowledge-base.d.ts.map +1 -1
  104. package/resources/llm.d.mts +66 -10
  105. package/resources/llm.d.mts.map +1 -1
  106. package/resources/llm.d.ts +66 -10
  107. package/resources/llm.d.ts.map +1 -1
  108. package/resources/llm.js +3 -1
  109. package/resources/llm.js.map +1 -1
  110. package/resources/llm.mjs +3 -1
  111. package/resources/llm.mjs.map +1 -1
  112. package/resources/phone-number.d.mts +14 -8
  113. package/resources/phone-number.d.mts.map +1 -1
  114. package/resources/phone-number.d.ts +14 -8
  115. package/resources/phone-number.d.ts.map +1 -1
  116. package/resources/tests.d.mts +6 -6
  117. package/resources/tests.d.mts.map +1 -1
  118. package/resources/tests.d.ts +6 -6
  119. package/resources/tests.d.ts.map +1 -1
  120. package/resources/voice.d.mts +4 -4
  121. package/resources/voice.d.mts.map +1 -1
  122. package/resources/voice.d.ts +4 -4
  123. package/resources/voice.d.ts.map +1 -1
  124. package/src/client.ts +116 -0
  125. package/src/resources/agent.ts +141 -9
  126. package/src/resources/app.ts +593 -0
  127. package/src/resources/asset.ts +69 -0
  128. package/src/resources/batch-call.ts +6 -1
  129. package/src/resources/call.ts +289 -25
  130. package/src/resources/chat-agent.ts +4 -10
  131. package/src/resources/chat.ts +28 -11
  132. package/src/resources/contact.ts +910 -0
  133. package/src/resources/conversation-flow-component.ts +56 -8
  134. package/src/resources/conversation-flow.ts +127 -15
  135. package/src/resources/crm.ts +298 -0
  136. package/src/resources/export-request.ts +2 -2
  137. package/src/resources/index.ts +50 -0
  138. package/src/resources/knowledge-base.ts +16 -8
  139. package/src/resources/llm.ts +73 -9
  140. package/src/resources/phone-number.ts +14 -8
  141. package/src/resources/tests.ts +6 -6
  142. package/src/resources/voice.ts +4 -4
  143. package/src/version.ts +1 -1
  144. package/version.d.mts +1 -1
  145. package/version.d.ts +1 -1
  146. package/version.js +1 -1
  147. package/version.mjs +1 -1
@@ -0,0 +1,669 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { type Uploadable } from "../core/uploads.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Contact extends APIResource {
6
+ /**
7
+ * Create a new contact.
8
+ */
9
+ create(body: ContactCreateParams, options?: RequestOptions): APIPromise<ContactResponse>;
10
+ /**
11
+ * Update an existing contact.
12
+ */
13
+ update(contactID: string, body: ContactUpdateParams, options?: RequestOptions): APIPromise<ContactResponse>;
14
+ /**
15
+ * List contacts, newest conversation first by default, with the total count of
16
+ * matches alongside the page. Page through results with `pagination_key`; `skip`
17
+ * is available for offset-style paging but is slower on large contact sets and can
18
+ * repeat or miss rows as contacts are updated.
19
+ */
20
+ list(body?: ContactListParams | null | undefined, options?: RequestOptions): APIPromise<ContactListResponse>;
21
+ /**
22
+ * Delete a contact. A contact linked to a record in a connected CRM cannot be
23
+ * deleted while two-way sync is active — unlink the CRM app first, otherwise the
24
+ * next sync would recreate it.
25
+ */
26
+ delete(contactID: string, options?: RequestOptions): APIPromise<void>;
27
+ /**
28
+ * Trigger a backfill job that re-applies analysis data mappings to contacts using
29
+ * historical call data. Only one backfill job can run per organization at a time.
30
+ */
31
+ backfillAnalysisData(body: ContactBackfillAnalysisDataParams, options?: RequestOptions): APIPromise<ContactBackfillAnalysisDataResponse>;
32
+ /**
33
+ * Start an incremental contact import from an uploaded CSV: creates new contacts
34
+ * and updates existing ones matched by phone number. Mapped columns overwrite the
35
+ * matched contact's fields; unmapped columns are ignored. Runs asynchronously —
36
+ * poll get-contact-import for progress.
37
+ */
38
+ createImport(body: ContactCreateImportParams, options?: RequestOptions): APIPromise<ContactCreateImportResponse>;
39
+ /**
40
+ * Retrieve a contact by ID.
41
+ */
42
+ get(contactID: string, options?: RequestOptions): APIPromise<ContactResponse>;
43
+ /**
44
+ * Get the status of the contact analysis data backfill job.
45
+ */
46
+ getBackfillJobStatus(options?: RequestOptions): APIPromise<ContactGetBackfillJobStatusResponse>;
47
+ /**
48
+ * Retrieve a contact by phone number. At most one contact exists per phone number
49
+ * in an organization.
50
+ */
51
+ getByPhone(phoneNumber: string, options?: RequestOptions): APIPromise<ContactResponse>;
52
+ /**
53
+ * Status and counts for the org's current or latest contact import.
54
+ */
55
+ getImport(options?: RequestOptions): APIPromise<ContactGetImportResponse>;
56
+ /**
57
+ * List a contact's conversations (inbound calls, outbound calls, and chats) merged
58
+ * into a single timeline, most recent first. Results are matched by the contact's
59
+ * phone number. Use the returned `pagination_key` to fetch the next page.
60
+ */
61
+ listConversations(contactID: string, query?: ContactListConversationsParams | null | undefined, options?: RequestOptions): APIPromise<ContactListConversationsResponse>;
62
+ /**
63
+ * Upload a CSV file for a contact import. The file is stored privately and
64
+ * referenced by the returned upload_id in create-contact-import.
65
+ */
66
+ uploadImportFile(body: ContactUploadImportFileParams, options?: RequestOptions): APIPromise<ContactUploadImportFileResponse>;
67
+ }
68
+ export interface ContactResponse {
69
+ /**
70
+ * Unique identifier for the contact.
71
+ */
72
+ contact_id: string;
73
+ /**
74
+ * Epoch milliseconds when the contact was created.
75
+ */
76
+ created_timestamp: number;
77
+ /**
78
+ * Organization this contact belongs to.
79
+ */
80
+ org_id: string;
81
+ /**
82
+ * Phone number of the contact.
83
+ */
84
+ phone_number: string;
85
+ /**
86
+ * Number of conversations (calls and chats) associated with this contact.
87
+ */
88
+ conversation_count?: number;
89
+ /**
90
+ * Custom fields defined in CRM config.
91
+ */
92
+ custom_fields?: unknown;
93
+ /**
94
+ * Whether this contact should not be called.
95
+ */
96
+ do_not_call?: boolean;
97
+ /**
98
+ * CRM record ID from the external provider.
99
+ */
100
+ external_id?: string;
101
+ /**
102
+ * First name of the contact.
103
+ */
104
+ first_name?: string;
105
+ /**
106
+ * Epoch milliseconds of the most recent conversation with this contact.
107
+ */
108
+ last_conversation_timestamp?: number;
109
+ /**
110
+ * Last name of the contact.
111
+ */
112
+ last_name?: string;
113
+ /**
114
+ * Tags assigned to the contact.
115
+ */
116
+ tags?: Array<string>;
117
+ /**
118
+ * Epoch milliseconds when the contact was last modified.
119
+ */
120
+ user_modified_timestamp?: number;
121
+ }
122
+ export interface ContactListResponse {
123
+ /**
124
+ * Whether more results are available.
125
+ */
126
+ has_more: boolean;
127
+ items: Array<ContactResponse>;
128
+ /**
129
+ * Pagination key for the next page.
130
+ */
131
+ pagination_key?: string;
132
+ /**
133
+ * Total count of contacts matching the filter.
134
+ */
135
+ total?: number;
136
+ }
137
+ export interface ContactBackfillAnalysisDataResponse {
138
+ status: 'queued' | 'running' | 'idle';
139
+ /**
140
+ * Number of items that errored so far.
141
+ */
142
+ failed?: number;
143
+ /**
144
+ * Epoch milliseconds when the job started.
145
+ */
146
+ start_timestamp?: number;
147
+ /**
148
+ * Number of items processed successfully so far.
149
+ */
150
+ succeeded?: number;
151
+ /**
152
+ * Whether the job was started by an explicit API call (`manual`) or by the
153
+ * scheduled sync (`cron`).
154
+ */
155
+ triggered_by?: 'manual' | 'cron';
156
+ }
157
+ export interface ContactCreateImportResponse {
158
+ status: 'queued' | 'running' | 'idle';
159
+ /**
160
+ * Number of items that errored so far.
161
+ */
162
+ failed?: number;
163
+ /**
164
+ * Epoch milliseconds when the job started.
165
+ */
166
+ start_timestamp?: number;
167
+ /**
168
+ * Number of items processed successfully so far.
169
+ */
170
+ succeeded?: number;
171
+ /**
172
+ * Whether the job was started by an explicit API call (`manual`) or by the
173
+ * scheduled sync (`cron`).
174
+ */
175
+ triggered_by?: 'manual' | 'cron';
176
+ }
177
+ export interface ContactGetBackfillJobStatusResponse {
178
+ status: 'queued' | 'running' | 'idle';
179
+ /**
180
+ * Number of items that errored so far.
181
+ */
182
+ failed?: number;
183
+ /**
184
+ * Epoch milliseconds when the job started.
185
+ */
186
+ start_timestamp?: number;
187
+ /**
188
+ * Number of items processed successfully so far.
189
+ */
190
+ succeeded?: number;
191
+ /**
192
+ * Whether the job was started by an explicit API call (`manual`) or by the
193
+ * scheduled sync (`cron`).
194
+ */
195
+ triggered_by?: 'manual' | 'cron';
196
+ }
197
+ export interface ContactGetImportResponse {
198
+ status: 'queued' | 'running' | 'idle';
199
+ /**
200
+ * Number of items that errored so far.
201
+ */
202
+ failed?: number;
203
+ /**
204
+ * Epoch milliseconds when the job started.
205
+ */
206
+ start_timestamp?: number;
207
+ /**
208
+ * Number of items processed successfully so far.
209
+ */
210
+ succeeded?: number;
211
+ /**
212
+ * Whether the job was started by an explicit API call (`manual`) or by the
213
+ * scheduled sync (`cron`).
214
+ */
215
+ triggered_by?: 'manual' | 'cron';
216
+ }
217
+ export interface ContactListConversationsResponse {
218
+ /**
219
+ * Whether more results are available.
220
+ */
221
+ has_more: boolean;
222
+ items: Array<ContactListConversationsResponse.ContactCall | ContactListConversationsResponse.ContactChat>;
223
+ /**
224
+ * Pagination key for the next page.
225
+ */
226
+ pagination_key?: string;
227
+ }
228
+ export declare namespace ContactListConversationsResponse {
229
+ interface ContactCall {
230
+ call_id: string;
231
+ type: 'call';
232
+ /**
233
+ * Direction of the call.
234
+ */
235
+ direction?: 'inbound' | 'outbound';
236
+ /**
237
+ * Reason the call ended.
238
+ */
239
+ disconnection_reason?: string;
240
+ /**
241
+ * Duration of the call in milliseconds.
242
+ */
243
+ duration_ms?: number;
244
+ /**
245
+ * User sentiment from post-call analysis.
246
+ */
247
+ sentiment?: 'Negative' | 'Positive' | 'Neutral' | 'Unknown';
248
+ /**
249
+ * Epoch milliseconds when the call started.
250
+ */
251
+ start_timestamp?: number;
252
+ /**
253
+ * Whether the call was deemed successful by post-call analysis.
254
+ */
255
+ successful?: boolean;
256
+ /**
257
+ * Post-call analysis summary.
258
+ */
259
+ summary?: string;
260
+ }
261
+ interface ContactChat {
262
+ chat_id: string;
263
+ type: 'chat';
264
+ /**
265
+ * Direction of the chat.
266
+ */
267
+ direction?: 'inbound' | 'outbound';
268
+ /**
269
+ * Reason the chat ended.
270
+ */
271
+ disconnection_reason?: string;
272
+ /**
273
+ * Duration of the chat in milliseconds.
274
+ */
275
+ duration_ms?: number;
276
+ /**
277
+ * User sentiment from post-chat analysis.
278
+ */
279
+ sentiment?: 'Negative' | 'Positive' | 'Neutral' | 'Unknown';
280
+ /**
281
+ * Epoch milliseconds when the chat started.
282
+ */
283
+ start_timestamp?: number;
284
+ /**
285
+ * Whether the chat was deemed successful by post-chat analysis.
286
+ */
287
+ successful?: boolean;
288
+ /**
289
+ * Post-chat analysis summary.
290
+ */
291
+ summary?: string;
292
+ }
293
+ }
294
+ export interface ContactUploadImportFileResponse {
295
+ file_name?: string;
296
+ upload_id?: string;
297
+ }
298
+ export interface ContactCreateParams {
299
+ /**
300
+ * Phone number of the contact.
301
+ */
302
+ phone_number: string;
303
+ /**
304
+ * Values must match the types defined in CRM config custom fields. Set a value to
305
+ * null to clear it.
306
+ */
307
+ custom_fields?: unknown;
308
+ do_not_call?: boolean;
309
+ /**
310
+ * First name of the contact.
311
+ */
312
+ first_name?: string;
313
+ /**
314
+ * Last name of the contact.
315
+ */
316
+ last_name?: string;
317
+ /**
318
+ * Full set of tags for the contact.
319
+ */
320
+ tags?: Array<string>;
321
+ }
322
+ export interface ContactUpdateParams {
323
+ /**
324
+ * Values must match the types defined in CRM config custom fields. Set a value to
325
+ * null to clear it.
326
+ */
327
+ custom_fields?: unknown;
328
+ do_not_call?: boolean;
329
+ /**
330
+ * First name of the contact.
331
+ */
332
+ first_name?: string;
333
+ /**
334
+ * Last name of the contact.
335
+ */
336
+ last_name?: string;
337
+ /**
338
+ * Full replacement set of tags for the contact.
339
+ */
340
+ tags?: Array<string>;
341
+ }
342
+ export interface ContactListParams {
343
+ /**
344
+ * Filter criteria for contacts. All conditions are implicitly connected with AND.
345
+ * first_name and last_name are not filterable here; use search_query to match on
346
+ * those.
347
+ */
348
+ filter_criteria?: ContactListParams.FilterCriteria;
349
+ /**
350
+ * Maximum number of contacts to return.
351
+ */
352
+ limit?: number;
353
+ /**
354
+ * Base64url-encoded pagination key from a previous response.
355
+ */
356
+ pagination_key?: string;
357
+ /**
358
+ * Case-insensitive substring match against phone number, first name, last name,
359
+ * external ID, and custom field values. This is the only way to match on a
360
+ * contact's name.
361
+ */
362
+ search_query?: string;
363
+ /**
364
+ * Number of records to skip for offset-based pagination.
365
+ */
366
+ skip?: number;
367
+ /**
368
+ * Sort contacts by `last_conversation_timestamp` in ascending or descending order.
369
+ * Contacts that have never been contacted sort as if their timestamp were 0.
370
+ */
371
+ sort_order?: 'asc' | 'desc';
372
+ }
373
+ export declare namespace ContactListParams {
374
+ /**
375
+ * Filter criteria for contacts. All conditions are implicitly connected with AND.
376
+ * first_name and last_name are not filterable here; use search_query to match on
377
+ * those.
378
+ */
379
+ interface FilterCriteria {
380
+ contact_id?: FilterCriteria.ContactID;
381
+ /**
382
+ * Filter by custom contact fields defined in CRM config.
383
+ */
384
+ custom_fields?: Array<FilterCriteria.StringFilter | FilterCriteria.NumberFilter | FilterCriteria.BooleanFilter | FilterCriteria.RangeFilter | FilterCriteria.EnumFilter | FilterCriteria.PresentFilter>;
385
+ /**
386
+ * Filter by whether the contact is marked do-not-call.
387
+ */
388
+ do_not_call?: FilterCriteria.DoNotCall;
389
+ /**
390
+ * Filter by the record id in the connected CRM. Use a `present` filter to separate
391
+ * synced from unsynced contacts.
392
+ */
393
+ external_id?: FilterCriteria.StringFilter | FilterCriteria.PresentFilter;
394
+ /**
395
+ * Filter by when the contact was last spoken to, in epoch milliseconds.
396
+ */
397
+ last_conversation_timestamp?: FilterCriteria.NumberFilter | FilterCriteria.RangeFilter;
398
+ /**
399
+ * Filter by phone number. Stored in E.164, so an `eq` filter needs the full
400
+ * number.
401
+ */
402
+ phone_number?: FilterCriteria.PhoneNumber;
403
+ /**
404
+ * Match contacts that have any of the listed tags.
405
+ */
406
+ tags?: FilterCriteria.Tags;
407
+ }
408
+ namespace FilterCriteria {
409
+ interface ContactID {
410
+ /**
411
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
412
+ */
413
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
414
+ type: 'string';
415
+ value: string;
416
+ }
417
+ interface StringFilter {
418
+ /**
419
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
420
+ */
421
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
422
+ type: 'string';
423
+ value: string;
424
+ /**
425
+ * The field name to filter on.
426
+ */
427
+ key?: string;
428
+ }
429
+ interface NumberFilter {
430
+ /**
431
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
432
+ * than, le: less than or equal
433
+ */
434
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
435
+ type: 'number';
436
+ value: number;
437
+ /**
438
+ * The field name to filter on.
439
+ */
440
+ key?: string;
441
+ }
442
+ interface BooleanFilter {
443
+ op: 'eq';
444
+ type: 'boolean';
445
+ value: boolean;
446
+ /**
447
+ * The field name to filter on.
448
+ */
449
+ key?: string;
450
+ }
451
+ interface RangeFilter {
452
+ /**
453
+ * bt: between
454
+ */
455
+ op: 'bt';
456
+ type: 'range';
457
+ /**
458
+ * [lower_bound, upper_bound]
459
+ */
460
+ value: Array<number>;
461
+ /**
462
+ * The field name to filter on.
463
+ */
464
+ key?: string;
465
+ }
466
+ interface EnumFilter {
467
+ /**
468
+ * in: value is one of the listed values
469
+ */
470
+ op: 'in';
471
+ type: 'enum';
472
+ value: Array<string>;
473
+ /**
474
+ * The field name to filter on.
475
+ */
476
+ key?: string;
477
+ }
478
+ interface PresentFilter {
479
+ /**
480
+ * pr: present (has value), np: not present
481
+ */
482
+ op: 'pr' | 'np';
483
+ type: 'present';
484
+ /**
485
+ * The field name to filter on.
486
+ */
487
+ key?: string;
488
+ }
489
+ /**
490
+ * Filter by whether the contact is marked do-not-call.
491
+ */
492
+ interface DoNotCall {
493
+ op: 'eq';
494
+ type: 'boolean';
495
+ value: boolean;
496
+ }
497
+ interface StringFilter {
498
+ /**
499
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
500
+ */
501
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
502
+ type: 'string';
503
+ value: string;
504
+ }
505
+ interface PresentFilter {
506
+ /**
507
+ * pr: present (has value), np: not present
508
+ */
509
+ op: 'pr' | 'np';
510
+ type: 'present';
511
+ }
512
+ interface NumberFilter {
513
+ /**
514
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
515
+ * than, le: less than or equal
516
+ */
517
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
518
+ type: 'number';
519
+ value: number;
520
+ }
521
+ interface RangeFilter {
522
+ /**
523
+ * bt: between
524
+ */
525
+ op: 'bt';
526
+ type: 'range';
527
+ /**
528
+ * [lower_bound, upper_bound]
529
+ */
530
+ value: Array<number>;
531
+ }
532
+ /**
533
+ * Filter by phone number. Stored in E.164, so an `eq` filter needs the full
534
+ * number.
535
+ */
536
+ interface PhoneNumber {
537
+ /**
538
+ * eq: equal, ne: not equal, sw: starts with, ew: ends with, co: contains
539
+ */
540
+ op: 'eq' | 'ne' | 'sw' | 'ew' | 'co';
541
+ type: 'string';
542
+ value: string;
543
+ }
544
+ /**
545
+ * Match contacts that have any of the listed tags.
546
+ */
547
+ interface Tags {
548
+ /**
549
+ * in: value is one of the listed values
550
+ */
551
+ op: 'in';
552
+ type: 'enum';
553
+ value: Array<string>;
554
+ }
555
+ }
556
+ }
557
+ export interface ContactBackfillAnalysisDataParams {
558
+ /**
559
+ * Contact fields to recompute. Each one must still exist as a contact field and
560
+ * have an analysis data mapping configured, otherwise the request is rejected
561
+ * rather than running a job that writes nothing.
562
+ */
563
+ backfill_attributes: Array<string>;
564
+ /**
565
+ * Optional call filter to scope which calls are processed. Supports agent and
566
+ * start_timestamp from the standard call filter.
567
+ */
568
+ backfill_call_filter?: ContactBackfillAnalysisDataParams.BackfillCallFilter;
569
+ }
570
+ export declare namespace ContactBackfillAnalysisDataParams {
571
+ /**
572
+ * Optional call filter to scope which calls are processed. Supports agent and
573
+ * start_timestamp from the standard call filter.
574
+ */
575
+ interface BackfillCallFilter {
576
+ /**
577
+ * Filter calls by agent. Agents are OR-connected.
578
+ */
579
+ agent?: Array<BackfillCallFilter.Agent>;
580
+ /**
581
+ * Filter calls by start timestamp (epoch ms).
582
+ */
583
+ start_timestamp?: BackfillCallFilter.NumberFilter | BackfillCallFilter.RangeFilter;
584
+ }
585
+ namespace BackfillCallFilter {
586
+ interface Agent {
587
+ /**
588
+ * The agent ID to filter on.
589
+ */
590
+ agent_id: string;
591
+ /**
592
+ * Specific versions to filter on. If omitted or empty, all versions are included.
593
+ */
594
+ version?: Array<number>;
595
+ }
596
+ interface NumberFilter {
597
+ /**
598
+ * eq: equal, ne: not equal, gt: greater than, ge: greater than or equal, lt: less
599
+ * than, le: less than or equal
600
+ */
601
+ op: 'eq' | 'ne' | 'gt' | 'ge' | 'lt' | 'le';
602
+ type: 'number';
603
+ value: number;
604
+ }
605
+ interface RangeFilter {
606
+ /**
607
+ * bt: between
608
+ */
609
+ op: 'bt';
610
+ type: 'range';
611
+ /**
612
+ * [lower_bound, upper_bound]
613
+ */
614
+ value: Array<number>;
615
+ }
616
+ }
617
+ }
618
+ export interface ContactCreateImportParams {
619
+ /**
620
+ * CSV headers mapped to contact fields. field_name is the contact field and
621
+ * external_field_name is the CSV header. Exactly one mapping must target
622
+ * phone_number. Unmapped columns are ignored.
623
+ */
624
+ column_mapping: Array<ContactCreateImportParams.ColumnMapping>;
625
+ /**
626
+ * Id returned by upload-contact-import-file.
627
+ */
628
+ upload_id: string;
629
+ /**
630
+ * Country for parsing phone numbers without a country code. Defaults to US.
631
+ */
632
+ default_country?: string;
633
+ /**
634
+ * Tags added to every contact in this import. Existing tags are preserved. Omit to
635
+ * leave tags unchanged.
636
+ */
637
+ tags?: Array<string>;
638
+ }
639
+ export declare namespace ContactCreateImportParams {
640
+ interface ColumnMapping {
641
+ /**
642
+ * Field on the CRM's contact object to map to. A name that does not exist there
643
+ * surfaces as an error on the sync job rather than at configuration time.
644
+ */
645
+ external_field_name: string;
646
+ /**
647
+ * Retell contact field, built-in or custom, to map. Types must be compatible with
648
+ * the CRM field on both sides of the sync.
649
+ */
650
+ field_name: string;
651
+ }
652
+ }
653
+ export interface ContactListConversationsParams {
654
+ /**
655
+ * Maximum number of items to return.
656
+ */
657
+ limit?: number;
658
+ /**
659
+ * Pagination key for fetching the next page.
660
+ */
661
+ pagination_key?: string;
662
+ }
663
+ export interface ContactUploadImportFileParams {
664
+ file: Uploadable;
665
+ }
666
+ export declare namespace Contact {
667
+ export { type ContactResponse as ContactResponse, type ContactListResponse as ContactListResponse, type ContactBackfillAnalysisDataResponse as ContactBackfillAnalysisDataResponse, type ContactCreateImportResponse as ContactCreateImportResponse, type ContactGetBackfillJobStatusResponse as ContactGetBackfillJobStatusResponse, type ContactGetImportResponse as ContactGetImportResponse, type ContactListConversationsResponse as ContactListConversationsResponse, type ContactUploadImportFileResponse as ContactUploadImportFileResponse, type ContactCreateParams as ContactCreateParams, type ContactUpdateParams as ContactUpdateParams, type ContactListParams as ContactListParams, type ContactBackfillAnalysisDataParams as ContactBackfillAnalysisDataParams, type ContactCreateImportParams as ContactCreateImportParams, type ContactListConversationsParams as ContactListConversationsParams, type ContactUploadImportFileParams as ContactUploadImportFileParams, };
668
+ }
669
+ //# sourceMappingURL=contact.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contact.d.ts","sourceRoot":"","sources":["../src/resources/contact.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,KAAK,UAAU,EAAE,2BAAwB;A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