@great-detail/support-sdk 0.7.7 → 0.8.1
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-4UCA2N6P.js +1 -0
- package/dist/{chunk-A3YYGBXD.js → chunk-BCTHP2YX.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-DFzidwIt.d.cts +1566 -0
- package/dist/index-DFzidwIt.d.ts +1566 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +8 -13
- package/dist/index.d.ts +8 -13
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/dist/chunk-QCFFOQBI.js +0 -1
- package/dist/index-m0WKhV3G.d.cts +0 -2036
- package/dist/index-m0WKhV3G.d.ts +0 -2036
|
@@ -0,0 +1,1566 @@
|
|
|
1
|
+
import * as ky from 'ky';
|
|
2
|
+
import { KyInstance, Options as Options$X } from 'ky';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Great Detail Support System.
|
|
7
|
+
*
|
|
8
|
+
* @copyright 2024 Great Detail Ltd
|
|
9
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
10
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
11
|
+
* @see https://greatdetail.com
|
|
12
|
+
*/
|
|
13
|
+
interface RequestFilterable {
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
17
|
+
filter(...options: unknown[]): Promise<{
|
|
18
|
+
headers: Record<string, string>;
|
|
19
|
+
}>;
|
|
20
|
+
getHeaders(): Record<string, string>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Great Detail Support System.
|
|
25
|
+
*
|
|
26
|
+
* @copyright 2024 Great Detail Ltd
|
|
27
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
28
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
29
|
+
* @see https://greatdetail.com
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
interface Options$W {
|
|
33
|
+
requestFilterables: RequestFilterable[];
|
|
34
|
+
}
|
|
35
|
+
interface Transport {
|
|
36
|
+
getURL(url: string): string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
interface InputOptions extends Options$W {
|
|
40
|
+
baseURL: string;
|
|
41
|
+
}
|
|
42
|
+
interface Options$V extends Options$W {
|
|
43
|
+
baseURL: string;
|
|
44
|
+
}
|
|
45
|
+
declare class FetchTransport implements Transport {
|
|
46
|
+
client: KyInstance;
|
|
47
|
+
options: Options$V;
|
|
48
|
+
constructor({ baseURL, ...options }: InputOptions);
|
|
49
|
+
getURL(url: string): string;
|
|
50
|
+
includeQuery(include: {
|
|
51
|
+
[included: string]: boolean | undefined;
|
|
52
|
+
}): [string, string][];
|
|
53
|
+
send<T = unknown>(url: string, request: Options$X): Promise<ky.KyResponse<T>>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Great Detail Support System.
|
|
58
|
+
*
|
|
59
|
+
* @copyright 2024 Great Detail Ltd
|
|
60
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
61
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
62
|
+
* @see https://greatdetail.com
|
|
63
|
+
*/
|
|
64
|
+
type Action = {
|
|
65
|
+
id: string;
|
|
66
|
+
status: string;
|
|
67
|
+
message: string;
|
|
68
|
+
name: string;
|
|
69
|
+
object?: string;
|
|
70
|
+
result?: string;
|
|
71
|
+
startedAt?: string;
|
|
72
|
+
endedAt?: string;
|
|
73
|
+
createdAt: string;
|
|
74
|
+
updatedAt: string;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
interface Options$U {
|
|
78
|
+
request?: RequestInit;
|
|
79
|
+
}
|
|
80
|
+
type ListActionsResponse = {
|
|
81
|
+
data: {
|
|
82
|
+
action: Action;
|
|
83
|
+
}[];
|
|
84
|
+
};
|
|
85
|
+
declare class ListActions {
|
|
86
|
+
protected _transport: FetchTransport;
|
|
87
|
+
constructor(_transport: FetchTransport);
|
|
88
|
+
send({ request }?: Options$U): Promise<ky.KyResponse<ListActionsResponse>>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Great Detail Support System.
|
|
93
|
+
*
|
|
94
|
+
* @copyright 2024 Great Detail Ltd
|
|
95
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
96
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
97
|
+
* @see https://greatdetail.com
|
|
98
|
+
*/
|
|
99
|
+
|
|
100
|
+
type Authentication = RequestFilterable;
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Great Detail Support System.
|
|
104
|
+
*
|
|
105
|
+
* @copyright 2024 Great Detail Ltd
|
|
106
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
107
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
108
|
+
* @see https://greatdetail.com
|
|
109
|
+
*/
|
|
110
|
+
type Boilerplate = {
|
|
111
|
+
id: string;
|
|
112
|
+
title: string;
|
|
113
|
+
content: string;
|
|
114
|
+
account: string;
|
|
115
|
+
boilerplateCategory: string;
|
|
116
|
+
createdAt: string;
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
type CreateBoilerplatePayload = {
|
|
121
|
+
title: string;
|
|
122
|
+
content: string;
|
|
123
|
+
account: string;
|
|
124
|
+
boilerplateCategory: string;
|
|
125
|
+
};
|
|
126
|
+
interface Options$T {
|
|
127
|
+
body: CreateBoilerplatePayload;
|
|
128
|
+
request?: RequestInit;
|
|
129
|
+
}
|
|
130
|
+
type CreateBoilerplateResponse = {
|
|
131
|
+
data: {
|
|
132
|
+
boilerplate: Boilerplate;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
declare class CreateBoilerplate {
|
|
136
|
+
protected _transport: FetchTransport;
|
|
137
|
+
constructor(_transport: FetchTransport);
|
|
138
|
+
send({ body, request }: Options$T): Promise<ky.KyResponse<CreateBoilerplateResponse>>;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
interface Options$S {
|
|
142
|
+
id: string;
|
|
143
|
+
request?: RequestInit;
|
|
144
|
+
}
|
|
145
|
+
type GetBoilerplateResponse = {
|
|
146
|
+
data: {
|
|
147
|
+
boilerplate: Boilerplate;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
declare class GetBoilerplate {
|
|
151
|
+
protected _transport: FetchTransport;
|
|
152
|
+
constructor(_transport: FetchTransport);
|
|
153
|
+
send({ id, request }: Options$S): Promise<ky.KyResponse<GetBoilerplateResponse>>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
interface Options$R {
|
|
157
|
+
id: string;
|
|
158
|
+
request?: RequestInit;
|
|
159
|
+
}
|
|
160
|
+
type ListBoilerplateCategoryBoilerplatesResponse = {
|
|
161
|
+
data: {
|
|
162
|
+
boilerplate: Boilerplate;
|
|
163
|
+
}[];
|
|
164
|
+
};
|
|
165
|
+
declare class ListBoilerplateCategoryBoilerplates {
|
|
166
|
+
protected _transport: FetchTransport;
|
|
167
|
+
constructor(_transport: FetchTransport);
|
|
168
|
+
send({ id, request }: Options$R): Promise<ky.KyResponse<ListBoilerplateCategoryBoilerplatesResponse>>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
interface Options$Q {
|
|
172
|
+
query?: string;
|
|
173
|
+
request?: RequestInit;
|
|
174
|
+
}
|
|
175
|
+
type ListBoilerplatesResponse = {
|
|
176
|
+
data: {
|
|
177
|
+
boilerplate: Boilerplate;
|
|
178
|
+
}[];
|
|
179
|
+
};
|
|
180
|
+
declare class ListBoilerplates {
|
|
181
|
+
protected _transport: FetchTransport;
|
|
182
|
+
constructor(_transport: FetchTransport);
|
|
183
|
+
send({ query, request }?: Options$Q): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
type UpdateBoilerplatePayload = {
|
|
187
|
+
title?: string;
|
|
188
|
+
content?: string;
|
|
189
|
+
};
|
|
190
|
+
interface Options$P {
|
|
191
|
+
id: string;
|
|
192
|
+
body: UpdateBoilerplatePayload;
|
|
193
|
+
request?: RequestInit;
|
|
194
|
+
}
|
|
195
|
+
type UpdateBoilerplateResponse = {
|
|
196
|
+
data: {
|
|
197
|
+
boilerplate: Boilerplate;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
declare class UpdateBoilerplate {
|
|
201
|
+
protected _transport: FetchTransport;
|
|
202
|
+
constructor(_transport: FetchTransport);
|
|
203
|
+
send({ id, body, request }: Options$P): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Great Detail Support System.
|
|
208
|
+
*
|
|
209
|
+
* @copyright 2024 Great Detail Ltd
|
|
210
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
211
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
212
|
+
* @see https://greatdetail.com
|
|
213
|
+
*/
|
|
214
|
+
type BoilerplateCategory = {
|
|
215
|
+
id: string;
|
|
216
|
+
title: string;
|
|
217
|
+
description?: string;
|
|
218
|
+
account: string;
|
|
219
|
+
createdAt: string;
|
|
220
|
+
updatedAt: string;
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
type CreateBoilerplateCategoryPayload = {
|
|
224
|
+
title: string;
|
|
225
|
+
description?: string;
|
|
226
|
+
account: string;
|
|
227
|
+
};
|
|
228
|
+
interface Options$O {
|
|
229
|
+
body: CreateBoilerplateCategoryPayload;
|
|
230
|
+
request?: RequestInit;
|
|
231
|
+
}
|
|
232
|
+
type CreateBoilerplateCategoryResponse = {
|
|
233
|
+
data: {
|
|
234
|
+
boilerplateCategory: BoilerplateCategory;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
declare class CreateBoilerplateCategory {
|
|
238
|
+
protected _transport: FetchTransport;
|
|
239
|
+
constructor(_transport: FetchTransport);
|
|
240
|
+
send({ body, request }: Options$O): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
interface Options$N {
|
|
244
|
+
id: string;
|
|
245
|
+
request?: RequestInit;
|
|
246
|
+
}
|
|
247
|
+
type GetBoilerplateCategoryResponse = {
|
|
248
|
+
data: {
|
|
249
|
+
boilerplateCategory: BoilerplateCategory;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
declare class GetBoilerplateCategory {
|
|
253
|
+
protected _transport: FetchTransport;
|
|
254
|
+
constructor(_transport: FetchTransport);
|
|
255
|
+
send({ id, request }: Options$N): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
interface IncludeOptions$5 {
|
|
259
|
+
boilerplateCount?: boolean;
|
|
260
|
+
[key: string]: boolean | undefined;
|
|
261
|
+
}
|
|
262
|
+
interface Options$M<C extends IncludeOptions$5> {
|
|
263
|
+
include?: C;
|
|
264
|
+
request?: RequestInit;
|
|
265
|
+
}
|
|
266
|
+
type ListBoilerplateCategoriesResponse<C extends IncludeOptions$5> = {
|
|
267
|
+
data: {
|
|
268
|
+
boilerplateCategory: BoilerplateCategory;
|
|
269
|
+
boilerplateCount?: C extends {
|
|
270
|
+
boilerplateCount: true;
|
|
271
|
+
} ? number : never;
|
|
272
|
+
}[];
|
|
273
|
+
};
|
|
274
|
+
declare class ListBoilerplateCategories {
|
|
275
|
+
protected _transport: FetchTransport;
|
|
276
|
+
constructor(_transport: FetchTransport);
|
|
277
|
+
send<C extends IncludeOptions$5>({ include, request, }?: Options$M<C>): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse<C>>>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
type UpdateBoilerplateCategoryPayload = {
|
|
281
|
+
title?: string;
|
|
282
|
+
description?: string;
|
|
283
|
+
};
|
|
284
|
+
interface Options$L {
|
|
285
|
+
id: string;
|
|
286
|
+
body: UpdateBoilerplateCategoryPayload;
|
|
287
|
+
request?: RequestInit;
|
|
288
|
+
}
|
|
289
|
+
type UpdateBoilerplateCategoryResponse = {
|
|
290
|
+
data: {
|
|
291
|
+
boilerplateCategory: BoilerplateCategory;
|
|
292
|
+
};
|
|
293
|
+
};
|
|
294
|
+
declare class UpdateBoilerplateCategory {
|
|
295
|
+
protected _transport: FetchTransport;
|
|
296
|
+
constructor(_transport: FetchTransport);
|
|
297
|
+
send({ id, body, request }: Options$L): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Great Detail Support System.
|
|
302
|
+
*
|
|
303
|
+
* @copyright 2024 Great Detail Ltd
|
|
304
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
305
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
306
|
+
* @see https://greatdetail.com
|
|
307
|
+
*/
|
|
308
|
+
type Channel = {
|
|
309
|
+
id: string;
|
|
310
|
+
name?: string;
|
|
311
|
+
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
312
|
+
account: string;
|
|
313
|
+
createdAt: string;
|
|
314
|
+
updatedAt: string;
|
|
315
|
+
} & ({
|
|
316
|
+
source: "meta-whatsapp";
|
|
317
|
+
metaWhatsapp: {
|
|
318
|
+
id: string;
|
|
319
|
+
whatsappAccountID: string;
|
|
320
|
+
whatsappPhoneNumberID: string;
|
|
321
|
+
accessToken: string;
|
|
322
|
+
};
|
|
323
|
+
} | {
|
|
324
|
+
source: "twilio-sendgrid";
|
|
325
|
+
twilioSendgrid: {
|
|
326
|
+
id: string;
|
|
327
|
+
displayName: string;
|
|
328
|
+
outboundEmailAddress: string;
|
|
329
|
+
replyEmailAddress?: string;
|
|
330
|
+
inboundHostname: string;
|
|
331
|
+
apiKey: string;
|
|
332
|
+
secrets: {
|
|
333
|
+
id: string;
|
|
334
|
+
isActive: boolean;
|
|
335
|
+
secretExcerpt: string;
|
|
336
|
+
}[];
|
|
337
|
+
};
|
|
338
|
+
});
|
|
339
|
+
|
|
340
|
+
type CreateChannelPayload = {
|
|
341
|
+
name?: string;
|
|
342
|
+
account: string;
|
|
343
|
+
} & ({
|
|
344
|
+
source: "meta-whatsapp";
|
|
345
|
+
} | {
|
|
346
|
+
source: "twilio-sendgrid";
|
|
347
|
+
twilioSendgrid: {
|
|
348
|
+
displayName?: string;
|
|
349
|
+
outboundEmailAddress: string;
|
|
350
|
+
replyEmailAddress?: string;
|
|
351
|
+
inboundHostname: string;
|
|
352
|
+
apiKey: string;
|
|
353
|
+
};
|
|
354
|
+
});
|
|
355
|
+
interface Options$K {
|
|
356
|
+
body: CreateChannelPayload;
|
|
357
|
+
request?: RequestInit;
|
|
358
|
+
}
|
|
359
|
+
type CreateChannelResponse = {
|
|
360
|
+
data: {
|
|
361
|
+
channel: Channel;
|
|
362
|
+
};
|
|
363
|
+
};
|
|
364
|
+
declare class CreateChannel {
|
|
365
|
+
protected _transport: FetchTransport;
|
|
366
|
+
constructor(_transport: FetchTransport);
|
|
367
|
+
send({ body, request }: Options$K): Promise<ky.KyResponse<CreateChannelResponse>>;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
interface Options$J {
|
|
371
|
+
id: string;
|
|
372
|
+
request?: RequestInit;
|
|
373
|
+
}
|
|
374
|
+
type GetChannelResponse = {
|
|
375
|
+
data: {
|
|
376
|
+
channel: Channel;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
declare class GetChannel {
|
|
380
|
+
protected _transport: FetchTransport;
|
|
381
|
+
constructor(_transport: FetchTransport);
|
|
382
|
+
send({ id, request }: Options$J): Promise<ky.KyResponse<GetChannelResponse>>;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
interface Options$I {
|
|
386
|
+
request?: RequestInit;
|
|
387
|
+
}
|
|
388
|
+
type ListChannelsResponse = {
|
|
389
|
+
data: {
|
|
390
|
+
channel: Channel;
|
|
391
|
+
}[];
|
|
392
|
+
};
|
|
393
|
+
declare class ListChannels {
|
|
394
|
+
protected _transport: FetchTransport;
|
|
395
|
+
constructor(_transport: FetchTransport);
|
|
396
|
+
send({ request }?: Options$I): Promise<ky.KyResponse<ListChannelsResponse>>;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
interface Options$H {
|
|
400
|
+
id: string;
|
|
401
|
+
body: z.infer<typeof TwilioSendgridChannelSync.SCHEMA>;
|
|
402
|
+
request?: RequestInit;
|
|
403
|
+
}
|
|
404
|
+
type TwilioSendgridChannelSyncResponse = {
|
|
405
|
+
data: {
|
|
406
|
+
channel: Extract<Channel, {
|
|
407
|
+
source: "twilio-sendgrid";
|
|
408
|
+
}>;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
declare class TwilioSendgridChannelSync {
|
|
412
|
+
protected _transport: FetchTransport;
|
|
413
|
+
static SCHEMA: z.ZodObject<{
|
|
414
|
+
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
overwrite?: boolean | undefined;
|
|
417
|
+
}, {
|
|
418
|
+
overwrite?: boolean | undefined;
|
|
419
|
+
}>;
|
|
420
|
+
constructor(_transport: FetchTransport);
|
|
421
|
+
send({ id, body, request }: Options$H): Promise<ky.KyResponse<TwilioSendgridChannelSyncResponse>>;
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
type UpdateChannelPayload = {
|
|
425
|
+
name?: string;
|
|
426
|
+
} & ({
|
|
427
|
+
source: "meta-whatsapp";
|
|
428
|
+
} | {
|
|
429
|
+
source: "twilio-sendgrid";
|
|
430
|
+
twilioSendgrid: {
|
|
431
|
+
displayName?: string;
|
|
432
|
+
outboundEmailAddress?: string;
|
|
433
|
+
replyEmailAddress?: string;
|
|
434
|
+
inboundHostname?: string;
|
|
435
|
+
apiKey?: string;
|
|
436
|
+
};
|
|
437
|
+
});
|
|
438
|
+
interface Options$G {
|
|
439
|
+
id: string;
|
|
440
|
+
body: UpdateChannelPayload;
|
|
441
|
+
request?: RequestInit;
|
|
442
|
+
}
|
|
443
|
+
type UpdateChannelResponse = {
|
|
444
|
+
data: {
|
|
445
|
+
channel: Channel;
|
|
446
|
+
};
|
|
447
|
+
};
|
|
448
|
+
declare class UpdateChannel {
|
|
449
|
+
protected _transport: FetchTransport;
|
|
450
|
+
constructor(_transport: FetchTransport);
|
|
451
|
+
send({ id, body, request }: Options$G): Promise<ky.KyResponse<UpdateChannelResponse>>;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/**
|
|
455
|
+
* Great Detail Support System.
|
|
456
|
+
*
|
|
457
|
+
* @copyright 2024 Great Detail Ltd
|
|
458
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
459
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
460
|
+
* @see https://greatdetail.com
|
|
461
|
+
*/
|
|
462
|
+
type CompositionSection = {
|
|
463
|
+
id: string;
|
|
464
|
+
account: string;
|
|
465
|
+
channel: string;
|
|
466
|
+
location: "header" | "footer";
|
|
467
|
+
content: string;
|
|
468
|
+
createdAt: string;
|
|
469
|
+
updatedAt: string;
|
|
470
|
+
};
|
|
471
|
+
|
|
472
|
+
type CreateCompositionSectionPayload = {
|
|
473
|
+
account: string;
|
|
474
|
+
channel?: string;
|
|
475
|
+
location: "header" | "footer";
|
|
476
|
+
content: string;
|
|
477
|
+
};
|
|
478
|
+
interface Options$F {
|
|
479
|
+
body: CreateCompositionSectionPayload;
|
|
480
|
+
request?: RequestInit;
|
|
481
|
+
}
|
|
482
|
+
type CreateCompositionSectionResponse = {
|
|
483
|
+
data: {
|
|
484
|
+
compositionSection: CompositionSection;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
declare class CreateCompositionSection {
|
|
488
|
+
protected _transport: FetchTransport;
|
|
489
|
+
constructor(_transport: FetchTransport);
|
|
490
|
+
send({ body, request }: Options$F): Promise<ky.KyResponse<CreateCompositionSectionResponse>>;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
interface Options$E {
|
|
494
|
+
id: string;
|
|
495
|
+
request?: RequestInit;
|
|
496
|
+
}
|
|
497
|
+
type GetCompositionSectionResponse = {
|
|
498
|
+
data: {
|
|
499
|
+
compositionSection: CompositionSection;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
declare class GetCompositionSection {
|
|
503
|
+
protected _transport: FetchTransport;
|
|
504
|
+
constructor(_transport: FetchTransport);
|
|
505
|
+
send({ id, request }: Options$E): Promise<ky.KyResponse<GetCompositionSectionResponse>>;
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
interface Options$D {
|
|
509
|
+
id: string;
|
|
510
|
+
request?: RequestInit;
|
|
511
|
+
}
|
|
512
|
+
type ListChannelCompositionSectionsResponse = {
|
|
513
|
+
data: {
|
|
514
|
+
compositionSection: CompositionSection;
|
|
515
|
+
}[];
|
|
516
|
+
};
|
|
517
|
+
declare class ListChannelCompositionSections {
|
|
518
|
+
protected _transport: FetchTransport;
|
|
519
|
+
constructor(_transport: FetchTransport);
|
|
520
|
+
send({ id, request }: Options$D): Promise<ky.KyResponse<ListChannelCompositionSectionsResponse>>;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
interface Options$C {
|
|
524
|
+
request?: RequestInit;
|
|
525
|
+
}
|
|
526
|
+
type ListCompositionSectionsResponse = {
|
|
527
|
+
data: {
|
|
528
|
+
compositionSection: CompositionSection;
|
|
529
|
+
}[];
|
|
530
|
+
};
|
|
531
|
+
declare class ListCompositionSections {
|
|
532
|
+
protected _transport: FetchTransport;
|
|
533
|
+
constructor(_transport: FetchTransport);
|
|
534
|
+
send({ request }?: Options$C): Promise<ky.KyResponse<ListCompositionSectionsResponse>>;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
type UpdateCompositionSectionPayload = {
|
|
538
|
+
content?: string;
|
|
539
|
+
};
|
|
540
|
+
interface Options$B {
|
|
541
|
+
id: string;
|
|
542
|
+
body: UpdateCompositionSectionPayload;
|
|
543
|
+
request?: RequestInit;
|
|
544
|
+
}
|
|
545
|
+
type UpdateCompositionSectionResponse = {
|
|
546
|
+
data: {
|
|
547
|
+
compositionSection: CompositionSection;
|
|
548
|
+
};
|
|
549
|
+
};
|
|
550
|
+
declare class UpdateCompositionSection {
|
|
551
|
+
protected _transport: FetchTransport;
|
|
552
|
+
constructor(_transport: FetchTransport);
|
|
553
|
+
send({ id, body, request }: Options$B): Promise<ky.KyResponse<UpdateCompositionSectionResponse>>;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Great Detail Support System.
|
|
558
|
+
*
|
|
559
|
+
* @copyright 2024 Great Detail Ltd
|
|
560
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
561
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
562
|
+
* @see https://greatdetail.com
|
|
563
|
+
*/
|
|
564
|
+
|
|
565
|
+
interface Options$A {
|
|
566
|
+
id: string;
|
|
567
|
+
vcf?: {
|
|
568
|
+
variant?: "vcard";
|
|
569
|
+
format?: "vcf" | "qr";
|
|
570
|
+
} | {
|
|
571
|
+
variant: "jcard";
|
|
572
|
+
format?: "json";
|
|
573
|
+
};
|
|
574
|
+
}
|
|
575
|
+
declare class GetContactVCFURL {
|
|
576
|
+
protected _transport: FetchTransport;
|
|
577
|
+
constructor(_transport: FetchTransport);
|
|
578
|
+
getRelativeURL({ id, vcf }: Options$A): string;
|
|
579
|
+
getURL(options: Options$A): string;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Great Detail Support System.
|
|
584
|
+
*
|
|
585
|
+
* @copyright 2024 Great Detail Ltd
|
|
586
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
587
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
588
|
+
* @see https://greatdetail.com
|
|
589
|
+
*/
|
|
590
|
+
type Contact = {
|
|
591
|
+
id: string;
|
|
592
|
+
name?: string;
|
|
593
|
+
emailAddress?: string;
|
|
594
|
+
telephoneNumber?: string;
|
|
595
|
+
account: string;
|
|
596
|
+
createdAt: string;
|
|
597
|
+
updatedAt: string;
|
|
598
|
+
};
|
|
599
|
+
|
|
600
|
+
type CreateContactPayload = {
|
|
601
|
+
name: string;
|
|
602
|
+
account: string;
|
|
603
|
+
emailAddress?: string;
|
|
604
|
+
telephoneNumber?: string;
|
|
605
|
+
};
|
|
606
|
+
interface Options$z {
|
|
607
|
+
body: CreateContactPayload;
|
|
608
|
+
request?: RequestInit;
|
|
609
|
+
}
|
|
610
|
+
type CreateContactResponse = {
|
|
611
|
+
data: {
|
|
612
|
+
contact: Contact;
|
|
613
|
+
};
|
|
614
|
+
};
|
|
615
|
+
declare class CreateContact {
|
|
616
|
+
protected _transport: FetchTransport;
|
|
617
|
+
constructor(_transport: FetchTransport);
|
|
618
|
+
send({ body, request }: Options$z): Promise<ky.KyResponse<CreateContactResponse>>;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
interface IncludeOptions$4 {
|
|
622
|
+
messageCount?: boolean;
|
|
623
|
+
conversationCount?: boolean;
|
|
624
|
+
[key: string]: boolean | undefined;
|
|
625
|
+
}
|
|
626
|
+
interface Options$y<C extends IncludeOptions$4> {
|
|
627
|
+
id: string;
|
|
628
|
+
include?: C;
|
|
629
|
+
request?: RequestInit;
|
|
630
|
+
}
|
|
631
|
+
type GetContactResponse<C extends IncludeOptions$4> = {
|
|
632
|
+
data: {
|
|
633
|
+
contact: Contact;
|
|
634
|
+
messageCount?: C extends {
|
|
635
|
+
messageCount: true;
|
|
636
|
+
} ? number : never;
|
|
637
|
+
conversationCount?: C extends {
|
|
638
|
+
conversationCount: true;
|
|
639
|
+
} ? number : never;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
declare class GetContact {
|
|
643
|
+
protected _transport: FetchTransport;
|
|
644
|
+
constructor(_transport: FetchTransport);
|
|
645
|
+
send<C extends IncludeOptions$4>({ id, include, request, }: Options$y<C>): Promise<ky.KyResponse<GetContactResponse<C>>>;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
interface Options$x {
|
|
649
|
+
request?: RequestInit;
|
|
650
|
+
}
|
|
651
|
+
type ListContactsResponse = {
|
|
652
|
+
data: {
|
|
653
|
+
contact: Contact;
|
|
654
|
+
}[];
|
|
655
|
+
};
|
|
656
|
+
declare class ListContacts {
|
|
657
|
+
protected _transport: FetchTransport;
|
|
658
|
+
constructor(_transport: FetchTransport);
|
|
659
|
+
send({ request }?: Options$x): Promise<ky.KyResponse<ListContactsResponse>>;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
interface Options$w {
|
|
663
|
+
id: string;
|
|
664
|
+
request?: RequestInit;
|
|
665
|
+
}
|
|
666
|
+
type ListLabelContactsResponse = {
|
|
667
|
+
data: {
|
|
668
|
+
contact: Contact;
|
|
669
|
+
}[];
|
|
670
|
+
};
|
|
671
|
+
declare class ListLabelContacts {
|
|
672
|
+
protected _transport: FetchTransport;
|
|
673
|
+
constructor(_transport: FetchTransport);
|
|
674
|
+
send({ id, request }: Options$w): Promise<ky.KyResponse<ListLabelContactsResponse>>;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
type UpdateContactPayload = {
|
|
678
|
+
name?: string;
|
|
679
|
+
emailAddress?: string;
|
|
680
|
+
telephoneNumber?: string;
|
|
681
|
+
};
|
|
682
|
+
interface Options$v {
|
|
683
|
+
id: string;
|
|
684
|
+
body: UpdateContactPayload;
|
|
685
|
+
request?: RequestInit;
|
|
686
|
+
}
|
|
687
|
+
type UpdateContactResponse = {
|
|
688
|
+
data: {
|
|
689
|
+
contact: Contact;
|
|
690
|
+
};
|
|
691
|
+
};
|
|
692
|
+
declare class UpdateContact {
|
|
693
|
+
protected _transport: FetchTransport;
|
|
694
|
+
constructor(_transport: FetchTransport);
|
|
695
|
+
send({ id, body, request }: Options$v): Promise<ky.KyResponse<UpdateContactResponse>>;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
* Great Detail Support System.
|
|
700
|
+
*
|
|
701
|
+
* @copyright 2024 Great Detail Ltd
|
|
702
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
703
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
704
|
+
* @see https://greatdetail.com
|
|
705
|
+
*/
|
|
706
|
+
type Conversation = {
|
|
707
|
+
id: string;
|
|
708
|
+
name?: string;
|
|
709
|
+
hasEnded: boolean;
|
|
710
|
+
contacts: string[];
|
|
711
|
+
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
712
|
+
channel: string;
|
|
713
|
+
createdAt: string;
|
|
714
|
+
updatedAt: string;
|
|
715
|
+
};
|
|
716
|
+
|
|
717
|
+
interface IncludeOptions$3 {
|
|
718
|
+
channel?: boolean;
|
|
719
|
+
[key: string]: boolean | undefined;
|
|
720
|
+
}
|
|
721
|
+
interface Options$u<C extends IncludeOptions$3> {
|
|
722
|
+
id: string;
|
|
723
|
+
include?: C;
|
|
724
|
+
request?: RequestInit;
|
|
725
|
+
}
|
|
726
|
+
type GetConversationResponse<C extends IncludeOptions$3> = {
|
|
727
|
+
data: {
|
|
728
|
+
conversation: Conversation;
|
|
729
|
+
channel: C extends {
|
|
730
|
+
channel: true;
|
|
731
|
+
} ? Channel : never;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
declare class GetConversation {
|
|
735
|
+
protected _transport: FetchTransport;
|
|
736
|
+
constructor(_transport: FetchTransport);
|
|
737
|
+
send<C extends IncludeOptions$3>({ id, include, request, }: Options$u<C>): Promise<ky.KyResponse<GetConversationResponse<C>>>;
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
interface Options$t {
|
|
741
|
+
id: string;
|
|
742
|
+
request?: RequestInit;
|
|
743
|
+
}
|
|
744
|
+
type ListContactConversationsResponse = {
|
|
745
|
+
data: {
|
|
746
|
+
conversation: Conversation;
|
|
747
|
+
}[];
|
|
748
|
+
};
|
|
749
|
+
declare class ListContactConversations {
|
|
750
|
+
protected _transport: FetchTransport;
|
|
751
|
+
constructor(_transport: FetchTransport);
|
|
752
|
+
send({ id, request }: Options$t): Promise<ky.KyResponse<ListContactConversationsResponse>>;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* Great Detail Support System.
|
|
757
|
+
*
|
|
758
|
+
* @copyright 2024 Great Detail Ltd
|
|
759
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
760
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
761
|
+
* @see https://greatdetail.com
|
|
762
|
+
*/
|
|
763
|
+
type Message = {
|
|
764
|
+
id: string;
|
|
765
|
+
role: "user" | "assistant";
|
|
766
|
+
status: string;
|
|
767
|
+
externalIdentifier?: string;
|
|
768
|
+
conversation: string;
|
|
769
|
+
contact: string;
|
|
770
|
+
messageEvents: {
|
|
771
|
+
id: string;
|
|
772
|
+
messageEventType: string;
|
|
773
|
+
triggeredAt: string;
|
|
774
|
+
createdAt: string;
|
|
775
|
+
updatedAt?: string;
|
|
776
|
+
}[];
|
|
777
|
+
createdAt: string;
|
|
778
|
+
updatedAt: string;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
interface IncludeOptions$2 {
|
|
782
|
+
latestMessage?: boolean;
|
|
783
|
+
[key: string]: boolean | undefined;
|
|
784
|
+
}
|
|
785
|
+
interface Options$s<C extends IncludeOptions$2> {
|
|
786
|
+
filter?: "unresolved";
|
|
787
|
+
include?: C;
|
|
788
|
+
request?: RequestInit;
|
|
789
|
+
}
|
|
790
|
+
type ListConversationsResponse<C extends IncludeOptions$2> = {
|
|
791
|
+
data: {
|
|
792
|
+
conversation: Conversation;
|
|
793
|
+
latestMessage?: C extends {
|
|
794
|
+
latestMessage: true;
|
|
795
|
+
} ? Message : never;
|
|
796
|
+
}[];
|
|
797
|
+
};
|
|
798
|
+
declare class ListConversations {
|
|
799
|
+
protected _transport: FetchTransport;
|
|
800
|
+
constructor(_transport: FetchTransport);
|
|
801
|
+
send<C extends IncludeOptions$2>({ filter, include, request, }?: Options$s<C>): Promise<ky.KyResponse<ListConversationsResponse<C>>>;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
interface Options$r {
|
|
805
|
+
id: string;
|
|
806
|
+
request?: RequestInit;
|
|
807
|
+
}
|
|
808
|
+
type ListLabelConversationsResponse = {
|
|
809
|
+
data: {
|
|
810
|
+
conversation: Conversation;
|
|
811
|
+
}[];
|
|
812
|
+
};
|
|
813
|
+
declare class ListLabelConversations {
|
|
814
|
+
protected _transport: FetchTransport;
|
|
815
|
+
constructor(_transport: FetchTransport);
|
|
816
|
+
send({ id, request }: Options$r): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
type UpdateConversationPayload = {
|
|
820
|
+
status?: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
821
|
+
hasEnded?: boolean;
|
|
822
|
+
};
|
|
823
|
+
interface Options$q {
|
|
824
|
+
id: string;
|
|
825
|
+
body: UpdateConversationPayload;
|
|
826
|
+
request?: RequestInit;
|
|
827
|
+
}
|
|
828
|
+
type UpdateConversationResponse = {
|
|
829
|
+
data: {
|
|
830
|
+
conversation: Conversation;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
declare class UpdateConversation {
|
|
834
|
+
protected _transport: FetchTransport;
|
|
835
|
+
constructor(_transport: FetchTransport);
|
|
836
|
+
send({ id, body, request }: Options$q): Promise<ky.KyResponse<UpdateConversationResponse>>;
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
/**
|
|
840
|
+
* Great Detail Support System.
|
|
841
|
+
*
|
|
842
|
+
* @copyright 2024 Great Detail Ltd
|
|
843
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
844
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
845
|
+
* @see https://greatdetail.com
|
|
846
|
+
*/
|
|
847
|
+
type Label = {
|
|
848
|
+
id: string;
|
|
849
|
+
title: string;
|
|
850
|
+
description?: string;
|
|
851
|
+
account: string;
|
|
852
|
+
createdAt: string;
|
|
853
|
+
updatedAt: string;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
type CreateLabelPayload = {
|
|
857
|
+
title: string;
|
|
858
|
+
description?: string;
|
|
859
|
+
account: string;
|
|
860
|
+
};
|
|
861
|
+
interface Options$p {
|
|
862
|
+
body: CreateLabelPayload;
|
|
863
|
+
request?: RequestInit;
|
|
864
|
+
}
|
|
865
|
+
type CreateLabelResponse = {
|
|
866
|
+
data: {
|
|
867
|
+
label: Label;
|
|
868
|
+
};
|
|
869
|
+
};
|
|
870
|
+
declare class CreateLabel {
|
|
871
|
+
protected _transport: FetchTransport;
|
|
872
|
+
constructor(_transport: FetchTransport);
|
|
873
|
+
send({ body, request }: Options$p): Promise<ky.KyResponse<CreateLabelResponse>>;
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
interface Options$o {
|
|
877
|
+
id: string;
|
|
878
|
+
request?: RequestInit;
|
|
879
|
+
}
|
|
880
|
+
type DeleteLabelResponse = Record<string, never>;
|
|
881
|
+
declare class DeleteLabel {
|
|
882
|
+
protected _transport: FetchTransport;
|
|
883
|
+
constructor(_transport: FetchTransport);
|
|
884
|
+
send({ id, request }: Options$o): Promise<ky.KyResponse<DeleteLabelResponse>>;
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
interface Options$n {
|
|
888
|
+
id: string;
|
|
889
|
+
request?: RequestInit;
|
|
890
|
+
}
|
|
891
|
+
type GetLabelResponse = {
|
|
892
|
+
data: {
|
|
893
|
+
label: Label;
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
declare class GetLabel {
|
|
897
|
+
protected _transport: FetchTransport;
|
|
898
|
+
constructor(_transport: FetchTransport);
|
|
899
|
+
send({ id, request }: Options$n): Promise<ky.KyResponse<GetLabelResponse>>;
|
|
900
|
+
}
|
|
901
|
+
|
|
902
|
+
interface IncludeOptions$1 {
|
|
903
|
+
contactCount?: boolean;
|
|
904
|
+
conversationCount?: boolean;
|
|
905
|
+
[key: string]: boolean | undefined;
|
|
906
|
+
}
|
|
907
|
+
interface Options$m<C extends IncludeOptions$1> {
|
|
908
|
+
include?: C;
|
|
909
|
+
request?: RequestInit;
|
|
910
|
+
}
|
|
911
|
+
type ListLabelsResponse<C extends IncludeOptions$1> = {
|
|
912
|
+
data: {
|
|
913
|
+
label: Label;
|
|
914
|
+
contactCount?: C extends {
|
|
915
|
+
contactCount: true;
|
|
916
|
+
} ? number : never;
|
|
917
|
+
conversationCount?: C extends {
|
|
918
|
+
conversationCount: true;
|
|
919
|
+
} ? number : never;
|
|
920
|
+
}[];
|
|
921
|
+
};
|
|
922
|
+
declare class ListLabels {
|
|
923
|
+
protected _transport: FetchTransport;
|
|
924
|
+
constructor(_transport: FetchTransport);
|
|
925
|
+
send<C extends IncludeOptions$1>({ include, request, }?: Options$m<C>): Promise<ky.KyResponse<ListLabelsResponse<C>>>;
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
type UpdateLabelPayload = {
|
|
929
|
+
title?: string;
|
|
930
|
+
description?: string;
|
|
931
|
+
};
|
|
932
|
+
interface Options$l {
|
|
933
|
+
id: string;
|
|
934
|
+
body: UpdateLabelPayload;
|
|
935
|
+
request?: RequestInit;
|
|
936
|
+
}
|
|
937
|
+
type UpdateLabelResponse = {
|
|
938
|
+
data: {
|
|
939
|
+
label: Label;
|
|
940
|
+
};
|
|
941
|
+
};
|
|
942
|
+
declare class UpdateLabel {
|
|
943
|
+
protected _transport: FetchTransport;
|
|
944
|
+
constructor(_transport: FetchTransport);
|
|
945
|
+
send({ id, body, request }: Options$l): Promise<ky.KyResponse<UpdateLabelResponse>>;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface Options$k {
|
|
949
|
+
id: string;
|
|
950
|
+
request?: RequestInit;
|
|
951
|
+
}
|
|
952
|
+
type ListChannelMessagesResponse = {
|
|
953
|
+
data: {
|
|
954
|
+
message: Message;
|
|
955
|
+
}[];
|
|
956
|
+
};
|
|
957
|
+
declare class ListChannelMessages {
|
|
958
|
+
protected _transport: FetchTransport;
|
|
959
|
+
constructor(_transport: FetchTransport);
|
|
960
|
+
send({ id, request }: Options$k): Promise<ky.KyResponse<ListChannelMessagesResponse>>;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
interface IncludeOptions {
|
|
964
|
+
contact?: boolean;
|
|
965
|
+
[key: string]: boolean | undefined;
|
|
966
|
+
}
|
|
967
|
+
interface Options$j<C extends IncludeOptions> {
|
|
968
|
+
id: string;
|
|
969
|
+
include?: C;
|
|
970
|
+
request?: RequestInit;
|
|
971
|
+
}
|
|
972
|
+
type ListConversationMessagesResponse<C extends IncludeOptions> = {
|
|
973
|
+
data: {
|
|
974
|
+
message: Message;
|
|
975
|
+
contact?: C extends {
|
|
976
|
+
contact: true;
|
|
977
|
+
} ? Contact : never;
|
|
978
|
+
}[];
|
|
979
|
+
};
|
|
980
|
+
declare class ListConversationMessages {
|
|
981
|
+
protected _transport: FetchTransport;
|
|
982
|
+
constructor(_transport: FetchTransport);
|
|
983
|
+
send<C extends IncludeOptions>({ id, include, request, }: Options$j<C>): Promise<ky.KyResponse<ListConversationMessagesResponse<C>>>;
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
interface Options$i {
|
|
987
|
+
request?: RequestInit;
|
|
988
|
+
}
|
|
989
|
+
type ListMessagesResponse = {
|
|
990
|
+
data: {
|
|
991
|
+
message: Message;
|
|
992
|
+
}[];
|
|
993
|
+
};
|
|
994
|
+
declare class ListMessages {
|
|
995
|
+
protected _transport: FetchTransport;
|
|
996
|
+
constructor(_transport: FetchTransport);
|
|
997
|
+
send({ request }?: Options$i): Promise<ky.KyResponse<ListMessagesResponse>>;
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
type CreateCorrectionModelPayload = {
|
|
1001
|
+
input: string;
|
|
1002
|
+
original: string;
|
|
1003
|
+
correction: string;
|
|
1004
|
+
};
|
|
1005
|
+
interface Options$h {
|
|
1006
|
+
id: string;
|
|
1007
|
+
body: CreateCorrectionModelPayload;
|
|
1008
|
+
request?: RequestInit;
|
|
1009
|
+
}
|
|
1010
|
+
type CreateCorrectionResponse = unknown;
|
|
1011
|
+
declare class CreateCorrectionModel {
|
|
1012
|
+
protected _transport: FetchTransport;
|
|
1013
|
+
constructor(_transport: FetchTransport);
|
|
1014
|
+
send({ id, body, request }: Options$h): Promise<ky.KyResponse<unknown>>;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* Great Detail Support System.
|
|
1019
|
+
*
|
|
1020
|
+
* @copyright 2024 Great Detail Ltd
|
|
1021
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1022
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1023
|
+
* @see https://greatdetail.com
|
|
1024
|
+
*/
|
|
1025
|
+
type Model = {
|
|
1026
|
+
id: string;
|
|
1027
|
+
name: string;
|
|
1028
|
+
url?: string;
|
|
1029
|
+
icon?: string;
|
|
1030
|
+
disambiguatingDescription: string;
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
interface Options$g {
|
|
1034
|
+
id: string;
|
|
1035
|
+
request?: RequestInit;
|
|
1036
|
+
}
|
|
1037
|
+
type GetModelResponse = {
|
|
1038
|
+
data: {
|
|
1039
|
+
model: Model;
|
|
1040
|
+
};
|
|
1041
|
+
};
|
|
1042
|
+
declare class GetModel {
|
|
1043
|
+
protected _transport: FetchTransport;
|
|
1044
|
+
constructor(_transport: FetchTransport);
|
|
1045
|
+
send({ id, request }: Options$g): Promise<ky.KyResponse<GetModelResponse>>;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
interface Options$f {
|
|
1049
|
+
request?: RequestInit;
|
|
1050
|
+
}
|
|
1051
|
+
type ListModelsResponse = {
|
|
1052
|
+
data: {
|
|
1053
|
+
model: Model;
|
|
1054
|
+
}[];
|
|
1055
|
+
};
|
|
1056
|
+
declare class ListModels {
|
|
1057
|
+
protected _transport: FetchTransport;
|
|
1058
|
+
constructor(_transport: FetchTransport);
|
|
1059
|
+
send({ request }?: Options$f): Promise<ky.KyResponse<ListModelsResponse>>;
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
type CreateResponseModelPayload = {
|
|
1063
|
+
role: "user" | "assistant";
|
|
1064
|
+
content: string | null;
|
|
1065
|
+
}[];
|
|
1066
|
+
interface Options$e {
|
|
1067
|
+
id: string;
|
|
1068
|
+
body: CreateResponseModelPayload;
|
|
1069
|
+
request?: RequestInit;
|
|
1070
|
+
}
|
|
1071
|
+
type CreateResponseResponse = {
|
|
1072
|
+
message: string | null;
|
|
1073
|
+
debug: {
|
|
1074
|
+
duration: string;
|
|
1075
|
+
sources: (string | undefined)[];
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
declare class CreateResponseModel {
|
|
1079
|
+
protected _transport: FetchTransport;
|
|
1080
|
+
constructor(_transport: FetchTransport);
|
|
1081
|
+
send({ id, body, request }: Options$e): Promise<ky.KyResponse<CreateResponseResponse>>;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/**
|
|
1085
|
+
* Great Detail Support System.
|
|
1086
|
+
*
|
|
1087
|
+
* @copyright 2024 Great Detail Ltd
|
|
1088
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1089
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1090
|
+
* @see https://greatdetail.com
|
|
1091
|
+
*/
|
|
1092
|
+
type Note = {
|
|
1093
|
+
id: string;
|
|
1094
|
+
content: string;
|
|
1095
|
+
createdAt: string;
|
|
1096
|
+
updatedAt: string;
|
|
1097
|
+
};
|
|
1098
|
+
|
|
1099
|
+
type CreateContactNotePayload = {
|
|
1100
|
+
content: string;
|
|
1101
|
+
};
|
|
1102
|
+
interface Options$d {
|
|
1103
|
+
id: string;
|
|
1104
|
+
body: CreateContactNotePayload;
|
|
1105
|
+
request?: RequestInit;
|
|
1106
|
+
}
|
|
1107
|
+
type CreateContactNoteResponse = {
|
|
1108
|
+
data: {
|
|
1109
|
+
note: Note;
|
|
1110
|
+
};
|
|
1111
|
+
};
|
|
1112
|
+
declare class CreateContactNote {
|
|
1113
|
+
protected _transport: FetchTransport;
|
|
1114
|
+
constructor(_transport: FetchTransport);
|
|
1115
|
+
send({ id, body, request }: Options$d): Promise<ky.KyResponse<CreateContactNoteResponse>>;
|
|
1116
|
+
}
|
|
1117
|
+
|
|
1118
|
+
type CreateConversationNotePayload = {
|
|
1119
|
+
content: string;
|
|
1120
|
+
};
|
|
1121
|
+
interface Options$c {
|
|
1122
|
+
id: string;
|
|
1123
|
+
body: CreateConversationNotePayload;
|
|
1124
|
+
request?: RequestInit;
|
|
1125
|
+
}
|
|
1126
|
+
type CreateConversationNoteResponse = {
|
|
1127
|
+
data: {
|
|
1128
|
+
note: Note;
|
|
1129
|
+
};
|
|
1130
|
+
};
|
|
1131
|
+
declare class CreateConversationNote {
|
|
1132
|
+
protected _transport: FetchTransport;
|
|
1133
|
+
constructor(_transport: FetchTransport);
|
|
1134
|
+
send({ id, body, request }: Options$c): Promise<ky.KyResponse<CreateConversationNoteResponse>>;
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
interface Options$b {
|
|
1138
|
+
id: string;
|
|
1139
|
+
request?: RequestInit;
|
|
1140
|
+
}
|
|
1141
|
+
type GetNoteResponse = {
|
|
1142
|
+
data: {
|
|
1143
|
+
note: Note;
|
|
1144
|
+
};
|
|
1145
|
+
};
|
|
1146
|
+
declare class GetNote {
|
|
1147
|
+
protected _transport: FetchTransport;
|
|
1148
|
+
constructor(_transport: FetchTransport);
|
|
1149
|
+
send({ id, request }: Options$b): Promise<ky.KyResponse<GetNoteResponse>>;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
interface Options$a {
|
|
1153
|
+
id: string;
|
|
1154
|
+
request?: RequestInit;
|
|
1155
|
+
}
|
|
1156
|
+
type ListContactNotesResponse = {
|
|
1157
|
+
data: {
|
|
1158
|
+
note: Note;
|
|
1159
|
+
}[];
|
|
1160
|
+
};
|
|
1161
|
+
declare class ListContactNotes {
|
|
1162
|
+
protected _transport: FetchTransport;
|
|
1163
|
+
constructor(_transport: FetchTransport);
|
|
1164
|
+
send({ id, request }: Options$a): Promise<ky.KyResponse<ListContactNotesResponse>>;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
interface Options$9 {
|
|
1168
|
+
id: string;
|
|
1169
|
+
request?: RequestInit;
|
|
1170
|
+
}
|
|
1171
|
+
type ListConversationNotesResponse = {
|
|
1172
|
+
data: {
|
|
1173
|
+
note: Note;
|
|
1174
|
+
}[];
|
|
1175
|
+
};
|
|
1176
|
+
declare class ListConversationNotes {
|
|
1177
|
+
protected _transport: FetchTransport;
|
|
1178
|
+
constructor(_transport: FetchTransport);
|
|
1179
|
+
send({ id, request }: Options$9): Promise<ky.KyResponse<ListConversationNotesResponse>>;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
type UpdateNotePayload = {
|
|
1183
|
+
content?: string;
|
|
1184
|
+
};
|
|
1185
|
+
interface Options$8 {
|
|
1186
|
+
id: string;
|
|
1187
|
+
body: UpdateNotePayload;
|
|
1188
|
+
request?: RequestInit;
|
|
1189
|
+
}
|
|
1190
|
+
type UpdateNoteResponse = {
|
|
1191
|
+
data: {
|
|
1192
|
+
note: Note;
|
|
1193
|
+
};
|
|
1194
|
+
};
|
|
1195
|
+
declare class UpdateNote {
|
|
1196
|
+
protected _transport: FetchTransport;
|
|
1197
|
+
constructor(_transport: FetchTransport);
|
|
1198
|
+
send({ id, body, request }: Options$8): Promise<ky.KyResponse<UpdateNoteResponse>>;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
/**
|
|
1202
|
+
* Great Detail Support System.
|
|
1203
|
+
*
|
|
1204
|
+
* @copyright 2024 Great Detail Ltd
|
|
1205
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1206
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1207
|
+
* @see https://greatdetail.com
|
|
1208
|
+
*/
|
|
1209
|
+
type NotificationSubscription = {
|
|
1210
|
+
id: string;
|
|
1211
|
+
createdAt: string;
|
|
1212
|
+
updatedAt: string;
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
type CreateContactNotificationSubscriptionPayload = {
|
|
1216
|
+
type: "vapid";
|
|
1217
|
+
endpoint: string;
|
|
1218
|
+
keys: {
|
|
1219
|
+
p256dh: string;
|
|
1220
|
+
auth: string;
|
|
1221
|
+
};
|
|
1222
|
+
};
|
|
1223
|
+
interface Options$7 {
|
|
1224
|
+
id: string;
|
|
1225
|
+
body: CreateContactNotificationSubscriptionPayload;
|
|
1226
|
+
request?: RequestInit;
|
|
1227
|
+
}
|
|
1228
|
+
type CreateContactNotificationSubscriptionResponse = {
|
|
1229
|
+
data: {
|
|
1230
|
+
notificationSubscription: NotificationSubscription;
|
|
1231
|
+
};
|
|
1232
|
+
};
|
|
1233
|
+
declare class CreateContactNotificationSubscription {
|
|
1234
|
+
protected _transport: FetchTransport;
|
|
1235
|
+
constructor(_transport: FetchTransport);
|
|
1236
|
+
send({ id, body, request }: Options$7): Promise<ky.KyResponse<CreateContactNotificationSubscriptionResponse>>;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Great Detail Support System.
|
|
1241
|
+
*
|
|
1242
|
+
* @copyright 2024 Great Detail Ltd
|
|
1243
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1244
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1245
|
+
* @see https://greatdetail.com
|
|
1246
|
+
*/
|
|
1247
|
+
type Source = {
|
|
1248
|
+
id: string;
|
|
1249
|
+
name: string;
|
|
1250
|
+
category: string;
|
|
1251
|
+
url?: string;
|
|
1252
|
+
icon?: string;
|
|
1253
|
+
disambiguatingDescription: string;
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
interface Options$6 {
|
|
1257
|
+
id: string;
|
|
1258
|
+
request?: RequestInit;
|
|
1259
|
+
}
|
|
1260
|
+
type GetSourceResponse = {
|
|
1261
|
+
data: {
|
|
1262
|
+
source: Source;
|
|
1263
|
+
};
|
|
1264
|
+
};
|
|
1265
|
+
declare class GetSource {
|
|
1266
|
+
protected _transport: FetchTransport;
|
|
1267
|
+
constructor(_transport: FetchTransport);
|
|
1268
|
+
send({ id, request }: Options$6): Promise<ky.KyResponse<GetSourceResponse>>;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
interface Options$5 {
|
|
1272
|
+
category?: string | string[];
|
|
1273
|
+
request?: RequestInit;
|
|
1274
|
+
}
|
|
1275
|
+
type ListSourcesResponse = {
|
|
1276
|
+
data: {
|
|
1277
|
+
source: Source;
|
|
1278
|
+
}[];
|
|
1279
|
+
};
|
|
1280
|
+
declare class ListSources {
|
|
1281
|
+
protected _transport: FetchTransport;
|
|
1282
|
+
constructor(_transport: FetchTransport);
|
|
1283
|
+
send({ category, request }?: Options$5): Promise<ky.KyResponse<ListSourcesResponse>>;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Great Detail Support System.
|
|
1288
|
+
*
|
|
1289
|
+
* @copyright 2024 Great Detail Ltd
|
|
1290
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1291
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1292
|
+
* @see https://greatdetail.com
|
|
1293
|
+
*/
|
|
1294
|
+
type Upload = {
|
|
1295
|
+
id: string;
|
|
1296
|
+
name: string;
|
|
1297
|
+
alternativeName?: string;
|
|
1298
|
+
contentSize: number;
|
|
1299
|
+
encodingFormat: string;
|
|
1300
|
+
sha256: string;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
interface Options$4 {
|
|
1304
|
+
account: string;
|
|
1305
|
+
files: File[];
|
|
1306
|
+
request?: RequestInit;
|
|
1307
|
+
}
|
|
1308
|
+
type CreateUploadResponse = {
|
|
1309
|
+
data: {
|
|
1310
|
+
upload: Upload;
|
|
1311
|
+
};
|
|
1312
|
+
};
|
|
1313
|
+
declare class CreateUpload {
|
|
1314
|
+
protected _transport: FetchTransport;
|
|
1315
|
+
constructor(_transport: FetchTransport);
|
|
1316
|
+
send({ account, files, request }: Options$4): Promise<ky.KyResponse<CreateUploadResponse>>;
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
interface Options$3 {
|
|
1320
|
+
id: string;
|
|
1321
|
+
request?: RequestInit;
|
|
1322
|
+
}
|
|
1323
|
+
type DeleteUploadResponse = Record<string, never>;
|
|
1324
|
+
declare class DeleteUpload {
|
|
1325
|
+
protected _transport: FetchTransport;
|
|
1326
|
+
constructor(_transport: FetchTransport);
|
|
1327
|
+
send({ id, request }: Options$3): Promise<ky.KyResponse<DeleteUploadResponse>>;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
interface Options$2 {
|
|
1331
|
+
id: string;
|
|
1332
|
+
request?: RequestInit;
|
|
1333
|
+
}
|
|
1334
|
+
type GetUploadResponse = {
|
|
1335
|
+
data: {
|
|
1336
|
+
url: string;
|
|
1337
|
+
expiresAt: string;
|
|
1338
|
+
upload: Upload;
|
|
1339
|
+
};
|
|
1340
|
+
};
|
|
1341
|
+
declare class GetUpload {
|
|
1342
|
+
protected _transport: FetchTransport;
|
|
1343
|
+
constructor(_transport: FetchTransport);
|
|
1344
|
+
send({ id, request }: Options$2): Promise<ky.KyResponse<GetUploadResponse>>;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* Great Detail Support System.
|
|
1349
|
+
*
|
|
1350
|
+
* @copyright 2024 Great Detail Ltd
|
|
1351
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1352
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1353
|
+
* @see https://greatdetail.com
|
|
1354
|
+
*/
|
|
1355
|
+
|
|
1356
|
+
type Options$1 = {
|
|
1357
|
+
request: {
|
|
1358
|
+
body: unknown;
|
|
1359
|
+
headers: Record<string, string | string[]>;
|
|
1360
|
+
[key: string]: unknown | undefined;
|
|
1361
|
+
};
|
|
1362
|
+
};
|
|
1363
|
+
type WebhookResponse = z.infer<typeof Webhook.SCHEMA>;
|
|
1364
|
+
declare class Webhook {
|
|
1365
|
+
protected _client: Client;
|
|
1366
|
+
static SCHEMA: z.ZodObject<{
|
|
1367
|
+
event: z.ZodIntersection<z.ZodObject<{
|
|
1368
|
+
id: z.ZodString;
|
|
1369
|
+
createdAt: z.ZodString;
|
|
1370
|
+
}, "strip", z.ZodTypeAny, {
|
|
1371
|
+
id: string;
|
|
1372
|
+
createdAt: string;
|
|
1373
|
+
}, {
|
|
1374
|
+
id: string;
|
|
1375
|
+
createdAt: string;
|
|
1376
|
+
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1377
|
+
type: z.ZodLiteral<"contact.created">;
|
|
1378
|
+
contact: z.ZodString;
|
|
1379
|
+
}, "strip", z.ZodTypeAny, {
|
|
1380
|
+
type: "contact.created";
|
|
1381
|
+
contact: string;
|
|
1382
|
+
}, {
|
|
1383
|
+
type: "contact.created";
|
|
1384
|
+
contact: string;
|
|
1385
|
+
}>, z.ZodObject<{
|
|
1386
|
+
type: z.ZodLiteral<"message.created">;
|
|
1387
|
+
message: z.ZodString;
|
|
1388
|
+
}, "strip", z.ZodTypeAny, {
|
|
1389
|
+
message: string;
|
|
1390
|
+
type: "message.created";
|
|
1391
|
+
}, {
|
|
1392
|
+
message: string;
|
|
1393
|
+
type: "message.created";
|
|
1394
|
+
}>]>>;
|
|
1395
|
+
}, "strip", z.ZodTypeAny, {
|
|
1396
|
+
event: {
|
|
1397
|
+
id: string;
|
|
1398
|
+
createdAt: string;
|
|
1399
|
+
} & ({
|
|
1400
|
+
type: "contact.created";
|
|
1401
|
+
contact: string;
|
|
1402
|
+
} | {
|
|
1403
|
+
message: string;
|
|
1404
|
+
type: "message.created";
|
|
1405
|
+
});
|
|
1406
|
+
}, {
|
|
1407
|
+
event: {
|
|
1408
|
+
id: string;
|
|
1409
|
+
createdAt: string;
|
|
1410
|
+
} & ({
|
|
1411
|
+
type: "contact.created";
|
|
1412
|
+
contact: string;
|
|
1413
|
+
} | {
|
|
1414
|
+
message: string;
|
|
1415
|
+
type: "message.created";
|
|
1416
|
+
});
|
|
1417
|
+
}>;
|
|
1418
|
+
constructor(_client: Client);
|
|
1419
|
+
/**
|
|
1420
|
+
* @deprecated Pre-release Functionality
|
|
1421
|
+
*/
|
|
1422
|
+
event({ request }: Options$1): Promise<{
|
|
1423
|
+
event: {
|
|
1424
|
+
id: string;
|
|
1425
|
+
createdAt: string;
|
|
1426
|
+
} & ({
|
|
1427
|
+
type: "contact.created";
|
|
1428
|
+
contact: string;
|
|
1429
|
+
} | {
|
|
1430
|
+
message: string;
|
|
1431
|
+
type: "message.created";
|
|
1432
|
+
});
|
|
1433
|
+
}>;
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
/**
|
|
1437
|
+
* Great Detail Support System.
|
|
1438
|
+
*
|
|
1439
|
+
* @copyright 2024 Great Detail Ltd
|
|
1440
|
+
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1441
|
+
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1442
|
+
* @see https://greatdetail.com
|
|
1443
|
+
*/
|
|
1444
|
+
|
|
1445
|
+
interface Options {
|
|
1446
|
+
baseURL?: string | URL;
|
|
1447
|
+
}
|
|
1448
|
+
declare class Client {
|
|
1449
|
+
static DEFAULT_BASE_URL: string;
|
|
1450
|
+
_transport: FetchTransport;
|
|
1451
|
+
constructor(authentication: Authentication, { baseURL, ...options }?: Options);
|
|
1452
|
+
static getBaseURL(): string;
|
|
1453
|
+
get action(): {
|
|
1454
|
+
list: ListActions;
|
|
1455
|
+
};
|
|
1456
|
+
get boilerplate(): {
|
|
1457
|
+
get: GetBoilerplate;
|
|
1458
|
+
list: ListBoilerplates;
|
|
1459
|
+
update: UpdateBoilerplate;
|
|
1460
|
+
create: CreateBoilerplate;
|
|
1461
|
+
};
|
|
1462
|
+
get boilerplateCategory(): {
|
|
1463
|
+
get: GetBoilerplateCategory;
|
|
1464
|
+
list: ListBoilerplateCategories;
|
|
1465
|
+
create: CreateBoilerplateCategory;
|
|
1466
|
+
update: UpdateBoilerplateCategory;
|
|
1467
|
+
boilerplate: {
|
|
1468
|
+
list: ListBoilerplateCategoryBoilerplates;
|
|
1469
|
+
};
|
|
1470
|
+
};
|
|
1471
|
+
get channel(): {
|
|
1472
|
+
get: GetChannel;
|
|
1473
|
+
list: ListChannels;
|
|
1474
|
+
update: UpdateChannel;
|
|
1475
|
+
create: CreateChannel;
|
|
1476
|
+
compositionSection: {
|
|
1477
|
+
list: ListChannelCompositionSections;
|
|
1478
|
+
};
|
|
1479
|
+
message: {
|
|
1480
|
+
list: ListChannelMessages;
|
|
1481
|
+
};
|
|
1482
|
+
twilioSendgrid: {
|
|
1483
|
+
sync: TwilioSendgridChannelSync;
|
|
1484
|
+
};
|
|
1485
|
+
};
|
|
1486
|
+
get compositionSection(): {
|
|
1487
|
+
get: GetCompositionSection;
|
|
1488
|
+
list: ListCompositionSections;
|
|
1489
|
+
create: CreateCompositionSection;
|
|
1490
|
+
update: UpdateCompositionSection;
|
|
1491
|
+
};
|
|
1492
|
+
get contact(): {
|
|
1493
|
+
get: GetContact;
|
|
1494
|
+
list: ListContacts;
|
|
1495
|
+
update: UpdateContact;
|
|
1496
|
+
create: CreateContact;
|
|
1497
|
+
conversation: {
|
|
1498
|
+
list: ListContactConversations;
|
|
1499
|
+
};
|
|
1500
|
+
note: {
|
|
1501
|
+
list: ListContactNotes;
|
|
1502
|
+
create: CreateContactNote;
|
|
1503
|
+
};
|
|
1504
|
+
notificationSubscription: {
|
|
1505
|
+
create: CreateContactNotificationSubscription;
|
|
1506
|
+
};
|
|
1507
|
+
vcf: {
|
|
1508
|
+
get: GetContactVCFURL;
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
get conversation(): {
|
|
1512
|
+
get: GetConversation;
|
|
1513
|
+
list: ListConversations;
|
|
1514
|
+
update: UpdateConversation;
|
|
1515
|
+
create: CreateConversationNote;
|
|
1516
|
+
message: {
|
|
1517
|
+
list: ListConversationMessages;
|
|
1518
|
+
};
|
|
1519
|
+
note: {
|
|
1520
|
+
list: ListConversationNotes;
|
|
1521
|
+
create: CreateConversationNote;
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
get label(): {
|
|
1525
|
+
create: CreateLabel;
|
|
1526
|
+
get: GetLabel;
|
|
1527
|
+
list: ListLabels;
|
|
1528
|
+
update: UpdateLabel;
|
|
1529
|
+
delete: DeleteLabel;
|
|
1530
|
+
contact: {
|
|
1531
|
+
list: ListLabelContacts;
|
|
1532
|
+
};
|
|
1533
|
+
conversation: {
|
|
1534
|
+
list: ListLabelConversations;
|
|
1535
|
+
};
|
|
1536
|
+
};
|
|
1537
|
+
get message(): {
|
|
1538
|
+
list: ListMessages;
|
|
1539
|
+
};
|
|
1540
|
+
get model(): {
|
|
1541
|
+
get: GetModel;
|
|
1542
|
+
list: ListModels;
|
|
1543
|
+
response: {
|
|
1544
|
+
create: CreateResponseModel;
|
|
1545
|
+
};
|
|
1546
|
+
correction: {
|
|
1547
|
+
create: CreateCorrectionModel;
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
get note(): {
|
|
1551
|
+
get: GetNote;
|
|
1552
|
+
update: UpdateNote;
|
|
1553
|
+
};
|
|
1554
|
+
get source(): {
|
|
1555
|
+
get: GetSource;
|
|
1556
|
+
list: ListSources;
|
|
1557
|
+
};
|
|
1558
|
+
get upload(): {
|
|
1559
|
+
get: GetUpload;
|
|
1560
|
+
create: CreateUpload;
|
|
1561
|
+
delete: DeleteUpload;
|
|
1562
|
+
};
|
|
1563
|
+
get webhook(): Webhook;
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
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$W 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 };
|