@settlemint/dalp-sdk 3.1.16 → 3.1.17-main.33780149460
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/README.md +154 -169
- package/dist/auth/client.d.ts +113 -0
- package/dist/auth/live.d.ts +4366 -0
- package/dist/{auth-permissions.d.ts → auth/permissions.d.ts} +1 -2
- package/dist/{auth-wallet-plugins.d.ts → auth/wallet-plugins.d.ts} +69 -5
- package/dist/auth.d.ts +22 -115
- package/dist/auth.js +329 -0
- package/dist/bundler.d.ts +14 -207
- package/dist/bundler.js +99 -0
- package/dist/chunk-18qmk0m7.js +4 -0
- package/dist/chunk-apr74tb9.js +260 -0
- package/dist/chunk-def7rqy6.js +946 -0
- package/dist/chunk-f4t1bm86.js +67 -0
- package/dist/chunk-fjnq61hj.js +11 -0
- package/dist/chunk-h12fatty.js +63 -0
- package/dist/chunk-r0vsftj4.js +102 -0
- package/dist/chunk-x0z79vz6.js +33 -0
- package/dist/chunk-y0d2c7kp.js +54 -0
- package/dist/client/conditional-request.d.ts +30 -0
- package/dist/client/factory.d.ts +14 -0
- package/dist/client/query-serializer.d.ts +2 -0
- package/dist/client/request-compression.d.ts +47 -0
- package/dist/client/ssr-fetch.d.ts +12 -0
- package/dist/effect.d.ts +69 -0
- package/dist/effect.js +82 -0
- package/dist/errors/api-error.d.ts +29 -0
- package/dist/errors/find-current-error.d.ts +8 -0
- package/dist/errors/sdk-error.d.ts +52 -0
- package/dist/errors/sdk-error.js +8 -0
- package/dist/generated/api-types.d.ts +41271 -0
- package/dist/generated/response-scalars.d.ts +9 -0
- package/dist/generated/routes.d.ts +12 -0
- package/dist/index.d.ts +28 -40
- package/dist/index.js +131 -96109
- package/dist/proxy/builder.d.ts +47 -0
- package/dist/proxy/client.d.ts +32 -0
- package/dist/proxy/fetch-executor.d.ts +28 -0
- package/dist/proxy/flat-args.d.ts +51 -0
- package/dist/proxy/settlement.d.ts +67 -0
- package/dist/proxy/sse.d.ts +54 -0
- package/dist/proxy/tanstack.d.ts +27 -0
- package/dist/proxy/transport.d.ts +73 -0
- package/dist/react-query.d.ts +16 -0
- package/dist/react-query.js +13 -0
- package/dist/readonly-deep.d.ts +12 -0
- package/dist/reads-as-funding-paused.d.ts +20 -0
- package/dist/routes/index.d.ts +20 -0
- package/dist/routes/index.js +10 -0
- package/dist/routes/types.d.ts +51 -0
- package/dist/runtime-exports.d.ts +20 -0
- package/dist/runtime-exports.js +16 -0
- package/dist/scalars/big-decimal.d.ts +16 -0
- package/dist/scalars/ethereum-address.d.ts +20 -0
- package/dist/scalars/exchange-rates.d.ts +27 -0
- package/dist/scalars/index.d.ts +18 -0
- package/dist/scalars/index.js +86 -0
- package/dist/scalars/organization-id.d.ts +20 -0
- package/dist/secret.d.ts +14 -0
- package/dist/sign-webhook-receipt.d.ts +76 -0
- package/dist/sign-webhook-receipt.js +26 -0
- package/dist/transport/cookie-store.d.ts +9 -0
- package/dist/transport/sse-lifecycle.d.ts +44 -0
- package/dist/types.d.ts +65 -102
- package/dist/url.d.ts +0 -1
- package/dist/verify-webhook.d.ts +17 -28
- package/dist/verify-webhook.js +8 -0
- package/dist/version.d.ts +0 -1
- package/dist/wait-for-transaction.d.ts +54 -81
- package/dist/wait-for-transaction.js +120 -0
- package/dist/webhook-events.d.ts +44 -27
- package/package.json +103 -30
- package/dist/auth-permissions.d.ts.map +0 -1
- package/dist/auth-wallet-plugins.d.ts.map +0 -1
- package/dist/auth.d.ts.map +0 -1
- package/dist/bundler.d.ts.map +0 -1
- package/dist/chunk-xm8h1dzh.js +0 -33
- package/dist/client.d.ts +0 -19
- package/dist/client.d.ts.map +0 -1
- package/dist/contract-errors.d.ts +0 -4156
- package/dist/contract-errors.d.ts.map +0 -1
- package/dist/contract.d.ts +0 -17
- package/dist/contract.d.ts.map +0 -1
- package/dist/cookie-store.d.ts +0 -10
- package/dist/cookie-store.d.ts.map +0 -1
- package/dist/dapi-errors.d.ts +0 -650
- package/dist/dapi-errors.d.ts.map +0 -1
- package/dist/errors.d.ts +0 -633
- package/dist/errors.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/platform.d.ts +0 -41
- package/dist/platform.d.ts.map +0 -1
- package/dist/plugins/index.d.ts +0 -13
- package/dist/plugins/index.d.ts.map +0 -1
- package/dist/plugins/index.js +0 -10
- package/dist/sdk-error.d.ts +0 -74
- package/dist/sdk-error.d.ts.map +0 -1
- package/dist/serializers.d.ts +0 -41
- package/dist/serializers.d.ts.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/url.d.ts.map +0 -1
- package/dist/verify-webhook.d.ts.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/wait-for-transaction.d.ts.map +0 -1
- package/dist/webhook-events.d.ts.map +0 -1
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface DalpSdkErrorOptions {
|
|
2
|
+
readonly code?: string;
|
|
3
|
+
readonly category: string;
|
|
4
|
+
readonly status?: number;
|
|
5
|
+
readonly retryable: boolean;
|
|
6
|
+
readonly message: string;
|
|
7
|
+
readonly why: string;
|
|
8
|
+
readonly fix: string;
|
|
9
|
+
readonly details?: DalpSdkErrorDetails;
|
|
10
|
+
readonly retryAfterSeconds?: number;
|
|
11
|
+
readonly cause?: unknown;
|
|
12
|
+
}
|
|
13
|
+
/** JSON-compatible value attached to a serialized SDK error. */
|
|
14
|
+
export type DalpSdkJsonValue = null | boolean | number | string | ReadonlyArray<DalpSdkJsonValue> | DalpSdkJsonObject;
|
|
15
|
+
/** JSON object attached to a serialized SDK error. */
|
|
16
|
+
export interface DalpSdkJsonObject {
|
|
17
|
+
readonly [key: string]: DalpSdkJsonValue;
|
|
18
|
+
}
|
|
19
|
+
export type DalpSdkErrorDetails = DalpSdkJsonObject;
|
|
20
|
+
export interface DalpSdkConfigurationErrorInput {
|
|
21
|
+
readonly message: string;
|
|
22
|
+
readonly why: string;
|
|
23
|
+
readonly fix: string;
|
|
24
|
+
readonly cause?: unknown;
|
|
25
|
+
}
|
|
26
|
+
export interface DalpSdkErrorJson {
|
|
27
|
+
readonly name: "DalpSdkError";
|
|
28
|
+
readonly code: string;
|
|
29
|
+
readonly category: string;
|
|
30
|
+
readonly status?: number;
|
|
31
|
+
readonly retryable: boolean;
|
|
32
|
+
readonly message: string;
|
|
33
|
+
readonly why: string;
|
|
34
|
+
readonly fix: string;
|
|
35
|
+
readonly details?: DalpSdkErrorDetails;
|
|
36
|
+
readonly retryAfterSeconds?: number;
|
|
37
|
+
}
|
|
38
|
+
/** SDK-owned configuration or auxiliary-adapter failure. API calls expose route errors directly. */
|
|
39
|
+
export declare class DalpSdkError extends Error {
|
|
40
|
+
readonly code: string;
|
|
41
|
+
readonly category: string;
|
|
42
|
+
readonly status?: number;
|
|
43
|
+
readonly retryable: boolean;
|
|
44
|
+
readonly why: string;
|
|
45
|
+
readonly fix: string;
|
|
46
|
+
readonly details?: DalpSdkErrorDetails;
|
|
47
|
+
readonly retryAfterSeconds?: number;
|
|
48
|
+
constructor(options: Readonly<DalpSdkErrorOptions>);
|
|
49
|
+
toJSON(): DalpSdkErrorJson;
|
|
50
|
+
}
|
|
51
|
+
/** Build the one SDK-owned error used for invalid client construction. */
|
|
52
|
+
export declare function createDalpSdkConfigurationError(input: Readonly<DalpSdkConfigurationErrorInput>): DalpSdkError;
|