@great-detail/support-sdk 0.4.6 → 0.4.7
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/{chunk-OXJTX6H4.js → chunk-K37WTNB5.js} +1 -1
- package/dist/{chunk-HN3EOCB3.js → chunk-WMMLOVBE.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-BLy-LH3e.d.cts → index-DNJOlCyr.d.cts} +111 -90
- package/dist/{index-BLy-LH3e.d.ts → index-DNJOlCyr.d.ts} +111 -90
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -29,28 +29,28 @@ interface RequestFilterable {
|
|
|
29
29
|
* @see https://greatdetail.com
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
interface Options$
|
|
32
|
+
interface Options$L {
|
|
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$
|
|
39
|
+
interface InputOptions extends Options$L {
|
|
40
40
|
baseURL: string;
|
|
41
41
|
}
|
|
42
|
-
interface Options$
|
|
42
|
+
interface Options$K extends Options$L {
|
|
43
43
|
baseURL: string;
|
|
44
44
|
}
|
|
45
45
|
declare class FetchTransport implements Transport {
|
|
46
46
|
client: KyInstance;
|
|
47
|
-
options: Options$
|
|
47
|
+
options: Options$K;
|
|
48
48
|
constructor({ baseURL, ...options }: InputOptions);
|
|
49
49
|
getURL(url: string): string;
|
|
50
50
|
send<T = unknown>(url: string, request: RequestInit): Promise<ky.KyResponse<T>>;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
interface Options$
|
|
53
|
+
interface Options$J {
|
|
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$
|
|
73
|
+
send({ request }?: Options$J): 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$
|
|
87
|
+
interface Options$I {
|
|
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$
|
|
118
|
+
send({ id, body, request }: Options$I): Promise<ky.KyResponse<CreateBoilerplateCategoryBoilerplateResponse>>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
interface Options$
|
|
121
|
+
interface Options$H {
|
|
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$
|
|
139
|
+
send({ id, request }: Options$H): Promise<ky.KyResponse<GetBoilerplateResponse>>;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
interface Options$
|
|
142
|
+
interface Options$G {
|
|
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$
|
|
149
|
+
send({ id, request }: Options$G): 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$
|
|
163
|
+
interface Options$F {
|
|
164
164
|
request?: RequestInit;
|
|
165
165
|
}
|
|
166
166
|
type ListBoilerplatesResponse = {
|
|
@@ -177,10 +177,10 @@ type ListBoilerplatesResponse = {
|
|
|
177
177
|
declare class ListBoilerplates {
|
|
178
178
|
protected _transport: FetchTransport;
|
|
179
179
|
constructor(_transport: FetchTransport);
|
|
180
|
-
send({ request }?: Options$
|
|
180
|
+
send({ request }?: Options$F): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
interface Options$
|
|
183
|
+
interface Options$E {
|
|
184
184
|
id: string;
|
|
185
185
|
body: z.infer<typeof UpdateBoilerplate.SCHEMA>;
|
|
186
186
|
request?: RequestInit;
|
|
@@ -209,10 +209,10 @@ declare class UpdateBoilerplate {
|
|
|
209
209
|
content?: string | undefined;
|
|
210
210
|
}>;
|
|
211
211
|
constructor(_transport: FetchTransport);
|
|
212
|
-
send({ id, body, request }: Options$
|
|
212
|
+
send({ id, body, request }: Options$E): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
interface Options$
|
|
215
|
+
interface Options$D {
|
|
216
216
|
body: z.infer<typeof CreateBoilerplateCategory.SCHEMA>;
|
|
217
217
|
request?: RequestInit;
|
|
218
218
|
}
|
|
@@ -242,10 +242,10 @@ declare class CreateBoilerplateCategory {
|
|
|
242
242
|
description?: string | undefined;
|
|
243
243
|
}>;
|
|
244
244
|
constructor(_transport: FetchTransport);
|
|
245
|
-
send({ body, request }: Options$
|
|
245
|
+
send({ body, request }: Options$D): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
interface Options$
|
|
248
|
+
interface Options$C {
|
|
249
249
|
id: string;
|
|
250
250
|
request?: RequestInit;
|
|
251
251
|
}
|
|
@@ -262,10 +262,10 @@ type GetBoilerplateCategoryResponse = {
|
|
|
262
262
|
declare class GetBoilerplateCategory {
|
|
263
263
|
protected _transport: FetchTransport;
|
|
264
264
|
constructor(_transport: FetchTransport);
|
|
265
|
-
send({ id, request }: Options$
|
|
265
|
+
send({ id, request }: Options$C): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
interface Options$
|
|
268
|
+
interface Options$B {
|
|
269
269
|
request?: RequestInit;
|
|
270
270
|
}
|
|
271
271
|
type ListBoilerplateCategoriesResponse = {
|
|
@@ -281,10 +281,10 @@ type ListBoilerplateCategoriesResponse = {
|
|
|
281
281
|
declare class ListBoilerplateCategories {
|
|
282
282
|
protected _transport: FetchTransport;
|
|
283
283
|
constructor(_transport: FetchTransport);
|
|
284
|
-
send({ request }?: Options$
|
|
284
|
+
send({ request }?: Options$B): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse>>;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
interface Options$
|
|
287
|
+
interface Options$A {
|
|
288
288
|
id: string;
|
|
289
289
|
body: z.infer<typeof UpdateBoilerplateCategory.SCHEMA>;
|
|
290
290
|
request?: RequestInit;
|
|
@@ -312,10 +312,10 @@ declare class UpdateBoilerplateCategory {
|
|
|
312
312
|
description?: string | undefined;
|
|
313
313
|
}>;
|
|
314
314
|
constructor(_transport: FetchTransport);
|
|
315
|
-
send({ id, body, request }: Options$
|
|
315
|
+
send({ id, body, request }: Options$A): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
interface Options$
|
|
318
|
+
interface Options$z {
|
|
319
319
|
request?: RequestInit;
|
|
320
320
|
}
|
|
321
321
|
type ListChannelsResponse = {
|
|
@@ -345,7 +345,7 @@ type ListChannelsResponse = {
|
|
|
345
345
|
declare class ListChannels {
|
|
346
346
|
protected _transport: FetchTransport;
|
|
347
347
|
constructor(_transport: FetchTransport);
|
|
348
|
-
send({ request }?: Options$
|
|
348
|
+
send({ request }?: Options$z): Promise<ky.KyResponse<ListChannelsResponse>>;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/**
|
|
@@ -357,7 +357,7 @@ declare class ListChannels {
|
|
|
357
357
|
* @see https://greatdetail.com
|
|
358
358
|
*/
|
|
359
359
|
|
|
360
|
-
interface Options$
|
|
360
|
+
interface Options$y {
|
|
361
361
|
id: string;
|
|
362
362
|
vcf?: {
|
|
363
363
|
variant?: "vcard";
|
|
@@ -370,11 +370,11 @@ interface Options$x {
|
|
|
370
370
|
declare class GetContactVCFURL {
|
|
371
371
|
protected _transport: FetchTransport;
|
|
372
372
|
constructor(_transport: FetchTransport);
|
|
373
|
-
getRelativeURL({ id, vcf }: Options$
|
|
374
|
-
getURL(options: Options$
|
|
373
|
+
getRelativeURL({ id, vcf }: Options$y): string;
|
|
374
|
+
getURL(options: Options$y): string;
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
interface Options$
|
|
377
|
+
interface Options$x {
|
|
378
378
|
body: z.infer<typeof CreateContact.SCHEMA>;
|
|
379
379
|
request?: RequestInit;
|
|
380
380
|
}
|
|
@@ -408,10 +408,10 @@ declare class CreateContact {
|
|
|
408
408
|
telephoneNumber?: string | undefined;
|
|
409
409
|
}>;
|
|
410
410
|
constructor(_transport: FetchTransport);
|
|
411
|
-
send({ body, request }: Options$
|
|
411
|
+
send({ body, request }: Options$x): Promise<ky.KyResponse<CreateContactResponse>>;
|
|
412
412
|
}
|
|
413
413
|
|
|
414
|
-
interface Options$
|
|
414
|
+
interface Options$w {
|
|
415
415
|
id: string;
|
|
416
416
|
request?: RequestInit;
|
|
417
417
|
}
|
|
@@ -429,10 +429,10 @@ type GetContactResponse = {
|
|
|
429
429
|
declare class GetContact {
|
|
430
430
|
protected _transport: FetchTransport;
|
|
431
431
|
constructor(_transport: FetchTransport);
|
|
432
|
-
send({ id, request }: Options$
|
|
432
|
+
send({ id, request }: Options$w): Promise<ky.KyResponse<GetContactResponse>>;
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
interface Options$
|
|
435
|
+
interface Options$v {
|
|
436
436
|
request?: RequestInit;
|
|
437
437
|
}
|
|
438
438
|
type ListContactsResponse = {
|
|
@@ -449,10 +449,10 @@ type ListContactsResponse = {
|
|
|
449
449
|
declare class ListContacts {
|
|
450
450
|
protected _transport: FetchTransport;
|
|
451
451
|
constructor(_transport: FetchTransport);
|
|
452
|
-
send({ request }?: Options$
|
|
452
|
+
send({ request }?: Options$v): Promise<ky.KyResponse<ListContactsResponse>>;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
-
interface Options$
|
|
455
|
+
interface Options$u {
|
|
456
456
|
id: string;
|
|
457
457
|
request?: RequestInit;
|
|
458
458
|
}
|
|
@@ -470,10 +470,10 @@ type ListLabelContactsResponse = {
|
|
|
470
470
|
declare class ListLabelContacts {
|
|
471
471
|
protected _transport: FetchTransport;
|
|
472
472
|
constructor(_transport: FetchTransport);
|
|
473
|
-
send({ id, request }: Options$
|
|
473
|
+
send({ id, request }: Options$u): Promise<ky.KyResponse<ListLabelContactsResponse>>;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
|
-
interface Options$
|
|
476
|
+
interface Options$t {
|
|
477
477
|
id: string;
|
|
478
478
|
body: z.infer<typeof UpdateContact.SCHEMA>;
|
|
479
479
|
request?: RequestInit;
|
|
@@ -505,10 +505,10 @@ declare class UpdateContact {
|
|
|
505
505
|
telephoneNumber?: string | undefined;
|
|
506
506
|
}>;
|
|
507
507
|
constructor(_transport: FetchTransport);
|
|
508
|
-
send({ id, body, request }: Options$
|
|
508
|
+
send({ id, body, request }: Options$t): Promise<ky.KyResponse<UpdateContactResponse>>;
|
|
509
509
|
}
|
|
510
510
|
|
|
511
|
-
interface Options$
|
|
511
|
+
interface Options$s {
|
|
512
512
|
id: string;
|
|
513
513
|
request?: RequestInit;
|
|
514
514
|
}
|
|
@@ -526,10 +526,10 @@ type GetConversationResponse = {
|
|
|
526
526
|
declare class GetConversation {
|
|
527
527
|
protected _transport: FetchTransport;
|
|
528
528
|
constructor(_transport: FetchTransport);
|
|
529
|
-
send({ id, request }: Options$
|
|
529
|
+
send({ id, request }: Options$s): Promise<ky.KyResponse<GetConversationResponse>>;
|
|
530
530
|
}
|
|
531
531
|
|
|
532
|
-
interface Options$
|
|
532
|
+
interface Options$r {
|
|
533
533
|
id: string;
|
|
534
534
|
request?: RequestInit;
|
|
535
535
|
}
|
|
@@ -547,10 +547,10 @@ type ListContactConversationsResponse = {
|
|
|
547
547
|
declare class ListContactConversations {
|
|
548
548
|
protected _transport: FetchTransport;
|
|
549
549
|
constructor(_transport: FetchTransport);
|
|
550
|
-
send({ id, request }: Options$
|
|
550
|
+
send({ id, request }: Options$r): Promise<ky.KyResponse<ListContactConversationsResponse>>;
|
|
551
551
|
}
|
|
552
552
|
|
|
553
|
-
interface Options$
|
|
553
|
+
interface Options$q {
|
|
554
554
|
request?: RequestInit;
|
|
555
555
|
}
|
|
556
556
|
type ListConversationsResponse = {
|
|
@@ -567,10 +567,10 @@ type ListConversationsResponse = {
|
|
|
567
567
|
declare class ListConversations {
|
|
568
568
|
protected _transport: FetchTransport;
|
|
569
569
|
constructor(_transport: FetchTransport);
|
|
570
|
-
send({ request }?: Options$
|
|
570
|
+
send({ request }?: Options$q): Promise<ky.KyResponse<ListConversationsResponse>>;
|
|
571
571
|
}
|
|
572
572
|
|
|
573
|
-
interface Options$
|
|
573
|
+
interface Options$p {
|
|
574
574
|
id: string;
|
|
575
575
|
request?: RequestInit;
|
|
576
576
|
}
|
|
@@ -588,10 +588,10 @@ type ListLabelConversationsResponse = {
|
|
|
588
588
|
declare class ListLabelConversations {
|
|
589
589
|
protected _transport: FetchTransport;
|
|
590
590
|
constructor(_transport: FetchTransport);
|
|
591
|
-
send({ id, request }: Options$
|
|
591
|
+
send({ id, request }: Options$p): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
|
|
592
592
|
}
|
|
593
593
|
|
|
594
|
-
interface Options$
|
|
594
|
+
interface Options$o {
|
|
595
595
|
id: string;
|
|
596
596
|
body: z.infer<typeof UpdateConversation.SCHEMA>;
|
|
597
597
|
request?: RequestInit;
|
|
@@ -620,10 +620,10 @@ declare class UpdateConversation {
|
|
|
620
620
|
hasEnded?: boolean | undefined;
|
|
621
621
|
}>;
|
|
622
622
|
constructor(_transport: FetchTransport);
|
|
623
|
-
send({ id, body, request }: Options$
|
|
623
|
+
send({ id, body, request }: Options$o): Promise<ky.KyResponse<UpdateConversationResponse>>;
|
|
624
624
|
}
|
|
625
625
|
|
|
626
|
-
interface Options$
|
|
626
|
+
interface Options$n {
|
|
627
627
|
body: z.infer<typeof CreateLabel.SCHEMA>;
|
|
628
628
|
request?: RequestInit;
|
|
629
629
|
}
|
|
@@ -653,10 +653,10 @@ declare class CreateLabel {
|
|
|
653
653
|
description?: string | undefined;
|
|
654
654
|
}>;
|
|
655
655
|
constructor(_transport: FetchTransport);
|
|
656
|
-
send({ body, request }: Options$
|
|
656
|
+
send({ body, request }: Options$n): Promise<ky.KyResponse<CreateLabelResponse>>;
|
|
657
657
|
}
|
|
658
658
|
|
|
659
|
-
interface Options$
|
|
659
|
+
interface Options$m {
|
|
660
660
|
id: string;
|
|
661
661
|
request?: RequestInit;
|
|
662
662
|
}
|
|
@@ -664,10 +664,10 @@ type DeleteLabelResponse = Record<string, never>;
|
|
|
664
664
|
declare class DeleteLabel {
|
|
665
665
|
protected _transport: FetchTransport;
|
|
666
666
|
constructor(_transport: FetchTransport);
|
|
667
|
-
send({ id, request }: Options$
|
|
667
|
+
send({ id, request }: Options$m): Promise<ky.KyResponse<DeleteLabelResponse>>;
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
interface Options$
|
|
670
|
+
interface Options$l {
|
|
671
671
|
id: string;
|
|
672
672
|
request?: RequestInit;
|
|
673
673
|
}
|
|
@@ -684,10 +684,10 @@ type GetLabelResponse = {
|
|
|
684
684
|
declare class GetLabel {
|
|
685
685
|
protected _transport: FetchTransport;
|
|
686
686
|
constructor(_transport: FetchTransport);
|
|
687
|
-
send({ id, request }: Options$
|
|
687
|
+
send({ id, request }: Options$l): Promise<ky.KyResponse<GetLabelResponse>>;
|
|
688
688
|
}
|
|
689
689
|
|
|
690
|
-
interface Options$
|
|
690
|
+
interface Options$k {
|
|
691
691
|
request?: RequestInit;
|
|
692
692
|
}
|
|
693
693
|
type ListLabelsResponse = {
|
|
@@ -703,10 +703,10 @@ type ListLabelsResponse = {
|
|
|
703
703
|
declare class ListLabels {
|
|
704
704
|
protected _transport: FetchTransport;
|
|
705
705
|
constructor(_transport: FetchTransport);
|
|
706
|
-
send({ request }?: Options$
|
|
706
|
+
send({ request }?: Options$k): Promise<ky.KyResponse<ListLabelsResponse>>;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
|
-
interface Options$
|
|
709
|
+
interface Options$j {
|
|
710
710
|
id: string;
|
|
711
711
|
body: z.infer<typeof UpdateLabel.SCHEMA>;
|
|
712
712
|
request?: RequestInit;
|
|
@@ -734,10 +734,10 @@ declare class UpdateLabel {
|
|
|
734
734
|
description?: string | undefined;
|
|
735
735
|
}>;
|
|
736
736
|
constructor(_transport: FetchTransport);
|
|
737
|
-
send({ id, body, request }: Options$
|
|
737
|
+
send({ id, body, request }: Options$j): Promise<ky.KyResponse<UpdateLabelResponse>>;
|
|
738
738
|
}
|
|
739
739
|
|
|
740
|
-
interface Options$
|
|
740
|
+
interface Options$i {
|
|
741
741
|
id: string;
|
|
742
742
|
request?: RequestInit;
|
|
743
743
|
}
|
|
@@ -763,10 +763,10 @@ type ListConversationMessagesResponse = {
|
|
|
763
763
|
declare class ListConversationMessages {
|
|
764
764
|
protected _transport: FetchTransport;
|
|
765
765
|
constructor(_transport: FetchTransport);
|
|
766
|
-
send({ id, request }: Options$
|
|
766
|
+
send({ id, request }: Options$i): Promise<ky.KyResponse<ListConversationMessagesResponse>>;
|
|
767
767
|
}
|
|
768
768
|
|
|
769
|
-
interface Options$
|
|
769
|
+
interface Options$h {
|
|
770
770
|
request?: RequestInit;
|
|
771
771
|
}
|
|
772
772
|
type ListMessagesResponse = {
|
|
@@ -791,10 +791,10 @@ type ListMessagesResponse = {
|
|
|
791
791
|
declare class ListMessages {
|
|
792
792
|
protected _transport: FetchTransport;
|
|
793
793
|
constructor(_transport: FetchTransport);
|
|
794
|
-
send({ request }?: Options$
|
|
794
|
+
send({ request }?: Options$h): Promise<ky.KyResponse<ListMessagesResponse>>;
|
|
795
795
|
}
|
|
796
796
|
|
|
797
|
-
interface Options$
|
|
797
|
+
interface Options$g {
|
|
798
798
|
id: string;
|
|
799
799
|
body: z.infer<typeof CreateCorrectionModel.SCHEMA>;
|
|
800
800
|
request?: RequestInit;
|
|
@@ -816,10 +816,10 @@ declare class CreateCorrectionModel {
|
|
|
816
816
|
correction: string;
|
|
817
817
|
}>;
|
|
818
818
|
constructor(_transport: FetchTransport);
|
|
819
|
-
send({ id, body, request }: Options$
|
|
819
|
+
send({ id, body, request }: Options$g): Promise<ky.KyResponse<unknown>>;
|
|
820
820
|
}
|
|
821
821
|
|
|
822
|
-
interface Options$
|
|
822
|
+
interface Options$f {
|
|
823
823
|
id: string;
|
|
824
824
|
request?: RequestInit;
|
|
825
825
|
}
|
|
@@ -835,10 +835,10 @@ type GetModelResponse = {
|
|
|
835
835
|
declare class GetModel {
|
|
836
836
|
protected _transport: FetchTransport;
|
|
837
837
|
constructor(_transport: FetchTransport);
|
|
838
|
-
send({ id, request }: Options$
|
|
838
|
+
send({ id, request }: Options$f): Promise<ky.KyResponse<GetModelResponse>>;
|
|
839
839
|
}
|
|
840
840
|
|
|
841
|
-
interface Options$
|
|
841
|
+
interface Options$e {
|
|
842
842
|
request?: RequestInit;
|
|
843
843
|
}
|
|
844
844
|
type ListModelsResponse = {
|
|
@@ -853,10 +853,10 @@ type ListModelsResponse = {
|
|
|
853
853
|
declare class ListModels {
|
|
854
854
|
protected _transport: FetchTransport;
|
|
855
855
|
constructor(_transport: FetchTransport);
|
|
856
|
-
send({ request }?: Options$
|
|
856
|
+
send({ request }?: Options$e): Promise<ky.KyResponse<ListModelsResponse>>;
|
|
857
857
|
}
|
|
858
858
|
|
|
859
|
-
interface Options$
|
|
859
|
+
interface Options$d {
|
|
860
860
|
id: string;
|
|
861
861
|
body: z.infer<typeof CreateResponseModel.SCHEMA>;
|
|
862
862
|
request?: RequestInit;
|
|
@@ -881,10 +881,10 @@ declare class CreateResponseModel {
|
|
|
881
881
|
role: "user" | "assistant";
|
|
882
882
|
}>, "many">;
|
|
883
883
|
constructor(_transport: FetchTransport);
|
|
884
|
-
send({ id, body, request }: Options$
|
|
884
|
+
send({ id, body, request }: Options$d): Promise<ky.KyResponse<CreateResponseResponse>>;
|
|
885
885
|
}
|
|
886
886
|
|
|
887
|
-
interface Options$
|
|
887
|
+
interface Options$c {
|
|
888
888
|
id: string;
|
|
889
889
|
body: z.infer<typeof CreateContactNote.SCHEMA>;
|
|
890
890
|
request?: RequestInit;
|
|
@@ -907,10 +907,10 @@ declare class CreateContactNote {
|
|
|
907
907
|
content: string;
|
|
908
908
|
}>;
|
|
909
909
|
constructor(_transport: FetchTransport);
|
|
910
|
-
send({ id, body, request }: Options$
|
|
910
|
+
send({ id, body, request }: Options$c): Promise<ky.KyResponse<CreateContactNoteResponse>>;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
-
interface Options$
|
|
913
|
+
interface Options$b {
|
|
914
914
|
id: string;
|
|
915
915
|
body: z.infer<typeof CreateConversationNote.SCHEMA>;
|
|
916
916
|
request?: RequestInit;
|
|
@@ -933,10 +933,10 @@ declare class CreateConversationNote {
|
|
|
933
933
|
content: string;
|
|
934
934
|
}>;
|
|
935
935
|
constructor(_transport: FetchTransport);
|
|
936
|
-
send({ id, body, request }: Options$
|
|
936
|
+
send({ id, body, request }: Options$b): Promise<ky.KyResponse<CreateConversationNoteResponse>>;
|
|
937
937
|
}
|
|
938
938
|
|
|
939
|
-
interface Options$
|
|
939
|
+
interface Options$a {
|
|
940
940
|
id: string;
|
|
941
941
|
request?: RequestInit;
|
|
942
942
|
}
|
|
@@ -951,10 +951,10 @@ type GetNoteResponse = {
|
|
|
951
951
|
declare class GetNote {
|
|
952
952
|
protected _transport: FetchTransport;
|
|
953
953
|
constructor(_transport: FetchTransport);
|
|
954
|
-
send({ id, request }: Options$
|
|
954
|
+
send({ id, request }: Options$a): Promise<ky.KyResponse<GetNoteResponse>>;
|
|
955
955
|
}
|
|
956
956
|
|
|
957
|
-
interface Options$
|
|
957
|
+
interface Options$9 {
|
|
958
958
|
id: string;
|
|
959
959
|
request?: RequestInit;
|
|
960
960
|
}
|
|
@@ -969,10 +969,10 @@ type ListContactNotesResponse = {
|
|
|
969
969
|
declare class ListContactNotes {
|
|
970
970
|
protected _transport: FetchTransport;
|
|
971
971
|
constructor(_transport: FetchTransport);
|
|
972
|
-
send({ id, request }: Options$
|
|
972
|
+
send({ id, request }: Options$9): Promise<ky.KyResponse<ListContactNotesResponse>>;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
interface Options$
|
|
975
|
+
interface Options$8 {
|
|
976
976
|
id: string;
|
|
977
977
|
request?: RequestInit;
|
|
978
978
|
}
|
|
@@ -987,10 +987,10 @@ type ListConversationNotesResponse = {
|
|
|
987
987
|
declare class ListConversationNotes {
|
|
988
988
|
protected _transport: FetchTransport;
|
|
989
989
|
constructor(_transport: FetchTransport);
|
|
990
|
-
send({ id, request }: Options$
|
|
990
|
+
send({ id, request }: Options$8): Promise<ky.KyResponse<ListConversationNotesResponse>>;
|
|
991
991
|
}
|
|
992
992
|
|
|
993
|
-
interface Options$
|
|
993
|
+
interface Options$7 {
|
|
994
994
|
id: string;
|
|
995
995
|
body: z.infer<typeof UpdateNote.SCHEMA>;
|
|
996
996
|
request?: RequestInit;
|
|
@@ -1013,10 +1013,10 @@ declare class UpdateNote {
|
|
|
1013
1013
|
content?: string | undefined;
|
|
1014
1014
|
}>;
|
|
1015
1015
|
constructor(_transport: FetchTransport);
|
|
1016
|
-
send({ id, body, request }: Options$
|
|
1016
|
+
send({ id, body, request }: Options$7): Promise<ky.KyResponse<UpdateNoteResponse>>;
|
|
1017
1017
|
}
|
|
1018
1018
|
|
|
1019
|
-
interface Options$
|
|
1019
|
+
interface Options$6 {
|
|
1020
1020
|
id: string;
|
|
1021
1021
|
body: z.infer<typeof CreateContactNotificationSubscription.SCHEMA>;
|
|
1022
1022
|
request?: RequestInit;
|
|
@@ -1059,10 +1059,10 @@ declare class CreateContactNotificationSubscription {
|
|
|
1059
1059
|
endpoint: string;
|
|
1060
1060
|
}>]>;
|
|
1061
1061
|
constructor(_transport: FetchTransport);
|
|
1062
|
-
send({ id, body, request }: Options$
|
|
1062
|
+
send({ id, body, request }: Options$6): Promise<ky.KyResponse<CreateContactNotificationSubscriptionResponse>>;
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
|
-
interface Options$
|
|
1065
|
+
interface Options$5 {
|
|
1066
1066
|
id: string;
|
|
1067
1067
|
request?: RequestInit;
|
|
1068
1068
|
}
|
|
@@ -1079,10 +1079,10 @@ type GetSourceResponse = {
|
|
|
1079
1079
|
declare class GetSource {
|
|
1080
1080
|
protected _transport: FetchTransport;
|
|
1081
1081
|
constructor(_transport: FetchTransport);
|
|
1082
|
-
send({ id, request }: Options$
|
|
1082
|
+
send({ id, request }: Options$5): Promise<ky.KyResponse<GetSourceResponse>>;
|
|
1083
1083
|
}
|
|
1084
1084
|
|
|
1085
|
-
interface Options$
|
|
1085
|
+
interface Options$4 {
|
|
1086
1086
|
request?: RequestInit;
|
|
1087
1087
|
}
|
|
1088
1088
|
type ListSourcesResponse = {
|
|
@@ -1098,7 +1098,27 @@ type ListSourcesResponse = {
|
|
|
1098
1098
|
declare class ListSources {
|
|
1099
1099
|
protected _transport: FetchTransport;
|
|
1100
1100
|
constructor(_transport: FetchTransport);
|
|
1101
|
-
send({ request }?: Options$
|
|
1101
|
+
send({ request }?: Options$4): Promise<ky.KyResponse<ListSourcesResponse>>;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
interface Options$3 {
|
|
1105
|
+
files: File[];
|
|
1106
|
+
request?: RequestInit;
|
|
1107
|
+
}
|
|
1108
|
+
type CreateUploadResponse = {
|
|
1109
|
+
upload: {
|
|
1110
|
+
id: string;
|
|
1111
|
+
name: string;
|
|
1112
|
+
alternativeName?: string;
|
|
1113
|
+
contentSize: number;
|
|
1114
|
+
encodingFormat: string;
|
|
1115
|
+
sha256: string;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
declare class CreateUpload {
|
|
1119
|
+
protected _transport: FetchTransport;
|
|
1120
|
+
constructor(_transport: FetchTransport);
|
|
1121
|
+
send({ files, request }: Options$3): Promise<ky.KyResponse<CreateUploadResponse>>;
|
|
1102
1122
|
}
|
|
1103
1123
|
|
|
1104
1124
|
interface Options$2 {
|
|
@@ -1318,8 +1338,9 @@ declare class Client {
|
|
|
1318
1338
|
};
|
|
1319
1339
|
get upload(): {
|
|
1320
1340
|
get: GetUpload;
|
|
1341
|
+
create: CreateUpload;
|
|
1321
1342
|
};
|
|
1322
1343
|
get webhook(): Webhook;
|
|
1323
1344
|
}
|
|
1324
1345
|
|
|
1325
|
-
export { type Authentication as A, type ListModelsResponse as B, Client as C, type DeleteLabelResponse as D, type CreateCorrectionResponse as E, type CreateResponseResponse as F, type GetBoilerplateResponse as G, type CreateContactNoteResponse as H, type CreateConversationNoteResponse as I, type GetNoteResponse as J, type ListContactNotesResponse as K, type ListActionsResponse as L, type ListConversationNotesResponse as M, type UpdateNoteResponse as N, type Options as O, type GetSourceResponse as P, type ListSourcesResponse as Q, type RequestFilterable as R, type CreateContactNotificationSubscriptionResponse as S, type
|
|
1346
|
+
export { type Authentication as A, type ListModelsResponse as B, Client as C, type DeleteLabelResponse as D, type CreateCorrectionResponse as E, type CreateResponseResponse as F, type GetBoilerplateResponse as G, type CreateContactNoteResponse as H, type CreateConversationNoteResponse as I, type GetNoteResponse as J, type ListContactNotesResponse as K, type ListActionsResponse as L, type ListConversationNotesResponse as M, type UpdateNoteResponse as N, type Options as O, type GetSourceResponse as P, type ListSourcesResponse as Q, type RequestFilterable as R, type CreateContactNotificationSubscriptionResponse as S, type CreateUploadResponse as T, type UpdateBoilerplateResponse as U, type GetUploadResponse as V, type WebhookResponse as W, type Options$L 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 CreateContactResponse as j, type GetContactResponse as k, type ListContactsResponse as l, type ListLabelContactsResponse as m, type UpdateContactResponse as n, type GetConversationResponse as o, type ListConversationsResponse as p, type ListLabelConversationsResponse as q, type UpdateConversationResponse as r, type ListContactConversationsResponse as s, type CreateLabelResponse as t, type GetLabelResponse as u, type ListLabelsResponse as v, type UpdateLabelResponse as w, type ListConversationMessagesResponse as x, type ListMessagesResponse as y, type GetModelResponse as z };
|