retell-sdk 5.64.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.
- package/CHANGELOG.md +30 -0
- package/README.md +29 -0
- package/client.d.mts +9 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +9 -6
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/agent.d.mts +43 -13
- package/resources/agent.d.mts.map +1 -1
- package/resources/agent.d.ts +43 -13
- package/resources/agent.d.ts.map +1 -1
- package/resources/agent.js +21 -2
- package/resources/agent.js.map +1 -1
- package/resources/agent.mjs +21 -2
- package/resources/agent.mjs.map +1 -1
- package/resources/app.d.mts +28 -46
- package/resources/app.d.mts.map +1 -1
- package/resources/app.d.ts +28 -46
- package/resources/app.d.ts.map +1 -1
- package/resources/app.js +7 -5
- package/resources/app.js.map +1 -1
- package/resources/app.mjs +7 -5
- package/resources/app.mjs.map +1 -1
- package/resources/asset.d.mts +53 -0
- package/resources/asset.d.mts.map +1 -0
- package/resources/asset.d.ts +53 -0
- package/resources/asset.d.ts.map +1 -0
- package/resources/asset.js +20 -0
- package/resources/asset.js.map +1 -0
- package/resources/asset.mjs +16 -0
- package/resources/asset.mjs.map +1 -0
- package/resources/batch-call.d.mts +4 -2
- package/resources/batch-call.d.mts.map +1 -1
- package/resources/batch-call.d.ts +4 -2
- package/resources/batch-call.d.ts.map +1 -1
- package/resources/call.d.mts +155 -21
- package/resources/call.d.mts.map +1 -1
- package/resources/call.d.ts +155 -21
- package/resources/call.d.ts.map +1 -1
- package/resources/call.js +37 -5
- package/resources/call.js.map +1 -1
- package/resources/call.mjs +37 -5
- package/resources/call.mjs.map +1 -1
- package/resources/chat-agent.d.mts +2 -2
- package/resources/chat-agent.d.mts.map +1 -1
- package/resources/chat-agent.d.ts +2 -2
- package/resources/chat-agent.d.ts.map +1 -1
- package/resources/chat.d.mts +24 -11
- package/resources/chat.d.mts.map +1 -1
- package/resources/chat.d.ts +24 -11
- package/resources/chat.d.ts.map +1 -1
- package/resources/contact.d.mts +138 -10
- package/resources/contact.d.mts.map +1 -1
- package/resources/contact.d.ts +138 -10
- package/resources/contact.d.ts.map +1 -1
- package/resources/contact.js +23 -0
- package/resources/contact.js.map +1 -1
- package/resources/contact.mjs +23 -0
- package/resources/contact.mjs.map +1 -1
- package/resources/conversation-flow-component.d.mts +38 -2
- package/resources/conversation-flow-component.d.mts.map +1 -1
- package/resources/conversation-flow-component.d.ts +38 -2
- package/resources/conversation-flow-component.d.ts.map +1 -1
- package/resources/conversation-flow.d.mts +74 -2
- package/resources/conversation-flow.d.mts.map +1 -1
- package/resources/conversation-flow.d.ts +74 -2
- package/resources/conversation-flow.d.ts.map +1 -1
- package/resources/crm.d.mts +4 -0
- package/resources/crm.d.mts.map +1 -1
- package/resources/crm.d.ts +4 -0
- package/resources/crm.d.ts.map +1 -1
- package/resources/export-request.d.mts +2 -2
- package/resources/export-request.d.mts.map +1 -1
- package/resources/export-request.d.ts +2 -2
- package/resources/export-request.d.ts.map +1 -1
- package/resources/index.d.mts +4 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/knowledge-base.d.mts +7 -7
- package/resources/knowledge-base.d.ts +7 -7
- package/resources/llm.d.mts +38 -2
- package/resources/llm.d.mts.map +1 -1
- package/resources/llm.d.ts +38 -2
- package/resources/llm.d.ts.map +1 -1
- package/resources/phone-number.d.mts +14 -8
- package/resources/phone-number.d.mts.map +1 -1
- package/resources/phone-number.d.ts +14 -8
- package/resources/phone-number.d.ts.map +1 -1
- package/resources/tests.d.mts +6 -6
- package/resources/tests.d.mts.map +1 -1
- package/resources/tests.d.ts +6 -6
- package/resources/tests.d.ts.map +1 -1
- package/resources/voice.d.mts +4 -4
- package/resources/voice.d.mts.map +1 -1
- package/resources/voice.d.ts +4 -4
- package/resources/voice.d.ts.map +1 -1
- package/src/client.ts +31 -0
- package/src/resources/agent.ts +60 -9
- package/src/resources/app.ts +29 -58
- package/src/resources/asset.ts +69 -0
- package/src/resources/batch-call.ts +6 -1
- package/src/resources/call.ts +196 -18
- package/src/resources/chat-agent.ts +2 -2
- package/src/resources/chat.ts +28 -11
- package/src/resources/contact.ts +187 -9
- package/src/resources/conversation-flow-component.ts +38 -2
- package/src/resources/conversation-flow.ts +74 -2
- package/src/resources/crm.ts +5 -0
- package/src/resources/export-request.ts +2 -2
- package/src/resources/index.ts +12 -0
- package/src/resources/knowledge-base.ts +7 -7
- package/src/resources/llm.ts +38 -2
- package/src/resources/phone-number.ts +14 -8
- package/src/resources/tests.ts +6 -6
- package/src/resources/voice.ts +4 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/contact.ts
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { type Uploadable } from '../core/uploads';
|
|
5
6
|
import { buildHeaders } from '../internal/headers';
|
|
6
7
|
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { multipartFormRequestOptions } from '../internal/uploads';
|
|
7
9
|
import { path } from '../internal/utils/path';
|
|
8
10
|
|
|
9
11
|
export class Contact extends APIResource {
|
|
@@ -61,6 +63,19 @@ export class Contact extends APIResource {
|
|
|
61
63
|
return this._client.post('/backfill-contact-analysis-data', { body, ...options });
|
|
62
64
|
}
|
|
63
65
|
|
|
66
|
+
/**
|
|
67
|
+
* Start an incremental contact import from an uploaded CSV: creates new contacts
|
|
68
|
+
* and updates existing ones matched by phone number. Mapped columns overwrite the
|
|
69
|
+
* matched contact's fields; unmapped columns are ignored. Runs asynchronously —
|
|
70
|
+
* poll get-contact-import for progress.
|
|
71
|
+
*/
|
|
72
|
+
createImport(
|
|
73
|
+
body: ContactCreateImportParams,
|
|
74
|
+
options?: RequestOptions,
|
|
75
|
+
): APIPromise<ContactCreateImportResponse> {
|
|
76
|
+
return this._client.post('/create-contact-import', { body, ...options });
|
|
77
|
+
}
|
|
78
|
+
|
|
64
79
|
/**
|
|
65
80
|
* Retrieve a contact by ID.
|
|
66
81
|
*/
|
|
@@ -83,6 +98,13 @@ export class Contact extends APIResource {
|
|
|
83
98
|
return this._client.get(path`/get-contact-by-phone/${phoneNumber}`, options);
|
|
84
99
|
}
|
|
85
100
|
|
|
101
|
+
/**
|
|
102
|
+
* Status and counts for the org's current or latest contact import.
|
|
103
|
+
*/
|
|
104
|
+
getImport(options?: RequestOptions): APIPromise<ContactGetImportResponse> {
|
|
105
|
+
return this._client.get('/get-contact-import', options);
|
|
106
|
+
}
|
|
107
|
+
|
|
86
108
|
/**
|
|
87
109
|
* List a contact's conversations (inbound calls, outbound calls, and chats) merged
|
|
88
110
|
* into a single timeline, most recent first. Results are matched by the contact's
|
|
@@ -95,6 +117,20 @@ export class Contact extends APIResource {
|
|
|
95
117
|
): APIPromise<ContactListConversationsResponse> {
|
|
96
118
|
return this._client.get(path`/list-contact-conversations/${contactID}`, { query, ...options });
|
|
97
119
|
}
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Upload a CSV file for a contact import. The file is stored privately and
|
|
123
|
+
* referenced by the returned upload_id in create-contact-import.
|
|
124
|
+
*/
|
|
125
|
+
uploadImportFile(
|
|
126
|
+
body: ContactUploadImportFileParams,
|
|
127
|
+
options?: RequestOptions,
|
|
128
|
+
): APIPromise<ContactUploadImportFileResponse> {
|
|
129
|
+
return this._client.post(
|
|
130
|
+
'/upload-contact-import-file',
|
|
131
|
+
multipartFormRequestOptions({ body, ...options }, this._client),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
98
134
|
}
|
|
99
135
|
|
|
100
136
|
export interface ContactResponse {
|
|
@@ -153,6 +189,11 @@ export interface ContactResponse {
|
|
|
153
189
|
*/
|
|
154
190
|
last_name?: string;
|
|
155
191
|
|
|
192
|
+
/**
|
|
193
|
+
* Tags assigned to the contact.
|
|
194
|
+
*/
|
|
195
|
+
tags?: Array<string>;
|
|
196
|
+
|
|
156
197
|
/**
|
|
157
198
|
* Epoch milliseconds when the contact was last modified.
|
|
158
199
|
*/
|
|
@@ -160,12 +201,15 @@ export interface ContactResponse {
|
|
|
160
201
|
}
|
|
161
202
|
|
|
162
203
|
export interface ContactListResponse {
|
|
163
|
-
|
|
204
|
+
/**
|
|
205
|
+
* Whether more results are available.
|
|
206
|
+
*/
|
|
207
|
+
has_more: boolean;
|
|
164
208
|
|
|
165
|
-
items
|
|
209
|
+
items: Array<ContactResponse>;
|
|
166
210
|
|
|
167
211
|
/**
|
|
168
|
-
*
|
|
212
|
+
* Pagination key for the next page.
|
|
169
213
|
*/
|
|
170
214
|
pagination_key?: string;
|
|
171
215
|
|
|
@@ -200,6 +244,31 @@ export interface ContactBackfillAnalysisDataResponse {
|
|
|
200
244
|
triggered_by?: 'manual' | 'cron';
|
|
201
245
|
}
|
|
202
246
|
|
|
247
|
+
export interface ContactCreateImportResponse {
|
|
248
|
+
status: 'queued' | 'running' | 'idle';
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Number of items that errored so far.
|
|
252
|
+
*/
|
|
253
|
+
failed?: number;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Epoch milliseconds when the job started.
|
|
257
|
+
*/
|
|
258
|
+
start_timestamp?: number;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Number of items processed successfully so far.
|
|
262
|
+
*/
|
|
263
|
+
succeeded?: number;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
267
|
+
* scheduled sync (`cron`).
|
|
268
|
+
*/
|
|
269
|
+
triggered_by?: 'manual' | 'cron';
|
|
270
|
+
}
|
|
271
|
+
|
|
203
272
|
export interface ContactGetBackfillJobStatusResponse {
|
|
204
273
|
status: 'queued' | 'running' | 'idle';
|
|
205
274
|
|
|
@@ -225,17 +294,41 @@ export interface ContactGetBackfillJobStatusResponse {
|
|
|
225
294
|
triggered_by?: 'manual' | 'cron';
|
|
226
295
|
}
|
|
227
296
|
|
|
297
|
+
export interface ContactGetImportResponse {
|
|
298
|
+
status: 'queued' | 'running' | 'idle';
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Number of items that errored so far.
|
|
302
|
+
*/
|
|
303
|
+
failed?: number;
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* Epoch milliseconds when the job started.
|
|
307
|
+
*/
|
|
308
|
+
start_timestamp?: number;
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* Number of items processed successfully so far.
|
|
312
|
+
*/
|
|
313
|
+
succeeded?: number;
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Whether the job was started by an explicit API call (`manual`) or by the
|
|
317
|
+
* scheduled sync (`cron`).
|
|
318
|
+
*/
|
|
319
|
+
triggered_by?: 'manual' | 'cron';
|
|
320
|
+
}
|
|
321
|
+
|
|
228
322
|
export interface ContactListConversationsResponse {
|
|
229
323
|
/**
|
|
230
|
-
* Whether more
|
|
324
|
+
* Whether more results are available.
|
|
231
325
|
*/
|
|
232
|
-
has_more
|
|
326
|
+
has_more: boolean;
|
|
233
327
|
|
|
234
|
-
items
|
|
328
|
+
items: Array<ContactListConversationsResponse.ContactCall | ContactListConversationsResponse.ContactChat>;
|
|
235
329
|
|
|
236
330
|
/**
|
|
237
|
-
*
|
|
238
|
-
* fetch the next page.
|
|
331
|
+
* Pagination key for the next page.
|
|
239
332
|
*/
|
|
240
333
|
pagination_key?: string;
|
|
241
334
|
}
|
|
@@ -324,6 +417,12 @@ export namespace ContactListConversationsResponse {
|
|
|
324
417
|
}
|
|
325
418
|
}
|
|
326
419
|
|
|
420
|
+
export interface ContactUploadImportFileResponse {
|
|
421
|
+
file_name?: string;
|
|
422
|
+
|
|
423
|
+
upload_id?: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
327
426
|
export interface ContactCreateParams {
|
|
328
427
|
/**
|
|
329
428
|
* Phone number of the contact.
|
|
@@ -347,6 +446,11 @@ export interface ContactCreateParams {
|
|
|
347
446
|
* Last name of the contact.
|
|
348
447
|
*/
|
|
349
448
|
last_name?: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Full set of tags for the contact.
|
|
452
|
+
*/
|
|
453
|
+
tags?: Array<string>;
|
|
350
454
|
}
|
|
351
455
|
|
|
352
456
|
export interface ContactUpdateParams {
|
|
@@ -367,6 +471,11 @@ export interface ContactUpdateParams {
|
|
|
367
471
|
* Last name of the contact.
|
|
368
472
|
*/
|
|
369
473
|
last_name?: string;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Full replacement set of tags for the contact.
|
|
477
|
+
*/
|
|
478
|
+
tags?: Array<string>;
|
|
370
479
|
}
|
|
371
480
|
|
|
372
481
|
export interface ContactListParams {
|
|
@@ -448,6 +557,11 @@ export namespace ContactListParams {
|
|
|
448
557
|
* number.
|
|
449
558
|
*/
|
|
450
559
|
phone_number?: FilterCriteria.PhoneNumber;
|
|
560
|
+
|
|
561
|
+
/**
|
|
562
|
+
* Match contacts that have any of the listed tags.
|
|
563
|
+
*/
|
|
564
|
+
tags?: FilterCriteria.Tags;
|
|
451
565
|
}
|
|
452
566
|
|
|
453
567
|
export namespace FilterCriteria {
|
|
@@ -628,6 +742,20 @@ export namespace ContactListParams {
|
|
|
628
742
|
|
|
629
743
|
value: string;
|
|
630
744
|
}
|
|
745
|
+
|
|
746
|
+
/**
|
|
747
|
+
* Match contacts that have any of the listed tags.
|
|
748
|
+
*/
|
|
749
|
+
export interface Tags {
|
|
750
|
+
/**
|
|
751
|
+
* in: value is one of the listed values
|
|
752
|
+
*/
|
|
753
|
+
op: 'in';
|
|
754
|
+
|
|
755
|
+
type: 'enum';
|
|
756
|
+
|
|
757
|
+
value: Array<string>;
|
|
758
|
+
}
|
|
631
759
|
}
|
|
632
760
|
}
|
|
633
761
|
|
|
@@ -671,7 +799,7 @@ export namespace ContactBackfillAnalysisDataParams {
|
|
|
671
799
|
agent_id: string;
|
|
672
800
|
|
|
673
801
|
/**
|
|
674
|
-
* Specific versions to filter on. If
|
|
802
|
+
* Specific versions to filter on. If omitted or empty, all versions are included.
|
|
675
803
|
*/
|
|
676
804
|
version?: Array<number>;
|
|
677
805
|
}
|
|
@@ -704,6 +832,47 @@ export namespace ContactBackfillAnalysisDataParams {
|
|
|
704
832
|
}
|
|
705
833
|
}
|
|
706
834
|
|
|
835
|
+
export interface ContactCreateImportParams {
|
|
836
|
+
/**
|
|
837
|
+
* CSV headers mapped to contact fields. field_name is the contact field and
|
|
838
|
+
* external_field_name is the CSV header. Exactly one mapping must target
|
|
839
|
+
* phone_number. Unmapped columns are ignored.
|
|
840
|
+
*/
|
|
841
|
+
column_mapping: Array<ContactCreateImportParams.ColumnMapping>;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* Id returned by upload-contact-import-file.
|
|
845
|
+
*/
|
|
846
|
+
upload_id: string;
|
|
847
|
+
|
|
848
|
+
/**
|
|
849
|
+
* Country for parsing phone numbers without a country code. Defaults to US.
|
|
850
|
+
*/
|
|
851
|
+
default_country?: string;
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Tags added to every contact in this import. Existing tags are preserved. Omit to
|
|
855
|
+
* leave tags unchanged.
|
|
856
|
+
*/
|
|
857
|
+
tags?: Array<string>;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
export namespace ContactCreateImportParams {
|
|
861
|
+
export interface ColumnMapping {
|
|
862
|
+
/**
|
|
863
|
+
* Field on the CRM's contact object to map to. A name that does not exist there
|
|
864
|
+
* surfaces as an error on the sync job rather than at configuration time.
|
|
865
|
+
*/
|
|
866
|
+
external_field_name: string;
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* Retell contact field, built-in or custom, to map. Types must be compatible with
|
|
870
|
+
* the CRM field on both sides of the sync.
|
|
871
|
+
*/
|
|
872
|
+
field_name: string;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
|
|
707
876
|
export interface ContactListConversationsParams {
|
|
708
877
|
/**
|
|
709
878
|
* Maximum number of items to return.
|
|
@@ -716,17 +885,26 @@ export interface ContactListConversationsParams {
|
|
|
716
885
|
pagination_key?: string;
|
|
717
886
|
}
|
|
718
887
|
|
|
888
|
+
export interface ContactUploadImportFileParams {
|
|
889
|
+
file: Uploadable;
|
|
890
|
+
}
|
|
891
|
+
|
|
719
892
|
export declare namespace Contact {
|
|
720
893
|
export {
|
|
721
894
|
type ContactResponse as ContactResponse,
|
|
722
895
|
type ContactListResponse as ContactListResponse,
|
|
723
896
|
type ContactBackfillAnalysisDataResponse as ContactBackfillAnalysisDataResponse,
|
|
897
|
+
type ContactCreateImportResponse as ContactCreateImportResponse,
|
|
724
898
|
type ContactGetBackfillJobStatusResponse as ContactGetBackfillJobStatusResponse,
|
|
899
|
+
type ContactGetImportResponse as ContactGetImportResponse,
|
|
725
900
|
type ContactListConversationsResponse as ContactListConversationsResponse,
|
|
901
|
+
type ContactUploadImportFileResponse as ContactUploadImportFileResponse,
|
|
726
902
|
type ContactCreateParams as ContactCreateParams,
|
|
727
903
|
type ContactUpdateParams as ContactUpdateParams,
|
|
728
904
|
type ContactListParams as ContactListParams,
|
|
729
905
|
type ContactBackfillAnalysisDataParams as ContactBackfillAnalysisDataParams,
|
|
906
|
+
type ContactCreateImportParams as ContactCreateImportParams,
|
|
730
907
|
type ContactListConversationsParams as ContactListConversationsParams,
|
|
908
|
+
type ContactUploadImportFileParams as ContactUploadImportFileParams,
|
|
731
909
|
};
|
|
732
910
|
}
|
|
@@ -2011,6 +2011,9 @@ export namespace ConversationFlowComponentResponse {
|
|
|
2011
2011
|
}
|
|
2012
2012
|
}
|
|
2013
2013
|
|
|
2014
|
+
/**
|
|
2015
|
+
* @deprecated
|
|
2016
|
+
*/
|
|
2014
2017
|
export interface CheckAvailabilityCalTool {
|
|
2015
2018
|
/**
|
|
2016
2019
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -2051,6 +2054,9 @@ export namespace ConversationFlowComponentResponse {
|
|
|
2051
2054
|
timezone?: string;
|
|
2052
2055
|
}
|
|
2053
2056
|
|
|
2057
|
+
/**
|
|
2058
|
+
* @deprecated
|
|
2059
|
+
*/
|
|
2054
2060
|
export interface BookAppointmentCalTool {
|
|
2055
2061
|
/**
|
|
2056
2062
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -8673,6 +8679,9 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8673
8679
|
}
|
|
8674
8680
|
}
|
|
8675
8681
|
|
|
8682
|
+
/**
|
|
8683
|
+
* @deprecated
|
|
8684
|
+
*/
|
|
8676
8685
|
export interface CheckAvailabilityCalTool {
|
|
8677
8686
|
/**
|
|
8678
8687
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -8718,6 +8727,9 @@ export namespace ConversationFlowComponentResponse {
|
|
|
8718
8727
|
tool_id?: string;
|
|
8719
8728
|
}
|
|
8720
8729
|
|
|
8730
|
+
/**
|
|
8731
|
+
* @deprecated
|
|
8732
|
+
*/
|
|
8721
8733
|
export interface BookAppointmentCalTool {
|
|
8722
8734
|
/**
|
|
8723
8735
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -8768,9 +8780,9 @@ export interface ConversationFlowComponentListResponse {
|
|
|
8768
8780
|
/**
|
|
8769
8781
|
* Whether more results are available.
|
|
8770
8782
|
*/
|
|
8771
|
-
has_more
|
|
8783
|
+
has_more: boolean;
|
|
8772
8784
|
|
|
8773
|
-
items
|
|
8785
|
+
items: Array<ConversationFlowComponentResponse>;
|
|
8774
8786
|
|
|
8775
8787
|
/**
|
|
8776
8788
|
* Pagination key for the next page.
|
|
@@ -10664,6 +10676,9 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
10664
10676
|
}
|
|
10665
10677
|
}
|
|
10666
10678
|
|
|
10679
|
+
/**
|
|
10680
|
+
* @deprecated
|
|
10681
|
+
*/
|
|
10667
10682
|
export interface CheckAvailabilityCalTool {
|
|
10668
10683
|
/**
|
|
10669
10684
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -10704,6 +10719,9 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
10704
10719
|
timezone?: string;
|
|
10705
10720
|
}
|
|
10706
10721
|
|
|
10722
|
+
/**
|
|
10723
|
+
* @deprecated
|
|
10724
|
+
*/
|
|
10707
10725
|
export interface BookAppointmentCalTool {
|
|
10708
10726
|
/**
|
|
10709
10727
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -17326,6 +17344,9 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
17326
17344
|
}
|
|
17327
17345
|
}
|
|
17328
17346
|
|
|
17347
|
+
/**
|
|
17348
|
+
* @deprecated
|
|
17349
|
+
*/
|
|
17329
17350
|
export interface CheckAvailabilityCalTool {
|
|
17330
17351
|
/**
|
|
17331
17352
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -17371,6 +17392,9 @@ export namespace ConversationFlowComponentCreateParams {
|
|
|
17371
17392
|
tool_id?: string;
|
|
17372
17393
|
}
|
|
17373
17394
|
|
|
17395
|
+
/**
|
|
17396
|
+
* @deprecated
|
|
17397
|
+
*/
|
|
17374
17398
|
export interface BookAppointmentCalTool {
|
|
17375
17399
|
/**
|
|
17376
17400
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -19337,6 +19361,9 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
19337
19361
|
}
|
|
19338
19362
|
}
|
|
19339
19363
|
|
|
19364
|
+
/**
|
|
19365
|
+
* @deprecated
|
|
19366
|
+
*/
|
|
19340
19367
|
export interface CheckAvailabilityCalTool {
|
|
19341
19368
|
/**
|
|
19342
19369
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -19377,6 +19404,9 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
19377
19404
|
timezone?: string;
|
|
19378
19405
|
}
|
|
19379
19406
|
|
|
19407
|
+
/**
|
|
19408
|
+
* @deprecated
|
|
19409
|
+
*/
|
|
19380
19410
|
export interface BookAppointmentCalTool {
|
|
19381
19411
|
/**
|
|
19382
19412
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -25965,6 +25995,9 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
25965
25995
|
}
|
|
25966
25996
|
}
|
|
25967
25997
|
|
|
25998
|
+
/**
|
|
25999
|
+
* @deprecated
|
|
26000
|
+
*/
|
|
25968
26001
|
export interface CheckAvailabilityCalTool {
|
|
25969
26002
|
/**
|
|
25970
26003
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -26010,6 +26043,9 @@ export namespace ConversationFlowComponentUpdateParams {
|
|
|
26010
26043
|
tool_id?: string;
|
|
26011
26044
|
}
|
|
26012
26045
|
|
|
26046
|
+
/**
|
|
26047
|
+
* @deprecated
|
|
26048
|
+
*/
|
|
26013
26049
|
export interface BookAppointmentCalTool {
|
|
26014
26050
|
/**
|
|
26015
26051
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -2147,6 +2147,9 @@ export namespace ConversationFlowResponse {
|
|
|
2147
2147
|
}
|
|
2148
2148
|
}
|
|
2149
2149
|
|
|
2150
|
+
/**
|
|
2151
|
+
* @deprecated
|
|
2152
|
+
*/
|
|
2150
2153
|
export interface CheckAvailabilityCalTool {
|
|
2151
2154
|
/**
|
|
2152
2155
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -2187,6 +2190,9 @@ export namespace ConversationFlowResponse {
|
|
|
2187
2190
|
timezone?: string;
|
|
2188
2191
|
}
|
|
2189
2192
|
|
|
2193
|
+
/**
|
|
2194
|
+
* @deprecated
|
|
2195
|
+
*/
|
|
2190
2196
|
export interface BookAppointmentCalTool {
|
|
2191
2197
|
/**
|
|
2192
2198
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -8809,6 +8815,9 @@ export namespace ConversationFlowResponse {
|
|
|
8809
8815
|
}
|
|
8810
8816
|
}
|
|
8811
8817
|
|
|
8818
|
+
/**
|
|
8819
|
+
* @deprecated
|
|
8820
|
+
*/
|
|
8812
8821
|
export interface CheckAvailabilityCalTool {
|
|
8813
8822
|
/**
|
|
8814
8823
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -8854,6 +8863,9 @@ export namespace ConversationFlowResponse {
|
|
|
8854
8863
|
tool_id?: string;
|
|
8855
8864
|
}
|
|
8856
8865
|
|
|
8866
|
+
/**
|
|
8867
|
+
* @deprecated
|
|
8868
|
+
*/
|
|
8857
8869
|
export interface BookAppointmentCalTool {
|
|
8858
8870
|
/**
|
|
8859
8871
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -10806,6 +10818,9 @@ export namespace ConversationFlowResponse {
|
|
|
10806
10818
|
}
|
|
10807
10819
|
}
|
|
10808
10820
|
|
|
10821
|
+
/**
|
|
10822
|
+
* @deprecated
|
|
10823
|
+
*/
|
|
10809
10824
|
export interface CheckAvailabilityCalTool {
|
|
10810
10825
|
/**
|
|
10811
10826
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -10846,6 +10861,9 @@ export namespace ConversationFlowResponse {
|
|
|
10846
10861
|
timezone?: string;
|
|
10847
10862
|
}
|
|
10848
10863
|
|
|
10864
|
+
/**
|
|
10865
|
+
* @deprecated
|
|
10866
|
+
*/
|
|
10849
10867
|
export interface BookAppointmentCalTool {
|
|
10850
10868
|
/**
|
|
10851
10869
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -17434,6 +17452,9 @@ export namespace ConversationFlowResponse {
|
|
|
17434
17452
|
}
|
|
17435
17453
|
}
|
|
17436
17454
|
|
|
17455
|
+
/**
|
|
17456
|
+
* @deprecated
|
|
17457
|
+
*/
|
|
17437
17458
|
export interface CheckAvailabilityCalTool {
|
|
17438
17459
|
/**
|
|
17439
17460
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -17479,6 +17500,9 @@ export namespace ConversationFlowResponse {
|
|
|
17479
17500
|
tool_id?: string;
|
|
17480
17501
|
}
|
|
17481
17502
|
|
|
17503
|
+
/**
|
|
17504
|
+
* @deprecated
|
|
17505
|
+
*/
|
|
17482
17506
|
export interface BookAppointmentCalTool {
|
|
17483
17507
|
/**
|
|
17484
17508
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -17529,9 +17553,9 @@ export interface ConversationFlowListResponse {
|
|
|
17529
17553
|
/**
|
|
17530
17554
|
* Whether more results are available.
|
|
17531
17555
|
*/
|
|
17532
|
-
has_more
|
|
17556
|
+
has_more: boolean;
|
|
17533
17557
|
|
|
17534
|
-
items
|
|
17558
|
+
items: Array<ConversationFlowResponse>;
|
|
17535
17559
|
|
|
17536
17560
|
/**
|
|
17537
17561
|
* Pagination key for the next page.
|
|
@@ -19526,6 +19550,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
19526
19550
|
}
|
|
19527
19551
|
}
|
|
19528
19552
|
|
|
19553
|
+
/**
|
|
19554
|
+
* @deprecated
|
|
19555
|
+
*/
|
|
19529
19556
|
export interface CheckAvailabilityCalTool {
|
|
19530
19557
|
/**
|
|
19531
19558
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -19566,6 +19593,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
19566
19593
|
timezone?: string;
|
|
19567
19594
|
}
|
|
19568
19595
|
|
|
19596
|
+
/**
|
|
19597
|
+
* @deprecated
|
|
19598
|
+
*/
|
|
19569
19599
|
export interface BookAppointmentCalTool {
|
|
19570
19600
|
/**
|
|
19571
19601
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -27844,6 +27874,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
27844
27874
|
}
|
|
27845
27875
|
}
|
|
27846
27876
|
|
|
27877
|
+
/**
|
|
27878
|
+
* @deprecated
|
|
27879
|
+
*/
|
|
27847
27880
|
export interface CheckAvailabilityCalTool {
|
|
27848
27881
|
/**
|
|
27849
27882
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -27884,6 +27917,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
27884
27917
|
timezone?: string;
|
|
27885
27918
|
}
|
|
27886
27919
|
|
|
27920
|
+
/**
|
|
27921
|
+
* @deprecated
|
|
27922
|
+
*/
|
|
27887
27923
|
export interface BookAppointmentCalTool {
|
|
27888
27924
|
/**
|
|
27889
27925
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -34506,6 +34542,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
34506
34542
|
}
|
|
34507
34543
|
}
|
|
34508
34544
|
|
|
34545
|
+
/**
|
|
34546
|
+
* @deprecated
|
|
34547
|
+
*/
|
|
34509
34548
|
export interface CheckAvailabilityCalTool {
|
|
34510
34549
|
/**
|
|
34511
34550
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -34551,6 +34590,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
34551
34590
|
tool_id?: string;
|
|
34552
34591
|
}
|
|
34553
34592
|
|
|
34593
|
+
/**
|
|
34594
|
+
* @deprecated
|
|
34595
|
+
*/
|
|
34554
34596
|
export interface BookAppointmentCalTool {
|
|
34555
34597
|
/**
|
|
34556
34598
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -34840,6 +34882,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
34840
34882
|
}
|
|
34841
34883
|
}
|
|
34842
34884
|
|
|
34885
|
+
/**
|
|
34886
|
+
* @deprecated
|
|
34887
|
+
*/
|
|
34843
34888
|
export interface CheckAvailabilityCalTool {
|
|
34844
34889
|
/**
|
|
34845
34890
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -34885,6 +34930,9 @@ export namespace ConversationFlowCreateParams {
|
|
|
34885
34930
|
tool_id?: string;
|
|
34886
34931
|
}
|
|
34887
34932
|
|
|
34933
|
+
/**
|
|
34934
|
+
* @deprecated
|
|
34935
|
+
*/
|
|
34888
34936
|
export interface BookAppointmentCalTool {
|
|
34889
34937
|
/**
|
|
34890
34938
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -36960,6 +37008,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
36960
37008
|
}
|
|
36961
37009
|
}
|
|
36962
37010
|
|
|
37011
|
+
/**
|
|
37012
|
+
* @deprecated
|
|
37013
|
+
*/
|
|
36963
37014
|
export interface CheckAvailabilityCalTool {
|
|
36964
37015
|
/**
|
|
36965
37016
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -37000,6 +37051,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
37000
37051
|
timezone?: string;
|
|
37001
37052
|
}
|
|
37002
37053
|
|
|
37054
|
+
/**
|
|
37055
|
+
* @deprecated
|
|
37056
|
+
*/
|
|
37003
37057
|
export interface BookAppointmentCalTool {
|
|
37004
37058
|
/**
|
|
37005
37059
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -43622,6 +43676,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
43622
43676
|
}
|
|
43623
43677
|
}
|
|
43624
43678
|
|
|
43679
|
+
/**
|
|
43680
|
+
* @deprecated
|
|
43681
|
+
*/
|
|
43625
43682
|
export interface CheckAvailabilityCalTool {
|
|
43626
43683
|
/**
|
|
43627
43684
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -43667,6 +43724,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
43667
43724
|
tool_id?: string;
|
|
43668
43725
|
}
|
|
43669
43726
|
|
|
43727
|
+
/**
|
|
43728
|
+
* @deprecated
|
|
43729
|
+
*/
|
|
43670
43730
|
export interface BookAppointmentCalTool {
|
|
43671
43731
|
/**
|
|
43672
43732
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -45619,6 +45679,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
45619
45679
|
}
|
|
45620
45680
|
}
|
|
45621
45681
|
|
|
45682
|
+
/**
|
|
45683
|
+
* @deprecated
|
|
45684
|
+
*/
|
|
45622
45685
|
export interface CheckAvailabilityCalTool {
|
|
45623
45686
|
/**
|
|
45624
45687
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -45659,6 +45722,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
45659
45722
|
timezone?: string;
|
|
45660
45723
|
}
|
|
45661
45724
|
|
|
45725
|
+
/**
|
|
45726
|
+
* @deprecated
|
|
45727
|
+
*/
|
|
45662
45728
|
export interface BookAppointmentCalTool {
|
|
45663
45729
|
/**
|
|
45664
45730
|
* Cal.com Api key that have access to the cal.com event you want to book
|
|
@@ -52247,6 +52313,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
52247
52313
|
}
|
|
52248
52314
|
}
|
|
52249
52315
|
|
|
52316
|
+
/**
|
|
52317
|
+
* @deprecated
|
|
52318
|
+
*/
|
|
52250
52319
|
export interface CheckAvailabilityCalTool {
|
|
52251
52320
|
/**
|
|
52252
52321
|
* Cal.com Api key that have access to the cal.com event you want to check
|
|
@@ -52292,6 +52361,9 @@ export namespace ConversationFlowUpdateParams {
|
|
|
52292
52361
|
tool_id?: string;
|
|
52293
52362
|
}
|
|
52294
52363
|
|
|
52364
|
+
/**
|
|
52365
|
+
* @deprecated
|
|
52366
|
+
*/
|
|
52295
52367
|
export interface BookAppointmentCalTool {
|
|
52296
52368
|
/**
|
|
52297
52369
|
* Cal.com Api key that have access to the cal.com event you want to book
|
package/src/resources/crm.ts
CHANGED
|
@@ -65,6 +65,11 @@ export interface CRMConfig {
|
|
|
65
65
|
*/
|
|
66
66
|
contact_columns_order?: Array<string>;
|
|
67
67
|
|
|
68
|
+
/**
|
|
69
|
+
* Tags available to contacts in this organization.
|
|
70
|
+
*/
|
|
71
|
+
contact_tags?: Array<string>;
|
|
72
|
+
|
|
68
73
|
crm_analysis_data_mappings?: Array<CRMConfig.CRMAnalysisDataMapping>;
|
|
69
74
|
|
|
70
75
|
custom_fields?: Array<CRMConfig.CustomField>;
|