@great-detail/support-sdk 0.8.4 → 0.9.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.
- package/dist/{chunk-ZMYYH7TB.js → chunk-BOCGRHOZ.js} +1 -1
- package/dist/{chunk-THIMBTIM.js → chunk-IVXUGJZY.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-DzdOjQt9.d.cts → index-DFWQUSkc.d.cts} +118 -118
- package/dist/{index-DzdOjQt9.d.ts → index-DFWQUSkc.d.ts} +118 -118
- 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 +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as ky from 'ky';
|
|
2
|
-
import { KyInstance, Options as Options$
|
|
2
|
+
import { KyInstance, Options as Options$4 } from 'ky';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -29,29 +29,29 @@ interface RequestFilterable {
|
|
|
29
29
|
* @see https://greatdetail.com
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
interface Options$
|
|
32
|
+
interface Options$3 {
|
|
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$3 {
|
|
40
40
|
baseURL: string;
|
|
41
41
|
}
|
|
42
|
-
interface Options$
|
|
42
|
+
interface Options$2 extends Options$3 {
|
|
43
43
|
baseURL: string;
|
|
44
44
|
}
|
|
45
45
|
declare class FetchTransport implements Transport {
|
|
46
46
|
client: KyInstance;
|
|
47
|
-
options: Options$
|
|
47
|
+
options: Options$2;
|
|
48
48
|
constructor({ baseURL, ...options }: InputOptions);
|
|
49
49
|
getURL(url: string): string;
|
|
50
50
|
includeQuery(include: {
|
|
51
51
|
[included: string]: boolean | undefined;
|
|
52
52
|
}): [string, string][];
|
|
53
53
|
queryQuery(input?: string): [string, string][];
|
|
54
|
-
send<T = unknown>(url: string, request: Options$
|
|
54
|
+
send<T = unknown>(url: string, request: Options$4): Promise<ky.KyResponse<T>>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
/**
|
|
@@ -75,7 +75,7 @@ type Action = {
|
|
|
75
75
|
updatedAt: string;
|
|
76
76
|
};
|
|
77
77
|
|
|
78
|
-
interface
|
|
78
|
+
interface ListActionsOptions {
|
|
79
79
|
request?: RequestInit;
|
|
80
80
|
}
|
|
81
81
|
type ListActionsResponse = {
|
|
@@ -86,7 +86,7 @@ type ListActionsResponse = {
|
|
|
86
86
|
declare class ListActions {
|
|
87
87
|
protected _transport: FetchTransport;
|
|
88
88
|
constructor(_transport: FetchTransport);
|
|
89
|
-
send({ request }?:
|
|
89
|
+
send({ request }?: ListActionsOptions): Promise<ky.KyResponse<ListActionsResponse>>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/**
|
|
@@ -124,7 +124,7 @@ type CreateBoilerplatePayload = {
|
|
|
124
124
|
account: string;
|
|
125
125
|
boilerplateCategory: string;
|
|
126
126
|
};
|
|
127
|
-
interface
|
|
127
|
+
interface CreateBoilerplateOptions {
|
|
128
128
|
body: CreateBoilerplatePayload;
|
|
129
129
|
request?: RequestInit;
|
|
130
130
|
}
|
|
@@ -136,10 +136,10 @@ type CreateBoilerplateResponse = {
|
|
|
136
136
|
declare class CreateBoilerplate {
|
|
137
137
|
protected _transport: FetchTransport;
|
|
138
138
|
constructor(_transport: FetchTransport);
|
|
139
|
-
send({ body, request }:
|
|
139
|
+
send({ body, request }: CreateBoilerplateOptions): Promise<ky.KyResponse<CreateBoilerplateResponse>>;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
interface
|
|
142
|
+
interface GetBoilerplateOptions {
|
|
143
143
|
id: string;
|
|
144
144
|
request?: RequestInit;
|
|
145
145
|
}
|
|
@@ -151,10 +151,10 @@ type GetBoilerplateResponse = {
|
|
|
151
151
|
declare class GetBoilerplate {
|
|
152
152
|
protected _transport: FetchTransport;
|
|
153
153
|
constructor(_transport: FetchTransport);
|
|
154
|
-
send({ id, request }:
|
|
154
|
+
send({ id, request }: GetBoilerplateOptions): Promise<ky.KyResponse<GetBoilerplateResponse>>;
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
interface
|
|
157
|
+
interface ListBoilerplateCategoryBoilerplatesOptions {
|
|
158
158
|
id: string;
|
|
159
159
|
request?: RequestInit;
|
|
160
160
|
}
|
|
@@ -166,10 +166,10 @@ type ListBoilerplateCategoryBoilerplatesResponse = {
|
|
|
166
166
|
declare class ListBoilerplateCategoryBoilerplates {
|
|
167
167
|
protected _transport: FetchTransport;
|
|
168
168
|
constructor(_transport: FetchTransport);
|
|
169
|
-
send({ id, request }:
|
|
169
|
+
send({ id, request, }: ListBoilerplateCategoryBoilerplatesOptions): Promise<ky.KyResponse<ListBoilerplateCategoryBoilerplatesResponse>>;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
interface
|
|
172
|
+
interface ListBoilerplatesOptions {
|
|
173
173
|
query?: string;
|
|
174
174
|
request?: RequestInit;
|
|
175
175
|
}
|
|
@@ -181,14 +181,14 @@ type ListBoilerplatesResponse = {
|
|
|
181
181
|
declare class ListBoilerplates {
|
|
182
182
|
protected _transport: FetchTransport;
|
|
183
183
|
constructor(_transport: FetchTransport);
|
|
184
|
-
send({ query, request }?:
|
|
184
|
+
send({ query, request }?: ListBoilerplatesOptions): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
type UpdateBoilerplatePayload = {
|
|
188
188
|
title?: string;
|
|
189
189
|
content?: string;
|
|
190
190
|
};
|
|
191
|
-
interface
|
|
191
|
+
interface UpdateBoilerplateOptions {
|
|
192
192
|
id: string;
|
|
193
193
|
body: UpdateBoilerplatePayload;
|
|
194
194
|
request?: RequestInit;
|
|
@@ -201,7 +201,7 @@ type UpdateBoilerplateResponse = {
|
|
|
201
201
|
declare class UpdateBoilerplate {
|
|
202
202
|
protected _transport: FetchTransport;
|
|
203
203
|
constructor(_transport: FetchTransport);
|
|
204
|
-
send({ id, body, request }:
|
|
204
|
+
send({ id, body, request }: UpdateBoilerplateOptions): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
@@ -226,7 +226,7 @@ type CreateBoilerplateCategoryPayload = {
|
|
|
226
226
|
description?: string;
|
|
227
227
|
account: string;
|
|
228
228
|
};
|
|
229
|
-
interface
|
|
229
|
+
interface CreateBoilerplateCategoryOptions {
|
|
230
230
|
body: CreateBoilerplateCategoryPayload;
|
|
231
231
|
request?: RequestInit;
|
|
232
232
|
}
|
|
@@ -238,10 +238,10 @@ type CreateBoilerplateCategoryResponse = {
|
|
|
238
238
|
declare class CreateBoilerplateCategory {
|
|
239
239
|
protected _transport: FetchTransport;
|
|
240
240
|
constructor(_transport: FetchTransport);
|
|
241
|
-
send({ body, request }:
|
|
241
|
+
send({ body, request }: CreateBoilerplateCategoryOptions): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
interface
|
|
244
|
+
interface GetBoilerplateCategoryOptions {
|
|
245
245
|
id: string;
|
|
246
246
|
request?: RequestInit;
|
|
247
247
|
}
|
|
@@ -253,14 +253,14 @@ type GetBoilerplateCategoryResponse = {
|
|
|
253
253
|
declare class GetBoilerplateCategory {
|
|
254
254
|
protected _transport: FetchTransport;
|
|
255
255
|
constructor(_transport: FetchTransport);
|
|
256
|
-
send({ id, request }:
|
|
256
|
+
send({ id, request }: GetBoilerplateCategoryOptions): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
interface IncludeOptions$5 {
|
|
260
260
|
boilerplateCount?: boolean;
|
|
261
261
|
[key: string]: boolean | undefined;
|
|
262
262
|
}
|
|
263
|
-
interface
|
|
263
|
+
interface ListBoilerplateCategoriesOptions<C extends IncludeOptions$5> {
|
|
264
264
|
include?: C;
|
|
265
265
|
request?: RequestInit;
|
|
266
266
|
}
|
|
@@ -275,14 +275,14 @@ type ListBoilerplateCategoriesResponse<C extends IncludeOptions$5> = {
|
|
|
275
275
|
declare class ListBoilerplateCategories {
|
|
276
276
|
protected _transport: FetchTransport;
|
|
277
277
|
constructor(_transport: FetchTransport);
|
|
278
|
-
send<C extends IncludeOptions$5>({ include, request, }?:
|
|
278
|
+
send<C extends IncludeOptions$5>({ include, request, }?: ListBoilerplateCategoriesOptions<C>): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse<C>>>;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
type UpdateBoilerplateCategoryPayload = {
|
|
282
282
|
title?: string;
|
|
283
283
|
description?: string;
|
|
284
284
|
};
|
|
285
|
-
interface
|
|
285
|
+
interface UpdateBoilerplateCategoryOptions {
|
|
286
286
|
id: string;
|
|
287
287
|
body: UpdateBoilerplateCategoryPayload;
|
|
288
288
|
request?: RequestInit;
|
|
@@ -295,7 +295,7 @@ type UpdateBoilerplateCategoryResponse = {
|
|
|
295
295
|
declare class UpdateBoilerplateCategory {
|
|
296
296
|
protected _transport: FetchTransport;
|
|
297
297
|
constructor(_transport: FetchTransport);
|
|
298
|
-
send({ id, body, request }:
|
|
298
|
+
send({ id, body, request, }: UpdateBoilerplateCategoryOptions): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
/**
|
|
@@ -353,7 +353,7 @@ type CreateChannelPayload = {
|
|
|
353
353
|
apiKey: string;
|
|
354
354
|
};
|
|
355
355
|
});
|
|
356
|
-
interface
|
|
356
|
+
interface CreateChannelOptions {
|
|
357
357
|
body: CreateChannelPayload;
|
|
358
358
|
request?: RequestInit;
|
|
359
359
|
}
|
|
@@ -365,10 +365,10 @@ type CreateChannelResponse = {
|
|
|
365
365
|
declare class CreateChannel {
|
|
366
366
|
protected _transport: FetchTransport;
|
|
367
367
|
constructor(_transport: FetchTransport);
|
|
368
|
-
send({ body, request }:
|
|
368
|
+
send({ body, request }: CreateChannelOptions): Promise<ky.KyResponse<CreateChannelResponse>>;
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
interface
|
|
371
|
+
interface GetChannelOptions {
|
|
372
372
|
id: string;
|
|
373
373
|
request?: RequestInit;
|
|
374
374
|
}
|
|
@@ -380,10 +380,10 @@ type GetChannelResponse = {
|
|
|
380
380
|
declare class GetChannel {
|
|
381
381
|
protected _transport: FetchTransport;
|
|
382
382
|
constructor(_transport: FetchTransport);
|
|
383
|
-
send({ id, request }:
|
|
383
|
+
send({ id, request }: GetChannelOptions): Promise<ky.KyResponse<GetChannelResponse>>;
|
|
384
384
|
}
|
|
385
385
|
|
|
386
|
-
interface
|
|
386
|
+
interface ListChannelsOptions {
|
|
387
387
|
request?: RequestInit;
|
|
388
388
|
}
|
|
389
389
|
type ListChannelsResponse = {
|
|
@@ -394,10 +394,10 @@ type ListChannelsResponse = {
|
|
|
394
394
|
declare class ListChannels {
|
|
395
395
|
protected _transport: FetchTransport;
|
|
396
396
|
constructor(_transport: FetchTransport);
|
|
397
|
-
send({ request }?:
|
|
397
|
+
send({ request }?: ListChannelsOptions): Promise<ky.KyResponse<ListChannelsResponse>>;
|
|
398
398
|
}
|
|
399
399
|
|
|
400
|
-
interface
|
|
400
|
+
interface TwilioSendgridChannelSyncOptions {
|
|
401
401
|
id: string;
|
|
402
402
|
body: z.infer<typeof TwilioSendgridChannelSync.SCHEMA>;
|
|
403
403
|
request?: RequestInit;
|
|
@@ -419,7 +419,7 @@ declare class TwilioSendgridChannelSync {
|
|
|
419
419
|
overwrite?: boolean | undefined;
|
|
420
420
|
}>;
|
|
421
421
|
constructor(_transport: FetchTransport);
|
|
422
|
-
send({ id, body, request }:
|
|
422
|
+
send({ id, body, request, }: TwilioSendgridChannelSyncOptions): Promise<ky.KyResponse<TwilioSendgridChannelSyncResponse>>;
|
|
423
423
|
}
|
|
424
424
|
|
|
425
425
|
type UpdateChannelPayload = {
|
|
@@ -436,7 +436,7 @@ type UpdateChannelPayload = {
|
|
|
436
436
|
apiKey?: string;
|
|
437
437
|
};
|
|
438
438
|
});
|
|
439
|
-
interface
|
|
439
|
+
interface UpdateChannelOptions {
|
|
440
440
|
id: string;
|
|
441
441
|
body: UpdateChannelPayload;
|
|
442
442
|
request?: RequestInit;
|
|
@@ -449,7 +449,7 @@ type UpdateChannelResponse = {
|
|
|
449
449
|
declare class UpdateChannel {
|
|
450
450
|
protected _transport: FetchTransport;
|
|
451
451
|
constructor(_transport: FetchTransport);
|
|
452
|
-
send({ id, body, request }:
|
|
452
|
+
send({ id, body, request }: UpdateChannelOptions): Promise<ky.KyResponse<UpdateChannelResponse>>;
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
/**
|
|
@@ -476,7 +476,7 @@ type CreateCompositionSectionPayload = {
|
|
|
476
476
|
location: "header" | "footer";
|
|
477
477
|
content: string;
|
|
478
478
|
};
|
|
479
|
-
interface
|
|
479
|
+
interface CreateCompositionSectionOptions {
|
|
480
480
|
body: CreateCompositionSectionPayload;
|
|
481
481
|
request?: RequestInit;
|
|
482
482
|
}
|
|
@@ -488,10 +488,10 @@ type CreateCompositionSectionResponse = {
|
|
|
488
488
|
declare class CreateCompositionSection {
|
|
489
489
|
protected _transport: FetchTransport;
|
|
490
490
|
constructor(_transport: FetchTransport);
|
|
491
|
-
send({ body, request }:
|
|
491
|
+
send({ body, request }: CreateCompositionSectionOptions): Promise<ky.KyResponse<CreateCompositionSectionResponse>>;
|
|
492
492
|
}
|
|
493
493
|
|
|
494
|
-
interface
|
|
494
|
+
interface GetCompositionSectionOptions {
|
|
495
495
|
id: string;
|
|
496
496
|
request?: RequestInit;
|
|
497
497
|
}
|
|
@@ -503,10 +503,10 @@ type GetCompositionSectionResponse = {
|
|
|
503
503
|
declare class GetCompositionSection {
|
|
504
504
|
protected _transport: FetchTransport;
|
|
505
505
|
constructor(_transport: FetchTransport);
|
|
506
|
-
send({ id, request }:
|
|
506
|
+
send({ id, request }: GetCompositionSectionOptions): Promise<ky.KyResponse<GetCompositionSectionResponse>>;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
-
interface
|
|
509
|
+
interface ListChannelCompositionSectionsOptions {
|
|
510
510
|
id: string;
|
|
511
511
|
request?: RequestInit;
|
|
512
512
|
}
|
|
@@ -518,10 +518,10 @@ type ListChannelCompositionSectionsResponse = {
|
|
|
518
518
|
declare class ListChannelCompositionSections {
|
|
519
519
|
protected _transport: FetchTransport;
|
|
520
520
|
constructor(_transport: FetchTransport);
|
|
521
|
-
send({ id, request }:
|
|
521
|
+
send({ id, request, }: ListChannelCompositionSectionsOptions): Promise<ky.KyResponse<ListChannelCompositionSectionsResponse>>;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
interface
|
|
524
|
+
interface ListCompositionSectionsOptions {
|
|
525
525
|
request?: RequestInit;
|
|
526
526
|
}
|
|
527
527
|
type ListCompositionSectionsResponse = {
|
|
@@ -532,13 +532,13 @@ type ListCompositionSectionsResponse = {
|
|
|
532
532
|
declare class ListCompositionSections {
|
|
533
533
|
protected _transport: FetchTransport;
|
|
534
534
|
constructor(_transport: FetchTransport);
|
|
535
|
-
send({ request }?:
|
|
535
|
+
send({ request }?: ListCompositionSectionsOptions): Promise<ky.KyResponse<ListCompositionSectionsResponse>>;
|
|
536
536
|
}
|
|
537
537
|
|
|
538
538
|
type UpdateCompositionSectionPayload = {
|
|
539
539
|
content?: string;
|
|
540
540
|
};
|
|
541
|
-
interface
|
|
541
|
+
interface UpdateCompositionSectionOptions {
|
|
542
542
|
id: string;
|
|
543
543
|
body: UpdateCompositionSectionPayload;
|
|
544
544
|
request?: RequestInit;
|
|
@@ -551,7 +551,7 @@ type UpdateCompositionSectionResponse = {
|
|
|
551
551
|
declare class UpdateCompositionSection {
|
|
552
552
|
protected _transport: FetchTransport;
|
|
553
553
|
constructor(_transport: FetchTransport);
|
|
554
|
-
send({ id, body, request }:
|
|
554
|
+
send({ id, body, request, }: UpdateCompositionSectionOptions): Promise<ky.KyResponse<UpdateCompositionSectionResponse>>;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
/**
|
|
@@ -563,7 +563,7 @@ declare class UpdateCompositionSection {
|
|
|
563
563
|
* @see https://greatdetail.com
|
|
564
564
|
*/
|
|
565
565
|
|
|
566
|
-
interface
|
|
566
|
+
interface GetContactVCFURLOptions {
|
|
567
567
|
id: string;
|
|
568
568
|
vcf?: {
|
|
569
569
|
variant?: "vcard";
|
|
@@ -576,8 +576,8 @@ interface Options$A {
|
|
|
576
576
|
declare class GetContactVCFURL {
|
|
577
577
|
protected _transport: FetchTransport;
|
|
578
578
|
constructor(_transport: FetchTransport);
|
|
579
|
-
getRelativeURL({ id, vcf }:
|
|
580
|
-
getURL(options:
|
|
579
|
+
getRelativeURL({ id, vcf }: GetContactVCFURLOptions): string;
|
|
580
|
+
getURL(options: GetContactVCFURLOptions): string;
|
|
581
581
|
}
|
|
582
582
|
|
|
583
583
|
/**
|
|
@@ -604,7 +604,7 @@ type CreateContactPayload = {
|
|
|
604
604
|
emailAddress?: string;
|
|
605
605
|
telephoneNumber?: string;
|
|
606
606
|
};
|
|
607
|
-
interface
|
|
607
|
+
interface CreateContactOptions {
|
|
608
608
|
body: CreateContactPayload;
|
|
609
609
|
request?: RequestInit;
|
|
610
610
|
}
|
|
@@ -616,7 +616,7 @@ type CreateContactResponse = {
|
|
|
616
616
|
declare class CreateContact {
|
|
617
617
|
protected _transport: FetchTransport;
|
|
618
618
|
constructor(_transport: FetchTransport);
|
|
619
|
-
send({ body, request }:
|
|
619
|
+
send({ body, request }: CreateContactOptions): Promise<ky.KyResponse<CreateContactResponse>>;
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
interface IncludeOptions$4 {
|
|
@@ -624,7 +624,7 @@ interface IncludeOptions$4 {
|
|
|
624
624
|
conversationCount?: boolean;
|
|
625
625
|
[key: string]: boolean | undefined;
|
|
626
626
|
}
|
|
627
|
-
interface
|
|
627
|
+
interface GetContactOptions<C extends IncludeOptions$4> {
|
|
628
628
|
id: string;
|
|
629
629
|
include?: C;
|
|
630
630
|
request?: RequestInit;
|
|
@@ -643,10 +643,10 @@ type GetContactResponse<C extends IncludeOptions$4> = {
|
|
|
643
643
|
declare class GetContact {
|
|
644
644
|
protected _transport: FetchTransport;
|
|
645
645
|
constructor(_transport: FetchTransport);
|
|
646
|
-
send<C extends IncludeOptions$4>({ id, include, request, }:
|
|
646
|
+
send<C extends IncludeOptions$4>({ id, include, request, }: GetContactOptions<C>): Promise<ky.KyResponse<GetContactResponse<C>>>;
|
|
647
647
|
}
|
|
648
648
|
|
|
649
|
-
interface
|
|
649
|
+
interface ListContactsOptions {
|
|
650
650
|
query?: string;
|
|
651
651
|
request?: RequestInit;
|
|
652
652
|
}
|
|
@@ -658,10 +658,10 @@ type ListContactsResponse = {
|
|
|
658
658
|
declare class ListContacts {
|
|
659
659
|
protected _transport: FetchTransport;
|
|
660
660
|
constructor(_transport: FetchTransport);
|
|
661
|
-
send({ query, request }?:
|
|
661
|
+
send({ query, request }?: ListContactsOptions): Promise<ky.KyResponse<ListContactsResponse>>;
|
|
662
662
|
}
|
|
663
663
|
|
|
664
|
-
interface
|
|
664
|
+
interface ListLabelContactsOptions {
|
|
665
665
|
id: string;
|
|
666
666
|
request?: RequestInit;
|
|
667
667
|
}
|
|
@@ -673,7 +673,7 @@ type ListLabelContactsResponse = {
|
|
|
673
673
|
declare class ListLabelContacts {
|
|
674
674
|
protected _transport: FetchTransport;
|
|
675
675
|
constructor(_transport: FetchTransport);
|
|
676
|
-
send({ id, request }:
|
|
676
|
+
send({ id, request }: ListLabelContactsOptions): Promise<ky.KyResponse<ListLabelContactsResponse>>;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
type UpdateContactPayload = {
|
|
@@ -681,7 +681,7 @@ type UpdateContactPayload = {
|
|
|
681
681
|
emailAddress?: string;
|
|
682
682
|
telephoneNumber?: string;
|
|
683
683
|
};
|
|
684
|
-
interface
|
|
684
|
+
interface UpdateContactOptions {
|
|
685
685
|
id: string;
|
|
686
686
|
body: UpdateContactPayload;
|
|
687
687
|
request?: RequestInit;
|
|
@@ -694,7 +694,7 @@ type UpdateContactResponse = {
|
|
|
694
694
|
declare class UpdateContact {
|
|
695
695
|
protected _transport: FetchTransport;
|
|
696
696
|
constructor(_transport: FetchTransport);
|
|
697
|
-
send({ id, body, request }:
|
|
697
|
+
send({ id, body, request }: UpdateContactOptions): Promise<ky.KyResponse<UpdateContactResponse>>;
|
|
698
698
|
}
|
|
699
699
|
|
|
700
700
|
/**
|
|
@@ -720,7 +720,7 @@ interface IncludeOptions$3 {
|
|
|
720
720
|
channel?: boolean;
|
|
721
721
|
[key: string]: boolean | undefined;
|
|
722
722
|
}
|
|
723
|
-
interface
|
|
723
|
+
interface GetConversationOptions<C extends IncludeOptions$3> {
|
|
724
724
|
id: string;
|
|
725
725
|
include?: C;
|
|
726
726
|
request?: RequestInit;
|
|
@@ -736,10 +736,10 @@ type GetConversationResponse<C extends IncludeOptions$3> = {
|
|
|
736
736
|
declare class GetConversation {
|
|
737
737
|
protected _transport: FetchTransport;
|
|
738
738
|
constructor(_transport: FetchTransport);
|
|
739
|
-
send<C extends IncludeOptions$3>({ id, include, request, }:
|
|
739
|
+
send<C extends IncludeOptions$3>({ id, include, request, }: GetConversationOptions<C>): Promise<ky.KyResponse<GetConversationResponse<C>>>;
|
|
740
740
|
}
|
|
741
741
|
|
|
742
|
-
interface
|
|
742
|
+
interface ListContactConversationsOptions {
|
|
743
743
|
id: string;
|
|
744
744
|
request?: RequestInit;
|
|
745
745
|
}
|
|
@@ -751,7 +751,7 @@ type ListContactConversationsResponse = {
|
|
|
751
751
|
declare class ListContactConversations {
|
|
752
752
|
protected _transport: FetchTransport;
|
|
753
753
|
constructor(_transport: FetchTransport);
|
|
754
|
-
send({ id, request }:
|
|
754
|
+
send({ id, request }: ListContactConversationsOptions): Promise<ky.KyResponse<ListContactConversationsResponse>>;
|
|
755
755
|
}
|
|
756
756
|
|
|
757
757
|
/**
|
|
@@ -785,7 +785,7 @@ interface IncludeOptions$2 {
|
|
|
785
785
|
[key: string]: boolean | undefined;
|
|
786
786
|
}
|
|
787
787
|
type FilterOptions = "unresolved" | "awaitingContact" | "awaitingAgent" | (string & NonNullable<unknown>);
|
|
788
|
-
interface
|
|
788
|
+
interface ListConversationOptions<C extends IncludeOptions$2> {
|
|
789
789
|
filter?: FilterOptions;
|
|
790
790
|
include?: C;
|
|
791
791
|
request?: RequestInit;
|
|
@@ -801,10 +801,10 @@ type ListConversationsResponse<C extends IncludeOptions$2> = {
|
|
|
801
801
|
declare class ListConversations {
|
|
802
802
|
protected _transport: FetchTransport;
|
|
803
803
|
constructor(_transport: FetchTransport);
|
|
804
|
-
send<C extends IncludeOptions$2>({ filter, include, request, }?:
|
|
804
|
+
send<C extends IncludeOptions$2>({ filter, include, request, }?: ListConversationOptions<C>): Promise<ky.KyResponse<ListConversationsResponse<C>>>;
|
|
805
805
|
}
|
|
806
806
|
|
|
807
|
-
interface
|
|
807
|
+
interface ListLabelConversationsOptions {
|
|
808
808
|
id: string;
|
|
809
809
|
request?: RequestInit;
|
|
810
810
|
}
|
|
@@ -816,14 +816,14 @@ type ListLabelConversationsResponse = {
|
|
|
816
816
|
declare class ListLabelConversations {
|
|
817
817
|
protected _transport: FetchTransport;
|
|
818
818
|
constructor(_transport: FetchTransport);
|
|
819
|
-
send({ id, request }:
|
|
819
|
+
send({ id, request }: ListLabelConversationsOptions): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
|
|
820
820
|
}
|
|
821
821
|
|
|
822
822
|
type UpdateConversationPayload = {
|
|
823
823
|
status?: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
824
824
|
hasEnded?: boolean;
|
|
825
825
|
};
|
|
826
|
-
interface
|
|
826
|
+
interface UpdateConversationOptions {
|
|
827
827
|
id: string;
|
|
828
828
|
body: UpdateConversationPayload;
|
|
829
829
|
request?: RequestInit;
|
|
@@ -836,7 +836,7 @@ type UpdateConversationResponse = {
|
|
|
836
836
|
declare class UpdateConversation {
|
|
837
837
|
protected _transport: FetchTransport;
|
|
838
838
|
constructor(_transport: FetchTransport);
|
|
839
|
-
send({ id, body, request }:
|
|
839
|
+
send({ id, body, request }: UpdateConversationOptions): Promise<ky.KyResponse<UpdateConversationResponse>>;
|
|
840
840
|
}
|
|
841
841
|
|
|
842
842
|
/**
|
|
@@ -861,7 +861,7 @@ type CreateLabelPayload = {
|
|
|
861
861
|
description?: string;
|
|
862
862
|
account: string;
|
|
863
863
|
};
|
|
864
|
-
interface
|
|
864
|
+
interface CreateLabelOptions {
|
|
865
865
|
body: CreateLabelPayload;
|
|
866
866
|
request?: RequestInit;
|
|
867
867
|
}
|
|
@@ -873,10 +873,10 @@ type CreateLabelResponse = {
|
|
|
873
873
|
declare class CreateLabel {
|
|
874
874
|
protected _transport: FetchTransport;
|
|
875
875
|
constructor(_transport: FetchTransport);
|
|
876
|
-
send({ body, request }:
|
|
876
|
+
send({ body, request }: CreateLabelOptions): Promise<ky.KyResponse<CreateLabelResponse>>;
|
|
877
877
|
}
|
|
878
878
|
|
|
879
|
-
interface
|
|
879
|
+
interface DeleteLabelOptions {
|
|
880
880
|
id: string;
|
|
881
881
|
request?: RequestInit;
|
|
882
882
|
}
|
|
@@ -884,10 +884,10 @@ type DeleteLabelResponse = Record<string, never>;
|
|
|
884
884
|
declare class DeleteLabel {
|
|
885
885
|
protected _transport: FetchTransport;
|
|
886
886
|
constructor(_transport: FetchTransport);
|
|
887
|
-
send({ id, request }:
|
|
887
|
+
send({ id, request }: DeleteLabelOptions): Promise<ky.KyResponse<DeleteLabelResponse>>;
|
|
888
888
|
}
|
|
889
889
|
|
|
890
|
-
interface
|
|
890
|
+
interface GetLabelOptions {
|
|
891
891
|
id: string;
|
|
892
892
|
request?: RequestInit;
|
|
893
893
|
}
|
|
@@ -899,7 +899,7 @@ type GetLabelResponse = {
|
|
|
899
899
|
declare class GetLabel {
|
|
900
900
|
protected _transport: FetchTransport;
|
|
901
901
|
constructor(_transport: FetchTransport);
|
|
902
|
-
send({ id, request }:
|
|
902
|
+
send({ id, request }: GetLabelOptions): Promise<ky.KyResponse<GetLabelResponse>>;
|
|
903
903
|
}
|
|
904
904
|
|
|
905
905
|
interface IncludeOptions$1 {
|
|
@@ -907,7 +907,7 @@ interface IncludeOptions$1 {
|
|
|
907
907
|
conversationCount?: boolean;
|
|
908
908
|
[key: string]: boolean | undefined;
|
|
909
909
|
}
|
|
910
|
-
interface
|
|
910
|
+
interface ListLabelsOptions<C extends IncludeOptions$1> {
|
|
911
911
|
query?: string;
|
|
912
912
|
include?: C;
|
|
913
913
|
request?: RequestInit;
|
|
@@ -926,14 +926,14 @@ type ListLabelsResponse<C extends IncludeOptions$1> = {
|
|
|
926
926
|
declare class ListLabels {
|
|
927
927
|
protected _transport: FetchTransport;
|
|
928
928
|
constructor(_transport: FetchTransport);
|
|
929
|
-
send<C extends IncludeOptions$1>({ query, include, request, }?:
|
|
929
|
+
send<C extends IncludeOptions$1>({ query, include, request, }?: ListLabelsOptions<C>): Promise<ky.KyResponse<ListLabelsResponse<C>>>;
|
|
930
930
|
}
|
|
931
931
|
|
|
932
932
|
type UpdateLabelPayload = {
|
|
933
933
|
title?: string;
|
|
934
934
|
description?: string;
|
|
935
935
|
};
|
|
936
|
-
interface
|
|
936
|
+
interface UpdateLabelOptions {
|
|
937
937
|
id: string;
|
|
938
938
|
body: UpdateLabelPayload;
|
|
939
939
|
request?: RequestInit;
|
|
@@ -946,10 +946,10 @@ type UpdateLabelResponse = {
|
|
|
946
946
|
declare class UpdateLabel {
|
|
947
947
|
protected _transport: FetchTransport;
|
|
948
948
|
constructor(_transport: FetchTransport);
|
|
949
|
-
send({ id, body, request }:
|
|
949
|
+
send({ id, body, request }: UpdateLabelOptions): Promise<ky.KyResponse<UpdateLabelResponse>>;
|
|
950
950
|
}
|
|
951
951
|
|
|
952
|
-
interface
|
|
952
|
+
interface ListChannelMessagesOptions {
|
|
953
953
|
id: string;
|
|
954
954
|
request?: RequestInit;
|
|
955
955
|
}
|
|
@@ -961,14 +961,14 @@ type ListChannelMessagesResponse = {
|
|
|
961
961
|
declare class ListChannelMessages {
|
|
962
962
|
protected _transport: FetchTransport;
|
|
963
963
|
constructor(_transport: FetchTransport);
|
|
964
|
-
send({ id, request }:
|
|
964
|
+
send({ id, request }: ListChannelMessagesOptions): Promise<ky.KyResponse<ListChannelMessagesResponse>>;
|
|
965
965
|
}
|
|
966
966
|
|
|
967
967
|
interface IncludeOptions {
|
|
968
968
|
contact?: boolean;
|
|
969
969
|
[key: string]: boolean | undefined;
|
|
970
970
|
}
|
|
971
|
-
interface
|
|
971
|
+
interface ListConversationMessagesOptions<C extends IncludeOptions> {
|
|
972
972
|
id: string;
|
|
973
973
|
include?: C;
|
|
974
974
|
request?: RequestInit;
|
|
@@ -984,10 +984,10 @@ type ListConversationMessagesResponse<C extends IncludeOptions> = {
|
|
|
984
984
|
declare class ListConversationMessages {
|
|
985
985
|
protected _transport: FetchTransport;
|
|
986
986
|
constructor(_transport: FetchTransport);
|
|
987
|
-
send<C extends IncludeOptions>({ id, include, request, }:
|
|
987
|
+
send<C extends IncludeOptions>({ id, include, request, }: ListConversationMessagesOptions<C>): Promise<ky.KyResponse<ListConversationMessagesResponse<C>>>;
|
|
988
988
|
}
|
|
989
989
|
|
|
990
|
-
interface
|
|
990
|
+
interface ListMessagesOptions {
|
|
991
991
|
request?: RequestInit;
|
|
992
992
|
}
|
|
993
993
|
type ListMessagesResponse = {
|
|
@@ -998,7 +998,7 @@ type ListMessagesResponse = {
|
|
|
998
998
|
declare class ListMessages {
|
|
999
999
|
protected _transport: FetchTransport;
|
|
1000
1000
|
constructor(_transport: FetchTransport);
|
|
1001
|
-
send({ request }?:
|
|
1001
|
+
send({ request }?: ListMessagesOptions): Promise<ky.KyResponse<ListMessagesResponse>>;
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
type CreateCorrectionModelPayload = {
|
|
@@ -1006,7 +1006,7 @@ type CreateCorrectionModelPayload = {
|
|
|
1006
1006
|
original: string;
|
|
1007
1007
|
correction: string;
|
|
1008
1008
|
};
|
|
1009
|
-
interface
|
|
1009
|
+
interface CreateCorrectionModelOptions {
|
|
1010
1010
|
id: string;
|
|
1011
1011
|
body: CreateCorrectionModelPayload;
|
|
1012
1012
|
request?: RequestInit;
|
|
@@ -1015,7 +1015,7 @@ type CreateCorrectionResponse = unknown;
|
|
|
1015
1015
|
declare class CreateCorrectionModel {
|
|
1016
1016
|
protected _transport: FetchTransport;
|
|
1017
1017
|
constructor(_transport: FetchTransport);
|
|
1018
|
-
send({ id, body, request }:
|
|
1018
|
+
send({ id, body, request }: CreateCorrectionModelOptions): Promise<ky.KyResponse<unknown>>;
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
1021
|
/**
|
|
@@ -1034,7 +1034,7 @@ type Model = {
|
|
|
1034
1034
|
disambiguatingDescription: string;
|
|
1035
1035
|
};
|
|
1036
1036
|
|
|
1037
|
-
interface
|
|
1037
|
+
interface GetModelOptions {
|
|
1038
1038
|
id: string;
|
|
1039
1039
|
request?: RequestInit;
|
|
1040
1040
|
}
|
|
@@ -1046,10 +1046,10 @@ type GetModelResponse = {
|
|
|
1046
1046
|
declare class GetModel {
|
|
1047
1047
|
protected _transport: FetchTransport;
|
|
1048
1048
|
constructor(_transport: FetchTransport);
|
|
1049
|
-
send({ id, request }:
|
|
1049
|
+
send({ id, request }: GetModelOptions): Promise<ky.KyResponse<GetModelResponse>>;
|
|
1050
1050
|
}
|
|
1051
1051
|
|
|
1052
|
-
interface
|
|
1052
|
+
interface ListModelsOptions {
|
|
1053
1053
|
request?: RequestInit;
|
|
1054
1054
|
}
|
|
1055
1055
|
type ListModelsResponse = {
|
|
@@ -1060,14 +1060,14 @@ type ListModelsResponse = {
|
|
|
1060
1060
|
declare class ListModels {
|
|
1061
1061
|
protected _transport: FetchTransport;
|
|
1062
1062
|
constructor(_transport: FetchTransport);
|
|
1063
|
-
send({ request }?:
|
|
1063
|
+
send({ request }?: ListModelsOptions): Promise<ky.KyResponse<ListModelsResponse>>;
|
|
1064
1064
|
}
|
|
1065
1065
|
|
|
1066
1066
|
type CreateResponseModelPayload = {
|
|
1067
1067
|
role: "user" | "assistant";
|
|
1068
1068
|
content: string | null;
|
|
1069
1069
|
}[];
|
|
1070
|
-
interface
|
|
1070
|
+
interface CreateResponseModelOptions {
|
|
1071
1071
|
id: string;
|
|
1072
1072
|
body: CreateResponseModelPayload;
|
|
1073
1073
|
request?: RequestInit;
|
|
@@ -1082,7 +1082,7 @@ type CreateResponseResponse = {
|
|
|
1082
1082
|
declare class CreateResponseModel {
|
|
1083
1083
|
protected _transport: FetchTransport;
|
|
1084
1084
|
constructor(_transport: FetchTransport);
|
|
1085
|
-
send({ id, body, request }:
|
|
1085
|
+
send({ id, body, request }: CreateResponseModelOptions): Promise<ky.KyResponse<CreateResponseResponse>>;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
1088
|
/**
|
|
@@ -1103,7 +1103,7 @@ type Note = {
|
|
|
1103
1103
|
type CreateContactNotePayload = {
|
|
1104
1104
|
content: string;
|
|
1105
1105
|
};
|
|
1106
|
-
interface
|
|
1106
|
+
interface CreateContactNoteOptions {
|
|
1107
1107
|
id: string;
|
|
1108
1108
|
body: CreateContactNotePayload;
|
|
1109
1109
|
request?: RequestInit;
|
|
@@ -1116,13 +1116,13 @@ type CreateContactNoteResponse = {
|
|
|
1116
1116
|
declare class CreateContactNote {
|
|
1117
1117
|
protected _transport: FetchTransport;
|
|
1118
1118
|
constructor(_transport: FetchTransport);
|
|
1119
|
-
send({ id, body, request }:
|
|
1119
|
+
send({ id, body, request }: CreateContactNoteOptions): Promise<ky.KyResponse<CreateContactNoteResponse>>;
|
|
1120
1120
|
}
|
|
1121
1121
|
|
|
1122
1122
|
type CreateConversationNotePayload = {
|
|
1123
1123
|
content: string;
|
|
1124
1124
|
};
|
|
1125
|
-
interface
|
|
1125
|
+
interface CreateConversationNoteOptions {
|
|
1126
1126
|
id: string;
|
|
1127
1127
|
body: CreateConversationNotePayload;
|
|
1128
1128
|
request?: RequestInit;
|
|
@@ -1135,10 +1135,10 @@ type CreateConversationNoteResponse = {
|
|
|
1135
1135
|
declare class CreateConversationNote {
|
|
1136
1136
|
protected _transport: FetchTransport;
|
|
1137
1137
|
constructor(_transport: FetchTransport);
|
|
1138
|
-
send({ id, body, request }:
|
|
1138
|
+
send({ id, body, request }: CreateConversationNoteOptions): Promise<ky.KyResponse<CreateConversationNoteResponse>>;
|
|
1139
1139
|
}
|
|
1140
1140
|
|
|
1141
|
-
interface
|
|
1141
|
+
interface GetNoteOptions {
|
|
1142
1142
|
id: string;
|
|
1143
1143
|
request?: RequestInit;
|
|
1144
1144
|
}
|
|
@@ -1150,10 +1150,10 @@ type GetNoteResponse = {
|
|
|
1150
1150
|
declare class GetNote {
|
|
1151
1151
|
protected _transport: FetchTransport;
|
|
1152
1152
|
constructor(_transport: FetchTransport);
|
|
1153
|
-
send({ id, request }:
|
|
1153
|
+
send({ id, request }: GetNoteOptions): Promise<ky.KyResponse<GetNoteResponse>>;
|
|
1154
1154
|
}
|
|
1155
1155
|
|
|
1156
|
-
interface
|
|
1156
|
+
interface ListContactNotesOptions {
|
|
1157
1157
|
id: string;
|
|
1158
1158
|
request?: RequestInit;
|
|
1159
1159
|
}
|
|
@@ -1165,10 +1165,10 @@ type ListContactNotesResponse = {
|
|
|
1165
1165
|
declare class ListContactNotes {
|
|
1166
1166
|
protected _transport: FetchTransport;
|
|
1167
1167
|
constructor(_transport: FetchTransport);
|
|
1168
|
-
send({ id, request }:
|
|
1168
|
+
send({ id, request }: ListContactNotesOptions): Promise<ky.KyResponse<ListContactNotesResponse>>;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
|
-
interface
|
|
1171
|
+
interface ListConversationNotesOptions {
|
|
1172
1172
|
id: string;
|
|
1173
1173
|
request?: RequestInit;
|
|
1174
1174
|
}
|
|
@@ -1180,13 +1180,13 @@ type ListConversationNotesResponse = {
|
|
|
1180
1180
|
declare class ListConversationNotes {
|
|
1181
1181
|
protected _transport: FetchTransport;
|
|
1182
1182
|
constructor(_transport: FetchTransport);
|
|
1183
|
-
send({ id, request }:
|
|
1183
|
+
send({ id, request }: ListConversationNotesOptions): Promise<ky.KyResponse<ListConversationNotesResponse>>;
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
1186
|
type UpdateNotePayload = {
|
|
1187
1187
|
content?: string;
|
|
1188
1188
|
};
|
|
1189
|
-
interface
|
|
1189
|
+
interface UpdateNoteOptions {
|
|
1190
1190
|
id: string;
|
|
1191
1191
|
body: UpdateNotePayload;
|
|
1192
1192
|
request?: RequestInit;
|
|
@@ -1199,7 +1199,7 @@ type UpdateNoteResponse = {
|
|
|
1199
1199
|
declare class UpdateNote {
|
|
1200
1200
|
protected _transport: FetchTransport;
|
|
1201
1201
|
constructor(_transport: FetchTransport);
|
|
1202
|
-
send({ id, body, request }:
|
|
1202
|
+
send({ id, body, request }: UpdateNoteOptions): Promise<ky.KyResponse<UpdateNoteResponse>>;
|
|
1203
1203
|
}
|
|
1204
1204
|
|
|
1205
1205
|
/**
|
|
@@ -1224,7 +1224,7 @@ type CreateContactNotificationSubscriptionPayload = {
|
|
|
1224
1224
|
auth: string;
|
|
1225
1225
|
};
|
|
1226
1226
|
};
|
|
1227
|
-
interface
|
|
1227
|
+
interface CreateContactNotificationSubscriptionOptions {
|
|
1228
1228
|
id: string;
|
|
1229
1229
|
body: CreateContactNotificationSubscriptionPayload;
|
|
1230
1230
|
request?: RequestInit;
|
|
@@ -1237,7 +1237,7 @@ type CreateContactNotificationSubscriptionResponse = {
|
|
|
1237
1237
|
declare class CreateContactNotificationSubscription {
|
|
1238
1238
|
protected _transport: FetchTransport;
|
|
1239
1239
|
constructor(_transport: FetchTransport);
|
|
1240
|
-
send({ id, body, request }:
|
|
1240
|
+
send({ id, body, request, }: CreateContactNotificationSubscriptionOptions): Promise<ky.KyResponse<CreateContactNotificationSubscriptionResponse>>;
|
|
1241
1241
|
}
|
|
1242
1242
|
|
|
1243
1243
|
/**
|
|
@@ -1257,7 +1257,7 @@ type Source = {
|
|
|
1257
1257
|
disambiguatingDescription: string;
|
|
1258
1258
|
};
|
|
1259
1259
|
|
|
1260
|
-
interface
|
|
1260
|
+
interface GetSourceOptions {
|
|
1261
1261
|
id: string;
|
|
1262
1262
|
request?: RequestInit;
|
|
1263
1263
|
}
|
|
@@ -1269,10 +1269,10 @@ type GetSourceResponse = {
|
|
|
1269
1269
|
declare class GetSource {
|
|
1270
1270
|
protected _transport: FetchTransport;
|
|
1271
1271
|
constructor(_transport: FetchTransport);
|
|
1272
|
-
send({ id, request }:
|
|
1272
|
+
send({ id, request }: GetSourceOptions): Promise<ky.KyResponse<GetSourceResponse>>;
|
|
1273
1273
|
}
|
|
1274
1274
|
|
|
1275
|
-
interface
|
|
1275
|
+
interface ListSourcesOptions {
|
|
1276
1276
|
category?: string | string[];
|
|
1277
1277
|
request?: RequestInit;
|
|
1278
1278
|
}
|
|
@@ -1284,7 +1284,7 @@ type ListSourcesResponse = {
|
|
|
1284
1284
|
declare class ListSources {
|
|
1285
1285
|
protected _transport: FetchTransport;
|
|
1286
1286
|
constructor(_transport: FetchTransport);
|
|
1287
|
-
send({ category, request }?:
|
|
1287
|
+
send({ category, request }?: ListSourcesOptions): Promise<ky.KyResponse<ListSourcesResponse>>;
|
|
1288
1288
|
}
|
|
1289
1289
|
|
|
1290
1290
|
/**
|
|
@@ -1304,7 +1304,7 @@ type Upload = {
|
|
|
1304
1304
|
sha256: string;
|
|
1305
1305
|
};
|
|
1306
1306
|
|
|
1307
|
-
interface
|
|
1307
|
+
interface CreateUploadOptions {
|
|
1308
1308
|
account: string;
|
|
1309
1309
|
files: File[];
|
|
1310
1310
|
request?: RequestInit;
|
|
@@ -1317,10 +1317,10 @@ type CreateUploadResponse = {
|
|
|
1317
1317
|
declare class CreateUpload {
|
|
1318
1318
|
protected _transport: FetchTransport;
|
|
1319
1319
|
constructor(_transport: FetchTransport);
|
|
1320
|
-
send({ account, files, request }:
|
|
1320
|
+
send({ account, files, request }: CreateUploadOptions): Promise<ky.KyResponse<CreateUploadResponse>>;
|
|
1321
1321
|
}
|
|
1322
1322
|
|
|
1323
|
-
interface
|
|
1323
|
+
interface DeleteUploadOptions {
|
|
1324
1324
|
id: string;
|
|
1325
1325
|
request?: RequestInit;
|
|
1326
1326
|
}
|
|
@@ -1328,10 +1328,10 @@ type DeleteUploadResponse = Record<string, never>;
|
|
|
1328
1328
|
declare class DeleteUpload {
|
|
1329
1329
|
protected _transport: FetchTransport;
|
|
1330
1330
|
constructor(_transport: FetchTransport);
|
|
1331
|
-
send({ id, request }:
|
|
1331
|
+
send({ id, request }: DeleteUploadOptions): Promise<ky.KyResponse<DeleteUploadResponse>>;
|
|
1332
1332
|
}
|
|
1333
1333
|
|
|
1334
|
-
interface
|
|
1334
|
+
interface GetUploadOptions {
|
|
1335
1335
|
id: string;
|
|
1336
1336
|
request?: RequestInit;
|
|
1337
1337
|
}
|
|
@@ -1345,7 +1345,7 @@ type GetUploadResponse = {
|
|
|
1345
1345
|
declare class GetUpload {
|
|
1346
1346
|
protected _transport: FetchTransport;
|
|
1347
1347
|
constructor(_transport: FetchTransport);
|
|
1348
|
-
send({ id, request }:
|
|
1348
|
+
send({ id, request }: GetUploadOptions): Promise<ky.KyResponse<GetUploadResponse>>;
|
|
1349
1349
|
}
|
|
1350
1350
|
|
|
1351
1351
|
/**
|
|
@@ -1567,4 +1567,4 @@ declare class Client {
|
|
|
1567
1567
|
get webhook(): Webhook;
|
|
1568
1568
|
}
|
|
1569
1569
|
|
|
1570
|
-
export { type Model as $, type Authentication as A, type Boilerplate as B, Client as C, type ListLabelContactsResponse as D, type UpdateContactResponse as E, type GetConversationResponse as F, type GetBoilerplateResponse as G, type ListConversationsResponse as H, type ListLabelConversationsResponse as I, type UpdateConversationResponse as J, type ListContactConversationsResponse as K, type ListActionsResponse as L, type Label as M, type CreateLabelResponse as N, type Options as O, type DeleteLabelResponse as P, type GetLabelResponse as Q, type RequestFilterable as R, type ListLabelsResponse as S, type TwilioSendgridChannelSyncResponse as T, type UpdateBoilerplateResponse as U, type UpdateLabelResponse as V, type WebhookResponse as W, type Message as X, type ListConversationMessagesResponse as Y, type ListMessagesResponse as Z, type ListChannelMessagesResponse as _, type Conversation as a, type GetModelResponse as a0, type ListModelsResponse as a1, type CreateCorrectionResponse as a2, type CreateResponseResponse as a3, type Note as a4, type CreateContactNoteResponse as a5, type CreateConversationNoteResponse as a6, type GetNoteResponse as a7, type ListContactNotesResponse as a8, type ListConversationNotesResponse as a9, type UpdateNoteResponse as aa, type Source as ab, type GetSourceResponse as ac, type ListSourcesResponse as ad, type NotificationSubscription as ae, type CreateContactNotificationSubscriptionResponse as af, type Upload as ag, type CreateUploadResponse as ah, type GetUploadResponse as ai, type DeleteUploadResponse as aj, type Options$
|
|
1570
|
+
export { type Model as $, type Authentication as A, type Boilerplate as B, Client as C, type ListLabelContactsResponse as D, type UpdateContactResponse as E, type GetConversationResponse as F, type GetBoilerplateResponse as G, type ListConversationsResponse as H, type ListLabelConversationsResponse as I, type UpdateConversationResponse as J, type ListContactConversationsResponse as K, type ListActionsResponse as L, type Label as M, type CreateLabelResponse as N, type Options as O, type DeleteLabelResponse as P, type GetLabelResponse as Q, type RequestFilterable as R, type ListLabelsResponse as S, type TwilioSendgridChannelSyncResponse as T, type UpdateBoilerplateResponse as U, type UpdateLabelResponse as V, type WebhookResponse as W, type Message as X, type ListConversationMessagesResponse as Y, type ListMessagesResponse as Z, type ListChannelMessagesResponse as _, type Conversation as a, type GetModelResponse as a0, type ListModelsResponse as a1, type CreateCorrectionResponse as a2, type CreateResponseResponse as a3, type Note as a4, type CreateContactNoteResponse as a5, type CreateConversationNoteResponse as a6, type GetNoteResponse as a7, type ListContactNotesResponse as a8, type ListConversationNotesResponse as a9, type UpdateNoteResponse as aa, type Source as ab, type GetSourceResponse as ac, type ListSourcesResponse as ad, type NotificationSubscription as ae, type CreateContactNotificationSubscriptionResponse as af, type Upload as ag, type CreateUploadResponse as ah, type GetUploadResponse as ai, type DeleteUploadResponse as aj, type Options$3 as b, type Action as c, type CreateBoilerplateResponse as d, type ListBoilerplateCategoryBoilerplatesResponse as e, type ListBoilerplatesResponse as f, type BoilerplateCategory as g, type CreateBoilerplateCategoryResponse as h, type GetBoilerplateCategoryResponse as i, type ListBoilerplateCategoriesResponse as j, type UpdateBoilerplateCategoryResponse as k, type Channel as l, type ListChannelsResponse as m, type GetChannelResponse as n, type UpdateChannelResponse as o, type CreateChannelResponse as p, type CompositionSection as q, type GetCompositionSectionResponse as r, type ListCompositionSectionsResponse as s, type CreateCompositionSectionResponse as t, type ListChannelCompositionSectionsResponse as u, type UpdateCompositionSectionResponse as v, type Contact as w, type CreateContactResponse as x, type GetContactResponse as y, type ListContactsResponse as z };
|