@great-detail/support-sdk 0.5.0 → 0.5.2

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.
@@ -1,5 +1,5 @@
1
1
  import * as ky from 'ky';
2
- import { KyInstance } from 'ky';
2
+ import { KyInstance, Options as Options$R } from 'ky';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -29,28 +29,28 @@ interface RequestFilterable {
29
29
  * @see https://greatdetail.com
30
30
  */
31
31
 
32
- interface Options$P {
32
+ interface Options$Q {
33
33
  requestFilterables: RequestFilterable[];
34
34
  }
35
35
  interface Transport {
36
36
  getURL(url: string): string;
37
37
  }
38
38
 
39
- interface InputOptions extends Options$P {
39
+ interface InputOptions extends Options$Q {
40
40
  baseURL: string;
41
41
  }
42
- interface Options$O extends Options$P {
42
+ interface Options$P extends Options$Q {
43
43
  baseURL: string;
44
44
  }
45
45
  declare class FetchTransport implements Transport {
46
46
  client: KyInstance;
47
- options: Options$O;
47
+ options: Options$P;
48
48
  constructor({ baseURL, ...options }: InputOptions);
49
49
  getURL(url: string): string;
50
- send<T = unknown>(url: string, request: RequestInit): Promise<ky.KyResponse<T>>;
50
+ send<T = unknown>(url: string, request: Options$R): Promise<ky.KyResponse<T>>;
51
51
  }
52
52
 
53
- interface Options$N {
53
+ interface Options$O {
54
54
  request?: RequestInit;
55
55
  }
56
56
  type ListActionsResponse = {
@@ -70,7 +70,7 @@ type ListActionsResponse = {
70
70
  declare class ListActions {
71
71
  protected _transport: FetchTransport;
72
72
  constructor(_transport: FetchTransport);
73
- send({ request }?: Options$N): Promise<ky.KyResponse<ListActionsResponse>>;
73
+ send({ request }?: Options$O): Promise<ky.KyResponse<ListActionsResponse>>;
74
74
  }
75
75
 
76
76
  /**
@@ -84,7 +84,7 @@ declare class ListActions {
84
84
 
85
85
  type Authentication = RequestFilterable;
86
86
 
87
- interface Options$M {
87
+ interface Options$N {
88
88
  id: string;
89
89
  body: z.infer<typeof CreateBoilerplateCategoryBoilerplate.SCHEMA>;
90
90
  request?: RequestInit;
@@ -115,10 +115,10 @@ declare class CreateBoilerplateCategoryBoilerplate {
115
115
  account: string;
116
116
  }>;
117
117
  constructor(_transport: FetchTransport);
118
- send({ id, body, request }: Options$M): Promise<ky.KyResponse<CreateBoilerplateCategoryBoilerplateResponse>>;
118
+ send({ id, body, request }: Options$N): Promise<ky.KyResponse<CreateBoilerplateCategoryBoilerplateResponse>>;
119
119
  }
120
120
 
121
- interface Options$L {
121
+ interface Options$M {
122
122
  id: string;
123
123
  request?: RequestInit;
124
124
  }
@@ -136,17 +136,17 @@ type GetBoilerplateResponse = {
136
136
  declare class GetBoilerplate {
137
137
  protected _transport: FetchTransport;
138
138
  constructor(_transport: FetchTransport);
139
- send({ id, request }: Options$L): Promise<ky.KyResponse<GetBoilerplateResponse>>;
139
+ send({ id, request }: Options$M): Promise<ky.KyResponse<GetBoilerplateResponse>>;
140
140
  }
141
141
 
142
- interface Options$K {
142
+ interface Options$L {
143
143
  id: string;
144
144
  request?: RequestInit;
145
145
  }
146
146
  declare class ListBoilerplateCategoryBoilerplates {
147
147
  protected _transport: FetchTransport;
148
148
  constructor(_transport: FetchTransport);
149
- send({ id, request }: Options$K): Promise<ky.KyResponse<ListBoilerplateCategoryBoilerplatesResponse>>;
149
+ send({ id, request }: Options$L): Promise<ky.KyResponse<ListBoilerplateCategoryBoilerplatesResponse>>;
150
150
  }
151
151
  type ListBoilerplateCategoryBoilerplatesResponse = {
152
152
  boilerplates: {
@@ -160,7 +160,7 @@ type ListBoilerplateCategoryBoilerplatesResponse = {
160
160
  }[];
161
161
  };
162
162
 
163
- interface Options$J {
163
+ interface Options$K {
164
164
  query?: string;
165
165
  request?: RequestInit;
166
166
  }
@@ -178,10 +178,10 @@ type ListBoilerplatesResponse = {
178
178
  declare class ListBoilerplates {
179
179
  protected _transport: FetchTransport;
180
180
  constructor(_transport: FetchTransport);
181
- send({ query, request }?: Options$J): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
181
+ send({ query, request }?: Options$K): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
182
182
  }
183
183
 
184
- interface Options$I {
184
+ interface Options$J {
185
185
  id: string;
186
186
  body: z.infer<typeof UpdateBoilerplate.SCHEMA>;
187
187
  request?: RequestInit;
@@ -210,10 +210,10 @@ declare class UpdateBoilerplate {
210
210
  content?: string | undefined;
211
211
  }>;
212
212
  constructor(_transport: FetchTransport);
213
- send({ id, body, request }: Options$I): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
213
+ send({ id, body, request }: Options$J): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
214
214
  }
215
215
 
216
- interface Options$H {
216
+ interface Options$I {
217
217
  body: z.infer<typeof CreateBoilerplateCategory.SCHEMA>;
218
218
  request?: RequestInit;
219
219
  }
@@ -243,10 +243,10 @@ declare class CreateBoilerplateCategory {
243
243
  description?: string | undefined;
244
244
  }>;
245
245
  constructor(_transport: FetchTransport);
246
- send({ body, request }: Options$H): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
246
+ send({ body, request }: Options$I): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
247
247
  }
248
248
 
249
- interface Options$G {
249
+ interface Options$H {
250
250
  id: string;
251
251
  request?: RequestInit;
252
252
  }
@@ -263,10 +263,10 @@ type GetBoilerplateCategoryResponse = {
263
263
  declare class GetBoilerplateCategory {
264
264
  protected _transport: FetchTransport;
265
265
  constructor(_transport: FetchTransport);
266
- send({ id, request }: Options$G): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
266
+ send({ id, request }: Options$H): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
267
267
  }
268
268
 
269
- interface Options$F {
269
+ interface Options$G {
270
270
  request?: RequestInit;
271
271
  }
272
272
  type ListBoilerplateCategoriesResponse = {
@@ -282,10 +282,10 @@ type ListBoilerplateCategoriesResponse = {
282
282
  declare class ListBoilerplateCategories {
283
283
  protected _transport: FetchTransport;
284
284
  constructor(_transport: FetchTransport);
285
- send({ request }?: Options$F): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse>>;
285
+ send({ request }?: Options$G): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse>>;
286
286
  }
287
287
 
288
- interface Options$E {
288
+ interface Options$F {
289
289
  id: string;
290
290
  body: z.infer<typeof UpdateBoilerplateCategory.SCHEMA>;
291
291
  request?: RequestInit;
@@ -313,10 +313,10 @@ declare class UpdateBoilerplateCategory {
313
313
  description?: string | undefined;
314
314
  }>;
315
315
  constructor(_transport: FetchTransport);
316
- send({ id, body, request }: Options$E): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
316
+ send({ id, body, request }: Options$F): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
317
317
  }
318
318
 
319
- interface Options$D {
319
+ interface Options$E {
320
320
  body: z.infer<typeof CreateChannel.SCHEMA>;
321
321
  request?: RequestInit;
322
322
  }
@@ -411,10 +411,10 @@ declare class CreateChannel {
411
411
  };
412
412
  }>]>>;
413
413
  constructor(_transport: FetchTransport);
414
- send({ body, request }: Options$D): Promise<ky.KyResponse<CreateChannelResponse>>;
414
+ send({ body, request }: Options$E): Promise<ky.KyResponse<CreateChannelResponse>>;
415
415
  }
416
416
 
417
- interface Options$C {
417
+ interface Options$D {
418
418
  id: string;
419
419
  request?: RequestInit;
420
420
  }
@@ -454,10 +454,10 @@ type GetChannelResponse = {
454
454
  declare class GetChannel {
455
455
  protected _transport: FetchTransport;
456
456
  constructor(_transport: FetchTransport);
457
- send({ id, request }: Options$C): Promise<ky.KyResponse<GetChannelResponse>>;
457
+ send({ id, request }: Options$D): Promise<ky.KyResponse<GetChannelResponse>>;
458
458
  }
459
459
 
460
- interface Options$B {
460
+ interface Options$C {
461
461
  request?: RequestInit;
462
462
  }
463
463
  type ListChannelsResponse = {
@@ -496,10 +496,10 @@ type ListChannelsResponse = {
496
496
  declare class ListChannels {
497
497
  protected _transport: FetchTransport;
498
498
  constructor(_transport: FetchTransport);
499
- send({ request }?: Options$B): Promise<ky.KyResponse<ListChannelsResponse>>;
499
+ send({ request }?: Options$C): Promise<ky.KyResponse<ListChannelsResponse>>;
500
500
  }
501
501
 
502
- interface Options$A {
502
+ interface Options$B {
503
503
  id: string;
504
504
  body: z.infer<typeof UpdateChannel.SCHEMA>;
505
505
  request?: RequestInit;
@@ -592,7 +592,7 @@ declare class UpdateChannel {
592
592
  };
593
593
  }>]>>;
594
594
  constructor(_transport: FetchTransport);
595
- send({ id, body, request }: Options$A): Promise<ky.KyResponse<UpdateChannelResponse>>;
595
+ send({ id, body, request }: Options$B): Promise<ky.KyResponse<UpdateChannelResponse>>;
596
596
  }
597
597
 
598
598
  /**
@@ -604,7 +604,7 @@ declare class UpdateChannel {
604
604
  * @see https://greatdetail.com
605
605
  */
606
606
 
607
- interface Options$z {
607
+ interface Options$A {
608
608
  id: string;
609
609
  vcf?: {
610
610
  variant?: "vcard";
@@ -617,11 +617,11 @@ interface Options$z {
617
617
  declare class GetContactVCFURL {
618
618
  protected _transport: FetchTransport;
619
619
  constructor(_transport: FetchTransport);
620
- getRelativeURL({ id, vcf }: Options$z): string;
621
- getURL(options: Options$z): string;
620
+ getRelativeURL({ id, vcf }: Options$A): string;
621
+ getURL(options: Options$A): string;
622
622
  }
623
623
 
624
- interface Options$y {
624
+ interface Options$z {
625
625
  body: z.infer<typeof CreateContact.SCHEMA>;
626
626
  request?: RequestInit;
627
627
  }
@@ -655,10 +655,10 @@ declare class CreateContact {
655
655
  telephoneNumber?: string | undefined;
656
656
  }>;
657
657
  constructor(_transport: FetchTransport);
658
- send({ body, request }: Options$y): Promise<ky.KyResponse<CreateContactResponse>>;
658
+ send({ body, request }: Options$z): Promise<ky.KyResponse<CreateContactResponse>>;
659
659
  }
660
660
 
661
- interface Options$x {
661
+ interface Options$y {
662
662
  id: string;
663
663
  request?: RequestInit;
664
664
  }
@@ -676,10 +676,10 @@ type GetContactResponse = {
676
676
  declare class GetContact {
677
677
  protected _transport: FetchTransport;
678
678
  constructor(_transport: FetchTransport);
679
- send({ id, request }: Options$x): Promise<ky.KyResponse<GetContactResponse>>;
679
+ send({ id, request }: Options$y): Promise<ky.KyResponse<GetContactResponse>>;
680
680
  }
681
681
 
682
- interface Options$w {
682
+ interface Options$x {
683
683
  request?: RequestInit;
684
684
  }
685
685
  type ListContactsResponse = {
@@ -696,10 +696,10 @@ type ListContactsResponse = {
696
696
  declare class ListContacts {
697
697
  protected _transport: FetchTransport;
698
698
  constructor(_transport: FetchTransport);
699
- send({ request }?: Options$w): Promise<ky.KyResponse<ListContactsResponse>>;
699
+ send({ request }?: Options$x): Promise<ky.KyResponse<ListContactsResponse>>;
700
700
  }
701
701
 
702
- interface Options$v {
702
+ interface Options$w {
703
703
  id: string;
704
704
  request?: RequestInit;
705
705
  }
@@ -717,10 +717,10 @@ type ListLabelContactsResponse = {
717
717
  declare class ListLabelContacts {
718
718
  protected _transport: FetchTransport;
719
719
  constructor(_transport: FetchTransport);
720
- send({ id, request }: Options$v): Promise<ky.KyResponse<ListLabelContactsResponse>>;
720
+ send({ id, request }: Options$w): Promise<ky.KyResponse<ListLabelContactsResponse>>;
721
721
  }
722
722
 
723
- interface Options$u {
723
+ interface Options$v {
724
724
  id: string;
725
725
  body: z.infer<typeof UpdateContact.SCHEMA>;
726
726
  request?: RequestInit;
@@ -752,10 +752,10 @@ declare class UpdateContact {
752
752
  telephoneNumber?: string | undefined;
753
753
  }>;
754
754
  constructor(_transport: FetchTransport);
755
- send({ id, body, request }: Options$u): Promise<ky.KyResponse<UpdateContactResponse>>;
755
+ send({ id, body, request }: Options$v): Promise<ky.KyResponse<UpdateContactResponse>>;
756
756
  }
757
757
 
758
- interface Options$t {
758
+ interface Options$u {
759
759
  id: string;
760
760
  request?: RequestInit;
761
761
  }
@@ -773,10 +773,10 @@ type GetConversationResponse = {
773
773
  declare class GetConversation {
774
774
  protected _transport: FetchTransport;
775
775
  constructor(_transport: FetchTransport);
776
- send({ id, request }: Options$t): Promise<ky.KyResponse<GetConversationResponse>>;
776
+ send({ id, request }: Options$u): Promise<ky.KyResponse<GetConversationResponse>>;
777
777
  }
778
778
 
779
- interface Options$s {
779
+ interface Options$t {
780
780
  id: string;
781
781
  request?: RequestInit;
782
782
  }
@@ -794,10 +794,11 @@ type ListContactConversationsResponse = {
794
794
  declare class ListContactConversations {
795
795
  protected _transport: FetchTransport;
796
796
  constructor(_transport: FetchTransport);
797
- send({ id, request }: Options$s): Promise<ky.KyResponse<ListContactConversationsResponse>>;
797
+ send({ id, request }: Options$t): Promise<ky.KyResponse<ListContactConversationsResponse>>;
798
798
  }
799
799
 
800
- interface Options$r {
800
+ interface Options$s {
801
+ filter?: "unresolved";
801
802
  request?: RequestInit;
802
803
  }
803
804
  type ListConversationsResponse = {
@@ -814,10 +815,10 @@ type ListConversationsResponse = {
814
815
  declare class ListConversations {
815
816
  protected _transport: FetchTransport;
816
817
  constructor(_transport: FetchTransport);
817
- send({ request }?: Options$r): Promise<ky.KyResponse<ListConversationsResponse>>;
818
+ send({ filter, request }?: Options$s): Promise<ky.KyResponse<ListConversationsResponse>>;
818
819
  }
819
820
 
820
- interface Options$q {
821
+ interface Options$r {
821
822
  id: string;
822
823
  request?: RequestInit;
823
824
  }
@@ -835,10 +836,10 @@ type ListLabelConversationsResponse = {
835
836
  declare class ListLabelConversations {
836
837
  protected _transport: FetchTransport;
837
838
  constructor(_transport: FetchTransport);
838
- send({ id, request }: Options$q): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
839
+ send({ id, request }: Options$r): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
839
840
  }
840
841
 
841
- interface Options$p {
842
+ interface Options$q {
842
843
  id: string;
843
844
  body: z.infer<typeof UpdateConversation.SCHEMA>;
844
845
  request?: RequestInit;
@@ -867,10 +868,10 @@ declare class UpdateConversation {
867
868
  hasEnded?: boolean | undefined;
868
869
  }>;
869
870
  constructor(_transport: FetchTransport);
870
- send({ id, body, request }: Options$p): Promise<ky.KyResponse<UpdateConversationResponse>>;
871
+ send({ id, body, request }: Options$q): Promise<ky.KyResponse<UpdateConversationResponse>>;
871
872
  }
872
873
 
873
- interface Options$o {
874
+ interface Options$p {
874
875
  body: z.infer<typeof CreateLabel.SCHEMA>;
875
876
  request?: RequestInit;
876
877
  }
@@ -900,10 +901,10 @@ declare class CreateLabel {
900
901
  description?: string | undefined;
901
902
  }>;
902
903
  constructor(_transport: FetchTransport);
903
- send({ body, request }: Options$o): Promise<ky.KyResponse<CreateLabelResponse>>;
904
+ send({ body, request }: Options$p): Promise<ky.KyResponse<CreateLabelResponse>>;
904
905
  }
905
906
 
906
- interface Options$n {
907
+ interface Options$o {
907
908
  id: string;
908
909
  request?: RequestInit;
909
910
  }
@@ -911,10 +912,10 @@ type DeleteLabelResponse = Record<string, never>;
911
912
  declare class DeleteLabel {
912
913
  protected _transport: FetchTransport;
913
914
  constructor(_transport: FetchTransport);
914
- send({ id, request }: Options$n): Promise<ky.KyResponse<DeleteLabelResponse>>;
915
+ send({ id, request }: Options$o): Promise<ky.KyResponse<DeleteLabelResponse>>;
915
916
  }
916
917
 
917
- interface Options$m {
918
+ interface Options$n {
918
919
  id: string;
919
920
  request?: RequestInit;
920
921
  }
@@ -931,10 +932,10 @@ type GetLabelResponse = {
931
932
  declare class GetLabel {
932
933
  protected _transport: FetchTransport;
933
934
  constructor(_transport: FetchTransport);
934
- send({ id, request }: Options$m): Promise<ky.KyResponse<GetLabelResponse>>;
935
+ send({ id, request }: Options$n): Promise<ky.KyResponse<GetLabelResponse>>;
935
936
  }
936
937
 
937
- interface Options$l {
938
+ interface Options$m {
938
939
  request?: RequestInit;
939
940
  }
940
941
  type ListLabelsResponse = {
@@ -950,10 +951,10 @@ type ListLabelsResponse = {
950
951
  declare class ListLabels {
951
952
  protected _transport: FetchTransport;
952
953
  constructor(_transport: FetchTransport);
953
- send({ request }?: Options$l): Promise<ky.KyResponse<ListLabelsResponse>>;
954
+ send({ request }?: Options$m): Promise<ky.KyResponse<ListLabelsResponse>>;
954
955
  }
955
956
 
956
- interface Options$k {
957
+ interface Options$l {
957
958
  id: string;
958
959
  body: z.infer<typeof UpdateLabel.SCHEMA>;
959
960
  request?: RequestInit;
@@ -981,10 +982,10 @@ declare class UpdateLabel {
981
982
  description?: string | undefined;
982
983
  }>;
983
984
  constructor(_transport: FetchTransport);
984
- send({ id, body, request }: Options$k): Promise<ky.KyResponse<UpdateLabelResponse>>;
985
+ send({ id, body, request }: Options$l): Promise<ky.KyResponse<UpdateLabelResponse>>;
985
986
  }
986
987
 
987
- interface Options$j {
988
+ interface Options$k {
988
989
  id: string;
989
990
  request?: RequestInit;
990
991
  }
@@ -1010,10 +1011,10 @@ type ListChannelMessagesResponse = {
1010
1011
  declare class ListChannelMessages {
1011
1012
  protected _transport: FetchTransport;
1012
1013
  constructor(_transport: FetchTransport);
1013
- send({ id, request }: Options$j): Promise<ky.KyResponse<ListChannelMessagesResponse>>;
1014
+ send({ id, request }: Options$k): Promise<ky.KyResponse<ListChannelMessagesResponse>>;
1014
1015
  }
1015
1016
 
1016
- interface Options$i {
1017
+ interface Options$j {
1017
1018
  id: string;
1018
1019
  request?: RequestInit;
1019
1020
  }
@@ -1039,10 +1040,10 @@ type ListConversationMessagesResponse = {
1039
1040
  declare class ListConversationMessages {
1040
1041
  protected _transport: FetchTransport;
1041
1042
  constructor(_transport: FetchTransport);
1042
- send({ id, request }: Options$i): Promise<ky.KyResponse<ListConversationMessagesResponse>>;
1043
+ send({ id, request }: Options$j): Promise<ky.KyResponse<ListConversationMessagesResponse>>;
1043
1044
  }
1044
1045
 
1045
- interface Options$h {
1046
+ interface Options$i {
1046
1047
  request?: RequestInit;
1047
1048
  }
1048
1049
  type ListMessagesResponse = {
@@ -1067,10 +1068,10 @@ type ListMessagesResponse = {
1067
1068
  declare class ListMessages {
1068
1069
  protected _transport: FetchTransport;
1069
1070
  constructor(_transport: FetchTransport);
1070
- send({ request }?: Options$h): Promise<ky.KyResponse<ListMessagesResponse>>;
1071
+ send({ request }?: Options$i): Promise<ky.KyResponse<ListMessagesResponse>>;
1071
1072
  }
1072
1073
 
1073
- interface Options$g {
1074
+ interface Options$h {
1074
1075
  id: string;
1075
1076
  body: z.infer<typeof CreateCorrectionModel.SCHEMA>;
1076
1077
  request?: RequestInit;
@@ -1092,10 +1093,10 @@ declare class CreateCorrectionModel {
1092
1093
  correction: string;
1093
1094
  }>;
1094
1095
  constructor(_transport: FetchTransport);
1095
- send({ id, body, request }: Options$g): Promise<ky.KyResponse<unknown>>;
1096
+ send({ id, body, request }: Options$h): Promise<ky.KyResponse<unknown>>;
1096
1097
  }
1097
1098
 
1098
- interface Options$f {
1099
+ interface Options$g {
1099
1100
  id: string;
1100
1101
  request?: RequestInit;
1101
1102
  }
@@ -1111,10 +1112,10 @@ type GetModelResponse = {
1111
1112
  declare class GetModel {
1112
1113
  protected _transport: FetchTransport;
1113
1114
  constructor(_transport: FetchTransport);
1114
- send({ id, request }: Options$f): Promise<ky.KyResponse<GetModelResponse>>;
1115
+ send({ id, request }: Options$g): Promise<ky.KyResponse<GetModelResponse>>;
1115
1116
  }
1116
1117
 
1117
- interface Options$e {
1118
+ interface Options$f {
1118
1119
  request?: RequestInit;
1119
1120
  }
1120
1121
  type ListModelsResponse = {
@@ -1129,10 +1130,10 @@ type ListModelsResponse = {
1129
1130
  declare class ListModels {
1130
1131
  protected _transport: FetchTransport;
1131
1132
  constructor(_transport: FetchTransport);
1132
- send({ request }?: Options$e): Promise<ky.KyResponse<ListModelsResponse>>;
1133
+ send({ request }?: Options$f): Promise<ky.KyResponse<ListModelsResponse>>;
1133
1134
  }
1134
1135
 
1135
- interface Options$d {
1136
+ interface Options$e {
1136
1137
  id: string;
1137
1138
  body: z.infer<typeof CreateResponseModel.SCHEMA>;
1138
1139
  request?: RequestInit;
@@ -1157,10 +1158,10 @@ declare class CreateResponseModel {
1157
1158
  role: "user" | "assistant";
1158
1159
  }>, "many">;
1159
1160
  constructor(_transport: FetchTransport);
1160
- send({ id, body, request }: Options$d): Promise<ky.KyResponse<CreateResponseResponse>>;
1161
+ send({ id, body, request }: Options$e): Promise<ky.KyResponse<CreateResponseResponse>>;
1161
1162
  }
1162
1163
 
1163
- interface Options$c {
1164
+ interface Options$d {
1164
1165
  id: string;
1165
1166
  body: z.infer<typeof CreateContactNote.SCHEMA>;
1166
1167
  request?: RequestInit;
@@ -1183,10 +1184,10 @@ declare class CreateContactNote {
1183
1184
  content: string;
1184
1185
  }>;
1185
1186
  constructor(_transport: FetchTransport);
1186
- send({ id, body, request }: Options$c): Promise<ky.KyResponse<CreateContactNoteResponse>>;
1187
+ send({ id, body, request }: Options$d): Promise<ky.KyResponse<CreateContactNoteResponse>>;
1187
1188
  }
1188
1189
 
1189
- interface Options$b {
1190
+ interface Options$c {
1190
1191
  id: string;
1191
1192
  body: z.infer<typeof CreateConversationNote.SCHEMA>;
1192
1193
  request?: RequestInit;
@@ -1209,10 +1210,10 @@ declare class CreateConversationNote {
1209
1210
  content: string;
1210
1211
  }>;
1211
1212
  constructor(_transport: FetchTransport);
1212
- send({ id, body, request }: Options$b): Promise<ky.KyResponse<CreateConversationNoteResponse>>;
1213
+ send({ id, body, request }: Options$c): Promise<ky.KyResponse<CreateConversationNoteResponse>>;
1213
1214
  }
1214
1215
 
1215
- interface Options$a {
1216
+ interface Options$b {
1216
1217
  id: string;
1217
1218
  request?: RequestInit;
1218
1219
  }
@@ -1227,10 +1228,10 @@ type GetNoteResponse = {
1227
1228
  declare class GetNote {
1228
1229
  protected _transport: FetchTransport;
1229
1230
  constructor(_transport: FetchTransport);
1230
- send({ id, request }: Options$a): Promise<ky.KyResponse<GetNoteResponse>>;
1231
+ send({ id, request }: Options$b): Promise<ky.KyResponse<GetNoteResponse>>;
1231
1232
  }
1232
1233
 
1233
- interface Options$9 {
1234
+ interface Options$a {
1234
1235
  id: string;
1235
1236
  request?: RequestInit;
1236
1237
  }
@@ -1245,10 +1246,10 @@ type ListContactNotesResponse = {
1245
1246
  declare class ListContactNotes {
1246
1247
  protected _transport: FetchTransport;
1247
1248
  constructor(_transport: FetchTransport);
1248
- send({ id, request }: Options$9): Promise<ky.KyResponse<ListContactNotesResponse>>;
1249
+ send({ id, request }: Options$a): Promise<ky.KyResponse<ListContactNotesResponse>>;
1249
1250
  }
1250
1251
 
1251
- interface Options$8 {
1252
+ interface Options$9 {
1252
1253
  id: string;
1253
1254
  request?: RequestInit;
1254
1255
  }
@@ -1263,10 +1264,10 @@ type ListConversationNotesResponse = {
1263
1264
  declare class ListConversationNotes {
1264
1265
  protected _transport: FetchTransport;
1265
1266
  constructor(_transport: FetchTransport);
1266
- send({ id, request }: Options$8): Promise<ky.KyResponse<ListConversationNotesResponse>>;
1267
+ send({ id, request }: Options$9): Promise<ky.KyResponse<ListConversationNotesResponse>>;
1267
1268
  }
1268
1269
 
1269
- interface Options$7 {
1270
+ interface Options$8 {
1270
1271
  id: string;
1271
1272
  body: z.infer<typeof UpdateNote.SCHEMA>;
1272
1273
  request?: RequestInit;
@@ -1289,10 +1290,10 @@ declare class UpdateNote {
1289
1290
  content?: string | undefined;
1290
1291
  }>;
1291
1292
  constructor(_transport: FetchTransport);
1292
- send({ id, body, request }: Options$7): Promise<ky.KyResponse<UpdateNoteResponse>>;
1293
+ send({ id, body, request }: Options$8): Promise<ky.KyResponse<UpdateNoteResponse>>;
1293
1294
  }
1294
1295
 
1295
- interface Options$6 {
1296
+ interface Options$7 {
1296
1297
  id: string;
1297
1298
  body: z.infer<typeof CreateContactNotificationSubscription.SCHEMA>;
1298
1299
  request?: RequestInit;
@@ -1335,10 +1336,10 @@ declare class CreateContactNotificationSubscription {
1335
1336
  endpoint: string;
1336
1337
  }>]>;
1337
1338
  constructor(_transport: FetchTransport);
1338
- send({ id, body, request }: Options$6): Promise<ky.KyResponse<CreateContactNotificationSubscriptionResponse>>;
1339
+ send({ id, body, request }: Options$7): Promise<ky.KyResponse<CreateContactNotificationSubscriptionResponse>>;
1339
1340
  }
1340
1341
 
1341
- interface Options$5 {
1342
+ interface Options$6 {
1342
1343
  id: string;
1343
1344
  request?: RequestInit;
1344
1345
  }
@@ -1355,10 +1356,11 @@ type GetSourceResponse = {
1355
1356
  declare class GetSource {
1356
1357
  protected _transport: FetchTransport;
1357
1358
  constructor(_transport: FetchTransport);
1358
- send({ id, request }: Options$5): Promise<ky.KyResponse<GetSourceResponse>>;
1359
+ send({ id, request }: Options$6): Promise<ky.KyResponse<GetSourceResponse>>;
1359
1360
  }
1360
1361
 
1361
- interface Options$4 {
1362
+ interface Options$5 {
1363
+ category?: string | string[];
1362
1364
  request?: RequestInit;
1363
1365
  }
1364
1366
  type ListSourcesResponse = {
@@ -1374,10 +1376,10 @@ type ListSourcesResponse = {
1374
1376
  declare class ListSources {
1375
1377
  protected _transport: FetchTransport;
1376
1378
  constructor(_transport: FetchTransport);
1377
- send({ request }?: Options$4): Promise<ky.KyResponse<ListSourcesResponse>>;
1379
+ send({ category, request }?: Options$5): Promise<ky.KyResponse<ListSourcesResponse>>;
1378
1380
  }
1379
1381
 
1380
- interface Options$3 {
1382
+ interface Options$4 {
1381
1383
  account: string;
1382
1384
  files: File[];
1383
1385
  request?: RequestInit;
@@ -1395,7 +1397,18 @@ type CreateUploadResponse = {
1395
1397
  declare class CreateUpload {
1396
1398
  protected _transport: FetchTransport;
1397
1399
  constructor(_transport: FetchTransport);
1398
- send({ account, files, request }: Options$3): Promise<ky.KyResponse<CreateUploadResponse>>;
1400
+ send({ account, files, request }: Options$4): Promise<ky.KyResponse<CreateUploadResponse>>;
1401
+ }
1402
+
1403
+ interface Options$3 {
1404
+ id: string;
1405
+ request?: RequestInit;
1406
+ }
1407
+ type DeleteUploadResponse = Record<string, never>;
1408
+ declare class DeleteUpload {
1409
+ protected _transport: FetchTransport;
1410
+ constructor(_transport: FetchTransport);
1411
+ send({ id, request }: Options$3): Promise<ky.KyResponse<DeleteUploadResponse>>;
1399
1412
  }
1400
1413
 
1401
1414
  interface Options$2 {
@@ -1622,8 +1635,9 @@ declare class Client {
1622
1635
  get upload(): {
1623
1636
  get: GetUpload;
1624
1637
  create: CreateUpload;
1638
+ delete: DeleteUpload;
1625
1639
  };
1626
1640
  get webhook(): Webhook;
1627
1641
  }
1628
1642
 
1629
- export { type Authentication as A, type ListConversationMessagesResponse as B, Client as C, type DeleteLabelResponse as D, type ListMessagesResponse as E, type ListChannelMessagesResponse as F, type GetBoilerplateResponse as G, type GetModelResponse as H, type ListModelsResponse as I, type CreateCorrectionResponse as J, type CreateResponseResponse as K, type ListActionsResponse as L, type CreateContactNoteResponse as M, type CreateConversationNoteResponse as N, type Options as O, type GetNoteResponse as P, type ListContactNotesResponse as Q, type RequestFilterable as R, type ListConversationNotesResponse as S, type UpdateNoteResponse as T, type UpdateBoilerplateResponse as U, type GetSourceResponse as V, type WebhookResponse as W, type ListSourcesResponse as X, type CreateContactNotificationSubscriptionResponse as Y, type CreateUploadResponse as Z, type GetUploadResponse as _, type Options$P as a, type CreateBoilerplateCategoryBoilerplateResponse as b, type ListBoilerplateCategoryBoilerplatesResponse as c, type ListBoilerplatesResponse as d, type CreateBoilerplateCategoryResponse as e, type GetBoilerplateCategoryResponse as f, type ListBoilerplateCategoriesResponse as g, type UpdateBoilerplateCategoryResponse as h, type ListChannelsResponse as i, type GetChannelResponse as j, type UpdateChannelResponse as k, type CreateChannelResponse as l, type CreateContactResponse as m, type GetContactResponse as n, type ListContactsResponse as o, type ListLabelContactsResponse as p, type UpdateContactResponse as q, type GetConversationResponse as r, type ListConversationsResponse as s, type ListLabelConversationsResponse as t, type UpdateConversationResponse as u, type ListContactConversationsResponse as v, type CreateLabelResponse as w, type GetLabelResponse as x, type ListLabelsResponse as y, type UpdateLabelResponse as z };
1643
+ export { type DeleteUploadResponse as $, type Authentication as A, type ListConversationMessagesResponse as B, Client as C, type DeleteLabelResponse as D, type ListMessagesResponse as E, type ListChannelMessagesResponse as F, type GetBoilerplateResponse as G, type GetModelResponse as H, type ListModelsResponse as I, type CreateCorrectionResponse as J, type CreateResponseResponse as K, type ListActionsResponse as L, type CreateContactNoteResponse as M, type CreateConversationNoteResponse as N, type Options as O, type GetNoteResponse as P, type ListContactNotesResponse as Q, type RequestFilterable as R, type ListConversationNotesResponse as S, type UpdateNoteResponse as T, type UpdateBoilerplateResponse as U, type GetSourceResponse as V, type WebhookResponse as W, type ListSourcesResponse as X, type CreateContactNotificationSubscriptionResponse as Y, type CreateUploadResponse as Z, type GetUploadResponse as _, type Options$Q as a, type CreateBoilerplateCategoryBoilerplateResponse as b, type ListBoilerplateCategoryBoilerplatesResponse as c, type ListBoilerplatesResponse as d, type CreateBoilerplateCategoryResponse as e, type GetBoilerplateCategoryResponse as f, type ListBoilerplateCategoriesResponse as g, type UpdateBoilerplateCategoryResponse as h, type ListChannelsResponse as i, type GetChannelResponse as j, type UpdateChannelResponse as k, type CreateChannelResponse as l, type CreateContactResponse as m, type GetContactResponse as n, type ListContactsResponse as o, type ListLabelContactsResponse as p, type UpdateContactResponse as q, type GetConversationResponse as r, type ListConversationsResponse as s, type ListLabelConversationsResponse as t, type UpdateConversationResponse as u, type ListContactConversationsResponse as v, type CreateLabelResponse as w, type GetLabelResponse as x, type ListLabelsResponse as y, type UpdateLabelResponse as z };