@settlemint/dalp-sdk 3.1.10 → 3.1.11-main.33538712635
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 +111 -177
- package/dist/auth/client.d.ts +115 -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 +248 -0
- package/dist/bundler.d.ts +17 -207
- package/dist/bundler.js +111 -0
- package/dist/chunk-63xjs3xe.js +45725 -0
- package/dist/chunk-cy9b59s6.js +503 -0
- package/dist/chunk-h12fatty.js +63 -0
- package/dist/chunk-nac758dt.js +14542 -0
- package/dist/chunk-p009n1rm.js +255 -0
- package/dist/chunk-r0vsftj4.js +102 -0
- package/dist/chunk-w21k7p99.js +843 -0
- package/dist/chunk-y0d2c7kp.js +54 -0
- package/dist/client/conditional-request.d.ts +16 -0
- package/dist/client/factory.d.ts +39 -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/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/@tanstack/react-query.gen.d.ts +17380 -0
- package/dist/generated/client/client.gen.d.ts +2 -0
- package/dist/generated/client/index.d.ts +10 -0
- package/dist/generated/client/types.gen.d.ts +120 -0
- package/dist/generated/client/utils.gen.d.ts +37 -0
- package/dist/generated/client.gen.d.ts +12 -0
- package/dist/generated/core/auth.gen.d.ts +25 -0
- package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/core/params.gen.d.ts +43 -0
- package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/core/types.gen.d.ts +83 -0
- package/dist/generated/core/utils.gen.d.ts +19 -0
- package/dist/generated/index.d.ts +2 -0
- package/dist/generated/sdk.gen.d.ts +5214 -0
- package/dist/generated/types.gen.d.ts +137282 -0
- package/dist/generated/zod.gen.d.ts +181286 -0
- package/dist/index.d.ts +23 -40
- package/dist/index.js +208 -96098
- package/dist/operations.d.ts +12 -0
- package/dist/operations.js +1747 -0
- package/dist/react-query.d.ts +11 -0
- package/dist/react-query.js +16485 -0
- package/dist/readonly-deep.d.ts +12 -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 +8 -0
- package/dist/scalars/exchange-rates.d.ts +36 -0
- package/dist/scalars/index.d.ts +15 -0
- package/dist/scalars/index.js +39 -0
- package/dist/scalars/organization-id.d.ts +8 -0
- package/dist/schemas.d.ts +10 -0
- package/dist/schemas.js +12040 -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 +67 -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 +40 -86
- package/dist/wait-for-transaction.js +112 -0
- package/dist/webhook-events.d.ts +44 -27
- package/package.json +98 -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,112 @@
|
|
|
1
|
+
import {
|
|
2
|
+
v2TransactionStatus
|
|
3
|
+
} from "./chunk-nac758dt.js";
|
|
4
|
+
import"./chunk-w21k7p99.js";
|
|
5
|
+
import"./chunk-63xjs3xe.js";
|
|
6
|
+
|
|
7
|
+
// src/wait-for-transaction.ts
|
|
8
|
+
var failedStates = new Set(["FAILED", "DEAD_LETTER", "CANCELLED"]);
|
|
9
|
+
var isWaitForTransactionSuccess = (status) => status.status === "COMPLETED";
|
|
10
|
+
|
|
11
|
+
class DalpTransactionWaitError extends Error {
|
|
12
|
+
code = "sdk.transaction.WAIT_FAILED";
|
|
13
|
+
category = "operational";
|
|
14
|
+
transactionId;
|
|
15
|
+
reason;
|
|
16
|
+
lastStatus;
|
|
17
|
+
elapsedMs;
|
|
18
|
+
constructor(transactionId, reason, lastStatus, elapsedMs) {
|
|
19
|
+
let message;
|
|
20
|
+
if (reason === "terminal-failure") {
|
|
21
|
+
message = `Transaction ${transactionId} reached terminal state ${lastStatus?.status ?? "UNKNOWN"}`;
|
|
22
|
+
} else if (reason === "timeout") {
|
|
23
|
+
message = `Transaction ${transactionId} did not reach a terminal state within ${elapsedMs ?? 0}ms`;
|
|
24
|
+
} else {
|
|
25
|
+
message = `Transaction status observation was aborted for transaction ${transactionId}`;
|
|
26
|
+
}
|
|
27
|
+
super(message);
|
|
28
|
+
this.name = "DalpTransactionWaitError";
|
|
29
|
+
this.transactionId = transactionId;
|
|
30
|
+
this.reason = reason;
|
|
31
|
+
this.lastStatus = lastStatus;
|
|
32
|
+
this.elapsedMs = elapsedMs;
|
|
33
|
+
}
|
|
34
|
+
get status() {
|
|
35
|
+
return this.lastStatus?.status ?? "UNKNOWN";
|
|
36
|
+
}
|
|
37
|
+
get subStatus() {
|
|
38
|
+
return this.lastStatus?.subStatus ?? null;
|
|
39
|
+
}
|
|
40
|
+
get retryable() {
|
|
41
|
+
return this.reason === "timeout";
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
var isDalpTransactionWaitError = (error) => error instanceof DalpTransactionWaitError;
|
|
45
|
+
var defaultSleep = (milliseconds, signal) => new Promise((resolve, reject) => {
|
|
46
|
+
if (signal?.aborted === true) {
|
|
47
|
+
reject(signal.reason);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
const onAbort = () => {
|
|
51
|
+
clearTimeout(timeout);
|
|
52
|
+
reject(signal?.reason);
|
|
53
|
+
};
|
|
54
|
+
const timeout = setTimeout(() => {
|
|
55
|
+
signal?.removeEventListener("abort", onAbort);
|
|
56
|
+
resolve();
|
|
57
|
+
}, milliseconds);
|
|
58
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
59
|
+
});
|
|
60
|
+
var generatedStatusReader = (client) => async (transactionId, signal) => {
|
|
61
|
+
const result = await v2TransactionStatus({
|
|
62
|
+
client,
|
|
63
|
+
path: { transactionId },
|
|
64
|
+
signal,
|
|
65
|
+
throwOnError: true
|
|
66
|
+
});
|
|
67
|
+
return result.data.data;
|
|
68
|
+
};
|
|
69
|
+
async function waitForTransaction(client, transactionId, options = {}) {
|
|
70
|
+
const timeoutMs = options.timeoutMs ?? 120000;
|
|
71
|
+
const pollIntervalMs = options.pollIntervalMs ?? 1000;
|
|
72
|
+
const now = options.now ?? Date.now;
|
|
73
|
+
const sleep = options.sleep ?? defaultSleep;
|
|
74
|
+
const readStatus = options.readStatus ?? generatedStatusReader(client);
|
|
75
|
+
const startedAt = now();
|
|
76
|
+
let lastStatus;
|
|
77
|
+
const isAborted = () => options.signal?.aborted === true;
|
|
78
|
+
while (true) {
|
|
79
|
+
if (isAborted()) {
|
|
80
|
+
throw new DalpTransactionWaitError(transactionId, "aborted", lastStatus);
|
|
81
|
+
}
|
|
82
|
+
const elapsed = now() - startedAt;
|
|
83
|
+
if (elapsed >= timeoutMs) {
|
|
84
|
+
throw new DalpTransactionWaitError(transactionId, "timeout", lastStatus, elapsed);
|
|
85
|
+
}
|
|
86
|
+
try {
|
|
87
|
+
lastStatus = await readStatus(transactionId, options.signal);
|
|
88
|
+
} catch (error) {
|
|
89
|
+
if (isAborted()) {
|
|
90
|
+
throw new DalpTransactionWaitError(transactionId, "aborted", lastStatus);
|
|
91
|
+
}
|
|
92
|
+
throw error;
|
|
93
|
+
}
|
|
94
|
+
options.onStatus?.(lastStatus);
|
|
95
|
+
if (failedStates.has(lastStatus.status)) {
|
|
96
|
+
throw new DalpTransactionWaitError(transactionId, "terminal-failure", lastStatus);
|
|
97
|
+
}
|
|
98
|
+
if (isWaitForTransactionSuccess(lastStatus)) {
|
|
99
|
+
return lastStatus;
|
|
100
|
+
}
|
|
101
|
+
try {
|
|
102
|
+
await sleep(Math.min(pollIntervalMs, Math.max(0, timeoutMs - (now() - startedAt))), options.signal);
|
|
103
|
+
} catch {
|
|
104
|
+
throw new DalpTransactionWaitError(transactionId, "aborted", lastStatus);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
export {
|
|
109
|
+
DalpTransactionWaitError,
|
|
110
|
+
isDalpTransactionWaitError,
|
|
111
|
+
waitForTransaction
|
|
112
|
+
};
|
package/dist/webhook-events.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated webhook event types.
|
|
3
3
|
*
|
|
4
|
-
* Do not edit by hand. Run `bun run
|
|
4
|
+
* Do not edit by hand. Run `bun run --cwd kit/sdk codegen:webhook-events-sdk`.
|
|
5
5
|
*
|
|
6
6
|
* @module
|
|
7
7
|
*/
|
|
@@ -13,7 +13,7 @@ export declare namespace Webhook {
|
|
|
13
13
|
* Adds `supersedes` only to lifecycle states that can authoritatively replace
|
|
14
14
|
* an earlier event.
|
|
15
15
|
*
|
|
16
|
-
* @see
|
|
16
|
+
* @see ../../../kit/docs/content/events/idempotency-and-on-chain-outcome.mdx
|
|
17
17
|
*/
|
|
18
18
|
type SupersedesAccessor<TState extends LifecycleState> = TState extends SupersedingLifecycleState ? {
|
|
19
19
|
readonly supersedes: string;
|
|
@@ -34,44 +34,44 @@ export declare namespace Webhook {
|
|
|
34
34
|
} & SupersedesAccessor<TState>;
|
|
35
35
|
type AccessControlRoleGrantedProvisionalV1 = EventEnvelope<"access-control.role-granted.provisional", 1, "provisional", {
|
|
36
36
|
readonly accessManagerAddress: string;
|
|
37
|
-
readonly accountAddress
|
|
37
|
+
readonly accountAddress?: string;
|
|
38
38
|
readonly blockNumber: string;
|
|
39
39
|
readonly chainId: number;
|
|
40
40
|
readonly roleId: string;
|
|
41
|
-
readonly sender
|
|
41
|
+
readonly sender?: string;
|
|
42
42
|
readonly systemAddress: string;
|
|
43
43
|
readonly transactionHash: string;
|
|
44
44
|
}>;
|
|
45
45
|
type AccessControlRoleGrantedRetractedV1 = EventEnvelope<"access-control.role-granted.retracted", 1, "retracted", {
|
|
46
46
|
readonly accessManagerAddress: string;
|
|
47
|
-
readonly accountAddress
|
|
47
|
+
readonly accountAddress?: string;
|
|
48
48
|
readonly blockNumber: string;
|
|
49
49
|
readonly chainId: number;
|
|
50
50
|
readonly reorgBlockNumber: number;
|
|
51
51
|
readonly roleId: string;
|
|
52
|
-
readonly sender
|
|
52
|
+
readonly sender?: string;
|
|
53
53
|
readonly supersedes: string;
|
|
54
54
|
readonly systemAddress: string;
|
|
55
55
|
readonly transactionHash: string;
|
|
56
56
|
}>;
|
|
57
57
|
type AccessControlRoleRevokedProvisionalV1 = EventEnvelope<"access-control.role-revoked.provisional", 1, "provisional", {
|
|
58
58
|
readonly accessManagerAddress: string;
|
|
59
|
-
readonly accountAddress
|
|
59
|
+
readonly accountAddress?: string;
|
|
60
60
|
readonly blockNumber: string;
|
|
61
61
|
readonly chainId: number;
|
|
62
62
|
readonly roleId: string;
|
|
63
|
-
readonly sender
|
|
63
|
+
readonly sender?: string;
|
|
64
64
|
readonly systemAddress: string;
|
|
65
65
|
readonly transactionHash: string;
|
|
66
66
|
}>;
|
|
67
67
|
type AccessControlRoleRevokedRetractedV1 = EventEnvelope<"access-control.role-revoked.retracted", 1, "retracted", {
|
|
68
68
|
readonly accessManagerAddress: string;
|
|
69
|
-
readonly accountAddress
|
|
69
|
+
readonly accountAddress?: string;
|
|
70
70
|
readonly blockNumber: string;
|
|
71
71
|
readonly chainId: number;
|
|
72
72
|
readonly reorgBlockNumber: number;
|
|
73
73
|
readonly roleId: string;
|
|
74
|
-
readonly sender
|
|
74
|
+
readonly sender?: string;
|
|
75
75
|
readonly supersedes: string;
|
|
76
76
|
readonly systemAddress: string;
|
|
77
77
|
readonly transactionHash: string;
|
|
@@ -79,33 +79,42 @@ export declare namespace Webhook {
|
|
|
79
79
|
type AssetIssuanceProvisionalV1 = EventEnvelope<"asset.issuance.provisional", 1, "provisional", {
|
|
80
80
|
readonly assetAddress: string;
|
|
81
81
|
readonly chainId: number;
|
|
82
|
-
readonly issuer
|
|
82
|
+
readonly issuer?: string;
|
|
83
83
|
readonly quantity: string;
|
|
84
84
|
readonly transactionHash: string;
|
|
85
85
|
}>;
|
|
86
|
+
type AssetIssuanceRetractedV1 = EventEnvelope<"asset.issuance.retracted", 1, "retracted", {
|
|
87
|
+
readonly assetAddress: string;
|
|
88
|
+
readonly chainId: number;
|
|
89
|
+
readonly issuer?: string;
|
|
90
|
+
readonly quantity: string;
|
|
91
|
+
readonly reorgBlockNumber: number;
|
|
92
|
+
readonly supersedes: string;
|
|
93
|
+
readonly transactionHash: string;
|
|
94
|
+
}>;
|
|
86
95
|
type ComplianceFreezeRecalledV1 = EventEnvelope<"compliance.freeze.recalled", 1, "recalled", {
|
|
87
96
|
readonly chainId: number;
|
|
88
|
-
readonly reasonCode
|
|
97
|
+
readonly reasonCode?: string;
|
|
89
98
|
readonly recalledBy: string;
|
|
90
|
-
readonly subjectAddress
|
|
99
|
+
readonly subjectAddress?: string;
|
|
91
100
|
readonly supersedes: string;
|
|
92
101
|
readonly tokenAddress: string;
|
|
93
102
|
}>;
|
|
94
103
|
type IdentityRegistrationProvisionalV1 = EventEnvelope<"identity.registration.provisional", 1, "provisional", {
|
|
95
|
-
readonly accountAddress
|
|
104
|
+
readonly accountAddress?: string;
|
|
96
105
|
readonly blockNumber: string;
|
|
97
106
|
readonly chainId: number;
|
|
98
|
-
readonly country
|
|
107
|
+
readonly country?: number;
|
|
99
108
|
readonly identityAddress: string;
|
|
100
109
|
readonly registryAddress: string;
|
|
101
110
|
readonly status: string;
|
|
102
111
|
readonly transactionHash: string;
|
|
103
112
|
}>;
|
|
104
113
|
type IdentityRegistrationRetractedV1 = EventEnvelope<"identity.registration.retracted", 1, "retracted", {
|
|
105
|
-
readonly accountAddress
|
|
114
|
+
readonly accountAddress?: string;
|
|
106
115
|
readonly blockNumber: string;
|
|
107
116
|
readonly chainId: number;
|
|
108
|
-
readonly country
|
|
117
|
+
readonly country?: number;
|
|
109
118
|
readonly identityAddress: string;
|
|
110
119
|
readonly registryAddress: string;
|
|
111
120
|
readonly reorgBlockNumber: number;
|
|
@@ -124,33 +133,42 @@ export declare namespace Webhook {
|
|
|
124
133
|
readonly amount: string;
|
|
125
134
|
readonly blockNumber: number;
|
|
126
135
|
readonly chainId: number;
|
|
127
|
-
readonly from
|
|
136
|
+
readonly from?: string;
|
|
128
137
|
readonly logIndex: number;
|
|
129
|
-
readonly to
|
|
138
|
+
readonly to?: string;
|
|
130
139
|
readonly tokenAddress: string;
|
|
131
140
|
readonly transactionHash: string;
|
|
132
141
|
}>;
|
|
133
142
|
type TokenTransferPendingV1 = EventEnvelope<"token.transfer.pending", 1, "pending", {
|
|
134
143
|
readonly amount: string;
|
|
135
144
|
readonly chainId: number;
|
|
136
|
-
readonly from
|
|
137
|
-
readonly to
|
|
145
|
+
readonly from?: string;
|
|
146
|
+
readonly to?: string;
|
|
138
147
|
readonly tokenAddress: string;
|
|
139
148
|
readonly transactionHash: string;
|
|
140
149
|
}>;
|
|
141
150
|
type TokenTransferRetractedV1 = EventEnvelope<"token.transfer.retracted", 1, "retracted", {
|
|
142
151
|
readonly amount: string;
|
|
143
|
-
readonly blockNumber
|
|
152
|
+
readonly blockNumber: number;
|
|
153
|
+
readonly chainId: number;
|
|
154
|
+
readonly from?: string;
|
|
155
|
+
readonly logIndex: number;
|
|
156
|
+
readonly reorgBlockNumber: number;
|
|
157
|
+
readonly supersedes: string;
|
|
158
|
+
readonly to?: string;
|
|
159
|
+
readonly tokenAddress: string;
|
|
160
|
+
readonly transactionHash: string;
|
|
161
|
+
} | {
|
|
162
|
+
readonly amount: string;
|
|
144
163
|
readonly chainId: number;
|
|
145
|
-
readonly from
|
|
146
|
-
readonly logIndex?: number;
|
|
164
|
+
readonly from?: string;
|
|
147
165
|
readonly reorgBlockNumber: number;
|
|
148
166
|
readonly supersedes: string;
|
|
149
|
-
readonly to
|
|
167
|
+
readonly to?: string;
|
|
150
168
|
readonly tokenAddress: string;
|
|
151
169
|
readonly transactionHash: string;
|
|
152
170
|
}>;
|
|
153
|
-
type AnyEvent = AccessControlRoleGrantedProvisionalV1 | AccessControlRoleGrantedRetractedV1 | AccessControlRoleRevokedProvisionalV1 | AccessControlRoleRevokedRetractedV1 | AssetIssuanceProvisionalV1 | ComplianceFreezeRecalledV1 | IdentityRegistrationProvisionalV1 | IdentityRegistrationRetractedV1 | SettlementTransferRetractedV1 | TokenTransferFinalV1 | TokenTransferPendingV1 | TokenTransferRetractedV1;
|
|
171
|
+
type AnyEvent = AccessControlRoleGrantedProvisionalV1 | AccessControlRoleGrantedRetractedV1 | AccessControlRoleRevokedProvisionalV1 | AccessControlRoleRevokedRetractedV1 | AssetIssuanceProvisionalV1 | AssetIssuanceRetractedV1 | ComplianceFreezeRecalledV1 | IdentityRegistrationProvisionalV1 | IdentityRegistrationRetractedV1 | SettlementTransferRetractedV1 | TokenTransferFinalV1 | TokenTransferPendingV1 | TokenTransferRetractedV1;
|
|
154
172
|
type EventType = AnyEvent["type"];
|
|
155
173
|
type Event<TType extends EventType = EventType> = Extract<AnyEvent, {
|
|
156
174
|
readonly type: TType;
|
|
@@ -164,4 +182,3 @@ export declare namespace Webhook {
|
|
|
164
182
|
* without breaking older SDK versions.
|
|
165
183
|
*/
|
|
166
184
|
export declare const WEBHOOK_MANIFEST_VERSION = "2026-08-14";
|
|
167
|
-
//# sourceMappingURL=webhook-events.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-sdk",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.11-main.33538712635",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Fully typed SDK for the DALP tokenization platform API",
|
|
6
6
|
"homepage": "https://settlemint.com",
|
|
@@ -19,59 +19,127 @@
|
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"./src/**"
|
|
24
|
+
],
|
|
22
25
|
"exports": {
|
|
23
26
|
"./package.json": "./package.json",
|
|
27
|
+
"./runtime-exports": {
|
|
28
|
+
"types": "./dist/runtime-exports.d.ts",
|
|
29
|
+
"import": "./dist/runtime-exports.js",
|
|
30
|
+
"default": "./dist/runtime-exports.js"
|
|
31
|
+
},
|
|
24
32
|
".": {
|
|
25
33
|
"types": "./dist/index.d.ts",
|
|
26
34
|
"import": "./dist/index.js",
|
|
27
35
|
"default": "./dist/index.js"
|
|
28
36
|
},
|
|
37
|
+
"./operations": {
|
|
38
|
+
"types": "./dist/operations.d.ts",
|
|
39
|
+
"import": "./dist/operations.js",
|
|
40
|
+
"default": "./dist/operations.js"
|
|
41
|
+
},
|
|
29
42
|
"./types": {
|
|
30
43
|
"types": "./dist/types.d.ts",
|
|
31
44
|
"import": "./dist/types.js",
|
|
32
45
|
"default": "./dist/types.js"
|
|
33
46
|
},
|
|
34
|
-
"./
|
|
35
|
-
"types": "./dist/
|
|
36
|
-
"import": "./dist/
|
|
37
|
-
"default": "./dist/
|
|
47
|
+
"./schemas": {
|
|
48
|
+
"types": "./dist/schemas.d.ts",
|
|
49
|
+
"import": "./dist/schemas.js",
|
|
50
|
+
"default": "./dist/schemas.js"
|
|
51
|
+
},
|
|
52
|
+
"./scalars": {
|
|
53
|
+
"types": "./dist/scalars/index.d.ts",
|
|
54
|
+
"import": "./dist/scalars/index.js",
|
|
55
|
+
"default": "./dist/scalars/index.js"
|
|
56
|
+
},
|
|
57
|
+
"./react-query": {
|
|
58
|
+
"types": "./dist/react-query.d.ts",
|
|
59
|
+
"import": "./dist/react-query.js",
|
|
60
|
+
"default": "./dist/react-query.js"
|
|
61
|
+
},
|
|
62
|
+
"./auth": {
|
|
63
|
+
"types": "./dist/auth.d.ts",
|
|
64
|
+
"import": "./dist/auth.js",
|
|
65
|
+
"default": "./dist/auth.js"
|
|
66
|
+
},
|
|
67
|
+
"./bundler": {
|
|
68
|
+
"types": "./dist/bundler.d.ts",
|
|
69
|
+
"import": "./dist/bundler.js",
|
|
70
|
+
"default": "./dist/bundler.js"
|
|
71
|
+
},
|
|
72
|
+
"./verify-webhook": {
|
|
73
|
+
"types": "./dist/verify-webhook.d.ts",
|
|
74
|
+
"import": "./dist/verify-webhook.js",
|
|
75
|
+
"default": "./dist/verify-webhook.js"
|
|
76
|
+
},
|
|
77
|
+
"./wait-for-transaction": {
|
|
78
|
+
"types": "./dist/wait-for-transaction.d.ts",
|
|
79
|
+
"import": "./dist/wait-for-transaction.js",
|
|
80
|
+
"default": "./dist/wait-for-transaction.js"
|
|
81
|
+
},
|
|
82
|
+
"./sdk-error": {
|
|
83
|
+
"types": "./dist/errors/sdk-error.d.ts",
|
|
84
|
+
"import": "./dist/errors/sdk-error.js",
|
|
85
|
+
"default": "./dist/errors/sdk-error.js"
|
|
86
|
+
},
|
|
87
|
+
"./sign-webhook-receipt": {
|
|
88
|
+
"types": "./dist/sign-webhook-receipt.d.ts",
|
|
89
|
+
"import": "./dist/sign-webhook-receipt.js",
|
|
90
|
+
"default": "./dist/sign-webhook-receipt.js"
|
|
38
91
|
}
|
|
39
92
|
},
|
|
40
93
|
"publishConfig": {
|
|
41
94
|
"access": "public"
|
|
42
95
|
},
|
|
43
96
|
"scripts": {
|
|
44
|
-
"build": "
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
97
|
+
"build": "bun scripts/build.ts && bun scripts/check-dts-portability.ts && bun scripts/ensure-dist.ts --check",
|
|
98
|
+
"ensure-dist": "bun scripts/ensure-dist.ts",
|
|
99
|
+
"codegen": "bun scripts/codegen.ts",
|
|
100
|
+
"publint": "publint run --strict --pack bun",
|
|
101
|
+
"attw": "archive=$(bun pm pack --destination \"$PWD\" --quiet | tail -n 1) && attw \"$archive\" --profile esm-only; code=$?; rm -f \"$archive\"; exit $code",
|
|
102
|
+
"publish": "cp ../../LICENSE . && bun publish --tolerate-republish --ignore-scripts --tag ${TAG:-latest} --access public",
|
|
48
103
|
"prepack": "cp ../../LICENSE .",
|
|
49
|
-
"test": "bun test --
|
|
50
|
-
"
|
|
104
|
+
"test": "bun test --timeout 30000 tests/unit",
|
|
105
|
+
"test:coverage": "bun test --timeout 30000 --coverage --coverage-reporter=lcov --coverage-reporter=text tests/unit",
|
|
106
|
+
"lint": "oxfmt --check .",
|
|
107
|
+
"typecheck": "oxlint --deny-warnings . && tsc --noEmit -p scripts/tsconfig.json",
|
|
108
|
+
"check:zero-effect": "bun scripts/check-zero-effect.ts",
|
|
109
|
+
"check:dts-portability": "bun scripts/check-dts-portability.ts",
|
|
110
|
+
"check:scalar-coverage": "bun scripts/check-scalar-coverage.ts",
|
|
111
|
+
"check:auth-coverage": "bun scripts/check-auth-coverage.ts",
|
|
112
|
+
"check:zod-integrity": "bun scripts/check-zod-integrity.ts",
|
|
113
|
+
"codegen:webhook-events-sdk": "bun scripts/generate-webhook-events-sdk.ts"
|
|
51
114
|
},
|
|
52
115
|
"dependencies": {
|
|
53
|
-
"@better-auth/api-key": "1.
|
|
54
|
-
"@better-auth/passkey": "1.
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"@orpc/openapi-client": "1.14.6",
|
|
58
|
-
"better-auth": "1.6.19",
|
|
59
|
-
"currency-codes": "2.2.0",
|
|
60
|
-
"date-fns": "4.4.0",
|
|
116
|
+
"@better-auth/api-key": "1.7.2",
|
|
117
|
+
"@better-auth/passkey": "1.7.2",
|
|
118
|
+
"better-auth": "1.7.2",
|
|
119
|
+
"better-call": "1.4.0",
|
|
61
120
|
"dnum": "2.17.0",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"viem": "2.52.2",
|
|
65
|
-
"zod": "4.4.3"
|
|
121
|
+
"standardwebhooks": "1.1.0",
|
|
122
|
+
"viem": "2.56.0"
|
|
66
123
|
},
|
|
67
124
|
"devDependencies": {
|
|
68
|
-
"@arethetypeswrong/cli": "0.18.
|
|
69
|
-
"@
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"
|
|
74
|
-
"
|
|
125
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
126
|
+
"@core/schema": "3.1.11",
|
|
127
|
+
"@hey-api/openapi-ts": "0.0.0-next-20260824173136",
|
|
128
|
+
"@tanstack/react-query": "5.102.8",
|
|
129
|
+
"@tools/typescript-config": "3.1.11",
|
|
130
|
+
"@types/bun": "1.4.0",
|
|
131
|
+
"publint": "0.3.24",
|
|
132
|
+
"typescript": "7.0.2",
|
|
133
|
+
"zod": "4.5.4"
|
|
134
|
+
},
|
|
135
|
+
"peerDependencies": {
|
|
136
|
+
"@tanstack/react-query": "^5.101.4",
|
|
137
|
+
"zod": "^4.5.4"
|
|
138
|
+
},
|
|
139
|
+
"peerDependenciesMeta": {
|
|
140
|
+
"@tanstack/react-query": {
|
|
141
|
+
"optional": true
|
|
142
|
+
}
|
|
75
143
|
},
|
|
76
144
|
"engines": {
|
|
77
145
|
"node": ">=20"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-permissions.d.ts","sourceRoot":"","sources":["../src/auth-permissions.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,IAAI,EAAuB,MAAM,4BAA4B,CAAC;AAuBhG,eAAO,MAAM,aAAa,EAAE,aAI1B,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,IAOtB,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,IAMtB,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,IAKvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-wallet-plugins.d.ts","sourceRoot":"","sources":["../src/auth-wallet-plugins.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBK,CAAC;AAEtC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;CAoBG,CAAC;AAEtC,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;CAmBC,CAAC;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@@ -1,33 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
function __accessProp(key) {
|
|
7
|
-
return this[key];
|
|
8
|
-
}
|
|
9
|
-
var __toESMCache_node;
|
|
10
|
-
var __toESMCache_esm;
|
|
11
|
-
var __toESM = (mod, isNodeMode, target) => {
|
|
12
|
-
var canCache = mod != null && typeof mod === "object";
|
|
13
|
-
if (canCache) {
|
|
14
|
-
var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
|
|
15
|
-
var cached = cache.get(mod);
|
|
16
|
-
if (cached)
|
|
17
|
-
return cached;
|
|
18
|
-
}
|
|
19
|
-
target = mod != null ? __create(__getProtoOf(mod)) : {};
|
|
20
|
-
const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
|
|
21
|
-
for (let key of __getOwnPropNames(mod))
|
|
22
|
-
if (!__hasOwnProp.call(to, key))
|
|
23
|
-
__defProp(to, key, {
|
|
24
|
-
get: __accessProp.bind(mod, key),
|
|
25
|
-
enumerable: true
|
|
26
|
-
});
|
|
27
|
-
if (canCache)
|
|
28
|
-
cache.set(mod, to);
|
|
29
|
-
return to;
|
|
30
|
-
};
|
|
31
|
-
var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
32
|
-
|
|
33
|
-
export { __toESM, __commonJS };
|
package/dist/client.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { DalpClient, DalpClientConfig, PublicDalpClientConfig } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Create a fully typed DALP API client.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* import { createDalpClient } from "@settlemint/dalp-sdk";
|
|
8
|
-
*
|
|
9
|
-
* const dalp = createDalpClient({
|
|
10
|
-
* url: "https://dalp.example.com",
|
|
11
|
-
* apiKey: "sm_dalp_...",
|
|
12
|
-
* organizationId: "org_...",
|
|
13
|
-
* });
|
|
14
|
-
*
|
|
15
|
-
* const tokens = await dalp.token.list({ query: {} });
|
|
16
|
-
* ```
|
|
17
|
-
*/
|
|
18
|
-
export declare function createDalpClient(config: DalpClientConfig | PublicDalpClientConfig): DalpClient;
|
|
19
|
-
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,UAAU,EAAyB,gBAAgB,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAmB9G;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,gBAAgB,GAAG,sBAAsB,GAAG,UAAU,CAsG9F"}
|