@great-detail/support-sdk 0.4.7 → 0.4.9
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-WMMLOVBE.js → chunk-DLYD4NAC.js} +1 -1
- package/dist/chunk-RG2RLFZA.js +1 -0
- 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-DNJOlCyr.d.cts → index-DmPG0eRh.d.cts} +102 -69
- package/dist/{index-DNJOlCyr.d.ts → index-DmPG0eRh.d.ts} +102 -69
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-K37WTNB5.js +0 -1
|
@@ -29,34 +29,34 @@ interface RequestFilterable {
|
|
|
29
29
|
* @see https://greatdetail.com
|
|
30
30
|
*/
|
|
31
31
|
|
|
32
|
-
interface Options$
|
|
32
|
+
interface Options$M {
|
|
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$M {
|
|
40
40
|
baseURL: string;
|
|
41
41
|
}
|
|
42
|
-
interface Options$
|
|
42
|
+
interface Options$L extends Options$M {
|
|
43
43
|
baseURL: string;
|
|
44
44
|
}
|
|
45
45
|
declare class FetchTransport implements Transport {
|
|
46
46
|
client: KyInstance;
|
|
47
|
-
options: Options$
|
|
47
|
+
options: Options$L;
|
|
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$K {
|
|
54
54
|
request?: RequestInit;
|
|
55
55
|
}
|
|
56
56
|
type ListActionsResponse = {
|
|
57
57
|
actions: {
|
|
58
58
|
id: string;
|
|
59
|
-
|
|
59
|
+
status: string;
|
|
60
60
|
message: string;
|
|
61
61
|
name: string;
|
|
62
62
|
object?: string;
|
|
@@ -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$K): 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$J {
|
|
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$J): Promise<ky.KyResponse<CreateBoilerplateCategoryBoilerplateResponse>>;
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
interface Options$
|
|
121
|
+
interface Options$I {
|
|
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$I): Promise<ky.KyResponse<GetBoilerplateResponse>>;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
interface Options$
|
|
142
|
+
interface Options$H {
|
|
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$H): 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$G {
|
|
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$G): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
interface Options$
|
|
184
|
+
interface Options$F {
|
|
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$F): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
interface Options$
|
|
216
|
+
interface Options$E {
|
|
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$E): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
|
|
246
247
|
}
|
|
247
248
|
|
|
248
|
-
interface Options$
|
|
249
|
+
interface Options$D {
|
|
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$D): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
|
|
266
267
|
}
|
|
267
268
|
|
|
268
|
-
interface Options$
|
|
269
|
+
interface Options$C {
|
|
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$C): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse>>;
|
|
285
286
|
}
|
|
286
287
|
|
|
287
|
-
interface Options$
|
|
288
|
+
interface Options$B {
|
|
288
289
|
id: string;
|
|
289
290
|
body: z.infer<typeof UpdateBoilerplateCategory.SCHEMA>;
|
|
290
291
|
request?: RequestInit;
|
|
@@ -312,17 +313,17 @@ 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$B): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
|
|
316
317
|
}
|
|
317
318
|
|
|
318
|
-
interface Options$
|
|
319
|
+
interface Options$A {
|
|
319
320
|
request?: RequestInit;
|
|
320
321
|
}
|
|
321
322
|
type ListChannelsResponse = {
|
|
322
323
|
channels: ({
|
|
323
324
|
id: string;
|
|
324
325
|
name?: string;
|
|
325
|
-
|
|
326
|
+
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
326
327
|
account: string;
|
|
327
328
|
createdAt: string;
|
|
328
329
|
updatedAt?: string;
|
|
@@ -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$A): 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$z {
|
|
361
362
|
id: string;
|
|
362
363
|
vcf?: {
|
|
363
364
|
variant?: "vcard";
|
|
@@ -370,11 +371,11 @@ interface Options$y {
|
|
|
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$z): string;
|
|
375
|
+
getURL(options: Options$z): string;
|
|
375
376
|
}
|
|
376
377
|
|
|
377
|
-
interface Options$
|
|
378
|
+
interface Options$y {
|
|
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$y): Promise<ky.KyResponse<CreateContactResponse>>;
|
|
412
413
|
}
|
|
413
414
|
|
|
414
|
-
interface Options$
|
|
415
|
+
interface Options$x {
|
|
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$x): Promise<ky.KyResponse<GetContactResponse>>;
|
|
433
434
|
}
|
|
434
435
|
|
|
435
|
-
interface Options$
|
|
436
|
+
interface Options$w {
|
|
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$w): Promise<ky.KyResponse<ListContactsResponse>>;
|
|
453
454
|
}
|
|
454
455
|
|
|
455
|
-
interface Options$
|
|
456
|
+
interface Options$v {
|
|
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$v): Promise<ky.KyResponse<ListLabelContactsResponse>>;
|
|
474
475
|
}
|
|
475
476
|
|
|
476
|
-
interface Options$
|
|
477
|
+
interface Options$u {
|
|
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$u): Promise<ky.KyResponse<UpdateContactResponse>>;
|
|
509
510
|
}
|
|
510
511
|
|
|
511
|
-
interface Options$
|
|
512
|
+
interface Options$t {
|
|
512
513
|
id: string;
|
|
513
514
|
request?: RequestInit;
|
|
514
515
|
}
|
|
@@ -517,7 +518,7 @@ type GetConversationResponse = {
|
|
|
517
518
|
id: string;
|
|
518
519
|
name?: string;
|
|
519
520
|
hasEnded: boolean;
|
|
520
|
-
|
|
521
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
521
522
|
accountChannel: string;
|
|
522
523
|
createdAt: string;
|
|
523
524
|
updatedAt: string;
|
|
@@ -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$t): Promise<ky.KyResponse<GetConversationResponse>>;
|
|
530
531
|
}
|
|
531
532
|
|
|
532
|
-
interface Options$
|
|
533
|
+
interface Options$s {
|
|
533
534
|
id: string;
|
|
534
535
|
request?: RequestInit;
|
|
535
536
|
}
|
|
@@ -538,7 +539,7 @@ type ListContactConversationsResponse = {
|
|
|
538
539
|
id: string;
|
|
539
540
|
name?: string;
|
|
540
541
|
hasEnded: boolean;
|
|
541
|
-
|
|
542
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
542
543
|
accountChannel: string;
|
|
543
544
|
createdAt: string;
|
|
544
545
|
updatedAt: string;
|
|
@@ -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$s): Promise<ky.KyResponse<ListContactConversationsResponse>>;
|
|
551
552
|
}
|
|
552
553
|
|
|
553
|
-
interface Options$
|
|
554
|
+
interface Options$r {
|
|
554
555
|
request?: RequestInit;
|
|
555
556
|
}
|
|
556
557
|
type ListConversationsResponse = {
|
|
@@ -558,7 +559,7 @@ type ListConversationsResponse = {
|
|
|
558
559
|
id: string;
|
|
559
560
|
name?: string;
|
|
560
561
|
hasEnded: boolean;
|
|
561
|
-
|
|
562
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
562
563
|
accountChannel: string;
|
|
563
564
|
createdAt: string;
|
|
564
565
|
updatedAt: string;
|
|
@@ -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$r): Promise<ky.KyResponse<ListConversationsResponse>>;
|
|
571
572
|
}
|
|
572
573
|
|
|
573
|
-
interface Options$
|
|
574
|
+
interface Options$q {
|
|
574
575
|
id: string;
|
|
575
576
|
request?: RequestInit;
|
|
576
577
|
}
|
|
@@ -579,7 +580,7 @@ type ListLabelConversationsResponse = {
|
|
|
579
580
|
id: string;
|
|
580
581
|
name?: string;
|
|
581
582
|
hasEnded: boolean;
|
|
582
|
-
|
|
583
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
583
584
|
accountChannel: string;
|
|
584
585
|
createdAt: string;
|
|
585
586
|
updatedAt: string;
|
|
@@ -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$q): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
|
|
592
593
|
}
|
|
593
594
|
|
|
594
|
-
interface Options$
|
|
595
|
+
interface Options$p {
|
|
595
596
|
id: string;
|
|
596
597
|
body: z.infer<typeof UpdateConversation.SCHEMA>;
|
|
597
598
|
request?: RequestInit;
|
|
@@ -601,7 +602,7 @@ type UpdateConversationResponse = {
|
|
|
601
602
|
id: string;
|
|
602
603
|
name?: string;
|
|
603
604
|
hasEnded: boolean;
|
|
604
|
-
|
|
605
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
605
606
|
accountChannel: string;
|
|
606
607
|
createdAt: string;
|
|
607
608
|
updatedAt: string;
|
|
@@ -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$p): Promise<ky.KyResponse<UpdateConversationResponse>>;
|
|
624
625
|
}
|
|
625
626
|
|
|
626
|
-
interface Options$
|
|
627
|
+
interface Options$o {
|
|
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$o): Promise<ky.KyResponse<CreateLabelResponse>>;
|
|
657
658
|
}
|
|
658
659
|
|
|
659
|
-
interface Options$
|
|
660
|
+
interface Options$n {
|
|
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$n): Promise<ky.KyResponse<DeleteLabelResponse>>;
|
|
668
669
|
}
|
|
669
670
|
|
|
670
|
-
interface Options$
|
|
671
|
+
interface Options$m {
|
|
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$m): Promise<ky.KyResponse<GetLabelResponse>>;
|
|
688
689
|
}
|
|
689
690
|
|
|
690
|
-
interface Options$
|
|
691
|
+
interface Options$l {
|
|
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$l): Promise<ky.KyResponse<ListLabelsResponse>>;
|
|
707
708
|
}
|
|
708
709
|
|
|
709
|
-
interface Options$
|
|
710
|
+
interface Options$k {
|
|
710
711
|
id: string;
|
|
711
712
|
body: z.infer<typeof UpdateLabel.SCHEMA>;
|
|
712
713
|
request?: RequestInit;
|
|
@@ -734,7 +735,36 @@ 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$k): Promise<ky.KyResponse<UpdateLabelResponse>>;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
interface Options$j {
|
|
742
|
+
id: string;
|
|
743
|
+
request?: RequestInit;
|
|
744
|
+
}
|
|
745
|
+
type ListChannelMessagesResponse = {
|
|
746
|
+
messages: {
|
|
747
|
+
id: string;
|
|
748
|
+
role: "user" | "assistant";
|
|
749
|
+
status: string;
|
|
750
|
+
externalIdentifier?: string;
|
|
751
|
+
conversation: string;
|
|
752
|
+
contact: string;
|
|
753
|
+
messageEvents: {
|
|
754
|
+
id: string;
|
|
755
|
+
messageEventType: string;
|
|
756
|
+
triggeredAt: string;
|
|
757
|
+
createdAt: string;
|
|
758
|
+
updatedAt?: string;
|
|
759
|
+
}[];
|
|
760
|
+
createdAt: string;
|
|
761
|
+
updatedAt: string;
|
|
762
|
+
}[];
|
|
763
|
+
};
|
|
764
|
+
declare class ListChannelMessages {
|
|
765
|
+
protected _transport: FetchTransport;
|
|
766
|
+
constructor(_transport: FetchTransport);
|
|
767
|
+
send({ id, request }: Options$j): Promise<ky.KyResponse<ListChannelMessagesResponse>>;
|
|
738
768
|
}
|
|
739
769
|
|
|
740
770
|
interface Options$i {
|
|
@@ -745,7 +775,7 @@ type ListConversationMessagesResponse = {
|
|
|
745
775
|
messages: {
|
|
746
776
|
id: string;
|
|
747
777
|
role: "user" | "assistant";
|
|
748
|
-
|
|
778
|
+
status: string;
|
|
749
779
|
externalIdentifier?: string;
|
|
750
780
|
conversation: string;
|
|
751
781
|
contact: string;
|
|
@@ -773,7 +803,7 @@ type ListMessagesResponse = {
|
|
|
773
803
|
messages: {
|
|
774
804
|
id: string;
|
|
775
805
|
role: "user" | "assistant";
|
|
776
|
-
|
|
806
|
+
status: string;
|
|
777
807
|
externalIdentifier?: string;
|
|
778
808
|
conversation: string;
|
|
779
809
|
contact: string;
|
|
@@ -1269,6 +1299,9 @@ declare class Client {
|
|
|
1269
1299
|
};
|
|
1270
1300
|
get channel(): {
|
|
1271
1301
|
list: ListChannels;
|
|
1302
|
+
message: {
|
|
1303
|
+
list: ListChannelMessages;
|
|
1304
|
+
};
|
|
1272
1305
|
};
|
|
1273
1306
|
get contact(): {
|
|
1274
1307
|
get: GetContact;
|
|
@@ -1343,4 +1376,4 @@ declare class Client {
|
|
|
1343
1376
|
get webhook(): Webhook;
|
|
1344
1377
|
}
|
|
1345
1378
|
|
|
1346
|
-
export { type Authentication as A, type
|
|
1379
|
+
export { type Authentication as A, type GetModelResponse as B, Client as C, type DeleteLabelResponse as D, type ListModelsResponse as E, type CreateCorrectionResponse as F, type GetBoilerplateResponse as G, type CreateResponseResponse as H, type CreateContactNoteResponse as I, type CreateConversationNoteResponse as J, type GetNoteResponse as K, type ListActionsResponse as L, type ListContactNotesResponse as M, type ListConversationNotesResponse as N, type Options as O, type UpdateNoteResponse as P, type GetSourceResponse as Q, type RequestFilterable as R, type ListSourcesResponse as S, type CreateContactNotificationSubscriptionResponse as T, type UpdateBoilerplateResponse as U, type CreateUploadResponse as V, type WebhookResponse as W, type GetUploadResponse as X, type Options$M 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 ListChannelMessagesResponse as z };
|