@settlemint/dalp-sdk 3.1.18-main.33808370488 → 3.1.18
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 +169 -154
- package/dist/{auth/permissions.d.ts → auth-permissions.d.ts} +2 -1
- package/dist/auth-permissions.d.ts.map +1 -0
- package/dist/{auth/wallet-plugins.d.ts → auth-wallet-plugins.d.ts} +5 -69
- package/dist/auth-wallet-plugins.d.ts.map +1 -0
- package/dist/auth.d.ts +115 -22
- package/dist/auth.d.ts.map +1 -0
- package/dist/bundler.d.ts +207 -14
- package/dist/bundler.d.ts.map +1 -0
- package/dist/chunk-xm8h1dzh.js +33 -0
- package/dist/client.d.ts +19 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/contract-errors.d.ts +4156 -0
- package/dist/contract-errors.d.ts.map +1 -0
- package/dist/contract.d.ts +17 -0
- package/dist/contract.d.ts.map +1 -0
- package/dist/cookie-store.d.ts +10 -0
- package/dist/cookie-store.d.ts.map +1 -0
- package/dist/dapi-errors.d.ts +650 -0
- package/dist/dapi-errors.d.ts.map +1 -0
- package/dist/errors.d.ts +633 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/index.d.ts +40 -28
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96109 -131
- package/dist/platform.d.ts +41 -0
- package/dist/platform.d.ts.map +1 -0
- package/dist/plugins/index.d.ts +13 -0
- package/dist/plugins/index.d.ts.map +1 -0
- package/dist/plugins/index.js +10 -0
- package/dist/sdk-error.d.ts +74 -0
- package/dist/sdk-error.d.ts.map +1 -0
- package/dist/serializers.d.ts +41 -0
- package/dist/serializers.d.ts.map +1 -0
- package/dist/types.d.ts +102 -65
- package/dist/types.d.ts.map +1 -0
- package/dist/url.d.ts +1 -0
- package/dist/url.d.ts.map +1 -0
- package/dist/verify-webhook.d.ts +28 -17
- package/dist/verify-webhook.d.ts.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/wait-for-transaction.d.ts +81 -54
- package/dist/wait-for-transaction.d.ts.map +1 -0
- package/dist/webhook-events.d.ts +27 -44
- package/dist/webhook-events.d.ts.map +1 -0
- package/package.json +30 -103
- package/dist/auth/client.d.ts +0 -113
- package/dist/auth/live.d.ts +0 -4366
- package/dist/auth.js +0 -329
- package/dist/bundler.js +0 -99
- package/dist/chunk-9k284df4.js +0 -4
- package/dist/chunk-def7rqy6.js +0 -946
- package/dist/chunk-f4t1bm86.js +0 -67
- package/dist/chunk-fjnq61hj.js +0 -11
- package/dist/chunk-h12fatty.js +0 -63
- package/dist/chunk-qp5ty384.js +0 -260
- package/dist/chunk-r0vsftj4.js +0 -102
- package/dist/chunk-tmk1f2yb.js +0 -33
- package/dist/chunk-y0d2c7kp.js +0 -54
- package/dist/client/conditional-request.d.ts +0 -30
- package/dist/client/factory.d.ts +0 -14
- package/dist/client/query-serializer.d.ts +0 -2
- package/dist/client/request-compression.d.ts +0 -47
- package/dist/client/ssr-fetch.d.ts +0 -12
- package/dist/effect.d.ts +0 -69
- package/dist/effect.js +0 -82
- package/dist/errors/api-error.d.ts +0 -29
- package/dist/errors/find-current-error.d.ts +0 -8
- package/dist/errors/sdk-error.d.ts +0 -52
- package/dist/errors/sdk-error.js +0 -8
- package/dist/generated/api-types.d.ts +0 -41271
- package/dist/generated/response-scalars.d.ts +0 -9
- package/dist/generated/routes.d.ts +0 -12
- package/dist/proxy/builder.d.ts +0 -47
- package/dist/proxy/client.d.ts +0 -32
- package/dist/proxy/fetch-executor.d.ts +0 -28
- package/dist/proxy/flat-args.d.ts +0 -51
- package/dist/proxy/settlement.d.ts +0 -67
- package/dist/proxy/sse.d.ts +0 -54
- package/dist/proxy/tanstack.d.ts +0 -27
- package/dist/proxy/transport.d.ts +0 -73
- package/dist/react-query.d.ts +0 -16
- package/dist/react-query.js +0 -13
- package/dist/readonly-deep.d.ts +0 -12
- package/dist/reads-as-funding-paused.d.ts +0 -20
- package/dist/routes/index.d.ts +0 -20
- package/dist/routes/index.js +0 -10
- package/dist/routes/types.d.ts +0 -51
- package/dist/runtime-exports.d.ts +0 -20
- package/dist/runtime-exports.js +0 -16
- package/dist/scalars/big-decimal.d.ts +0 -16
- package/dist/scalars/ethereum-address.d.ts +0 -20
- package/dist/scalars/exchange-rates.d.ts +0 -27
- package/dist/scalars/index.d.ts +0 -18
- package/dist/scalars/index.js +0 -86
- package/dist/scalars/organization-id.d.ts +0 -20
- package/dist/secret.d.ts +0 -14
- package/dist/sign-webhook-receipt.d.ts +0 -76
- package/dist/sign-webhook-receipt.js +0 -26
- package/dist/transport/cookie-store.d.ts +0 -9
- package/dist/transport/sse-lifecycle.d.ts +0 -44
- package/dist/verify-webhook.js +0 -8
- package/dist/wait-for-transaction.js +0 -120
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 tools/scripts/generate-webhook-events-sdk.ts`.
|
|
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,42 +79,33 @@ 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
|
-
}>;
|
|
95
86
|
type ComplianceFreezeRecalledV1 = EventEnvelope<"compliance.freeze.recalled", 1, "recalled", {
|
|
96
87
|
readonly chainId: number;
|
|
97
|
-
readonly reasonCode
|
|
88
|
+
readonly reasonCode: string;
|
|
98
89
|
readonly recalledBy: string;
|
|
99
|
-
readonly subjectAddress
|
|
90
|
+
readonly subjectAddress: string;
|
|
100
91
|
readonly supersedes: string;
|
|
101
92
|
readonly tokenAddress: string;
|
|
102
93
|
}>;
|
|
103
94
|
type IdentityRegistrationProvisionalV1 = EventEnvelope<"identity.registration.provisional", 1, "provisional", {
|
|
104
|
-
readonly accountAddress
|
|
95
|
+
readonly accountAddress: string;
|
|
105
96
|
readonly blockNumber: string;
|
|
106
97
|
readonly chainId: number;
|
|
107
|
-
readonly country
|
|
98
|
+
readonly country: number;
|
|
108
99
|
readonly identityAddress: string;
|
|
109
100
|
readonly registryAddress: string;
|
|
110
101
|
readonly status: string;
|
|
111
102
|
readonly transactionHash: string;
|
|
112
103
|
}>;
|
|
113
104
|
type IdentityRegistrationRetractedV1 = EventEnvelope<"identity.registration.retracted", 1, "retracted", {
|
|
114
|
-
readonly accountAddress
|
|
105
|
+
readonly accountAddress: string;
|
|
115
106
|
readonly blockNumber: string;
|
|
116
107
|
readonly chainId: number;
|
|
117
|
-
readonly country
|
|
108
|
+
readonly country: number;
|
|
118
109
|
readonly identityAddress: string;
|
|
119
110
|
readonly registryAddress: string;
|
|
120
111
|
readonly reorgBlockNumber: number;
|
|
@@ -133,42 +124,33 @@ export declare namespace Webhook {
|
|
|
133
124
|
readonly amount: string;
|
|
134
125
|
readonly blockNumber: number;
|
|
135
126
|
readonly chainId: number;
|
|
136
|
-
readonly from
|
|
127
|
+
readonly from: string;
|
|
137
128
|
readonly logIndex: number;
|
|
138
|
-
readonly to
|
|
129
|
+
readonly to: string;
|
|
139
130
|
readonly tokenAddress: string;
|
|
140
131
|
readonly transactionHash: string;
|
|
141
132
|
}>;
|
|
142
133
|
type TokenTransferPendingV1 = EventEnvelope<"token.transfer.pending", 1, "pending", {
|
|
143
134
|
readonly amount: string;
|
|
144
135
|
readonly chainId: number;
|
|
145
|
-
readonly from
|
|
146
|
-
readonly to
|
|
136
|
+
readonly from: string;
|
|
137
|
+
readonly to: string;
|
|
147
138
|
readonly tokenAddress: string;
|
|
148
139
|
readonly transactionHash: string;
|
|
149
140
|
}>;
|
|
150
141
|
type TokenTransferRetractedV1 = EventEnvelope<"token.transfer.retracted", 1, "retracted", {
|
|
151
142
|
readonly amount: string;
|
|
152
|
-
readonly blockNumber
|
|
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;
|
|
143
|
+
readonly blockNumber?: number;
|
|
163
144
|
readonly chainId: number;
|
|
164
|
-
readonly from
|
|
145
|
+
readonly from: string;
|
|
146
|
+
readonly logIndex?: number;
|
|
165
147
|
readonly reorgBlockNumber: number;
|
|
166
148
|
readonly supersedes: string;
|
|
167
|
-
readonly to
|
|
149
|
+
readonly to: string;
|
|
168
150
|
readonly tokenAddress: string;
|
|
169
151
|
readonly transactionHash: string;
|
|
170
152
|
}>;
|
|
171
|
-
type AnyEvent = AccessControlRoleGrantedProvisionalV1 | AccessControlRoleGrantedRetractedV1 | AccessControlRoleRevokedProvisionalV1 | AccessControlRoleRevokedRetractedV1 | AssetIssuanceProvisionalV1 |
|
|
153
|
+
type AnyEvent = AccessControlRoleGrantedProvisionalV1 | AccessControlRoleGrantedRetractedV1 | AccessControlRoleRevokedProvisionalV1 | AccessControlRoleRevokedRetractedV1 | AssetIssuanceProvisionalV1 | ComplianceFreezeRecalledV1 | IdentityRegistrationProvisionalV1 | IdentityRegistrationRetractedV1 | SettlementTransferRetractedV1 | TokenTransferFinalV1 | TokenTransferPendingV1 | TokenTransferRetractedV1;
|
|
172
154
|
type EventType = AnyEvent["type"];
|
|
173
155
|
type Event<TType extends EventType = EventType> = Extract<AnyEvent, {
|
|
174
156
|
readonly type: TType;
|
|
@@ -182,3 +164,4 @@ export declare namespace Webhook {
|
|
|
182
164
|
* without breaking older SDK versions.
|
|
183
165
|
*/
|
|
184
166
|
export declare const WEBHOOK_MANIFEST_VERSION = "2026-08-14";
|
|
167
|
+
//# sourceMappingURL=webhook-events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-events.d.ts","sourceRoot":"","sources":["../src/webhook-events.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,yBAAiB,OAAO,CAAC;IAChB,MAAM,gBAAgB,eAAe,CAAC;IAE7C,KAAY,cAAc,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,GAAG,WAAW,GAAG,UAA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AEF,KAAY,QAAQ,GAChB,qCAAqC,GACrC,mCAAmC,GACnC,qCAAqC,GACrC,mCAAmC,GACnC,0BAA0B,GAC1B,0BAA0B,GAC1B,iCAAiC,GACjC,+BAA+B,GAC/B,6BAA6B,GAC7B,oBAAoB,GACpB,sBAAsB,GACtB,wBAAwB,CAAC;IAC7B,KAAY,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IACzC,KAAY,KAAK,CAAC,KAAK,SAAS,SAAS,GAAG,SAAS,IAAI,OAAO,CAAC,QAAQ,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAA;KAAE,CAAC,CAAC;CACtG;AAED;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,eAA2B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-sdk",
|
|
3
|
-
"version": "3.1.18
|
|
3
|
+
"version": "3.1.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Fully typed SDK for the DALP tokenization platform API",
|
|
6
6
|
"homepage": "https://settlemint.com",
|
|
@@ -19,16 +19,8 @@
|
|
|
19
19
|
"LICENSE"
|
|
20
20
|
],
|
|
21
21
|
"type": "module",
|
|
22
|
-
"sideEffects": [
|
|
23
|
-
"./src/**"
|
|
24
|
-
],
|
|
25
22
|
"exports": {
|
|
26
23
|
"./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
|
-
},
|
|
32
24
|
".": {
|
|
33
25
|
"types": "./dist/index.d.ts",
|
|
34
26
|
"import": "./dist/index.js",
|
|
@@ -39,112 +31,47 @@
|
|
|
39
31
|
"import": "./dist/types.js",
|
|
40
32
|
"default": "./dist/types.js"
|
|
41
33
|
},
|
|
42
|
-
"./
|
|
43
|
-
"types": "./dist/
|
|
44
|
-
"import": "./dist/
|
|
45
|
-
"default": "./dist/
|
|
46
|
-
},
|
|
47
|
-
"./react-query": {
|
|
48
|
-
"types": "./dist/react-query.d.ts",
|
|
49
|
-
"import": "./dist/react-query.js",
|
|
50
|
-
"default": "./dist/react-query.js"
|
|
51
|
-
},
|
|
52
|
-
"./auth": {
|
|
53
|
-
"types": "./dist/auth.d.ts",
|
|
54
|
-
"import": "./dist/auth.js",
|
|
55
|
-
"default": "./dist/auth.js"
|
|
56
|
-
},
|
|
57
|
-
"./bundler": {
|
|
58
|
-
"types": "./dist/bundler.d.ts",
|
|
59
|
-
"import": "./dist/bundler.js",
|
|
60
|
-
"default": "./dist/bundler.js"
|
|
61
|
-
},
|
|
62
|
-
"./verify-webhook": {
|
|
63
|
-
"types": "./dist/verify-webhook.d.ts",
|
|
64
|
-
"import": "./dist/verify-webhook.js",
|
|
65
|
-
"default": "./dist/verify-webhook.js"
|
|
66
|
-
},
|
|
67
|
-
"./wait-for-transaction": {
|
|
68
|
-
"types": "./dist/wait-for-transaction.d.ts",
|
|
69
|
-
"import": "./dist/wait-for-transaction.js",
|
|
70
|
-
"default": "./dist/wait-for-transaction.js"
|
|
71
|
-
},
|
|
72
|
-
"./sdk-error": {
|
|
73
|
-
"types": "./dist/errors/sdk-error.d.ts",
|
|
74
|
-
"import": "./dist/errors/sdk-error.js",
|
|
75
|
-
"default": "./dist/errors/sdk-error.js"
|
|
76
|
-
},
|
|
77
|
-
"./sign-webhook-receipt": {
|
|
78
|
-
"types": "./dist/sign-webhook-receipt.d.ts",
|
|
79
|
-
"import": "./dist/sign-webhook-receipt.js",
|
|
80
|
-
"default": "./dist/sign-webhook-receipt.js"
|
|
81
|
-
},
|
|
82
|
-
"./effect": {
|
|
83
|
-
"types": "./dist/effect.d.ts",
|
|
84
|
-
"import": "./dist/effect.js",
|
|
85
|
-
"default": "./dist/effect.js"
|
|
86
|
-
},
|
|
87
|
-
"./routes": {
|
|
88
|
-
"types": "./dist/routes/index.d.ts",
|
|
89
|
-
"import": "./dist/routes/index.js",
|
|
90
|
-
"default": "./dist/routes/index.js"
|
|
34
|
+
"./plugins": {
|
|
35
|
+
"types": "./dist/plugins/index.d.ts",
|
|
36
|
+
"import": "./dist/plugins/index.js",
|
|
37
|
+
"default": "./dist/plugins/index.js"
|
|
91
38
|
}
|
|
92
39
|
},
|
|
93
40
|
"publishConfig": {
|
|
94
41
|
"access": "public"
|
|
95
42
|
},
|
|
96
43
|
"scripts": {
|
|
97
|
-
"build": "bun scripts/build.
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
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",
|
|
44
|
+
"build": "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/fix-dts-extensions.js",
|
|
45
|
+
"publint": "publint run --strict --pack npm",
|
|
46
|
+
"attw": "attw --pack . --profile esm-only",
|
|
47
|
+
"publish": "cp ../../LICENSE . && npm publish --ignore-scripts --tag ${TAG:-latest} --access public",
|
|
103
48
|
"prepack": "cp ../../LICENSE .",
|
|
104
|
-
"test": "bun test --
|
|
105
|
-
"
|
|
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:auth-coverage": "bun scripts/check-auth-coverage.ts",
|
|
111
|
-
"codegen:webhook-events-sdk": "bun scripts/generate-webhook-events-sdk.ts"
|
|
49
|
+
"test": "bun test --parallel=2 tests",
|
|
50
|
+
"typecheck": "tsgo"
|
|
112
51
|
},
|
|
113
52
|
"dependencies": {
|
|
114
|
-
"@better-auth/api-key": "1.
|
|
115
|
-
"@better-auth/passkey": "1.
|
|
116
|
-
"
|
|
117
|
-
"
|
|
53
|
+
"@better-auth/api-key": "1.6.19",
|
|
54
|
+
"@better-auth/passkey": "1.6.19",
|
|
55
|
+
"@orpc/client": "1.14.6",
|
|
56
|
+
"@orpc/contract": "1.14.6",
|
|
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",
|
|
118
61
|
"dnum": "2.17.0",
|
|
119
|
-
"
|
|
120
|
-
"
|
|
62
|
+
"iso-3166": "4.4.0",
|
|
63
|
+
"standardwebhooks": "1.0.0",
|
|
64
|
+
"viem": "2.52.2",
|
|
65
|
+
"zod": "4.4.3"
|
|
121
66
|
},
|
|
122
67
|
"devDependencies": {
|
|
123
|
-
"@arethetypeswrong/cli": "0.18.
|
|
124
|
-
"@
|
|
125
|
-
"@
|
|
126
|
-
"@tools/typescript-config": "
|
|
127
|
-
"@types/bun": "1.
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"typescript": "7.0.2",
|
|
131
|
-
"zod": "4.5.4"
|
|
132
|
-
},
|
|
133
|
-
"peerDependencies": {
|
|
134
|
-
"@tanstack/react-query": "^5.101.4",
|
|
135
|
-
"effect": "^4.0.0-rc.112",
|
|
136
|
-
"zod": "^4.5.4"
|
|
137
|
-
},
|
|
138
|
-
"peerDependenciesMeta": {
|
|
139
|
-
"@tanstack/react-query": {
|
|
140
|
-
"optional": true
|
|
141
|
-
},
|
|
142
|
-
"effect": {
|
|
143
|
-
"optional": true
|
|
144
|
-
},
|
|
145
|
-
"zod": {
|
|
146
|
-
"optional": true
|
|
147
|
-
}
|
|
68
|
+
"@arethetypeswrong/cli": "0.18.3",
|
|
69
|
+
"@dalp/api-contract": "workspace:*",
|
|
70
|
+
"@dalp/errors": "workspace:*",
|
|
71
|
+
"@tools/typescript-config": "workspace:*",
|
|
72
|
+
"@types/bun": "1.3.14",
|
|
73
|
+
"publint": "0.3.21",
|
|
74
|
+
"typescript": "6.0.3"
|
|
148
75
|
},
|
|
149
76
|
"engines": {
|
|
150
77
|
"node": ">=20"
|
package/dist/auth/client.d.ts
DELETED
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import type { DalpFetch } from "../client/ssr-fetch.ts";
|
|
2
|
-
import type { AuthGetApiKeyListResponse, AuthGetOrganizationListResponse, AuthPostApiKeyCreateData, AuthPostApiKeyCreateResponse, AuthPostApiKeyDeleteData, AuthPostApiKeyDeleteResponse, AuthPostDeviceApproveData, AuthPostDeviceApproveResponse, AuthPostDeviceDenyData, AuthPostDeviceDenyResponse, AuthPostOrganizationAcceptInvitationData, AuthPostOrganizationAcceptInvitationResponse, AuthPostOrganizationCreateData, AuthPostOrganizationCreateResponse, AuthPostOrganizationRemoveMemberData, AuthPostOrganizationRemoveMemberResponse, AuthPostRevokeOtherSessionsResponse, AuthPostRevokeSessionData, AuthPostRevokeSessionResponse, AuthPostTwoFactorDisableData, AuthPostTwoFactorDisableResponse, AuthPostTwoFactorEnableData, AuthPostTwoFactorEnableResponse, AuthPostTwoFactorGenerateBackupCodesData, AuthPostTwoFactorGenerateBackupCodesResponse, AuthPostTwoFactorVerifyBackupCodeData, AuthPostTwoFactorVerifyBackupCodeResponse, AuthPostTwoFactorVerifyTotpData, AuthPostTwoFactorVerifyTotpResponse, CreateOrganizationInvitationData, CreateOrganizationInvitationResponse, GetSessionResponse, ListUserSessionsResponse, Member, SetActiveOrganizationData, SetActiveOrganizationResponse } from "../generated/api-types.d.ts";
|
|
3
|
-
import { Secret } from "../secret.ts";
|
|
4
|
-
import type { CookieStoreShape } from "../transport/cookie-store.ts";
|
|
5
|
-
export interface DalpAuthClientConfig {
|
|
6
|
-
readonly url: string;
|
|
7
|
-
readonly apiKey?: string;
|
|
8
|
-
readonly sessionToken?: string;
|
|
9
|
-
readonly cookie?: string;
|
|
10
|
-
readonly cookieStore?: CookieStoreShape;
|
|
11
|
-
readonly organizationId?: string;
|
|
12
|
-
readonly headers?: Record<string, string>;
|
|
13
|
-
readonly fetch?: DalpFetch;
|
|
14
|
-
}
|
|
15
|
-
export interface DecodedDalpAuthClientConfig extends Omit<DalpAuthClientConfig, "apiKey" | "sessionToken" | "cookie"> {
|
|
16
|
-
readonly apiKey?: Secret;
|
|
17
|
-
readonly sessionToken?: Secret;
|
|
18
|
-
readonly cookie?: Secret;
|
|
19
|
-
}
|
|
20
|
-
export interface DalpAuthError {
|
|
21
|
-
readonly code?: string;
|
|
22
|
-
readonly message?: string;
|
|
23
|
-
readonly status?: number;
|
|
24
|
-
readonly statusText?: string;
|
|
25
|
-
readonly [key: string]: unknown;
|
|
26
|
-
}
|
|
27
|
-
export interface DalpAuthResult<TData = unknown, TError = DalpAuthError> {
|
|
28
|
-
readonly data: TData | null;
|
|
29
|
-
readonly error: TError | null;
|
|
30
|
-
}
|
|
31
|
-
export type DalpAuthOperation<TInput, TData = unknown> = (input?: TInput, options?: unknown) => Promise<DalpAuthResult<TData>>;
|
|
32
|
-
export type DalpRequiredAuthOperation<TInput, TData> = (input: TInput, options?: unknown) => Promise<DalpAuthResult<TData>>;
|
|
33
|
-
export type DalpNoInputAuthOperation<TData> = (options?: unknown) => Promise<DalpAuthResult<TData>>;
|
|
34
|
-
export type RequestBody<TData> = TData;
|
|
35
|
-
export interface DalpOrganizationMember extends Member {
|
|
36
|
-
readonly user: {
|
|
37
|
-
readonly id: string;
|
|
38
|
-
readonly email: string;
|
|
39
|
-
readonly name: string;
|
|
40
|
-
readonly image?: string;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export interface DalpOrganizationMembersQuery {
|
|
44
|
-
readonly limit?: string | number;
|
|
45
|
-
readonly offset?: string | number;
|
|
46
|
-
readonly sortBy?: string;
|
|
47
|
-
readonly sortDirection?: "asc" | "desc";
|
|
48
|
-
readonly filterField?: string;
|
|
49
|
-
readonly filterValue?: string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number>;
|
|
50
|
-
readonly filterOperator?: "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with";
|
|
51
|
-
readonly organizationId?: string;
|
|
52
|
-
readonly organizationSlug?: string;
|
|
53
|
-
}
|
|
54
|
-
/** Invitation row from Better Auth `listInvitations` / `listUserInvitations`. */
|
|
55
|
-
export interface DalpOrganizationInvitation {
|
|
56
|
-
readonly id: string;
|
|
57
|
-
readonly organizationId: string;
|
|
58
|
-
readonly email: string;
|
|
59
|
-
readonly role?: string;
|
|
60
|
-
readonly status: string;
|
|
61
|
-
readonly expiresAt: string | Date;
|
|
62
|
-
}
|
|
63
|
-
export interface DalpOrganizationInvitationsQuery {
|
|
64
|
-
readonly organizationId?: string;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Stable Better Auth operation types composed into `DalpAuthClient`.
|
|
68
|
-
*
|
|
69
|
-
* This is not a separate runtime client — `createDalpAuthClient` returns
|
|
70
|
-
* `DalpAuthClient`, which also includes wallet plugins. Keep this interface as
|
|
71
|
-
* the typed non-wallet surface so inference stays explicit; do not construct it.
|
|
72
|
-
*/
|
|
73
|
-
export interface DalpCliAuthClient {
|
|
74
|
-
readonly getSession: DalpNoInputAuthOperation<GetSessionResponse>;
|
|
75
|
-
readonly listSessions: DalpNoInputAuthOperation<ListUserSessionsResponse>;
|
|
76
|
-
readonly revokeSession: DalpRequiredAuthOperation<RequestBody<AuthPostRevokeSessionData>, AuthPostRevokeSessionResponse>;
|
|
77
|
-
readonly revokeOtherSessions: DalpNoInputAuthOperation<AuthPostRevokeOtherSessionsResponse>;
|
|
78
|
-
readonly apiKey: {
|
|
79
|
-
readonly list: DalpNoInputAuthOperation<AuthGetApiKeyListResponse>;
|
|
80
|
-
readonly create: DalpRequiredAuthOperation<RequestBody<AuthPostApiKeyCreateData>, AuthPostApiKeyCreateResponse>;
|
|
81
|
-
readonly delete: DalpRequiredAuthOperation<RequestBody<AuthPostApiKeyDeleteData>, AuthPostApiKeyDeleteResponse>;
|
|
82
|
-
};
|
|
83
|
-
readonly organization: {
|
|
84
|
-
readonly list: DalpNoInputAuthOperation<AuthGetOrganizationListResponse>;
|
|
85
|
-
readonly setActive: DalpRequiredAuthOperation<RequestBody<SetActiveOrganizationData>, SetActiveOrganizationResponse>;
|
|
86
|
-
readonly create: DalpRequiredAuthOperation<RequestBody<AuthPostOrganizationCreateData>, AuthPostOrganizationCreateResponse>;
|
|
87
|
-
readonly inviteMember: DalpRequiredAuthOperation<RequestBody<CreateOrganizationInvitationData>, CreateOrganizationInvitationResponse>;
|
|
88
|
-
readonly removeMember: DalpRequiredAuthOperation<RequestBody<AuthPostOrganizationRemoveMemberData>, AuthPostOrganizationRemoveMemberResponse>;
|
|
89
|
-
readonly acceptInvitation: DalpRequiredAuthOperation<RequestBody<AuthPostOrganizationAcceptInvitationData>, AuthPostOrganizationAcceptInvitationResponse>;
|
|
90
|
-
readonly listMembers: DalpRequiredAuthOperation<{
|
|
91
|
-
readonly query?: DalpOrganizationMembersQuery;
|
|
92
|
-
}, {
|
|
93
|
-
readonly members: ReadonlyArray<DalpOrganizationMember>;
|
|
94
|
-
readonly total: number;
|
|
95
|
-
}>;
|
|
96
|
-
readonly listInvitations: DalpAuthOperation<{
|
|
97
|
-
readonly query?: DalpOrganizationInvitationsQuery;
|
|
98
|
-
}, ReadonlyArray<DalpOrganizationInvitation>>;
|
|
99
|
-
readonly listUserInvitations: DalpNoInputAuthOperation<ReadonlyArray<DalpOrganizationInvitation>>;
|
|
100
|
-
};
|
|
101
|
-
readonly twoFactor: {
|
|
102
|
-
readonly enable: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorEnableData>, AuthPostTwoFactorEnableResponse>;
|
|
103
|
-
readonly disable: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorDisableData>, AuthPostTwoFactorDisableResponse>;
|
|
104
|
-
readonly verifyTotp: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorVerifyTotpData>, AuthPostTwoFactorVerifyTotpResponse>;
|
|
105
|
-
readonly verifyBackupCode: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorVerifyBackupCodeData>, AuthPostTwoFactorVerifyBackupCodeResponse>;
|
|
106
|
-
readonly generateBackupCodes: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorGenerateBackupCodesData>, AuthPostTwoFactorGenerateBackupCodesResponse>;
|
|
107
|
-
};
|
|
108
|
-
readonly device: {
|
|
109
|
-
readonly approve: DalpRequiredAuthOperation<RequestBody<AuthPostDeviceApproveData>, AuthPostDeviceApproveResponse>;
|
|
110
|
-
readonly deny: DalpRequiredAuthOperation<RequestBody<AuthPostDeviceDenyData>, AuthPostDeviceDenyResponse>;
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
export declare function decodeDalpAuthClientConfig(input: DalpAuthClientConfig): Promise<DecodedDalpAuthClientConfig>;
|