@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
|
@@ -1,2036 +0,0 @@
|
|
|
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
|
-
send<T = unknown>(url: string, request: Options$X): Promise<ky.KyResponse<T>>;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
interface Options$U {
|
|
54
|
-
request?: RequestInit;
|
|
55
|
-
}
|
|
56
|
-
type ListActionsResponse = {
|
|
57
|
-
data: {
|
|
58
|
-
action: {
|
|
59
|
-
id: string;
|
|
60
|
-
status: string;
|
|
61
|
-
message: string;
|
|
62
|
-
name: string;
|
|
63
|
-
object?: string;
|
|
64
|
-
result?: string;
|
|
65
|
-
startedAt?: string;
|
|
66
|
-
endedAt?: string;
|
|
67
|
-
createdAt: string;
|
|
68
|
-
updatedAt?: string;
|
|
69
|
-
};
|
|
70
|
-
}[];
|
|
71
|
-
};
|
|
72
|
-
declare class ListActions {
|
|
73
|
-
protected _transport: FetchTransport;
|
|
74
|
-
constructor(_transport: FetchTransport);
|
|
75
|
-
send({ request }?: Options$U): Promise<ky.KyResponse<ListActionsResponse>>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Great Detail Support System.
|
|
80
|
-
*
|
|
81
|
-
* @copyright 2024 Great Detail Ltd
|
|
82
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
83
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
84
|
-
* @see https://greatdetail.com
|
|
85
|
-
*/
|
|
86
|
-
|
|
87
|
-
type Authentication = RequestFilterable;
|
|
88
|
-
|
|
89
|
-
interface Options$T {
|
|
90
|
-
body: z.infer<typeof CreateBoilerplate.SCHEMA>;
|
|
91
|
-
request?: RequestInit;
|
|
92
|
-
}
|
|
93
|
-
type CreateBoilerplateResponse = {
|
|
94
|
-
data: {
|
|
95
|
-
boilerplate: {
|
|
96
|
-
id: string;
|
|
97
|
-
title: string;
|
|
98
|
-
content: string;
|
|
99
|
-
account: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
declare class CreateBoilerplate {
|
|
106
|
-
protected _transport: FetchTransport;
|
|
107
|
-
static SCHEMA: z.ZodObject<{
|
|
108
|
-
title: z.ZodString;
|
|
109
|
-
content: z.ZodString;
|
|
110
|
-
account: z.ZodString;
|
|
111
|
-
boilerplateCategory: z.ZodString;
|
|
112
|
-
}, "strip", z.ZodTypeAny, {
|
|
113
|
-
title: string;
|
|
114
|
-
content: string;
|
|
115
|
-
account: string;
|
|
116
|
-
boilerplateCategory: string;
|
|
117
|
-
}, {
|
|
118
|
-
title: string;
|
|
119
|
-
content: string;
|
|
120
|
-
account: string;
|
|
121
|
-
boilerplateCategory: string;
|
|
122
|
-
}>;
|
|
123
|
-
constructor(_transport: FetchTransport);
|
|
124
|
-
send({ body, request }: Options$T): Promise<ky.KyResponse<CreateBoilerplateResponse>>;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface Options$S {
|
|
128
|
-
id: string;
|
|
129
|
-
request?: RequestInit;
|
|
130
|
-
}
|
|
131
|
-
type GetBoilerplateResponse = {
|
|
132
|
-
data: {
|
|
133
|
-
boilerplate: {
|
|
134
|
-
id: string;
|
|
135
|
-
title: string;
|
|
136
|
-
content: string;
|
|
137
|
-
account: string;
|
|
138
|
-
boilerplateCategory: string;
|
|
139
|
-
createdAt: string;
|
|
140
|
-
updatedAt: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
};
|
|
144
|
-
declare class GetBoilerplate {
|
|
145
|
-
protected _transport: FetchTransport;
|
|
146
|
-
constructor(_transport: FetchTransport);
|
|
147
|
-
send({ id, request }: Options$S): Promise<ky.KyResponse<GetBoilerplateResponse>>;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
interface Options$R {
|
|
151
|
-
id: string;
|
|
152
|
-
request?: RequestInit;
|
|
153
|
-
}
|
|
154
|
-
type ListBoilerplateCategoryBoilerplatesResponse = {
|
|
155
|
-
data: {
|
|
156
|
-
boilerplate: {
|
|
157
|
-
id: string;
|
|
158
|
-
title: string;
|
|
159
|
-
content: string;
|
|
160
|
-
account: string;
|
|
161
|
-
boilerplateCategory: string;
|
|
162
|
-
createdAt: string;
|
|
163
|
-
updatedAt: string;
|
|
164
|
-
};
|
|
165
|
-
}[];
|
|
166
|
-
};
|
|
167
|
-
declare class ListBoilerplateCategoryBoilerplates {
|
|
168
|
-
protected _transport: FetchTransport;
|
|
169
|
-
constructor(_transport: FetchTransport);
|
|
170
|
-
send({ id, request }: Options$R): Promise<ky.KyResponse<ListBoilerplateCategoryBoilerplatesResponse>>;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
interface Options$Q {
|
|
174
|
-
query?: string;
|
|
175
|
-
request?: RequestInit;
|
|
176
|
-
}
|
|
177
|
-
type ListBoilerplatesResponse = {
|
|
178
|
-
data: {
|
|
179
|
-
boilerplate: {
|
|
180
|
-
id: string;
|
|
181
|
-
title: string;
|
|
182
|
-
content: string;
|
|
183
|
-
account: string;
|
|
184
|
-
boilerplateCategory: string;
|
|
185
|
-
createdAt: string;
|
|
186
|
-
updatedAt: string;
|
|
187
|
-
};
|
|
188
|
-
}[];
|
|
189
|
-
};
|
|
190
|
-
declare class ListBoilerplates {
|
|
191
|
-
protected _transport: FetchTransport;
|
|
192
|
-
constructor(_transport: FetchTransport);
|
|
193
|
-
send({ query, request }?: Options$Q): Promise<ky.KyResponse<ListBoilerplatesResponse>>;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
interface Options$P {
|
|
197
|
-
id: string;
|
|
198
|
-
body: z.infer<typeof UpdateBoilerplate.SCHEMA>;
|
|
199
|
-
request?: RequestInit;
|
|
200
|
-
}
|
|
201
|
-
type UpdateBoilerplateResponse = {
|
|
202
|
-
data: {
|
|
203
|
-
boilerplate: {
|
|
204
|
-
id: string;
|
|
205
|
-
title: string;
|
|
206
|
-
content: string;
|
|
207
|
-
account: string;
|
|
208
|
-
boilerplateCategory: string;
|
|
209
|
-
createdAt: string;
|
|
210
|
-
updatedAt: string;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
};
|
|
214
|
-
declare class UpdateBoilerplate {
|
|
215
|
-
protected _transport: FetchTransport;
|
|
216
|
-
static SCHEMA: z.ZodObject<{
|
|
217
|
-
title: z.ZodOptional<z.ZodString>;
|
|
218
|
-
content: z.ZodOptional<z.ZodString>;
|
|
219
|
-
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
title?: string | undefined;
|
|
221
|
-
content?: string | undefined;
|
|
222
|
-
}, {
|
|
223
|
-
title?: string | undefined;
|
|
224
|
-
content?: string | undefined;
|
|
225
|
-
}>;
|
|
226
|
-
constructor(_transport: FetchTransport);
|
|
227
|
-
send({ id, body, request }: Options$P): Promise<ky.KyResponse<UpdateBoilerplateResponse>>;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
interface Options$O {
|
|
231
|
-
body: z.infer<typeof CreateBoilerplateCategory.SCHEMA>;
|
|
232
|
-
request?: RequestInit;
|
|
233
|
-
}
|
|
234
|
-
type CreateBoilerplateCategoryResponse = {
|
|
235
|
-
data: {
|
|
236
|
-
boilerplateCategory: {
|
|
237
|
-
id: string;
|
|
238
|
-
title: string;
|
|
239
|
-
description?: string;
|
|
240
|
-
account: string;
|
|
241
|
-
createdAt: string;
|
|
242
|
-
updatedAt: string;
|
|
243
|
-
};
|
|
244
|
-
};
|
|
245
|
-
};
|
|
246
|
-
declare class CreateBoilerplateCategory {
|
|
247
|
-
protected _transport: FetchTransport;
|
|
248
|
-
static SCHEMA: z.ZodObject<{
|
|
249
|
-
title: z.ZodString;
|
|
250
|
-
description: z.ZodOptional<z.ZodString>;
|
|
251
|
-
account: z.ZodString;
|
|
252
|
-
}, "strip", z.ZodTypeAny, {
|
|
253
|
-
title: string;
|
|
254
|
-
account: string;
|
|
255
|
-
description?: string | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
title: string;
|
|
258
|
-
account: string;
|
|
259
|
-
description?: string | undefined;
|
|
260
|
-
}>;
|
|
261
|
-
constructor(_transport: FetchTransport);
|
|
262
|
-
send({ body, request }: Options$O): Promise<ky.KyResponse<CreateBoilerplateCategoryResponse>>;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
interface Options$N {
|
|
266
|
-
id: string;
|
|
267
|
-
request?: RequestInit;
|
|
268
|
-
}
|
|
269
|
-
type GetBoilerplateCategoryResponse = {
|
|
270
|
-
data: {
|
|
271
|
-
boilerplateCategory: {
|
|
272
|
-
id: string;
|
|
273
|
-
title: string;
|
|
274
|
-
description?: string;
|
|
275
|
-
account: string;
|
|
276
|
-
createdAt: string;
|
|
277
|
-
updatedAt: string;
|
|
278
|
-
};
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
declare class GetBoilerplateCategory {
|
|
282
|
-
protected _transport: FetchTransport;
|
|
283
|
-
constructor(_transport: FetchTransport);
|
|
284
|
-
send({ id, request }: Options$N): Promise<ky.KyResponse<GetBoilerplateCategoryResponse>>;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
interface IncludeOptions$5 {
|
|
288
|
-
boilerplateCount?: boolean;
|
|
289
|
-
}
|
|
290
|
-
interface Options$M<C extends IncludeOptions$5> {
|
|
291
|
-
include?: C;
|
|
292
|
-
request?: RequestInit;
|
|
293
|
-
}
|
|
294
|
-
type ListBoilerplateCategoriesResponse<C extends IncludeOptions$5> = {
|
|
295
|
-
data: {
|
|
296
|
-
boilerplateCategory: {
|
|
297
|
-
id: string;
|
|
298
|
-
title: string;
|
|
299
|
-
description?: string;
|
|
300
|
-
account: string;
|
|
301
|
-
createdAt: string;
|
|
302
|
-
updatedAt: string;
|
|
303
|
-
};
|
|
304
|
-
boilerplateCount?: C extends {
|
|
305
|
-
boilerplateCount: true;
|
|
306
|
-
} ? number : never;
|
|
307
|
-
}[];
|
|
308
|
-
};
|
|
309
|
-
declare class ListBoilerplateCategories {
|
|
310
|
-
protected _transport: FetchTransport;
|
|
311
|
-
constructor(_transport: FetchTransport);
|
|
312
|
-
send<C extends IncludeOptions$5>({ include, request, }?: Options$M<C>): Promise<ky.KyResponse<ListBoilerplateCategoriesResponse<C>>>;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
interface Options$L {
|
|
316
|
-
id: string;
|
|
317
|
-
body: z.infer<typeof UpdateBoilerplateCategory.SCHEMA>;
|
|
318
|
-
request?: RequestInit;
|
|
319
|
-
}
|
|
320
|
-
type UpdateBoilerplateCategoryResponse = {
|
|
321
|
-
data: {
|
|
322
|
-
boilerplateCategory: {
|
|
323
|
-
id: string;
|
|
324
|
-
title: string;
|
|
325
|
-
description?: string;
|
|
326
|
-
account: string;
|
|
327
|
-
createdAt: string;
|
|
328
|
-
updatedAt: string;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
declare class UpdateBoilerplateCategory {
|
|
333
|
-
protected _transport: FetchTransport;
|
|
334
|
-
static SCHEMA: z.ZodObject<{
|
|
335
|
-
title: z.ZodOptional<z.ZodString>;
|
|
336
|
-
description: z.ZodOptional<z.ZodString>;
|
|
337
|
-
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
title?: string | undefined;
|
|
339
|
-
description?: string | undefined;
|
|
340
|
-
}, {
|
|
341
|
-
title?: string | undefined;
|
|
342
|
-
description?: string | undefined;
|
|
343
|
-
}>;
|
|
344
|
-
constructor(_transport: FetchTransport);
|
|
345
|
-
send({ id, body, request }: Options$L): Promise<ky.KyResponse<UpdateBoilerplateCategoryResponse>>;
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
interface Options$K {
|
|
349
|
-
body: z.infer<typeof CreateChannel.SCHEMA>;
|
|
350
|
-
request?: RequestInit;
|
|
351
|
-
}
|
|
352
|
-
type CreateChannelResponse = {
|
|
353
|
-
data: {
|
|
354
|
-
channel: {
|
|
355
|
-
id: string;
|
|
356
|
-
name?: string;
|
|
357
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
358
|
-
account: string;
|
|
359
|
-
createdAt: string;
|
|
360
|
-
updatedAt: string;
|
|
361
|
-
} & ({
|
|
362
|
-
source: "meta-whatsapp";
|
|
363
|
-
metaWhatsapp: {
|
|
364
|
-
id: string;
|
|
365
|
-
whatsappAccountID: string;
|
|
366
|
-
whatsappPhoneNumberID: string;
|
|
367
|
-
accessToken: string;
|
|
368
|
-
};
|
|
369
|
-
} | {
|
|
370
|
-
source: "twilio-sendgrid";
|
|
371
|
-
twilioSendgrid: {
|
|
372
|
-
id: string;
|
|
373
|
-
displayName: string;
|
|
374
|
-
outboundEmailAddress: string;
|
|
375
|
-
replyEmailAddress?: string;
|
|
376
|
-
inboundHostname: string;
|
|
377
|
-
apiKey: string;
|
|
378
|
-
secrets: {
|
|
379
|
-
id: string;
|
|
380
|
-
isActive: boolean;
|
|
381
|
-
secretExcerpt: string;
|
|
382
|
-
}[];
|
|
383
|
-
};
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
};
|
|
387
|
-
declare class CreateChannel {
|
|
388
|
-
protected _transport: FetchTransport;
|
|
389
|
-
static SCHEMA: z.ZodIntersection<z.ZodObject<{
|
|
390
|
-
name: z.ZodOptional<z.ZodString>;
|
|
391
|
-
account: z.ZodString;
|
|
392
|
-
}, "strip", z.ZodTypeAny, {
|
|
393
|
-
account: string;
|
|
394
|
-
name?: string | undefined;
|
|
395
|
-
}, {
|
|
396
|
-
account: string;
|
|
397
|
-
name?: string | undefined;
|
|
398
|
-
}>, z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
399
|
-
source: z.ZodLiteral<"meta-whatsapp">;
|
|
400
|
-
}, "strip", z.ZodTypeAny, {
|
|
401
|
-
source: "meta-whatsapp";
|
|
402
|
-
}, {
|
|
403
|
-
source: "meta-whatsapp";
|
|
404
|
-
}>, z.ZodObject<{
|
|
405
|
-
source: z.ZodLiteral<"twilio-sendgrid">;
|
|
406
|
-
twilioSendgrid: z.ZodObject<{
|
|
407
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
408
|
-
outboundEmailAddress: z.ZodString;
|
|
409
|
-
replyEmailAddress: z.ZodOptional<z.ZodString>;
|
|
410
|
-
inboundHostname: z.ZodString;
|
|
411
|
-
apiKey: z.ZodString;
|
|
412
|
-
}, "strip", z.ZodTypeAny, {
|
|
413
|
-
outboundEmailAddress: string;
|
|
414
|
-
inboundHostname: string;
|
|
415
|
-
apiKey: string;
|
|
416
|
-
displayName?: string | undefined;
|
|
417
|
-
replyEmailAddress?: string | undefined;
|
|
418
|
-
}, {
|
|
419
|
-
outboundEmailAddress: string;
|
|
420
|
-
inboundHostname: string;
|
|
421
|
-
apiKey: string;
|
|
422
|
-
displayName?: string | undefined;
|
|
423
|
-
replyEmailAddress?: string | undefined;
|
|
424
|
-
}>;
|
|
425
|
-
}, "strip", z.ZodTypeAny, {
|
|
426
|
-
source: "twilio-sendgrid";
|
|
427
|
-
twilioSendgrid: {
|
|
428
|
-
outboundEmailAddress: string;
|
|
429
|
-
inboundHostname: string;
|
|
430
|
-
apiKey: string;
|
|
431
|
-
displayName?: string | undefined;
|
|
432
|
-
replyEmailAddress?: string | undefined;
|
|
433
|
-
};
|
|
434
|
-
}, {
|
|
435
|
-
source: "twilio-sendgrid";
|
|
436
|
-
twilioSendgrid: {
|
|
437
|
-
outboundEmailAddress: string;
|
|
438
|
-
inboundHostname: string;
|
|
439
|
-
apiKey: string;
|
|
440
|
-
displayName?: string | undefined;
|
|
441
|
-
replyEmailAddress?: string | undefined;
|
|
442
|
-
};
|
|
443
|
-
}>]>>;
|
|
444
|
-
constructor(_transport: FetchTransport);
|
|
445
|
-
send({ body, request }: Options$K): Promise<ky.KyResponse<CreateChannelResponse>>;
|
|
446
|
-
}
|
|
447
|
-
|
|
448
|
-
interface Options$J {
|
|
449
|
-
id: string;
|
|
450
|
-
request?: RequestInit;
|
|
451
|
-
}
|
|
452
|
-
type GetChannelResponse = {
|
|
453
|
-
data: {
|
|
454
|
-
channel: {
|
|
455
|
-
id: string;
|
|
456
|
-
name?: string;
|
|
457
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
458
|
-
account: string;
|
|
459
|
-
createdAt: string;
|
|
460
|
-
updatedAt: string;
|
|
461
|
-
} & ({
|
|
462
|
-
source: "meta-whatsapp";
|
|
463
|
-
metaWhatsapp: {
|
|
464
|
-
id: string;
|
|
465
|
-
whatsappAccountID: string;
|
|
466
|
-
whatsappPhoneNumberID: string;
|
|
467
|
-
accessToken: string;
|
|
468
|
-
};
|
|
469
|
-
} | {
|
|
470
|
-
source: "twilio-sendgrid";
|
|
471
|
-
twilioSendgrid: {
|
|
472
|
-
id: string;
|
|
473
|
-
displayName: string;
|
|
474
|
-
outboundEmailAddress: string;
|
|
475
|
-
replyEmailAddress?: string;
|
|
476
|
-
inboundHostname: string;
|
|
477
|
-
apiKey: string;
|
|
478
|
-
secrets: {
|
|
479
|
-
id: string;
|
|
480
|
-
isActive: boolean;
|
|
481
|
-
secretExcerpt: string;
|
|
482
|
-
}[];
|
|
483
|
-
};
|
|
484
|
-
});
|
|
485
|
-
};
|
|
486
|
-
};
|
|
487
|
-
declare class GetChannel {
|
|
488
|
-
protected _transport: FetchTransport;
|
|
489
|
-
constructor(_transport: FetchTransport);
|
|
490
|
-
send({ id, request }: Options$J): Promise<ky.KyResponse<GetChannelResponse>>;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
interface Options$I {
|
|
494
|
-
request?: RequestInit;
|
|
495
|
-
}
|
|
496
|
-
type ListChannelsResponse = {
|
|
497
|
-
data: {
|
|
498
|
-
channel: {
|
|
499
|
-
id: string;
|
|
500
|
-
name?: string;
|
|
501
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
502
|
-
account: string;
|
|
503
|
-
createdAt: string;
|
|
504
|
-
updatedAt: string;
|
|
505
|
-
} & ({
|
|
506
|
-
source: "meta-whatsapp";
|
|
507
|
-
metaWhatsapp: {
|
|
508
|
-
id: string;
|
|
509
|
-
whatsappAccountID: string;
|
|
510
|
-
whatsappPhoneNumberID: string;
|
|
511
|
-
accessToken: string;
|
|
512
|
-
};
|
|
513
|
-
} | {
|
|
514
|
-
source: "twilio-sendgrid";
|
|
515
|
-
twilioSendgrid: {
|
|
516
|
-
id: string;
|
|
517
|
-
displayName: string;
|
|
518
|
-
outboundEmailAddress: string;
|
|
519
|
-
replyEmailAddress?: string;
|
|
520
|
-
inboundHostname: string;
|
|
521
|
-
apiKey: string;
|
|
522
|
-
secrets: {
|
|
523
|
-
id: string;
|
|
524
|
-
isActive: boolean;
|
|
525
|
-
secretExcerpt: string;
|
|
526
|
-
}[];
|
|
527
|
-
};
|
|
528
|
-
});
|
|
529
|
-
}[];
|
|
530
|
-
};
|
|
531
|
-
declare class ListChannels {
|
|
532
|
-
protected _transport: FetchTransport;
|
|
533
|
-
constructor(_transport: FetchTransport);
|
|
534
|
-
send({ request }?: Options$I): Promise<ky.KyResponse<ListChannelsResponse>>;
|
|
535
|
-
}
|
|
536
|
-
|
|
537
|
-
interface Options$H {
|
|
538
|
-
id: string;
|
|
539
|
-
body: z.infer<typeof TwilioSendgridChannelSync.SCHEMA>;
|
|
540
|
-
request?: RequestInit;
|
|
541
|
-
}
|
|
542
|
-
type TwilioSendgridChannelSyncResponse = {
|
|
543
|
-
data: {
|
|
544
|
-
channel: {
|
|
545
|
-
id: string;
|
|
546
|
-
name?: string;
|
|
547
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
548
|
-
account: string;
|
|
549
|
-
createdAt: string;
|
|
550
|
-
updatedAt: string;
|
|
551
|
-
source: "twilio-sendgrid";
|
|
552
|
-
twilioSendgrid: {
|
|
553
|
-
id: string;
|
|
554
|
-
displayName: string;
|
|
555
|
-
outboundEmailAddress: string;
|
|
556
|
-
replyEmailAddress?: string;
|
|
557
|
-
inboundHostname: string;
|
|
558
|
-
apiKey: string;
|
|
559
|
-
secrets: {
|
|
560
|
-
id: string;
|
|
561
|
-
isActive: boolean;
|
|
562
|
-
secretExcerpt: string;
|
|
563
|
-
}[];
|
|
564
|
-
};
|
|
565
|
-
};
|
|
566
|
-
};
|
|
567
|
-
};
|
|
568
|
-
declare class TwilioSendgridChannelSync {
|
|
569
|
-
protected _transport: FetchTransport;
|
|
570
|
-
static SCHEMA: z.ZodObject<{
|
|
571
|
-
overwrite: z.ZodOptional<z.ZodBoolean>;
|
|
572
|
-
}, "strip", z.ZodTypeAny, {
|
|
573
|
-
overwrite?: boolean | undefined;
|
|
574
|
-
}, {
|
|
575
|
-
overwrite?: boolean | undefined;
|
|
576
|
-
}>;
|
|
577
|
-
constructor(_transport: FetchTransport);
|
|
578
|
-
send({ id, body, request }: Options$H): Promise<ky.KyResponse<TwilioSendgridChannelSyncResponse>>;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
interface Options$G {
|
|
582
|
-
id: string;
|
|
583
|
-
body: z.infer<typeof UpdateChannel.SCHEMA>;
|
|
584
|
-
request?: RequestInit;
|
|
585
|
-
}
|
|
586
|
-
type UpdateChannelResponse = {
|
|
587
|
-
data: {
|
|
588
|
-
channel: {
|
|
589
|
-
id: string;
|
|
590
|
-
name?: string;
|
|
591
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
592
|
-
account: string;
|
|
593
|
-
createdAt: string;
|
|
594
|
-
updatedAt: string;
|
|
595
|
-
} & ({
|
|
596
|
-
source: "meta-whatsapp";
|
|
597
|
-
metaWhatsapp: {
|
|
598
|
-
id: string;
|
|
599
|
-
whatsappAccountID: string;
|
|
600
|
-
whatsappPhoneNumberID: string;
|
|
601
|
-
accessToken: string;
|
|
602
|
-
};
|
|
603
|
-
} | {
|
|
604
|
-
source: "twilio-sendgrid";
|
|
605
|
-
twilioSendgrid: {
|
|
606
|
-
id: string;
|
|
607
|
-
displayName: string;
|
|
608
|
-
outboundEmailAddress: string;
|
|
609
|
-
replyEmailAddress?: string;
|
|
610
|
-
inboundHostname: string;
|
|
611
|
-
apiKey: string;
|
|
612
|
-
secrets: {
|
|
613
|
-
id: string;
|
|
614
|
-
isActive: boolean;
|
|
615
|
-
secretExcerpt: string;
|
|
616
|
-
}[];
|
|
617
|
-
};
|
|
618
|
-
});
|
|
619
|
-
};
|
|
620
|
-
};
|
|
621
|
-
declare class UpdateChannel {
|
|
622
|
-
protected _transport: FetchTransport;
|
|
623
|
-
static SCHEMA: z.ZodIntersection<z.ZodObject<{
|
|
624
|
-
name: z.ZodOptional<z.ZodString>;
|
|
625
|
-
}, "strip", z.ZodTypeAny, {
|
|
626
|
-
name?: string | undefined;
|
|
627
|
-
}, {
|
|
628
|
-
name?: string | undefined;
|
|
629
|
-
}>, z.ZodDiscriminatedUnion<"source", [z.ZodObject<{
|
|
630
|
-
source: z.ZodLiteral<"meta-whatsapp">;
|
|
631
|
-
}, "strip", z.ZodTypeAny, {
|
|
632
|
-
source: "meta-whatsapp";
|
|
633
|
-
}, {
|
|
634
|
-
source: "meta-whatsapp";
|
|
635
|
-
}>, z.ZodObject<{
|
|
636
|
-
source: z.ZodLiteral<"twilio-sendgrid">;
|
|
637
|
-
twilioSendgrid: z.ZodObject<{
|
|
638
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
639
|
-
outboundEmailAddress: z.ZodOptional<z.ZodString>;
|
|
640
|
-
replyEmailAddress: z.ZodOptional<z.ZodString>;
|
|
641
|
-
inboundHostname: z.ZodOptional<z.ZodString>;
|
|
642
|
-
apiKey: z.ZodOptional<z.ZodString>;
|
|
643
|
-
}, "strip", z.ZodTypeAny, {
|
|
644
|
-
displayName?: string | undefined;
|
|
645
|
-
outboundEmailAddress?: string | undefined;
|
|
646
|
-
replyEmailAddress?: string | undefined;
|
|
647
|
-
inboundHostname?: string | undefined;
|
|
648
|
-
apiKey?: string | undefined;
|
|
649
|
-
}, {
|
|
650
|
-
displayName?: string | undefined;
|
|
651
|
-
outboundEmailAddress?: string | undefined;
|
|
652
|
-
replyEmailAddress?: string | undefined;
|
|
653
|
-
inboundHostname?: string | undefined;
|
|
654
|
-
apiKey?: string | undefined;
|
|
655
|
-
}>;
|
|
656
|
-
}, "strip", z.ZodTypeAny, {
|
|
657
|
-
source: "twilio-sendgrid";
|
|
658
|
-
twilioSendgrid: {
|
|
659
|
-
displayName?: string | undefined;
|
|
660
|
-
outboundEmailAddress?: string | undefined;
|
|
661
|
-
replyEmailAddress?: string | undefined;
|
|
662
|
-
inboundHostname?: string | undefined;
|
|
663
|
-
apiKey?: string | undefined;
|
|
664
|
-
};
|
|
665
|
-
}, {
|
|
666
|
-
source: "twilio-sendgrid";
|
|
667
|
-
twilioSendgrid: {
|
|
668
|
-
displayName?: string | undefined;
|
|
669
|
-
outboundEmailAddress?: string | undefined;
|
|
670
|
-
replyEmailAddress?: string | undefined;
|
|
671
|
-
inboundHostname?: string | undefined;
|
|
672
|
-
apiKey?: string | undefined;
|
|
673
|
-
};
|
|
674
|
-
}>]>>;
|
|
675
|
-
constructor(_transport: FetchTransport);
|
|
676
|
-
send({ id, body, request }: Options$G): Promise<ky.KyResponse<UpdateChannelResponse>>;
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
interface Options$F {
|
|
680
|
-
body: z.infer<typeof CreateCompositionSection.SCHEMA>;
|
|
681
|
-
request?: RequestInit;
|
|
682
|
-
}
|
|
683
|
-
type CreateCompositionSectionResponse = {
|
|
684
|
-
data: {
|
|
685
|
-
compositionSection: {
|
|
686
|
-
id: string;
|
|
687
|
-
account: string;
|
|
688
|
-
channel?: string;
|
|
689
|
-
location: "header" | "footer";
|
|
690
|
-
content: string;
|
|
691
|
-
createdAt: string;
|
|
692
|
-
updatedAt: string;
|
|
693
|
-
};
|
|
694
|
-
};
|
|
695
|
-
};
|
|
696
|
-
declare class CreateCompositionSection {
|
|
697
|
-
protected _transport: FetchTransport;
|
|
698
|
-
static SCHEMA: z.ZodObject<{
|
|
699
|
-
account: z.ZodString;
|
|
700
|
-
channel: z.ZodOptional<z.ZodString>;
|
|
701
|
-
location: z.ZodEnum<["header", "footer"]>;
|
|
702
|
-
content: z.ZodString;
|
|
703
|
-
}, "strip", z.ZodTypeAny, {
|
|
704
|
-
content: string;
|
|
705
|
-
account: string;
|
|
706
|
-
location: "header" | "footer";
|
|
707
|
-
channel?: string | undefined;
|
|
708
|
-
}, {
|
|
709
|
-
content: string;
|
|
710
|
-
account: string;
|
|
711
|
-
location: "header" | "footer";
|
|
712
|
-
channel?: string | undefined;
|
|
713
|
-
}>;
|
|
714
|
-
constructor(_transport: FetchTransport);
|
|
715
|
-
send({ body, request }: Options$F): Promise<ky.KyResponse<CreateCompositionSectionResponse>>;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
interface Options$E {
|
|
719
|
-
id: string;
|
|
720
|
-
request?: RequestInit;
|
|
721
|
-
}
|
|
722
|
-
type GetCompositionSectionResponse = {
|
|
723
|
-
data: {
|
|
724
|
-
compositionSection: {
|
|
725
|
-
id: string;
|
|
726
|
-
account: string;
|
|
727
|
-
channel?: string;
|
|
728
|
-
location: "header" | "footer";
|
|
729
|
-
content: string;
|
|
730
|
-
createdAt: string;
|
|
731
|
-
updatedAt: string;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
declare class GetCompositionSection {
|
|
736
|
-
protected _transport: FetchTransport;
|
|
737
|
-
constructor(_transport: FetchTransport);
|
|
738
|
-
send({ id, request }: Options$E): Promise<ky.KyResponse<GetCompositionSectionResponse>>;
|
|
739
|
-
}
|
|
740
|
-
|
|
741
|
-
interface Options$D {
|
|
742
|
-
id: string;
|
|
743
|
-
request?: RequestInit;
|
|
744
|
-
}
|
|
745
|
-
type ListChannelCompositionSectionsResponse = {
|
|
746
|
-
data: {
|
|
747
|
-
compositionSection: {
|
|
748
|
-
id: string;
|
|
749
|
-
account: string;
|
|
750
|
-
channel?: string;
|
|
751
|
-
location: "header" | "footer";
|
|
752
|
-
content: string;
|
|
753
|
-
createdAt: string;
|
|
754
|
-
updatedAt: string;
|
|
755
|
-
};
|
|
756
|
-
}[];
|
|
757
|
-
};
|
|
758
|
-
declare class ListChannelCompositionSections {
|
|
759
|
-
protected _transport: FetchTransport;
|
|
760
|
-
constructor(_transport: FetchTransport);
|
|
761
|
-
send({ id, request }: Options$D): Promise<ky.KyResponse<ListChannelCompositionSectionsResponse>>;
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
interface Options$C {
|
|
765
|
-
request?: RequestInit;
|
|
766
|
-
}
|
|
767
|
-
type ListCompositionSectionsResponse = {
|
|
768
|
-
data: {
|
|
769
|
-
compositionSection: {
|
|
770
|
-
id: string;
|
|
771
|
-
account: string;
|
|
772
|
-
channel?: string;
|
|
773
|
-
location: "header" | "footer";
|
|
774
|
-
content: string;
|
|
775
|
-
createdAt: string;
|
|
776
|
-
updatedAt: string;
|
|
777
|
-
};
|
|
778
|
-
}[];
|
|
779
|
-
};
|
|
780
|
-
declare class ListCompositionSections {
|
|
781
|
-
protected _transport: FetchTransport;
|
|
782
|
-
constructor(_transport: FetchTransport);
|
|
783
|
-
send({ request }?: Options$C): Promise<ky.KyResponse<ListCompositionSectionsResponse>>;
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
interface Options$B {
|
|
787
|
-
id: string;
|
|
788
|
-
body: z.infer<typeof UpdateCompositionSection.SCHEMA>;
|
|
789
|
-
request?: RequestInit;
|
|
790
|
-
}
|
|
791
|
-
type UpdateCompositionSectionResponse = {
|
|
792
|
-
data: {
|
|
793
|
-
compositionSection: {
|
|
794
|
-
id: string;
|
|
795
|
-
account: string;
|
|
796
|
-
channel?: string;
|
|
797
|
-
location: "header" | "footer";
|
|
798
|
-
content: string;
|
|
799
|
-
createdAt: string;
|
|
800
|
-
updatedAt: string;
|
|
801
|
-
};
|
|
802
|
-
};
|
|
803
|
-
};
|
|
804
|
-
declare class UpdateCompositionSection {
|
|
805
|
-
protected _transport: FetchTransport;
|
|
806
|
-
static SCHEMA: z.ZodObject<{
|
|
807
|
-
content: z.ZodString;
|
|
808
|
-
}, "strip", z.ZodTypeAny, {
|
|
809
|
-
content: string;
|
|
810
|
-
}, {
|
|
811
|
-
content: string;
|
|
812
|
-
}>;
|
|
813
|
-
constructor(_transport: FetchTransport);
|
|
814
|
-
send({ id, body, request }: Options$B): Promise<ky.KyResponse<UpdateCompositionSectionResponse>>;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
/**
|
|
818
|
-
* Great Detail Support System.
|
|
819
|
-
*
|
|
820
|
-
* @copyright 2024 Great Detail Ltd
|
|
821
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
822
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
823
|
-
* @see https://greatdetail.com
|
|
824
|
-
*/
|
|
825
|
-
|
|
826
|
-
interface Options$A {
|
|
827
|
-
id: string;
|
|
828
|
-
vcf?: {
|
|
829
|
-
variant?: "vcard";
|
|
830
|
-
format?: "vcf" | "qr";
|
|
831
|
-
} | {
|
|
832
|
-
variant: "jcard";
|
|
833
|
-
format?: "json";
|
|
834
|
-
};
|
|
835
|
-
}
|
|
836
|
-
declare class GetContactVCFURL {
|
|
837
|
-
protected _transport: FetchTransport;
|
|
838
|
-
constructor(_transport: FetchTransport);
|
|
839
|
-
getRelativeURL({ id, vcf }: Options$A): string;
|
|
840
|
-
getURL(options: Options$A): string;
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
interface Options$z {
|
|
844
|
-
body: z.infer<typeof CreateContact.SCHEMA>;
|
|
845
|
-
request?: RequestInit;
|
|
846
|
-
}
|
|
847
|
-
type CreateContactResponse = {
|
|
848
|
-
data: {
|
|
849
|
-
contact: {
|
|
850
|
-
id: string;
|
|
851
|
-
name?: string;
|
|
852
|
-
emailAddress?: string;
|
|
853
|
-
telephoneNumber?: string;
|
|
854
|
-
account: string;
|
|
855
|
-
createdAt: string;
|
|
856
|
-
updatedAt?: string;
|
|
857
|
-
};
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
declare class CreateContact {
|
|
861
|
-
protected _transport: FetchTransport;
|
|
862
|
-
static SCHEMA: z.ZodObject<{
|
|
863
|
-
name: z.ZodString;
|
|
864
|
-
account: z.ZodString;
|
|
865
|
-
emailAddress: z.ZodOptional<z.ZodString>;
|
|
866
|
-
telephoneNumber: z.ZodOptional<z.ZodString>;
|
|
867
|
-
}, "strip", z.ZodTypeAny, {
|
|
868
|
-
account: string;
|
|
869
|
-
name: string;
|
|
870
|
-
emailAddress?: string | undefined;
|
|
871
|
-
telephoneNumber?: string | undefined;
|
|
872
|
-
}, {
|
|
873
|
-
account: string;
|
|
874
|
-
name: string;
|
|
875
|
-
emailAddress?: string | undefined;
|
|
876
|
-
telephoneNumber?: string | undefined;
|
|
877
|
-
}>;
|
|
878
|
-
constructor(_transport: FetchTransport);
|
|
879
|
-
send({ body, request }: Options$z): Promise<ky.KyResponse<CreateContactResponse>>;
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
interface IncludeOptions$4 {
|
|
883
|
-
messageCount?: boolean;
|
|
884
|
-
conversationCount?: boolean;
|
|
885
|
-
}
|
|
886
|
-
interface Options$y<C extends IncludeOptions$4> {
|
|
887
|
-
id: string;
|
|
888
|
-
include?: C;
|
|
889
|
-
request?: RequestInit;
|
|
890
|
-
}
|
|
891
|
-
type GetContactResponse<C extends IncludeOptions$4> = {
|
|
892
|
-
data: {
|
|
893
|
-
contact: {
|
|
894
|
-
id: string;
|
|
895
|
-
name?: string;
|
|
896
|
-
emailAddress?: string;
|
|
897
|
-
telephoneNumber?: string;
|
|
898
|
-
account: string;
|
|
899
|
-
createdAt: string;
|
|
900
|
-
updatedAt?: string;
|
|
901
|
-
};
|
|
902
|
-
messageCount?: C extends {
|
|
903
|
-
messageCount: true;
|
|
904
|
-
} ? number : never;
|
|
905
|
-
conversationCount?: C extends {
|
|
906
|
-
conversationCount: true;
|
|
907
|
-
} ? number : never;
|
|
908
|
-
};
|
|
909
|
-
};
|
|
910
|
-
declare class GetContact {
|
|
911
|
-
protected _transport: FetchTransport;
|
|
912
|
-
constructor(_transport: FetchTransport);
|
|
913
|
-
send<C extends IncludeOptions$4>({ id, include, request, }: Options$y<C>): Promise<ky.KyResponse<GetContactResponse<C>>>;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
interface Options$x {
|
|
917
|
-
request?: RequestInit;
|
|
918
|
-
}
|
|
919
|
-
type ListContactsResponse = {
|
|
920
|
-
data: {
|
|
921
|
-
contact: {
|
|
922
|
-
id: string;
|
|
923
|
-
name?: string;
|
|
924
|
-
emailAddress?: string;
|
|
925
|
-
telephoneNumber?: string;
|
|
926
|
-
account: string;
|
|
927
|
-
createdAt: string;
|
|
928
|
-
updatedAt?: string;
|
|
929
|
-
};
|
|
930
|
-
}[];
|
|
931
|
-
};
|
|
932
|
-
declare class ListContacts {
|
|
933
|
-
protected _transport: FetchTransport;
|
|
934
|
-
constructor(_transport: FetchTransport);
|
|
935
|
-
send({ request }?: Options$x): Promise<ky.KyResponse<ListContactsResponse>>;
|
|
936
|
-
}
|
|
937
|
-
|
|
938
|
-
interface Options$w {
|
|
939
|
-
id: string;
|
|
940
|
-
request?: RequestInit;
|
|
941
|
-
}
|
|
942
|
-
type ListLabelContactsResponse = {
|
|
943
|
-
data: {
|
|
944
|
-
contact: {
|
|
945
|
-
id: string;
|
|
946
|
-
name?: string;
|
|
947
|
-
emailAddress?: string;
|
|
948
|
-
telephoneNumber?: string;
|
|
949
|
-
account: string;
|
|
950
|
-
createdAt: string;
|
|
951
|
-
updatedAt?: string;
|
|
952
|
-
};
|
|
953
|
-
}[];
|
|
954
|
-
};
|
|
955
|
-
declare class ListLabelContacts {
|
|
956
|
-
protected _transport: FetchTransport;
|
|
957
|
-
constructor(_transport: FetchTransport);
|
|
958
|
-
send({ id, request }: Options$w): Promise<ky.KyResponse<ListLabelContactsResponse>>;
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
interface Options$v {
|
|
962
|
-
id: string;
|
|
963
|
-
body: z.infer<typeof UpdateContact.SCHEMA>;
|
|
964
|
-
request?: RequestInit;
|
|
965
|
-
}
|
|
966
|
-
type UpdateContactResponse = {
|
|
967
|
-
data: {
|
|
968
|
-
contact: {
|
|
969
|
-
id: string;
|
|
970
|
-
name?: string;
|
|
971
|
-
emailAddress?: string;
|
|
972
|
-
telephoneNumber?: string;
|
|
973
|
-
account: string;
|
|
974
|
-
createdAt: string;
|
|
975
|
-
updatedAt?: string;
|
|
976
|
-
};
|
|
977
|
-
};
|
|
978
|
-
};
|
|
979
|
-
declare class UpdateContact {
|
|
980
|
-
protected _transport: FetchTransport;
|
|
981
|
-
static SCHEMA: z.ZodObject<{
|
|
982
|
-
name: z.ZodOptional<z.ZodString>;
|
|
983
|
-
emailAddress: z.ZodOptional<z.ZodString>;
|
|
984
|
-
telephoneNumber: z.ZodOptional<z.ZodString>;
|
|
985
|
-
}, "strip", z.ZodTypeAny, {
|
|
986
|
-
name?: string | undefined;
|
|
987
|
-
emailAddress?: string | undefined;
|
|
988
|
-
telephoneNumber?: string | undefined;
|
|
989
|
-
}, {
|
|
990
|
-
name?: string | undefined;
|
|
991
|
-
emailAddress?: string | undefined;
|
|
992
|
-
telephoneNumber?: string | undefined;
|
|
993
|
-
}>;
|
|
994
|
-
constructor(_transport: FetchTransport);
|
|
995
|
-
send({ id, body, request }: Options$v): Promise<ky.KyResponse<UpdateContactResponse>>;
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
interface IncludeOptions$3 {
|
|
999
|
-
channel?: boolean;
|
|
1000
|
-
}
|
|
1001
|
-
interface Options$u<C extends IncludeOptions$3> {
|
|
1002
|
-
id: string;
|
|
1003
|
-
include?: C;
|
|
1004
|
-
request?: RequestInit;
|
|
1005
|
-
}
|
|
1006
|
-
type GetConversationResponse<C extends IncludeOptions$3> = {
|
|
1007
|
-
data: {
|
|
1008
|
-
conversation: {
|
|
1009
|
-
id: string;
|
|
1010
|
-
name?: string;
|
|
1011
|
-
hasEnded: boolean;
|
|
1012
|
-
contacts: string[];
|
|
1013
|
-
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
1014
|
-
channel: string;
|
|
1015
|
-
createdAt: string;
|
|
1016
|
-
updatedAt: string;
|
|
1017
|
-
};
|
|
1018
|
-
channel: C extends {
|
|
1019
|
-
channel: true;
|
|
1020
|
-
} ? {
|
|
1021
|
-
id: string;
|
|
1022
|
-
name?: string;
|
|
1023
|
-
status: "ActiveChannelStatus" | "PotentialChannelStatus";
|
|
1024
|
-
account: string;
|
|
1025
|
-
createdAt: string;
|
|
1026
|
-
updatedAt: string;
|
|
1027
|
-
} & ({
|
|
1028
|
-
source: "meta-whatsapp";
|
|
1029
|
-
metaWhatsapp: {
|
|
1030
|
-
id: string;
|
|
1031
|
-
whatsappAccountID: string;
|
|
1032
|
-
whatsappPhoneNumberID: string;
|
|
1033
|
-
accessToken: string;
|
|
1034
|
-
};
|
|
1035
|
-
} | {
|
|
1036
|
-
source: "twilio-sendgrid";
|
|
1037
|
-
twilioSendgrid: {
|
|
1038
|
-
id: string;
|
|
1039
|
-
displayName: string;
|
|
1040
|
-
outboundEmailAddress: string;
|
|
1041
|
-
replyEmailAddress?: string;
|
|
1042
|
-
inboundHostname: string;
|
|
1043
|
-
apiKey: string;
|
|
1044
|
-
secrets: {
|
|
1045
|
-
id: string;
|
|
1046
|
-
isActive: boolean;
|
|
1047
|
-
secretExcerpt: string;
|
|
1048
|
-
}[];
|
|
1049
|
-
};
|
|
1050
|
-
}) : never;
|
|
1051
|
-
};
|
|
1052
|
-
};
|
|
1053
|
-
declare class GetConversation {
|
|
1054
|
-
protected _transport: FetchTransport;
|
|
1055
|
-
constructor(_transport: FetchTransport);
|
|
1056
|
-
send<C extends IncludeOptions$3>({ id, include, request, }: Options$u<C>): Promise<ky.KyResponse<GetConversationResponse<C>>>;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
interface Options$t {
|
|
1060
|
-
id: string;
|
|
1061
|
-
request?: RequestInit;
|
|
1062
|
-
}
|
|
1063
|
-
type ListContactConversationsResponse = {
|
|
1064
|
-
data: {
|
|
1065
|
-
conversation: {
|
|
1066
|
-
id: string;
|
|
1067
|
-
name?: string;
|
|
1068
|
-
hasEnded: boolean;
|
|
1069
|
-
contacts: string[];
|
|
1070
|
-
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
1071
|
-
channel: string;
|
|
1072
|
-
createdAt: string;
|
|
1073
|
-
updatedAt: string;
|
|
1074
|
-
};
|
|
1075
|
-
}[];
|
|
1076
|
-
};
|
|
1077
|
-
declare class ListContactConversations {
|
|
1078
|
-
protected _transport: FetchTransport;
|
|
1079
|
-
constructor(_transport: FetchTransport);
|
|
1080
|
-
send({ id, request }: Options$t): Promise<ky.KyResponse<ListContactConversationsResponse>>;
|
|
1081
|
-
}
|
|
1082
|
-
|
|
1083
|
-
interface IncludeOptions$2 {
|
|
1084
|
-
latestMessage?: boolean;
|
|
1085
|
-
}
|
|
1086
|
-
interface Options$s<C extends IncludeOptions$2> {
|
|
1087
|
-
filter?: "unresolved";
|
|
1088
|
-
include?: C;
|
|
1089
|
-
request?: RequestInit;
|
|
1090
|
-
}
|
|
1091
|
-
type ListConversationsResponse<C extends IncludeOptions$2> = {
|
|
1092
|
-
data: {
|
|
1093
|
-
conversation: {
|
|
1094
|
-
id: string;
|
|
1095
|
-
name?: string;
|
|
1096
|
-
hasEnded: boolean;
|
|
1097
|
-
contacts: string[];
|
|
1098
|
-
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
1099
|
-
channel: string;
|
|
1100
|
-
createdAt: string;
|
|
1101
|
-
updatedAt: string;
|
|
1102
|
-
};
|
|
1103
|
-
latestMessage?: C extends {
|
|
1104
|
-
latestMessage: true;
|
|
1105
|
-
} ? {
|
|
1106
|
-
id: string;
|
|
1107
|
-
role: "user" | "assistant";
|
|
1108
|
-
status: string;
|
|
1109
|
-
externalIdentifier?: string;
|
|
1110
|
-
conversation: string;
|
|
1111
|
-
contact: string;
|
|
1112
|
-
messageEvents: {
|
|
1113
|
-
id: string;
|
|
1114
|
-
messageEventType: string;
|
|
1115
|
-
triggeredAt: string;
|
|
1116
|
-
createdAt: string;
|
|
1117
|
-
updatedAt?: string;
|
|
1118
|
-
}[];
|
|
1119
|
-
createdAt: string;
|
|
1120
|
-
updatedAt: string;
|
|
1121
|
-
} : never;
|
|
1122
|
-
}[];
|
|
1123
|
-
};
|
|
1124
|
-
declare class ListConversations {
|
|
1125
|
-
protected _transport: FetchTransport;
|
|
1126
|
-
constructor(_transport: FetchTransport);
|
|
1127
|
-
send<C extends IncludeOptions$2>({ filter, include, request, }?: Options$s<C>): Promise<ky.KyResponse<ListConversationsResponse<C>>>;
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
interface Options$r {
|
|
1131
|
-
id: string;
|
|
1132
|
-
request?: RequestInit;
|
|
1133
|
-
}
|
|
1134
|
-
type ListLabelConversationsResponse = {
|
|
1135
|
-
data: {
|
|
1136
|
-
conversation: {
|
|
1137
|
-
id: string;
|
|
1138
|
-
name?: string;
|
|
1139
|
-
hasEnded: boolean;
|
|
1140
|
-
contacts: string[];
|
|
1141
|
-
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
1142
|
-
channel: string;
|
|
1143
|
-
createdAt: string;
|
|
1144
|
-
updatedAt: string;
|
|
1145
|
-
};
|
|
1146
|
-
}[];
|
|
1147
|
-
};
|
|
1148
|
-
declare class ListLabelConversations {
|
|
1149
|
-
protected _transport: FetchTransport;
|
|
1150
|
-
constructor(_transport: FetchTransport);
|
|
1151
|
-
send({ id, request }: Options$r): Promise<ky.KyResponse<ListLabelConversationsResponse>>;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
interface Options$q {
|
|
1155
|
-
id: string;
|
|
1156
|
-
body: z.infer<typeof UpdateConversation.SCHEMA>;
|
|
1157
|
-
request?: RequestInit;
|
|
1158
|
-
}
|
|
1159
|
-
type UpdateConversationResponse = {
|
|
1160
|
-
data: {
|
|
1161
|
-
conversation: {
|
|
1162
|
-
id: string;
|
|
1163
|
-
name?: string;
|
|
1164
|
-
hasEnded: boolean;
|
|
1165
|
-
contacts: string[];
|
|
1166
|
-
status: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus";
|
|
1167
|
-
channel: string;
|
|
1168
|
-
createdAt: string;
|
|
1169
|
-
updatedAt: string;
|
|
1170
|
-
};
|
|
1171
|
-
};
|
|
1172
|
-
};
|
|
1173
|
-
declare class UpdateConversation {
|
|
1174
|
-
protected _transport: FetchTransport;
|
|
1175
|
-
static SCHEMA: z.ZodObject<{
|
|
1176
|
-
status: z.ZodOptional<z.ZodEnum<["AwaitingContactConversationStatus", "AwaitingAgentConversationStatus", "ResolvedConversationStatus", "ClosedConversationStatus"]>>;
|
|
1177
|
-
hasEnded: z.ZodOptional<z.ZodBoolean>;
|
|
1178
|
-
}, "strip", z.ZodTypeAny, {
|
|
1179
|
-
status?: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus" | undefined;
|
|
1180
|
-
hasEnded?: boolean | undefined;
|
|
1181
|
-
}, {
|
|
1182
|
-
status?: "AwaitingContactConversationStatus" | "AwaitingAgentConversationStatus" | "ResolvedConversationStatus" | "ClosedConversationStatus" | undefined;
|
|
1183
|
-
hasEnded?: boolean | undefined;
|
|
1184
|
-
}>;
|
|
1185
|
-
constructor(_transport: FetchTransport);
|
|
1186
|
-
send({ id, body, request }: Options$q): Promise<ky.KyResponse<UpdateConversationResponse>>;
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
interface Options$p {
|
|
1190
|
-
body: z.infer<typeof CreateLabel.SCHEMA>;
|
|
1191
|
-
request?: RequestInit;
|
|
1192
|
-
}
|
|
1193
|
-
type CreateLabelResponse = {
|
|
1194
|
-
data: {
|
|
1195
|
-
label: {
|
|
1196
|
-
id: string;
|
|
1197
|
-
title: string;
|
|
1198
|
-
description?: string;
|
|
1199
|
-
account: string;
|
|
1200
|
-
createdAt: string;
|
|
1201
|
-
updatedAt?: string;
|
|
1202
|
-
};
|
|
1203
|
-
};
|
|
1204
|
-
};
|
|
1205
|
-
declare class CreateLabel {
|
|
1206
|
-
protected _transport: FetchTransport;
|
|
1207
|
-
static SCHEMA: z.ZodObject<{
|
|
1208
|
-
title: z.ZodString;
|
|
1209
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1210
|
-
account: z.ZodString;
|
|
1211
|
-
}, "strip", z.ZodTypeAny, {
|
|
1212
|
-
title: string;
|
|
1213
|
-
account: string;
|
|
1214
|
-
description?: string | undefined;
|
|
1215
|
-
}, {
|
|
1216
|
-
title: string;
|
|
1217
|
-
account: string;
|
|
1218
|
-
description?: string | undefined;
|
|
1219
|
-
}>;
|
|
1220
|
-
constructor(_transport: FetchTransport);
|
|
1221
|
-
send({ body, request }: Options$p): Promise<ky.KyResponse<CreateLabelResponse>>;
|
|
1222
|
-
}
|
|
1223
|
-
|
|
1224
|
-
interface Options$o {
|
|
1225
|
-
id: string;
|
|
1226
|
-
request?: RequestInit;
|
|
1227
|
-
}
|
|
1228
|
-
type DeleteLabelResponse = Record<string, never>;
|
|
1229
|
-
declare class DeleteLabel {
|
|
1230
|
-
protected _transport: FetchTransport;
|
|
1231
|
-
constructor(_transport: FetchTransport);
|
|
1232
|
-
send({ id, request }: Options$o): Promise<ky.KyResponse<DeleteLabelResponse>>;
|
|
1233
|
-
}
|
|
1234
|
-
|
|
1235
|
-
interface Options$n {
|
|
1236
|
-
id: string;
|
|
1237
|
-
request?: RequestInit;
|
|
1238
|
-
}
|
|
1239
|
-
type GetLabelResponse = {
|
|
1240
|
-
data: {
|
|
1241
|
-
label: {
|
|
1242
|
-
id: string;
|
|
1243
|
-
title: string;
|
|
1244
|
-
description?: string;
|
|
1245
|
-
account: string;
|
|
1246
|
-
createdAt: string;
|
|
1247
|
-
updatedAt?: string;
|
|
1248
|
-
};
|
|
1249
|
-
};
|
|
1250
|
-
};
|
|
1251
|
-
declare class GetLabel {
|
|
1252
|
-
protected _transport: FetchTransport;
|
|
1253
|
-
constructor(_transport: FetchTransport);
|
|
1254
|
-
send({ id, request }: Options$n): Promise<ky.KyResponse<GetLabelResponse>>;
|
|
1255
|
-
}
|
|
1256
|
-
|
|
1257
|
-
interface IncludeOptions$1 {
|
|
1258
|
-
contactCount?: boolean;
|
|
1259
|
-
conversationCount?: boolean;
|
|
1260
|
-
}
|
|
1261
|
-
interface Options$m<C extends IncludeOptions$1> {
|
|
1262
|
-
include?: C;
|
|
1263
|
-
request?: RequestInit;
|
|
1264
|
-
}
|
|
1265
|
-
type ListLabelsResponse<C extends IncludeOptions$1> = {
|
|
1266
|
-
data: {
|
|
1267
|
-
label: {
|
|
1268
|
-
id: string;
|
|
1269
|
-
title: string;
|
|
1270
|
-
description?: string;
|
|
1271
|
-
account: string;
|
|
1272
|
-
createdAt: string;
|
|
1273
|
-
updatedAt?: string;
|
|
1274
|
-
};
|
|
1275
|
-
contactCount?: C extends {
|
|
1276
|
-
contactCount: true;
|
|
1277
|
-
} ? number : never;
|
|
1278
|
-
conversationCount?: C extends {
|
|
1279
|
-
conversationCount: true;
|
|
1280
|
-
} ? number : never;
|
|
1281
|
-
}[];
|
|
1282
|
-
};
|
|
1283
|
-
declare class ListLabels {
|
|
1284
|
-
protected _transport: FetchTransport;
|
|
1285
|
-
constructor(_transport: FetchTransport);
|
|
1286
|
-
send<C extends IncludeOptions$1>({ include, request, }?: Options$m<C>): Promise<ky.KyResponse<ListLabelsResponse<C>>>;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
interface Options$l {
|
|
1290
|
-
id: string;
|
|
1291
|
-
body: z.infer<typeof UpdateLabel.SCHEMA>;
|
|
1292
|
-
request?: RequestInit;
|
|
1293
|
-
}
|
|
1294
|
-
type UpdateLabelResponse = {
|
|
1295
|
-
data: {
|
|
1296
|
-
label: {
|
|
1297
|
-
id: string;
|
|
1298
|
-
title: string;
|
|
1299
|
-
description?: string;
|
|
1300
|
-
account: string;
|
|
1301
|
-
createdAt: string;
|
|
1302
|
-
updatedAt?: string;
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1305
|
-
};
|
|
1306
|
-
declare class UpdateLabel {
|
|
1307
|
-
protected _transport: FetchTransport;
|
|
1308
|
-
static SCHEMA: z.ZodObject<{
|
|
1309
|
-
title: z.ZodOptional<z.ZodString>;
|
|
1310
|
-
description: z.ZodOptional<z.ZodString>;
|
|
1311
|
-
}, "strip", z.ZodTypeAny, {
|
|
1312
|
-
title?: string | undefined;
|
|
1313
|
-
description?: string | undefined;
|
|
1314
|
-
}, {
|
|
1315
|
-
title?: string | undefined;
|
|
1316
|
-
description?: string | undefined;
|
|
1317
|
-
}>;
|
|
1318
|
-
constructor(_transport: FetchTransport);
|
|
1319
|
-
send({ id, body, request }: Options$l): Promise<ky.KyResponse<UpdateLabelResponse>>;
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
interface Options$k {
|
|
1323
|
-
id: string;
|
|
1324
|
-
request?: RequestInit;
|
|
1325
|
-
}
|
|
1326
|
-
type ListChannelMessagesResponse = {
|
|
1327
|
-
data: {
|
|
1328
|
-
message: {
|
|
1329
|
-
id: string;
|
|
1330
|
-
role: "user" | "assistant";
|
|
1331
|
-
status: string;
|
|
1332
|
-
externalIdentifier?: string;
|
|
1333
|
-
conversation: string;
|
|
1334
|
-
contact: string;
|
|
1335
|
-
messageEvents: {
|
|
1336
|
-
id: string;
|
|
1337
|
-
messageEventType: string;
|
|
1338
|
-
triggeredAt: string;
|
|
1339
|
-
createdAt: string;
|
|
1340
|
-
updatedAt?: string;
|
|
1341
|
-
}[];
|
|
1342
|
-
createdAt: string;
|
|
1343
|
-
updatedAt: string;
|
|
1344
|
-
};
|
|
1345
|
-
}[];
|
|
1346
|
-
};
|
|
1347
|
-
declare class ListChannelMessages {
|
|
1348
|
-
protected _transport: FetchTransport;
|
|
1349
|
-
constructor(_transport: FetchTransport);
|
|
1350
|
-
send({ id, request }: Options$k): Promise<ky.KyResponse<ListChannelMessagesResponse>>;
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
interface IncludeOptions {
|
|
1354
|
-
contact?: boolean;
|
|
1355
|
-
}
|
|
1356
|
-
interface Options$j<C extends IncludeOptions> {
|
|
1357
|
-
id: string;
|
|
1358
|
-
include?: C;
|
|
1359
|
-
request?: RequestInit;
|
|
1360
|
-
}
|
|
1361
|
-
type ListConversationMessagesResponse<C extends IncludeOptions> = {
|
|
1362
|
-
data: {
|
|
1363
|
-
message: {
|
|
1364
|
-
id: string;
|
|
1365
|
-
role: "user" | "assistant";
|
|
1366
|
-
status: string;
|
|
1367
|
-
externalIdentifier?: string;
|
|
1368
|
-
conversation: string;
|
|
1369
|
-
contact: string;
|
|
1370
|
-
messageEvents: {
|
|
1371
|
-
id: string;
|
|
1372
|
-
messageEventType: string;
|
|
1373
|
-
triggeredAt: string;
|
|
1374
|
-
createdAt: string;
|
|
1375
|
-
updatedAt?: string;
|
|
1376
|
-
}[];
|
|
1377
|
-
createdAt: string;
|
|
1378
|
-
updatedAt: string;
|
|
1379
|
-
};
|
|
1380
|
-
contact?: C extends {
|
|
1381
|
-
contact: true;
|
|
1382
|
-
} ? {
|
|
1383
|
-
id: string;
|
|
1384
|
-
name?: string;
|
|
1385
|
-
emailAddress?: string;
|
|
1386
|
-
telephoneNumber?: string;
|
|
1387
|
-
account: string;
|
|
1388
|
-
createdAt: string;
|
|
1389
|
-
updatedAt?: string;
|
|
1390
|
-
} : never;
|
|
1391
|
-
}[];
|
|
1392
|
-
};
|
|
1393
|
-
declare class ListConversationMessages {
|
|
1394
|
-
protected _transport: FetchTransport;
|
|
1395
|
-
constructor(_transport: FetchTransport);
|
|
1396
|
-
send<C extends IncludeOptions>({ id, include, request, }: Options$j<C>): Promise<ky.KyResponse<ListConversationMessagesResponse<C>>>;
|
|
1397
|
-
}
|
|
1398
|
-
|
|
1399
|
-
interface Options$i {
|
|
1400
|
-
request?: RequestInit;
|
|
1401
|
-
}
|
|
1402
|
-
type ListMessagesResponse = {
|
|
1403
|
-
data: {
|
|
1404
|
-
message: {
|
|
1405
|
-
id: string;
|
|
1406
|
-
role: "user" | "assistant";
|
|
1407
|
-
status: string;
|
|
1408
|
-
externalIdentifier?: string;
|
|
1409
|
-
conversation: string;
|
|
1410
|
-
contact: string;
|
|
1411
|
-
messageEvents: {
|
|
1412
|
-
id: string;
|
|
1413
|
-
messageEventType: string;
|
|
1414
|
-
triggeredAt: string;
|
|
1415
|
-
createdAt: string;
|
|
1416
|
-
updatedAt?: string;
|
|
1417
|
-
}[];
|
|
1418
|
-
createdAt: string;
|
|
1419
|
-
updatedAt: string;
|
|
1420
|
-
};
|
|
1421
|
-
}[];
|
|
1422
|
-
};
|
|
1423
|
-
declare class ListMessages {
|
|
1424
|
-
protected _transport: FetchTransport;
|
|
1425
|
-
constructor(_transport: FetchTransport);
|
|
1426
|
-
send({ request }?: Options$i): Promise<ky.KyResponse<ListMessagesResponse>>;
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
|
-
interface Options$h {
|
|
1430
|
-
id: string;
|
|
1431
|
-
body: z.infer<typeof CreateCorrectionModel.SCHEMA>;
|
|
1432
|
-
request?: RequestInit;
|
|
1433
|
-
}
|
|
1434
|
-
type CreateCorrectionResponse = unknown;
|
|
1435
|
-
declare class CreateCorrectionModel {
|
|
1436
|
-
protected _transport: FetchTransport;
|
|
1437
|
-
static SCHEMA: z.ZodObject<{
|
|
1438
|
-
input: z.ZodString;
|
|
1439
|
-
original: z.ZodString;
|
|
1440
|
-
correction: z.ZodString;
|
|
1441
|
-
}, "strip", z.ZodTypeAny, {
|
|
1442
|
-
input: string;
|
|
1443
|
-
original: string;
|
|
1444
|
-
correction: string;
|
|
1445
|
-
}, {
|
|
1446
|
-
input: string;
|
|
1447
|
-
original: string;
|
|
1448
|
-
correction: string;
|
|
1449
|
-
}>;
|
|
1450
|
-
constructor(_transport: FetchTransport);
|
|
1451
|
-
send({ id, body, request }: Options$h): Promise<ky.KyResponse<unknown>>;
|
|
1452
|
-
}
|
|
1453
|
-
|
|
1454
|
-
interface Options$g {
|
|
1455
|
-
id: string;
|
|
1456
|
-
request?: RequestInit;
|
|
1457
|
-
}
|
|
1458
|
-
type GetModelResponse = {
|
|
1459
|
-
data: {
|
|
1460
|
-
model: {
|
|
1461
|
-
id: string;
|
|
1462
|
-
name: string;
|
|
1463
|
-
url?: string;
|
|
1464
|
-
icon?: string;
|
|
1465
|
-
disambiguatingDescription: string;
|
|
1466
|
-
};
|
|
1467
|
-
};
|
|
1468
|
-
};
|
|
1469
|
-
declare class GetModel {
|
|
1470
|
-
protected _transport: FetchTransport;
|
|
1471
|
-
constructor(_transport: FetchTransport);
|
|
1472
|
-
send({ id, request }: Options$g): Promise<ky.KyResponse<GetModelResponse>>;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
interface Options$f {
|
|
1476
|
-
request?: RequestInit;
|
|
1477
|
-
}
|
|
1478
|
-
type ListModelsResponse = {
|
|
1479
|
-
data: {
|
|
1480
|
-
model: {
|
|
1481
|
-
id: string;
|
|
1482
|
-
name: string;
|
|
1483
|
-
url?: string;
|
|
1484
|
-
icon?: string;
|
|
1485
|
-
disambiguatingDescription: string;
|
|
1486
|
-
};
|
|
1487
|
-
}[];
|
|
1488
|
-
};
|
|
1489
|
-
declare class ListModels {
|
|
1490
|
-
protected _transport: FetchTransport;
|
|
1491
|
-
constructor(_transport: FetchTransport);
|
|
1492
|
-
send({ request }?: Options$f): Promise<ky.KyResponse<ListModelsResponse>>;
|
|
1493
|
-
}
|
|
1494
|
-
|
|
1495
|
-
interface Options$e {
|
|
1496
|
-
id: string;
|
|
1497
|
-
body: z.infer<typeof CreateResponseModel.SCHEMA>;
|
|
1498
|
-
request?: RequestInit;
|
|
1499
|
-
}
|
|
1500
|
-
type CreateResponseResponse = {
|
|
1501
|
-
message: string | null;
|
|
1502
|
-
debug: {
|
|
1503
|
-
duration: string;
|
|
1504
|
-
sources: (string | undefined)[];
|
|
1505
|
-
};
|
|
1506
|
-
};
|
|
1507
|
-
declare class CreateResponseModel {
|
|
1508
|
-
protected _transport: FetchTransport;
|
|
1509
|
-
static SCHEMA: z.ZodArray<z.ZodObject<{
|
|
1510
|
-
role: z.ZodEnum<["user", "assistant"]>;
|
|
1511
|
-
content: z.ZodNullable<z.ZodString>;
|
|
1512
|
-
}, "strip", z.ZodTypeAny, {
|
|
1513
|
-
content: string | null;
|
|
1514
|
-
role: "user" | "assistant";
|
|
1515
|
-
}, {
|
|
1516
|
-
content: string | null;
|
|
1517
|
-
role: "user" | "assistant";
|
|
1518
|
-
}>, "many">;
|
|
1519
|
-
constructor(_transport: FetchTransport);
|
|
1520
|
-
send({ id, body, request }: Options$e): Promise<ky.KyResponse<CreateResponseResponse>>;
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
interface Options$d {
|
|
1524
|
-
id: string;
|
|
1525
|
-
body: z.infer<typeof CreateContactNote.SCHEMA>;
|
|
1526
|
-
request?: RequestInit;
|
|
1527
|
-
}
|
|
1528
|
-
type CreateContactNoteResponse = {
|
|
1529
|
-
data: {
|
|
1530
|
-
note: {
|
|
1531
|
-
id: string;
|
|
1532
|
-
content: string;
|
|
1533
|
-
createdAt: string;
|
|
1534
|
-
updatedAt: string;
|
|
1535
|
-
};
|
|
1536
|
-
};
|
|
1537
|
-
};
|
|
1538
|
-
declare class CreateContactNote {
|
|
1539
|
-
protected _transport: FetchTransport;
|
|
1540
|
-
static SCHEMA: z.ZodObject<{
|
|
1541
|
-
content: z.ZodString;
|
|
1542
|
-
}, "strip", z.ZodTypeAny, {
|
|
1543
|
-
content: string;
|
|
1544
|
-
}, {
|
|
1545
|
-
content: string;
|
|
1546
|
-
}>;
|
|
1547
|
-
constructor(_transport: FetchTransport);
|
|
1548
|
-
send({ id, body, request }: Options$d): Promise<ky.KyResponse<CreateContactNoteResponse>>;
|
|
1549
|
-
}
|
|
1550
|
-
|
|
1551
|
-
interface Options$c {
|
|
1552
|
-
id: string;
|
|
1553
|
-
body: z.infer<typeof CreateConversationNote.SCHEMA>;
|
|
1554
|
-
request?: RequestInit;
|
|
1555
|
-
}
|
|
1556
|
-
type CreateConversationNoteResponse = {
|
|
1557
|
-
data: {
|
|
1558
|
-
note: {
|
|
1559
|
-
id: string;
|
|
1560
|
-
content: string;
|
|
1561
|
-
createdAt: string;
|
|
1562
|
-
updatedAt: string;
|
|
1563
|
-
};
|
|
1564
|
-
};
|
|
1565
|
-
};
|
|
1566
|
-
declare class CreateConversationNote {
|
|
1567
|
-
protected _transport: FetchTransport;
|
|
1568
|
-
static SCHEMA: z.ZodObject<{
|
|
1569
|
-
content: z.ZodString;
|
|
1570
|
-
}, "strip", z.ZodTypeAny, {
|
|
1571
|
-
content: string;
|
|
1572
|
-
}, {
|
|
1573
|
-
content: string;
|
|
1574
|
-
}>;
|
|
1575
|
-
constructor(_transport: FetchTransport);
|
|
1576
|
-
send({ id, body, request }: Options$c): Promise<ky.KyResponse<CreateConversationNoteResponse>>;
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
interface Options$b {
|
|
1580
|
-
id: string;
|
|
1581
|
-
request?: RequestInit;
|
|
1582
|
-
}
|
|
1583
|
-
type GetNoteResponse = {
|
|
1584
|
-
data: {
|
|
1585
|
-
note: {
|
|
1586
|
-
id: string;
|
|
1587
|
-
content: string;
|
|
1588
|
-
createdAt: string;
|
|
1589
|
-
updatedAt: string;
|
|
1590
|
-
};
|
|
1591
|
-
};
|
|
1592
|
-
};
|
|
1593
|
-
declare class GetNote {
|
|
1594
|
-
protected _transport: FetchTransport;
|
|
1595
|
-
constructor(_transport: FetchTransport);
|
|
1596
|
-
send({ id, request }: Options$b): Promise<ky.KyResponse<GetNoteResponse>>;
|
|
1597
|
-
}
|
|
1598
|
-
|
|
1599
|
-
interface Options$a {
|
|
1600
|
-
id: string;
|
|
1601
|
-
request?: RequestInit;
|
|
1602
|
-
}
|
|
1603
|
-
type ListContactNotesResponse = {
|
|
1604
|
-
data: {
|
|
1605
|
-
note: {
|
|
1606
|
-
id: string;
|
|
1607
|
-
content: string;
|
|
1608
|
-
createdAt: string;
|
|
1609
|
-
updatedAt: string;
|
|
1610
|
-
};
|
|
1611
|
-
}[];
|
|
1612
|
-
};
|
|
1613
|
-
declare class ListContactNotes {
|
|
1614
|
-
protected _transport: FetchTransport;
|
|
1615
|
-
constructor(_transport: FetchTransport);
|
|
1616
|
-
send({ id, request }: Options$a): Promise<ky.KyResponse<ListContactNotesResponse>>;
|
|
1617
|
-
}
|
|
1618
|
-
|
|
1619
|
-
interface Options$9 {
|
|
1620
|
-
id: string;
|
|
1621
|
-
request?: RequestInit;
|
|
1622
|
-
}
|
|
1623
|
-
type ListConversationNotesResponse = {
|
|
1624
|
-
data: {
|
|
1625
|
-
note: {
|
|
1626
|
-
id: string;
|
|
1627
|
-
content: string;
|
|
1628
|
-
createdAt: string;
|
|
1629
|
-
updatedAt: string;
|
|
1630
|
-
};
|
|
1631
|
-
}[];
|
|
1632
|
-
};
|
|
1633
|
-
declare class ListConversationNotes {
|
|
1634
|
-
protected _transport: FetchTransport;
|
|
1635
|
-
constructor(_transport: FetchTransport);
|
|
1636
|
-
send({ id, request }: Options$9): Promise<ky.KyResponse<ListConversationNotesResponse>>;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
interface Options$8 {
|
|
1640
|
-
id: string;
|
|
1641
|
-
body: z.infer<typeof UpdateNote.SCHEMA>;
|
|
1642
|
-
request?: RequestInit;
|
|
1643
|
-
}
|
|
1644
|
-
type UpdateNoteResponse = {
|
|
1645
|
-
data: {
|
|
1646
|
-
note: {
|
|
1647
|
-
id: string;
|
|
1648
|
-
content: string;
|
|
1649
|
-
createdAt: string;
|
|
1650
|
-
updatedAt: string;
|
|
1651
|
-
};
|
|
1652
|
-
};
|
|
1653
|
-
};
|
|
1654
|
-
declare class UpdateNote {
|
|
1655
|
-
protected _transport: FetchTransport;
|
|
1656
|
-
static SCHEMA: z.ZodObject<{
|
|
1657
|
-
content: z.ZodOptional<z.ZodString>;
|
|
1658
|
-
}, "strip", z.ZodTypeAny, {
|
|
1659
|
-
content?: string | undefined;
|
|
1660
|
-
}, {
|
|
1661
|
-
content?: string | undefined;
|
|
1662
|
-
}>;
|
|
1663
|
-
constructor(_transport: FetchTransport);
|
|
1664
|
-
send({ id, body, request }: Options$8): Promise<ky.KyResponse<UpdateNoteResponse>>;
|
|
1665
|
-
}
|
|
1666
|
-
|
|
1667
|
-
interface Options$7 {
|
|
1668
|
-
id: string;
|
|
1669
|
-
body: z.infer<typeof CreateContactNotificationSubscription.SCHEMA>;
|
|
1670
|
-
request?: RequestInit;
|
|
1671
|
-
}
|
|
1672
|
-
type CreateContactNotificationSubscriptionResponse = {
|
|
1673
|
-
data: {
|
|
1674
|
-
notificationSubscription: {
|
|
1675
|
-
id: string;
|
|
1676
|
-
createdAt: string;
|
|
1677
|
-
updatedAt: string;
|
|
1678
|
-
};
|
|
1679
|
-
};
|
|
1680
|
-
};
|
|
1681
|
-
declare class CreateContactNotificationSubscription {
|
|
1682
|
-
protected _transport: FetchTransport;
|
|
1683
|
-
static SCHEMA: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1684
|
-
type: z.ZodLiteral<"vapid">;
|
|
1685
|
-
endpoint: z.ZodString;
|
|
1686
|
-
keys: z.ZodObject<{
|
|
1687
|
-
p256dh: z.ZodString;
|
|
1688
|
-
auth: z.ZodString;
|
|
1689
|
-
}, "strip", z.ZodTypeAny, {
|
|
1690
|
-
p256dh: string;
|
|
1691
|
-
auth: string;
|
|
1692
|
-
}, {
|
|
1693
|
-
p256dh: string;
|
|
1694
|
-
auth: string;
|
|
1695
|
-
}>;
|
|
1696
|
-
}, "strip", z.ZodTypeAny, {
|
|
1697
|
-
keys: {
|
|
1698
|
-
p256dh: string;
|
|
1699
|
-
auth: string;
|
|
1700
|
-
};
|
|
1701
|
-
type: "vapid";
|
|
1702
|
-
endpoint: string;
|
|
1703
|
-
}, {
|
|
1704
|
-
keys: {
|
|
1705
|
-
p256dh: string;
|
|
1706
|
-
auth: string;
|
|
1707
|
-
};
|
|
1708
|
-
type: "vapid";
|
|
1709
|
-
endpoint: string;
|
|
1710
|
-
}>]>;
|
|
1711
|
-
constructor(_transport: FetchTransport);
|
|
1712
|
-
send({ id, body, request }: Options$7): Promise<ky.KyResponse<CreateContactNotificationSubscriptionResponse>>;
|
|
1713
|
-
}
|
|
1714
|
-
|
|
1715
|
-
interface Options$6 {
|
|
1716
|
-
id: string;
|
|
1717
|
-
request?: RequestInit;
|
|
1718
|
-
}
|
|
1719
|
-
type GetSourceResponse = {
|
|
1720
|
-
data: {
|
|
1721
|
-
source: {
|
|
1722
|
-
id: string;
|
|
1723
|
-
name: string;
|
|
1724
|
-
category: string;
|
|
1725
|
-
url?: string;
|
|
1726
|
-
icon?: string;
|
|
1727
|
-
disambiguatingDescription: string;
|
|
1728
|
-
};
|
|
1729
|
-
};
|
|
1730
|
-
};
|
|
1731
|
-
declare class GetSource {
|
|
1732
|
-
protected _transport: FetchTransport;
|
|
1733
|
-
constructor(_transport: FetchTransport);
|
|
1734
|
-
send({ id, request }: Options$6): Promise<ky.KyResponse<GetSourceResponse>>;
|
|
1735
|
-
}
|
|
1736
|
-
|
|
1737
|
-
interface Options$5 {
|
|
1738
|
-
category?: string | string[];
|
|
1739
|
-
request?: RequestInit;
|
|
1740
|
-
}
|
|
1741
|
-
type ListSourcesResponse = {
|
|
1742
|
-
data: {
|
|
1743
|
-
source: {
|
|
1744
|
-
id: string;
|
|
1745
|
-
name: string;
|
|
1746
|
-
category: string;
|
|
1747
|
-
url?: string;
|
|
1748
|
-
icon?: string;
|
|
1749
|
-
disambiguatingDescription: string;
|
|
1750
|
-
};
|
|
1751
|
-
}[];
|
|
1752
|
-
};
|
|
1753
|
-
declare class ListSources {
|
|
1754
|
-
protected _transport: FetchTransport;
|
|
1755
|
-
constructor(_transport: FetchTransport);
|
|
1756
|
-
send({ category, request }?: Options$5): Promise<ky.KyResponse<ListSourcesResponse>>;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
interface Options$4 {
|
|
1760
|
-
account: string;
|
|
1761
|
-
files: File[];
|
|
1762
|
-
request?: RequestInit;
|
|
1763
|
-
}
|
|
1764
|
-
type CreateUploadResponse = {
|
|
1765
|
-
data: {
|
|
1766
|
-
upload: {
|
|
1767
|
-
id: string;
|
|
1768
|
-
name: string;
|
|
1769
|
-
alternativeName?: string;
|
|
1770
|
-
contentSize: number;
|
|
1771
|
-
encodingFormat: string;
|
|
1772
|
-
sha256: string;
|
|
1773
|
-
};
|
|
1774
|
-
};
|
|
1775
|
-
};
|
|
1776
|
-
declare class CreateUpload {
|
|
1777
|
-
protected _transport: FetchTransport;
|
|
1778
|
-
constructor(_transport: FetchTransport);
|
|
1779
|
-
send({ account, files, request }: Options$4): Promise<ky.KyResponse<CreateUploadResponse>>;
|
|
1780
|
-
}
|
|
1781
|
-
|
|
1782
|
-
interface Options$3 {
|
|
1783
|
-
id: string;
|
|
1784
|
-
request?: RequestInit;
|
|
1785
|
-
}
|
|
1786
|
-
type DeleteUploadResponse = Record<string, never>;
|
|
1787
|
-
declare class DeleteUpload {
|
|
1788
|
-
protected _transport: FetchTransport;
|
|
1789
|
-
constructor(_transport: FetchTransport);
|
|
1790
|
-
send({ id, request }: Options$3): Promise<ky.KyResponse<DeleteUploadResponse>>;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
interface Options$2 {
|
|
1794
|
-
id: string;
|
|
1795
|
-
request?: RequestInit;
|
|
1796
|
-
}
|
|
1797
|
-
type GetUploadResponse = {
|
|
1798
|
-
data: {
|
|
1799
|
-
url: string;
|
|
1800
|
-
expiresAt: string;
|
|
1801
|
-
upload: {
|
|
1802
|
-
id: string;
|
|
1803
|
-
name: string;
|
|
1804
|
-
alternativeName?: string;
|
|
1805
|
-
contentSize: number;
|
|
1806
|
-
encodingFormat: string;
|
|
1807
|
-
sha256: string;
|
|
1808
|
-
};
|
|
1809
|
-
};
|
|
1810
|
-
};
|
|
1811
|
-
declare class GetUpload {
|
|
1812
|
-
protected _transport: FetchTransport;
|
|
1813
|
-
constructor(_transport: FetchTransport);
|
|
1814
|
-
send({ id, request }: Options$2): Promise<ky.KyResponse<GetUploadResponse>>;
|
|
1815
|
-
}
|
|
1816
|
-
|
|
1817
|
-
/**
|
|
1818
|
-
* Great Detail Support System.
|
|
1819
|
-
*
|
|
1820
|
-
* @copyright 2024 Great Detail Ltd
|
|
1821
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1822
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1823
|
-
* @see https://greatdetail.com
|
|
1824
|
-
*/
|
|
1825
|
-
|
|
1826
|
-
type Options$1 = {
|
|
1827
|
-
request: {
|
|
1828
|
-
body: unknown;
|
|
1829
|
-
headers: Record<string, string | string[]>;
|
|
1830
|
-
[key: string]: unknown | undefined;
|
|
1831
|
-
};
|
|
1832
|
-
};
|
|
1833
|
-
type WebhookResponse = z.infer<typeof Webhook.SCHEMA>;
|
|
1834
|
-
declare class Webhook {
|
|
1835
|
-
protected _client: Client;
|
|
1836
|
-
static SCHEMA: z.ZodObject<{
|
|
1837
|
-
event: z.ZodIntersection<z.ZodObject<{
|
|
1838
|
-
id: z.ZodString;
|
|
1839
|
-
createdAt: z.ZodString;
|
|
1840
|
-
}, "strip", z.ZodTypeAny, {
|
|
1841
|
-
id: string;
|
|
1842
|
-
createdAt: string;
|
|
1843
|
-
}, {
|
|
1844
|
-
id: string;
|
|
1845
|
-
createdAt: string;
|
|
1846
|
-
}>, z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1847
|
-
type: z.ZodLiteral<"contact.created">;
|
|
1848
|
-
contact: z.ZodString;
|
|
1849
|
-
}, "strip", z.ZodTypeAny, {
|
|
1850
|
-
type: "contact.created";
|
|
1851
|
-
contact: string;
|
|
1852
|
-
}, {
|
|
1853
|
-
type: "contact.created";
|
|
1854
|
-
contact: string;
|
|
1855
|
-
}>, z.ZodObject<{
|
|
1856
|
-
type: z.ZodLiteral<"message.created">;
|
|
1857
|
-
message: z.ZodString;
|
|
1858
|
-
}, "strip", z.ZodTypeAny, {
|
|
1859
|
-
message: string;
|
|
1860
|
-
type: "message.created";
|
|
1861
|
-
}, {
|
|
1862
|
-
message: string;
|
|
1863
|
-
type: "message.created";
|
|
1864
|
-
}>]>>;
|
|
1865
|
-
}, "strip", z.ZodTypeAny, {
|
|
1866
|
-
event: {
|
|
1867
|
-
id: string;
|
|
1868
|
-
createdAt: string;
|
|
1869
|
-
} & ({
|
|
1870
|
-
type: "contact.created";
|
|
1871
|
-
contact: string;
|
|
1872
|
-
} | {
|
|
1873
|
-
message: string;
|
|
1874
|
-
type: "message.created";
|
|
1875
|
-
});
|
|
1876
|
-
}, {
|
|
1877
|
-
event: {
|
|
1878
|
-
id: string;
|
|
1879
|
-
createdAt: string;
|
|
1880
|
-
} & ({
|
|
1881
|
-
type: "contact.created";
|
|
1882
|
-
contact: string;
|
|
1883
|
-
} | {
|
|
1884
|
-
message: string;
|
|
1885
|
-
type: "message.created";
|
|
1886
|
-
});
|
|
1887
|
-
}>;
|
|
1888
|
-
constructor(_client: Client);
|
|
1889
|
-
/**
|
|
1890
|
-
* @deprecated Pre-release Functionality
|
|
1891
|
-
*/
|
|
1892
|
-
event({ request }: Options$1): Promise<{
|
|
1893
|
-
event: {
|
|
1894
|
-
id: string;
|
|
1895
|
-
createdAt: string;
|
|
1896
|
-
} & ({
|
|
1897
|
-
type: "contact.created";
|
|
1898
|
-
contact: string;
|
|
1899
|
-
} | {
|
|
1900
|
-
message: string;
|
|
1901
|
-
type: "message.created";
|
|
1902
|
-
});
|
|
1903
|
-
}>;
|
|
1904
|
-
}
|
|
1905
|
-
|
|
1906
|
-
/**
|
|
1907
|
-
* Great Detail Support System.
|
|
1908
|
-
*
|
|
1909
|
-
* @copyright 2024 Great Detail Ltd
|
|
1910
|
-
* @author Great Detail Ltd <info@greatdetail.com>
|
|
1911
|
-
* @author Dom Webber <dom.webber@greatdetail.com>
|
|
1912
|
-
* @see https://greatdetail.com
|
|
1913
|
-
*/
|
|
1914
|
-
|
|
1915
|
-
interface Options {
|
|
1916
|
-
baseURL?: string | URL;
|
|
1917
|
-
}
|
|
1918
|
-
declare class Client {
|
|
1919
|
-
static DEFAULT_BASE_URL: string;
|
|
1920
|
-
_transport: FetchTransport;
|
|
1921
|
-
constructor(authentication: Authentication, { baseURL, ...options }?: Options);
|
|
1922
|
-
static getBaseURL(): string;
|
|
1923
|
-
get action(): {
|
|
1924
|
-
list: ListActions;
|
|
1925
|
-
};
|
|
1926
|
-
get boilerplate(): {
|
|
1927
|
-
get: GetBoilerplate;
|
|
1928
|
-
list: ListBoilerplates;
|
|
1929
|
-
update: UpdateBoilerplate;
|
|
1930
|
-
create: CreateBoilerplate;
|
|
1931
|
-
};
|
|
1932
|
-
get boilerplateCategory(): {
|
|
1933
|
-
get: GetBoilerplateCategory;
|
|
1934
|
-
list: ListBoilerplateCategories;
|
|
1935
|
-
create: CreateBoilerplateCategory;
|
|
1936
|
-
update: UpdateBoilerplateCategory;
|
|
1937
|
-
boilerplate: {
|
|
1938
|
-
list: ListBoilerplateCategoryBoilerplates;
|
|
1939
|
-
};
|
|
1940
|
-
};
|
|
1941
|
-
get channel(): {
|
|
1942
|
-
get: GetChannel;
|
|
1943
|
-
list: ListChannels;
|
|
1944
|
-
update: UpdateChannel;
|
|
1945
|
-
create: CreateChannel;
|
|
1946
|
-
compositionSection: {
|
|
1947
|
-
list: ListChannelCompositionSections;
|
|
1948
|
-
};
|
|
1949
|
-
message: {
|
|
1950
|
-
list: ListChannelMessages;
|
|
1951
|
-
};
|
|
1952
|
-
twilioSendgrid: {
|
|
1953
|
-
sync: TwilioSendgridChannelSync;
|
|
1954
|
-
};
|
|
1955
|
-
};
|
|
1956
|
-
get compositionSection(): {
|
|
1957
|
-
get: GetCompositionSection;
|
|
1958
|
-
list: ListCompositionSections;
|
|
1959
|
-
create: CreateCompositionSection;
|
|
1960
|
-
update: UpdateCompositionSection;
|
|
1961
|
-
};
|
|
1962
|
-
get contact(): {
|
|
1963
|
-
get: GetContact;
|
|
1964
|
-
list: ListContacts;
|
|
1965
|
-
update: UpdateContact;
|
|
1966
|
-
create: CreateContact;
|
|
1967
|
-
conversation: {
|
|
1968
|
-
list: ListContactConversations;
|
|
1969
|
-
};
|
|
1970
|
-
note: {
|
|
1971
|
-
list: ListContactNotes;
|
|
1972
|
-
create: CreateContactNote;
|
|
1973
|
-
};
|
|
1974
|
-
notificationSubscription: {
|
|
1975
|
-
create: CreateContactNotificationSubscription;
|
|
1976
|
-
};
|
|
1977
|
-
vcf: {
|
|
1978
|
-
get: GetContactVCFURL;
|
|
1979
|
-
};
|
|
1980
|
-
};
|
|
1981
|
-
get conversation(): {
|
|
1982
|
-
get: GetConversation;
|
|
1983
|
-
list: ListConversations;
|
|
1984
|
-
update: UpdateConversation;
|
|
1985
|
-
create: CreateConversationNote;
|
|
1986
|
-
message: {
|
|
1987
|
-
list: ListConversationMessages;
|
|
1988
|
-
};
|
|
1989
|
-
note: {
|
|
1990
|
-
list: ListConversationNotes;
|
|
1991
|
-
create: CreateConversationNote;
|
|
1992
|
-
};
|
|
1993
|
-
};
|
|
1994
|
-
get label(): {
|
|
1995
|
-
create: CreateLabel;
|
|
1996
|
-
get: GetLabel;
|
|
1997
|
-
list: ListLabels;
|
|
1998
|
-
update: UpdateLabel;
|
|
1999
|
-
delete: DeleteLabel;
|
|
2000
|
-
contact: {
|
|
2001
|
-
list: ListLabelContacts;
|
|
2002
|
-
};
|
|
2003
|
-
conversation: {
|
|
2004
|
-
list: ListLabelConversations;
|
|
2005
|
-
};
|
|
2006
|
-
};
|
|
2007
|
-
get message(): {
|
|
2008
|
-
list: ListMessages;
|
|
2009
|
-
};
|
|
2010
|
-
get model(): {
|
|
2011
|
-
get: GetModel;
|
|
2012
|
-
list: ListModels;
|
|
2013
|
-
response: {
|
|
2014
|
-
create: CreateResponseModel;
|
|
2015
|
-
};
|
|
2016
|
-
correction: {
|
|
2017
|
-
create: CreateCorrectionModel;
|
|
2018
|
-
};
|
|
2019
|
-
};
|
|
2020
|
-
get note(): {
|
|
2021
|
-
get: GetNote;
|
|
2022
|
-
update: UpdateNote;
|
|
2023
|
-
};
|
|
2024
|
-
get source(): {
|
|
2025
|
-
get: GetSource;
|
|
2026
|
-
list: ListSources;
|
|
2027
|
-
};
|
|
2028
|
-
get upload(): {
|
|
2029
|
-
get: GetUpload;
|
|
2030
|
-
create: CreateUpload;
|
|
2031
|
-
delete: DeleteUpload;
|
|
2032
|
-
};
|
|
2033
|
-
get webhook(): Webhook;
|
|
2034
|
-
}
|
|
2035
|
-
|
|
2036
|
-
export { type UpdateNoteResponse as $, type Authentication as A, type ListContactConversationsResponse as B, Client as C, type CreateLabelResponse as D, type DeleteLabelResponse as E, type GetLabelResponse as F, type GetBoilerplateResponse as G, type ListLabelsResponse as H, type UpdateLabelResponse as I, type ListConversationMessagesResponse as J, type ListMessagesResponse as K, type ListActionsResponse as L, type ListChannelMessagesResponse as M, type GetModelResponse as N, type Options as O, type ListModelsResponse as P, type CreateCorrectionResponse as Q, type RequestFilterable as R, type CreateResponseResponse as S, type TwilioSendgridChannelSyncResponse as T, type UpdateBoilerplateResponse as U, type CreateContactNoteResponse as V, type WebhookResponse as W, type CreateConversationNoteResponse as X, type GetNoteResponse as Y, type ListContactNotesResponse as Z, type ListConversationNotesResponse as _, type Options$W as a, type GetSourceResponse as a0, type ListSourcesResponse as a1, type CreateContactNotificationSubscriptionResponse as a2, type CreateUploadResponse as a3, type GetUploadResponse as a4, type DeleteUploadResponse as a5, type CreateBoilerplateResponse 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 GetChannelResponse as j, type UpdateChannelResponse as k, type CreateChannelResponse as l, type GetCompositionSectionResponse as m, type ListCompositionSectionsResponse as n, type CreateCompositionSectionResponse as o, type ListChannelCompositionSectionsResponse as p, type UpdateCompositionSectionResponse as q, type CreateContactResponse as r, type GetContactResponse as s, type ListContactsResponse as t, type ListLabelContactsResponse as u, type UpdateContactResponse as v, type GetConversationResponse as w, type ListConversationsResponse as x, type ListLabelConversationsResponse as y, type UpdateConversationResponse as z };
|