@lorikeetai/node-sdk 0.1.0-alpha.1 → 0.1.0-alpha.10
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 +91 -0
- package/README.md +35 -24
- package/_shims/MultipartBody.js.map +1 -1
- package/_shims/MultipartBody.mjs.map +1 -1
- package/_shims/auto/runtime-bun.d.ts.map +1 -1
- package/_shims/auto/runtime-bun.js.map +1 -1
- package/_shims/auto/runtime-node.d.ts.map +1 -1
- package/_shims/auto/runtime-node.js.map +1 -1
- package/_shims/auto/runtime.d.ts.map +1 -1
- package/_shims/auto/runtime.js.map +1 -1
- package/_shims/auto/types-node.d.ts.map +1 -1
- package/_shims/auto/types-node.js.map +1 -1
- package/_shims/auto/types.d.ts +52 -52
- package/_shims/bun-runtime.d.ts.map +1 -1
- package/_shims/bun-runtime.js +1 -2
- package/_shims/bun-runtime.js.map +1 -1
- package/_shims/bun-runtime.mjs.map +1 -1
- package/_shims/index.d.ts +36 -36
- package/_shims/index.js +5 -5
- package/_shims/index.mjs +4 -4
- package/_shims/node-runtime.d.ts.map +1 -1
- package/_shims/node-runtime.js +1 -2
- package/_shims/node-runtime.js.map +1 -1
- package/_shims/node-runtime.mjs.map +1 -1
- package/_shims/node-types.d.ts +27 -27
- package/_shims/registry.d.ts.map +1 -1
- package/_shims/registry.js +2 -2
- package/_shims/registry.js.map +1 -1
- package/_shims/registry.mjs.map +1 -1
- package/_shims/web-runtime.d.ts.map +1 -1
- package/_shims/web-runtime.js +1 -2
- package/_shims/web-runtime.js.map +1 -1
- package/_shims/web-runtime.mjs.map +1 -1
- package/_shims/web-types.d.ts +52 -52
- package/core.d.ts +2 -4
- package/core.d.ts.map +1 -1
- package/core.js +7 -6
- package/core.js.map +1 -1
- package/core.mjs +2 -1
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/error.js.map +1 -1
- package/error.mjs.map +1 -1
- package/index.d.mts +14 -20
- package/index.d.ts +14 -20
- package/index.d.ts.map +1 -1
- package/index.js +29 -45
- package/index.js.map +1 -1
- package/index.mjs +28 -44
- package/index.mjs.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/formats.js.map +1 -1
- package/internal/qs/formats.mjs.map +1 -1
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.js.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.js +1 -2
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/types.d.ts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.js +9 -9
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/lib/generate-signature.d.ts +5 -0
- package/lib/generate-signature.d.ts.map +1 -0
- package/lib/generate-signature.js +19 -0
- package/lib/generate-signature.js.map +1 -0
- package/lib/generate-signature.mjs +13 -0
- package/lib/generate-signature.mjs.map +1 -0
- package/package.json +16 -14
- 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 +79 -0
- package/resources/conversation/chat.d.ts.map +1 -0
- package/resources/conversation/chat.js +20 -0
- package/resources/conversation/chat.js.map +1 -0
- package/resources/conversation/chat.mjs +16 -0
- package/resources/conversation/chat.mjs.map +1 -0
- package/resources/conversation/conversation.d.ts +15 -0
- package/resources/conversation/conversation.d.ts.map +1 -0
- package/resources/{store/store.js → conversation/conversation.js} +9 -22
- package/resources/conversation/conversation.js.map +1 -0
- package/resources/conversation/conversation.mjs +13 -0
- package/resources/conversation/conversation.mjs.map +1 -0
- package/resources/conversation/index.d.ts +3 -0
- package/resources/conversation/index.d.ts.map +1 -0
- package/resources/conversation/index.js +9 -0
- package/resources/conversation/index.js.map +1 -0
- package/resources/conversation/index.mjs +4 -0
- package/resources/conversation/index.mjs.map +1 -0
- package/resources/conversation.d.ts +0 -41
- package/resources/conversation.d.ts.map +1 -1
- package/resources/conversation.js +0 -14
- package/resources/conversation.js.map +1 -1
- package/resources/conversation.mjs +0 -14
- package/resources/conversation.mjs.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +4 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -2
- package/resources/index.mjs.map +1 -1
- package/resources/ingest.d.ts +1 -53
- package/resources/ingest.d.ts.map +1 -1
- package/resources/ingest.js +2 -25
- package/resources/ingest.js.map +1 -1
- package/resources/ingest.mjs +2 -25
- package/resources/ingest.mjs.map +1 -1
- package/resources/token.d.ts +28 -0
- package/resources/token.d.ts.map +1 -0
- package/resources/token.js +18 -0
- package/resources/token.js.map +1 -0
- package/resources/token.mjs +14 -0
- package/resources/token.mjs.map +1 -0
- package/shims/node.d.ts +0 -4
- package/shims/node.d.ts.map +1 -1
- package/shims/node.js +0 -25
- package/shims/node.js.map +1 -1
- package/shims/node.mjs +0 -1
- package/shims/node.mjs.map +1 -1
- package/shims/web.d.ts.map +1 -1
- package/shims/web.js +0 -25
- package/shims/web.js.map +1 -1
- package/shims/web.mjs +0 -1
- package/shims/web.mjs.map +1 -1
- package/src/_shims/MultipartBody.ts +1 -1
- package/src/_shims/auto/runtime-bun.ts +1 -1
- package/src/_shims/auto/runtime-node.ts +1 -1
- package/src/_shims/auto/runtime.ts +1 -1
- package/src/_shims/auto/types-node.ts +1 -1
- package/src/_shims/auto/types.d.ts +52 -52
- package/src/_shims/bun-runtime.ts +6 -6
- package/src/_shims/index.d.ts +36 -36
- package/src/_shims/index.js +5 -5
- package/src/_shims/index.mjs +4 -4
- package/src/_shims/node-runtime.ts +32 -32
- package/src/_shims/node-types.d.ts +27 -27
- package/src/_shims/registry.ts +44 -44
- package/src/_shims/web-runtime.ts +16 -16
- package/src/_shims/web-types.d.ts +52 -52
- package/src/core.ts +373 -373
- package/src/error.ts +37 -37
- package/src/index.ts +88 -112
- package/src/internal/qs/formats.ts +5 -5
- package/src/internal/qs/index.ts +5 -5
- package/src/internal/qs/stringify.ts +98 -98
- package/src/internal/qs/types.ts +52 -52
- package/src/internal/qs/utils.ts +87 -87
- package/src/lib/generate-signature.ts +13 -0
- package/src/resource.ts +3 -3
- package/src/resources/conversation/chat.ts +102 -0
- package/src/resources/conversation/conversation.ts +18 -0
- package/src/resources/conversation/index.ts +12 -0
- package/src/resources/conversation.ts +2 -59
- package/src/resources/index.ts +3 -13
- package/src/resources/ingest.ts +5 -84
- package/src/resources/token.ts +41 -0
- package/src/shims/node.ts +24 -24
- package/src/shims/web.ts +24 -24
- package/src/uploads.ts +75 -74
- package/src/version.ts +1 -1
- package/uploads.d.ts +2 -2
- package/uploads.d.ts.map +1 -1
- package/uploads.js +3 -4
- package/uploads.js.map +1 -1
- package/uploads.mjs +1 -2
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
- package/resources/pets.d.ts +0 -157
- package/resources/pets.d.ts.map +0 -1
- package/resources/pets.js +0 -75
- package/resources/pets.js.map +0 -1
- package/resources/pets.mjs +0 -71
- package/resources/pets.mjs.map +0 -1
- package/resources/shared.d.ts +0 -12
- package/resources/shared.d.ts.map +0 -1
- package/resources/shared.js +0 -4
- package/resources/shared.js.map +0 -1
- package/resources/shared.mjs +0 -3
- package/resources/shared.mjs.map +0 -1
- package/resources/store/index.d.ts +0 -3
- package/resources/store/index.d.ts.map +0 -1
- package/resources/store/index.js +0 -9
- package/resources/store/index.js.map +0 -1
- package/resources/store/index.mjs +0 -4
- package/resources/store/index.mjs.map +0 -1
- package/resources/store/order.d.ts +0 -16
- package/resources/store/order.d.ts.map +0 -1
- package/resources/store/order.js +0 -26
- package/resources/store/order.js.map +0 -1
- package/resources/store/order.mjs +0 -22
- package/resources/store/order.mjs.map +0 -1
- package/resources/store/store.d.ts +0 -35
- package/resources/store/store.d.ts.map +0 -1
- package/resources/store/store.js.map +0 -1
- package/resources/store/store.mjs +0 -26
- package/resources/store/store.mjs.map +0 -1
- package/resources/user.d.ts +0 -96
- package/resources/user.d.ts.map +0 -1
- package/resources/user.js +0 -65
- package/resources/user.js.map +0 -1
- package/resources/user.mjs +0 -61
- package/resources/user.mjs.map +0 -1
- package/src/resources/pets.ts +0 -276
- package/src/resources/shared.ts +0 -18
- package/src/resources/store/index.ts +0 -4
- package/src/resources/store/order.ts +0 -26
- package/src/resources/store/store.ts +0 -59
- package/src/resources/user.ts +0 -185
package/resources/ingest.d.ts
CHANGED
|
@@ -1,58 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../resource.js";
|
|
2
2
|
import * as Core from "../core.js";
|
|
3
|
-
import * as IngestAPI from "./ingest.js";
|
|
4
3
|
export declare class Ingest extends APIResource {
|
|
5
|
-
|
|
6
|
-
* The URL to post a return webhook request to. This URL will be generated by
|
|
7
|
-
* Lorikeet and sent as a payload to your webhook.
|
|
8
|
-
*/
|
|
9
|
-
returnWebhook(toolId: string, ticketId: string, body: IngestReturnWebhookParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
10
|
-
/**
|
|
11
|
-
* Create a signed JWT that can be associated with a user account.
|
|
12
|
-
*/
|
|
13
|
-
token(body: IngestTokenParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Validate your webhook is configured correctly.
|
|
16
|
-
*/
|
|
17
|
-
validate(body: IngestValidateParams, options?: Core.RequestOptions): Core.APIPromise<IngestValidateResponse>;
|
|
18
|
-
}
|
|
19
|
-
export interface IngestValidateResponse {
|
|
20
|
-
code?: 200;
|
|
21
|
-
/**
|
|
22
|
-
* The return data for the tool request.
|
|
23
|
-
*/
|
|
24
|
-
data?: string;
|
|
25
|
-
}
|
|
26
|
-
export interface IngestReturnWebhookParams {
|
|
27
|
-
/**
|
|
28
|
-
* The return data for the tool request.
|
|
29
|
-
*/
|
|
30
|
-
data: unknown;
|
|
31
|
-
}
|
|
32
|
-
export interface IngestTokenParams {
|
|
33
|
-
/**
|
|
34
|
-
* The email of the user.
|
|
35
|
-
*/
|
|
36
|
-
email: string;
|
|
37
|
-
/**
|
|
38
|
-
* The first name of the user.
|
|
39
|
-
*/
|
|
40
|
-
firstName: string;
|
|
41
|
-
/**
|
|
42
|
-
* The last name of the user.
|
|
43
|
-
*/
|
|
44
|
-
lastName: string;
|
|
45
|
-
}
|
|
46
|
-
export interface IngestValidateParams {
|
|
47
|
-
/**
|
|
48
|
-
* The return data for the tool request.
|
|
49
|
-
*/
|
|
50
|
-
data: unknown;
|
|
51
|
-
}
|
|
52
|
-
export declare namespace Ingest {
|
|
53
|
-
export import IngestValidateResponse = IngestAPI.IngestValidateResponse;
|
|
54
|
-
export import IngestReturnWebhookParams = IngestAPI.IngestReturnWebhookParams;
|
|
55
|
-
export import IngestTokenParams = IngestAPI.IngestTokenParams;
|
|
56
|
-
export import IngestValidateParams = IngestAPI.IngestValidateParams;
|
|
4
|
+
validate(options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
57
5
|
}
|
|
58
6
|
//# sourceMappingURL=ingest.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../src/resources/ingest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"ingest.d.ts","sourceRoot":"","sources":["../src/resources/ingest.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAE/B,qBAAa,MAAO,SAAQ,WAAW;IACrC,QAAQ,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAM/D"}
|
package/resources/ingest.js
CHANGED
|
@@ -4,35 +4,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Ingest = void 0;
|
|
5
5
|
const resource_1 = require("../resource.js");
|
|
6
6
|
class Ingest extends resource_1.APIResource {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* Lorikeet and sent as a payload to your webhook.
|
|
10
|
-
*/
|
|
11
|
-
returnWebhook(toolId, ticketId, body, options) {
|
|
12
|
-
return this._client.post(`/ingest/${toolId}/${ticketId}`, {
|
|
13
|
-
body,
|
|
7
|
+
validate(options) {
|
|
8
|
+
return this._client.post('/ingest/validate', {
|
|
14
9
|
...options,
|
|
15
10
|
headers: { Accept: '*/*', ...options?.headers },
|
|
16
11
|
});
|
|
17
12
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Create a signed JWT that can be associated with a user account.
|
|
20
|
-
*/
|
|
21
|
-
token(body, options) {
|
|
22
|
-
return this._client.post('/ingest/token', {
|
|
23
|
-
body,
|
|
24
|
-
...options,
|
|
25
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Validate your webhook is configured correctly.
|
|
30
|
-
*/
|
|
31
|
-
validate(body, options) {
|
|
32
|
-
return this._client.post('/ingest/validate', { body, ...options });
|
|
33
|
-
}
|
|
34
13
|
}
|
|
35
14
|
exports.Ingest = Ingest;
|
|
36
|
-
(function (Ingest) {
|
|
37
|
-
})(Ingest = exports.Ingest || (exports.Ingest = {}));
|
|
38
15
|
//# sourceMappingURL=ingest.js.map
|
package/resources/ingest.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.js","sourceRoot":"","sources":["../src/resources/ingest.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"ingest.js","sourceRoot":"","sources":["../src/resources/ingest.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAAyC;AAGzC,MAAa,MAAO,SAAQ,sBAAW;IACrC,QAAQ,CAAC,OAA6B;QACpC,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,CAAA;IACJ,CAAC;CACF;AAPD,wBAOC"}
|
package/resources/ingest.mjs
CHANGED
|
@@ -1,34 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../resource.mjs";
|
|
3
3
|
export class Ingest extends APIResource {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* Lorikeet and sent as a payload to your webhook.
|
|
7
|
-
*/
|
|
8
|
-
returnWebhook(toolId, ticketId, body, options) {
|
|
9
|
-
return this._client.post(`/ingest/${toolId}/${ticketId}`, {
|
|
10
|
-
body,
|
|
4
|
+
validate(options) {
|
|
5
|
+
return this._client.post('/ingest/validate', {
|
|
11
6
|
...options,
|
|
12
7
|
headers: { Accept: '*/*', ...options?.headers },
|
|
13
8
|
});
|
|
14
9
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Create a signed JWT that can be associated with a user account.
|
|
17
|
-
*/
|
|
18
|
-
token(body, options) {
|
|
19
|
-
return this._client.post('/ingest/token', {
|
|
20
|
-
body,
|
|
21
|
-
...options,
|
|
22
|
-
headers: { Accept: '*/*', ...options?.headers },
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Validate your webhook is configured correctly.
|
|
27
|
-
*/
|
|
28
|
-
validate(body, options) {
|
|
29
|
-
return this._client.post('/ingest/validate', { body, ...options });
|
|
30
|
-
}
|
|
31
10
|
}
|
|
32
|
-
(function (Ingest) {
|
|
33
|
-
})(Ingest || (Ingest = {}));
|
|
34
11
|
//# sourceMappingURL=ingest.mjs.map
|
package/resources/ingest.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ingest.mjs","sourceRoot":"","sources":["../src/resources/ingest.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"ingest.mjs","sourceRoot":"","sources":["../src/resources/ingest.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC,QAAQ,CAAC,OAA6B;QACpC,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,CAAA;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { APIResource } from "../resource.js";
|
|
2
|
+
import * as Core from "../core.js";
|
|
3
|
+
import * as TokenAPI from "./token.js";
|
|
4
|
+
export declare class Token extends APIResource {
|
|
5
|
+
create(body: TokenCreateParams, options?: Core.RequestOptions): Core.APIPromise<void>;
|
|
6
|
+
}
|
|
7
|
+
export interface TokenCreateParams {
|
|
8
|
+
/**
|
|
9
|
+
* The email of the user.
|
|
10
|
+
*/
|
|
11
|
+
email: string;
|
|
12
|
+
/**
|
|
13
|
+
* The first name of the user.
|
|
14
|
+
*/
|
|
15
|
+
firstName: string;
|
|
16
|
+
/**
|
|
17
|
+
* The last name of the user.
|
|
18
|
+
*/
|
|
19
|
+
lastName: string;
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier of the user in your system.
|
|
22
|
+
*/
|
|
23
|
+
remoteId: string;
|
|
24
|
+
}
|
|
25
|
+
export declare namespace Token {
|
|
26
|
+
export import TokenCreateParams = TokenAPI.TokenCreateParams;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=token.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../src/resources/token.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,IAAI,MAAM,SAAS,CAAA;AAC/B,OAAO,KAAK,QAAQ,MAAM,SAAS,CAAA;AAEnC,qBAAa,KAAM,SAAQ,WAAW;IACpC,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;CAOtF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAA;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;IAEhB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,yBAAiB,KAAK,CAAC;IACrB,MAAM,QAAQ,iBAAiB,GAAG,QAAQ,CAAC,iBAAiB,CAAA;CAC7D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
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.Token = void 0;
|
|
5
|
+
const resource_1 = require("../resource.js");
|
|
6
|
+
class Token extends resource_1.APIResource {
|
|
7
|
+
create(body, options) {
|
|
8
|
+
return this._client.post('/ingest/token', {
|
|
9
|
+
body,
|
|
10
|
+
...options,
|
|
11
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Token = Token;
|
|
16
|
+
(function (Token) {
|
|
17
|
+
})(Token || (exports.Token = Token = {}));
|
|
18
|
+
//# sourceMappingURL=token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.js","sourceRoot":"","sources":["../src/resources/token.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6CAAyC;AAIzC,MAAa,KAAM,SAAQ,sBAAW;IACpC,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAA;IACJ,CAAC;CACF;AARD,sBAQC;AAwBD,WAAiB,KAAK;AAEtB,CAAC,EAFgB,KAAK,qBAAL,KAAK,QAErB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../resource.mjs";
|
|
3
|
+
export class Token extends APIResource {
|
|
4
|
+
create(body, options) {
|
|
5
|
+
return this._client.post('/ingest/token', {
|
|
6
|
+
body,
|
|
7
|
+
...options,
|
|
8
|
+
headers: { Accept: '*/*', ...options?.headers },
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
(function (Token) {
|
|
13
|
+
})(Token || (Token = {}));
|
|
14
|
+
//# sourceMappingURL=token.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.mjs","sourceRoot":"","sources":["../src/resources/token.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAItB,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC,MAAM,CAAC,IAAuB,EAAE,OAA6B;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,EAAE;YACxC,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE;SAChD,CAAC,CAAA;IACJ,CAAC;CACF;AAwBD,WAAiB,KAAK;AAEtB,CAAC,EAFgB,KAAK,KAAL,KAAK,QAErB"}
|
package/shims/node.d.ts
CHANGED
package/shims/node.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,sBAAsB,CAAA;AAK7C,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,MAAM,CAAC;QAEtB,KAAY,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QAE/B,MAAM,QAAQ,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QAEjC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAEnC,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAE3C,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAE3C,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAErC,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QAE7C,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QAE7C,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAErC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAEnC,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAE3C,KAAY,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;QAEnD,KAAY,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;QAEnD,KAAY,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAA;QAE3D,MAAM,QAAQ,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAEvC,MAAM,QAAQ,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QAE/B,MAAM,QAAQ,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QAE/B,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAErC,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QAE7C,MAAM,QAAQ,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;KACpD;CACF"}
|
package/shims/node.js
CHANGED
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
const types = __importStar(require("../_shims/node-types.js"));
|
|
28
3
|
const registry_1 = require("../_shims/registry.js");
|
|
29
4
|
const node_runtime_1 = require("../_shims/node-runtime.js");
|
|
30
5
|
(0, registry_1.setShims)((0, node_runtime_1.getRuntime)());
|
package/shims/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":";;AAEA,oDAA6C;AAC7C,4DAAmD;AACnD,IAAA,mBAAQ,EAAC,IAAA,yBAAU,GAAE,CAAC,CAAA"}
|
package/shims/node.mjs
CHANGED
package/shims/node.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.mjs","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.mjs","sourceRoot":"","sources":["../src/shims/node.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AACrB,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAA"}
|
package/shims/web.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,qBAAqB,CAAA;AAK5C,OAAO,QAAQ,wBAAwB,CAAC;IACtC,UAAiB,MAAM,CAAC;QAEtB,KAAY,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QAE/B,MAAM,QAAQ,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;QAEjC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAEnC,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAE3C,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAE3C,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAErC,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QAE7C,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QAE7C,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAErC,KAAY,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;QAEnC,KAAY,WAAW,GAAG,KAAK,CAAC,WAAW,CAAA;QAE3C,KAAY,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;QAEnD,KAAY,eAAe,GAAG,KAAK,CAAC,eAAe,CAAA;QAEnD,KAAY,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAA;QAE3D,MAAM,QAAQ,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAEvC,MAAM,QAAQ,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QAE/B,MAAM,QAAQ,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;QAE/B,KAAY,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;QAErC,KAAY,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;QAE7C,MAAM,QAAQ,cAAc,GAAG,KAAK,CAAC,cAAc,CAAA;KACpD;CACF"}
|
package/shims/web.js
CHANGED
|
@@ -1,30 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
// @ts-ignore
|
|
27
|
-
const types = __importStar(require("../_shims/web-types.js"));
|
|
28
3
|
const registry_1 = require("../_shims/registry.js");
|
|
29
4
|
const web_runtime_1 = require("../_shims/web-runtime.js");
|
|
30
5
|
(0, registry_1.setShims)((0, web_runtime_1.getRuntime)({ manuallyImported: true }));
|
package/shims/web.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"web.js","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":";;AAEA,oDAA6C;AAC7C,0DAAkD;AAClD,IAAA,mBAAQ,EAAC,IAAA,wBAAU,EAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA"}
|
package/shims/web.mjs
CHANGED
package/shims/web.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.mjs","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"web.mjs","sourceRoot":"","sources":["../src/shims/web.ts"],"names":[],"mappings":"OAEO,EAAE,QAAQ,EAAE;OACZ,EAAE,UAAU,EAAE;AACrB,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,EAAE,IAAI,EAAE,CAAC,CAAC,CAAA"}
|
|
@@ -1,101 +1,101 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
export type Agent = any
|
|
4
|
+
export type Agent = any
|
|
5
5
|
|
|
6
6
|
// @ts-ignore
|
|
7
|
-
declare const _fetch: typeof fetch
|
|
8
|
-
export { _fetch as fetch }
|
|
7
|
+
declare const _fetch: typeof fetch
|
|
8
|
+
export { _fetch as fetch }
|
|
9
9
|
|
|
10
10
|
// @ts-ignore
|
|
11
|
-
type _Request = Request
|
|
12
|
-
export { _Request as Request }
|
|
11
|
+
type _Request = Request
|
|
12
|
+
export { _Request as Request }
|
|
13
13
|
|
|
14
14
|
// @ts-ignore
|
|
15
|
-
type _RequestInfo = RequestInfo
|
|
16
|
-
export { type _RequestInfo as RequestInfo }
|
|
15
|
+
type _RequestInfo = RequestInfo
|
|
16
|
+
export { type _RequestInfo as RequestInfo }
|
|
17
17
|
|
|
18
18
|
// @ts-ignore
|
|
19
|
-
type _RequestInit = RequestInit
|
|
20
|
-
export { type _RequestInit as RequestInit }
|
|
19
|
+
type _RequestInit = RequestInit
|
|
20
|
+
export { type _RequestInit as RequestInit }
|
|
21
21
|
|
|
22
22
|
// @ts-ignore
|
|
23
|
-
type _Response = Response
|
|
24
|
-
export { _Response as Response }
|
|
23
|
+
type _Response = Response
|
|
24
|
+
export { _Response as Response }
|
|
25
25
|
|
|
26
26
|
// @ts-ignore
|
|
27
|
-
type _ResponseInit = ResponseInit
|
|
28
|
-
export { type _ResponseInit as ResponseInit }
|
|
27
|
+
type _ResponseInit = ResponseInit
|
|
28
|
+
export { type _ResponseInit as ResponseInit }
|
|
29
29
|
|
|
30
30
|
// @ts-ignore
|
|
31
|
-
type _ResponseType = ResponseType
|
|
32
|
-
export { type _ResponseType as ResponseType }
|
|
31
|
+
type _ResponseType = ResponseType
|
|
32
|
+
export { type _ResponseType as ResponseType }
|
|
33
33
|
|
|
34
34
|
// @ts-ignore
|
|
35
|
-
type _BodyInit = BodyInit
|
|
36
|
-
export { type _BodyInit as BodyInit }
|
|
35
|
+
type _BodyInit = BodyInit
|
|
36
|
+
export { type _BodyInit as BodyInit }
|
|
37
37
|
|
|
38
38
|
// @ts-ignore
|
|
39
|
-
type _Headers = Headers
|
|
40
|
-
export { _Headers as Headers }
|
|
39
|
+
type _Headers = Headers
|
|
40
|
+
export { _Headers as Headers }
|
|
41
41
|
|
|
42
42
|
// @ts-ignore
|
|
43
|
-
type _HeadersInit = HeadersInit
|
|
44
|
-
export { type _HeadersInit as HeadersInit }
|
|
43
|
+
type _HeadersInit = HeadersInit
|
|
44
|
+
export { type _HeadersInit as HeadersInit }
|
|
45
45
|
|
|
46
|
-
type EndingType = 'native' | 'transparent'
|
|
46
|
+
type EndingType = 'native' | 'transparent'
|
|
47
47
|
|
|
48
48
|
export interface BlobPropertyBag {
|
|
49
|
-
endings?: EndingType
|
|
50
|
-
type?: string
|
|
49
|
+
endings?: EndingType
|
|
50
|
+
type?: string
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
export interface FilePropertyBag extends BlobPropertyBag {
|
|
54
|
-
lastModified?: number
|
|
54
|
+
lastModified?: number
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'
|
|
57
|
+
export type FileFromPathOptions = Omit<FilePropertyBag, 'lastModified'>
|
|
58
58
|
|
|
59
59
|
// @ts-ignore
|
|
60
|
-
type _FormData = FormData
|
|
60
|
+
type _FormData = FormData
|
|
61
61
|
// @ts-ignore
|
|
62
|
-
declare const _FormData: typeof FormData
|
|
63
|
-
export { _FormData as FormData }
|
|
62
|
+
declare const _FormData: typeof FormData
|
|
63
|
+
export { _FormData as FormData }
|
|
64
64
|
|
|
65
65
|
// @ts-ignore
|
|
66
|
-
type _File = File
|
|
66
|
+
type _File = File
|
|
67
67
|
// @ts-ignore
|
|
68
|
-
declare const _File: typeof File
|
|
69
|
-
export { _File as File }
|
|
68
|
+
declare const _File: typeof File
|
|
69
|
+
export { _File as File }
|
|
70
70
|
|
|
71
71
|
// @ts-ignore
|
|
72
|
-
type _Blob = Blob
|
|
72
|
+
type _Blob = Blob
|
|
73
73
|
// @ts-ignore
|
|
74
|
-
declare const _Blob: typeof Blob
|
|
75
|
-
export { _Blob as Blob }
|
|
74
|
+
declare const _Blob: typeof Blob
|
|
75
|
+
export { _Blob as Blob }
|
|
76
76
|
|
|
77
77
|
export declare class Readable {
|
|
78
|
-
readable: boolean
|
|
79
|
-
readonly readableEnded: boolean
|
|
80
|
-
readonly readableFlowing: boolean | null
|
|
81
|
-
readonly readableHighWaterMark: number
|
|
82
|
-
readonly readableLength: number
|
|
83
|
-
readonly readableObjectMode: boolean
|
|
84
|
-
destroyed: boolean
|
|
85
|
-
read(size?: number): any
|
|
86
|
-
pause(): this
|
|
87
|
-
resume(): this
|
|
88
|
-
isPaused(): boolean
|
|
89
|
-
destroy(error?: Error): this
|
|
90
|
-
[Symbol.asyncIterator](): AsyncIterableIterator<any
|
|
78
|
+
readable: boolean
|
|
79
|
+
readonly readableEnded: boolean
|
|
80
|
+
readonly readableFlowing: boolean | null
|
|
81
|
+
readonly readableHighWaterMark: number
|
|
82
|
+
readonly readableLength: number
|
|
83
|
+
readonly readableObjectMode: boolean
|
|
84
|
+
destroyed: boolean
|
|
85
|
+
read(size?: number): any
|
|
86
|
+
pause(): this
|
|
87
|
+
resume(): this
|
|
88
|
+
isPaused(): boolean
|
|
89
|
+
destroy(error?: Error): this
|
|
90
|
+
[Symbol.asyncIterator](): AsyncIterableIterator<any>
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
export declare class FsReadStream extends Readable {
|
|
94
|
-
path: {}
|
|
94
|
+
path: {} // node type is string | Buffer
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
// @ts-ignore
|
|
98
|
-
type _ReadableStream<R = any> = ReadableStream<R
|
|
98
|
+
type _ReadableStream<R = any> = ReadableStream<R>
|
|
99
99
|
// @ts-ignore
|
|
100
|
-
declare const _ReadableStream: typeof ReadableStream
|
|
101
|
-
export { _ReadableStream as ReadableStream }
|
|
100
|
+
declare const _ReadableStream: typeof ReadableStream
|
|
101
|
+
export { _ReadableStream as ReadableStream }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Disclaimer: modules in _shims aren't intended to be imported by SDK users.
|
|
3
3
|
*/
|
|
4
|
-
import { type Shims } from './registry'
|
|
5
|
-
import { getRuntime as getWebRuntime } from './web-runtime'
|
|
6
|
-
import { ReadStream as FsReadStream } from 'node:fs'
|
|
4
|
+
import { type Shims } from './registry'
|
|
5
|
+
import { getRuntime as getWebRuntime } from './web-runtime'
|
|
6
|
+
import { ReadStream as FsReadStream } from 'node:fs'
|
|
7
7
|
|
|
8
8
|
export function getRuntime(): Shims {
|
|
9
|
-
const runtime = getWebRuntime()
|
|
9
|
+
const runtime = getWebRuntime()
|
|
10
10
|
function isFsReadStream(value: any): value is FsReadStream {
|
|
11
|
-
return value instanceof FsReadStream
|
|
11
|
+
return value instanceof FsReadStream
|
|
12
12
|
}
|
|
13
|
-
return { ...runtime, isFsReadStream }
|
|
13
|
+
return { ...runtime, isFsReadStream }
|
|
14
14
|
}
|