@great-detail/support-sdk 0.17.9 → 0.17.10
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/dist/{Client-Cop2m3Y4.d.cts → Client-dYTYdrCR.d.cts} +150 -174
- package/dist/{Client-Cop2m3Y4.d.ts → Client-dYTYdrCR.d.ts} +150 -174
- package/dist/chunk-HHCC353M.js +1 -0
- package/dist/{chunk-5LTP3VGA.js → chunk-XA7UMLAC.js} +1 -1
- package/dist/cli/index.cjs +1 -1
- package/dist/cli/index.d.cts +1 -1
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-XYLD2NDD.js +0 -1
|
@@ -94,6 +94,7 @@ type Nullable<T> = T | null;
|
|
|
94
94
|
* @see https://greatdetail.com
|
|
95
95
|
*/
|
|
96
96
|
|
|
97
|
+
type CurrentAccountID = "current";
|
|
97
98
|
type AccountID = `acc${string}` | (string & NonNullable<unknown>);
|
|
98
99
|
type Account = {
|
|
99
100
|
id: AccountID;
|
|
@@ -145,24 +146,6 @@ type GetAccountResponse = {
|
|
|
145
146
|
};
|
|
146
147
|
};
|
|
147
148
|
|
|
148
|
-
/**
|
|
149
|
-
* Great Detail Support System.
|
|
150
|
-
*
|
|
151
|
-
* @copyright 2024 Great Detail Ltd
|
|
152
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
153
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
154
|
-
* @see https://greatdetail.com
|
|
155
|
-
*/
|
|
156
|
-
|
|
157
|
-
interface GetCurrentAccountOptions {
|
|
158
|
-
request?: SendOptions;
|
|
159
|
-
}
|
|
160
|
-
type GetCurrentAccountResponse = {
|
|
161
|
-
data: {
|
|
162
|
-
account: Account;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
|
|
166
149
|
/**
|
|
167
150
|
* Great Detail Support System.
|
|
168
151
|
*
|
|
@@ -190,15 +173,11 @@ type UpdateAccountResponse = {
|
|
|
190
173
|
declare class AccountAPI {
|
|
191
174
|
protected _transport: FetchTransport;
|
|
192
175
|
constructor(_transport: FetchTransport);
|
|
193
|
-
get(id: AccountID, { request }?: GetAccountOptions): {
|
|
176
|
+
get(id: CurrentAccountID | AccountID, { request }?: GetAccountOptions): {
|
|
194
177
|
response: () => Promise<ky.KyResponse<GetAccountResponse>>;
|
|
195
178
|
json: () => Promise<GetAccountResponse>;
|
|
196
179
|
};
|
|
197
|
-
|
|
198
|
-
response: () => Promise<ky.KyResponse<GetCurrentAccountResponse>>;
|
|
199
|
-
json: () => Promise<GetCurrentAccountResponse>;
|
|
200
|
-
};
|
|
201
|
-
update(id: AccountID, { body, request }: UpdateAccountOptions): {
|
|
180
|
+
update(id: CurrentAccountID | AccountID, { body, request }: UpdateAccountOptions): {
|
|
202
181
|
response: () => Promise<ky.KyResponse<UpdateAccountResponse>>;
|
|
203
182
|
json: () => Promise<UpdateAccountResponse>;
|
|
204
183
|
};
|
|
@@ -220,7 +199,7 @@ declare class AccountAPI {
|
|
|
220
199
|
type AccountAccessTokenID = `aat${string}` | (string & NonNullable<unknown>);
|
|
221
200
|
type AccountAccessToken = {
|
|
222
201
|
id: AccountAccessTokenID;
|
|
223
|
-
account:
|
|
202
|
+
account: AccountID;
|
|
224
203
|
isPendingDeletion: boolean;
|
|
225
204
|
name?: Nullable<string>;
|
|
226
205
|
excerpt: string;
|
|
@@ -306,19 +285,19 @@ type ListAccountAccessTokensResponse = {
|
|
|
306
285
|
declare class AccountAccessTokenAPI {
|
|
307
286
|
protected _transport: FetchTransport;
|
|
308
287
|
constructor(_transport: FetchTransport);
|
|
309
|
-
get(account: AccountID, accountAccessToken: AccountAccessTokenID, { request }?: GetAccountAccessTokenOptions): {
|
|
288
|
+
get(account: CurrentAccountID | AccountID, accountAccessToken: AccountAccessTokenID, { request }?: GetAccountAccessTokenOptions): {
|
|
310
289
|
response: () => Promise<ky.KyResponse<GetAccountAccessTokenResponse>>;
|
|
311
290
|
json: () => Promise<GetAccountAccessTokenResponse>;
|
|
312
291
|
};
|
|
313
|
-
list(account:
|
|
292
|
+
list(account: CurrentAccountID | AccountID, { request }?: ListAccountAccessTokensOptions): {
|
|
314
293
|
response: () => Promise<ky.KyResponse<ListAccountAccessTokensResponse>>;
|
|
315
294
|
json: () => Promise<ListAccountAccessTokensResponse>;
|
|
316
295
|
};
|
|
317
|
-
delete(account:
|
|
296
|
+
delete(account: CurrentAccountID | AccountID, accountAccessToken: string, { body, request }?: DeleteAccountAccessTokenOptions): {
|
|
318
297
|
response: () => Promise<ky.KyResponse<DeleteAccountAccessTokenResponse>>;
|
|
319
298
|
json: () => Promise<DeleteAccountAccessTokenResponse>;
|
|
320
299
|
};
|
|
321
|
-
create(account: AccountID, { body, request }?: CreateAccountAccessTokenOptions): {
|
|
300
|
+
create(account: CurrentAccountID | AccountID, { body, request }?: CreateAccountAccessTokenOptions): {
|
|
322
301
|
response: () => Promise<ky.KyResponse<CreateAccountAccessTokenResponse>>;
|
|
323
302
|
json: () => Promise<CreateAccountAccessTokenResponse>;
|
|
324
303
|
};
|
|
@@ -387,16 +366,149 @@ type UpdateAccountConversationSettingsResponse = {
|
|
|
387
366
|
declare class AccountConversationSettingsAPI {
|
|
388
367
|
protected _transport: FetchTransport;
|
|
389
368
|
constructor(_transport: FetchTransport);
|
|
390
|
-
get(account: AccountID, { request }?: GetAccountConversationSettingsOptions): {
|
|
369
|
+
get(account: CurrentAccountID | AccountID, { request }?: GetAccountConversationSettingsOptions): {
|
|
391
370
|
response: () => Promise<ky.KyResponse<GetAccountConversationSettingsResponse>>;
|
|
392
371
|
json: () => Promise<GetAccountConversationSettingsResponse>;
|
|
393
372
|
};
|
|
394
|
-
update(account: AccountID, { body, request }: UpdateAccountConversationSettingsOptions): {
|
|
373
|
+
update(account: CurrentAccountID | AccountID, { body, request }: UpdateAccountConversationSettingsOptions): {
|
|
395
374
|
response: () => Promise<ky.KyResponse<UpdateAccountConversationSettingsResponse>>;
|
|
396
375
|
json: () => Promise<UpdateAccountConversationSettingsResponse>;
|
|
397
376
|
};
|
|
398
377
|
}
|
|
399
378
|
|
|
379
|
+
/**
|
|
380
|
+
* Great Detail Support System.
|
|
381
|
+
*
|
|
382
|
+
* @copyright 2024 Great Detail Ltd
|
|
383
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
384
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
385
|
+
* @see https://greatdetail.com
|
|
386
|
+
*/
|
|
387
|
+
|
|
388
|
+
type ChannelID = `ch${string}` | (string & NonNullable<unknown>);
|
|
389
|
+
type Channel = {
|
|
390
|
+
id: ChannelID;
|
|
391
|
+
name?: Nullable<string>;
|
|
392
|
+
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
393
|
+
account: string;
|
|
394
|
+
} & ({
|
|
395
|
+
source: "meta-whatsapp";
|
|
396
|
+
metaWhatsapp: {
|
|
397
|
+
id: string;
|
|
398
|
+
whatsappAccountID: string;
|
|
399
|
+
whatsappPhoneNumberID: string;
|
|
400
|
+
accessToken: string;
|
|
401
|
+
};
|
|
402
|
+
} | {
|
|
403
|
+
source: "twilio-sendgrid";
|
|
404
|
+
twilioSendgrid: {
|
|
405
|
+
id: string;
|
|
406
|
+
displayName?: Nullable<string>;
|
|
407
|
+
outboundEmailAddress: string;
|
|
408
|
+
replyEmailAddress?: Nullable<string>;
|
|
409
|
+
inboundHostname: string;
|
|
410
|
+
apiKey: string;
|
|
411
|
+
secrets: {
|
|
412
|
+
id: string;
|
|
413
|
+
isActive: boolean;
|
|
414
|
+
secretExcerpt: string;
|
|
415
|
+
}[];
|
|
416
|
+
};
|
|
417
|
+
} | {
|
|
418
|
+
source: "custom-embed";
|
|
419
|
+
customEmbed: {
|
|
420
|
+
id: string;
|
|
421
|
+
};
|
|
422
|
+
}) & ResponseTimestamp;
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
* Great Detail Support System.
|
|
426
|
+
*
|
|
427
|
+
* @copyright 2024 Great Detail Ltd
|
|
428
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
429
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
430
|
+
* @see https://greatdetail.com
|
|
431
|
+
*/
|
|
432
|
+
|
|
433
|
+
type ContactID = `cnt${string}` | (string & NonNullable<unknown>);
|
|
434
|
+
type CustomMetadata = Record<string, Nullable<string | number>>;
|
|
435
|
+
type Contact = {
|
|
436
|
+
id: ContactID;
|
|
437
|
+
name?: Nullable<string>;
|
|
438
|
+
birthDate?: Nullable<string>;
|
|
439
|
+
emailAddress?: Nullable<string>;
|
|
440
|
+
telephoneNumber?: Nullable<string>;
|
|
441
|
+
metaWhatsappPhoneNumberID?: Nullable<string>;
|
|
442
|
+
customMetadata?: Nullable<CustomMetadata>;
|
|
443
|
+
account: AccountID;
|
|
444
|
+
channel?: Nullable<ChannelID>;
|
|
445
|
+
} & ResponseTimestamp;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Great Detail Support System.
|
|
449
|
+
*
|
|
450
|
+
* @copyright 2024 Great Detail Ltd
|
|
451
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
452
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
453
|
+
* @see https://greatdetail.com
|
|
454
|
+
*/
|
|
455
|
+
|
|
456
|
+
type ConversationID = `cnv${string}` | (string & NonNullable<unknown>);
|
|
457
|
+
type ActiveConversationStatus = "OpenConversationStatus" | "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus";
|
|
458
|
+
type ConcludedConversationStatus = "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
459
|
+
type ConversationStatus = ActiveConversationStatus | ConcludedConversationStatus;
|
|
460
|
+
type Conversation = {
|
|
461
|
+
id: ConversationID;
|
|
462
|
+
name?: Nullable<string>;
|
|
463
|
+
hasEnded: boolean;
|
|
464
|
+
contacts: string[];
|
|
465
|
+
status: ConversationStatus;
|
|
466
|
+
autoRespondAt?: string;
|
|
467
|
+
autoResolveAt?: string;
|
|
468
|
+
channel: string;
|
|
469
|
+
} & ResponseTimestamp;
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Great Detail Support System.
|
|
473
|
+
*
|
|
474
|
+
* @copyright 2024 Great Detail Ltd
|
|
475
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
476
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
477
|
+
* @see https://greatdetail.com
|
|
478
|
+
*/
|
|
479
|
+
|
|
480
|
+
type MessageID = `msg${string}` | (string & NonNullable<unknown>);
|
|
481
|
+
type MessageRole = "user" | "assistant";
|
|
482
|
+
type MessageStatus = "PotentialMessageStatus" | "SendingMessageStatus" | "SentMessageStatus" | "ReceivedMessageStatus" | "FailedMessageStatus";
|
|
483
|
+
type Message = {
|
|
484
|
+
id: MessageID;
|
|
485
|
+
role: MessageRole;
|
|
486
|
+
status: MessageStatus;
|
|
487
|
+
externalIdentifier?: Nullable<string>;
|
|
488
|
+
conversation: ConversationID;
|
|
489
|
+
account: AccountID;
|
|
490
|
+
contact: ContactID;
|
|
491
|
+
messageEvents: {
|
|
492
|
+
id: string;
|
|
493
|
+
type: "ReadMessageEventType" | "ReceivedMessageEventType" | "SentMessageEventType";
|
|
494
|
+
triggeredAt: string;
|
|
495
|
+
createdAt: string;
|
|
496
|
+
updatedAt?: string;
|
|
497
|
+
}[];
|
|
498
|
+
} & ({
|
|
499
|
+
type: "text";
|
|
500
|
+
messageText: {
|
|
501
|
+
body: string;
|
|
502
|
+
};
|
|
503
|
+
} | {
|
|
504
|
+
type: "media";
|
|
505
|
+
messageMedia: {
|
|
506
|
+
upload: string;
|
|
507
|
+
};
|
|
508
|
+
} | {
|
|
509
|
+
type: "richtext";
|
|
510
|
+
}) & ResponseTimestamp;
|
|
511
|
+
|
|
400
512
|
/**
|
|
401
513
|
* Great Detail Support System.
|
|
402
514
|
*
|
|
@@ -410,7 +522,8 @@ type ActionID = `act${string}` | (string & NonNullable<unknown>);
|
|
|
410
522
|
type Action = {
|
|
411
523
|
id: ActionID;
|
|
412
524
|
status: "PotentialActionStatus" | "ActiveActionStatus" | "CompletedActionStatus" | "FailedActionStatus";
|
|
413
|
-
|
|
525
|
+
account: AccountID;
|
|
526
|
+
message: MessageID;
|
|
414
527
|
name: string;
|
|
415
528
|
object?: string;
|
|
416
529
|
result?: string;
|
|
@@ -572,7 +685,7 @@ type BoilerplateCategory = {
|
|
|
572
685
|
id: BoilerplateCategoryID;
|
|
573
686
|
title: string;
|
|
574
687
|
description?: Nullable<string>;
|
|
575
|
-
account:
|
|
688
|
+
account: AccountID;
|
|
576
689
|
} & ResponseTimestamp;
|
|
577
690
|
|
|
578
691
|
/**
|
|
@@ -587,7 +700,6 @@ type BoilerplateCategory = {
|
|
|
587
700
|
type CreateBoilerplateCategoryPayload = {
|
|
588
701
|
title: string;
|
|
589
702
|
description?: Nullable<string>;
|
|
590
|
-
account: string;
|
|
591
703
|
};
|
|
592
704
|
interface CreateBoilerplateCategoryOptions {
|
|
593
705
|
body: CreateBoilerplateCategoryPayload;
|
|
@@ -702,8 +814,8 @@ type BoilerplateContent = {
|
|
|
702
814
|
id: BoilerplateContentID;
|
|
703
815
|
title: string;
|
|
704
816
|
content: string;
|
|
705
|
-
account:
|
|
706
|
-
boilerplateCategory:
|
|
817
|
+
account: AccountID;
|
|
818
|
+
boilerplateCategory: BoilerplateCategoryID;
|
|
707
819
|
} & ResponseTimestamp;
|
|
708
820
|
|
|
709
821
|
/**
|
|
@@ -718,7 +830,6 @@ type BoilerplateContent = {
|
|
|
718
830
|
type CreateBoilerplateContentPayload = {
|
|
719
831
|
title: string;
|
|
720
832
|
content: string;
|
|
721
|
-
account: string;
|
|
722
833
|
boilerplateCategory: string;
|
|
723
834
|
};
|
|
724
835
|
interface CreateBoilerplateContentOptions {
|
|
@@ -840,51 +951,6 @@ declare class BoilerplateContentAPI {
|
|
|
840
951
|
};
|
|
841
952
|
}
|
|
842
953
|
|
|
843
|
-
/**
|
|
844
|
-
* Great Detail Support System.
|
|
845
|
-
*
|
|
846
|
-
* @copyright 2024 Great Detail Ltd
|
|
847
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
848
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
849
|
-
* @see https://greatdetail.com
|
|
850
|
-
*/
|
|
851
|
-
|
|
852
|
-
type ChannelID = `ch${string}` | (string & NonNullable<unknown>);
|
|
853
|
-
type Channel = {
|
|
854
|
-
id: ChannelID;
|
|
855
|
-
name?: Nullable<string>;
|
|
856
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
857
|
-
account: string;
|
|
858
|
-
} & ({
|
|
859
|
-
source: "meta-whatsapp";
|
|
860
|
-
metaWhatsapp: {
|
|
861
|
-
id: string;
|
|
862
|
-
whatsappAccountID: string;
|
|
863
|
-
whatsappPhoneNumberID: string;
|
|
864
|
-
accessToken: string;
|
|
865
|
-
};
|
|
866
|
-
} | {
|
|
867
|
-
source: "twilio-sendgrid";
|
|
868
|
-
twilioSendgrid: {
|
|
869
|
-
id: string;
|
|
870
|
-
displayName?: Nullable<string>;
|
|
871
|
-
outboundEmailAddress: string;
|
|
872
|
-
replyEmailAddress?: Nullable<string>;
|
|
873
|
-
inboundHostname: string;
|
|
874
|
-
apiKey: string;
|
|
875
|
-
secrets: {
|
|
876
|
-
id: string;
|
|
877
|
-
isActive: boolean;
|
|
878
|
-
secretExcerpt: string;
|
|
879
|
-
}[];
|
|
880
|
-
};
|
|
881
|
-
} | {
|
|
882
|
-
source: "custom-embed";
|
|
883
|
-
customEmbed: {
|
|
884
|
-
id: string;
|
|
885
|
-
};
|
|
886
|
-
}) & ResponseTimestamp;
|
|
887
|
-
|
|
888
954
|
/**
|
|
889
955
|
* Great Detail Support System.
|
|
890
956
|
*
|
|
@@ -1232,29 +1298,6 @@ type Label = {
|
|
|
1232
1298
|
account: string;
|
|
1233
1299
|
} & ResponseTimestamp;
|
|
1234
1300
|
|
|
1235
|
-
/**
|
|
1236
|
-
* Great Detail Support System.
|
|
1237
|
-
*
|
|
1238
|
-
* @copyright 2024 Great Detail Ltd
|
|
1239
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1240
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1241
|
-
* @see https://greatdetail.com
|
|
1242
|
-
*/
|
|
1243
|
-
|
|
1244
|
-
type ContactID = `cnt${string}` | (string & NonNullable<unknown>);
|
|
1245
|
-
type CustomMetadata = Record<string, Nullable<string | number>>;
|
|
1246
|
-
type Contact = {
|
|
1247
|
-
id: ContactID;
|
|
1248
|
-
name?: Nullable<string>;
|
|
1249
|
-
birthDate?: Nullable<string>;
|
|
1250
|
-
emailAddress?: Nullable<string>;
|
|
1251
|
-
telephoneNumber?: Nullable<string>;
|
|
1252
|
-
metaWhatsappPhoneNumberID?: Nullable<string>;
|
|
1253
|
-
customMetadata?: Nullable<CustomMetadata>;
|
|
1254
|
-
account: AccountID;
|
|
1255
|
-
channel?: Nullable<ChannelID>;
|
|
1256
|
-
} & ResponseTimestamp;
|
|
1257
|
-
|
|
1258
1301
|
/**
|
|
1259
1302
|
* Great Detail Support System.
|
|
1260
1303
|
*
|
|
@@ -1266,7 +1309,6 @@ type Contact = {
|
|
|
1266
1309
|
|
|
1267
1310
|
type CreateContactPayload = {
|
|
1268
1311
|
name: string;
|
|
1269
|
-
account: string;
|
|
1270
1312
|
emailAddress?: Nullable<string>;
|
|
1271
1313
|
telephoneNumber?: Nullable<string>;
|
|
1272
1314
|
customMetadata?: Nullable<CustomMetadata>;
|
|
@@ -1442,30 +1484,6 @@ declare class ContactAPI {
|
|
|
1442
1484
|
};
|
|
1443
1485
|
}
|
|
1444
1486
|
|
|
1445
|
-
/**
|
|
1446
|
-
* Great Detail Support System.
|
|
1447
|
-
*
|
|
1448
|
-
* @copyright 2024 Great Detail Ltd
|
|
1449
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1450
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1451
|
-
* @see https://greatdetail.com
|
|
1452
|
-
*/
|
|
1453
|
-
|
|
1454
|
-
type ConversationID = `cnv${string}` | (string & NonNullable<unknown>);
|
|
1455
|
-
type ActiveConversationStatus = "OpenConversationStatus" | "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus";
|
|
1456
|
-
type ConcludedConversationStatus = "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
1457
|
-
type ConversationStatus = ActiveConversationStatus | ConcludedConversationStatus;
|
|
1458
|
-
type Conversation = {
|
|
1459
|
-
id: ConversationID;
|
|
1460
|
-
name?: Nullable<string>;
|
|
1461
|
-
hasEnded: boolean;
|
|
1462
|
-
contacts: string[];
|
|
1463
|
-
status: ConversationStatus;
|
|
1464
|
-
autoRespondAt?: string;
|
|
1465
|
-
autoResolveAt?: string;
|
|
1466
|
-
channel: string;
|
|
1467
|
-
} & ResponseTimestamp;
|
|
1468
|
-
|
|
1469
1487
|
/**
|
|
1470
1488
|
* Great Detail Support System.
|
|
1471
1489
|
*
|
|
@@ -1569,46 +1587,6 @@ type ListContactConversationsResponse = {
|
|
|
1569
1587
|
}[];
|
|
1570
1588
|
};
|
|
1571
1589
|
|
|
1572
|
-
/**
|
|
1573
|
-
* Great Detail Support System.
|
|
1574
|
-
*
|
|
1575
|
-
* @copyright 2024 Great Detail Ltd
|
|
1576
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1577
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1578
|
-
* @see https://greatdetail.com
|
|
1579
|
-
*/
|
|
1580
|
-
|
|
1581
|
-
type MessageID = `msg${string}` | (string & NonNullable<unknown>);
|
|
1582
|
-
type MessageRole = "user" | "assistant";
|
|
1583
|
-
type MessageStatus = "PotentialMessageStatus" | "SendingMessageStatus" | "SentMessageStatus" | "ReceivedMessageStatus" | "FailedMessageStatus";
|
|
1584
|
-
type Message = {
|
|
1585
|
-
id: MessageID;
|
|
1586
|
-
role: MessageRole;
|
|
1587
|
-
status: MessageStatus;
|
|
1588
|
-
externalIdentifier?: Nullable<string>;
|
|
1589
|
-
conversation: string;
|
|
1590
|
-
contact: string;
|
|
1591
|
-
messageEvents: {
|
|
1592
|
-
id: string;
|
|
1593
|
-
type: "ReadMessageEventType" | "ReceivedMessageEventType" | "SentMessageEventType";
|
|
1594
|
-
triggeredAt: string;
|
|
1595
|
-
createdAt: string;
|
|
1596
|
-
updatedAt?: string;
|
|
1597
|
-
}[];
|
|
1598
|
-
} & ({
|
|
1599
|
-
type: "text";
|
|
1600
|
-
messageText: {
|
|
1601
|
-
body: string;
|
|
1602
|
-
};
|
|
1603
|
-
} | {
|
|
1604
|
-
type: "media";
|
|
1605
|
-
messageMedia: {
|
|
1606
|
-
upload: string;
|
|
1607
|
-
};
|
|
1608
|
-
} | {
|
|
1609
|
-
type: "richtext";
|
|
1610
|
-
}) & ResponseTimestamp;
|
|
1611
|
-
|
|
1612
1590
|
/**
|
|
1613
1591
|
* Great Detail Support System.
|
|
1614
1592
|
*
|
|
@@ -1732,7 +1710,6 @@ declare class ConversationAPI {
|
|
|
1732
1710
|
type CreateLabelPayload = {
|
|
1733
1711
|
title: string;
|
|
1734
1712
|
description?: Nullable<string>;
|
|
1735
|
-
account: string;
|
|
1736
1713
|
};
|
|
1737
1714
|
interface CreateLabelOptions {
|
|
1738
1715
|
body: CreateLabelPayload;
|
|
@@ -2570,7 +2547,6 @@ type Upload = {
|
|
|
2570
2547
|
*/
|
|
2571
2548
|
|
|
2572
2549
|
interface CreateUploadOptions {
|
|
2573
|
-
account: string;
|
|
2574
2550
|
files: File[];
|
|
2575
2551
|
request?: SendOptions;
|
|
2576
2552
|
}
|
|
@@ -2645,7 +2621,7 @@ declare class UploadAPI {
|
|
|
2645
2621
|
response: () => Promise<ky.KyResponse<ListUploadsResponse>>;
|
|
2646
2622
|
json: () => Promise<ListUploadsResponse>;
|
|
2647
2623
|
};
|
|
2648
|
-
create({
|
|
2624
|
+
create({ files, request }: CreateUploadOptions): {
|
|
2649
2625
|
response: () => Promise<ky.KyResponse<CreateUploadResponse>>;
|
|
2650
2626
|
json: () => Promise<CreateUploadResponse>;
|
|
2651
2627
|
};
|
|
@@ -3101,4 +3077,4 @@ declare class Client {
|
|
|
3101
3077
|
static getBaseURL(): string;
|
|
3102
3078
|
}
|
|
3103
3079
|
|
|
3104
|
-
export { type
|
|
3080
|
+
export { type BoilerplateCategoryID as $, type Account as A, type ActionID as B, Client as C, type DeleteAccountAccessTokenPayload as D, type ListActionsOptions as E, type ListActionsResponse as F, type GetAccountOptions as G, type BoilerplateContent as H, type BoilerplateContentID as I, type CreateBoilerplateContentPayload as J, type CreateBoilerplateContentOptions as K, type ListAccountAccessTokensOptions as L, type CreateBoilerplateContentResponse as M, type GetBoilerplateContentOptions as N, type Options as O, type GetBoilerplateContentResponse as P, type ListBoilerplateCategoryBoilerplateContentsOptions as Q, type RequestFilterable as R, type SortOptions as S, type ListBoilerplateCategoryBoilerplateContentsResponse as T, type UpdateAccountPayload as U, type ListBoilerplateContentsOptions as V, type ListBoilerplateContentsResponse as W, type UpdateBoilerplateContentPayload as X, type UpdateBoilerplateContentOptions as Y, type UpdateBoilerplateContentResponse as Z, type BoilerplateCategory as _, type Options$4 as a, type ActiveConversationStatus as a$, type CreateBoilerplateCategoryPayload as a0, type CreateBoilerplateCategoryOptions as a1, type CreateBoilerplateCategoryResponse as a2, type GetBoilerplateCategoryOptions as a3, type GetBoilerplateCategoryResponse as a4, type ListBoilerplateCategoriesIncludeOptions as a5, type ListBoilerplateCategoriesOptions as a6, type ListBoilerplateCategoriesResponse as a7, type UpdateBoilerplateCategoryPayload as a8, type UpdateBoilerplateCategoryOptions as a9, type ListChannelCompositionSectionsResponse as aA, type ListCompositionSectionsOptions as aB, type ListCompositionSectionsResponse as aC, type UpdateCompositionSectionPayload as aD, type UpdateCompositionSectionOptions as aE, type UpdateCompositionSectionResponse as aF, type Contact as aG, type ContactID as aH, type CustomMetadata as aI, type CreateContactPayload as aJ, type CreateContactOptions as aK, type CreateContactResponse as aL, type DeleteContactOptions as aM, type DeleteContactResponse as aN, type GetContactIncludeOptions as aO, type GetContactOptions as aP, type GetContactResponse as aQ, type GetContactVCFOptions as aR, type ListContactsOptions as aS, type ListContactsResponse as aT, type ListLabelContactsOptions as aU, type ListLabelContactsResponse as aV, type UpdateContactPayload as aW, type UpdateContactOptions as aX, type UpdateContactResponse as aY, type Conversation as aZ, type ConversationID as a_, type UpdateBoilerplateCategoryResponse as aa, type Channel as ab, type ChannelID as ac, type CreateChannelPayload as ad, type CreateChannelOptions as ae, type CreateChannelResponse as af, type GetChannelOptions as ag, type GetChannelResponse as ah, type ListChannelsOptions as ai, type ListChannelsResponse as aj, type MetaWhatsappChannelGetBusinessProfileOptions as ak, type MetaWhatsappChannelGetBusinessProfileResponse as al, type TwilioSendChannelSyncPayload as am, type TwilioSendgridChannelSyncOptions as an, type TwilioSendgridChannelSyncResponse as ao, type UpdateChannelPayload as ap, type UpdateChannelOptions as aq, type UpdateChannelResponse as ar, type CompositionSection as as, type CompositionSectionID as at, type CreateCompositionSectionPayload as au, type CreateCompositionSectionOptions as av, type CreateCompositionSectionResponse as aw, type GetCompositionSectionOptions as ax, type GetCompositionSectionResponse as ay, type ListChannelCompositionSectionsOptions as az, type CurrentAccountID as b, type CreateCorrectionResponse as b$, type ConcludedConversationStatus as b0, type ConversationStatus as b1, type CreateConversationPayload as b2, type CreateConversationOptions as b3, type CreateConversationResponse as b4, type DeleteConversationOptions as b5, type DeleteConversationResponse as b6, type GetConversationIncludeOptions as b7, type GetConversationOptions as b8, type GetConversationResponse as b9, type ListLabelsIncludeOptions as bA, type ListLabelsOptions as bB, type ListLabelsResponse as bC, type UpdateLabelPayload as bD, type UpdateLabelOptions as bE, type UpdateLabelResponse as bF, type Message as bG, type CreateMessagePayload as bH, type CreateMessageOptions as bI, type CreateMessageResponse as bJ, type DeleteMessageOptions as bK, type DeleteMessageResponse as bL, type ListChannelMessagesIncludeOptions as bM, type ListChannelMessagesOptions as bN, type ListChannelMessagesResponse as bO, type ListConversationMessagesIncludeOptions as bP, type ListConversationMessagesOptions as bQ, type ListConversationMessagesResponse as bR, type ListMessagesIncludeOptions as bS, type ListMessagesOptions as bT, type ListMessagesResponse as bU, type MessageID as bV, type MessageRole as bW, type MessageStatus as bX, type Model as bY, type CreateCorrectionModelPayload as bZ, type CreateCorrectionModelOptions as b_, type ListChannelConversationsOptions as ba, type ListChannelConversationsResponse as bb, type ListContactConversationsOptions as bc, type ListContactConversationsResponse as bd, type ListConversationsIncludeOptions as be, type FilterOptions as bf, type ListConversationOptions as bg, type ListConversationsResponse as bh, type ListLabelConversationsOptions as bi, type ListLabelConversationsResponse as bj, type UpdateConversationPayload as bk, type UpdateConversationOptions as bl, type UpdateConversationResponse as bm, type Label as bn, type CreateLabelPayload as bo, type CreateLabelOptions as bp, type CreateLabelResponse as bq, type DeleteLabelOptions as br, type DeleteLabelResponse as bs, type GetLabelOptions as bt, type GetLabelResponse as bu, type LabelID as bv, type ListContactLabelsOptions as bw, type ListContactLabelsResponse as bx, type ListConversationLabelsOptions as by, type ListConversationLabelsResponse as bz, type AccountID as c, type GetWebhookSubscriptionOptions as c$, type CreateResponseModelPayload as c0, type CreateResponseModelOptions as c1, type CreateResponseResponse as c2, type GetModelOptions as c3, type GetModelResponse as c4, type ListModelsOptions as c5, type ListModelsResponse as c6, type ModelID as c7, type Note as c8, type CreateContactNotePayload as c9, type Upload as cA, type CreateUploadOptions as cB, type CreateUploadResponse as cC, type DeleteUploadOptions as cD, type DeleteUploadResponse as cE, type GetUploadOptions as cF, type GetUploadResponse as cG, type ListUploadsOptions as cH, type ListUploadsResponse as cI, type UploadID as cJ, type EventWebhookOptions as cK, eventWebhookSchema as cL, type WebhookEventType as cM, type AccountWebhookEventType as cN, type AccountAccessTokenEventType as cO, type ContactEventType as cP, type ConversationEventType as cQ, type MessageEventType as cR, type WebhookSubscriptionEventType as cS, type WebhookEventPayload as cT, type WebhookResponse as cU, type WebhookSubscription as cV, type CreateWebhookSubscriptionPayload as cW, type CreateWebhookSubscriptionOptions as cX, type CreateWebhookSubscriptionResponse as cY, type DeleteWebhookSubscriptionOptions as cZ, type DeleteWebhookSubscriptionResponse as c_, type CreateContactNoteOptions as ca, type CreateContactNoteResponse as cb, type CreateConversationNotePayload as cc, type CreateConversationNoteOptions as cd, type CreateConversationNoteResponse as ce, type GetNoteOptions as cf, type GetNoteResponse as cg, type ListContactNotesOptions as ch, type ListContactNotesResponse as ci, type ListConversationNotesOptions as cj, type ListConversationNotesResponse as ck, type NoteID as cl, type UpdateNotePayload as cm, type UpdateNoteOptions as cn, type UpdateNoteResponse as co, type Source as cp, type GetSourceOptions as cq, type GetSourceResponse as cr, type ListSourcesOptions as cs, type ListSourcesResponse as ct, type SourceID as cu, type NotificationSubscription as cv, type CreateContactNotificationSubscriptionPayload as cw, type CreateContactNotificationSubscriptionOptions as cx, type CreateContactNotificationSubscriptionResponse as cy, type NotificationSubscriptionID as cz, type CreateAccountPayload as d, type GetWebhookSubscriptionResponse as d0, type ListWebhookSubscriptionsOptions as d1, type ListWebhookSubscriptionsResponse as d2, type TestWebhookSubscriptionOptions as d3, type TestWebhookSubscriptionResponse as d4, type WebhookSubscriptionID as d5, type GetNotificationWellKnownResponse as d6, type CreateAccountOptions as e, type CreateAccountResponse as f, type GetAccountResponse as g, type UpdateAccountOptions as h, type UpdateAccountResponse as i, type AccountAccessToken as j, type AccountAccessTokenID as k, type CreateAccountAccessTokenPayload as l, type CreateAccountAccessTokenOptions as m, type CreateAccountAccessTokenResponse as n, type DeleteAccountAccessTokenOptions as o, type DeleteAccountAccessTokenResponse as p, type GetAccountAccessTokenOptions as q, type GetAccountAccessTokenResponse as r, type ListAccountAccessTokensResponse as s, type AccountConversationSettings as t, type GetAccountConversationSettingsOptions as u, type GetAccountConversationSettingsResponse as v, type UpdateAccountConversationSettingsPayload as w, type UpdateAccountConversationSettingsOptions as x, type UpdateAccountConversationSettingsResponse as y, type Action as z };
|