@great-detail/support-sdk 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +59 -0
  2. package/dist/chunk-PWDTRAX2.js +1 -0
  3. package/dist/chunk-QYWS5WK5.js +1 -0
  4. package/dist/cli/index.cjs +1 -0
  5. package/dist/cli/index.d.cts +21 -0
  6. package/dist/cli/index.d.ts +21 -0
  7. package/dist/cli/index.js +1 -0
  8. package/dist/cli.cjs +1 -1
  9. package/dist/cli.js +1 -1
  10. package/dist/index-ByUz_hOL.d.cts +728 -0
  11. package/dist/index-ByUz_hOL.d.ts +728 -0
  12. package/dist/index.cjs +1 -1
  13. package/dist/index.d.cts +8 -655
  14. package/dist/index.d.ts +8 -655
  15. package/dist/index.js +1 -1
  16. package/package.json +15 -8
  17. package/src/Action/ListActions.ts +6 -2
  18. package/src/Authentication/KeyAuthentication.ts +7 -3
  19. package/src/Authentication/TokenAuthentication.ts +2 -1
  20. package/src/Authentication/index.ts +2 -1
  21. package/src/Channel/ListChannels.ts +20 -3
  22. package/src/Client/index.ts +2 -0
  23. package/src/Contact/GetContact.ts +1 -0
  24. package/src/Contact/ListContacts.ts +1 -0
  25. package/src/Conversation/GetConversation.ts +1 -0
  26. package/src/Conversation/ListConversations.ts +1 -0
  27. package/src/Conversation/UpdateConversation.ts +62 -0
  28. package/src/Label/CreateLabel.ts +1 -0
  29. package/src/Label/GetLabel.ts +1 -0
  30. package/src/Label/ListLabels.ts +1 -0
  31. package/src/Message/ListMessages.ts +7 -0
  32. package/src/Model/GetModel.ts +2 -2
  33. package/src/Model/ListModels.ts +2 -2
  34. package/src/Source/GetSource.ts +2 -1
  35. package/src/Source/ListSources.ts +2 -1
  36. package/src/__tests__/Authentication/KeyAuthentication.test.ts +79 -0
  37. package/src/__tests__/Authentication/TokenAuthentication.test.ts +79 -0
  38. package/src/cli/actions.ts +1 -1
  39. package/src/cli/channels.ts +1 -1
  40. package/src/cli/contacts.ts +1 -1
  41. package/src/cli/conversations.ts +1 -1
  42. package/src/cli/labels.ts +1 -1
  43. package/src/cli/messages.ts +1 -1
  44. package/src/cli/models.ts +1 -1
  45. package/src/cli/sources.ts +1 -1
  46. package/src/constants/index.ts +21 -0
  47. package/dist/chunk-BFO7RVLV.js +0 -1
package/dist/index.d.cts CHANGED
@@ -1,4 +1,6 @@
1
- import { z } from 'zod';
1
+ import { A as Authentication } from './index-ByUz_hOL.cjs';
2
+ export { C as Client, h as CreateCorrectionResponsePayload, d as CreateLabelResponsePayload, i as CreateResponseResponsePayload, G as GetConversationResponsePayload, L as ListActionsResponsePayload, a as ListChannelsResponsePayload, b as ListContactsResponsePayload, c as ListConversationsResponsePayload, e as ListLabelsResponsePayload, f as ListMessagesResponsePayload, g as ListModelsResponsePayload, j as ListSourcesResponsePayload, R as RequestFilterable, C as default } from './index-ByUz_hOL.cjs';
3
+ import 'zod';
2
4
 
3
5
  /**
4
6
  * Great Detail Support System.
@@ -23,32 +25,8 @@ declare const DEFAULT_SUPPORT_BASE_URL = "https://api.support.greatdetail.com";
23
25
  * @author Dom Webber <dom.webber@greatdetail.com>
24
26
  * @see https://greatdetail.com
25
27
  */
26
- interface RequestFilterable {
27
- filter(request: RequestInit): Promise<RequestInit>;
28
- }
29
-
30
- /**
31
- * Great Detail Support System.
32
- *
33
- * @copyright 2024 Great Detail Ltd
34
- * @author Great Detail Ltd <info@greatdetail.com>
35
- * @author Dom Webber <dom.webber@greatdetail.com>
36
- * @see https://greatdetail.com
37
- */
38
-
39
- interface Authentication extends RequestFilterable {
40
- }
41
28
 
