@great-detail/support-sdk 0.5.4 → 0.6.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.
@@ -54,17 +54,19 @@ interface Options$T {
54
54
  request?: RequestInit;
55
55
  }
56
56
  type ListActionsResponse = {
57
- actions: {
58
- id: string;
59
- status: string;
60
- message: string;
61
- name: string;
62
- object?: string;
63
- result?: string;
64
- startedAt?: string;
65
- endedAt?: string;
66
- createdAt: string;
67
- updatedAt?: string;
57
+ data: {
58
+ action: {
59
+ id: string;
60
+ status: string;
61
+ message: string;
62
+ name: string;
63
+ object?: string;
64
+ result?: string;
65
+ startedAt?: string;
66
+ endedAt?: string;
67
+ createdAt: string;
68
+ updatedAt?: string;
69
+ };
68
70
  }[];
69
71
  };
70
72
  declare class ListActions {
@@ -90,13 +92,15 @@ interface Options$S {
90
92
  request?: RequestInit;
91
93
  }
92
94
  type CreateBoilerplateCategoryBoilerplateResponse = {
93
- boilerplate: {
94
- id: string;
95
- title: string;
96
- content: string;
97
- account: string;
98
- createdAt: string;
99
- updatedAt: string;
95
+ data: {
96
+ boilerplate: {
97
+ id: string;
98
+ title: string;
99
+ content: string;
100
+ account: string;
101
+ createdAt: string;
102
+ updatedAt: string;
103
+ };
100
104
  };
101
105
  };
102
106
  declare class CreateBoilerplateCategoryBoilerplate {
@@ -123,14 +127,16 @@ interface Options$R {
123
127
  request?: RequestInit;
124
128
  }
125
129
  type GetBoilerplateResponse = {
126
- boilerplate: {
127
- id: string;
128
- title: string;
129
- content: string;
130
- account: string;
131
- boilerplateCategory: string;
132
- createdAt: string;
133
- updatedAt: string;
130
+ data: {
131
+ boilerplate: {
132
+ id: string;
133
+ title: string;
134
+ content: string;
135
+ account: string;
136
+ boilerplateCategory: string;
137
+ createdAt: string;
138
+ updatedAt: string;
139
+ };
134
140
  };
135
141
  };
136
142
  declare class GetBoilerplate {
@@ -143,36 +149,40 @@ interface Options$Q {
143
149
  id: string;
144
150
  request?: RequestInit;
145
151
  }
152
+ type ListBoilerplateCategoryBoilerplatesResponse = {
153
+ data: {
154
+ boilerplate: {
155
+ id: string;
156
+ title: string;
157
+ content: string;
158
+ account: string;
159
+ boilerplateCategory: string;
160
+ createdAt: string;
161
+ updatedAt: string;
162
+ };
163
+ }[];
164
+ };
146
165
  declare class ListBoilerplateCategoryBoilerplates {
147
166
  protected _transport: FetchTransport;
148
167
  constructor(_transport: FetchTransport);
149
168
  send({ id, request }: Options$Q): Promise<ky.KyResponse<ListBoilerplateCategoryBoilerplatesResponse>>;
150
169
  }
151
- type ListBoilerplateCategoryBoilerplatesResponse = {
152
- boilerplates: {
153
- id: string;
154
- title: string;
155
- content: string;
156
- account: string;
157
- boilerplateCategory: string;
158
- createdAt: string;
159
- updatedAt: string;
160
- }[];
161
- };
162
170
 
163
171
  interface Options$P {
164
172
  query?: string;
165
173
  request?: RequestInit;
166
174
  }
167
175
  type ListBoilerplatesResponse = {
168
- boilerplates: {
169
- id: string;
170
- title: string;
171
- content: string;
172
- account: string;
173
- boilerplateCategory: string;
174
- createdAt: string;
175
- updatedAt: string;
176
+ data: {
177
+ boilerplate: {
178
+ id: string;
179
+ title: string;
180
+ content: string;
181
+ account: string;
182
+ boilerplateCategory: string;
183
+ createdAt: string;
184
+ updatedAt: string;
185
+ };
176
186
  }[];
177
187
  };
178
188
  declare class ListBoilerplates {
@@ -187,14 +197,16 @@ interface Options$O {
187
197
  request?: RequestInit;
188
198
  }
189
199
  type UpdateBoilerplateResponse = {
190
- boilerplate: {
191
- id: string;
192
- title: string;
193
- content: string;
194
- account: string;
195
- boilerplateCategory: string;
196
- createdAt: string;
197
- updatedAt: string;
200
+ data: {
201
+ boilerplate: {
202
+ id: string;
203
+ title: string;
204
+ content: string;
205
+ account: string;
206
+ boilerplateCategory: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
+ };
198
210
  };
199
211
  };
200
212
  declare class UpdateBoilerplate {
@@ -218,13 +230,15 @@ interface Options$N {
218
230
  request?: RequestInit;
219
231
  }
220
232
  type CreateBoilerplateCategoryResponse = {
221
- boilerplateCategory: {
222
- id: string;
223
- title: string;
224
- description?: string;
225
- account: string;
226
- createdAt: string;
227
- updatedAt: string;
233
+ data: {
234
+ boilerplateCategory: {
235
+ id: string;
236
+ title: string;
237
+ description?: string;
238
+ account: string;
239
+ createdAt: string;
240
+ updatedAt: string;
241
+ };
228
242
  };
229
243
  };
230
244
  declare class CreateBoilerplateCategory {
@@ -251,13 +265,15 @@ interface Options$M {
251
265
  request?: RequestInit;
252
266
  }
253
267
  type GetBoilerplateCategoryResponse = {
254
- boilerplateCategory: {
255
- id: string;
256
- title: string;
257
- description?: string;
258
- account: string;
259
- createdAt: string;
260
- updatedAt: string;
268
+ data: {
269
+ boilerplateCategory: {
270
+ id: string;
271
+ title: string;
272
+ description?: string;
273
+ account: string;
274
+ createdAt: string;
275
+ updatedAt: string;
276
+ };
261
277
  };
262
278
  };
263
279
  declare class GetBoilerplateCategory {
@@ -270,13 +286,15 @@ interface Options$L {
270
286
  request?: RequestInit;
271
287
  }
272
288
  type ListBoilerplateCategoriesResponse = {
273
- boilerplateCategories: {
274
- id: string;
275
- title: string;
276
- description?: string;
277
- account: string;
278
- createdAt: string;
279
- updatedAt: string;
289
+ data: {
290
+ boilerplateCategory: {
291
+ id: string;
292
+ title: string;
293
+ description?: string;
294
+ account: string;
295
+ createdAt: string;
296
+ updatedAt: string;
297
+ };
280
298
  }[];
281
299
  };
282
300
  declare class ListBoilerplateCategories {
@@ -291,13 +309,15 @@ interface Options$K {
291
309
  request?: RequestInit;
292
310
  }
293
311
  type UpdateBoilerplateCategoryResponse = {
294
- boilerplateCategory: {
295
- id: string;
296
- title: string;
297
- description?: string;
298
- account: string;
299
- createdAt: string;
300
- updatedAt: string;
312
+ data: {
313
+ boilerplateCategory: {
314
+ id: string;
315
+ title: string;
316
+ description?: string;
317
+ account: string;
318
+ createdAt: string;
319
+ updatedAt: string;
320
+ };
301
321
  };
302
322
  };
303
323
  declare class UpdateBoilerplateCategory {
@@ -321,37 +341,39 @@ interface Options$J {
321
341
  request?: RequestInit;
322
342
  }
323
343
  type CreateChannelResponse = {
324
- channel: {
325
- id: string;
326
- name?: string;
327
- status: "ActiveChannelStatus" | "PotentialChannelStatus";
328
- account: string;
329
- createdAt: string;
330
- updatedAt: string;
331
- } & ({
332
- source: "meta-whatsapp";
333
- metaWhatsapp: {
334
- id: string;
335
- whatsappAccountID: string;
336
- whatsappPhoneNumberID: string;
337
- accessToken: string;
338
- };
339
- } | {
340
- source: "twilio-sendgrid";
341
- twilioSendgrid: {
344
+ data: {
345
+ channel: {
342
346
  id: string;
343
- displayName: string;
344
- outboundEmailAddress: string;
345
- replyEmailAddress?: string;
346
- inboundHostname: string;
347
- apiKey: string;
348
- secrets: {
347
+ name?: string;
348
+ status: "ActiveChannelStatus" | "PotentialChannelStatus";
349
+ account: string;
350
+ createdAt: string;
351
+ updatedAt: string;
352
+ } & ({
353
+ source: "meta-whatsapp";
354
+ metaWhatsapp: {
349
355
  id: string;
350
- isActive: boolean;
351
- secretExcerpt: string;
352
- }[];
353
- };
354
- });
356
+ whatsappAccountID: string;
357
+ whatsappPhoneNumberID: string;
358
+ accessToken: string;
359
+ };
360
+ } | {
361
+ source: "twilio-sendgrid";
362
+ twilioSendgrid: {
363
+ id: string;
364
+ displayName: string;
365
+ outboundEmailAddress: string;
366
+ replyEmailAddress?: string;
367
+ inboundHostname: string;
368
+ apiKey: string;
369
+ secrets: {
370
+ id: string;
371
+ isActive: boolean;
372
+ secretExcerpt: string;
373
+ }[];
374
+ };
375
+ });
376
+ };
355
377
  };
356
378
  declare class CreateChannel {
357
379
  protected _transport: FetchTransport;
@@ -419,37 +441,39 @@ interface Options$I {
419
441
  request?: RequestInit;
420
442
  }
421
443
  type GetChannelResponse = {
422
- channel: {
423
- id: string;
424
- name?: string;
425
- status: "ActiveChannelStatus" | "PotentialChannelStatus";
426
- account: string;
427
- createdAt: string;
428
- updatedAt: string;
429
- } & ({
430
- source: "meta-whatsapp";
431
- metaWhatsapp: {
432
- id: string;
433
- whatsappAccountID: string;
434
- whatsappPhoneNumberID: string;
435
- accessToken: string;
436
- };
437
- } | {
438
- source: "twilio-sendgrid";
439
- twilioSendgrid: {
444
+ data: {
445
+ channel: {
440
446
  id: string;
441
- displayName: string;
442
- outboundEmailAddress: string;
443
- replyEmailAddress?: string;
444
- inboundHostname: string;
445
- apiKey: string;
446
- secrets: {
447
+ name?: string;
448
+ status: "ActiveChannelStatus" | "PotentialChannelStatus";
449
+ account: string;
450
+ createdAt: string;
451
+ updatedAt: string;
452
+ } & ({
453
+ source: "meta-whatsapp";
454
+ metaWhatsapp: {
447
455
  id: string;
448
- isActive: boolean;
449
- secretExcerpt: string;
450
- }[];
451
- };
452
- });
456
+ whatsappAccountID: string;
457
+ whatsappPhoneNumberID: string;
458
+ accessToken: string;
459
+ };
460
+ } | {
461
+ source: "twilio-sendgrid";
462
+ twilioSendgrid: {
463
+ id: string;
464
+ displayName: string;
465
+ outboundEmailAddress: string;
466
+ replyEmailAddress?: string;
467
+ inboundHostname: string;
468
+ apiKey: string;
469
+ secrets: {
470
+ id: string;
471
+ isActive: boolean;
472
+ secretExcerpt: string;
473
+ }[];
474
+ };
475
+ });
476
+ };
453
477
  };
454
478
  declare class GetChannel {
455
479
  protected _transport: FetchTransport;
@@ -461,37 +485,39 @@ interface Options$H {
461
485
  request?: RequestInit;
462
486
  }
463
487
  type ListChannelsResponse = {
464
- channels: ({
465
- id: string;
466
- name?: string;
467
- status: "ActiveChannelStatus" | "PotentialChannelStatus";
468
- account: string;
469
- createdAt: string;
470
- updatedAt: string;
471
- } & ({
472
- source: "meta-whatsapp";
473
- metaWhatsapp: {
474
- id: string;
475
- whatsappAccountID: string;
476
- whatsappPhoneNumberID: string;
477
- accessToken: string;
478
- };
479
- } | {
480
- source: "twilio-sendgrid";
481
- twilioSendgrid: {
488
+ data: {
489
+ channel: {
482
490
  id: string;
483
- displayName: string;
484
- outboundEmailAddress: string;
485
- replyEmailAddress?: string;
486
- inboundHostname: string;
487
- apiKey: string;
488
- secrets: {
491
+ name?: string;
492
+ status: "ActiveChannelStatus" | "PotentialChannelStatus";
493
+ account: string;
494
+ createdAt: string;
495
+ updatedAt: string;
496
+ } & ({
497
+ source: "meta-whatsapp";
498
+ metaWhatsapp: {
489
499
  id: string;
490
- isActive: boolean;
491
- secretExcerpt: string;
492
- }[];
493
- };
494
- }))[];
500
+ whatsappAccountID: string;
501
+ whatsappPhoneNumberID: string;
502
+ accessToken: string;
503
+ };
504
+ } | {
505
+ source: "twilio-sendgrid";
506
+ twilioSendgrid: {
507
+ id: string;
508
+ displayName: string;
509
+ outboundEmailAddress: string;
510
+ replyEmailAddress?: string;
511
+ inboundHostname: string;
512
+ apiKey: string;
513
+ secrets: {
514
+ id: string;
515
+ isActive: boolean;
516
+ secretExcerpt: string;
517
+ }[];
518
+ };
519
+ });
520
+ }[];
495
521
  };
496
522
  declare class ListChannels {
497
523
  protected _transport: FetchTransport;
@@ -505,37 +531,39 @@ interface Options$G {
505
531
  request?: RequestInit;
506
532
  }
507
533
  type UpdateChannelResponse = {
508
- channel: {
509
- id: string;
510
- name?: string;
511
- status: "ActiveChannelStatus" | "PotentialChannelStatus";
512
- account: string;
513
- createdAt: string;
514
- updatedAt: string;
515
- } & ({
516
- source: "meta-whatsapp";
517
- metaWhatsapp: {
518
- id: string;
519
- whatsappAccountID: string;
520
- whatsappPhoneNumberID: string;
521
- accessToken: string;
522
- };
523
- } | {
524
- source: "twilio-sendgrid";
525
- twilioSendgrid: {
534
+ data: {
535
+ channel: {
526
536
  id: string;
527
- displayName: string;
528
- outboundEmailAddress: string;
529
- replyEmailAddress?: string;
530
- inboundHostname: string;
531
- apiKey: string;
532
- secrets: {
537
+ name?: string;
538
+ status: "ActiveChannelStatus" | "PotentialChannelStatus";
539
+ account: string;
540
+ createdAt: string;
541
+ updatedAt: string;
542
+ } & ({
543
+ source: "meta-whatsapp";
544
+ metaWhatsapp: {
533
545
  id: string;
534
- isActive: boolean;
535
- secretExcerpt: string;
536
- }[];
537
- };
538
- });
546
+ whatsappAccountID: string;
547
+ whatsappPhoneNumberID: string;
548
+ accessToken: string;
549
+ };
550
+ } | {
551
+ source: "twilio-sendgrid";
552
+ twilioSendgrid: {
553
+ id: string;
554
+ displayName: string;
555
+ outboundEmailAddress: string;
556
+ replyEmailAddress?: string;
557
+ inboundHostname: string;
558
+ apiKey: string;
559
+ secrets: {
560
+ id: string;
561
+ isActive: boolean;
562
+ secretExcerpt: string;
563
+ }[];
564
+ };
565
+ });
566
+ };
539
567
  };
540
568
  declare class UpdateChannel {
541
569
  protected _transport: FetchTransport;
@@ -600,14 +628,16 @@ interface Options$F {
600
628
  request?: RequestInit;
601
629
  }
602
630
  type CreateCompositionSectionResponse = {
603
- compositionSection: {
604
- id: string;
605
- account: string;
606
- channel?: string;
607
- location: "header" | "footer";
608
- content: string;
609
- createdAt: string;
610
- updatedAt: string;
631
+ data: {
632
+ compositionSection: {
633
+ id: string;
634
+ account: string;
635
+ channel?: string;
636
+ location: "header" | "footer";
637
+ content: string;
638
+ createdAt: string;
639
+ updatedAt: string;
640
+ };
611
641
  };
612
642
  };
613
643
  declare class CreateCompositionSection {
@@ -637,14 +667,16 @@ interface Options$E {
637
667
  request?: RequestInit;
638
668
  }
639
669
  type GetCompositionSectionResponse = {
640
- compositionSection: {
641
- id: string;
642
- account: string;
643
- channel?: string;
644
- location: "header" | "footer";
645
- content: string;
646
- createdAt: string;
647
- updatedAt: string;
670
+ data: {
671
+ compositionSection: {
672
+ id: string;
673
+ account: string;
674
+ channel?: string;
675
+ location: "header" | "footer";
676
+ content: string;
677
+ createdAt: string;
678
+ updatedAt: string;
679
+ };
648
680
  };
649
681
  };
650
682
  declare class GetCompositionSection {
@@ -658,14 +690,16 @@ interface Options$D {
658
690
  request?: RequestInit;
659
691
  }
660
692
  type ListChannelCompositionSectionsResponse = {
661
- compositionSections: {
662
- id: string;
663
- account: string;
664
- channel?: string;
665
- location: "header" | "footer";
666
- content: string;
667
- createdAt: string;
668
- updatedAt: string;
693
+ data: {
694
+ compositionSection: {
695
+ id: string;
696
+ account: string;
697
+ channel?: string;
698
+ location: "header" | "footer";
699
+ content: string;
700
+ createdAt: string;
701
+ updatedAt: string;
702
+ };
669
703
  }[];
670
704
  };
671
705
  declare class ListChannelCompositionSections {
@@ -678,14 +712,16 @@ interface Options$C {
678
712
  request?: RequestInit;
679
713
  }
680
714
  type ListCompositionSectionsResponse = {
681
- compositionSections: {
682
- id: string;
683
- account: string;
684
- channel?: string;
685
- location: "header" | "footer";
686
- content: string;
687
- createdAt: string;
688
- updatedAt: string;
715
+ data: {
716
+ compositionSection: {
717
+ id: string;
718
+ account: string;
719
+ channel?: string;
720
+ location: "header" | "footer";
721
+ content: string;
722
+ createdAt: string;
723
+ updatedAt: string;
724
+ };
689
725
  }[];
690
726
  };
691
727
  declare class ListCompositionSections {
@@ -700,14 +736,16 @@ interface Options$B {
700
736
  request?: RequestInit;
701
737
  }
702
738
  type UpdateCompositionSectionResponse = {
703
- compositionSection: {
704
- id: string;
705
- account: string;
706
- channel?: string;
707
- location: "header" | "footer";
708
- content: string;
709
- createdAt: string;
710
- updatedAt: string;
739
+ data: {
740
+ compositionSection: {
741
+ id: string;
742
+ account: string;
743
+ channel?: string;
744
+ location: "header" | "footer";
745
+ content: string;
746
+ createdAt: string;
747
+ updatedAt: string;
748
+ };
711
749
  };
712
750
  };
713
751
  declare class UpdateCompositionSection {
@@ -754,14 +792,16 @@ interface Options$z {
754
792
  request?: RequestInit;
755
793
  }
756
794
  type CreateContactResponse = {
757
- contact: {
758
- id: string;
759
- name?: string;
760
- emailAddress?: string;
761
- telephoneNumber?: string;
762
- account: string;
763
- createdAt: string;
764
- updatedAt?: string;
795
+ data: {
796
+ contact: {
797
+ id: string;
798
+ name?: string;
799
+ emailAddress?: string;
800
+ telephoneNumber?: string;
801
+ account: string;
802
+ createdAt: string;
803
+ updatedAt?: string;
804
+ };
765
805
  };
766
806
  };
767
807
  declare class CreateContact {
@@ -791,14 +831,16 @@ interface Options$y {
791
831
  request?: RequestInit;
792
832
  }
793
833
  type GetContactResponse = {
794
- contact: {
795
- id: string;
796
- name?: string;
797
- emailAddress?: string;
798
- telephoneNumber?: string;
799
- account: string;
800
- createdAt: string;
801
- updatedAt?: string;
834
+ data: {
835
+ contact: {
836
+ id: string;
837
+ name?: string;
838
+ emailAddress?: string;
839
+ telephoneNumber?: string;
840
+ account: string;
841
+ createdAt: string;
842
+ updatedAt?: string;
843
+ };
802
844
  };
803
845
  };
804
846
  declare class GetContact {
@@ -811,14 +853,16 @@ interface Options$x {
811
853
  request?: RequestInit;
812
854
  }
813
855
  type ListContactsResponse = {
814
- contacts: {
815
- id: string;
816
- name?: string;
817
- emailAddress?: string;
818
- telephoneNumber?: string;
819
- account: string;
820
- createdAt: string;
821
- updatedAt?: string;
856
+ data: {
857
+ contact: {
858
+ id: string;
859
+ name?: string;
860
+ emailAddress?: string;
861
+ telephoneNumber?: string;
862
+ account: string;
863
+ createdAt: string;
864
+ updatedAt?: string;
865
+ };
822
866
  }[];
823
867
  };
824
868
  declare class ListContacts {
@@ -832,14 +876,16 @@ interface Options$w {
832
876
  request?: RequestInit;
833
877
  }
834
878
  type ListLabelContactsResponse = {
835
- contacts: {
836
- id: string;
837
- name?: string;
838
- emailAddress?: string;
839
- telephoneNumber?: string;
840
- account: string;
841
- createdAt: string;
842
- updatedAt?: string;
879
+ data: {
880
+ contact: {
881
+ id: string;
882
+ name?: string;
883
+ emailAddress?: string;
884
+ telephoneNumber?: string;
885
+ account: string;
886
+ createdAt: string;
887
+ updatedAt?: string;
888
+ };
843
889
  }[];
844
890
  };
845
891
  declare class ListLabelContacts {
@@ -854,14 +900,16 @@ interface Options$v {
854
900
  request?: RequestInit;
855
901
  }
856
902
  type UpdateContactResponse = {
857
- contact: {
858
- id: string;
859
- name?: string;
860
- emailAddress?: string;
861
- telephoneNumber?: string;
862
- account: string;
863
- createdAt: string;
864
- updatedAt?: string;
903
+ data: {
904
+ contact: {
905
+ id: string;
906
+ name?: string;
907
+ emailAddress?: string;
908
+ telephoneNumber?: string;
909
+ account: string;
910
+ createdAt: string;
911
+ updatedAt?: string;
912
+ };
865
913
  };
866
914
  };
867
915
  declare class UpdateContact {
@@ -888,14 +936,16 @@ interface Options$u {
888
936
  request?: RequestInit;
889
937
  }
890
938
  type GetConversationResponse = {
891
- conversation: {
892
- id: string;
893
- name?: string;
894
- hasEnded: boolean;
895
- status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
896
- accountChannel: string;
897
- createdAt: string;
898
- updatedAt: string;
939
+ data: {
940
+ conversation: {
941
+ id: string;
942
+ name?: string;
943
+ hasEnded: boolean;
944
+ status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
945
+ accountChannel: string;
946
+ createdAt: string;
947
+ updatedAt: string;
948
+ };
899
949
  };
900
950
  };
901
951
  declare class GetConversation {
@@ -909,14 +959,16 @@ interface Options$t {
909
959
  request?: RequestInit;
910
960
  }
911
961
  type ListContactConversationsResponse = {
912
- conversations: {
913
- id: string;
914
- name?: string;
915
- hasEnded: boolean;
916
- status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
917
- accountChannel: string;
918
- createdAt: string;
919
- updatedAt: string;
962
+ data: {
963
+ conversation: {
964
+ id: string;
965
+ name?: string;
966
+ hasEnded: boolean;
967
+ status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
968
+ accountChannel: string;
969
+ createdAt: string;
970
+ updatedAt: string;
971
+ };
920
972
  }[];
921
973
  };
922
974
  declare class ListContactConversations {
@@ -976,14 +1028,16 @@ interface Options$r {
976
1028
  request?: RequestInit;
977
1029
  }
978
1030
  type ListLabelConversationsResponse = {
979
- conversations: {
980
- id: string;
981
- name?: string;
982
- hasEnded: boolean;
983
- status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
984
- accountChannel: string;
985
- createdAt: string;
986
- updatedAt: string;
1031
+ data: {
1032
+ conversation: {
1033
+ id: string;
1034
+ name?: string;
1035
+ hasEnded: boolean;
1036
+ status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
1037
+ accountChannel: string;
1038
+ createdAt: string;
1039
+ updatedAt: string;
1040
+ };
987
1041
  }[];
988
1042
  };
989
1043
  declare class ListLabelConversations {
@@ -998,14 +1052,16 @@ interface Options$q {
998
1052
  request?: RequestInit;
999
1053
  }
1000
1054
  type UpdateConversationResponse = {
1001
- conversation: {
1002
- id: string;
1003
- name?: string;
1004
- hasEnded: boolean;
1005
- status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
1006
- accountChannel: string;
1007
- createdAt: string;
1008
- updatedAt: string;
1055
+ data: {
1056
+ conversation: {
1057
+ id: string;
1058
+ name?: string;
1059
+ hasEnded: boolean;
1060
+ status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
1061
+ accountChannel: string;
1062
+ createdAt: string;
1063
+ updatedAt: string;
1064
+ };
1009
1065
  };
1010
1066
  };
1011
1067
  declare class UpdateConversation {
@@ -1029,13 +1085,15 @@ interface Options$p {
1029
1085
  request?: RequestInit;
1030
1086
  }
1031
1087
  type CreateLabelResponse = {
1032
- label: {
1033
- id: string;
1034
- title: string;
1035
- description?: string;
1036
- account: string;
1037
- createdAt: string;
1038
- updatedAt?: string;
1088
+ data: {
1089
+ label: {
1090
+ id: string;
1091
+ title: string;
1092
+ description?: string;
1093
+ account: string;
1094
+ createdAt: string;
1095
+ updatedAt?: string;
1096
+ };
1039
1097
  };
1040
1098
  };
1041
1099
  declare class CreateLabel {
@@ -1073,13 +1131,15 @@ interface Options$n {
1073
1131
  request?: RequestInit;
1074
1132
  }
1075
1133
  type GetLabelResponse = {
1076
- label: {
1077
- id: string;
1078
- title: string;
1079
- description?: string;
1080
- account: string;
1081
- createdAt: string;
1082
- updatedAt?: string;
1134
+ data: {
1135
+ label: {
1136
+ id: string;
1137
+ title: string;
1138
+ description?: string;
1139
+ account: string;
1140
+ createdAt: string;
1141
+ updatedAt?: string;
1142
+ };
1083
1143
  };
1084
1144
  };
1085
1145
  declare class GetLabel {
@@ -1092,13 +1152,15 @@ interface Options$m {
1092
1152
  request?: RequestInit;
1093
1153
  }
1094
1154
  type ListLabelsResponse = {
1095
- labels: {
1096
- id: string;
1097
- title: string;
1098
- description?: string;
1099
- account: string;
1100
- createdAt: string;
1101
- updatedAt?: string;
1155
+ data: {
1156
+ label: {
1157
+ id: string;
1158
+ title: string;
1159
+ description?: string;
1160
+ account: string;
1161
+ createdAt: string;
1162
+ updatedAt?: string;
1163
+ };
1102
1164
  }[];
1103
1165
  };
1104
1166
  declare class ListLabels {
@@ -1113,13 +1175,15 @@ interface Options$l {
1113
1175
  request?: RequestInit;
1114
1176
  }
1115
1177
  type UpdateLabelResponse = {
1116
- label: {
1117
- id: string;
1118
- title: string;
1119
- description?: string;
1120
- account: string;
1121
- createdAt: string;
1122
- updatedAt?: string;
1178
+ data: {
1179
+ label: {
1180
+ id: string;
1181
+ title: string;
1182
+ description?: string;
1183
+ account: string;
1184
+ createdAt: string;
1185
+ updatedAt?: string;
1186
+ };
1123
1187
  };
1124
1188
  };
1125
1189
  declare class UpdateLabel {
@@ -1143,22 +1207,24 @@ interface Options$k {
1143
1207
  request?: RequestInit;
1144
1208
  }
1145
1209
  type ListChannelMessagesResponse = {
1146
- messages: {
1147
- id: string;
1148
- role: "user" | "assistant";
1149
- status: string;
1150
- externalIdentifier?: string;
1151
- conversation: string;
1152
- contact: string;
1153
- messageEvents: {
1210
+ data: {
1211
+ message: {
1154
1212
  id: string;
1155
- messageEventType: string;
1156
- triggeredAt: string;
1213
+ role: "user" | "assistant";
1214
+ status: string;
1215
+ externalIdentifier?: string;
1216
+ conversation: string;
1217
+ contact: string;
1218
+ messageEvents: {
1219
+ id: string;
1220
+ messageEventType: string;
1221
+ triggeredAt: string;
1222
+ createdAt: string;
1223
+ updatedAt?: string;
1224
+ }[];
1157
1225
  createdAt: string;
1158
- updatedAt?: string;
1159
- }[];
1160
- createdAt: string;
1161
- updatedAt: string;
1226
+ updatedAt: string;
1227
+ };
1162
1228
  }[];
1163
1229
  };
1164
1230
  declare class ListChannelMessages {
@@ -1172,22 +1238,24 @@ interface Options$j {
1172
1238
  request?: RequestInit;
1173
1239
  }
1174
1240
  type ListConversationMessagesResponse = {
1175
- messages: {
1176
- id: string;
1177
- role: "user" | "assistant";
1178
- status: string;
1179
- externalIdentifier?: string;
1180
- conversation: string;
1181
- contact: string;
1182
- messageEvents: {
1241
+ data: {
1242
+ message: {
1183
1243
  id: string;
1184
- messageEventType: string;
1185
- triggeredAt: string;
1244
+ role: "user" | "assistant";
1245
+ status: string;
1246
+ externalIdentifier?: string;
1247
+ conversation: string;
1248
+ contact: string;
1249
+ messageEvents: {
1250
+ id: string;
1251
+ messageEventType: string;
1252
+ triggeredAt: string;
1253
+ createdAt: string;
1254
+ updatedAt?: string;
1255
+ }[];
1186
1256
  createdAt: string;
1187
- updatedAt?: string;
1188
- }[];
1189
- createdAt: string;
1190
- updatedAt: string;
1257
+ updatedAt: string;
1258
+ };
1191
1259
  }[];
1192
1260
  };
1193
1261
  declare class ListConversationMessages {
@@ -1200,22 +1268,24 @@ interface Options$i {
1200
1268
  request?: RequestInit;
1201
1269
  }
1202
1270
  type ListMessagesResponse = {
1203
- messages: {
1204
- id: string;
1205
- role: "user" | "assistant";
1206
- status: string;
1207
- externalIdentifier?: string;
1208
- conversation: string;
1209
- contact: string;
1210
- messageEvents: {
1271
+ data: {
1272
+ message: {
1211
1273
  id: string;
1212
- messageEventType: string;
1213
- triggeredAt: string;
1274
+ role: "user" | "assistant";
1275
+ status: string;
1276
+ externalIdentifier?: string;
1277
+ conversation: string;
1278
+ contact: string;
1279
+ messageEvents: {
1280
+ id: string;
1281
+ messageEventType: string;
1282
+ triggeredAt: string;
1283
+ createdAt: string;
1284
+ updatedAt?: string;
1285
+ }[];
1214
1286
  createdAt: string;
1215
- updatedAt?: string;
1216
- }[];
1217
- createdAt: string;
1218
- updatedAt: string;
1287
+ updatedAt: string;
1288
+ };
1219
1289
  }[];
1220
1290
  };
1221
1291
  declare class ListMessages {
@@ -1254,12 +1324,14 @@ interface Options$g {
1254
1324
  request?: RequestInit;
1255
1325
  }
1256
1326
  type GetModelResponse = {
1257
- model: {
1258
- id: string;
1259
- name: string;
1260
- url?: string;
1261
- icon?: string;
1262
- disambiguatingDescription: string;
1327
+ data: {
1328
+ model: {
1329
+ id: string;
1330
+ name: string;
1331
+ url?: string;
1332
+ icon?: string;
1333
+ disambiguatingDescription: string;
1334
+ };
1263
1335
  };
1264
1336
  };
1265
1337
  declare class GetModel {
@@ -1272,12 +1344,14 @@ interface Options$f {
1272
1344
  request?: RequestInit;
1273
1345
  }
1274
1346
  type ListModelsResponse = {
1275
- models: {
1276
- id: string;
1277
- name: string;
1278
- url?: string;
1279
- icon?: string;
1280
- disambiguatingDescription: string;
1347
+ data: {
1348
+ model: {
1349
+ id: string;
1350
+ name: string;
1351
+ url?: string;
1352
+ icon?: string;
1353
+ disambiguatingDescription: string;
1354
+ };
1281
1355
  }[];
1282
1356
  };
1283
1357
  declare class ListModels {
@@ -1320,11 +1394,13 @@ interface Options$d {
1320
1394
  request?: RequestInit;
1321
1395
  }
1322
1396
  type CreateContactNoteResponse = {
1323
- note: {
1324
- id: string;
1325
- content: string;
1326
- createdAt: string;
1327
- updatedAt: string;
1397
+ data: {
1398
+ note: {
1399
+ id: string;
1400
+ content: string;
1401
+ createdAt: string;
1402
+ updatedAt: string;
1403
+ };
1328
1404
  };
1329
1405
  };
1330
1406
  declare class CreateContactNote {
@@ -1346,11 +1422,13 @@ interface Options$c {
1346
1422
  request?: RequestInit;
1347
1423
  }
1348
1424
  type CreateConversationNoteResponse = {
1349
- note: {
1350
- id: string;
1351
- content: string;
1352
- createdAt: string;
1353
- updatedAt: string;
1425
+ data: {
1426
+ note: {
1427
+ id: string;
1428
+ content: string;
1429
+ createdAt: string;
1430
+ updatedAt: string;
1431
+ };
1354
1432
  };
1355
1433
  };
1356
1434
  declare class CreateConversationNote {
@@ -1371,11 +1449,13 @@ interface Options$b {
1371
1449
  request?: RequestInit;
1372
1450
  }
1373
1451
  type GetNoteResponse = {
1374
- note: {
1375
- id: string;
1376
- content: string;
1377
- createdAt: string;
1378
- updatedAt: string;
1452
+ data: {
1453
+ note: {
1454
+ id: string;
1455
+ content: string;
1456
+ createdAt: string;
1457
+ updatedAt: string;
1458
+ };
1379
1459
  };
1380
1460
  };
1381
1461
  declare class GetNote {
@@ -1389,11 +1469,13 @@ interface Options$a {
1389
1469
  request?: RequestInit;
1390
1470
  }
1391
1471
  type ListContactNotesResponse = {
1392
- notes: {
1393
- id: string;
1394
- content: string;
1395
- createdAt: string;
1396
- updatedAt: string;
1472
+ data: {
1473
+ note: {
1474
+ id: string;
1475
+ content: string;
1476
+ createdAt: string;
1477
+ updatedAt: string;
1478
+ };
1397
1479
  }[];
1398
1480
  };
1399
1481
  declare class ListContactNotes {
@@ -1407,11 +1489,13 @@ interface Options$9 {
1407
1489
  request?: RequestInit;
1408
1490
  }
1409
1491
  type ListConversationNotesResponse = {
1410
- notes: {
1411
- id: string;
1412
- content: string;
1413
- createdAt: string;
1414
- updatedAt: string;
1492
+ data: {
1493
+ note: {
1494
+ id: string;
1495
+ content: string;
1496
+ createdAt: string;
1497
+ updatedAt: string;
1498
+ };
1415
1499
  }[];
1416
1500
  };
1417
1501
  declare class ListConversationNotes {
@@ -1426,11 +1510,13 @@ interface Options$8 {
1426
1510
  request?: RequestInit;
1427
1511
  }
1428
1512
  type UpdateNoteResponse = {
1429
- note: {
1430
- id: string;
1431
- content: string;
1432
- createdAt: string;
1433
- updatedAt: string;
1513
+ data: {
1514
+ note: {
1515
+ id: string;
1516
+ content: string;
1517
+ createdAt: string;
1518
+ updatedAt: string;
1519
+ };
1434
1520
  };
1435
1521
  };
1436
1522
  declare class UpdateNote {
@@ -1452,10 +1538,12 @@ interface Options$7 {
1452
1538
  request?: RequestInit;
1453
1539
  }
1454
1540
  type CreateContactNotificationSubscriptionResponse = {
1455
- subscription: {
1456
- id: string;
1457
- createdAt: string;
1458
- updatedAt: string;
1541
+ data: {
1542
+ notificationSubscription: {
1543
+ id: string;
1544
+ createdAt: string;
1545
+ updatedAt: string;
1546
+ };
1459
1547
  };
1460
1548
  };
1461
1549
  declare class CreateContactNotificationSubscription {
@@ -1497,13 +1585,15 @@ interface Options$6 {
1497
1585
  request?: RequestInit;
1498
1586
  }
1499
1587
  type GetSourceResponse = {
1500
- source: {
1501
- id: string;
1502
- name: string;
1503
- category: string;
1504
- url?: string;
1505
- icon?: string;
1506
- disambiguatingDescription: string;
1588
+ data: {
1589
+ source: {
1590
+ id: string;
1591
+ name: string;
1592
+ category: string;
1593
+ url?: string;
1594
+ icon?: string;
1595
+ disambiguatingDescription: string;
1596
+ };
1507
1597
  };
1508
1598
  };
1509
1599
  declare class GetSource {
@@ -1517,13 +1607,15 @@ interface Options$5 {
1517
1607
  request?: RequestInit;
1518
1608
  }
1519
1609
  type ListSourcesResponse = {
1520
- sources: {
1521
- id: string;
1522
- name: string;
1523
- category: string;
1524
- url?: string;
1525
- icon?: string;
1526
- disambiguatingDescription: string;
1610
+ data: {
1611
+ source: {
1612
+ id: string;
1613
+ name: string;
1614
+ category: string;
1615
+ url?: string;
1616
+ icon?: string;
1617
+ disambiguatingDescription: string;
1618
+ };
1527
1619
  }[];
1528
1620
  };
1529
1621
  declare class ListSources {
@@ -1538,13 +1630,15 @@ interface Options$4 {
1538
1630
  request?: RequestInit;
1539
1631
  }
1540
1632
  type CreateUploadResponse = {
1541
- upload: {
1542
- id: string;
1543
- name: string;
1544
- alternativeName?: string;
1545
- contentSize: number;
1546
- encodingFormat: string;
1547
- sha256: string;
1633
+ data: {
1634
+ upload: {
1635
+ id: string;
1636
+ name: string;
1637
+ alternativeName?: string;
1638
+ contentSize: number;
1639
+ encodingFormat: string;
1640
+ sha256: string;
1641
+ };
1548
1642
  };
1549
1643
  };
1550
1644
  declare class CreateUpload {
@@ -1569,15 +1663,17 @@ interface Options$2 {
1569
1663
  request?: RequestInit;
1570
1664
  }
1571
1665
  type GetUploadResponse = {
1572
- url: string;
1573
- expiresAt: string;
1574
- upload: {
1575
- id: string;
1576
- name: string;
1577
- alternativeName?: string;
1578
- contentSize: number;
1579
- encodingFormat: string;
1580
- sha256: string;
1666
+ data: {
1667
+ url: string;
1668
+ expiresAt: string;
1669
+ upload: {
1670
+ id: string;
1671
+ name: string;
1672
+ alternativeName?: string;
1673
+ contentSize: number;
1674
+ encodingFormat: string;
1675
+ sha256: string;
1676
+ };
1581
1677
  };
1582
1678
  };
1583
1679
  declare class GetUpload {