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