42
- /**
43
- * Great Detail Support System.
44
- *
45
- * @copyright 2024 Great Detail Ltd
46
- * @author Great Detail Ltd <info@greatdetail.com>
47
- * @author Dom Webber <dom.webber@greatdetail.com>
48
- * @see https://greatdetail.com
49
- */
50
-
51
- interface Options$h {
29
+ interface Options$1 {
52
30
  name?: string;
53
31
  key?: string;
54
32
  }
@@ -56,7 +34,7 @@ declare class KeyAuthentication implements Authentication {
56
34
  #private;
57
35
  static DEFAULT_NAME: string;
58
36
  name: string;
59
- constructor({ name, key, }?: Options$h);
37
+ constructor({ name, key, }?: Options$1);
60
38
  filter(request: RequestInit): Promise<RequestInit>;
61
39
  }
62
40
 
@@ -69,12 +47,12 @@ declare class KeyAuthentication implements Authentication {
69
47
  * @see https://greatdetail.com
70
48
  */
71
49
 
72
- interface Options$g {
50
+ interface Options {
73
51
  token?: string;
74
52
  }
75
53
  declare class TokenAuthentication implements Authentication {
76
54
  #private;
77
- constructor({ token }?: Options$g);
55
+ constructor({ token }?: Options);
78
56
  filter(request: RequestInit): Promise<RequestInit>;
79
57
  }
80
58
 
@@ -97,629 +75,4 @@ declare class PublicAuthentication implements Authentication {
97
75
  filter(request: RequestInit): Promise<RequestInit>;
98
76
  }
99
77
 
100
- /**
101
- * Great Detail Support System.
102
- *
103
- * @copyright 2024 Great Detail Ltd
104
- * @author Great Detail Ltd <info@greatdetail.com>
105
- * @author Dom Webber <dom.webber@greatdetail.com>
106
- * @see https://greatdetail.com
107
- */
108
-
109
- interface Options$f extends SendOptions {
110
- request?: RequestInit;
111
- }
112
- declare class ListActionsRequest {
113
- protected _client: Client;
114
- constructor(_client: Client);
115
- send({ request, ...options }?: Options$f): Promise<ListActionsResponse>;
116
- }
117
- type ListActionsResponsePayload = {
118
- actions: {
119
- id: string;
120
- actionStatus: string;
121
- object?: unknown;
122
- result?: unknown;
123
- startedAt?: string;
124
- endedAt?: string;
125
- }[];
126
- };
127
- declare class ListActionsResponse {
128
- response: Response;
129
- constructor(response: Response);
130
- result(): Promise<ListActionsResponsePayload>;
131
- }
132
-
133
- /**
134
- * Great Detail Support System.
135
- *
136
- * @copyright 2024 Great Detail Ltd
137
- * @author Great Detail Ltd <info@greatdetail.com>
138
- * @author Dom Webber <dom.webber@greatdetail.com>
139
- * @see https://greatdetail.com
140
- */
141
-
142
- interface Options$e extends SendOptions {
143
- request?: RequestInit;
144
- }
145
- declare class ListChannelsRequest {
146
- protected _client: Client;
147
- constructor(_client: Client);
148
- send({ request, ...options }?: Options$e): Promise<ListChannelsResponse>;
149
- }
150
- type ListChannelsResponsePayload = {
151
- channels: {
152
- id: string;
153
- name?: string;
154
- channelStatus: "ActiveChannelStatus" | "PotentialChannelStatus";
155
- source: "twilio-sendgrid" | "meta-whatsapp";
156
- createdAt: string;
157
- updatedAt?: string;
158
- }[];
159
- };
160
- declare class ListChannelsResponse {
161
- response: Response;
162
- constructor(response: Response);
163
- result(): Promise<ListChannelsResponsePayload>;
164
- }
165
-
166
- /**
167
- * Great Detail Support System.
168
- *
169
- * @copyright 2024 Great Detail Ltd
170
- * @author Great Detail Ltd <info@greatdetail.com>
171
- * @author Dom Webber <dom.webber@greatdetail.com>
172
- * @see https://greatdetail.com
173
- */
174
-
175
- interface Options$d extends SendOptions {
176
- id: string;
177
- request?: RequestInit;
178
- }
179
- declare class GetContactRequest {
180
- protected _client: Client;
181
- constructor(_client: Client);
182
- send({ id, request, ...options }: Options$d): Promise<GetContactResponse>;
183
- }
184
- type GetContactResponsePayload = {
185
- contact: {
186
- id: string;
187
- name?: string;
188
- emailAddress?: string;
189
- telephoneNumber?: string;
190
- createdAt: string;
191
- updatedAt?: string;
192
- };
193
- };
194
- declare class GetContactResponse {
195
- response: Response;
196
- constructor(response: Response);
197
- result(): Promise<GetContactResponsePayload>;
198
- }
199
-
200
- /**
201
- * Great Detail Support System.
202
- *
203
- * @copyright 2024 Great Detail Ltd
204
- * @author Great Detail Ltd <info@greatdetail.com>
205
- * @author Dom Webber <dom.webber@greatdetail.com>
206
- * @see https://greatdetail.com
207
- */
208
-
209
- interface Options$c extends SendOptions {
210
- request?: RequestInit;
211
- }
212
- declare class ListContactsRequest {
213
- protected _client: Client;
214
- constructor(_client: Client);
215
- send({ request, ...options }?: Options$c): Promise<ListContactsResponse>;
216
- }
217
- type ListContactsResponsePayload = {
218
- contacts: {
219
- id: string;
220
- name?: string;
221
- emailAddress?: string;
222
- telephoneNumber?: string;
223
- createdAt: string;
224
- updatedAt?: string;
225
- }[];
226
- };
227
- declare class ListContactsResponse {
228
- response: Response;
229
- constructor(response: Response);
230
- result(): Promise<ListContactsResponsePayload>;
231
- }
232
-
233
- /**
234
- * Great Detail Support System.
235
- *
236
- * @copyright 2024 Great Detail Ltd
237
- * @author Great Detail Ltd <info@greatdetail.com>
238
- * @author Dom Webber <dom.webber@greatdetail.com>
239
- * @see https://greatdetail.com
240
- */
241
-
242
- interface Options$b extends SendOptions {
243
- id: string;
244
- request?: RequestInit;
245
- }
246
- declare class GetConversationRequest {
247
- protected _client: Client;
248
- constructor(_client: Client);
249
- send({ id, request, ...options }: Options$b): Promise<GetConversationResponse>;
250
- }
251
- type GetConversationResponsePayload = {
252
- conversation: {
253
- id: string;
254
- hasEnded: boolean;
255
- accountChannel: string;
256
- createdAt: string;
257
- updatedAt: string;
258
- };
259
- };
260
- declare class GetConversationResponse {
261
- response: Response;
262
- constructor(response: Response);
263
- result(): Promise<GetConversationResponsePayload>;
264
- }
265
-
266
- /**
267
- * Great Detail Support System.
268
- *
269
- * @copyright 2024 Great Detail Ltd
270
- * @author Great Detail Ltd <info@greatdetail.com>
271
- * @author Dom Webber <dom.webber@greatdetail.com>
272
- * @see https://greatdetail.com
273
- */
274
-
275
- interface Options$a extends SendOptions {
276
- request?: RequestInit;
277
- }
278
- declare class ListConversationsRequest {
279
- protected _client: Client;
280
- constructor(_client: Client);
281
- send({ request, ...options }?: Options$a): Promise<ListConversationsResponse>;
282
- }
283
- type ListConversationsResponsePayload = {
284
- conversations: {
285
- id: string;
286
- hasEnded: boolean;
287
- accountChannel: string;
288
- createdAt: string;
289
- updatedAt: string;
290
- }[];
291
- };
292
- declare class ListConversationsResponse {
293
- response: Response;
294
- constructor(response: Response);
295
- result(): Promise<ListConversationsResponsePayload>;
296
- }
297
-
298
- /**
299
- * Great Detail Support System.
300
- *
301
- * @copyright 2024 Great Detail Ltd
302
- * @author Great Detail Ltd <info@greatdetail.com>
303
- * @author Dom Webber <dom.webber@greatdetail.com>
304
- * @see https://greatdetail.com
305
- */
306
-
307
- interface Options$9 extends SendOptions {
308
- body: z.infer<typeof CreateLabelRequest.SCHEMA>;
309
- request?: RequestInit;
310
- }
311
- declare class CreateLabelRequest {
312
- protected _client: Client;
313
- static SCHEMA: z.ZodObject<{
314
- title: z.ZodString;
315
- description: z.ZodOptional<z.ZodString>;
316
- account: z.ZodString;
317
- }, "strip", z.ZodTypeAny, {
318
- title: string;
319
- account: string;
320
- description?: string | undefined;
321
- }, {
322
- title: string;
323
- account: string;
324
- description?: string | undefined;
325
- }>;
326
- constructor(_client: Client);
327
- send({ body, request, ...options }: Options$9): Promise<CreateLabelResponse>;
328
- }
329
- type CreateLabelResponsePayload = {
330
- label: {
331
- id: string;
332
- title: string;
333
- description?: string;
334
- createdAt: string;
335
- updatedAt?: string;
336
- };
337
- };
338
- declare class CreateLabelResponse {
339
- response: Response;
340
- constructor(response: Response);
341
- result(): Promise<CreateLabelResponsePayload>;
342
- }
343
-
344
- /**
345
- * Great Detail Support System.
346
- *
347
- * @copyright 2024 Great Detail Ltd
348
- * @author Great Detail Ltd <info@greatdetail.com>
349
- * @author Dom Webber <dom.webber@greatdetail.com>
350
- * @see https://greatdetail.com
351
- */
352
-
353
- interface Options$8 extends SendOptions {
354
- id: string;
355
- request?: RequestInit;
356
- }
357
- declare class GetLabelRequest {
358
- protected _client: Client;
359
- constructor(_client: Client);
360
- send({ id, request, ...options }: Options$8): Promise<GetLabelResponse>;
361
- }
362
- type GetLabelResponsePayload = {
363
- label: {
364
- id: string;
365
- title: string;
366
- description?: string;
367
- createdAt: string;
368
- updatedAt?: string;
369
- };
370
- };
371
- declare class GetLabelResponse {
372
- response: Response;
373
- constructor(response: Response);
374
- result(): Promise<GetLabelResponsePayload>;
375
- }
376
-
377
- /**
378
- * Great Detail Support System.
379
- *
380
- * @copyright 2024 Great Detail Ltd
381
- * @author Great Detail Ltd <info@greatdetail.com>
382
- * @author Dom Webber <dom.webber@greatdetail.com>
383
- * @see https://greatdetail.com
384
- */
385
-
386
- interface Options$7 extends SendOptions {
387
- request?: RequestInit;
388
- }
389
- declare class ListLabelsRequest {
390
- protected _client: Client;
391
- constructor(_client: Client);
392
- send({ request, ...options }?: Options$7): Promise<ListLabelsResponse>;
393
- }
394
- type ListLabelsResponsePayload = {
395
- labels: {
396
- id: string;
397
- title: string;
398
- description?: string;
399
- createdAt: string;
400
- updatedAt?: string;
401
- }[];
402
- };
403
- declare class ListLabelsResponse {
404
- response: Response;
405
- constructor(response: Response);
406
- result(): Promise<ListLabelsResponsePayload>;
407
- }
408
-
409
- /**
410
- * Great Detail Support System.
411
- *
412
- * @copyright 2024 Great Detail Ltd
413
- * @author Great Detail Ltd <info@greatdetail.com>
414
- * @author Dom Webber <dom.webber@greatdetail.com>
415
- * @see https://greatdetail.com
416
- */
417
-
418
- interface Options$6 extends SendOptions {
419
- request?: RequestInit;
420
- }
421
- declare class ListMessagesRequest {
422
- protected _client: Client;
423
- constructor(_client: Client);
424
- send({ request, ...options }?: Options$6): Promise<ListMessagesResponse>;
425
- }
426
- type ListMessagesResponsePayload = {
427
- messages: {
428
- id: string;
429
- role: "user" | "assistant";
430
- messageStatus: string;
431
- externalIdentifier?: string;
432
- conversation: string;
433
- contact: string;
434
- createdAt: string;
435
- updatedAt: string;
436
- }[];
437
- };
438
- declare class ListMessagesResponse {
439
- response: Response;
440
- constructor(response: Response);
441
- result(): Promise<ListMessagesResponsePayload>;
442
- }
443
-
444
- /**
445
- * Great Detail Support System.
446
- *
447
- * @copyright 2024 Great Detail Ltd
448
- * @author Great Detail Ltd <info@greatdetail.com>
449
- * @author Dom Webber <dom.webber@greatdetail.com>
450
- * @see https://greatdetail.com
451
- */
452
-
453
- interface Options$5 extends SendOptions {
454
- id: string;
455
- body: z.infer<typeof CreateCorrectionModelRequest.SCHEMA>;
456
- request?: RequestInit;
457
- }
458
- declare class CreateCorrectionModelRequest {
459
- protected _client: Client;
460
- static SCHEMA: z.ZodObject<{
461
- input: z.ZodString;
462
- original: z.ZodString;
463
- correction: z.ZodString;
464
- }, "strip", z.ZodTypeAny, {
465
- input: string;
466
- original: string;
467
- correction: string;
468
- }, {
469
- input: string;
470
- original: string;
471
- correction: string;
472
- }>;
473
- constructor(_client: Client);
474
- send({ id, body, request, ...options }: Options$5): Promise<CreateCorrectionModelResponse>;
475
- }
476
- type CreateCorrectionResponsePayload = unknown;
477
- declare class CreateCorrectionModelResponse {
478
- response: Response;
479
- constructor(response: Response);
480
- result(): Promise<CreateCorrectionResponsePayload>;
481
- }
482
-
483
- /**
484
- * Great Detail Support System.
485
- *
486
- * @copyright 2024 Great Detail Ltd
487
- * @author Great Detail Ltd <info@greatdetail.com>
488
- * @author Dom Webber <dom.webber@greatdetail.com>
489
- * @see https://greatdetail.com
490
- */
491
-
492
- interface Options$4 extends SendOptions {
493
- id: string;
494
- request?: RequestInit;
495
- }
496
- declare class GetModelRequest {
497
- protected _client: Client;
498
- constructor(_client: Client);
499
- send({ id, request, ...options }: Options$4): Promise<GetModelResponse>;
500
- }
501
- type GetModelResponsePayload = {
502
- model: {
503
- id: string;
504
- name: string;
505
- url: string;
506
- icon: string;
507
- disambiguatingDescription: string;
508
- };
509
- };
510
- declare class GetModelResponse {
511
- response: Response;
512
- constructor(response: Response);
513
- result(): Promise<GetModelResponsePayload>;
514
- }
515
-
516
- /**
517
- * Great Detail Support System.
518
- *
519
- * @copyright 2024 Great Detail Ltd
520
- * @author Great Detail Ltd <info@greatdetail.com>
521
- * @author Dom Webber <dom.webber@greatdetail.com>
522
- * @see https://greatdetail.com
523
- */
524
-
525
- interface Options$3 extends SendOptions {
526
- request?: RequestInit;
527
- }
528
- declare class ListModelsRequest {
529
- protected _client: Client;
530
- constructor(_client: Client);
531
- send({ request, ...options }?: Options$3): Promise<ListModelsResponse>;
532
- }
533
- type ListModelsResponsePayload = {
534
- models: {
535
- id: string;
536
- name: string;
537
- url: string;
538
- icon: string;
539
- disambiguatingDescription: string;
540
- }[];
541
- };
542
- declare class ListModelsResponse {
543
- response: Response;
544
- constructor(response: Response);
545
- result(): Promise<ListModelsResponsePayload>;
546
- }
547
-
548
- /**
549
- * Great Detail Support System.
550
- *
551
- * @copyright 2024 Great Detail Ltd
552
- * @author Great Detail Ltd <info@greatdetail.com>
553
- * @author Dom Webber <dom.webber@greatdetail.com>
554
- * @see https://greatdetail.com
555
- */
556
-
557
- interface Options$2 extends SendOptions {
558
- id: string;
559
- body: z.infer<typeof CreateResponseModelRequest.SCHEMA>;
560
- request?: RequestInit;
561
- }
562
- declare class CreateResponseModelRequest {
563
- protected _client: Client;
564
- static SCHEMA: z.ZodArray<z.ZodObject<{
565
- role: z.ZodEnum<["user", "assistant"]>;
566
- content: z.ZodNullable<z.ZodString>;
567
- }, "strip", z.ZodTypeAny, {
568
- role: "user" | "assistant";
569
- content: string | null;
570
- }, {
571
- role: "user" | "assistant";
572
- content: string | null;
573
- }>, "many">;
574
- constructor(_client: Client);
575
- send({ id, body, request, ...options }: Options$2): Promise<CreateResponseModelResponse>;
576
- }
577
- type CreateResponseResponsePayload = {
578
- message: string | null;
579
- debug: {
580
- duration: string;
581
- sources: (string | undefined)[];
582
- };
583
- };
584
- declare class CreateResponseModelResponse {
585
- response: Response;
586
- constructor(response: Response);
587
- result(): Promise<CreateResponseResponsePayload>;
588
- }
589
-
590
- /**
591
- * Great Detail Support System.
592
- *
593
- * @copyright 2024 Great Detail Ltd
594
- * @author Great Detail Ltd <info@greatdetail.com>
595
- * @author Dom Webber <dom.webber@greatdetail.com>
596
- * @see https://greatdetail.com
597
- */
598
-
599
- interface Options$1 extends SendOptions {
600
- id: string;
601
- request?: RequestInit;
602
- }
603
- declare class GetSourceRequest {
604
- protected _client: Client;
605
- constructor(_client: Client);
606
- send({ id, request, ...options }: Options$1): Promise<GetSourceResponse>;
607
- }
608
- type GetSourceResponsePayload = {
609
- source: {
610
- id: string;
611
- name: string;
612
- category: string;
613
- url: string;
614
- disambiguatingDescription: string;
615
- };
616
- };
617
- declare class GetSourceResponse {
618
- response: Response;
619
- constructor(response: Response);
620
- result(): Promise<GetSourceResponsePayload>;
621
- }
622
-
623
- /**
624
- * Great Detail Support System.
625
- *
626
- * @copyright 2024 Great Detail Ltd
627
- * @author Great Detail Ltd <info@greatdetail.com>
628
- * @author Dom Webber <dom.webber@greatdetail.com>
629
- * @see https://greatdetail.com
630
- */
631
-
632
- interface Options extends SendOptions {
633
- request?: RequestInit;
634
- }
635
- declare class ListSourcesRequest {
636
- protected _client: Client;
637
- constructor(_client: Client);
638
- send({ request, ...options }?: Options): Promise<ListSourcesResponse>;
639
- }
640
- type ListSourcesResponsePayload = {
641
- sources: {
642
- id: string;
643
- name: string;
644
- category: string;
645
- url: string;
646
- disambiguatingDescription: string;
647
- }[];
648
- };
649
- declare class ListSourcesResponse {
650
- response: Response;
651
- constructor(response: Response);
652
- result(): Promise<ListSourcesResponsePayload>;
653
- }
654
-
655
- /**
656
- * Great Detail Support System.
657
- *
658
- * @copyright 2024 Great Detail Ltd
659
- * @author Great Detail Ltd <info@greatdetail.com>
660
- * @author Dom Webber <dom.webber@greatdetail.com>
661
- * @see https://greatdetail.com
662
- */
663
-
664
- interface ClientOptions {
665
- requestFilterables: RequestFilterable[];
666
- baseURL: string;
667
- }
668
- interface InputClientOptions {
669
- baseURL?: string;
670
- }
671
- interface SendOptions {
672
- /**
673
- * Alternative Fetch Provider.
674
- * Used to override the default fetch provider and use polyfills or other
675
- * libraries.
676
- *
677
- * @since 1.0.0
678
- */
679
- fetch?: typeof fetch;
680
- }
681
- declare class Client {
682
- static DEFAULT_BASE_URL: string;
683
- options: ClientOptions;
684
- constructor(authentication: Authentication, options?: InputClientOptions);
685
- action: {
686
- list: ListActionsRequest;
687
- };
688
- channel: {
689
- list: ListChannelsRequest;
690
- };
691
- contact: {
692
- get: GetContactRequest;
693
- list: ListContactsRequest;
694
- };
695
- conversation: {
696
- get: GetConversationRequest;
697
- list: ListConversationsRequest;
698
- };
699
- label: {
700
- create: CreateLabelRequest;
701
- get: GetLabelRequest;
702
- list: ListLabelsRequest;
703
- };
704
- message: {
705
- list: ListMessagesRequest;
706
- };
707
- model: {
708
- get: GetModelRequest;
709
- list: ListModelsRequest;
710
- response: {
711
- create: CreateResponseModelRequest;
712
- };
713
- correction: {
714
- create: CreateCorrectionModelRequest;
715
- };
716
- };
717
- source: {
718
- get: GetSourceRequest;
719
- list: ListSourcesRequest;
720
- };
721
- protected _filterRequest(request: RequestInit): Promise<RequestInit>;
722
- send(url: string | URL, request: RequestInit, { fetch: fetchAlternative }?: SendOptions): Promise<Response>;
723
- }
724
-
725
- export { Client, type CreateCorrectionResponsePayload, type CreateLabelResponsePayload, type CreateResponseResponsePayload, DEFAULT_SUPPORT_BASE_URL, type GetConversationResponsePayload, KeyAuthentication, type ListActionsResponsePayload, type ListChannelsResponsePayload, type ListContactsResponsePayload, type ListConversationsResponsePayload, type ListLabelsResponsePayload, type ListMessagesResponsePayload, type ListModelsResponsePayload, type ListSourcesResponsePayload, PublicAuthentication, type RequestFilterable, TokenAuthentication, Client as default };
78
+ export { DEFAULT_SUPPORT_BASE_URL, KeyAuthentication, PublicAuthentication, TokenAuthentication };