@lorikeetai/node-sdk 1.4.0 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/LICENSE +1 -1
  3. package/README.md +11 -5
  4. package/core.d.ts.map +1 -1
  5. package/core.js +5 -0
  6. package/core.js.map +1 -1
  7. package/core.mjs +5 -0
  8. package/core.mjs.map +1 -1
  9. package/index.d.mts +7 -20
  10. package/index.d.ts +7 -20
  11. package/index.d.ts.map +1 -1
  12. package/index.js +3 -18
  13. package/index.js.map +1 -1
  14. package/index.mjs +3 -18
  15. package/index.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/api-keys.d.ts +129 -0
  18. package/resources/api-keys.d.ts.map +1 -0
  19. package/resources/api-keys.js +61 -0
  20. package/resources/api-keys.js.map +1 -0
  21. package/resources/api-keys.mjs +57 -0
  22. package/resources/api-keys.mjs.map +1 -0
  23. package/resources/conversation/chat.d.ts +15 -1
  24. package/resources/conversation/chat.d.ts.map +1 -1
  25. package/resources/conversation/conversation.d.ts +1 -58
  26. package/resources/conversation/conversation.d.ts.map +1 -1
  27. package/resources/conversation/conversation.js +0 -36
  28. package/resources/conversation/conversation.js.map +1 -1
  29. package/resources/conversation/conversation.mjs +0 -36
  30. package/resources/conversation/conversation.mjs.map +1 -1
  31. package/resources/conversation/email.d.ts +15 -1
  32. package/resources/conversation/email.d.ts.map +1 -1
  33. package/resources/conversation/index.d.ts +1 -1
  34. package/resources/conversation/index.d.ts.map +1 -1
  35. package/resources/conversation/index.js.map +1 -1
  36. package/resources/conversation/index.mjs +1 -1
  37. package/resources/conversation/index.mjs.map +1 -1
  38. package/resources/conversation/voice.d.ts +3 -1
  39. package/resources/conversation/voice.d.ts.map +1 -1
  40. package/resources/customer/customer.d.ts +38 -5
  41. package/resources/customer/customer.d.ts.map +1 -1
  42. package/resources/customer/customer.js +6 -10
  43. package/resources/customer/customer.js.map +1 -1
  44. package/resources/customer/customer.mjs +6 -10
  45. package/resources/customer/customer.mjs.map +1 -1
  46. package/resources/customer/index.d.ts +1 -1
  47. package/resources/customer/index.d.ts.map +1 -1
  48. package/resources/customer/index.js.map +1 -1
  49. package/resources/customer/index.mjs.map +1 -1
  50. package/resources/customer/profile.d.ts +3 -45
  51. package/resources/customer/profile.d.ts.map +1 -1
  52. package/resources/customer/remote.d.ts +12 -0
  53. package/resources/customer/remote.d.ts.map +1 -1
  54. package/resources/index.d.ts +3 -7
  55. package/resources/index.d.ts.map +1 -1
  56. package/resources/index.js +3 -11
  57. package/resources/index.js.map +1 -1
  58. package/resources/index.mjs +1 -5
  59. package/resources/index.mjs.map +1 -1
  60. package/resources/ingest.d.ts +3 -4
  61. package/resources/ingest.d.ts.map +1 -1
  62. package/resources/ingest.js +0 -3
  63. package/resources/ingest.js.map +1 -1
  64. package/resources/ingest.mjs +0 -3
  65. package/resources/ingest.mjs.map +1 -1
  66. package/src/core.ts +9 -3
  67. package/src/index.ts +16 -38
  68. package/src/resources/api-keys.ts +168 -0
  69. package/src/resources/conversation/chat.ts +16 -1
  70. package/src/resources/conversation/conversation.ts +0 -90
  71. package/src/resources/conversation/email.ts +16 -1
  72. package/src/resources/conversation/index.ts +1 -10
  73. package/src/resources/conversation/voice.ts +3 -1
  74. package/src/resources/customer/customer.ts +55 -5
  75. package/src/resources/customer/index.ts +1 -0
  76. package/src/resources/customer/profile.ts +3 -54
  77. package/src/resources/customer/remote.ts +15 -0
  78. package/src/resources/index.ts +8 -9
  79. package/src/resources/ingest.ts +3 -7
  80. package/src/version.ts +1 -1
  81. package/version.d.ts +1 -1
  82. package/version.js +1 -1
  83. package/version.mjs +1 -1
  84. package/resources/file.d.ts +0 -7
  85. package/resources/file.d.ts.map +0 -1
  86. package/resources/file.js +0 -21
  87. package/resources/file.js.map +0 -1
  88. package/resources/file.mjs +0 -17
  89. package/resources/file.mjs.map +0 -1
  90. package/resources/oauth/authorization.d.ts +0 -6
  91. package/resources/oauth/authorization.d.ts.map +0 -1
  92. package/resources/oauth/authorization.js +0 -15
  93. package/resources/oauth/authorization.js.map +0 -1
  94. package/resources/oauth/authorization.mjs +0 -11
  95. package/resources/oauth/authorization.mjs.map +0 -1
  96. package/resources/oauth/index.d.ts +0 -3
  97. package/resources/oauth/index.d.ts.map +0 -1
  98. package/resources/oauth/index.js +0 -9
  99. package/resources/oauth/index.js.map +0 -1
  100. package/resources/oauth/index.mjs +0 -4
  101. package/resources/oauth/index.mjs.map +0 -1
  102. package/resources/oauth/oauth.d.ts +0 -24
  103. package/resources/oauth/oauth.d.ts.map +0 -1
  104. package/resources/oauth/oauth.js +0 -65
  105. package/resources/oauth/oauth.js.map +0 -1
  106. package/resources/oauth/oauth.mjs +0 -38
  107. package/resources/oauth/oauth.mjs.map +0 -1
  108. package/resources/oauth.d.ts +0 -2
  109. package/resources/oauth.d.ts.map +0 -1
  110. package/resources/oauth.js +0 -19
  111. package/resources/oauth.js.map +0 -1
  112. package/resources/oauth.mjs +0 -3
  113. package/resources/oauth.mjs.map +0 -1
  114. package/resources/suggestion.d.ts +0 -7
  115. package/resources/suggestion.d.ts.map +0 -1
  116. package/resources/suggestion.js +0 -21
  117. package/resources/suggestion.js.map +0 -1
  118. package/resources/suggestion.mjs +0 -17
  119. package/resources/suggestion.mjs.map +0 -1
  120. package/resources/top-level.d.ts +0 -2
  121. package/resources/top-level.d.ts.map +0 -1
  122. package/resources/top-level.js +0 -4
  123. package/resources/top-level.js.map +0 -1
  124. package/resources/top-level.mjs +0 -3
  125. package/resources/top-level.mjs.map +0 -1
  126. package/resources/webhooks.d.ts +0 -6
  127. package/resources/webhooks.d.ts.map +0 -1
  128. package/resources/webhooks.js +0 -15
  129. package/resources/webhooks.js.map +0 -1
  130. package/resources/webhooks.mjs +0 -11
  131. package/resources/webhooks.mjs.map +0 -1
  132. package/resources/workflow.d.ts +0 -8
  133. package/resources/workflow.d.ts.map +0 -1
  134. package/resources/workflow.js +0 -21
  135. package/resources/workflow.js.map +0 -1
  136. package/resources/workflow.mjs +0 -17
  137. package/resources/workflow.mjs.map +0 -1
  138. package/src/resources/file.ts +0 -20
  139. package/src/resources/oauth/authorization.ts +0 -13
  140. package/src/resources/oauth/index.ts +0 -4
  141. package/src/resources/oauth/oauth.ts +0 -63
  142. package/src/resources/oauth.ts +0 -3
  143. package/src/resources/suggestion.ts +0 -20
  144. package/src/resources/top-level.ts +0 -3
  145. package/src/resources/webhooks.ts +0 -13
  146. package/src/resources/workflow.ts +0 -21
