@settlemint/dalp-sdk 3.1.26-main.37116470199 → 3.1.26
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 +172 -239
- package/dist/api-types.generated.d.ts +14160 -0
- package/dist/api-types.generated.d.ts.map +1 -0
- package/dist/{auth/permissions.d.ts → auth-permissions.d.ts} +8 -0
- package/dist/auth-permissions.d.ts.map +1 -0
- package/dist/{auth/wallet-plugins.d.ts → auth-wallet-plugins.d.ts} +6 -68
- package/dist/auth-wallet-plugins.d.ts.map +1 -0
- package/dist/auth.d.ts +115 -8
- package/dist/auth.d.ts.map +1 -0
- package/dist/bundler.d.ts +217 -0
- 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 +22 -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 +654 -0
- package/dist/dapi-errors.d.ts.map +1 -0
- package/dist/errors.d.ts +637 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/index.d.ts +45 -28
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +96216 -150
- 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 +114 -37
- 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 +3 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.generated.d.ts +8 -0
- package/dist/version.generated.d.ts.map +1 -0
- package/dist/wait-for-transaction.d.ts +86 -44
- package/dist/wait-for-transaction.d.ts.map +1 -0
- package/dist/webhook-events.d.ts +33 -543
- package/dist/webhook-events.d.ts.map +1 -0
- package/package.json +34 -110
- package/dist/auth/client.d.ts +0 -103
- package/dist/auth/invite-step-up.d.ts +0 -2
- package/dist/auth/live.d.ts +0 -47
- package/dist/auth/native-passkey.d.ts +0 -9
- package/dist/auth-surface.d.ts +0 -2
- package/dist/auth.js +0 -525
- package/dist/chunk-4f4kjtt0.js +0 -149
- package/dist/chunk-b03ycwb7.js +0 -68
- package/dist/chunk-ghgcmyhk.js +0 -5
- package/dist/chunk-h241xecg.js +0 -1625
- package/dist/chunk-hqz56e6q.js +0 -4
- package/dist/chunk-k3ntysxx.js +0 -57
- package/dist/chunk-pjjrxre1.js +0 -36
- package/dist/chunk-qvtjb3dz.js +0 -102
- package/dist/chunk-v54k7mgr.js +0 -271
- package/dist/chunk-w361dpdk.js +0 -5
- package/dist/client/conditional-request.d.ts +0 -8
- package/dist/client/factory.d.ts +0 -4
- package/dist/client/query-serializer.d.ts +0 -1
- package/dist/client/request-compression.d.ts +0 -12
- package/dist/client/ssr-fetch.d.ts +0 -10
- package/dist/client/step-up-challenge.d.ts +0 -10
- package/dist/effect.d.ts +0 -38
- package/dist/effect.js +0 -87
- package/dist/errors/api-error.d.ts +0 -35
- package/dist/errors/error-codes.d.ts +0 -21
- package/dist/errors/find-current-error.d.ts +0 -2
- 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 -69961
- package/dist/generated/console-routes.d.ts +0 -12
- package/dist/generated/error-catalog.d.ts +0 -9
- package/dist/generated/error-codes.d.ts +0 -9
- package/dist/generated/response-scalars.d.ts +0 -9
- package/dist/generated/response-schemas.d.ts +0 -9
- package/dist/generated/route-error-codes.d.ts +0 -9
- package/dist/generated/routes.d.ts +0 -12
- package/dist/proxy/builder.d.ts +0 -17
- package/dist/proxy/client-core.d.ts +0 -28
- package/dist/proxy/client.d.ts +0 -5
- package/dist/proxy/fetch-executor.d.ts +0 -6
- package/dist/proxy/flat-args.d.ts +0 -24
- package/dist/proxy/response-decode.d.ts +0 -37
- package/dist/proxy/sse.d.ts +0 -11
- package/dist/proxy/step-up-challenge.d.ts +0 -4
- package/dist/proxy/tanstack.d.ts +0 -6
- package/dist/proxy/transport.d.ts +0 -63
- package/dist/react-query.d.ts +0 -2
- package/dist/react-query.js +0 -12
- package/dist/readonly-deep.d.ts +0 -3
- package/dist/routes/console.d.ts +0 -14
- package/dist/routes/console.js +0 -25
- package/dist/routes/index.d.ts +0 -4
- package/dist/routes/index.js +0 -10
- package/dist/routes/types.d.ts +0 -72
- package/dist/runtime-exports.d.ts +0 -4
- package/dist/runtime-exports.js +0 -16
- package/dist/runtime.d.ts +0 -11
- package/dist/scalars/big-decimal.d.ts +0 -4
- package/dist/scalars/ethereum-address.d.ts +0 -5
- package/dist/scalars/exchange-rates.d.ts +0 -13
- package/dist/scalars/index.d.ts +0 -10
- package/dist/scalars/index.js +0 -102
- package/dist/scalars/organization-id.d.ts +0 -5
- package/dist/scalars/token-decimals.d.ts +0 -4
- package/dist/secret.d.ts +0 -12
- package/dist/sign-webhook-receipt.d.ts +0 -16
- 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 -24
- package/dist/verify-webhook.js +0 -8
- package/dist/wait-for-transaction.js +0 -151
|
@@ -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,c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QAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;KAClC,CACF,CAAC;IAEF,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.26
|
|
3
|
+
"version": "3.1.26",
|
|
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,118 +31,50 @@
|
|
|
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
|
-
"./verify-webhook": {
|
|
58
|
-
"types": "./dist/verify-webhook.d.ts",
|
|
59
|
-
"import": "./dist/verify-webhook.js",
|
|
60
|
-
"default": "./dist/verify-webhook.js"
|
|
61
|
-
},
|
|
62
|
-
"./wait-for-transaction": {
|
|
63
|
-
"types": "./dist/wait-for-transaction.d.ts",
|
|
64
|
-
"import": "./dist/wait-for-transaction.js",
|
|
65
|
-
"default": "./dist/wait-for-transaction.js"
|
|
66
|
-
},
|
|
67
|
-
"./sdk-error": {
|
|
68
|
-
"types": "./dist/errors/sdk-error.d.ts",
|
|
69
|
-
"import": "./dist/errors/sdk-error.js",
|
|
70
|
-
"default": "./dist/errors/sdk-error.js"
|
|
71
|
-
},
|
|
72
|
-
"./sign-webhook-receipt": {
|
|
73
|
-
"types": "./dist/sign-webhook-receipt.d.ts",
|
|
74
|
-
"import": "./dist/sign-webhook-receipt.js",
|
|
75
|
-
"default": "./dist/sign-webhook-receipt.js"
|
|
76
|
-
},
|
|
77
|
-
"./effect": {
|
|
78
|
-
"types": "./dist/effect.d.ts",
|
|
79
|
-
"import": "./dist/effect.js",
|
|
80
|
-
"default": "./dist/effect.js"
|
|
81
|
-
},
|
|
82
|
-
"./routes": {
|
|
83
|
-
"types": "./dist/routes/index.d.ts",
|
|
84
|
-
"import": "./dist/routes/index.js",
|
|
85
|
-
"default": "./dist/routes/index.js"
|
|
86
|
-
},
|
|
87
|
-
"./routes/console": {
|
|
88
|
-
"types": "./dist/routes/console.d.ts",
|
|
89
|
-
"import": "./dist/routes/console.js",
|
|
90
|
-
"default": "./dist/routes/console.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": "
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"typecheck": "taskguard sh -c 'tsc -p . && tsc --noEmit -p scripts/tsconfig.json && tsc -p tsconfig.generated-types.json'",
|
|
107
|
-
"check:dts-portability": "bun scripts/check-dts-portability.ts",
|
|
108
|
-
"check:auth-coverage": "bun scripts/check-auth-coverage.ts",
|
|
109
|
-
"codegen:webhook-events-sdk": "bun scripts/generate-webhook-events-sdk.ts"
|
|
44
|
+
"build": "rm -rf dist && bun scripts/build.js && tsgo -p tsconfig.build.json && bun scripts/normalize-dist.ts && bun scripts/fix-dts-extensions.js && bun scripts/check-dts-portability.ts",
|
|
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",
|
|
48
|
+
"prepack": "cp ../../LICENSE .",
|
|
49
|
+
"test": "bun test --parallel=2 tests",
|
|
50
|
+
"typecheck": "tsgo",
|
|
51
|
+
"codegen": "bun scripts/codegen.ts",
|
|
52
|
+
"check:dts-portability": "bun scripts/check-dts-portability.ts"
|
|
110
53
|
},
|
|
111
54
|
"dependencies": {
|
|
112
|
-
"@better-auth/api-key": "1.
|
|
113
|
-
"@better-auth/passkey": "1.
|
|
114
|
-
"@
|
|
115
|
-
"
|
|
116
|
-
"
|
|
55
|
+
"@better-auth/api-key": "1.6.19",
|
|
56
|
+
"@better-auth/passkey": "1.6.19",
|
|
57
|
+
"@orpc/client": "1.14.6",
|
|
58
|
+
"@orpc/contract": "1.14.6",
|
|
59
|
+
"@orpc/openapi-client": "1.14.6",
|
|
60
|
+
"better-auth": "1.6.19",
|
|
61
|
+
"currency-codes": "2.2.0",
|
|
62
|
+
"date-fns": "4.4.0",
|
|
117
63
|
"dnum": "2.17.0",
|
|
118
|
-
"
|
|
119
|
-
"
|
|
64
|
+
"iso-3166": "4.4.0",
|
|
65
|
+
"standardwebhooks": "1.0.0",
|
|
66
|
+
"viem": "2.52.2",
|
|
67
|
+
"zod": "4.4.3"
|
|
120
68
|
},
|
|
121
69
|
"devDependencies": {
|
|
122
|
-
"@arethetypeswrong/cli": "0.18.
|
|
123
|
-
"@
|
|
124
|
-
"@
|
|
125
|
-
"@
|
|
126
|
-
"@
|
|
127
|
-
"@
|
|
128
|
-
"
|
|
129
|
-
"
|
|
130
|
-
"@wire/http-contract": "3.1.11",
|
|
131
|
-
"abort-controller": "3.0.0",
|
|
132
|
-
"effect": "4.0.0",
|
|
133
|
-
"publint": "0.3.24",
|
|
134
|
-
"typescript": "7.0.2",
|
|
135
|
-
"vitest": "5.0.3",
|
|
136
|
-
"whatwg-fetch": "3.6.20",
|
|
137
|
-
"zod": "4.6.5"
|
|
138
|
-
},
|
|
139
|
-
"peerDependencies": {
|
|
140
|
-
"@tanstack/react-query": "^5.101.4",
|
|
141
|
-
"effect": "^4.0.0",
|
|
142
|
-
"zod": "^4.5.4"
|
|
143
|
-
},
|
|
144
|
-
"peerDependenciesMeta": {
|
|
145
|
-
"@tanstack/react-query": {
|
|
146
|
-
"optional": true
|
|
147
|
-
},
|
|
148
|
-
"effect": {
|
|
149
|
-
"optional": true
|
|
150
|
-
},
|
|
151
|
-
"zod": {
|
|
152
|
-
"optional": true
|
|
153
|
-
}
|
|
70
|
+
"@arethetypeswrong/cli": "0.18.3",
|
|
71
|
+
"@dalp/api-contract": "workspace:*",
|
|
72
|
+
"@dalp/errors": "workspace:*",
|
|
73
|
+
"@orpc/zod": "1.14.6",
|
|
74
|
+
"@tools/typescript-config": "workspace:*",
|
|
75
|
+
"@types/bun": "1.3.14",
|
|
76
|
+
"publint": "0.3.21",
|
|
77
|
+
"typescript": "6.0.3"
|
|
154
78
|
},
|
|
155
79
|
"engines": {
|
|
156
80
|
"node": ">=20"
|
package/dist/auth/client.d.ts
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import type { DalpFetch } from "../client/ssr-fetch.ts";
|
|
2
|
-
import type { DalpAuthSurface } from "../auth-surface.ts";
|
|
3
|
-
import type { AuthGetApiKeyListResponse, AuthGetOrganizationListResponse, AuthPostApiKeyCreateData, AuthPostApiKeyCreateResponse, AuthPostApiKeyDeleteData, AuthPostApiKeyDeleteResponse, AuthPostOrganizationCreateData, AuthPostOrganizationCreateResponse, AuthPostOrganizationRemoveMemberData, AuthPostOrganizationRemoveMemberResponse, AuthPostRevokeOtherSessionsResponse, AuthPostRevokeSessionData, AuthPostRevokeSessionResponse, AuthPostTwoFactorDisableData, AuthPostTwoFactorDisableResponse, AuthPostTwoFactorEnableData, AuthPostTwoFactorEnableResponse, AuthPostTwoFactorVerifyBackupCodeData, AuthPostTwoFactorVerifyBackupCodeResponse, AuthPostTwoFactorVerifyTotpData, AuthPostTwoFactorVerifyTotpResponse, CreateOrganizationInvitationData, CreateOrganizationInvitationResponse, GetSessionResponse, ListUserSessionsResponse, Member, SetActiveOrganizationData, SetActiveOrganizationResponse } from "../generated/api-types.d.ts";
|
|
4
|
-
import { Secret } from "../secret.ts";
|
|
5
|
-
import type { CookieStoreShape } from "../transport/cookie-store.ts";
|
|
6
|
-
import type { DalpRuntime } from "../runtime.ts";
|
|
7
|
-
import type { DalpPasskeyCeremony } from "./native-passkey.ts";
|
|
8
|
-
export interface DalpAuthClientConfig {
|
|
9
|
-
readonly url: string;
|
|
10
|
-
readonly apiKey?: string;
|
|
11
|
-
readonly cookie?: string;
|
|
12
|
-
readonly cookieStore?: CookieStoreShape;
|
|
13
|
-
readonly organizationId?: string;
|
|
14
|
-
readonly authSurface?: DalpAuthSurface;
|
|
15
|
-
readonly headers?: Record<string, string>;
|
|
16
|
-
readonly fetch?: DalpFetch;
|
|
17
|
-
readonly runtime?: DalpRuntime;
|
|
18
|
-
readonly passkey?: DalpPasskeyCeremony;
|
|
19
|
-
}
|
|
20
|
-
export interface DecodedDalpAuthClientConfig extends Omit<DalpAuthClientConfig, "apiKey" | "cookie"> {
|
|
21
|
-
readonly apiKey?: Secret;
|
|
22
|
-
readonly cookie?: Secret;
|
|
23
|
-
}
|
|
24
|
-
export interface DalpAuthError {
|
|
25
|
-
readonly code?: string;
|
|
26
|
-
readonly message?: string;
|
|
27
|
-
readonly status?: number;
|
|
28
|
-
readonly statusText?: string;
|
|
29
|
-
readonly [key: string]: unknown;
|
|
30
|
-
}
|
|
31
|
-
export interface DalpAuthResult<TData = unknown, TError = DalpAuthError> {
|
|
32
|
-
readonly data: TData | null;
|
|
33
|
-
readonly error: TError | null;
|
|
34
|
-
}
|
|
35
|
-
export type DalpAuthOperation<TInput, TData = unknown> = (input?: TInput, options?: unknown) => Promise<DalpAuthResult<TData>>;
|
|
36
|
-
export type DalpRequiredAuthOperation<TInput, TData> = (input: TInput, options?: unknown) => Promise<DalpAuthResult<TData>>;
|
|
37
|
-
export type DalpNoInputAuthOperation<TData> = (options?: unknown) => Promise<DalpAuthResult<TData>>;
|
|
38
|
-
export type RequestBody<TData> = TData;
|
|
39
|
-
export interface DalpOrganizationMember extends Member {
|
|
40
|
-
readonly user: {
|
|
41
|
-
readonly id: string;
|
|
42
|
-
readonly email: string;
|
|
43
|
-
readonly name: string;
|
|
44
|
-
readonly image?: string;
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
export interface DalpOrganizationMembersQuery {
|
|
48
|
-
readonly limit?: string | number;
|
|
49
|
-
readonly offset?: string | number;
|
|
50
|
-
readonly sortBy?: string;
|
|
51
|
-
readonly sortDirection?: "asc" | "desc";
|
|
52
|
-
readonly filterField?: string;
|
|
53
|
-
readonly filterValue?: string | number | boolean | ReadonlyArray<string> | ReadonlyArray<number>;
|
|
54
|
-
readonly filterOperator?: "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "in" | "not_in" | "contains" | "starts_with" | "ends_with";
|
|
55
|
-
readonly organizationId?: string;
|
|
56
|
-
readonly organizationSlug?: string;
|
|
57
|
-
}
|
|
58
|
-
export interface DalpOrganizationInvitation {
|
|
59
|
-
readonly id: string;
|
|
60
|
-
readonly organizationId: string;
|
|
61
|
-
readonly email: string;
|
|
62
|
-
readonly role?: string;
|
|
63
|
-
readonly status: string;
|
|
64
|
-
readonly expiresAt: string | Date;
|
|
65
|
-
}
|
|
66
|
-
export interface DalpOrganizationInvitationsQuery {
|
|
67
|
-
readonly organizationId?: string;
|
|
68
|
-
}
|
|
69
|
-
export interface DalpCliAuthClient {
|
|
70
|
-
readonly getSession: DalpNoInputAuthOperation<GetSessionResponse>;
|
|
71
|
-
readonly listSessions: DalpNoInputAuthOperation<ListUserSessionsResponse>;
|
|
72
|
-
readonly revokeSession: DalpRequiredAuthOperation<RequestBody<AuthPostRevokeSessionData>, AuthPostRevokeSessionResponse>;
|
|
73
|
-
readonly revokeOtherSessions: DalpNoInputAuthOperation<AuthPostRevokeOtherSessionsResponse>;
|
|
74
|
-
readonly apiKey: {
|
|
75
|
-
readonly list: DalpNoInputAuthOperation<AuthGetApiKeyListResponse>;
|
|
76
|
-
readonly create: DalpRequiredAuthOperation<RequestBody<AuthPostApiKeyCreateData>, AuthPostApiKeyCreateResponse>;
|
|
77
|
-
readonly delete: DalpRequiredAuthOperation<RequestBody<AuthPostApiKeyDeleteData>, AuthPostApiKeyDeleteResponse>;
|
|
78
|
-
};
|
|
79
|
-
readonly organization: {
|
|
80
|
-
readonly list: DalpNoInputAuthOperation<AuthGetOrganizationListResponse>;
|
|
81
|
-
readonly setActive: DalpRequiredAuthOperation<RequestBody<SetActiveOrganizationData>, SetActiveOrganizationResponse>;
|
|
82
|
-
readonly create: DalpRequiredAuthOperation<RequestBody<AuthPostOrganizationCreateData>, AuthPostOrganizationCreateResponse>;
|
|
83
|
-
readonly inviteMember: DalpRequiredAuthOperation<RequestBody<CreateOrganizationInvitationData>, CreateOrganizationInvitationResponse>;
|
|
84
|
-
readonly removeMember: DalpRequiredAuthOperation<RequestBody<AuthPostOrganizationRemoveMemberData>, AuthPostOrganizationRemoveMemberResponse>;
|
|
85
|
-
readonly listMembers: DalpRequiredAuthOperation<{
|
|
86
|
-
readonly query?: DalpOrganizationMembersQuery;
|
|
87
|
-
}, {
|
|
88
|
-
readonly members: ReadonlyArray<DalpOrganizationMember>;
|
|
89
|
-
readonly total: number;
|
|
90
|
-
}>;
|
|
91
|
-
readonly listInvitations: DalpAuthOperation<{
|
|
92
|
-
readonly query?: DalpOrganizationInvitationsQuery;
|
|
93
|
-
}, ReadonlyArray<DalpOrganizationInvitation>>;
|
|
94
|
-
readonly listUserInvitations: DalpNoInputAuthOperation<ReadonlyArray<DalpOrganizationInvitation>>;
|
|
95
|
-
};
|
|
96
|
-
readonly twoFactor: {
|
|
97
|
-
readonly enable: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorEnableData>, AuthPostTwoFactorEnableResponse>;
|
|
98
|
-
readonly disable: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorDisableData>, AuthPostTwoFactorDisableResponse>;
|
|
99
|
-
readonly verifyTotp: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorVerifyTotpData>, AuthPostTwoFactorVerifyTotpResponse>;
|
|
100
|
-
readonly verifyBackupCode: DalpRequiredAuthOperation<RequestBody<AuthPostTwoFactorVerifyBackupCodeData>, AuthPostTwoFactorVerifyBackupCodeResponse>;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
export declare function decodeDalpAuthClientConfig(input: DalpAuthClientConfig): Promise<DecodedDalpAuthClientConfig>;
|
package/dist/auth/live.d.ts
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { apiKeyClient } from "@better-auth/api-key/client";
|
|
2
|
-
import { passkeyClient } from "@better-auth/passkey/client";
|
|
3
|
-
import { type AuthClient, type BetterAuthClientOptions } from "better-auth/client";
|
|
4
|
-
import { adminClient, customSessionClient, deviceAuthorizationClient, inferAdditionalFields, organizationClient, twoFactorClient } from "better-auth/client/plugins";
|
|
5
|
-
import { type DalpAuthClientConfig, type DalpCliAuthClient } from "./client.ts";
|
|
6
|
-
import { type DalpWalletAuthClient, walletPincodeClient, walletSecretCodesClient, walletTwoFactorClient } from "./wallet-plugins.ts";
|
|
7
|
-
declare const adminPluginOptions: {
|
|
8
|
-
ac: import("better-auth/client").AccessControl;
|
|
9
|
-
roles: {
|
|
10
|
-
admin: import("better-auth/client").Role;
|
|
11
|
-
owner: import("better-auth/client").Role;
|
|
12
|
-
member: import("better-auth/client").Role;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
declare const organizationPluginOptions: {
|
|
16
|
-
ac: import("better-auth/client").AccessControl;
|
|
17
|
-
roles: {
|
|
18
|
-
owner: import("better-auth/client").Role;
|
|
19
|
-
member: import("better-auth/client").Role;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
type ConfiguredBetterAuthPluginTuple = [
|
|
23
|
-
ReturnType<typeof customSessionClient>,
|
|
24
|
-
ReturnType<typeof inferAdditionalFields>,
|
|
25
|
-
ReturnType<typeof adminClient<typeof adminPluginOptions>>,
|
|
26
|
-
ReturnType<typeof apiKeyClient>,
|
|
27
|
-
ReturnType<typeof passkeyClient>,
|
|
28
|
-
ReturnType<typeof walletPincodeClient>,
|
|
29
|
-
ReturnType<typeof walletTwoFactorClient>,
|
|
30
|
-
ReturnType<typeof walletSecretCodesClient>,
|
|
31
|
-
ReturnType<typeof twoFactorClient>,
|
|
32
|
-
ReturnType<typeof deviceAuthorizationClient>,
|
|
33
|
-
ReturnType<typeof organizationClient<typeof organizationPluginOptions>>
|
|
34
|
-
];
|
|
35
|
-
type ConfiguredBetterAuthClientOptions = Omit<BetterAuthClientOptions, "plugins"> & {
|
|
36
|
-
plugins: ConfiguredBetterAuthPluginTuple;
|
|
37
|
-
};
|
|
38
|
-
export type InferredBetterAuthClient = AuthClient<ConfiguredBetterAuthClientOptions>;
|
|
39
|
-
type UnservedAuthClientMembers = "deleteUser" | "revokeSessions" | "sendVerificationEmail";
|
|
40
|
-
interface DalpDeviceAuthClient {
|
|
41
|
-
readonly device: Omit<InferredBetterAuthClient["device"], "approve" | "deny">;
|
|
42
|
-
readonly passkey: Omit<InferredBetterAuthClient["passkey"], "updatePasskey">;
|
|
43
|
-
}
|
|
44
|
-
export type DalpAuthClient = Omit<InferredBetterAuthClient, keyof DalpCliAuthClient | keyof DalpWalletAuthClient | keyof DalpDeviceAuthClient | UnservedAuthClientMembers> & DalpDeviceAuthClient & DalpCliAuthClient & DalpWalletAuthClient;
|
|
45
|
-
export declare function createDalpAuthClient(input: DalpAuthClientConfig): Promise<DalpAuthClient>;
|
|
46
|
-
export declare const makeDalpAuthClient: typeof createDalpAuthClient;
|
|
47
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { passkeyClient, type AuthenticationResponseJSON, type PublicKeyCredentialCreationOptionsJSON, type PublicKeyCredentialRequestOptionsJSON, type RegistrationResponseJSON } from "@better-auth/passkey/client";
|
|
2
|
-
export interface DalpPasskeyCeremony {
|
|
3
|
-
readonly authenticate: (options: PublicKeyCredentialRequestOptionsJSON) => Promise<AuthenticationResponseJSON>;
|
|
4
|
-
readonly register: (options: PublicKeyCredentialCreationOptionsJSON) => Promise<RegistrationResponseJSON>;
|
|
5
|
-
}
|
|
6
|
-
type PasskeyClientPlugin = ReturnType<typeof passkeyClient>;
|
|
7
|
-
/** @internal */
|
|
8
|
-
export declare function ceremonyPasskeyClient(ceremony: DalpPasskeyCeremony): PasskeyClientPlugin;
|
|
9
|
-
export {};
|
package/dist/auth-surface.d.ts
DELETED