@onflay/node 0.3.0 → 1.0.0-staging-20261206080029
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 +74 -0
- package/README.md +211 -48
- package/dist/chunk-4RUPPDC2.mjs +121 -0
- package/dist/chunk-4RUPPDC2.mjs.map +1 -0
- package/dist/chunk-63KSRMJG.mjs +47 -0
- package/dist/chunk-63KSRMJG.mjs.map +1 -0
- package/dist/chunk-7LYAEZCT.mjs +197 -0
- package/dist/chunk-7LYAEZCT.mjs.map +1 -0
- package/dist/chunk-A3TRCKHK.mjs +60 -0
- package/dist/chunk-A3TRCKHK.mjs.map +1 -0
- package/dist/chunk-AFAU2FH2.js +47 -0
- package/dist/chunk-AFAU2FH2.js.map +1 -0
- package/dist/chunk-DBE2YZWE.mjs +38 -0
- package/dist/chunk-DBE2YZWE.mjs.map +1 -0
- package/dist/chunk-EOHFYWFQ.mjs +154 -0
- package/dist/chunk-EOHFYWFQ.mjs.map +1 -0
- package/dist/chunk-I2IVHBFA.js +197 -0
- package/dist/chunk-I2IVHBFA.js.map +1 -0
- package/dist/chunk-J4MYKTPN.mjs +37 -0
- package/dist/chunk-J4MYKTPN.mjs.map +1 -0
- package/dist/chunk-JQPANXLV.mjs +37 -0
- package/dist/chunk-JQPANXLV.mjs.map +1 -0
- package/dist/chunk-JXP6V2P2.mjs +1057 -0
- package/dist/chunk-JXP6V2P2.mjs.map +1 -0
- package/dist/chunk-M52GW7GQ.js +1057 -0
- package/dist/chunk-M52GW7GQ.js.map +1 -0
- package/dist/chunk-MMMUKAI6.js +37 -0
- package/dist/chunk-MMMUKAI6.js.map +1 -0
- package/dist/chunk-NSR4UQLV.js +87 -0
- package/dist/chunk-NSR4UQLV.js.map +1 -0
- package/dist/chunk-SUONZUVK.js +154 -0
- package/dist/chunk-SUONZUVK.js.map +1 -0
- package/dist/chunk-T26CPULH.js +121 -0
- package/dist/chunk-T26CPULH.js.map +1 -0
- package/dist/chunk-V2XJ4GZU.js +38 -0
- package/dist/chunk-V2XJ4GZU.js.map +1 -0
- package/dist/chunk-W6AEPYUG.js +37 -0
- package/dist/chunk-W6AEPYUG.js.map +1 -0
- package/dist/chunk-YHQ7XIC6.js +60 -0
- package/dist/chunk-YHQ7XIC6.js.map +1 -0
- package/dist/chunk-YSXUZYUY.mjs +87 -0
- package/dist/chunk-YSXUZYUY.mjs.map +1 -0
- package/dist/index-C1KFW_9r.d.mts +3989 -0
- package/dist/index-C1KFW_9r.d.ts +3989 -0
- package/dist/index.d.mts +918 -0
- package/dist/index.d.ts +918 -29
- package/dist/index.js +2990 -42
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2991 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lib/config.d.mts +59 -0
- package/dist/lib/config.d.ts +59 -0
- package/dist/lib/config.js +15 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/config.mjs +15 -0
- package/dist/lib/config.mjs.map +1 -0
- package/dist/lib/http.d.mts +51 -0
- package/dist/lib/http.d.ts +51 -0
- package/dist/lib/http.js +13 -0
- package/dist/lib/http.js.map +1 -0
- package/dist/lib/http.mjs +13 -0
- package/dist/lib/http.mjs.map +1 -0
- package/dist/lib/retries.d.mts +41 -0
- package/dist/lib/retries.d.ts +41 -0
- package/dist/lib/retries.js +16 -0
- package/dist/lib/retries.js.map +1 -0
- package/dist/lib/retries.mjs +16 -0
- package/dist/lib/retries.mjs.map +1 -0
- package/dist/lib/sdks.d.mts +61 -0
- package/dist/lib/sdks.d.ts +61 -0
- package/dist/lib/sdks.js +12 -0
- package/dist/lib/sdks.js.map +1 -0
- package/dist/lib/sdks.mjs +12 -0
- package/dist/lib/sdks.mjs.map +1 -0
- package/dist/models/components/index.d.mts +1 -0
- package/dist/models/components/index.d.ts +1 -0
- package/dist/models/components/index.js +1 -0
- package/dist/models/components/index.js.map +1 -0
- package/dist/models/components/index.mjs +1 -0
- package/dist/models/components/index.mjs.map +1 -0
- package/dist/models/errors/index.d.mts +161 -0
- package/dist/models/errors/index.d.ts +161 -0
- package/dist/models/errors/index.js +29 -0
- package/dist/models/errors/index.js.map +1 -0
- package/dist/models/errors/index.mjs +29 -0
- package/dist/models/errors/index.mjs.map +1 -0
- package/dist/models/operations/index.d.mts +769 -0
- package/dist/models/operations/index.d.ts +769 -0
- package/dist/models/operations/index.js +1 -0
- package/dist/models/operations/index.js.map +1 -0
- package/dist/models/operations/index.mjs +1 -0
- package/dist/models/operations/index.mjs.map +1 -0
- package/dist/types/index.d.mts +26 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/index.mjs +1 -0
- package/dist/types/index.mjs.map +1 -0
- package/dist/verify-tF2BsJK6.d.mts +325 -0
- package/dist/verify-tF2BsJK6.d.ts +325 -0
- package/dist/webhooks/express.d.mts +39 -0
- package/dist/webhooks/express.d.ts +39 -0
- package/dist/webhooks/express.js +10 -0
- package/dist/webhooks/express.js.map +1 -0
- package/dist/webhooks/express.mjs +10 -0
- package/dist/webhooks/express.mjs.map +1 -0
- package/dist/webhooks/hono.d.mts +33 -0
- package/dist/webhooks/hono.d.ts +33 -0
- package/dist/webhooks/hono.js +10 -0
- package/dist/webhooks/hono.js.map +1 -0
- package/dist/webhooks/hono.mjs +10 -0
- package/dist/webhooks/hono.mjs.map +1 -0
- package/dist/webhooks/index.d.mts +34 -0
- package/dist/webhooks/index.d.ts +34 -0
- package/dist/webhooks/index.js +75 -0
- package/dist/webhooks/index.js.map +1 -0
- package/dist/webhooks/index.mjs +75 -0
- package/dist/webhooks/index.mjs.map +1 -0
- package/dist/webhooks/next.d.mts +38 -0
- package/dist/webhooks/next.d.ts +38 -0
- package/dist/webhooks/next.js +10 -0
- package/dist/webhooks/next.js.map +1 -0
- package/dist/webhooks/next.mjs +10 -0
- package/dist/webhooks/next.mjs.map +1 -0
- package/package.json +273 -14
- package/dist/client.d.ts +0 -65
- package/dist/client.d.ts.map +0 -1
- package/dist/client.js +0 -216
- package/dist/client.js.map +0 -1
- package/dist/errors.d.ts +0 -61
- package/dist/errors.d.ts.map +0 -1
- package/dist/errors.js +0 -134
- package/dist/errors.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/onflay.d.ts +0 -44
- package/dist/onflay.d.ts.map +0 -1
- package/dist/onflay.js +0 -63
- package/dist/onflay.js.map +0 -1
- package/dist/pagination.d.ts +0 -19
- package/dist/pagination.d.ts.map +0 -1
- package/dist/pagination.js +0 -61
- package/dist/pagination.js.map +0 -1
- package/dist/resources/checkout-sessions.d.ts +0 -11
- package/dist/resources/checkout-sessions.d.ts.map +0 -1
- package/dist/resources/checkout-sessions.js +0 -20
- package/dist/resources/checkout-sessions.js.map +0 -1
- package/dist/resources/customers.d.ts +0 -17
- package/dist/resources/customers.d.ts.map +0 -1
- package/dist/resources/customers.js +0 -39
- package/dist/resources/customers.js.map +0 -1
- package/dist/resources/invoices.d.ts +0 -60
- package/dist/resources/invoices.d.ts.map +0 -1
- package/dist/resources/invoices.js +0 -69
- package/dist/resources/invoices.js.map +0 -1
- package/dist/resources/payments.d.ts +0 -11
- package/dist/resources/payments.d.ts.map +0 -1
- package/dist/resources/payments.js +0 -27
- package/dist/resources/payments.js.map +0 -1
- package/dist/resources/prices.d.ts +0 -24
- package/dist/resources/prices.d.ts.map +0 -1
- package/dist/resources/prices.js +0 -46
- package/dist/resources/prices.js.map +0 -1
- package/dist/resources/products.d.ts +0 -18
- package/dist/resources/products.d.ts.map +0 -1
- package/dist/resources/products.js +0 -40
- package/dist/resources/products.js.map +0 -1
- package/dist/resources/subscriptions.d.ts +0 -39
- package/dist/resources/subscriptions.d.ts.map +0 -1
- package/dist/resources/subscriptions.js +0 -62
- package/dist/resources/subscriptions.js.map +0 -1
- package/dist/resources/usage.d.ts +0 -26
- package/dist/resources/usage.d.ts.map +0 -1
- package/dist/resources/usage.js +0 -43
- package/dist/resources/usage.js.map +0 -1
- package/dist/resources/webhook-endpoints.d.ts +0 -20
- package/dist/resources/webhook-endpoints.d.ts.map +0 -1
- package/dist/resources/webhook-endpoints.js +0 -47
- package/dist/resources/webhook-endpoints.js.map +0 -1
- package/dist/types/checkout-sessions.d.ts +0 -67
- package/dist/types/checkout-sessions.d.ts.map +0 -1
- package/dist/types/checkout-sessions.js +0 -3
- package/dist/types/checkout-sessions.js.map +0 -1
- package/dist/types/customers.d.ts +0 -28
- package/dist/types/customers.d.ts.map +0 -1
- package/dist/types/customers.js +0 -3
- package/dist/types/customers.js.map +0 -1
- package/dist/types/events.d.ts +0 -118
- package/dist/types/events.d.ts.map +0 -1
- package/dist/types/events.js +0 -28
- package/dist/types/events.js.map +0 -1
- package/dist/types/invoices.d.ts +0 -65
- package/dist/types/invoices.d.ts.map +0 -1
- package/dist/types/invoices.js +0 -3
- package/dist/types/invoices.js.map +0 -1
- package/dist/types/payments.d.ts +0 -25
- package/dist/types/payments.d.ts.map +0 -1
- package/dist/types/payments.js +0 -3
- package/dist/types/payments.js.map +0 -1
- package/dist/types/prices.d.ts +0 -57
- package/dist/types/prices.d.ts.map +0 -1
- package/dist/types/prices.js +0 -3
- package/dist/types/prices.js.map +0 -1
- package/dist/types/products.d.ts +0 -29
- package/dist/types/products.d.ts.map +0 -1
- package/dist/types/products.js +0 -3
- package/dist/types/products.js.map +0 -1
- package/dist/types/shared.d.ts +0 -34
- package/dist/types/shared.d.ts.map +0 -1
- package/dist/types/shared.js +0 -4
- package/dist/types/shared.js.map +0 -1
- package/dist/types/subscriptions.d.ts +0 -85
- package/dist/types/subscriptions.d.ts.map +0 -1
- package/dist/types/subscriptions.js +0 -3
- package/dist/types/subscriptions.js.map +0 -1
- package/dist/types/usage.d.ts +0 -35
- package/dist/types/usage.d.ts.map +0 -1
- package/dist/types/usage.js +0 -3
- package/dist/types/usage.js.map +0 -1
- package/dist/types/webhook-endpoints.d.ts +0 -48
- package/dist/types/webhook-endpoints.d.ts.map +0 -1
- package/dist/types/webhook-endpoints.js +0 -3
- package/dist/types/webhook-endpoints.js.map +0 -1
- package/dist/version.d.ts +0 -4
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -7
- package/dist/version.js.map +0 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { HTTPClient } from './http.mjs';
|
|
2
|
+
import { RetryConfig } from './retries.mjs';
|
|
3
|
+
|
|
4
|
+
/** Minimal logger shape accepted by `debugLogger` (the global `console` fits). */
|
|
5
|
+
interface Logger {
|
|
6
|
+
group(label?: string): void;
|
|
7
|
+
groupEnd(): void;
|
|
8
|
+
log(message: unknown, ...args: unknown[]): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Server id of the live API (`sk_live_*` keys). */
|
|
12
|
+
declare const ServerProduction = "production";
|
|
13
|
+
/** Server id of the sandbox API (`sk_test_*` keys). */
|
|
14
|
+
declare const ServerSandbox = "sandbox";
|
|
15
|
+
/** Contains the list of servers available to the SDK, by server id (`x-speakeasy-server-id`). */
|
|
16
|
+
declare const ServerList: {
|
|
17
|
+
readonly production: "https://api.onflay.com";
|
|
18
|
+
readonly sandbox: "https://sandbox-api.onflay.com";
|
|
19
|
+
};
|
|
20
|
+
type SDKOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* Secret API key (`sk_live_*` / `sk_test_*`), sent as a Bearer token. A function is
|
|
23
|
+
* called before every request. Defaults to the `ONFLAY_BEARER` environment variable,
|
|
24
|
+
* then `ONFLAY_SECRET_KEY`.
|
|
25
|
+
*/
|
|
26
|
+
bearer?: string | (() => Promise<string>) | undefined;
|
|
27
|
+
httpClient?: HTTPClient;
|
|
28
|
+
/**
|
|
29
|
+
* Allows overriding the default server used by the SDK. When neither `server` nor
|
|
30
|
+
* `serverURL` is set, `sk_test_*` / `pk_test_*` keys use `sandbox` and every other
|
|
31
|
+
* key uses `production`.
|
|
32
|
+
*/
|
|
33
|
+
server?: keyof typeof ServerList | undefined;
|
|
34
|
+
/** Allows overriding the default server URL used by the SDK. */
|
|
35
|
+
serverURL?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `X-Onflay-Api-Version` header. Defaults to the API version this SDK
|
|
38
|
+
* was generated from (the spec's `info.version`). Set to `null` to omit the header
|
|
39
|
+
* and get the account's default version.
|
|
40
|
+
*/
|
|
41
|
+
apiVersion?: string | null | undefined;
|
|
42
|
+
/** Allows overriding the default user agent used by the SDK. */
|
|
43
|
+
userAgent?: string | undefined;
|
|
44
|
+
/** Allows overriding the default retry config used by the SDK. */
|
|
45
|
+
retryConfig?: RetryConfig;
|
|
46
|
+
/** Per-attempt timeout in milliseconds. `-1` (default) disables it. */
|
|
47
|
+
timeoutMs?: number;
|
|
48
|
+
debugLogger?: Logger;
|
|
49
|
+
};
|
|
50
|
+
declare function serverURLFromOptions(options: SDKOptions, bearerHint?: string): URL | null;
|
|
51
|
+
declare const SDK_METADATA: {
|
|
52
|
+
readonly language: "typescript";
|
|
53
|
+
readonly openapiDocVersion: "2026-01-01";
|
|
54
|
+
readonly sdkVersion: "1.0.0-staging-20261206080029";
|
|
55
|
+
readonly genVersion: "@hey-api/openapi-ts@0.99.0";
|
|
56
|
+
readonly userAgent: "onflay-node/1.0.0-staging-20261206080029 (typescript; api 2026-01-01)";
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { type SDKOptions, SDK_METADATA, ServerList, ServerProduction, ServerSandbox, serverURLFromOptions };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { HTTPClient } from './http.js';
|
|
2
|
+
import { RetryConfig } from './retries.js';
|
|
3
|
+
|
|
4
|
+
/** Minimal logger shape accepted by `debugLogger` (the global `console` fits). */
|
|
5
|
+
interface Logger {
|
|
6
|
+
group(label?: string): void;
|
|
7
|
+
groupEnd(): void;
|
|
8
|
+
log(message: unknown, ...args: unknown[]): void;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Server id of the live API (`sk_live_*` keys). */
|
|
12
|
+
declare const ServerProduction = "production";
|
|
13
|
+
/** Server id of the sandbox API (`sk_test_*` keys). */
|
|
14
|
+
declare const ServerSandbox = "sandbox";
|
|
15
|
+
/** Contains the list of servers available to the SDK, by server id (`x-speakeasy-server-id`). */
|
|
16
|
+
declare const ServerList: {
|
|
17
|
+
readonly production: "https://api.onflay.com";
|
|
18
|
+
readonly sandbox: "https://sandbox-api.onflay.com";
|
|
19
|
+
};
|
|
20
|
+
type SDKOptions = {
|
|
21
|
+
/**
|
|
22
|
+
* Secret API key (`sk_live_*` / `sk_test_*`), sent as a Bearer token. A function is
|
|
23
|
+
* called before every request. Defaults to the `ONFLAY_BEARER` environment variable,
|
|
24
|
+
* then `ONFLAY_SECRET_KEY`.
|
|
25
|
+
*/
|
|
26
|
+
bearer?: string | (() => Promise<string>) | undefined;
|
|
27
|
+
httpClient?: HTTPClient;
|
|
28
|
+
/**
|
|
29
|
+
* Allows overriding the default server used by the SDK. When neither `server` nor
|
|
30
|
+
* `serverURL` is set, `sk_test_*` / `pk_test_*` keys use `sandbox` and every other
|
|
31
|
+
* key uses `production`.
|
|
32
|
+
*/
|
|
33
|
+
server?: keyof typeof ServerList | undefined;
|
|
34
|
+
/** Allows overriding the default server URL used by the SDK. */
|
|
35
|
+
serverURL?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Value of the `X-Onflay-Api-Version` header. Defaults to the API version this SDK
|
|
38
|
+
* was generated from (the spec's `info.version`). Set to `null` to omit the header
|
|
39
|
+
* and get the account's default version.
|
|
40
|
+
*/
|
|
41
|
+
apiVersion?: string | null | undefined;
|
|
42
|
+
/** Allows overriding the default user agent used by the SDK. */
|
|
43
|
+
userAgent?: string | undefined;
|
|
44
|
+
/** Allows overriding the default retry config used by the SDK. */
|
|
45
|
+
retryConfig?: RetryConfig;
|
|
46
|
+
/** Per-attempt timeout in milliseconds. `-1` (default) disables it. */
|
|
47
|
+
timeoutMs?: number;
|
|
48
|
+
debugLogger?: Logger;
|
|
49
|
+
};
|
|
50
|
+
declare function serverURLFromOptions(options: SDKOptions, bearerHint?: string): URL | null;
|
|
51
|
+
declare const SDK_METADATA: {
|
|
52
|
+
readonly language: "typescript";
|
|
53
|
+
readonly openapiDocVersion: "2026-01-01";
|
|
54
|
+
readonly sdkVersion: "1.0.0-staging-20261206080029";
|
|
55
|
+
readonly genVersion: "@hey-api/openapi-ts@0.99.0";
|
|
56
|
+
readonly userAgent: "onflay-node/1.0.0-staging-20261206080029 (typescript; api 2026-01-01)";
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export { type SDKOptions, SDK_METADATA, ServerList, ServerProduction, ServerSandbox, serverURLFromOptions };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkYHQ7XIC6js = require('../chunk-YHQ7XIC6.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.SDK_METADATA = _chunkYHQ7XIC6js.SDK_METADATA; exports.ServerList = _chunkYHQ7XIC6js.ServerList; exports.ServerProduction = _chunkYHQ7XIC6js.ServerProduction; exports.ServerSandbox = _chunkYHQ7XIC6js.ServerSandbox; exports.serverURLFromOptions = _chunkYHQ7XIC6js.serverURLFromOptions;
|
|
15
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/onflay/onflay/sdks/node/dist/lib/config.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,mSAAC","file":"/home/runner/work/onflay/onflay/sdks/node/dist/lib/config.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SDK_METADATA,
|
|
3
|
+
ServerList,
|
|
4
|
+
ServerProduction,
|
|
5
|
+
ServerSandbox,
|
|
6
|
+
serverURLFromOptions
|
|
7
|
+
} from "../chunk-A3TRCKHK.mjs";
|
|
8
|
+
export {
|
|
9
|
+
SDK_METADATA,
|
|
10
|
+
ServerList,
|
|
11
|
+
ServerProduction,
|
|
12
|
+
ServerSandbox,
|
|
13
|
+
serverURLFromOptions
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=config.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The HTTP client the SDK sends every request through, shaped like the one in
|
|
3
|
+
* Speakeasy-generated SDKs: wrap a custom `fetcher` (tests, proxies, other runtimes)
|
|
4
|
+
* and add `beforeRequest` / `requestError` / `response` hooks.
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { Onflay } from '@onflay/node';
|
|
8
|
+
* import { HTTPClient } from '@onflay/node/lib/http';
|
|
9
|
+
*
|
|
10
|
+
* const httpClient = new HTTPClient({ fetcher: (request) => fetch(request) });
|
|
11
|
+
* httpClient.addHook('beforeRequest', (request) => {
|
|
12
|
+
* const next = new Request(request);
|
|
13
|
+
* next.headers.set('x-trace-id', crypto.randomUUID());
|
|
14
|
+
* return next;
|
|
15
|
+
* });
|
|
16
|
+
* const onflay = new Onflay({ httpClient });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
20
|
+
type Awaitable<T> = T | Promise<T>;
|
|
21
|
+
interface HTTPClientOptions {
|
|
22
|
+
fetcher?: Fetcher;
|
|
23
|
+
}
|
|
24
|
+
type BeforeRequestHook = (req: Request) => Awaitable<Request | void>;
|
|
25
|
+
type RequestErrorHook = (err: unknown, req: Request) => Awaitable<void>;
|
|
26
|
+
type ResponseHook = (res: Response, req: Request) => Awaitable<void>;
|
|
27
|
+
declare class HTTPClient {
|
|
28
|
+
private readonly options;
|
|
29
|
+
private readonly fetcher;
|
|
30
|
+
private requestHooks;
|
|
31
|
+
private requestErrorHooks;
|
|
32
|
+
private responseHooks;
|
|
33
|
+
constructor(options?: HTTPClientOptions);
|
|
34
|
+
request(request: Request): Promise<Response>;
|
|
35
|
+
/** Registers a hook that runs before every request and may return a replacement `Request`. */
|
|
36
|
+
addHook(hook: 'beforeRequest', fn: BeforeRequestHook): this;
|
|
37
|
+
/** Registers a hook that runs when the fetcher throws (network failure, abort, timeout). */
|
|
38
|
+
addHook(hook: 'requestError', fn: RequestErrorHook): this;
|
|
39
|
+
/** Registers a hook that runs on every response, whatever its status. */
|
|
40
|
+
addHook(hook: 'response', fn: ResponseHook): this;
|
|
41
|
+
removeHook(hook: 'beforeRequest', fn: BeforeRequestHook): this;
|
|
42
|
+
removeHook(hook: 'requestError', fn: RequestErrorHook): this;
|
|
43
|
+
removeHook(hook: 'response', fn: ResponseHook): this;
|
|
44
|
+
clone(): HTTPClient;
|
|
45
|
+
}
|
|
46
|
+
/** True for `fetch` failures caused by the network (DNS, refused connection, TLS, reset). */
|
|
47
|
+
declare function isConnectionError(err: unknown): boolean;
|
|
48
|
+
declare function isTimeoutError(err: unknown): boolean;
|
|
49
|
+
declare function isAbortError(err: unknown): boolean;
|
|
50
|
+
|
|
51
|
+
export { type Awaitable, type BeforeRequestHook, type Fetcher, HTTPClient, type HTTPClientOptions, type RequestErrorHook, type ResponseHook, isAbortError, isConnectionError, isTimeoutError };
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The HTTP client the SDK sends every request through, shaped like the one in
|
|
3
|
+
* Speakeasy-generated SDKs: wrap a custom `fetcher` (tests, proxies, other runtimes)
|
|
4
|
+
* and add `beforeRequest` / `requestError` / `response` hooks.
|
|
5
|
+
*
|
|
6
|
+
* ```ts
|
|
7
|
+
* import { Onflay } from '@onflay/node';
|
|
8
|
+
* import { HTTPClient } from '@onflay/node/lib/http';
|
|
9
|
+
*
|
|
10
|
+
* const httpClient = new HTTPClient({ fetcher: (request) => fetch(request) });
|
|
11
|
+
* httpClient.addHook('beforeRequest', (request) => {
|
|
12
|
+
* const next = new Request(request);
|
|
13
|
+
* next.headers.set('x-trace-id', crypto.randomUUID());
|
|
14
|
+
* return next;
|
|
15
|
+
* });
|
|
16
|
+
* const onflay = new Onflay({ httpClient });
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
type Fetcher = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
20
|
+
type Awaitable<T> = T | Promise<T>;
|
|
21
|
+
interface HTTPClientOptions {
|
|
22
|
+
fetcher?: Fetcher;
|
|
23
|
+
}
|
|
24
|
+
type BeforeRequestHook = (req: Request) => Awaitable<Request | void>;
|
|
25
|
+
type RequestErrorHook = (err: unknown, req: Request) => Awaitable<void>;
|
|
26
|
+
type ResponseHook = (res: Response, req: Request) => Awaitable<void>;
|
|
27
|
+
declare class HTTPClient {
|
|
28
|
+
private readonly options;
|
|
29
|
+
private readonly fetcher;
|
|
30
|
+
private requestHooks;
|
|
31
|
+
private requestErrorHooks;
|
|
32
|
+
private responseHooks;
|
|
33
|
+
constructor(options?: HTTPClientOptions);
|
|
34
|
+
request(request: Request): Promise<Response>;
|
|
35
|
+
/** Registers a hook that runs before every request and may return a replacement `Request`. */
|
|
36
|
+
addHook(hook: 'beforeRequest', fn: BeforeRequestHook): this;
|
|
37
|
+
/** Registers a hook that runs when the fetcher throws (network failure, abort, timeout). */
|
|
38
|
+
addHook(hook: 'requestError', fn: RequestErrorHook): this;
|
|
39
|
+
/** Registers a hook that runs on every response, whatever its status. */
|
|
40
|
+
addHook(hook: 'response', fn: ResponseHook): this;
|
|
41
|
+
removeHook(hook: 'beforeRequest', fn: BeforeRequestHook): this;
|
|
42
|
+
removeHook(hook: 'requestError', fn: RequestErrorHook): this;
|
|
43
|
+
removeHook(hook: 'response', fn: ResponseHook): this;
|
|
44
|
+
clone(): HTTPClient;
|
|
45
|
+
}
|
|
46
|
+
/** True for `fetch` failures caused by the network (DNS, refused connection, TLS, reset). */
|
|
47
|
+
declare function isConnectionError(err: unknown): boolean;
|
|
48
|
+
declare function isTimeoutError(err: unknown): boolean;
|
|
49
|
+
declare function isAbortError(err: unknown): boolean;
|
|
50
|
+
|
|
51
|
+
export { type Awaitable, type BeforeRequestHook, type Fetcher, HTTPClient, type HTTPClientOptions, type RequestErrorHook, type ResponseHook, isAbortError, isConnectionError, isTimeoutError };
|
package/dist/lib/http.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkNSR4UQLVjs = require('../chunk-NSR4UQLV.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
exports.HTTPClient = _chunkNSR4UQLVjs.HTTPClient; exports.isAbortError = _chunkNSR4UQLVjs.isAbortError; exports.isConnectionError = _chunkNSR4UQLVjs.isConnectionError; exports.isTimeoutError = _chunkNSR4UQLVjs.isTimeoutError;
|
|
13
|
+
//# sourceMappingURL=http.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/onflay/onflay/sdks/node/dist/lib/http.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACF,uDAA6B;AAC7B;AACE;AACA;AACA;AACA;AACF,iOAAC","file":"/home/runner/work/onflay/onflay/sdks/node/dist/lib/http.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retry configuration, shaped like Speakeasy's. The default comes from the spec's
|
|
3
|
+
* `x-speakeasy-retries` (exponential backoff on 429 / 5XX and connection errors, honouring
|
|
4
|
+
* `Retry-After`); override it per client (`retryConfig`) or per call (`{ retries }`).
|
|
5
|
+
*/
|
|
6
|
+
type BackoffStrategy = {
|
|
7
|
+
/** First wait, in ms. */
|
|
8
|
+
initialInterval: number;
|
|
9
|
+
/** Cap for a single wait, in ms (also caps `Retry-After`). */
|
|
10
|
+
maxInterval: number;
|
|
11
|
+
/** Growth factor of the wait between attempts. */
|
|
12
|
+
exponent: number;
|
|
13
|
+
/** Stop retrying once this many ms have passed since the first attempt. */
|
|
14
|
+
maxElapsedTime: number;
|
|
15
|
+
};
|
|
16
|
+
type RetryConfig = {
|
|
17
|
+
strategy: 'none';
|
|
18
|
+
} | {
|
|
19
|
+
strategy: 'backoff';
|
|
20
|
+
backoff?: BackoffStrategy;
|
|
21
|
+
retryConnectionErrors?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** Thrown inside the retry loop: stop retrying and surface `cause`. */
|
|
24
|
+
declare class PermanentError extends Error {
|
|
25
|
+
readonly inner: unknown;
|
|
26
|
+
constructor(message: string, inner: unknown);
|
|
27
|
+
}
|
|
28
|
+
/** Thrown inside the retry loop: retry with this response unless the budget is spent. */
|
|
29
|
+
declare class TemporaryError extends Error {
|
|
30
|
+
readonly response: Response;
|
|
31
|
+
constructor(message: string, response: Response);
|
|
32
|
+
}
|
|
33
|
+
declare function retry(fetchFn: () => Promise<Response>, options: {
|
|
34
|
+
config: RetryConfig;
|
|
35
|
+
statusCodes: string[];
|
|
36
|
+
}): Promise<Response>;
|
|
37
|
+
declare function isRetryableResponse(res: Response, statusCodes: string[]): boolean;
|
|
38
|
+
/** `Retry-After` as delay-seconds or an HTTP date, in ms (0 when absent or invalid). */
|
|
39
|
+
declare function retryIntervalFromResponse(res: Response): number;
|
|
40
|
+
|
|
41
|
+
export { type BackoffStrategy, PermanentError, type RetryConfig, TemporaryError, isRetryableResponse, retry, retryIntervalFromResponse };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retry configuration, shaped like Speakeasy's. The default comes from the spec's
|
|
3
|
+
* `x-speakeasy-retries` (exponential backoff on 429 / 5XX and connection errors, honouring
|
|
4
|
+
* `Retry-After`); override it per client (`retryConfig`) or per call (`{ retries }`).
|
|
5
|
+
*/
|
|
6
|
+
type BackoffStrategy = {
|
|
7
|
+
/** First wait, in ms. */
|
|
8
|
+
initialInterval: number;
|
|
9
|
+
/** Cap for a single wait, in ms (also caps `Retry-After`). */
|
|
10
|
+
maxInterval: number;
|
|
11
|
+
/** Growth factor of the wait between attempts. */
|
|
12
|
+
exponent: number;
|
|
13
|
+
/** Stop retrying once this many ms have passed since the first attempt. */
|
|
14
|
+
maxElapsedTime: number;
|
|
15
|
+
};
|
|
16
|
+
type RetryConfig = {
|
|
17
|
+
strategy: 'none';
|
|
18
|
+
} | {
|
|
19
|
+
strategy: 'backoff';
|
|
20
|
+
backoff?: BackoffStrategy;
|
|
21
|
+
retryConnectionErrors?: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** Thrown inside the retry loop: stop retrying and surface `cause`. */
|
|
24
|
+
declare class PermanentError extends Error {
|
|
25
|
+
readonly inner: unknown;
|
|
26
|
+
constructor(message: string, inner: unknown);
|
|
27
|
+
}
|
|
28
|
+
/** Thrown inside the retry loop: retry with this response unless the budget is spent. */
|
|
29
|
+
declare class TemporaryError extends Error {
|
|
30
|
+
readonly response: Response;
|
|
31
|
+
constructor(message: string, response: Response);
|
|
32
|
+
}
|
|
33
|
+
declare function retry(fetchFn: () => Promise<Response>, options: {
|
|
34
|
+
config: RetryConfig;
|
|
35
|
+
statusCodes: string[];
|
|
36
|
+
}): Promise<Response>;
|
|
37
|
+
declare function isRetryableResponse(res: Response, statusCodes: string[]): boolean;
|
|
38
|
+
/** `Retry-After` as delay-seconds or an HTTP date, in ms (0 when absent or invalid). */
|
|
39
|
+
declare function retryIntervalFromResponse(res: Response): number;
|
|
40
|
+
|
|
41
|
+
export { type BackoffStrategy, PermanentError, type RetryConfig, TemporaryError, isRetryableResponse, retry, retryIntervalFromResponse };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkT26CPULHjs = require('../chunk-T26CPULH.js');
|
|
8
|
+
require('../chunk-V2XJ4GZU.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.PermanentError = _chunkT26CPULHjs.PermanentError; exports.TemporaryError = _chunkT26CPULHjs.TemporaryError; exports.isRetryableResponse = _chunkT26CPULHjs.isRetryableResponse; exports.retry = _chunkT26CPULHjs.retry; exports.retryIntervalFromResponse = _chunkT26CPULHjs.retryIntervalFromResponse;
|
|
16
|
+
//# sourceMappingURL=retries.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/onflay/onflay/sdks/node/dist/lib/retries.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACA;AACA;AACA;AACA;AACF,+SAAC","file":"/home/runner/work/onflay/onflay/sdks/node/dist/lib/retries.js"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PermanentError,
|
|
3
|
+
TemporaryError,
|
|
4
|
+
isRetryableResponse,
|
|
5
|
+
retry,
|
|
6
|
+
retryIntervalFromResponse
|
|
7
|
+
} from "../chunk-4RUPPDC2.mjs";
|
|
8
|
+
import "../chunk-DBE2YZWE.mjs";
|
|
9
|
+
export {
|
|
10
|
+
PermanentError,
|
|
11
|
+
TemporaryError,
|
|
12
|
+
isRetryableResponse,
|
|
13
|
+
retry,
|
|
14
|
+
retryIntervalFromResponse
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=retries.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { PageIterator } from '../types/index.mjs';
|
|
2
|
+
import { SDKOptions } from './config.mjs';
|
|
3
|
+
import { HTTPClient } from './http.mjs';
|
|
4
|
+
import { RetryConfig } from './retries.mjs';
|
|
5
|
+
|
|
6
|
+
/** Per-call options, the last argument of every method (Speakeasy's `RequestOptions`). */
|
|
7
|
+
type RequestOptions = {
|
|
8
|
+
/** Per-attempt timeout in ms for this call; overrides the client's `timeoutMs`. */
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
/** Retry strategy for this call; overrides the client's `retryConfig`. */
|
|
11
|
+
retries?: RetryConfig;
|
|
12
|
+
/** Status codes to retry for this call, e.g. `['429', '5XX']`. */
|
|
13
|
+
retryCodes?: string[];
|
|
14
|
+
/** Server URL for this call; overrides `server` / `serverURL`. */
|
|
15
|
+
serverURL?: string | URL;
|
|
16
|
+
/** @deprecated Pass `fetch` options (`headers`, `signal`, …) directly on the options object. */
|
|
17
|
+
fetchOptions?: Omit<RequestInit, 'method' | 'body'>;
|
|
18
|
+
} & Omit<RequestInit, 'method' | 'body'>;
|
|
19
|
+
type ParamLocation = 'path' | 'query' | 'header';
|
|
20
|
+
/** Static description of one operation, generated from the spec. @internal */
|
|
21
|
+
interface OperationDef {
|
|
22
|
+
/** `operationId`. */
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly method: string;
|
|
25
|
+
readonly path: string;
|
|
26
|
+
/** The Hey API function for the operation. */
|
|
27
|
+
readonly fn: (options: never) => Promise<unknown>;
|
|
28
|
+
/** Whether the operation is authenticated (`security` lists `bearer`, or is inherited). */
|
|
29
|
+
readonly auth: boolean;
|
|
30
|
+
/** `[request field, wire name, location, required]` per parameter. */
|
|
31
|
+
readonly params: ReadonlyArray<readonly [string, string, ParamLocation, boolean]>;
|
|
32
|
+
/**
|
|
33
|
+
* Where the request body lives: the name of the request field holding it, `''` when the
|
|
34
|
+
* request object is the body itself, absent when the operation takes no body.
|
|
35
|
+
*/
|
|
36
|
+
readonly body?: string;
|
|
37
|
+
/** Documented error status codes (`'404'`, `'4XX'`) whose body is the error envelope. */
|
|
38
|
+
readonly errorCodes: ReadonlyArray<string>;
|
|
39
|
+
/** Documented status codes without a body (`204`, `304`): the call resolves to `undefined`. */
|
|
40
|
+
readonly emptyCodes: ReadonlyArray<number>;
|
|
41
|
+
/** Cursor pagination (`x-speakeasy-pagination`): request field and response field. */
|
|
42
|
+
readonly pagination?: {
|
|
43
|
+
readonly input: string;
|
|
44
|
+
readonly output: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
declare class ClientSDK {
|
|
48
|
+
/** @internal */
|
|
49
|
+
readonly _options: SDKOptions & {
|
|
50
|
+
httpClient: HTTPClient;
|
|
51
|
+
};
|
|
52
|
+
constructor(options?: SDKOptions);
|
|
53
|
+
/** @internal */
|
|
54
|
+
protected _call<T>(op: OperationDef, request: unknown, options?: RequestOptions): Promise<T>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
protected _paginate<V>(op: OperationDef, request: unknown, options?: RequestOptions): Promise<PageIterator<V, {
|
|
57
|
+
cursor: string;
|
|
58
|
+
}>>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ClientSDK, type OperationDef, type RequestOptions };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { PageIterator } from '../types/index.js';
|
|
2
|
+
import { SDKOptions } from './config.js';
|
|
3
|
+
import { HTTPClient } from './http.js';
|
|
4
|
+
import { RetryConfig } from './retries.js';
|
|
5
|
+
|
|
6
|
+
/** Per-call options, the last argument of every method (Speakeasy's `RequestOptions`). */
|
|
7
|
+
type RequestOptions = {
|
|
8
|
+
/** Per-attempt timeout in ms for this call; overrides the client's `timeoutMs`. */
|
|
9
|
+
timeoutMs?: number;
|
|
10
|
+
/** Retry strategy for this call; overrides the client's `retryConfig`. */
|
|
11
|
+
retries?: RetryConfig;
|
|
12
|
+
/** Status codes to retry for this call, e.g. `['429', '5XX']`. */
|
|
13
|
+
retryCodes?: string[];
|
|
14
|
+
/** Server URL for this call; overrides `server` / `serverURL`. */
|
|
15
|
+
serverURL?: string | URL;
|
|
16
|
+
/** @deprecated Pass `fetch` options (`headers`, `signal`, …) directly on the options object. */
|
|
17
|
+
fetchOptions?: Omit<RequestInit, 'method' | 'body'>;
|
|
18
|
+
} & Omit<RequestInit, 'method' | 'body'>;
|
|
19
|
+
type ParamLocation = 'path' | 'query' | 'header';
|
|
20
|
+
/** Static description of one operation, generated from the spec. @internal */
|
|
21
|
+
interface OperationDef {
|
|
22
|
+
/** `operationId`. */
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly method: string;
|
|
25
|
+
readonly path: string;
|
|
26
|
+
/** The Hey API function for the operation. */
|
|
27
|
+
readonly fn: (options: never) => Promise<unknown>;
|
|
28
|
+
/** Whether the operation is authenticated (`security` lists `bearer`, or is inherited). */
|
|
29
|
+
readonly auth: boolean;
|
|
30
|
+
/** `[request field, wire name, location, required]` per parameter. */
|
|
31
|
+
readonly params: ReadonlyArray<readonly [string, string, ParamLocation, boolean]>;
|
|
32
|
+
/**
|
|
33
|
+
* Where the request body lives: the name of the request field holding it, `''` when the
|
|
34
|
+
* request object is the body itself, absent when the operation takes no body.
|
|
35
|
+
*/
|
|
36
|
+
readonly body?: string;
|
|
37
|
+
/** Documented error status codes (`'404'`, `'4XX'`) whose body is the error envelope. */
|
|
38
|
+
readonly errorCodes: ReadonlyArray<string>;
|
|
39
|
+
/** Documented status codes without a body (`204`, `304`): the call resolves to `undefined`. */
|
|
40
|
+
readonly emptyCodes: ReadonlyArray<number>;
|
|
41
|
+
/** Cursor pagination (`x-speakeasy-pagination`): request field and response field. */
|
|
42
|
+
readonly pagination?: {
|
|
43
|
+
readonly input: string;
|
|
44
|
+
readonly output: string;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
declare class ClientSDK {
|
|
48
|
+
/** @internal */
|
|
49
|
+
readonly _options: SDKOptions & {
|
|
50
|
+
httpClient: HTTPClient;
|
|
51
|
+
};
|
|
52
|
+
constructor(options?: SDKOptions);
|
|
53
|
+
/** @internal */
|
|
54
|
+
protected _call<T>(op: OperationDef, request: unknown, options?: RequestOptions): Promise<T>;
|
|
55
|
+
/** @internal */
|
|
56
|
+
protected _paginate<V>(op: OperationDef, request: unknown, options?: RequestOptions): Promise<PageIterator<V, {
|
|
57
|
+
cursor: string;
|
|
58
|
+
}>>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { ClientSDK, type OperationDef, type RequestOptions };
|
package/dist/lib/sdks.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
var _chunkM52GW7GQjs = require('../chunk-M52GW7GQ.js');
|
|
4
|
+
require('../chunk-SUONZUVK.js');
|
|
5
|
+
require('../chunk-YHQ7XIC6.js');
|
|
6
|
+
require('../chunk-NSR4UQLV.js');
|
|
7
|
+
require('../chunk-T26CPULH.js');
|
|
8
|
+
require('../chunk-V2XJ4GZU.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.ClientSDK = _chunkM52GW7GQjs.ClientSDK;
|
|
12
|
+
//# sourceMappingURL=sdks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/onflay/onflay/sdks/node/dist/lib/sdks.js"],"names":[],"mappings":"AAAA;AACE;AACF,uDAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B,gCAA6B;AAC7B;AACE;AACF,+CAAC","file":"/home/runner/work/onflay/onflay/sdks/node/dist/lib/sdks.js"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClientSDK
|
|
3
|
+
} from "../chunk-JXP6V2P2.mjs";
|
|
4
|
+
import "../chunk-EOHFYWFQ.mjs";
|
|
5
|
+
import "../chunk-A3TRCKHK.mjs";
|
|
6
|
+
import "../chunk-YSXUZYUY.mjs";
|
|
7
|
+
import "../chunk-4RUPPDC2.mjs";
|
|
8
|
+
import "../chunk-DBE2YZWE.mjs";
|
|
9
|
+
export {
|
|
10
|
+
ClientSDK
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=sdks.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { A as ActivateLicenseKey, a5 as AdjustCredits, bx as ApiError, H as ApiErrorDetail, K as ApiFieldError, by as AppointmentSlotCheckout, bz as BillingLineItem, ba as CancelByExternalCustomer, bh as CancelSubscription, bA as CatalogCheckoutInterval, bB as CatalogCheckoutSelection, bC as CatalogCreditGrant, bD as CatalogCreditGrantInput, bE as CatalogEntitlementInput, bF as CatalogEnvironment, bG as CatalogLicenseKeyConfig, bH as CatalogLicenseKeyInput, bI as CatalogManagedBy, bJ as CatalogPlan, bK as CatalogPrice, bL as CatalogPriceInput, bM as CatalogPriceType, C as CatalogProduct, $ as CatalogProductList, bN as CatalogProductManagedBy, bO as CatalogProductSummary, bP as CatalogProductSummaryPlan, bQ as CatalogProductType, bR as CatalogSelection, bS as CheckoutAttribution, bT as CheckoutCatalogInterval, c as CheckoutReceipt, bU as CheckoutReceiptCatalog, bV as CheckoutReceiptStatus, b as CheckoutSession, bW as CheckoutSessionCatalog, a as CheckoutSessionCreateResponse, bX as CheckoutSessionMode, bY as CheckoutSessionPricing, bZ as CheckoutSessionStatus, b_ as CheckoutUiMode, a7 as ConsumeCredits, aB as CreateBillingInvoice, bl as CreateBillingPlan, a1 as CreateCheckout, ah as CreateCustomer, ad as CreateCustomerPortalSession, ar as CreateDiscount, aI as CreateMeter, aS as CreatePayment, aX as CreatePrice, b2 as CreateProduct, aN as CreateRefund, an as CreateSetupIntentParams, bs as CreateWebhookEndpoint, b$ as CreditBalance, e as CreditBalances, c0 as CreditLedgerEntry, aa as CreditLedgerEntryList, c1 as CreditLedgerReason, d as CreditOperation, c2 as CustomPrice, h as Customer, f as CustomerAccess, c3 as CustomerAccessActivePlan, c4 as CustomerAccessBooking, c5 as CustomerAccessBookingStatus, c6 as CustomerAccessCredit, c7 as CustomerAccessEntitlement, c8 as CustomerAccessEntitlementSource, c9 as CustomerAccessKeyRef, ca as CustomerAccessLicenseKey, cb as CustomerAccessOwnedProduct, cc as CustomerAccessPlanRef, cd as CustomerAccessPlanStatus, ce as CustomerAccessProductRef, cf as CustomerAccessTicket, cg as CustomerAccessTicketStatus, af as CustomerList, g as CustomerPortalSession, ch as CustomerRef, m as DeactivateLicenseKey, D as Discount, ci as DiscountDuration, ap as DiscountList, cj as DiscountType, ck as DiscountTypeFilter, cl as DiscountValueType, cm as EventSeatAttendee, I as IntegrationGuide, cn as IntegrationGuideTarget, j as IntegrationVerification, ax as IntegrationVerificationList, co as IntegrationVerificationResult, k as Invoice, cp as InvoiceLineItem, az as InvoiceList, cq as InvoiceSource, cr as InvoiceStatus, J as Jwks, cs as JwksKey, n as LicenseKey, ct as LicenseKeyActivation, cu as LicenseKeyActivationCount, cv as LicenseKeyCustomerRef, cw as LicenseKeyInstanceState, cx as LicenseKeyKeyRef, aE as LicenseKeyList, cy as LicenseKeyNamedRef, cz as LicenseKeyState, l as LicenseKeyStatus, cA as ListingBusinessModel, L as ListingRecipe, cB as ListingRecipeEndpoints, cC as ListingRecipeEntitlement, cD as ListingRecipeEnvironment, cE as ListingRecipePlan, cF as ListingRecipePlanDefaultPrice, cG as ListingRecipePlanPrice, o as Meter, cH as MeterAggregation, q as Payment, cI as PaymentCatalogSelection, P as PaymentConfirmation, cJ as PaymentConfirmationCard, aQ as PaymentList, cK as PaymentMethod, cL as PaymentNextAction, cM as PaymentPeriodFilter, cN as PaymentStatus, cO as PaymentStatusFilter, cP as PlanRef, bj as PreviewSubscriptionUpdate, r as Price, cQ as PriceBillingScheme, aV as PriceList, cR as PriceRecurring, cS as PriceRecurringInput, cT as PriceRecurringInterval, s as Product, b0 as ProductList, cU as ProductRef, cV as ProductTypeFilter, cW as ProrationBehavior, R as RecordIntegrationVerification, p as Refund, aL as RefundList, cX as RefundReason, cY as RefundStatus, z as ReportUsage, t as SandboxPayoutMethodResult, S as SetupIntent, u as SetupSession, w as Subscription, v as SubscriptionCancellation, cZ as SubscriptionChangeEffective, b8 as SubscriptionList, c_ as SubscriptionPendingChange, c$ as SubscriptionPlanInterval, d0 as SubscriptionPrice, d1 as SubscriptionStatus, d2 as SubscriptionStatusFilter, y as SubscriptionUpdatePreview, d3 as SubscriptionUpdatePreviewLine, d4 as SubscriptionUpdatePreviewNextInvoice, d5 as SubscriptionUpdatePreviewPlan, d6 as TaxPriceBehavior, bc as UncancelByExternalCustomer, ak as UpdateCustomer, au as UpdateDiscount, a_ as UpdatePrice, b5 as UpdateProduct, bf as UpdateSubscription, d7 as UpdateSubscriptionCatalog, bw as UpdateWebhookEndpoint, Z as UpsertCatalogPlan, X as UpsertCatalogProduct, d8 as UpsertableCatalogProductType, d9 as UsageBillingInterval, U as UsageBillingPlan, B as UsageRecord, V as ValidateLicenseKey, W as WebhookDelivery, bo as WebhookDeliveryList, da as WebhookDeliveryStatus, db as WebhookDeliveryStatusFilter, G as WebhookEndpoint, E as WebhookEndpointList, F as WebhookEndpointWithSecret } from '../../index-C1KFW_9r.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { A as ActivateLicenseKey, a5 as AdjustCredits, bx as ApiError, H as ApiErrorDetail, K as ApiFieldError, by as AppointmentSlotCheckout, bz as BillingLineItem, ba as CancelByExternalCustomer, bh as CancelSubscription, bA as CatalogCheckoutInterval, bB as CatalogCheckoutSelection, bC as CatalogCreditGrant, bD as CatalogCreditGrantInput, bE as CatalogEntitlementInput, bF as CatalogEnvironment, bG as CatalogLicenseKeyConfig, bH as CatalogLicenseKeyInput, bI as CatalogManagedBy, bJ as CatalogPlan, bK as CatalogPrice, bL as CatalogPriceInput, bM as CatalogPriceType, C as CatalogProduct, $ as CatalogProductList, bN as CatalogProductManagedBy, bO as CatalogProductSummary, bP as CatalogProductSummaryPlan, bQ as CatalogProductType, bR as CatalogSelection, bS as CheckoutAttribution, bT as CheckoutCatalogInterval, c as CheckoutReceipt, bU as CheckoutReceiptCatalog, bV as CheckoutReceiptStatus, b as CheckoutSession, bW as CheckoutSessionCatalog, a as CheckoutSessionCreateResponse, bX as CheckoutSessionMode, bY as CheckoutSessionPricing, bZ as CheckoutSessionStatus, b_ as CheckoutUiMode, a7 as ConsumeCredits, aB as CreateBillingInvoice, bl as CreateBillingPlan, a1 as CreateCheckout, ah as CreateCustomer, ad as CreateCustomerPortalSession, ar as CreateDiscount, aI as CreateMeter, aS as CreatePayment, aX as CreatePrice, b2 as CreateProduct, aN as CreateRefund, an as CreateSetupIntentParams, bs as CreateWebhookEndpoint, b$ as CreditBalance, e as CreditBalances, c0 as CreditLedgerEntry, aa as CreditLedgerEntryList, c1 as CreditLedgerReason, d as CreditOperation, c2 as CustomPrice, h as Customer, f as CustomerAccess, c3 as CustomerAccessActivePlan, c4 as CustomerAccessBooking, c5 as CustomerAccessBookingStatus, c6 as CustomerAccessCredit, c7 as CustomerAccessEntitlement, c8 as CustomerAccessEntitlementSource, c9 as CustomerAccessKeyRef, ca as CustomerAccessLicenseKey, cb as CustomerAccessOwnedProduct, cc as CustomerAccessPlanRef, cd as CustomerAccessPlanStatus, ce as CustomerAccessProductRef, cf as CustomerAccessTicket, cg as CustomerAccessTicketStatus, af as CustomerList, g as CustomerPortalSession, ch as CustomerRef, m as DeactivateLicenseKey, D as Discount, ci as DiscountDuration, ap as DiscountList, cj as DiscountType, ck as DiscountTypeFilter, cl as DiscountValueType, cm as EventSeatAttendee, I as IntegrationGuide, cn as IntegrationGuideTarget, j as IntegrationVerification, ax as IntegrationVerificationList, co as IntegrationVerificationResult, k as Invoice, cp as InvoiceLineItem, az as InvoiceList, cq as InvoiceSource, cr as InvoiceStatus, J as Jwks, cs as JwksKey, n as LicenseKey, ct as LicenseKeyActivation, cu as LicenseKeyActivationCount, cv as LicenseKeyCustomerRef, cw as LicenseKeyInstanceState, cx as LicenseKeyKeyRef, aE as LicenseKeyList, cy as LicenseKeyNamedRef, cz as LicenseKeyState, l as LicenseKeyStatus, cA as ListingBusinessModel, L as ListingRecipe, cB as ListingRecipeEndpoints, cC as ListingRecipeEntitlement, cD as ListingRecipeEnvironment, cE as ListingRecipePlan, cF as ListingRecipePlanDefaultPrice, cG as ListingRecipePlanPrice, o as Meter, cH as MeterAggregation, q as Payment, cI as PaymentCatalogSelection, P as PaymentConfirmation, cJ as PaymentConfirmationCard, aQ as PaymentList, cK as PaymentMethod, cL as PaymentNextAction, cM as PaymentPeriodFilter, cN as PaymentStatus, cO as PaymentStatusFilter, cP as PlanRef, bj as PreviewSubscriptionUpdate, r as Price, cQ as PriceBillingScheme, aV as PriceList, cR as PriceRecurring, cS as PriceRecurringInput, cT as PriceRecurringInterval, s as Product, b0 as ProductList, cU as ProductRef, cV as ProductTypeFilter, cW as ProrationBehavior, R as RecordIntegrationVerification, p as Refund, aL as RefundList, cX as RefundReason, cY as RefundStatus, z as ReportUsage, t as SandboxPayoutMethodResult, S as SetupIntent, u as SetupSession, w as Subscription, v as SubscriptionCancellation, cZ as SubscriptionChangeEffective, b8 as SubscriptionList, c_ as SubscriptionPendingChange, c$ as SubscriptionPlanInterval, d0 as SubscriptionPrice, d1 as SubscriptionStatus, d2 as SubscriptionStatusFilter, y as SubscriptionUpdatePreview, d3 as SubscriptionUpdatePreviewLine, d4 as SubscriptionUpdatePreviewNextInvoice, d5 as SubscriptionUpdatePreviewPlan, d6 as TaxPriceBehavior, bc as UncancelByExternalCustomer, ak as UpdateCustomer, au as UpdateDiscount, a_ as UpdatePrice, b5 as UpdateProduct, bf as UpdateSubscription, d7 as UpdateSubscriptionCatalog, bw as UpdateWebhookEndpoint, Z as UpsertCatalogPlan, X as UpsertCatalogProduct, d8 as UpsertableCatalogProductType, d9 as UsageBillingInterval, U as UsageBillingPlan, B as UsageRecord, V as ValidateLicenseKey, W as WebhookDelivery, bo as WebhookDeliveryList, da as WebhookDeliveryStatus, db as WebhookDeliveryStatusFilter, G as WebhookEndpoint, E as WebhookEndpointList, F as WebhookEndpointWithSecret } from '../../index-C1KFW_9r.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/onflay/onflay/sdks/node/dist/models/components/index.js"],"names":[],"mappings":"AAAA","file":"/home/runner/work/onflay/onflay/sdks/node/dist/models/components/index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|