@@ -1,6 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../resource';
4
+ import { isRequestOptions } from '../../core';
4
5
  import * as Core from '../../core';
5
6
  import * as ProfileAPI from './profile';
6
7
  import { Profile, ProfileSyncParams, ProfileSyncResponse } from './profile';
@@ -40,13 +41,19 @@ export class Customer extends APIResource {
40
41
  /**
41
42
  * @example
42
43
  * ```ts
43
- * const customer = await client.customer.get(
44
- * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
45
- * );
44
+ * const customer = await client.customer.get();
46
45
  * ```
47
46
  */
48
- get(id: string, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse> {
49
- return this._client.get(`/v1/customer/${id}`, options);
47
+ get(query?: CustomerGetParams, options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse>;
48
+ get(options?: Core.RequestOptions): Core.APIPromise<CustomerGetResponse>;
49
+ get(
50
+ query: CustomerGetParams | Core.RequestOptions = {},
51
+ options?: Core.RequestOptions,
52
+ ): Core.APIPromise<CustomerGetResponse> {
53
+ if (isRequestOptions(query)) {
54
+ return this.get({}, query);
55
+ }
56
+ return this._client.get('/v1/customer', { query, ...options });
50
57
  }
51
58
 
52
59
  /**
@@ -96,6 +103,11 @@ export interface CustomerCreateResponse {
96
103
  */
97
104
  lastName?: string;
98
105
 
106
+ /**
107
+ * The phone number of the customer (in international / E.164 format)
108
+ */
109
+ phoneNumber?: string;
110
+
99
111
  /**
100
112
  * The id of the customer in the ticketing system. For the SDK this needs to be
101
113
  * stable and unique
@@ -151,6 +163,11 @@ export interface CustomerUpdateResponse {
151
163
  */
152
164
  lastName?: string;
153
165
 
166
+ /**
167
+ * The phone number of the customer (in international / E.164 format)
168
+ */
169
+ phoneNumber?: string;
170
+
154
171
  /**
155
172
  * The id of the customer in the ticketing system. For the SDK this needs to be
156
173
  * stable and unique
@@ -206,6 +223,11 @@ export interface CustomerGetResponse {
206
223
  */
207
224
  lastName?: string;
208
225
 
226
+ /**
227
+ * The phone number of the customer (in international / E.164 format)
228
+ */
229
+ phoneNumber?: string;
230
+
209
231
  /**
210
232
  * The id of the customer in the ticketing system. For the SDK this needs to be
211
233
  * stable and unique
@@ -253,6 +275,11 @@ export interface CustomerCreateParams {
253
275
  */
254
276
  lastName?: string;
255
277
 
278
+ /**
279
+ * The phone number of the customer (in international / E.164 format)
280
+ */
281
+ phoneNumber?: string;
282
+
256
283
  /**
257
284
  * The id of the customer in the ticketing system. For the SDK this needs to be
258
285
  * stable and unique
@@ -298,6 +325,11 @@ export interface CustomerUpdateParams {
298
325
  */
299
326
  lastName?: string;
300
327
 
328
+ /**
329
+ * The phone number of the customer (in international / E.164 format)
330
+ */
331
+ phoneNumber?: string;
332
+
301
333
  /**
302
334
  * The id of the customer in the ticketing system. For the SDK this needs to be
303
335
  * stable and unique
@@ -317,6 +349,18 @@ export interface CustomerUpdateParams {
317
349
  subscriberToken?: string;
318
350
  }
319
351
 
352
+ export interface CustomerGetParams {
353
+ /**
354
+ * The phone number of the customer
355
+ */
356
+ phoneNumber?: string;
357
+
358
+ /**
359
+ * The remote id of the customer in your system
360
+ */
361
+ remoteId?: string;
362
+ }
363
+
320
364
  export interface CustomerTokenParams {
321
365
  /**
322
366
  * The URL of the customer avatar
@@ -349,6 +393,11 @@ export interface CustomerTokenParams {
349
393
  */
350
394
  lastName?: string;
351
395
 
396
+ /**
397
+ * The phone number of the customer (in international / E.164 format)
398
+ */
399
+ phoneNumber?: string;
400
+
352
401
  /**
353
402
  * The id of the customer in the ticketing system. For the SDK this needs to be
354
403
  * stable and unique
@@ -379,6 +428,7 @@ export declare namespace Customer {
379
428
  type CustomerTokenResponse as CustomerTokenResponse,
380
429
  type CustomerCreateParams as CustomerCreateParams,
381
430
  type CustomerUpdateParams as CustomerUpdateParams,
431
+ type CustomerGetParams as CustomerGetParams,
382
432
  type CustomerTokenParams as CustomerTokenParams,
383
433
  };
384
434
 
@@ -8,6 +8,7 @@ export {
8
8
  type CustomerTokenResponse,
9
9
  type CustomerCreateParams,
10
10
  type CustomerUpdateParams,
11
+ type CustomerGetParams,
11
12
  type CustomerTokenParams,
12
13
  } from './customer';
13
14
  export { Profile, type ProfileSyncResponse, type ProfileSyncParams } from './profile';
@@ -22,60 +22,9 @@ export class Profile extends APIResource {
22
22
  }
23
23
  }
24
24
 
25
- export interface ProfileSyncResponse {
26
- /**
27
- * The id of the customer in the subscriber system
28
- */
29
- id: string;
30
-
31
- /**
32
- * The timestamp of the when the customer was created in our system
33
- */
34
- createdAt: string;
35
-
36
- /**
37
- * The URL of the customer avatar
38
- */
39
- avatarUrl?: string;
40
-
41
- /**
42
- * The display name of the customer
43
- */
44
- displayName?: string;
45
-
46
- /**
47
- * The email of the customer
48
- */
49
- email?: string;
50
-
51
- /**
52
- * The first name of the customer
53
- */
54
- firstName?: string;
55
-
56
- /**
57
- * The last name of the customer
58
- */
59
- lastName?: string;
60
-
61
- /**
62
- * The id of the customer in the ticketing system. For the SDK this needs to be
63
- * stable and unique
64
- */
65
- remoteId?: string;
66
-
67
- /**
68
- * The id of the customer in your own primary database or a unique identifier, for
69
- * example a cookie
70
- */
71
- subscriberCustomerId?: string;
72
-
73
- /**
74
- * A token that can be used to authenticate the customer in the your system, like a
75
- * JWT
76
- */
77
- subscriberToken?: string;
78
- }
25
+ export type ProfileSyncResponse = {
26
+ [key: string]: string | boolean | number | unknown | Array<unknown> | null;
27
+ };
79
28
 
80
29
  export interface ProfileSyncParams {
81
30
  /**
@@ -67,6 +67,11 @@ export interface RemoteUpdateResponse {
67
67
  */
68
68
  lastName?: string;
69
69
 
70
+ /**
71
+ * The phone number of the customer (in international / E.164 format)
72
+ */
73
+ phoneNumber?: string;
74
+
70
75
  /**
71
76
  * The id of the customer in the ticketing system. For the SDK this needs to be
72
77
  * stable and unique
@@ -122,6 +127,11 @@ export interface RemoteGetResponse {
122
127
  */
123
128
  lastName?: string;
124
129
 
130
+ /**
131
+ * The phone number of the customer (in international / E.164 format)
132
+ */
133
+ phoneNumber?: string;
134
+
125
135
  /**
126
136
  * The id of the customer in the ticketing system. For the SDK this needs to be
127
137
  * stable and unique
@@ -167,6 +177,11 @@ export interface RemoteUpdateParams {
167
177
  */
168
178
  lastName?: string;
169
179
 
180
+ /**
181
+ * The phone number of the customer (in international / E.164 format)
182
+ */
183
+ phoneNumber?: string;
184
+
170
185
  /**
171
186
  * The id of the customer in the ticketing system. For the SDK this needs to be
172
187
  * stable and unique
@@ -1,14 +1,17 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ APIKeys,
5
+ type APIKeyCreateResponse,
6
+ type APIKeyListResponse,
7
+ type APIKeyGetResponse,
8
+ type APIKeyCreateParams,
9
+ } from './api-keys';
3
10
  export {
4
11
  Conversation,
5
12
  type AttachmentDto,
6
13
  type TicketEvent,
7
14
  type TicketMessageDto,
8
- type ConversationCreateResponse,
9
- type ConversationRetrieveTranscriptResponse,
10
- type ConversationCreateParams,
11
- type ConversationRetrieveTranscriptParams,
12
15
  } from './conversation/conversation';
13
16
  export {
14
17
  Customer,
@@ -18,11 +21,7 @@ export {
18
21
  type CustomerTokenResponse,
19
22
  type CustomerCreateParams,
20
23
  type CustomerUpdateParams,
24
+ type CustomerGetParams,
21
25
  type CustomerTokenParams,
22
26
  } from './customer/customer';
23
- export { File } from './file';
24
27
  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';
28
- export { Workflow } from './workflow';
@@ -4,10 +4,6 @@ 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
7
  submit(
12
8
  toolId: string,
13
9
  ticketId: string,
@@ -39,14 +35,14 @@ export class Ingest extends APIResource {
39
35
 
40
36
  export interface IngestTestParams {
41
37
  /**
42
- * The data to simulate a test response for.
38
+ * The input data to simulate a test response for.
43
39
  */
44
40
  inputs: unknown;
45
41
 
46
42
  /**
47
- * The subscriber id to simulate a test response for.
43
+ * Optional execution environment ID for integration endpoint tools.
48
44
  */
49
- subscriberId: string;
45
+ envId?: string;
50
46
  }
51
47
 
52
48
  export declare namespace Ingest {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.4.0'; // x-release-please-version
1
+ export const VERSION = '1.8.1'; // x-release-please-version
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.4.0";
1
+ export declare const VERSION = "1.8.1";
2
2
  //# sourceMappingURL=version.d.ts.map
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 = '1.4.0'; // x-release-please-version
4
+ exports.VERSION = '1.8.1'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.4.0'; // x-release-please-version
1
+ export const VERSION = '1.8.1'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,7 +0,0 @@
1
- import { APIResource } from "../resource.js";
2
- import * as Core from "../core.js";
3
- export declare class File extends APIResource {
4
- retrieve(fileId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
5
- upload(options?: Core.RequestOptions): Core.APIPromise<void>;
6
- }
7
- //# sourceMappingURL=file.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,SAAS,CAAC;AAEhC,qBAAa,IAAK,SAAQ,WAAW;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAO9E,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAM7D"}
package/resources/file.js DELETED
@@ -1,21 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.File = void 0;
5
- const resource_1 = require("../resource.js");
6
- class File extends resource_1.APIResource {
7
- retrieve(fileId, options) {
8
- return this._client.get(`/v1/file/${fileId}`, {
9
- ...options,
10
- headers: { Accept: '*/*', ...options?.headers },
11
- });
12
- }
13
- upload(options) {
14
- return this._client.put('/v1/file/upload', {
15
- ...options,
16
- headers: { Accept: '*/*', ...options?.headers },
17
- });
18
- }
19
- }
20
- exports.File = File;
21
- //# sourceMappingURL=file.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.js","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAA0C;AAG1C,MAAa,IAAK,SAAQ,sBAAW;IACnC,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,EAAE,EAAE;YAC5C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACzC,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAdD,oBAcC"}
@@ -1,17 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../resource.mjs";
3
- export class File extends APIResource {
4
- retrieve(fileId, options) {
5
- return this._client.get(`/v1/file/${fileId}`, {
6
- ...options,
7
- headers: { Accept: '*/*', ...options?.headers },
8
- });
9
- }
10
- upload(options) {
11
- return this._client.put('/v1/file/upload', {
12
- ...options,
13
- headers: { Accept: '*/*', ...options?.headers },
14
- });
15
- }
16
- }
17
- //# sourceMappingURL=file.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"file.mjs","sourceRoot":"","sources":["../src/resources/file.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC,QAAQ,CAAC,MAAc,EAAE,OAA6B;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,MAAM,EAAE,EAAE;YAC5C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,MAAM,CAAC,OAA6B;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;YACzC,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,6 +0,0 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
3
- export declare class Authorization extends APIResource {
4
- getURL(providerId: string, options?: Core.RequestOptions): Core.APIPromise<void>;
5
- }
6
- //# sourceMappingURL=authorization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization.d.ts","sourceRoot":"","sources":["../../src/resources/oauth/authorization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AAEnC,qBAAa,aAAc,SAAQ,WAAW;IAC5C,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAMjF"}
@@ -1,15 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Authorization = void 0;
5
- const resource_1 = require("../../resource.js");
6
- class Authorization extends resource_1.APIResource {
7
- getURL(providerId, options) {
8
- return this._client.get(`/v1/oauth/authorization/url/${providerId}`, {
9
- ...options,
10
- headers: { Accept: '*/*', ...options?.headers },
11
- });
12
- }
13
- }
14
- exports.Authorization = Authorization;
15
- //# sourceMappingURL=authorization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization.js","sourceRoot":"","sources":["../../src/resources/oauth/authorization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAA6C;AAG7C,MAAa,aAAc,SAAQ,sBAAW;IAC5C,MAAM,CAAC,UAAkB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,UAAU,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAPD,sCAOC"}
@@ -1,11 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
3
- export class Authorization extends APIResource {
4
- getURL(providerId, options) {
5
- return this._client.get(`/v1/oauth/authorization/url/${providerId}`, {
6
- ...options,
7
- headers: { Accept: '*/*', ...options?.headers },
8
- });
9
- }
10
- }
11
- //# sourceMappingURL=authorization.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"authorization.mjs","sourceRoot":"","sources":["../../src/resources/oauth/authorization.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,aAAc,SAAQ,WAAW;IAC5C,MAAM,CAAC,UAAkB,EAAE,OAA6B;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,UAAU,EAAE,EAAE;YACnE,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,3 +0,0 @@
1
- export { Authorization } from "./authorization.js";
2
- export { OAuth, type OAuthAuthorizeParams, type OAuthCallbackParams } from "./oauth.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/oauth/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,KAAK,oBAAoB,EAAE,KAAK,mBAAmB,EAAE,MAAM,SAAS,CAAC"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.OAuth = exports.Authorization = void 0;
5
- var authorization_1 = require("./authorization.js");
6
- Object.defineProperty(exports, "Authorization", { enumerable: true, get: function () { return authorization_1.Authorization; } });
7
- var oauth_1 = require("./oauth.js");
8
- Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return oauth_1.OAuth; } });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/oauth/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,oCAAqF;AAA5E,8FAAA,KAAK,OAAA"}
@@ -1,4 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { Authorization } from "./authorization.mjs";
3
- export { OAuth } from "./oauth.mjs";
4
- //# sourceMappingURL=index.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/oauth/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,aAAa,EAAE;OACjB,EAAE,KAAK,EAAuD"}
@@ -1,24 +0,0 @@
1
- import { APIResource } from "../../resource.js";
2
- import * as Core from "../../core.js";
3
- import * as AuthorizationAPI from "./authorization.js";
4
- import { Authorization } from "./authorization.js";
5
- export declare class OAuth extends APIResource {
6
- authorization: AuthorizationAPI.Authorization;
7
- authorize(query: OAuthAuthorizeParams, options?: Core.RequestOptions): Core.APIPromise<void>;
8
- callback(query: OAuthCallbackParams, options?: Core.RequestOptions): Core.APIPromise<void>;
9
- createToken(options?: Core.RequestOptions): Core.APIPromise<void>;
10
- revokeToken(options?: Core.RequestOptions): Core.APIPromise<void>;
11
- }
12
- export interface OAuthAuthorizeParams {
13
- client_id: string;
14
- redirect_uri: string;
15
- }
16
- export interface OAuthCallbackParams {
17
- code: string;
18
- state: string;
19
- }
20
- export declare namespace OAuth {
21
- export { type OAuthAuthorizeParams as OAuthAuthorizeParams, type OAuthCallbackParams as OAuthCallbackParams, };
22
- export { Authorization as Authorization };
23
- }
24
- //# sourceMappingURL=oauth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../../src/resources/oauth/oauth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,KAAK,IAAI,MAAM,YAAY,CAAC;AACnC,OAAO,KAAK,gBAAgB,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,qBAAa,KAAM,SAAQ,WAAW;IACpC,aAAa,EAAE,gBAAgB,CAAC,aAAa,CAAoD;IAEjG,SAAS,CAAC,KAAK,EAAE,oBAAoB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ5F,QAAQ,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAQ1F,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;IAOjE,WAAW,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAMlE;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,MAAM,CAAC;IAElB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;CACf;AAID,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EAAE,aAAa,IAAI,aAAa,EAAE,CAAC;CAC3C"}
@@ -1,65 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
- Object.defineProperty(o, "default", { enumerable: true, value: v });
16
- }) : function(o, v) {
17
- o["default"] = v;
18
- });
19
- var __importStar = (this && this.__importStar) || function (mod) {
20
- if (mod && mod.__esModule) return mod;
21
- var result = {};
22
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
23
- __setModuleDefault(result, mod);
24
- return result;
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.OAuth = void 0;
28
- const resource_1 = require("../../resource.js");
29
- const AuthorizationAPI = __importStar(require("./authorization.js"));
30
- const authorization_1 = require("./authorization.js");
31
- class OAuth extends resource_1.APIResource {
32
- constructor() {
33
- super(...arguments);
34
- this.authorization = new AuthorizationAPI.Authorization(this._client);
35
- }
36
- authorize(query, options) {
37
- return this._client.get('/v1/oauth/authorize', {
38
- query,
39
- ...options,
40
- headers: { Accept: '*/*', ...options?.headers },
41
- });
42
- }
43
- callback(query, options) {
44
- return this._client.get('/v1/oauth/callback', {
45
- query,
46
- ...options,
47
- headers: { Accept: '*/*', ...options?.headers },
48
- });
49
- }
50
- createToken(options) {
51
- return this._client.post('/v1/oauth/token', {
52
- ...options,
53
- headers: { Accept: '*/*', ...options?.headers },
54
- });
55
- }
56
- revokeToken(options) {
57
- return this._client.post('/v1/oauth/revoke', {
58
- ...options,
59
- headers: { Accept: '*/*', ...options?.headers },
60
- });
61
- }
62
- }
63
- exports.OAuth = OAuth;
64
- OAuth.Authorization = authorization_1.Authorization;
65
- //# sourceMappingURL=oauth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../../src/resources/oauth/oauth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEtF,gDAA6C;AAE7C,qEAAoD;AACpD,sDAAgD;AAEhD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+BnG,CAAC;IA7BC,SAAS,CAAC,KAA2B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,KAA0B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;YAC5C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,OAA6B;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC1C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,OAA6B;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC3C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAhCD,sBAgCC;AAcD,KAAK,CAAC,aAAa,GAAG,6BAAa,CAAC"}
@@ -1,38 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../resource.mjs";
3
- import * as AuthorizationAPI from "./authorization.mjs";
4
- import { Authorization } from "./authorization.mjs";
5
- export class OAuth extends APIResource {
6
- constructor() {
7
- super(...arguments);
8
- this.authorization = new AuthorizationAPI.Authorization(this._client);
9
- }
10
- authorize(query, options) {
11
- return this._client.get('/v1/oauth/authorize', {
12
- query,
13
- ...options,
14
- headers: { Accept: '*/*', ...options?.headers },
15
- });
16
- }
17
- callback(query, options) {
18
- return this._client.get('/v1/oauth/callback', {
19
- query,
20
- ...options,
21
- headers: { Accept: '*/*', ...options?.headers },
22
- });
23
- }
24
- createToken(options) {
25
- return this._client.post('/v1/oauth/token', {
26
- ...options,
27
- headers: { Accept: '*/*', ...options?.headers },
28
- });
29
- }
30
- revokeToken(options) {
31
- return this._client.post('/v1/oauth/revoke', {
32
- ...options,
33
- headers: { Accept: '*/*', ...options?.headers },
34
- });
35
- }
36
- }
37
- OAuth.Authorization = Authorization;
38
- //# sourceMappingURL=oauth.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.mjs","sourceRoot":"","sources":["../../src/resources/oauth/oauth.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,KAAK,gBAAgB;OACrB,EAAE,aAAa,EAAE;AAExB,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,kBAAa,GAAmC,IAAI,gBAAgB,CAAC,aAAa,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+BnG,CAAC;IA7BC,SAAS,CAAC,KAA2B,EAAE,OAA6B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,EAAE;YAC7C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,KAA0B,EAAE,OAA6B;QAChE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE;YAC5C,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,OAA6B;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE;YAC1C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;IAED,WAAW,CAAC,OAA6B;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE;YAC3C,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAC;IACL,CAAC;CACF;AAcD,KAAK,CAAC,aAAa,GAAG,aAAa,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from "./oauth/index.js";
2
- //# sourceMappingURL=oauth.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.d.ts","sourceRoot":"","sources":["../src/resources/oauth.ts"],"names":[],"mappings":"AAEA,cAAc,eAAe,CAAC"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
- if (k2 === undefined) k2 = k;
5
- var desc = Object.getOwnPropertyDescriptor(m, k);
6
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
- desc = { enumerable: true, get: function() { return m[k]; } };
8
- }
9
- Object.defineProperty(o, k2, desc);
10
- }) : (function(o, m, k, k2) {
11
- if (k2 === undefined) k2 = k;
12
- o[k2] = m[k];
13
- }));
14
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
16
- };
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- __exportStar(require("./oauth/index.js"), exports);
19
- //# sourceMappingURL=oauth.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"oauth.js","sourceRoot":"","sources":["../src/resources/oauth.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;;;;;;;;;;;;;AAEtF,mDAA8B"}
@@ -1,3 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export * from "./oauth/index.mjs";
3
- //# sourceMappingURL=oauth.mjs.map