@lorikeetai/node-sdk 0.13.1 → 0.14.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/CHANGELOG.md +48 -0
- package/README.md +17 -32
- package/core.d.ts +7 -4
- package/core.d.ts.map +1 -1
- package/core.js +16 -9
- package/core.js.map +1 -1
- package/core.mjs +16 -9
- package/core.mjs.map +1 -1
- package/index.d.mts +21 -3
- package/index.d.ts +21 -3
- package/index.d.ts.map +1 -1
- package/index.js +35 -7
- package/index.js.map +1 -1
- package/index.mjs +36 -8
- package/index.mjs.map +1 -1
- package/internal/qs/formats.d.ts +6 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +11 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +8 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +279 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +276 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.ts +14 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +229 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/package.json +1 -5
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/conversation/chat.d.ts +19 -164
- package/resources/conversation/chat.d.ts.map +1 -1
- package/resources/conversation/chat.js.map +1 -1
- package/resources/conversation/chat.mjs.map +1 -1
- package/resources/conversation/conversation.d.ts +116 -0
- package/resources/conversation/conversation.d.ts.map +1 -1
- package/resources/conversation/conversation.js +36 -0
- package/resources/conversation/conversation.js.map +1 -1
- package/resources/conversation/conversation.mjs +36 -0
- package/resources/conversation/conversation.mjs.map +1 -1
- package/resources/conversation/email.d.ts +19 -164
- package/resources/conversation/email.d.ts.map +1 -1
- package/resources/conversation/email.js.map +1 -1
- package/resources/conversation/email.mjs.map +1 -1
- package/resources/conversation/index.d.ts +1 -1
- package/resources/conversation/index.d.ts.map +1 -1
- package/resources/conversation/index.js.map +1 -1
- package/resources/conversation/index.mjs +1 -1
- package/resources/conversation/index.mjs.map +1 -1
- package/resources/customer/customer.d.ts +296 -0
- package/resources/customer/customer.d.ts.map +1 -0
- package/resources/customer/customer.js +79 -0
- package/resources/customer/customer.js.map +1 -0
- package/resources/customer/customer.mjs +52 -0
- package/resources/customer/customer.mjs.map +1 -0
- package/resources/customer/index.d.ts +3 -0
- package/resources/customer/index.d.ts.map +1 -0
- package/resources/customer/index.js +9 -0
- package/resources/customer/index.js.map +1 -0
- package/resources/customer/index.mjs +4 -0
- package/resources/customer/index.mjs.map +1 -0
- package/resources/customer/profile.d.ts +71 -0
- package/resources/customer/profile.d.ts.map +1 -0
- package/resources/customer/profile.js +21 -0
- package/resources/customer/profile.js.map +1 -0
- package/resources/customer/profile.mjs +17 -0
- package/resources/customer/profile.mjs.map +1 -0
- package/resources/customer.d.ts +1 -291
- package/resources/customer.d.ts.map +1 -1
- package/resources/customer.js +15 -45
- package/resources/customer.js.map +1 -1
- package/resources/customer.mjs +1 -43
- package/resources/customer.mjs.map +1 -1
- package/resources/file.d.ts +7 -0
- package/resources/file.d.ts.map +1 -0
- package/resources/file.js +21 -0
- package/resources/file.js.map +1 -0
- package/resources/file.mjs +17 -0
- package/resources/file.mjs.map +1 -0
- package/resources/index.d.ts +6 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +10 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +6 -2
- package/resources/index.mjs.map +1 -1
- package/resources/ingest.d.ts +2 -0
- package/resources/ingest.d.ts.map +1 -1
- package/resources/ingest.js +9 -0
- package/resources/ingest.js.map +1 -1
- package/resources/ingest.mjs +9 -0
- package/resources/ingest.mjs.map +1 -1
- package/resources/oauth/authorization.d.ts +6 -0
- package/resources/oauth/authorization.d.ts.map +1 -0
- package/resources/oauth/authorization.js +15 -0
- package/resources/oauth/authorization.js.map +1 -0
- package/resources/oauth/authorization.mjs +11 -0
- package/resources/oauth/authorization.mjs.map +1 -0
- package/resources/oauth/index.d.ts +3 -0
- package/resources/oauth/index.d.ts.map +1 -0
- package/resources/oauth/index.js +9 -0
- package/resources/oauth/index.js.map +1 -0
- package/resources/oauth/index.mjs +4 -0
- package/resources/oauth/index.mjs.map +1 -0
- package/resources/oauth/oauth.d.ts +24 -0
- package/resources/oauth/oauth.d.ts.map +1 -0
- package/resources/oauth/oauth.js +65 -0
- package/resources/oauth/oauth.js.map +1 -0
- package/resources/oauth/oauth.mjs +38 -0
- package/resources/oauth/oauth.mjs.map +1 -0
- package/resources/oauth.d.ts +2 -0
- package/resources/oauth.d.ts.map +1 -0
- package/resources/oauth.js +19 -0
- package/resources/oauth.js.map +1 -0
- package/resources/oauth.mjs +3 -0
- package/resources/oauth.mjs.map +1 -0
- package/resources/suggestion.d.ts +7 -0
- package/resources/suggestion.d.ts.map +1 -0
- package/resources/suggestion.js +21 -0
- package/resources/suggestion.js.map +1 -0
- package/resources/suggestion.mjs +17 -0
- package/resources/suggestion.mjs.map +1 -0
- package/resources/ticket.d.ts +14 -0
- package/resources/ticket.d.ts.map +1 -0
- package/resources/ticket.js +16 -0
- package/resources/ticket.js.map +1 -0
- package/resources/ticket.mjs +12 -0
- package/resources/ticket.mjs.map +1 -0
- package/resources/top-level.d.ts +2 -0
- package/resources/top-level.d.ts.map +1 -0
- package/resources/top-level.js +4 -0
- package/resources/top-level.js.map +1 -0
- package/resources/top-level.mjs +3 -0
- package/resources/top-level.mjs.map +1 -0
- package/resources/webhooks.d.ts +6 -0
- package/resources/webhooks.d.ts.map +1 -0
- package/resources/webhooks.js +15 -0
- package/resources/webhooks.js.map +1 -0
- package/resources/webhooks.mjs +11 -0
- package/resources/webhooks.mjs.map +1 -0
- package/resources/workflow.d.ts +1 -0
- package/resources/workflow.d.ts.map +1 -1
- package/resources/workflow.js +3 -0
- package/resources/workflow.js.map +1 -1
- package/resources/workflow.mjs +3 -0
- package/resources/workflow.mjs.map +1 -1
- package/src/core.ts +17 -8
- package/src/index.ts +77 -10
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +9 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +388 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/resource.ts +1 -1
- package/src/resources/conversation/chat.ts +21 -217
- package/src/resources/conversation/conversation.ts +175 -0
- package/src/resources/conversation/email.ts +21 -217
- package/src/resources/conversation/index.ts +10 -1
- package/src/resources/customer/customer.ts +386 -0
- package/src/resources/customer/index.ts +13 -0
- package/src/resources/customer/profile.ts +89 -0
- package/src/resources/customer.ts +1 -372
- package/src/resources/file.ts +20 -0
- package/src/resources/index.ts +15 -2
- package/src/resources/ingest.ts +17 -0
- package/src/resources/oauth/authorization.ts +13 -0
- package/src/resources/oauth/index.ts +4 -0
- package/src/resources/oauth/oauth.ts +63 -0
- package/src/resources/oauth.ts +3 -0
- package/src/resources/suggestion.ts +20 -0
- package/src/resources/ticket.ts +30 -0
- package/src/resources/top-level.ts +3 -0
- package/src/resources/webhooks.ts +13 -0
- package/src/resources/workflow.ts +4 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,374 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import * as Core from '../core';
|
|
5
|
-
|
|
6
|
-
export class Customer extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* @example
|
|
9
|
-
* ```ts
|
|
10
|
-
* const customer = await client.customer.create();
|
|
11
|
-
* ```
|
|
12
|
-
*/
|
|
13
|
-
create(body: CustomerCreateParams, options?: Core.RequestOptions): Core.APIPromise<CustomerCreateResponse> {
|
|
14
|
-
return this._client.post('/v1/customer', { body, ...options });
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* @example
|
|
19
|
-
* ```ts
|
|
20
|
-
* const customer = await client.customer.update(
|
|
21
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
22
|
-
* );
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
update(
|
|
26
|
-
id: string,
|
|
27
|
-
body: CustomerUpdateParams,
|
|
28
|
-
options?: Core.RequestOptions,
|
|
29
|
-
): Core.APIPromise<CustomerUpdateResponse> {
|
|
30
|
-
return this._client.put(`/v1/customer/${id}`, { body, ...options });
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* @example
|
|
35
|
-
* ```ts
|
|
36
|
-
* const customer = await client.customer.get(
|
|
37
|
-
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
38
|
-
* );
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
get(id: string, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse> {
|
|
42
|
-
return this._client.get(`/v1/customer/${id}`, options);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* const response = await client.customer.token();
|
|
49
|
-
* ```
|
|
50
|
-
*/
|
|
51
|
-
token(body: CustomerTokenParams, options?: Core.RequestOptions): Core.APIPromise<string> {
|
|
52
|
-
return this._client.post('/v1/customer/token', { body, ...options });
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export interface CustomerCreateResponse {
|
|
57
|
-
/**
|
|
58
|
-
* The id of the customer in the subscriber system
|
|
59
|
-
*/
|
|
60
|
-
id: string;
|
|
61
|
-
|
|
62
|
-
/**
|
|
63
|
-
* The timestamp of the when the customer was created in our system
|
|
64
|
-
*/
|
|
65
|
-
createdAt: string;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The URL of the customer avatar
|
|
69
|
-
*/
|
|
70
|
-
avatarUrl?: string;
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* The display name of the customer
|
|
74
|
-
*/
|
|
75
|
-
displayName?: string;
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* The email of the customer
|
|
79
|
-
*/
|
|
80
|
-
email?: string;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* The first name of the customer
|
|
84
|
-
*/
|
|
85
|
-
firstName?: string;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* The last name of the customer
|
|
89
|
-
*/
|
|
90
|
-
lastName?: string;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
94
|
-
* stable and unique
|
|
95
|
-
*/
|
|
96
|
-
remoteId?: string;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* The id of the customer in your own primary database or a unique identifier, for
|
|
100
|
-
* example a cookie
|
|
101
|
-
*/
|
|
102
|
-
subscriberCustomerId?: string;
|
|
103
|
-
|
|
104
|
-
/**
|
|
105
|
-
* A token that can be used to authenticate the customer in the your system, like a
|
|
106
|
-
* JWT
|
|
107
|
-
*/
|
|
108
|
-
subscriberToken?: string;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface CustomerUpdateResponse {
|
|
112
|
-
/**
|
|
113
|
-
* The id of the customer in the subscriber system
|
|
114
|
-
*/
|
|
115
|
-
id: string;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* The timestamp of the when the customer was created in our system
|
|
119
|
-
*/
|
|
120
|
-
createdAt: string;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* The URL of the customer avatar
|
|
124
|
-
*/
|
|
125
|
-
avatarUrl?: string;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* The display name of the customer
|
|
129
|
-
*/
|
|
130
|
-
displayName?: string;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* The email of the customer
|
|
134
|
-
*/
|
|
135
|
-
email?: string;
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* The first name of the customer
|
|
139
|
-
*/
|
|
140
|
-
firstName?: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The last name of the customer
|
|
144
|
-
*/
|
|
145
|
-
lastName?: string;
|
|
146
|
-
|
|
147
|
-
/**
|
|
148
|
-
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
149
|
-
* stable and unique
|
|
150
|
-
*/
|
|
151
|
-
remoteId?: string;
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* The id of the customer in your own primary database or a unique identifier, for
|
|
155
|
-
* example a cookie
|
|
156
|
-
*/
|
|
157
|
-
subscriberCustomerId?: string;
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* A token that can be used to authenticate the customer in the your system, like a
|
|
161
|
-
* JWT
|
|
162
|
-
*/
|
|
163
|
-
subscriberToken?: string;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface CustomerGetResponse {
|
|
167
|
-
/**
|
|
168
|
-
* The id of the customer in the subscriber system
|
|
169
|
-
*/
|
|
170
|
-
id: string;
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* The timestamp of the when the customer was created in our system
|
|
174
|
-
*/
|
|
175
|
-
createdAt: string;
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* The URL of the customer avatar
|
|
179
|
-
*/
|
|
180
|
-
avatarUrl?: string;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* The display name of the customer
|
|
184
|
-
*/
|
|
185
|
-
displayName?: string;
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* The email of the customer
|
|
189
|
-
*/
|
|
190
|
-
email?: string;
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* The first name of the customer
|
|
194
|
-
*/
|
|
195
|
-
firstName?: string;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* The last name of the customer
|
|
199
|
-
*/
|
|
200
|
-
lastName?: string;
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
204
|
-
* stable and unique
|
|
205
|
-
*/
|
|
206
|
-
remoteId?: string;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The id of the customer in your own primary database or a unique identifier, for
|
|
210
|
-
* example a cookie
|
|
211
|
-
*/
|
|
212
|
-
subscriberCustomerId?: string;
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* A token that can be used to authenticate the customer in the your system, like a
|
|
216
|
-
* JWT
|
|
217
|
-
*/
|
|
218
|
-
subscriberToken?: string;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export type CustomerTokenResponse = string;
|
|
222
|
-
|
|
223
|
-
export interface CustomerCreateParams {
|
|
224
|
-
/**
|
|
225
|
-
* The URL of the customer avatar
|
|
226
|
-
*/
|
|
227
|
-
avatarUrl?: string;
|
|
228
|
-
|
|
229
|
-
/**
|
|
230
|
-
* The display name of the customer
|
|
231
|
-
*/
|
|
232
|
-
displayName?: string;
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* The email of the customer
|
|
236
|
-
*/
|
|
237
|
-
email?: string;
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* The first name of the customer
|
|
241
|
-
*/
|
|
242
|
-
firstName?: string;
|
|
243
|
-
|
|
244
|
-
/**
|
|
245
|
-
* The last name of the customer
|
|
246
|
-
*/
|
|
247
|
-
lastName?: string;
|
|
248
|
-
|
|
249
|
-
/**
|
|
250
|
-
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
251
|
-
* stable and unique
|
|
252
|
-
*/
|
|
253
|
-
remoteId?: string;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* The id of the customer in your own primary database or a unique identifier, for
|
|
257
|
-
* example a cookie
|
|
258
|
-
*/
|
|
259
|
-
subscriberCustomerId?: string;
|
|
260
|
-
|
|
261
|
-
/**
|
|
262
|
-
* A token that can be used to authenticate the customer in the your system, like a
|
|
263
|
-
* JWT
|
|
264
|
-
*/
|
|
265
|
-
subscriberToken?: string;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
export interface CustomerUpdateParams {
|
|
269
|
-
/**
|
|
270
|
-
* The URL of the customer avatar
|
|
271
|
-
*/
|
|
272
|
-
avatarUrl?: string;
|
|
273
|
-
|
|
274
|
-
/**
|
|
275
|
-
* The display name of the customer
|
|
276
|
-
*/
|
|
277
|
-
displayName?: string;
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* The email of the customer
|
|
281
|
-
*/
|
|
282
|
-
email?: string;
|
|
283
|
-
|
|
284
|
-
/**
|
|
285
|
-
* The first name of the customer
|
|
286
|
-
*/
|
|
287
|
-
firstName?: string;
|
|
288
|
-
|
|
289
|
-
/**
|
|
290
|
-
* The last name of the customer
|
|
291
|
-
*/
|
|
292
|
-
lastName?: string;
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
296
|
-
* stable and unique
|
|
297
|
-
*/
|
|
298
|
-
remoteId?: string;
|
|
299
|
-
|
|
300
|
-
/**
|
|
301
|
-
* The id of the customer in your own primary database or a unique identifier, for
|
|
302
|
-
* example a cookie
|
|
303
|
-
*/
|
|
304
|
-
subscriberCustomerId?: string;
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* A token that can be used to authenticate the customer in the your system, like a
|
|
308
|
-
* JWT
|
|
309
|
-
*/
|
|
310
|
-
subscriberToken?: string;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export interface CustomerTokenParams {
|
|
314
|
-
/**
|
|
315
|
-
* The URL of the customer avatar
|
|
316
|
-
*/
|
|
317
|
-
avatarUrl?: string;
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* The display name of the customer
|
|
321
|
-
*/
|
|
322
|
-
displayName?: string;
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* The email of the customer
|
|
326
|
-
*/
|
|
327
|
-
email?: string;
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* The expiry of the conversation initialization token, if not provided it will be
|
|
331
|
-
* set to 1 hour
|
|
332
|
-
*/
|
|
333
|
-
expiry?: string;
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* The first name of the customer
|
|
337
|
-
*/
|
|
338
|
-
firstName?: string;
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* The last name of the customer
|
|
342
|
-
*/
|
|
343
|
-
lastName?: string;
|
|
344
|
-
|
|
345
|
-
/**
|
|
346
|
-
* The id of the customer in the ticketing system. For the SDK this needs to be
|
|
347
|
-
* stable and unique
|
|
348
|
-
*/
|
|
349
|
-
remoteId?: string;
|
|
350
|
-
|
|
351
|
-
/**
|
|
352
|
-
* The id of the customer in your own primary database or a unique identifier, for
|
|
353
|
-
* example a cookie
|
|
354
|
-
*/
|
|
355
|
-
subscriberCustomerId?: string;
|
|
356
|
-
|
|
357
|
-
/**
|
|
358
|
-
* A token that can be used to authenticate the customer in the your system, like a
|
|
359
|
-
* JWT
|
|
360
|
-
*/
|
|
361
|
-
subscriberToken?: string;
|
|
362
|
-
}
|
|
363
|
-
|
|
364
|
-
export declare namespace Customer {
|
|
365
|
-
export {
|
|
366
|
-
type CustomerCreateResponse as CustomerCreateResponse,
|
|
367
|
-
type CustomerUpdateResponse as CustomerUpdateResponse,
|
|
368
|
-
type CustomerGetResponse as CustomerGetResponse,
|
|
369
|
-
type CustomerTokenResponse as CustomerTokenResponse,
|
|
370
|
-
type CustomerCreateParams as CustomerCreateParams,
|
|
371
|
-
type CustomerUpdateParams as CustomerUpdateParams,
|
|
372
|
-
type CustomerTokenParams as CustomerTokenParams,
|
|
373
|
-
};
|
|
374
|
-
}
|
|
3
|
+
export * from './customer/index';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class File extends APIResource {
|
|
7
|
+
retrieve(fileId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
|
+
return this._client.get(`/v1/file/${fileId}`, {
|
|
9
|
+
...options,
|
|
10
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
upload(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
15
|
+
return this._client.put('/v1/file/upload', {
|
|
16
|
+
...options,
|
|
17
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
package/src/resources/index.ts
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export {
|
|
4
|
+
Conversation,
|
|
5
|
+
type AttachmentDto,
|
|
6
|
+
type TicketEvent,
|
|
7
|
+
type TicketMessageDto,
|
|
8
|
+
type ConversationCreateResponse,
|
|
9
|
+
type ConversationRetrieveTranscriptResponse,
|
|
10
|
+
type ConversationCreateParams,
|
|
11
|
+
type ConversationRetrieveTranscriptParams,
|
|
12
|
+
} from './conversation/conversation';
|
|
4
13
|
export {
|
|
5
14
|
Customer,
|
|
6
15
|
type CustomerCreateResponse,
|
|
@@ -10,6 +19,10 @@ export {
|
|
|
10
19
|
type CustomerCreateParams,
|
|
11
20
|
type CustomerUpdateParams,
|
|
12
21
|
type CustomerTokenParams,
|
|
13
|
-
} from './customer';
|
|
22
|
+
} from './customer/customer';
|
|
23
|
+
export { File } from './file';
|
|
14
24
|
export { Ingest, type IngestTestParams } from './ingest';
|
|
25
|
+
export { OAuth, type OAuthAuthorizeParams, type OAuthCallbackParams } from './oauth/oauth';
|
|
26
|
+
export { Suggestion } from './suggestion';
|
|
27
|
+
export { Webhooks } from './webhooks';
|
|
15
28
|
export { Workflow } from './workflow';
|
package/src/resources/ingest.ts
CHANGED
|
@@ -4,6 +4,23 @@ import { APIResource } from '../resource';
|
|
|
4
4
|
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Ingest extends APIResource {
|
|
7
|
+
retrieve(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
|
+
return this._client.get('/v1/ingest', { ...options, headers: { Accept: '*/*', ...options?.headers } });
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
submit(
|
|
12
|
+
toolId: string,
|
|
13
|
+
ticketId: string,
|
|
14
|
+
inputHash: string,
|
|
15
|
+
workflowId: string,
|
|
16
|
+
options?: Core.RequestOptions,
|
|
17
|
+
): Core.APIPromise<void> {
|
|
18
|
+
return this._client.post(`/ingest/${toolId}/${ticketId}/${inputHash}/${workflowId}`, {
|
|
19
|
+
...options,
|
|
20
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
7
24
|
test(toolId: unknown, body: IngestTestParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
25
|
return this._client.post(`/ingest/test/${toolId}`, {
|
|
9
26
|
body,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
|
|
6
|
+
export class Authorization extends APIResource {
|
|
7
|
+
getURL(providerId: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
|
+
return this._client.get(`/v1/oauth/authorization/url/${providerId}`, {
|
|
9
|
+
...options,
|
|
10
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../resource';
|
|
4
|
+
import * as Core from '../../core';
|
|
5
|
+
import * as AuthorizationAPI from './authorization';
|
|
6
|
+
import { Authorization } from './authorization';
|
|
7
|
+
|
|
8
|
+
export class OAuth extends APIResource {
|
|
9
|
+
authorization: AuthorizationAPI.Authorization = new AuthorizationAPI.Authorization(this._client);
|
|
10
|
+
|
|
11
|
+
authorize(query: OAuthAuthorizeParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
12
|
+
return this._client.get('/v1/oauth/authorize', {
|
|
13
|
+
query,
|
|
14
|
+
...options,
|
|
15
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
callback(query: OAuthCallbackParams, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
20
|
+
return this._client.get('/v1/oauth/callback', {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
createToken(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
28
|
+
return this._client.post('/v1/oauth/token', {
|
|
29
|
+
...options,
|
|
30
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
revokeToken(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
35
|
+
return this._client.post('/v1/oauth/revoke', {
|
|
36
|
+
...options,
|
|
37
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface OAuthAuthorizeParams {
|
|
43
|
+
client_id: string;
|
|
44
|
+
|
|
45
|
+
redirect_uri: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export interface OAuthCallbackParams {
|
|
49
|
+
code: string;
|
|
50
|
+
|
|
51
|
+
state: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
OAuth.Authorization = Authorization;
|
|
55
|
+
|
|
56
|
+
export declare namespace OAuth {
|
|
57
|
+
export {
|
|
58
|
+
type OAuthAuthorizeParams as OAuthAuthorizeParams,
|
|
59
|
+
type OAuthCallbackParams as OAuthCallbackParams,
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
export { Authorization as Authorization };
|
|
63
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class Suggestion extends APIResource {
|
|
7
|
+
createWorkflow(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
|
+
return this._client.post('/v1/suggestion/workflow', {
|
|
9
|
+
...options,
|
|
10
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
retrieveTone(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
15
|
+
return this._client.get('/v1/suggestion/tone', {
|
|
16
|
+
...options,
|
|
17
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class Ticket extends APIResource {
|
|
7
|
+
retrieveSse(
|
|
8
|
+
ticketId: string,
|
|
9
|
+
query: TicketRetrieveSseParams,
|
|
10
|
+
options?: Core.RequestOptions,
|
|
11
|
+
): Core.APIPromise<void> {
|
|
12
|
+
return this._client.get(`/v1/ticket/sse/${ticketId}`, {
|
|
13
|
+
query,
|
|
14
|
+
...options,
|
|
15
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface TicketRetrieveSseParams {
|
|
21
|
+
sseMessageTypes: Array<string>;
|
|
22
|
+
|
|
23
|
+
ticketEventTypes: Array<string>;
|
|
24
|
+
|
|
25
|
+
ticketMessageTypes: Array<string>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export declare namespace Ticket {
|
|
29
|
+
export { type TicketRetrieveSseParams as TicketRetrieveSseParams };
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../resource';
|
|
4
|
+
import * as Core from '../core';
|
|
5
|
+
|
|
6
|
+
export class Webhooks extends APIResource {
|
|
7
|
+
createLori(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
|
+
return this._client.post('/webhooks/lori', {
|
|
9
|
+
...options,
|
|
10
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -4,6 +4,10 @@ import { APIResource } from '../resource';
|
|
|
4
4
|
import * as Core from '../core';
|
|
5
5
|
|
|
6
6
|
export class Workflow extends APIResource {
|
|
7
|
+
retrieve(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
|
+
return this._client.get('/v1/workflow', { ...options, headers: { Accept: '*/*', ...options?.headers } });
|
|
9
|
+
}
|
|
10
|
+
|
|
7
11
|
update(options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
8
12
|
return this._client.post('/v1/workflow', { ...options, headers: { Accept: '*/*', ...options?.headers } });
|
|
9
13
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.0'; // x-release-please-version
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.14.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.14.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|