@lorikeetai/node-sdk 0.13.2 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (202) hide show
  1. package/CHANGELOG.md +247 -0
  2. package/README.md +17 -32
  3. package/core.d.ts +7 -4
  4. package/core.d.ts.map +1 -1
  5. package/core.js +16 -9
  6. package/core.js.map +1 -1
  7. package/core.mjs +16 -9
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +21 -3
  10. package/index.d.ts +21 -3
  11. package/index.d.ts.map +1 -1
  12. package/index.js +31 -7
  13. package/index.js.map +1 -1
  14. package/index.mjs +32 -8
  15. package/index.mjs.map +1 -1
  16. package/internal/qs/formats.d.ts +6 -0
  17. package/internal/qs/formats.d.ts.map +1 -0
  18. package/internal/qs/formats.js +11 -0
  19. package/internal/qs/formats.js.map +1 -0
  20. package/internal/qs/formats.mjs +8 -0
  21. package/internal/qs/formats.mjs.map +1 -0
  22. package/internal/qs/index.d.ts +10 -0
  23. package/internal/qs/index.d.ts.map +1 -0
  24. package/internal/qs/index.js +14 -0
  25. package/internal/qs/index.js.map +1 -0
  26. package/internal/qs/index.mjs +10 -0
  27. package/internal/qs/index.mjs.map +1 -0
  28. package/internal/qs/stringify.d.ts +3 -0
  29. package/internal/qs/stringify.d.ts.map +1 -0
  30. package/internal/qs/stringify.js +279 -0
  31. package/internal/qs/stringify.js.map +1 -0
  32. package/internal/qs/stringify.mjs +276 -0
  33. package/internal/qs/stringify.mjs.map +1 -0
  34. package/internal/qs/types.d.ts +57 -0
  35. package/internal/qs/types.d.ts.map +1 -0
  36. package/internal/qs/types.js +3 -0
  37. package/internal/qs/types.js.map +1 -0
  38. package/internal/qs/types.mjs +2 -0
  39. package/internal/qs/types.mjs.map +1 -0
  40. package/internal/qs/utils.d.ts +14 -0
  41. package/internal/qs/utils.d.ts.map +1 -0
  42. package/internal/qs/utils.js +229 -0
  43. package/internal/qs/utils.js.map +1 -0
  44. package/internal/qs/utils.mjs +217 -0
  45. package/internal/qs/utils.mjs.map +1 -0
  46. package/package.json +1 -5
  47. package/resource.d.ts +1 -1
  48. package/resource.d.ts.map +1 -1
  49. package/resource.js.map +1 -1
  50. package/resource.mjs.map +1 -1
  51. package/resources/conversation/chat.d.ts +19 -164
  52. package/resources/conversation/chat.d.ts.map +1 -1
  53. package/resources/conversation/chat.js.map +1 -1
  54. package/resources/conversation/chat.mjs.map +1 -1
  55. package/resources/conversation/conversation.d.ts +116 -0
  56. package/resources/conversation/conversation.d.ts.map +1 -1
  57. package/resources/conversation/conversation.js +36 -0
  58. package/resources/conversation/conversation.js.map +1 -1
  59. package/resources/conversation/conversation.mjs +36 -0
  60. package/resources/conversation/conversation.mjs.map +1 -1
  61. package/resources/conversation/email.d.ts +19 -164
  62. package/resources/conversation/email.d.ts.map +1 -1
  63. package/resources/conversation/email.js.map +1 -1
  64. package/resources/conversation/email.mjs.map +1 -1
  65. package/resources/conversation/index.d.ts +1 -1
  66. package/resources/conversation/index.d.ts.map +1 -1
  67. package/resources/conversation/index.js.map +1 -1
  68. package/resources/conversation/index.mjs +1 -1
  69. package/resources/conversation/index.mjs.map +1 -1
  70. package/resources/customer/customer.d.ts +296 -0
  71. package/resources/customer/customer.d.ts.map +1 -0
  72. package/resources/customer/customer.js +79 -0
  73. package/resources/customer/customer.js.map +1 -0
  74. package/resources/customer/customer.mjs +52 -0
  75. package/resources/customer/customer.mjs.map +1 -0
  76. package/resources/customer/index.d.ts +3 -0
  77. package/resources/customer/index.d.ts.map +1 -0
  78. package/resources/customer/index.js +9 -0
  79. package/resources/customer/index.js.map +1 -0
  80. package/resources/customer/index.mjs +4 -0
  81. package/resources/customer/index.mjs.map +1 -0
  82. package/resources/customer/profile.d.ts +71 -0
  83. package/resources/customer/profile.d.ts.map +1 -0
  84. package/resources/customer/profile.js +21 -0
  85. package/resources/customer/profile.js.map +1 -0
  86. package/resources/customer/profile.mjs +17 -0
  87. package/resources/customer/profile.mjs.map +1 -0
  88. package/resources/customer.d.ts +1 -291
  89. package/resources/customer.d.ts.map +1 -1
  90. package/resources/customer.js +15 -45
  91. package/resources/customer.js.map +1 -1
  92. package/resources/customer.mjs +1 -43
  93. package/resources/customer.mjs.map +1 -1
  94. package/resources/file.d.ts +7 -0
  95. package/resources/file.d.ts.map +1 -0
  96. package/resources/file.js +21 -0
  97. package/resources/file.js.map +1 -0
  98. package/resources/file.mjs +17 -0
  99. package/resources/file.mjs.map +1 -0
  100. package/resources/index.d.ts +6 -2
  101. package/resources/index.d.ts.map +1 -1
  102. package/resources/index.js +10 -2
  103. package/resources/index.js.map +1 -1
  104. package/resources/index.mjs +6 -2
  105. package/resources/index.mjs.map +1 -1
  106. package/resources/ingest.d.ts +2 -0
  107. package/resources/ingest.d.ts.map +1 -1
  108. package/resources/ingest.js +9 -0
  109. package/resources/ingest.js.map +1 -1
  110. package/resources/ingest.mjs +9 -0
  111. package/resources/ingest.mjs.map +1 -1
  112. package/resources/oauth/authorization.d.ts +6 -0
  113. package/resources/oauth/authorization.d.ts.map +1 -0
  114. package/resources/oauth/authorization.js +15 -0
  115. package/resources/oauth/authorization.js.map +1 -0
  116. package/resources/oauth/authorization.mjs +11 -0
  117. package/resources/oauth/authorization.mjs.map +1 -0
  118. package/resources/oauth/index.d.ts +3 -0
  119. package/resources/oauth/index.d.ts.map +1 -0
  120. package/resources/oauth/index.js +9 -0
  121. package/resources/oauth/index.js.map +1 -0
  122. package/resources/oauth/index.mjs +4 -0
  123. package/resources/oauth/index.mjs.map +1 -0
  124. package/resources/oauth/oauth.d.ts +24 -0
  125. package/resources/oauth/oauth.d.ts.map +1 -0
  126. package/resources/oauth/oauth.js +65 -0
  127. package/resources/oauth/oauth.js.map +1 -0
  128. package/resources/oauth/oauth.mjs +38 -0
  129. package/resources/oauth/oauth.mjs.map +1 -0
  130. package/resources/oauth.d.ts +2 -0
  131. package/resources/oauth.d.ts.map +1 -0
  132. package/resources/oauth.js +19 -0
  133. package/resources/oauth.js.map +1 -0
  134. package/resources/oauth.mjs +3 -0
  135. package/resources/oauth.mjs.map +1 -0
  136. package/resources/suggestion.d.ts +7 -0
  137. package/resources/suggestion.d.ts.map +1 -0
  138. package/resources/suggestion.js +21 -0
  139. package/resources/suggestion.js.map +1 -0
  140. package/resources/suggestion.mjs +17 -0
  141. package/resources/suggestion.mjs.map +1 -0
  142. package/resources/ticket.d.ts +14 -0
  143. package/resources/ticket.d.ts.map +1 -0
  144. package/resources/ticket.js +16 -0
  145. package/resources/ticket.js.map +1 -0
  146. package/resources/ticket.mjs +12 -0
  147. package/resources/ticket.mjs.map +1 -0
  148. package/resources/top-level.d.ts +2 -0
  149. package/resources/top-level.d.ts.map +1 -0
  150. package/resources/top-level.js +4 -0
  151. package/resources/top-level.js.map +1 -0
  152. package/resources/top-level.mjs +3 -0
  153. package/resources/top-level.mjs.map +1 -0
  154. package/resources/webhooks.d.ts +6 -0
  155. package/resources/webhooks.d.ts.map +1 -0
  156. package/resources/webhooks.js +15 -0
  157. package/resources/webhooks.js.map +1 -0
  158. package/resources/webhooks.mjs +11 -0
  159. package/resources/webhooks.mjs.map +1 -0
  160. package/resources/workflow.d.ts +1 -0
  161. package/resources/workflow.d.ts.map +1 -1
  162. package/resources/workflow.js +3 -0
  163. package/resources/workflow.js.map +1 -1
  164. package/resources/workflow.mjs +3 -0
  165. package/resources/workflow.mjs.map +1 -1
  166. package/src/core.ts +17 -8
  167. package/src/index.ts +73 -10
  168. package/src/internal/qs/LICENSE.md +13 -0
  169. package/src/internal/qs/README.md +3 -0
  170. package/src/internal/qs/formats.ts +9 -0
  171. package/src/internal/qs/index.ts +13 -0
  172. package/src/internal/qs/stringify.ts +388 -0
  173. package/src/internal/qs/types.ts +71 -0
  174. package/src/internal/qs/utils.ts +265 -0
  175. package/src/resource.ts +1 -1
  176. package/src/resources/conversation/chat.ts +21 -217
  177. package/src/resources/conversation/conversation.ts +175 -0
  178. package/src/resources/conversation/email.ts +21 -217
  179. package/src/resources/conversation/index.ts +10 -1
  180. package/src/resources/customer/customer.ts +386 -0
  181. package/src/resources/customer/index.ts +13 -0
  182. package/src/resources/customer/profile.ts +89 -0
  183. package/src/resources/customer.ts +1 -372
  184. package/src/resources/file.ts +20 -0
  185. package/src/resources/index.ts +15 -2
  186. package/src/resources/ingest.ts +17 -0
  187. package/src/resources/oauth/authorization.ts +13 -0
  188. package/src/resources/oauth/index.ts +4 -0
  189. package/src/resources/oauth/oauth.ts +63 -0
  190. package/src/resources/oauth.ts +3 -0
  191. package/src/resources/suggestion.ts +20 -0
  192. package/src/resources/ticket.ts +30 -0
  193. package/src/resources/top-level.ts +3 -0
  194. package/src/resources/webhooks.ts +13 -0
  195. package/src/resources/workflow.ts +4 -0
  196. package/src/version.ts +1 -1
  197. package/version.d.ts +1 -1
  198. package/version.d.ts.map +1 -1
  199. package/version.js +1 -1
  200. package/version.js.map +1 -1
  201. package/version.mjs +1 -1
  202. package/version.mjs.map +1 -1
@@ -1,374 +1,3 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../resource';
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
+ }
@@ -1,6 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export { Conversation } from './conversation/conversation';
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';
@@ -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,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Authorization } from './authorization';
4
+ export { OAuth, type OAuthAuthorizeParams, type OAuthCallbackParams } from './oauth';
@@ -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,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './oauth/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 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,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export {};
@@ -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.13.2'; // x-release-please-version
1
+ export const VERSION = '1.0.1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.13.2";
1
+ export declare const VERSION = "1.0.1";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.13.2'; // x-release-please-version
4
+ exports.VERSION = '1.0.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.13.2'; // x-release-please-version
1
+ export const VERSION = '1.0.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
package/version.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
1
+ {"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}