@settlemint/dalp-sdk 3.1.25 → 3.1.26-main.37116470199
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 +239 -172
- package/dist/auth/client.d.ts +103 -0
- package/dist/auth/invite-step-up.d.ts +2 -0
- package/dist/auth/live.d.ts +47 -0
- package/dist/auth/native-passkey.d.ts +9 -0
- package/dist/{auth-permissions.d.ts → auth/permissions.d.ts} +0 -8
- package/dist/{auth-wallet-plugins.d.ts → auth/wallet-plugins.d.ts} +68 -6
- package/dist/auth-surface.d.ts +2 -0
- package/dist/auth.d.ts +8 -115
- package/dist/auth.js +525 -0
- package/dist/chunk-4f4kjtt0.js +149 -0
- package/dist/chunk-b03ycwb7.js +68 -0
- package/dist/chunk-ghgcmyhk.js +5 -0
- package/dist/chunk-h241xecg.js +1625 -0
- package/dist/chunk-hqz56e6q.js +4 -0
- package/dist/chunk-k3ntysxx.js +57 -0
- package/dist/chunk-pjjrxre1.js +36 -0
- package/dist/chunk-qvtjb3dz.js +102 -0
- package/dist/chunk-v54k7mgr.js +271 -0
- package/dist/chunk-w361dpdk.js +5 -0
- package/dist/client/conditional-request.d.ts +8 -0
- package/dist/client/factory.d.ts +4 -0
- package/dist/client/query-serializer.d.ts +1 -0
- package/dist/client/request-compression.d.ts +12 -0
- package/dist/client/ssr-fetch.d.ts +10 -0
- package/dist/client/step-up-challenge.d.ts +10 -0
- package/dist/effect.d.ts +38 -0
- package/dist/effect.js +87 -0
- package/dist/errors/api-error.d.ts +35 -0
- package/dist/errors/error-codes.d.ts +21 -0
- package/dist/errors/find-current-error.d.ts +2 -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 +69961 -0
- package/dist/generated/console-routes.d.ts +12 -0
- package/dist/generated/error-catalog.d.ts +9 -0
- package/dist/generated/error-codes.d.ts +9 -0
- package/dist/generated/response-scalars.d.ts +9 -0
- package/dist/generated/response-schemas.d.ts +9 -0
- package/dist/generated/route-error-codes.d.ts +9 -0
- package/dist/generated/routes.d.ts +12 -0
- package/dist/index.d.ts +28 -45
- package/dist/index.js +150 -96216
- package/dist/proxy/builder.d.ts +17 -0
- package/dist/proxy/client-core.d.ts +28 -0
- package/dist/proxy/client.d.ts +5 -0
- package/dist/proxy/fetch-executor.d.ts +6 -0
- package/dist/proxy/flat-args.d.ts +24 -0
- package/dist/proxy/response-decode.d.ts +37 -0
- package/dist/proxy/sse.d.ts +11 -0
- package/dist/proxy/step-up-challenge.d.ts +4 -0
- package/dist/proxy/tanstack.d.ts +6 -0
- package/dist/proxy/transport.d.ts +63 -0
- package/dist/react-query.d.ts +2 -0
- package/dist/react-query.js +12 -0
- package/dist/readonly-deep.d.ts +3 -0
- package/dist/routes/console.d.ts +14 -0
- package/dist/routes/console.js +25 -0
- package/dist/routes/index.d.ts +4 -0
- package/dist/routes/index.js +10 -0
- package/dist/routes/types.d.ts +72 -0
- package/dist/runtime-exports.d.ts +4 -0
- package/dist/runtime-exports.js +16 -0
- package/dist/runtime.d.ts +11 -0
- package/dist/scalars/big-decimal.d.ts +4 -0
- package/dist/scalars/ethereum-address.d.ts +5 -0
- package/dist/scalars/exchange-rates.d.ts +13 -0
- package/dist/scalars/index.d.ts +10 -0
- package/dist/scalars/index.js +102 -0
- package/dist/scalars/organization-id.d.ts +5 -0
- package/dist/scalars/token-decimals.d.ts +4 -0
- package/dist/secret.d.ts +12 -0
- package/dist/sign-webhook-receipt.d.ts +16 -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 +24 -0
- package/dist/types.d.ts +37 -114
- 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 -3
- package/dist/wait-for-transaction.d.ts +44 -86
- package/dist/wait-for-transaction.js +151 -0
- package/dist/webhook-events.d.ts +543 -33
- package/package.json +110 -34
- package/dist/api-types.generated.d.ts +0 -14160
- package/dist/api-types.generated.d.ts.map +0 -1
- 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 +0 -217
- 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 -22
- 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 -654
- package/dist/dapi-errors.d.ts.map +0 -1
- package/dist/errors.d.ts +0 -637
- 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/version.generated.d.ts +0 -8
- package/dist/version.generated.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,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every v2 route the Console may call: the published routes plus the `console` audience.
|
|
3
|
+
*
|
|
4
|
+
* Generated from the DALP v2 declaration. Do not edit.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { RouteTable, RouteRow } from "../routes/types.ts";
|
|
9
|
+
import type { DalpConsoleRouteId } from "./api-types.d.ts";
|
|
10
|
+
export declare const data: Omit<RouteTable, "routes"> & {
|
|
11
|
+
readonly routes: Readonly<Record<DalpConsoleRouteId, RouteRow>>;
|
|
12
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The generated DALP error identity catalog, keyed by public error code.
|
|
3
|
+
*
|
|
4
|
+
* Generated from the DALP v2 declaration. Do not edit.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { ErrorCatalogTable } from "../routes/types.ts";
|
|
9
|
+
export declare const data: ErrorCatalogTable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response-side scalar paths, loaded only by a consumer that decodes them.
|
|
3
|
+
*
|
|
4
|
+
* Generated from the DALP v2 declaration. Do not edit.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { ResponseScalarTable } from "../routes/types.ts";
|
|
9
|
+
export declare const data: ResponseScalarTable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every v2 route's success body and stream frame schemas, keyed by route id and status. Loaded on the first response the SDK decodes.
|
|
3
|
+
*
|
|
4
|
+
* Generated from the DALP v2 declaration. Do not edit.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { ResponseSchemaTable } from "../routes/types.ts";
|
|
9
|
+
export declare const data: ResponseSchemaTable;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Each v2 route's public error codes, as positions in the error code table. Loaded on the first error response the SDK reads.
|
|
3
|
+
*
|
|
4
|
+
* Generated from the DALP v2 declaration. Do not edit.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { RouteErrorCodeTable } from "../routes/types.ts";
|
|
9
|
+
export declare const data: RouteErrorCodeTable;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every published v2 route's identity, shape, traits and request-side scalars.
|
|
3
|
+
*
|
|
4
|
+
* Generated from the DALP v2 declaration. Do not edit.
|
|
5
|
+
*
|
|
6
|
+
* @module
|
|
7
|
+
*/
|
|
8
|
+
import type { RouteTable, RouteRow } from "../routes/types.ts";
|
|
9
|
+
import type { DalpRouteId } from "./api-types.d.ts";
|
|
10
|
+
export declare const data: Omit<RouteTable, "routes"> & {
|
|
11
|
+
readonly routes: Readonly<Record<DalpRouteId, RouteRow>>;
|
|
12
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,45 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
23
|
-
export {
|
|
24
|
-
export type {
|
|
25
|
-
export {
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export {
|
|
29
|
-
export type { DalpClient, DalpClientConfig } from "./types.js";
|
|
30
|
-
export { CUSTOM_ERROR_CODES } from "./errors.js";
|
|
31
|
-
export type { ErrorCode } from "./errors.js";
|
|
32
|
-
export { DALP_CONTRACT_ERROR_CODES } from "./contract-errors.js";
|
|
33
|
-
export type { DalpContractErrorCode } from "./contract-errors.js";
|
|
34
|
-
export { DAPI_ERROR_IDS } from "./dapi-errors.js";
|
|
35
|
-
export type { DapiErrorId, DapiPublicError } from "./dapi-errors.js";
|
|
36
|
-
export { WEBHOOK_MANIFEST_VERSION } from "./webhook-events.js";
|
|
37
|
-
export type { Webhook } from "./webhook-events.js";
|
|
38
|
-
export { toStandardWebhookSecret, verifyWebhook } from "./verify-webhook.js";
|
|
39
|
-
export type { WebhookVerificationFailure, WebhookVerificationResult, VerifyWebhookInput } from "./verify-webhook.js";
|
|
40
|
-
export { createDalpSdkConfigurationError, createDalpSdkErrorFromDapiPublicError, DalpSdkError, decodeDapiErrorResponseBody, getDapiPublicErrorFromResponseBody, isDapiPublicError, } from "./sdk-error.js";
|
|
41
|
-
export { bigDecimalSerializer, bigIntSerializer, dalpSerializers, timestampSerializer } from "./serializers.js";
|
|
42
|
-
export { DalpTransactionWaitError, waitForTransaction } from "./wait-for-transaction.js";
|
|
43
|
-
export type { WaitForTransactionOptions, WaitForTransactionStatus } from "./wait-for-transaction.js";
|
|
44
|
-
export { SDK_USER_AGENT, SDK_VERSION } from "./version.js";
|
|
45
|
-
//# sourceMappingURL=index.d.ts.map
|
|
1
|
+
export { createDalpClient, createDalpContextHeaders } from "./client/factory.ts";
|
|
2
|
+
export type { DalpClient } from "./client/factory.ts";
|
|
3
|
+
export type { DalpExecuteResult, DalpRequestParts, DalpRequestRouteKey, DalpRouteTypeEntry, DalpStreamRouteKey, } from "./proxy/client.ts";
|
|
4
|
+
export type { CompressionRequestInit } from "./client/request-compression.ts";
|
|
5
|
+
export type { CreateDalpClientOptions, DalpClientContext, DalpSsrOptions } from "./client/factory.ts";
|
|
6
|
+
export type { ConditionalRequestStore } from "./client/conditional-request.ts";
|
|
7
|
+
export type { DalpRuntime } from "./runtime.ts";
|
|
8
|
+
export { createCookieStoreFetch, makeCookieStore } from "./transport/cookie-store.ts";
|
|
9
|
+
export type { CookieStoreShape } from "./transport/cookie-store.ts";
|
|
10
|
+
export { SECRET_REDACTION_MARKER, Secret, secret } from "./secret.ts";
|
|
11
|
+
export { consumeSseUntilTerminal, SseLifecycleError } from "./transport/sse-lifecycle.ts";
|
|
12
|
+
export type { SseEventDisposition, SseLifecycleFailureReason, SseLifecycleOptions, SseStreamResult, } from "./transport/sse-lifecycle.ts";
|
|
13
|
+
export { WEBHOOK_MANIFEST_VERSION } from "./webhook-events.ts";
|
|
14
|
+
export type { Webhook } from "./webhook-events.ts";
|
|
15
|
+
export type { CallOptions } from "./proxy/builder.ts";
|
|
16
|
+
export { decodeEventStream, RESERVED_STREAM_FAILURE_EVENT, STREAM_FAILED_ERROR_CODE, STREAM_UNREADABLE_BODY_ERROR_CODE, } from "./proxy/sse.ts";
|
|
17
|
+
export { MALFORMED_SUCCESS_ERROR_CODE } from "./proxy/response-decode.ts";
|
|
18
|
+
export { createDalpSdkConfigurationError, DalpSdkError } from "./errors/sdk-error.ts";
|
|
19
|
+
export { DalpApiError, findDalpSdkError, isDalpApiError, makeDalpApiError } from "./errors/api-error.ts";
|
|
20
|
+
export { isDalpApiErrorCode, isDalpErrorCode, isDalpRouteError, isDalpSdkLocalErrorCode, } from "./errors/error-codes.ts";
|
|
21
|
+
export type { DalpApiErrorCode, DalpSdkLocalErrorCode } from "./errors/error-codes.ts";
|
|
22
|
+
export type { DalpErrorCode, DalpRouteErrorCode } from "./generated/api-types.d.ts";
|
|
23
|
+
export { data as dalpErrorCatalog } from "./generated/error-catalog.ts";
|
|
24
|
+
export type { ErrorCatalogEntry, ErrorCatalogTable } from "./routes/types.ts";
|
|
25
|
+
export type { TransactionWaitFailureReason } from "./wait-for-transaction.ts";
|
|
26
|
+
export { SDK_USER_AGENT, SDK_VERSION } from "./version.ts";
|
|
27
|
+
export { DALP_AUTH_SURFACE_HEADER } from "./auth-surface.ts";
|
|
28
|
+
export type { DalpAuthSurface } from "./auth-surface.ts";
|