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