@settlemint/dalp-sdk 3.1.15 → 3.1.16-main.33748846737
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-0m709wz4.js +4 -0
- package/dist/chunk-4wb2zpjw.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-n0b075da.js +33 -0
- package/dist/chunk-r0vsftj4.js +102 -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 +41238 -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 -96108
- 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,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,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every 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,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* DALP SDK
|
|
2
|
+
* Effect-free DALP SDK public entry.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* // All methods are fully typed with auto-complete
|
|
14
|
-
* const tokens = await dalp.token.list({ query: {} });
|
|
15
|
-
* const system = await dalp.system.read({});
|
|
16
|
-
* ```
|
|
4
|
+
* This entry carries only what every consumer needs: the client factory, its
|
|
5
|
+
* config and errors, and the transport policy around it. Everything that costs
|
|
6
|
+
* real weight sits on its own subpath, so the cost is something a consumer opts
|
|
7
|
+
* into rather than something the root hands them — `./bundler` (viem, ~385 KiB),
|
|
8
|
+
* `./auth` (the Better Auth client family, ~69 KiB), `./verify-webhook` and
|
|
9
|
+
* `./sign-webhook-receipt` (`standardwebhooks`; the latter is Node-only), and
|
|
10
|
+
* `./wait-for-transaction`, which calls a generated operation and therefore
|
|
11
|
+
* inherits the generated validator module's full weight.
|
|
17
12
|
*
|
|
18
13
|
* @module
|
|
19
14
|
*/
|
|
20
|
-
export { createDalpClient } from "./client.
|
|
21
|
-
export {
|
|
22
|
-
export type {
|
|
23
|
-
export {
|
|
24
|
-
export type {
|
|
25
|
-
export {
|
|
26
|
-
export type {
|
|
27
|
-
export
|
|
28
|
-
export {
|
|
29
|
-
export type {
|
|
30
|
-
export {
|
|
31
|
-
export type {
|
|
32
|
-
export {
|
|
33
|
-
export type {
|
|
34
|
-
export {
|
|
35
|
-
export
|
|
36
|
-
export {
|
|
37
|
-
export
|
|
38
|
-
export {
|
|
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
|
|
15
|
+
export { createDalpClient, createDalpContextHeaders } from "./client/factory.ts";
|
|
16
|
+
export type { DalpClient } from "./client/factory.ts";
|
|
17
|
+
export type { CompressionRequestInit } from "./client/request-compression.ts";
|
|
18
|
+
export type { CreateDalpClientOptions, DalpClientContext, DalpSsrOptions } from "./client/factory.ts";
|
|
19
|
+
export type { ConditionalRequestStore } from "./client/conditional-request.ts";
|
|
20
|
+
export { createCookieStoreFetch, makeCookieStore } from "./transport/cookie-store.ts";
|
|
21
|
+
export type { CookieStoreShape } from "./transport/cookie-store.ts";
|
|
22
|
+
export { SECRET_REDACTION_MARKER, Secret, secret } from "./secret.ts";
|
|
23
|
+
export { consumeSseUntilTerminal, SseLifecycleError } from "./transport/sse-lifecycle.ts";
|
|
24
|
+
export type { SseEventDisposition, SseLifecycleFailureReason, SseLifecycleOptions, SseStreamResult, } from "./transport/sse-lifecycle.ts";
|
|
25
|
+
export { WEBHOOK_MANIFEST_VERSION } from "./webhook-events.ts";
|
|
26
|
+
export type { Webhook } from "./webhook-events.ts";
|
|
27
|
+
export { DEFAULT_SETTLEMENT_TIMEOUT_MS, SettlementFailedError, SettlementTimeoutError } from "./proxy/settlement.ts";
|
|
28
|
+
export type { SettlementHandle } from "./proxy/settlement.ts";
|
|
29
|
+
export type { CallOptions } from "./proxy/builder.ts";
|
|
30
|
+
export { decodeEventStream, RESERVED_STREAM_FAILURE_EVENT, STREAM_FAILED_ERROR_CODE } from "./proxy/sse.ts";
|
|
31
|
+
export { createDalpSdkConfigurationError, DalpSdkError } from "./errors/sdk-error.ts";
|
|
32
|
+
export { DalpApiError, findDalpSdkError, isDalpApiError, makeDalpApiError } from "./errors/api-error.ts";
|
|
33
|
+
export { SDK_USER_AGENT, SDK_VERSION } from "./version.ts";
|