@great-detail/support-sdk 0.4.8 → 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-XDIXHCJB.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-Br3bu497.d.cts → index-DmPG0eRh.d.cts} +101 -69
- package/dist/{index-Br3bu497.d.ts → index-DmPG0eRh.d.ts} +101 -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-LM2GWKIZ.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,7 @@ type ListBoilerplateCategoryBoilerplatesResponse = {
|
|
|
160
160
|
}[];
|
|
161
161
|
};
|
|
162
162
|
|
|
163
|
-
interface Options$
|
|
163
|
+
interface Options$G {
|
|
164
164
|
query?: string;
|
|
165
165
|
request?: RequestInit;
|
|
166
166
|
}
|
|
@@ -178,10 +178,10 @@ type ListBoilerplatesResponse = {
|
|
|
178
178
|
declare class ListBoilerplates {
|
|
179
179
|
protected _transport: FetchTransport;
|
|
180
180
|
constructor(_transport: FetchTransport);
|
|
181
|
-
send({ query, request }?: Options$
|
|
181
|
+
send({ query, request }?: Options$G): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
interface Options$
|
|
184
|
+
interface Options$F {
|
|
185
185
|
id: string;
|
|
186
186
|
body: z.infer<typeof UpdateBoilerplate.SCHEMA>;
|
|
187
187
|
request?: RequestInit;
|
|
@@ -210,10 +210,10 @@ declare class UpdateBoilerplate {
|
|
|
210
210
|
content?: string | undefined;
|
|
211
211
|
}>;
|
|
212
212
|
constructor(_transport: FetchTransport);
|
|
213
|
-
send({ id, body, request }: Options$
|
|
213
|
+
send({ id, body, request }: Options$F): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
interface Options$
|
|
216
|
+
interface Options$E {
|
|
217
217
|
body: z.infer<typeof CreateBoilerplateCategory.SCHEMA>;
|
|
218
218
|
request?: RequestInit;
|
|
219
219
|
}
|
|
@@ -243,10 +243,10 @@ declare class CreateBoilerplateCategory {
|
|
|
243
243
|
description?: string | undefined;
|
|
244
244
|
}>;
|
|
245
245
|
constructor(_transport: FetchTransport);
|
|
246
|
-
send({ body, request }: Options$
|
|
246
|
+
send({ body, request }: Options$E): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
interface Options$
|
|
249
|
+
interface Options$D {
|
|
250
250
|
id: string;
|
|
251
251
|
request?: RequestInit;
|
|
252
252
|
}
|
|
@@ -263,10 +263,10 @@ type GetBoilerplateCategoryResponse = {
|
|
|
263
263
|
declare class GetBoilerplateCategory {
|
|
264
264
|
protected _transport: FetchTransport;
|
|
265
265
|
constructor(_transport: FetchTransport);
|
|
266
|
-
send({ id, request }: Options$
|
|
266
|
+
send({ id, request }: Options$D): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
interface Options$
|
|
269
|
+
interface Options$C {
|
|
270
270
|
request?: RequestInit;
|
|
271
271
|
}
|
|
272
272
|
type ListBoilerplateCategoriesResponse = {
|
|
@@ -282,10 +282,10 @@ type ListBoilerplateCategoriesResponse = {
|
|
|
282
282
|
declare class ListBoilerplateCategories {
|
|
283
283
|
protected _transport: FetchTransport;
|
|
284
284
|
constructor(_transport: FetchTransport);
|
|
285
|
-
send({ request }?: Options$
|
|
285
|
+
send({ request }?: Options$C): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse>>;
|
|
286
286
|
}
|
|
287
287
|
|
|
288
|
-
interface Options$
|
|
288
|
+
interface Options$B {
|
|
289
289
|
id: string;
|
|
290
290
|
body: z.infer<typeof UpdateBoilerplateCategory.SCHEMA>;
|
|
291
291
|
request?: RequestInit;
|
|
@@ -313,17 +313,17 @@ declare class UpdateBoilerplateCategory {
|
|
|
313
313
|
description?: string | undefined;
|
|
314
314
|
}>;
|
|
315
315
|
constructor(_transport: FetchTransport);
|
|
316
|
-
send({ id, body, request }: Options$
|
|
316
|
+
send({ id, body, request }: Options$B): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
-
interface Options$
|
|
319
|
+
interface Options$A {
|
|
320
320
|
request?: RequestInit;
|
|
321
321
|
}
|
|
322
322
|
type ListChannelsResponse = {
|
|
323
323
|
channels: ({
|
|
324
324
|
id: string;
|
|
325
325
|
name?: string;
|
|
326
|
-
|
|
326
|
+
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
327
327
|
account: string;
|
|
328
328
|
createdAt: string;
|
|
329
329
|
updatedAt?: string;
|
|
@@ -346,7 +346,7 @@ type ListChannelsResponse = {
|
|
|
346
346
|
declare class ListChannels {
|
|
347
347
|
protected _transport: FetchTransport;
|
|
348
348
|
constructor(_transport: FetchTransport);
|
|
349
|
-
send({ request }?: Options$
|
|
349
|
+
send({ request }?: Options$A): Promise<ky.KyResponse<ListChannelsResponse>>;
|
|
350
350
|
}
|
|
351
351
|
|
|
352
352
|
/**
|
|
@@ -358,7 +358,7 @@ declare class ListChannels {
|
|
|
358
358
|
* @see https://greatdetail.com
|
|
359
359
|
*/
|
|
360
360
|
|
|
361
|
-
interface Options$
|
|
361
|
+
interface Options$z {
|
|
362
362
|
id: string;
|
|
363
363
|
vcf?: {
|
|
364
364
|
variant?: "vcard";
|
|
@@ -371,11 +371,11 @@ interface Options$y {
|
|
|
371
371
|
declare class GetContactVCFURL {
|
|
372
372
|
protected _transport: FetchTransport;
|
|
373
373
|
constructor(_transport: FetchTransport);
|
|
374
|
-
getRelativeURL({ id, vcf }: Options$
|
|
375
|
-
getURL(options: Options$
|
|
374
|
+
getRelativeURL({ id, vcf }: Options$z): string;
|
|
375
|
+
getURL(options: Options$z): string;
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
interface Options$
|
|
378
|
+
interface Options$y {
|
|
379
379
|
body: z.infer<typeof CreateContact.SCHEMA>;
|
|
380
380
|
request?: RequestInit;
|
|
381
381
|
}
|
|
@@ -409,10 +409,10 @@ declare class CreateContact {
|
|
|
409
409
|
telephoneNumber?: string | undefined;
|
|
410
410
|
}>;
|
|
411
411
|
constructor(_transport: FetchTransport);
|
|
412
|
-
send({ body, request }: Options$
|
|
412
|
+
send({ body, request }: Options$y): Promise<ky.KyResponse<CreateContactResponse>>;
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
interface Options$
|
|
415
|
+
interface Options$x {
|
|
416
416
|
id: string;
|
|
417
417
|
request?: RequestInit;
|
|
418
418
|
}
|
|
@@ -430,10 +430,10 @@ type GetContactResponse = {
|
|
|
430
430
|
declare class GetContact {
|
|
431
431
|
protected _transport: FetchTransport;
|
|
432
432
|
constructor(_transport: FetchTransport);
|
|
433
|
-
send({ id, request }: Options$
|
|
433
|
+
send({ id, request }: Options$x): Promise<ky.KyResponse<GetContactResponse>>;
|
|
434
434
|
}
|
|
435
435
|
|
|
436
|
-
interface Options$
|
|
436
|
+
interface Options$w {
|
|
437
437
|
request?: RequestInit;
|
|
438
438
|
}
|
|
439
439
|
type ListContactsResponse = {
|
|
@@ -450,10 +450,10 @@ type ListContactsResponse = {
|
|
|
450
450
|
declare class ListContacts {
|
|
451
451
|
protected _transport: FetchTransport;
|
|
452
452
|
constructor(_transport: FetchTransport);
|
|
453
|
-
send({ request }?: Options$
|
|
453
|
+
send({ request }?: Options$w): Promise<ky.KyResponse<ListContactsResponse>>;
|
|
454
454
|
}
|
|
455
455
|
|
|
456
|
-
interface Options$
|
|
456
|
+
interface Options$v {
|
|
457
457
|
id: string;
|
|
458
458
|
request?: RequestInit;
|
|
459
459
|
}
|
|
@@ -471,10 +471,10 @@ type ListLabelContactsResponse = {
|
|
|
471
471
|
declare class ListLabelContacts {
|
|
472
472
|
protected _transport: FetchTransport;
|
|
473
473
|
constructor(_transport: FetchTransport);
|
|
474
|
-
send({ id, request }: Options$
|
|
474
|
+
send({ id, request }: Options$v): Promise<ky.KyResponse<ListLabelContactsResponse>>;
|
|
475
475
|
}
|
|
476
476
|
|
|
477
|
-
interface Options$
|
|
477
|
+
interface Options$u {
|
|
478
478
|
id: string;
|
|
479
479
|
body: z.infer<typeof UpdateContact.SCHEMA>;
|
|
480
480
|
request?: RequestInit;
|
|
@@ -506,10 +506,10 @@ declare class UpdateContact {
|
|
|
506
506
|
telephoneNumber?: string | undefined;
|
|
507
507
|
}>;
|
|
508
508
|
constructor(_transport: FetchTransport);
|
|
509
|
-
send({ id, body, request }: Options$
|
|
509
|
+
send({ id, body, request }: Options$u): Promise<ky.KyResponse<UpdateContactResponse>>;
|
|
510
510
|
}
|
|
511
511
|
|
|
512
|
-
interface Options$
|
|
512
|
+
interface Options$t {
|
|
513
513
|
id: string;
|
|
514
514
|
request?: RequestInit;
|
|
515
515
|
}
|
|
@@ -518,7 +518,7 @@ type GetConversationResponse = {
|
|
|
518
518
|
id: string;
|
|
519
519
|
name?: string;
|
|
520
520
|
hasEnded: boolean;
|
|
521
|
-
|
|
521
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
522
522
|
accountChannel: string;
|
|
523
523
|
createdAt: string;
|
|
524
524
|
updatedAt: string;
|
|
@@ -527,10 +527,10 @@ type GetConversationResponse = {
|
|
|
527
527
|
declare class GetConversation {
|
|
528
528
|
protected _transport: FetchTransport;
|
|
529
529
|
constructor(_transport: FetchTransport);
|
|
530
|
-
send({ id, request }: Options$
|
|
530
|
+
send({ id, request }: Options$t): Promise<ky.KyResponse<GetConversationResponse>>;
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
interface Options$
|
|
533
|
+
interface Options$s {
|
|
534
534
|
id: string;
|
|
535
535
|
request?: RequestInit;
|
|
536
536
|
}
|
|
@@ -539,7 +539,7 @@ type ListContactConversationsResponse = {
|
|
|
539
539
|
id: string;
|
|
540
540
|
name?: string;
|
|
541
541
|
hasEnded: boolean;
|
|
542
|
-
|
|
542
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
543
543
|
accountChannel: string;
|
|
544
544
|
createdAt: string;
|
|
545
545
|
updatedAt: string;
|
|
@@ -548,10 +548,10 @@ type ListContactConversationsResponse = {
|
|
|
548
548
|
declare class ListContactConversations {
|
|
549
549
|
protected _transport: FetchTransport;
|
|
550
550
|
constructor(_transport: FetchTransport);
|
|
551
|
-
send({ id, request }: Options$
|
|
551
|
+
send({ id, request }: Options$s): Promise<ky.KyResponse<ListContactConversationsResponse>>;
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
-
interface Options$
|
|
554
|
+
interface Options$r {
|
|
555
555
|
request?: RequestInit;
|
|
556
556
|
}
|
|
557
557
|
type ListConversationsResponse = {
|
|
@@ -559,7 +559,7 @@ type ListConversationsResponse = {
|
|
|
559
559
|
id: string;
|
|
560
560
|
name?: string;
|
|
561
561
|
hasEnded: boolean;
|
|
562
|
-
|
|
562
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
563
563
|
accountChannel: string;
|
|
564
564
|
createdAt: string;
|
|
565
565
|
updatedAt: string;
|
|
@@ -568,10 +568,10 @@ type ListConversationsResponse = {
|
|
|
568
568
|
declare class ListConversations {
|
|
569
569
|
protected _transport: FetchTransport;
|
|
570
570
|
constructor(_transport: FetchTransport);
|
|
571
|
-
send({ request }?: Options$
|
|
571
|
+
send({ request }?: Options$r): Promise<ky.KyResponse<ListConversationsResponse>>;
|
|
572
572
|
}
|
|
573
573
|
|
|
574
|
-
interface Options$
|
|
574
|
+
interface Options$q {
|
|
575
575
|
id: string;
|
|
576
576
|
request?: RequestInit;
|
|
577
577
|
}
|
|
@@ -580,7 +580,7 @@ type ListLabelConversationsResponse = {
|
|
|
580
580
|
id: string;
|
|
581
581
|
name?: string;
|
|
582
582
|
hasEnded: boolean;
|
|
583
|
-
|
|
583
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
584
584
|
accountChannel: string;
|
|
585
585
|
createdAt: string;
|
|
586
586
|
updatedAt: string;
|
|
@@ -589,10 +589,10 @@ type ListLabelConversationsResponse = {
|
|
|
589
589
|
declare class ListLabelConversations {
|
|
590
590
|
protected _transport: FetchTransport;
|
|
591
591
|
constructor(_transport: FetchTransport);
|
|
592
|
-
send({ id, request }: Options$
|
|
592
|
+
send({ id, request }: Options$q): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
|
|
593
593
|
}
|
|
594
594
|
|
|
595
|
-
interface Options$
|
|
595
|
+
interface Options$p {
|
|
596
596
|
id: string;
|
|
597
597
|
body: z.infer<typeof UpdateConversation.SCHEMA>;
|
|
598
598
|
request?: RequestInit;
|
|
@@ -602,7 +602,7 @@ type UpdateConversationResponse = {
|
|
|
602
602
|
id: string;
|
|
603
603
|
name?: string;
|
|
604
604
|
hasEnded: boolean;
|
|
605
|
-
|
|
605
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
606
606
|
accountChannel: string;
|
|
607
607
|
createdAt: string;
|
|
608
608
|
updatedAt: string;
|
|
@@ -621,10 +621,10 @@ declare class UpdateConversation {
|
|
|
621
621
|
hasEnded?: boolean | undefined;
|
|
622
622
|
}>;
|
|
623
623
|
constructor(_transport: FetchTransport);
|
|
624
|
-
send({ id, body, request }: Options$
|
|
624
|
+
send({ id, body, request }: Options$p): Promise<ky.KyResponse<UpdateConversationResponse>>;
|
|
625
625
|
}
|
|
626
626
|
|
|
627
|
-
interface Options$
|
|
627
|
+
interface Options$o {
|
|
628
628
|
body: z.infer<typeof CreateLabel.SCHEMA>;
|
|
629
629
|
request?: RequestInit;
|
|
630
630
|
}
|
|
@@ -654,10 +654,10 @@ declare class CreateLabel {
|
|
|
654
654
|
description?: string | undefined;
|
|
655
655
|
}>;
|
|
656
656
|
constructor(_transport: FetchTransport);
|
|
657
|
-
send({ body, request }: Options$
|
|
657
|
+
send({ body, request }: Options$o): Promise<ky.KyResponse<CreateLabelResponse>>;
|
|
658
658
|
}
|
|
659
659
|
|
|
660
|
-
interface Options$
|
|
660
|
+
interface Options$n {
|
|
661
661
|
id: string;
|
|
662
662
|
request?: RequestInit;
|
|
663
663
|
}
|
|
@@ -665,10 +665,10 @@ type DeleteLabelResponse = Record<string, never>;
|
|
|
665
665
|
declare class DeleteLabel {
|
|
666
666
|
protected _transport: FetchTransport;
|
|
667
667
|
constructor(_transport: FetchTransport);
|
|
668
|
-
send({ id, request }: Options$
|
|
668
|
+
send({ id, request }: Options$n): Promise<ky.KyResponse<DeleteLabelResponse>>;
|
|
669
669
|
}
|
|
670
670
|
|
|
671
|
-
interface Options$
|
|
671
|
+
interface Options$m {
|
|
672
672
|
id: string;
|
|
673
673
|
request?: RequestInit;
|
|
674
674
|
}
|
|
@@ -685,10 +685,10 @@ type GetLabelResponse = {
|
|
|
685
685
|
declare class GetLabel {
|
|
686
686
|
protected _transport: FetchTransport;
|
|
687
687
|
constructor(_transport: FetchTransport);
|
|
688
|
-
send({ id, request }: Options$
|
|
688
|
+
send({ id, request }: Options$m): Promise<ky.KyResponse<GetLabelResponse>>;
|
|
689
689
|
}
|
|
690
690
|
|
|
691
|
-
interface Options$
|
|
691
|
+
interface Options$l {
|
|
692
692
|
request?: RequestInit;
|
|
693
693
|
}
|
|
694
694
|
type ListLabelsResponse = {
|
|
@@ -704,10 +704,10 @@ type ListLabelsResponse = {
|
|
|
704
704
|
declare class ListLabels {
|
|
705
705
|
protected _transport: FetchTransport;
|
|
706
706
|
constructor(_transport: FetchTransport);
|
|
707
|
-
send({ request }?: Options$
|
|
707
|
+
send({ request }?: Options$l): Promise<ky.KyResponse<ListLabelsResponse>>;
|
|
708
708
|
}
|
|
709
709
|
|
|
710
|
-
interface Options$
|
|
710
|
+
interface Options$k {
|
|
711
711
|
id: string;
|
|
712
712
|
body: z.infer<typeof UpdateLabel.SCHEMA>;
|
|
713
713
|
request?: RequestInit;
|
|
@@ -735,7 +735,36 @@ declare class UpdateLabel {
|
|
|
735
735
|
description?: string | undefined;
|
|
736
736
|
}>;
|
|
737
737
|
constructor(_transport: FetchTransport);
|
|
738
|
-
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>>;
|
|
739
768
|
}
|
|
740
769
|
|
|
741
770
|
interface Options$i {
|
|
@@ -746,7 +775,7 @@ type ListConversationMessagesResponse = {
|
|
|
746
775
|
messages: {
|
|
747
776
|
id: string;
|
|
748
777
|
role: "user" | "assistant";
|
|
749
|
-
|
|
778
|
+
status: string;
|
|
750
779
|
externalIdentifier?: string;
|
|
751
780
|
conversation: string;
|
|
752
781
|
contact: string;
|
|
@@ -774,7 +803,7 @@ type ListMessagesResponse = {
|
|
|
774
803
|
messages: {
|
|
775
804
|
id: string;
|
|
776
805
|
role: "user" | "assistant";
|
|
777
|
-
|
|
806
|
+
status: string;
|
|
778
807
|
externalIdentifier?: string;
|
|
779
808
|
conversation: string;
|
|
780
809
|
contact: string;
|
|
@@ -1270,6 +1299,9 @@ declare class Client {
|
|
|
1270
1299
|
};
|
|
1271
1300
|
get channel(): {
|
|
1272
1301
|
list: ListChannels;
|
|
1302
|
+
message: {
|
|
1303
|
+
list: ListChannelMessages;
|
|
1304
|
+
};
|
|
1273
1305
|
};
|
|
1274
1306
|
get contact(): {
|
|
1275
1307
|
get: GetContact;
|
|
@@ -1344,4 +1376,4 @@ declare class Client {
|
|
|
1344
1376
|
get webhook(): Webhook;
|
|
1345
1377
|
}
|
|
1346
1378
|
|
|
1347
|
-
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 };
|