@settlemint/dalp-sdk 3.1.33 → 3.2.0-rc.1
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/LICENSE +3 -157
- package/README.md +276 -169
- package/dist/auth/client.d.ts +114 -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 +8 -0
- package/dist/{auth-permissions.d.ts → auth/permissions.d.ts} +0 -8
- package/dist/auth/wallet-plugins.d.ts +196 -0
- package/dist/auth-surface.d.ts +2 -0
- package/dist/auth.d.ts +8 -115
- package/dist/auth.js +540 -0
- package/dist/chunk-6hckdbwt.js +600 -0
- package/dist/chunk-7mvx7xq8.js +4 -0
- package/dist/chunk-b03ycwb7.js +68 -0
- package/dist/chunk-crtb9edj.js +29 -0
- package/dist/chunk-g5j1xky8.js +99 -0
- package/dist/chunk-grdfnbwd.js +1529 -0
- package/dist/chunk-j43gfc9p.js +5 -0
- package/dist/chunk-k3ntysxx.js +57 -0
- package/dist/chunk-ptwkww6j.js +38 -0
- package/dist/chunk-qncpzave.js +185 -0
- package/dist/chunk-t8v94nvb.js +5 -0
- package/dist/chunk-xnarraj7.js +339 -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 +39 -0
- package/dist/effect.js +110 -0
- package/dist/errors/api-error.d.ts +35 -0
- package/dist/errors/error-codes.d.ts +18 -0
- package/dist/errors/find-current-error.d.ts +2 -0
- package/dist/errors/public-error.d.ts +3 -0
- package/dist/errors/public-error.js +9 -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 +104535 -0
- package/dist/generated/api-types.ts +111921 -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 +159 -94522
- package/dist/proxy/builder.d.ts +17 -0
- package/dist/proxy/client-core.d.ts +36 -0
- package/dist/proxy/client.d.ts +5 -0
- package/dist/proxy/fetch-executor.d.ts +7 -0
- package/dist/proxy/flat-args.d.ts +24 -0
- package/dist/proxy/response-decode.d.ts +38 -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 +76 -0
- package/dist/react-query.d.ts +2 -0
- package/dist/react-query.js +14 -0
- package/dist/routes/cli-command.d.ts +17 -0
- package/dist/routes/console.d.ts +14 -0
- package/dist/routes/console.js +27 -0
- package/dist/routes/index.d.ts +6 -0
- package/dist/routes/index.js +122 -0
- package/dist/routes/types.d.ts +73 -0
- package/dist/runtime-exports.d.ts +4 -0
- package/dist/runtime-exports.js +38 -0
- package/dist/runtime.d.ts +8 -0
- package/dist/scalars/big-decimal.d.ts +22 -0
- package/dist/scalars/big-int.d.ts +3 -0
- package/dist/scalars/dalp-scalars.d.ts +28 -0
- package/dist/scalars/ethereum-address.d.ts +3 -0
- package/dist/scalars/exchange-rates.d.ts +13 -0
- package/dist/scalars/index.d.ts +14 -0
- package/dist/scalars/index.js +236 -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/server-proxy.d.ts +39 -0
- package/dist/server-proxy.js +186 -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 +38 -114
- package/dist/url.d.ts +0 -1
- package/dist/verify-webhook.d.ts +18 -28
- package/dist/verify-webhook.js +8 -0
- package/dist/version.d.ts +0 -3
- package/dist/wait-for-transaction.d.ts +46 -86
- package/dist/wait-for-transaction.js +154 -0
- package/dist/webhook-events.d.ts +1360 -35
- package/package.json +176 -36
- 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 +0 -86
- 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/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 -656
- package/dist/dapi-errors.d.ts.map +0 -1
- package/dist/errors.d.ts +0 -639
- 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 -8
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-sdk",
|
|
3
|
-
"version": "3.1
|
|
3
|
+
"version": "3.2.0-rc.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Fully typed SDK for the DALP tokenization platform API",
|
|
6
6
|
"homepage": "https://settlemint.com",
|
|
@@ -19,62 +19,202 @@
|
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"./src/**"
|
|
24
|
+
],
|
|
22
25
|
"exports": {
|
|
23
26
|
"./package.json": "./package.json",
|
|
27
|
+
"./server-proxy": {
|
|
28
|
+
"dalp-source": "./src/server-proxy.ts",
|
|
29
|
+
"types": {
|
|
30
|
+
"dalp-types": "./.types/src/server-proxy.d.ts",
|
|
31
|
+
"default": "./dist/server-proxy.d.ts"
|
|
32
|
+
},
|
|
33
|
+
"import": "./dist/server-proxy.js",
|
|
34
|
+
"default": "./dist/server-proxy.js"
|
|
35
|
+
},
|
|
36
|
+
"./runtime-exports": {
|
|
37
|
+
"dalp-source": "./src/runtime-exports.ts",
|
|
38
|
+
"types": {
|
|
39
|
+
"dalp-types": "./.types/src/runtime-exports.d.ts",
|
|
40
|
+
"default": "./dist/runtime-exports.d.ts"
|
|
41
|
+
},
|
|
42
|
+
"import": "./dist/runtime-exports.js",
|
|
43
|
+
"default": "./dist/runtime-exports.js"
|
|
44
|
+
},
|
|
24
45
|
".": {
|
|
25
|
-
"
|
|
46
|
+
"dalp-source": "./src/index.ts",
|
|
47
|
+
"types": {
|
|
48
|
+
"dalp-types": "./.types/src/index.d.ts",
|
|
49
|
+
"default": "./dist/index.d.ts"
|
|
50
|
+
},
|
|
26
51
|
"import": "./dist/index.js",
|
|
27
52
|
"default": "./dist/index.js"
|
|
28
53
|
},
|
|
29
54
|
"./types": {
|
|
30
|
-
"
|
|
55
|
+
"dalp-source": "./src/types.ts",
|
|
56
|
+
"types": {
|
|
57
|
+
"dalp-types": "./.types/src/types.d.ts",
|
|
58
|
+
"default": "./dist/types.d.ts"
|
|
59
|
+
},
|
|
31
60
|
"import": "./dist/types.js",
|
|
32
61
|
"default": "./dist/types.js"
|
|
33
62
|
},
|
|
34
|
-
"./
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
63
|
+
"./scalars": {
|
|
64
|
+
"dalp-source": "./src/scalars/index.ts",
|
|
65
|
+
"types": {
|
|
66
|
+
"dalp-types": "./.types/src/scalars/index.d.ts",
|
|
67
|
+
"default": "./dist/scalars/index.d.ts"
|
|
68
|
+
},
|
|
69
|
+
"import": "./dist/scalars/index.js",
|
|
70
|
+
"default": "./dist/scalars/index.js"
|
|
71
|
+
},
|
|
72
|
+
"./react-query": {
|
|
73
|
+
"dalp-source": "./src/react-query.ts",
|
|
74
|
+
"types": {
|
|
75
|
+
"dalp-types": "./.types/src/react-query.d.ts",
|
|
76
|
+
"default": "./dist/react-query.d.ts"
|
|
77
|
+
},
|
|
78
|
+
"import": "./dist/react-query.js",
|
|
79
|
+
"default": "./dist/react-query.js"
|
|
80
|
+
},
|
|
81
|
+
"./auth": {
|
|
82
|
+
"dalp-source": "./src/auth.ts",
|
|
83
|
+
"types": {
|
|
84
|
+
"dalp-types": "./.types/src/auth.d.ts",
|
|
85
|
+
"default": "./dist/auth.d.ts"
|
|
86
|
+
},
|
|
87
|
+
"import": "./dist/auth.js",
|
|
88
|
+
"default": "./dist/auth.js"
|
|
89
|
+
},
|
|
90
|
+
"./verify-webhook": {
|
|
91
|
+
"dalp-source": "./src/verify-webhook.ts",
|
|
92
|
+
"types": {
|
|
93
|
+
"dalp-types": "./.types/src/verify-webhook.d.ts",
|
|
94
|
+
"default": "./dist/verify-webhook.d.ts"
|
|
95
|
+
},
|
|
96
|
+
"import": "./dist/verify-webhook.js",
|
|
97
|
+
"default": "./dist/verify-webhook.js"
|
|
98
|
+
},
|
|
99
|
+
"./wait-for-transaction": {
|
|
100
|
+
"dalp-source": "./src/wait-for-transaction.ts",
|
|
101
|
+
"types": {
|
|
102
|
+
"dalp-types": "./.types/src/wait-for-transaction.d.ts",
|
|
103
|
+
"default": "./dist/wait-for-transaction.d.ts"
|
|
104
|
+
},
|
|
105
|
+
"import": "./dist/wait-for-transaction.js",
|
|
106
|
+
"default": "./dist/wait-for-transaction.js"
|
|
107
|
+
},
|
|
108
|
+
"./public-error": {
|
|
109
|
+
"dalp-source": "./src/errors/public-error.ts",
|
|
110
|
+
"types": {
|
|
111
|
+
"dalp-types": "./.types/src/errors/public-error.d.ts",
|
|
112
|
+
"default": "./dist/errors/public-error.d.ts"
|
|
113
|
+
},
|
|
114
|
+
"import": "./dist/errors/public-error.js",
|
|
115
|
+
"default": "./dist/errors/public-error.js"
|
|
116
|
+
},
|
|
117
|
+
"./sdk-error": {
|
|
118
|
+
"dalp-source": "./src/errors/sdk-error.ts",
|
|
119
|
+
"types": {
|
|
120
|
+
"dalp-types": "./.types/src/errors/sdk-error.d.ts",
|
|
121
|
+
"default": "./dist/errors/sdk-error.d.ts"
|
|
122
|
+
},
|
|
123
|
+
"import": "./dist/errors/sdk-error.js",
|
|
124
|
+
"default": "./dist/errors/sdk-error.js"
|
|
125
|
+
},
|
|
126
|
+
"./sign-webhook-receipt": {
|
|
127
|
+
"dalp-source": "./src/sign-webhook-receipt.ts",
|
|
128
|
+
"types": {
|
|
129
|
+
"dalp-types": "./.types/src/sign-webhook-receipt.d.ts",
|
|
130
|
+
"default": "./dist/sign-webhook-receipt.d.ts"
|
|
131
|
+
},
|
|
132
|
+
"import": "./dist/sign-webhook-receipt.js",
|
|
133
|
+
"default": "./dist/sign-webhook-receipt.js"
|
|
134
|
+
},
|
|
135
|
+
"./effect": {
|
|
136
|
+
"dalp-source": "./src/effect.ts",
|
|
137
|
+
"types": {
|
|
138
|
+
"dalp-types": "./.types/src/effect.d.ts",
|
|
139
|
+
"default": "./dist/effect.d.ts"
|
|
140
|
+
},
|
|
141
|
+
"import": "./dist/effect.js",
|
|
142
|
+
"default": "./dist/effect.js"
|
|
143
|
+
},
|
|
144
|
+
"./routes": {
|
|
145
|
+
"dalp-source": "./src/routes/index.ts",
|
|
146
|
+
"types": {
|
|
147
|
+
"dalp-types": "./.types/src/routes/index.d.ts",
|
|
148
|
+
"default": "./dist/routes/index.d.ts"
|
|
149
|
+
},
|
|
150
|
+
"import": "./dist/routes/index.js",
|
|
151
|
+
"default": "./dist/routes/index.js"
|
|
152
|
+
},
|
|
153
|
+
"./routes/console": {
|
|
154
|
+
"dalp-source": "./src/routes/console.ts",
|
|
155
|
+
"types": {
|
|
156
|
+
"dalp-types": "./.types/src/routes/console.d.ts",
|
|
157
|
+
"default": "./dist/routes/console.d.ts"
|
|
158
|
+
},
|
|
159
|
+
"import": "./dist/routes/console.js",
|
|
160
|
+
"default": "./dist/routes/console.js"
|
|
38
161
|
}
|
|
39
162
|
},
|
|
40
163
|
"publishConfig": {
|
|
41
164
|
"access": "public"
|
|
42
165
|
},
|
|
43
166
|
"scripts": {
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
167
|
+
"lint": "taskguard oxlint --deny-warnings .",
|
|
168
|
+
"build": "taskguard bun scripts/build.ts",
|
|
169
|
+
"codegen": "taskguard bun scripts/codegen.ts",
|
|
170
|
+
"publint": "publint run --strict --pack bun",
|
|
171
|
+
"attw": "archive=$(bun pm pack --destination \"$PWD\" --quiet | tail -n 1) && attw \"$archive\" --profile esm-only; code=$?; rm -f \"$archive\"; exit $code",
|
|
172
|
+
"publish": "cp ../LICENSE . && bun run --cwd .. publish-if-absent \"$PWD\"",
|
|
173
|
+
"prepack": "cp ../LICENSE .",
|
|
174
|
+
"test": "taskguard bun test --parallel=4 --randomize --preload @testkit/effect-bun-test/preload --conditions dalp-source ./tests/unit",
|
|
175
|
+
"typecheck": "taskguard effect-tsgo tsrs --customConditions dalp-types && dalp-declaration-imports"
|
|
53
176
|
},
|
|
54
177
|
"dependencies": {
|
|
55
|
-
"@better-auth/api-key": "1.
|
|
56
|
-
"@better-auth/passkey": "1.
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"currency-codes": "2.2.0",
|
|
62
|
-
"date-fns": "4.4.0",
|
|
63
|
-
"dnum": "2.17.0",
|
|
64
|
-
"iso-3166": "4.4.0",
|
|
65
|
-
"standardwebhooks": "1.0.0",
|
|
66
|
-
"viem": "2.52.2",
|
|
67
|
-
"zod": "4.4.3"
|
|
178
|
+
"@better-auth/api-key": "1.7.18",
|
|
179
|
+
"@better-auth/passkey": "1.7.18",
|
|
180
|
+
"better-auth": "1.7.18",
|
|
181
|
+
"dnum": "2.18.1",
|
|
182
|
+
"standardwebhooks": "1.1.1",
|
|
183
|
+
"viem": "2.57.16"
|
|
68
184
|
},
|
|
69
185
|
"devDependencies": {
|
|
70
|
-
"@arethetypeswrong/cli": "0.18.
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
186
|
+
"@arethetypeswrong/cli": "0.18.5",
|
|
187
|
+
"@domains/trading-venue-contract": "3.2.0-rc.1",
|
|
188
|
+
"@domains/webhooks-contract": "3.2.0-rc.1",
|
|
189
|
+
"@kernel/evm": "3.2.0-rc.1",
|
|
190
|
+
"@kernel/json": "3.2.0-rc.1",
|
|
191
|
+
"@tanstack/react-query": "5.105.0",
|
|
192
|
+
"@testkit/effect-bun-test": "3.2.0-rc.1",
|
|
193
|
+
"@tools/typescript-config": "3.2.0-rc.1",
|
|
75
194
|
"@types/bun": "1.4.4",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
195
|
+
"@wire/http-contract": "3.2.0-rc.1",
|
|
196
|
+
"abort-controller": "3.0.0",
|
|
197
|
+
"effect": "4.1.3",
|
|
198
|
+
"publint": "0.3.25",
|
|
199
|
+
"typescript": "7.0.2",
|
|
200
|
+
"whatwg-fetch": "3.6.20",
|
|
201
|
+
"zod": "4.6.7"
|
|
202
|
+
},
|
|
203
|
+
"peerDependencies": {
|
|
204
|
+
"@tanstack/react-query": "^5.101.4",
|
|
205
|
+
"effect": "^4.0.0",
|
|
206
|
+
"zod": "^4.5.4"
|
|
207
|
+
},
|
|
208
|
+
"peerDependenciesMeta": {
|
|
209
|
+
"@tanstack/react-query": {
|
|
210
|
+
"optional": true
|
|
211
|
+
},
|
|
212
|
+
"effect": {
|
|
213
|
+
"optional": true
|
|
214
|
+
},
|
|
215
|
+
"zod": {
|
|
216
|
+
"optional": true
|
|
217
|
+
}
|
|
78
218
|
},
|
|
79
219
|
"engines": {
|
|
80
220
|
"node": ">=20"
|