@settlemint/dalp-sdk 3.1.4-main.32550923762 → 3.1.4-main.32551787629
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/dist/auth/live.d.ts +186 -93
- package/dist/auth.js +1 -1
- package/dist/{chunk-kp2haqjn.js → chunk-atgfkt81.js} +7 -6
- package/dist/index.js +1 -1
- package/package.json +7 -6
package/dist/auth/live.d.ts
CHANGED
|
@@ -80,18 +80,18 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
80
80
|
hooks: {
|
|
81
81
|
after: {
|
|
82
82
|
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
83
|
-
handler: import("better-
|
|
83
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<import("better-auth/client/plugins").SessionWithImpersonatedBy[] | undefined>>;
|
|
84
84
|
}[];
|
|
85
85
|
};
|
|
86
86
|
endpoints: {
|
|
87
|
-
setRole: import("better-
|
|
87
|
+
setRole: import("better-call").StrictEndpoint<"/admin/set-role", {
|
|
88
88
|
method: "POST";
|
|
89
89
|
body: import("zod").ZodObject<{
|
|
90
90
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
91
91
|
role: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodArray<import("zod").ZodString>]>;
|
|
92
92
|
}, import("zod/v4/core").$strip>;
|
|
93
93
|
requireHeaders: true;
|
|
94
|
-
use: import("better-
|
|
94
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
95
95
|
session: {
|
|
96
96
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
97
97
|
session: {
|
|
@@ -139,12 +139,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
139
139
|
}, {
|
|
140
140
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
141
141
|
}>;
|
|
142
|
-
getUser: import("better-
|
|
142
|
+
getUser: import("better-call").StrictEndpoint<"/admin/get-user", {
|
|
143
143
|
method: "GET";
|
|
144
144
|
query: import("zod").ZodObject<{
|
|
145
145
|
id: import("zod").ZodString;
|
|
146
146
|
}, import("zod/v4/core").$strip>;
|
|
147
|
-
use: import("better-
|
|
147
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
148
148
|
session: {
|
|
149
149
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
150
150
|
session: {
|
|
@@ -184,7 +184,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
184
184
|
};
|
|
185
185
|
};
|
|
186
186
|
}, import("better-auth/client/plugins").UserWithRole>;
|
|
187
|
-
createUser: import("better-
|
|
187
|
+
createUser: import("better-call").StrictEndpoint<"/admin/create-user", {
|
|
188
188
|
method: "POST";
|
|
189
189
|
body: import("zod").ZodObject<{
|
|
190
190
|
email: import("zod").ZodString;
|
|
@@ -229,13 +229,13 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
229
229
|
}, {
|
|
230
230
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
231
231
|
}>;
|
|
232
|
-
adminUpdateUser: import("better-
|
|
232
|
+
adminUpdateUser: import("better-call").StrictEndpoint<"/admin/update-user", {
|
|
233
233
|
method: "POST";
|
|
234
234
|
body: import("zod").ZodObject<{
|
|
235
235
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
236
236
|
data: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
237
237
|
}, import("zod/v4/core").$strip>;
|
|
238
|
-
use: import("better-
|
|
238
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
239
239
|
session: {
|
|
240
240
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
241
241
|
session: {
|
|
@@ -275,9 +275,9 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
275
275
|
};
|
|
276
276
|
};
|
|
277
277
|
}, import("better-auth/client/plugins").UserWithRole>;
|
|
278
|
-
listUsers: import("better-
|
|
278
|
+
listUsers: import("better-call").StrictEndpoint<"/admin/list-users", {
|
|
279
279
|
method: "GET";
|
|
280
|
-
use: import("better-
|
|
280
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
281
281
|
session: {
|
|
282
282
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
283
283
|
session: {
|
|
@@ -367,9 +367,9 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
367
367
|
users: import("better-auth/client/plugins").UserWithRole[];
|
|
368
368
|
total: number;
|
|
369
369
|
}>;
|
|
370
|
-
listUserSessions: import("better-
|
|
370
|
+
listUserSessions: import("better-call").StrictEndpoint<"/admin/list-user-sessions", {
|
|
371
371
|
method: "POST";
|
|
372
|
-
use: import("better-
|
|
372
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
373
373
|
session: {
|
|
374
374
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
375
375
|
session: {
|
|
@@ -417,12 +417,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
417
417
|
}, {
|
|
418
418
|
sessions: import("better-auth/client/plugins").SessionWithImpersonatedBy[];
|
|
419
419
|
}>;
|
|
420
|
-
unbanUser: import("better-
|
|
420
|
+
unbanUser: import("better-call").StrictEndpoint<"/admin/unban-user", {
|
|
421
421
|
method: "POST";
|
|
422
422
|
body: import("zod").ZodObject<{
|
|
423
423
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
424
424
|
}, import("zod/v4/core").$strip>;
|
|
425
|
-
use: import("better-
|
|
425
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
426
426
|
session: {
|
|
427
427
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
428
428
|
session: {
|
|
@@ -464,14 +464,14 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
464
464
|
}, {
|
|
465
465
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
466
466
|
}>;
|
|
467
|
-
banUser: import("better-
|
|
467
|
+
banUser: import("better-call").StrictEndpoint<"/admin/ban-user", {
|
|
468
468
|
method: "POST";
|
|
469
469
|
body: import("zod").ZodObject<{
|
|
470
470
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
471
471
|
banReason: import("zod").ZodOptional<import("zod").ZodString>;
|
|
472
472
|
banExpiresIn: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
473
473
|
}, import("zod/v4/core").$strip>;
|
|
474
|
-
use: import("better-
|
|
474
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
475
475
|
session: {
|
|
476
476
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
477
477
|
session: {
|
|
@@ -513,12 +513,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
513
513
|
}, {
|
|
514
514
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
515
515
|
}>;
|
|
516
|
-
impersonateUser: import("better-
|
|
516
|
+
impersonateUser: import("better-call").StrictEndpoint<"/admin/impersonate-user", {
|
|
517
517
|
method: "POST";
|
|
518
518
|
body: import("zod").ZodObject<{
|
|
519
519
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
520
520
|
}, import("zod/v4/core").$strip>;
|
|
521
|
-
use: import("better-
|
|
521
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
522
522
|
session: {
|
|
523
523
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
524
524
|
session: {
|
|
@@ -573,7 +573,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
573
573
|
};
|
|
574
574
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
575
575
|
}>;
|
|
576
|
-
stopImpersonating: import("better-
|
|
576
|
+
stopImpersonating: import("better-call").StrictEndpoint<"/admin/stop-impersonating", {
|
|
577
577
|
method: "POST";
|
|
578
578
|
requireHeaders: true;
|
|
579
579
|
}, {
|
|
@@ -597,12 +597,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
597
597
|
image?: string | null | undefined;
|
|
598
598
|
} & Record<string, any>;
|
|
599
599
|
}>;
|
|
600
|
-
revokeUserSession: import("better-
|
|
600
|
+
revokeUserSession: import("better-call").StrictEndpoint<"/admin/revoke-user-session", {
|
|
601
601
|
method: "POST";
|
|
602
602
|
body: import("zod").ZodObject<{
|
|
603
603
|
sessionToken: import("zod").ZodString;
|
|
604
604
|
}, import("zod/v4/core").$strip>;
|
|
605
|
-
use: import("better-
|
|
605
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
606
606
|
session: {
|
|
607
607
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
608
608
|
session: {
|
|
@@ -644,12 +644,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
644
644
|
}, {
|
|
645
645
|
success: boolean;
|
|
646
646
|
}>;
|
|
647
|
-
revokeUserSessions: import("better-
|
|
647
|
+
revokeUserSessions: import("better-call").StrictEndpoint<"/admin/revoke-user-sessions", {
|
|
648
648
|
method: "POST";
|
|
649
649
|
body: import("zod").ZodObject<{
|
|
650
650
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
651
651
|
}, import("zod/v4/core").$strip>;
|
|
652
|
-
use: import("better-
|
|
652
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
653
653
|
session: {
|
|
654
654
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
655
655
|
session: {
|
|
@@ -691,12 +691,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
691
691
|
}, {
|
|
692
692
|
success: boolean;
|
|
693
693
|
}>;
|
|
694
|
-
removeUser: import("better-
|
|
694
|
+
removeUser: import("better-call").StrictEndpoint<"/admin/remove-user", {
|
|
695
695
|
method: "POST";
|
|
696
696
|
body: import("zod").ZodObject<{
|
|
697
697
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
698
698
|
}, import("zod/v4/core").$strip>;
|
|
699
|
-
use: import("better-
|
|
699
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
700
700
|
session: {
|
|
701
701
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
702
702
|
session: {
|
|
@@ -738,13 +738,13 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
738
738
|
}, {
|
|
739
739
|
success: boolean;
|
|
740
740
|
}>;
|
|
741
|
-
setUserPassword: import("better-
|
|
741
|
+
setUserPassword: import("better-call").StrictEndpoint<"/admin/set-user-password", {
|
|
742
742
|
method: "POST";
|
|
743
743
|
body: import("zod").ZodObject<{
|
|
744
744
|
newPassword: import("zod").ZodString;
|
|
745
745
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
746
746
|
}, import("zod/v4/core").$strip>;
|
|
747
|
-
use: import("better-
|
|
747
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
748
748
|
session: {
|
|
749
749
|
user: import("better-auth/client/plugins").UserWithRole;
|
|
750
750
|
session: {
|
|
@@ -786,7 +786,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
786
786
|
}, {
|
|
787
787
|
status: boolean;
|
|
788
788
|
}>;
|
|
789
|
-
userHasPermission: import("better-
|
|
789
|
+
userHasPermission: import("better-call").StrictEndpoint<"/admin/has-permission", {
|
|
790
790
|
method: "POST";
|
|
791
791
|
body: import("zod").ZodIntersection<import("zod").ZodObject<{
|
|
792
792
|
userId: import("zod").ZodOptional<import("zod").ZodCoercedString<unknown>>;
|
|
@@ -1019,7 +1019,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1019
1019
|
hooks: {
|
|
1020
1020
|
before: {
|
|
1021
1021
|
matcher: (ctx: import("better-auth").HookEndpointContext) => boolean;
|
|
1022
|
-
handler: import("better-
|
|
1022
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1023
1023
|
user: {
|
|
1024
1024
|
id: string;
|
|
1025
1025
|
createdAt: Date;
|
|
@@ -1040,7 +1040,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1040
1040
|
expiresAt: Date;
|
|
1041
1041
|
};
|
|
1042
1042
|
} | {
|
|
1043
|
-
context: import("better-
|
|
1043
|
+
context: import("better-call").MiddlewareContext<import("better-call").MiddlewareOptions, import("better-auth").PluginContext<import("better-auth").BetterAuthOptions> & import("better-auth").InfoContext & {
|
|
1044
1044
|
options: import("better-auth").BetterAuthOptions;
|
|
1045
1045
|
trustedOrigins: string[];
|
|
1046
1046
|
trustedProviders: string[];
|
|
@@ -1125,13 +1125,14 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1125
1125
|
} & Omit<import("better-auth").BetterAuthRateLimitOptions, "enabled" | "window" | "max" | "storage">;
|
|
1126
1126
|
adapter: import("better-auth").DBAdapter<import("better-auth").BetterAuthOptions>;
|
|
1127
1127
|
internalAdapter: import("better-auth").InternalAdapter<import("better-auth").BetterAuthOptions>;
|
|
1128
|
-
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-
|
|
1128
|
+
createAuthCookie: (cookieName: string, overrideAttributes?: Partial<import("better-call").CookieOptions> | undefined) => import("better-auth").BetterAuthCookie;
|
|
1129
1129
|
secret: string;
|
|
1130
1130
|
secretConfig: string | import("better-auth").SecretConfig;
|
|
1131
1131
|
sessionConfig: {
|
|
1132
1132
|
updateAge: number;
|
|
1133
1133
|
expiresIn: number;
|
|
1134
1134
|
freshAge: number;
|
|
1135
|
+
cookieCacheSigner?: import("better-auth").CookieCacheSigner | undefined;
|
|
1135
1136
|
cookieRefreshCache: false | {
|
|
1136
1137
|
enabled: true;
|
|
1137
1138
|
updateAge: number;
|
|
@@ -1173,7 +1174,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1173
1174
|
}[];
|
|
1174
1175
|
};
|
|
1175
1176
|
endpoints: {
|
|
1176
|
-
createApiKey: import("better-
|
|
1177
|
+
createApiKey: import("better-call").StrictEndpoint<"/api-key/create", {
|
|
1177
1178
|
method: "POST";
|
|
1178
1179
|
body: import("zod").ZodObject<{
|
|
1179
1180
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1344,7 +1345,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1344
1345
|
createdAt: Date;
|
|
1345
1346
|
updatedAt: Date;
|
|
1346
1347
|
}>;
|
|
1347
|
-
verifyApiKey: import("better-
|
|
1348
|
+
verifyApiKey: import("better-call").StrictEndpoint<string, {
|
|
1348
1349
|
method: "POST";
|
|
1349
1350
|
body: import("zod").ZodObject<{
|
|
1350
1351
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1378,13 +1379,13 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1378
1379
|
error: null;
|
|
1379
1380
|
key: Omit<import("@better-auth/api-key/client").ApiKey, "key"> | null;
|
|
1380
1381
|
}>;
|
|
1381
|
-
getApiKey: import("better-
|
|
1382
|
+
getApiKey: import("better-call").StrictEndpoint<"/api-key/get", {
|
|
1382
1383
|
method: "GET";
|
|
1383
1384
|
query: import("zod").ZodObject<{
|
|
1384
1385
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1385
1386
|
id: import("zod").ZodString;
|
|
1386
1387
|
}, import("zod/v4/core").$strip>;
|
|
1387
|
-
use: import("better-
|
|
1388
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1388
1389
|
session: {
|
|
1389
1390
|
session: Record<string, any> & {
|
|
1390
1391
|
id: string;
|
|
@@ -1552,7 +1553,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1552
1553
|
createdAt: Date;
|
|
1553
1554
|
updatedAt: Date;
|
|
1554
1555
|
}>;
|
|
1555
|
-
updateApiKey: import("better-
|
|
1556
|
+
updateApiKey: import("better-call").StrictEndpoint<"/api-key/update", {
|
|
1556
1557
|
method: "POST";
|
|
1557
1558
|
body: import("zod").ZodObject<{
|
|
1558
1559
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -1715,13 +1716,13 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1715
1716
|
createdAt: Date;
|
|
1716
1717
|
updatedAt: Date;
|
|
1717
1718
|
}>;
|
|
1718
|
-
deleteApiKey: import("better-
|
|
1719
|
+
deleteApiKey: import("better-call").StrictEndpoint<"/api-key/delete", {
|
|
1719
1720
|
method: "POST";
|
|
1720
1721
|
body: import("zod").ZodObject<{
|
|
1721
1722
|
configId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1722
1723
|
keyId: import("zod").ZodString;
|
|
1723
1724
|
}, import("zod/v4/core").$strip>;
|
|
1724
|
-
use: import("better-
|
|
1725
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1725
1726
|
session: {
|
|
1726
1727
|
session: Record<string, any> & {
|
|
1727
1728
|
id: string;
|
|
@@ -1787,9 +1788,9 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1787
1788
|
}, {
|
|
1788
1789
|
success: boolean;
|
|
1789
1790
|
}>;
|
|
1790
|
-
listApiKeys: import("better-
|
|
1791
|
+
listApiKeys: import("better-call").StrictEndpoint<"/api-key/list", {
|
|
1791
1792
|
method: "GET";
|
|
1792
|
-
use: import("better-
|
|
1793
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
1793
1794
|
session: {
|
|
1794
1795
|
session: Record<string, any> & {
|
|
1795
1796
|
id: string;
|
|
@@ -1996,7 +1997,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
1996
1997
|
limit: number | undefined;
|
|
1997
1998
|
offset: number | undefined;
|
|
1998
1999
|
}>;
|
|
1999
|
-
deleteAllExpiredApiKeys: import("better-
|
|
2000
|
+
deleteAllExpiredApiKeys: import("better-call").StrictEndpoint<string, {
|
|
2000
2001
|
method: "POST";
|
|
2001
2002
|
}, {
|
|
2002
2003
|
success: boolean;
|
|
@@ -2173,9 +2174,9 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2173
2174
|
id: "passkey";
|
|
2174
2175
|
version: string;
|
|
2175
2176
|
endpoints: {
|
|
2176
|
-
generatePasskeyRegistrationOptions: import("better-
|
|
2177
|
+
generatePasskeyRegistrationOptions: import("better-call").StrictEndpoint<"/passkey/generate-register-options", {
|
|
2177
2178
|
method: "GET";
|
|
2178
|
-
use: import("better-
|
|
2179
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2179
2180
|
session: {
|
|
2180
2181
|
session: Record<string, any> & {
|
|
2181
2182
|
id: string;
|
|
@@ -2210,15 +2211,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2210
2211
|
openapi: {
|
|
2211
2212
|
operationId: string;
|
|
2212
2213
|
description: string;
|
|
2213
|
-
parameters:
|
|
2214
|
-
name: string;
|
|
2215
|
-
in: "query";
|
|
2216
|
-
required: false;
|
|
2217
|
-
description: string;
|
|
2218
|
-
schema: {
|
|
2219
|
-
type: "string";
|
|
2220
|
-
};
|
|
2221
|
-
}[];
|
|
2214
|
+
parameters: import("better-call").OpenAPIParameter[];
|
|
2222
2215
|
responses: {
|
|
2223
2216
|
200: {
|
|
2224
2217
|
description: string;
|
|
@@ -2321,7 +2314,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2321
2314
|
};
|
|
2322
2315
|
};
|
|
2323
2316
|
}, import("@better-auth/passkey/client").PublicKeyCredentialCreationOptionsJSON>;
|
|
2324
|
-
generatePasskeyAuthenticationOptions: import("better-
|
|
2317
|
+
generatePasskeyAuthenticationOptions: import("better-call").StrictEndpoint<"/passkey/generate-authenticate-options", {
|
|
2325
2318
|
method: "GET";
|
|
2326
2319
|
metadata: {
|
|
2327
2320
|
openapi: {
|
|
@@ -2415,13 +2408,14 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2415
2408
|
};
|
|
2416
2409
|
};
|
|
2417
2410
|
}, import("@better-auth/passkey/client").PublicKeyCredentialRequestOptionsJSON>;
|
|
2418
|
-
verifyPasskeyRegistration: import("better-
|
|
2411
|
+
verifyPasskeyRegistration: import("better-call").StrictEndpoint<"/passkey/verify-registration", {
|
|
2419
2412
|
method: "POST";
|
|
2420
2413
|
body: import("zod").ZodObject<{
|
|
2421
2414
|
response: import("zod").ZodAny;
|
|
2422
2415
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2416
|
+
createSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
2423
2417
|
}, import("zod/v4/core").$strip>;
|
|
2424
|
-
use: import("better-
|
|
2418
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2425
2419
|
session: {
|
|
2426
2420
|
session: Record<string, any> & {
|
|
2427
2421
|
id: string;
|
|
@@ -2454,7 +2448,20 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2454
2448
|
content: {
|
|
2455
2449
|
"application/json": {
|
|
2456
2450
|
schema: {
|
|
2457
|
-
|
|
2451
|
+
readonly type: "object";
|
|
2452
|
+
readonly allOf: readonly [{
|
|
2453
|
+
readonly $ref: "#/components/schemas/Passkey";
|
|
2454
|
+
}, {
|
|
2455
|
+
readonly type: "object";
|
|
2456
|
+
readonly properties: {
|
|
2457
|
+
readonly session: {
|
|
2458
|
+
readonly $ref: "#/components/schemas/Session";
|
|
2459
|
+
};
|
|
2460
|
+
readonly user: {
|
|
2461
|
+
readonly $ref: "#/components/schemas/User";
|
|
2462
|
+
};
|
|
2463
|
+
};
|
|
2464
|
+
}];
|
|
2458
2465
|
};
|
|
2459
2466
|
};
|
|
2460
2467
|
};
|
|
@@ -2466,7 +2473,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2466
2473
|
};
|
|
2467
2474
|
};
|
|
2468
2475
|
}, import("@better-auth/passkey/client").Passkey>;
|
|
2469
|
-
verifyPasskeyAuthentication: import("better-
|
|
2476
|
+
verifyPasskeyAuthentication: import("better-call").StrictEndpoint<"/passkey/verify-authentication", {
|
|
2470
2477
|
method: "POST";
|
|
2471
2478
|
body: import("zod").ZodObject<{
|
|
2472
2479
|
response: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
@@ -2523,9 +2530,9 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2523
2530
|
image?: string | null | undefined;
|
|
2524
2531
|
};
|
|
2525
2532
|
}>;
|
|
2526
|
-
listPasskeys: import("better-
|
|
2533
|
+
listPasskeys: import("better-call").StrictEndpoint<"/passkey/list-user-passkeys", {
|
|
2527
2534
|
method: "GET";
|
|
2528
|
-
use: import("better-
|
|
2535
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2529
2536
|
session: {
|
|
2530
2537
|
session: Record<string, any> & {
|
|
2531
2538
|
id: string;
|
|
@@ -2571,12 +2578,12 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2571
2578
|
};
|
|
2572
2579
|
};
|
|
2573
2580
|
}, import("@better-auth/passkey/client").Passkey[]>;
|
|
2574
|
-
deletePasskey: import("better-
|
|
2581
|
+
deletePasskey: import("better-call").StrictEndpoint<"/passkey/delete-passkey", {
|
|
2575
2582
|
method: "POST";
|
|
2576
2583
|
body: import("zod").ZodObject<{
|
|
2577
2584
|
id: import("zod").ZodString;
|
|
2578
2585
|
}, import("zod/v4/core").$strip>;
|
|
2579
|
-
use: (import("better-
|
|
2586
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2580
2587
|
session: {
|
|
2581
2588
|
session: Record<string, any> & {
|
|
2582
2589
|
id: string;
|
|
@@ -2598,7 +2605,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2598
2605
|
image?: string | null | undefined;
|
|
2599
2606
|
};
|
|
2600
2607
|
};
|
|
2601
|
-
}>> | import("better-
|
|
2608
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2602
2609
|
verifiedResource: {};
|
|
2603
2610
|
}>>)[];
|
|
2604
2611
|
metadata: {
|
|
@@ -2628,13 +2635,13 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2628
2635
|
}, {
|
|
2629
2636
|
status: boolean;
|
|
2630
2637
|
}>;
|
|
2631
|
-
updatePasskey: import("better-
|
|
2638
|
+
updatePasskey: import("better-call").StrictEndpoint<"/passkey/update-passkey", {
|
|
2632
2639
|
method: "POST";
|
|
2633
2640
|
body: import("zod").ZodObject<{
|
|
2634
2641
|
id: import("zod").ZodString;
|
|
2635
2642
|
name: import("zod").ZodString;
|
|
2636
2643
|
}, import("zod/v4/core").$strip>;
|
|
2637
|
-
use: (import("better-
|
|
2644
|
+
use: (import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2638
2645
|
session: {
|
|
2639
2646
|
session: Record<string, any> & {
|
|
2640
2647
|
id: string;
|
|
@@ -2656,7 +2663,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2656
2663
|
image?: string | null | undefined;
|
|
2657
2664
|
};
|
|
2658
2665
|
};
|
|
2659
|
-
}>> | import("better-
|
|
2666
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2660
2667
|
verifiedResource: {};
|
|
2661
2668
|
}>>)[];
|
|
2662
2669
|
metadata: {
|
|
@@ -2745,6 +2752,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2745
2752
|
PASSKEY_NOT_FOUND: import("better-auth").RawError<"PASSKEY_NOT_FOUND">;
|
|
2746
2753
|
AUTHENTICATION_FAILED: import("better-auth").RawError<"AUTHENTICATION_FAILED">;
|
|
2747
2754
|
UNABLE_TO_CREATE_SESSION: import("better-auth").RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
2755
|
+
USER_NOT_FOUND: import("better-auth").RawError<"USER_NOT_FOUND">;
|
|
2748
2756
|
FAILED_TO_UPDATE_PASSKEY: import("better-auth").RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
2749
2757
|
PREVIOUSLY_REGISTERED: import("better-auth").RawError<"PREVIOUSLY_REGISTERED">;
|
|
2750
2758
|
REGISTRATION_CANCELLED: import("better-auth").RawError<"REGISTRATION_CANCELLED">;
|
|
@@ -2813,6 +2821,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2813
2821
|
name?: string;
|
|
2814
2822
|
authenticatorAttachment?: "platform" | "cross-platform";
|
|
2815
2823
|
context?: string | null;
|
|
2824
|
+
createSession?: boolean;
|
|
2816
2825
|
extensions?: import("@better-auth/passkey/client").AuthenticationExtensionsClientInputs;
|
|
2817
2826
|
useAutoRegister?: boolean;
|
|
2818
2827
|
returnWebAuthnResponse?: boolean;
|
|
@@ -2824,14 +2833,20 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2824
2833
|
statusText: string;
|
|
2825
2834
|
};
|
|
2826
2835
|
} | {
|
|
2827
|
-
data: import("@better-auth/passkey/client").Passkey
|
|
2836
|
+
data: import("@better-auth/passkey/client").Passkey & {
|
|
2837
|
+
session?: import("better-auth").Session;
|
|
2838
|
+
user?: import("better-auth").User;
|
|
2839
|
+
};
|
|
2828
2840
|
error: null;
|
|
2829
2841
|
} | {
|
|
2830
2842
|
webauthn: {
|
|
2831
2843
|
response: import("@better-auth/passkey/client").RegistrationResponseJSON;
|
|
2832
2844
|
clientExtensionResults: import("@better-auth/passkey/client").AuthenticationExtensionsClientOutputs;
|
|
2833
2845
|
};
|
|
2834
|
-
data: import("@better-auth/passkey/client").Passkey
|
|
2846
|
+
data: import("@better-auth/passkey/client").Passkey & {
|
|
2847
|
+
session?: import("better-auth").Session;
|
|
2848
|
+
user?: import("better-auth").User;
|
|
2849
|
+
};
|
|
2835
2850
|
error: null;
|
|
2836
2851
|
} | {
|
|
2837
2852
|
data: null;
|
|
@@ -2869,6 +2884,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2869
2884
|
PASSKEY_NOT_FOUND: import("better-auth").RawError<"PASSKEY_NOT_FOUND">;
|
|
2870
2885
|
AUTHENTICATION_FAILED: import("better-auth").RawError<"AUTHENTICATION_FAILED">;
|
|
2871
2886
|
UNABLE_TO_CREATE_SESSION: import("better-auth").RawError<"UNABLE_TO_CREATE_SESSION">;
|
|
2887
|
+
USER_NOT_FOUND: import("better-auth").RawError<"USER_NOT_FOUND">;
|
|
2872
2888
|
FAILED_TO_UPDATE_PASSKEY: import("better-auth").RawError<"FAILED_TO_UPDATE_PASSKEY">;
|
|
2873
2889
|
PREVIOUSLY_REGISTERED: import("better-auth").RawError<"PREVIOUSLY_REGISTERED">;
|
|
2874
2890
|
REGISTRATION_CANCELLED: import("better-auth").RawError<"REGISTRATION_CANCELLED">;
|
|
@@ -2962,16 +2978,24 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
2962
2978
|
id: "two-factor";
|
|
2963
2979
|
version: string;
|
|
2964
2980
|
endpoints: {
|
|
2965
|
-
enableTwoFactor: import("better-
|
|
2981
|
+
enableTwoFactor: import("better-call").StrictEndpoint<"/two-factor/enable", {
|
|
2966
2982
|
method: "POST";
|
|
2967
2983
|
body: import("zod").ZodObject<{
|
|
2968
2984
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2985
|
+
method: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2986
|
+
otp: "otp";
|
|
2987
|
+
totp: "totp";
|
|
2988
|
+
}>>;
|
|
2969
2989
|
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2970
2990
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
2971
2991
|
password: import("zod").ZodString;
|
|
2992
|
+
method: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
2993
|
+
otp: "otp";
|
|
2994
|
+
totp: "totp";
|
|
2995
|
+
}>>;
|
|
2972
2996
|
issuer: import("zod").ZodOptional<import("zod").ZodString>;
|
|
2973
2997
|
}, import("zod/v4/core").$strip>;
|
|
2974
|
-
use: import("better-
|
|
2998
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
2975
2999
|
session: {
|
|
2976
3000
|
session: Record<string, any> & {
|
|
2977
3001
|
id: string;
|
|
@@ -3006,6 +3030,11 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3006
3030
|
schema: {
|
|
3007
3031
|
type: "object";
|
|
3008
3032
|
properties: {
|
|
3033
|
+
method: {
|
|
3034
|
+
type: string;
|
|
3035
|
+
enum: string[];
|
|
3036
|
+
description: string;
|
|
3037
|
+
};
|
|
3009
3038
|
totpURI: {
|
|
3010
3039
|
type: string;
|
|
3011
3040
|
description: string;
|
|
@@ -3018,6 +3047,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3018
3047
|
description: string;
|
|
3019
3048
|
};
|
|
3020
3049
|
};
|
|
3050
|
+
required: string[];
|
|
3021
3051
|
};
|
|
3022
3052
|
};
|
|
3023
3053
|
};
|
|
@@ -3026,17 +3056,20 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3026
3056
|
};
|
|
3027
3057
|
};
|
|
3028
3058
|
}, {
|
|
3059
|
+
method: "otp";
|
|
3060
|
+
} | {
|
|
3061
|
+
method: "totp";
|
|
3029
3062
|
totpURI: string;
|
|
3030
3063
|
backupCodes: string[];
|
|
3031
3064
|
}>;
|
|
3032
|
-
disableTwoFactor: import("better-
|
|
3065
|
+
disableTwoFactor: import("better-call").StrictEndpoint<"/two-factor/disable", {
|
|
3033
3066
|
method: "POST";
|
|
3034
3067
|
body: import("zod").ZodObject<{
|
|
3035
3068
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3036
3069
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
3037
3070
|
password: import("zod").ZodString;
|
|
3038
3071
|
}, import("zod/v4/core").$strip>;
|
|
3039
|
-
use: import("better-
|
|
3072
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3040
3073
|
session: {
|
|
3041
3074
|
session: Record<string, any> & {
|
|
3042
3075
|
id: string;
|
|
@@ -3085,7 +3118,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3085
3118
|
}, {
|
|
3086
3119
|
status: boolean;
|
|
3087
3120
|
}>;
|
|
3088
|
-
verifyBackupCode: import("better-
|
|
3121
|
+
verifyBackupCode: import("better-call").StrictEndpoint<"/two-factor/verify-backup-code", {
|
|
3089
3122
|
method: "POST";
|
|
3090
3123
|
body: import("zod").ZodObject<{
|
|
3091
3124
|
code: import("zod").ZodString;
|
|
@@ -3196,14 +3229,14 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3196
3229
|
image?: string | null | undefined;
|
|
3197
3230
|
}) | import("better-auth/plugins/two-factor").UserWithTwoFactor;
|
|
3198
3231
|
}>;
|
|
3199
|
-
generateBackupCodes: import("better-
|
|
3232
|
+
generateBackupCodes: import("better-call").StrictEndpoint<"/two-factor/generate-backup-codes", {
|
|
3200
3233
|
method: "POST";
|
|
3201
3234
|
body: import("zod").ZodObject<{
|
|
3202
3235
|
password: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3203
3236
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
3204
3237
|
password: import("zod").ZodString;
|
|
3205
3238
|
}, import("zod/v4/core").$strip>;
|
|
3206
|
-
use: import("better-
|
|
3239
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3207
3240
|
session: {
|
|
3208
3241
|
session: Record<string, any> & {
|
|
3209
3242
|
id: string;
|
|
@@ -3262,7 +3295,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3262
3295
|
status: boolean;
|
|
3263
3296
|
backupCodes: string[];
|
|
3264
3297
|
}>;
|
|
3265
|
-
viewBackupCodes: import("better-
|
|
3298
|
+
viewBackupCodes: import("better-call").StrictEndpoint<string, {
|
|
3266
3299
|
method: "POST";
|
|
3267
3300
|
body: import("zod").ZodObject<{
|
|
3268
3301
|
userId: import("zod").ZodCoercedString<unknown>;
|
|
@@ -3271,7 +3304,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3271
3304
|
status: boolean;
|
|
3272
3305
|
backupCodes: string[];
|
|
3273
3306
|
}>;
|
|
3274
|
-
sendTwoFactorOTP: import("better-
|
|
3307
|
+
sendTwoFactorOTP: import("better-call").StrictEndpoint<"/two-factor/send-otp", {
|
|
3275
3308
|
method: "POST";
|
|
3276
3309
|
body: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
3277
3310
|
trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -3302,7 +3335,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3302
3335
|
}, {
|
|
3303
3336
|
status: boolean;
|
|
3304
3337
|
}>;
|
|
3305
|
-
verifyTwoFactorOTP: import("better-
|
|
3338
|
+
verifyTwoFactorOTP: import("better-call").StrictEndpoint<"/two-factor/verify-otp", {
|
|
3306
3339
|
method: "POST";
|
|
3307
3340
|
body: import("zod").ZodObject<{
|
|
3308
3341
|
code: import("zod").ZodString;
|
|
@@ -3391,7 +3424,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3391
3424
|
image?: string | null | undefined;
|
|
3392
3425
|
};
|
|
3393
3426
|
}>;
|
|
3394
|
-
generateTOTP: import("better-
|
|
3427
|
+
generateTOTP: import("better-call").StrictEndpoint<string, {
|
|
3395
3428
|
method: "POST";
|
|
3396
3429
|
body: import("zod").ZodObject<{
|
|
3397
3430
|
secret: import("zod").ZodString;
|
|
@@ -3422,9 +3455,9 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3422
3455
|
}, {
|
|
3423
3456
|
code: string;
|
|
3424
3457
|
}>;
|
|
3425
|
-
getTOTPURI: import("better-
|
|
3458
|
+
getTOTPURI: import("better-call").StrictEndpoint<"/two-factor/get-totp-uri", {
|
|
3426
3459
|
method: "POST";
|
|
3427
|
-
use: import("better-
|
|
3460
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3428
3461
|
session: {
|
|
3429
3462
|
session: Record<string, any> & {
|
|
3430
3463
|
id: string;
|
|
@@ -3478,7 +3511,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3478
3511
|
}, {
|
|
3479
3512
|
totpURI: string;
|
|
3480
3513
|
}>;
|
|
3481
|
-
verifyTOTP: import("better-
|
|
3514
|
+
verifyTOTP: import("better-call").StrictEndpoint<"/two-factor/verify-totp", {
|
|
3482
3515
|
method: "POST";
|
|
3483
3516
|
body: import("zod").ZodObject<{
|
|
3484
3517
|
code: import("zod").ZodString;
|
|
@@ -3527,7 +3560,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3527
3560
|
hooks: {
|
|
3528
3561
|
after: {
|
|
3529
3562
|
matcher(context: import("better-auth").HookEndpointContext): boolean;
|
|
3530
|
-
handler: import("better-
|
|
3563
|
+
handler: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
3531
3564
|
twoFactorRedirect: boolean;
|
|
3532
3565
|
twoFactorMethods: string[];
|
|
3533
3566
|
} | undefined>>;
|
|
@@ -3596,8 +3629,10 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3596
3629
|
}[];
|
|
3597
3630
|
$ERROR_CODES: {
|
|
3598
3631
|
OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
|
|
3632
|
+
OTP_NOT_CONFIGURED: import("better-auth").RawError<"OTP_NOT_CONFIGURED">;
|
|
3599
3633
|
OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
|
|
3600
3634
|
TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
|
|
3635
|
+
TOTP_NOT_CONFIGURED: import("better-auth").RawError<"TOTP_NOT_CONFIGURED">;
|
|
3601
3636
|
TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
|
|
3602
3637
|
BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
|
|
3603
3638
|
INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
|
|
@@ -3630,8 +3665,10 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3630
3665
|
}[];
|
|
3631
3666
|
$ERROR_CODES: {
|
|
3632
3667
|
OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
|
|
3668
|
+
OTP_NOT_CONFIGURED: import("better-auth").RawError<"OTP_NOT_CONFIGURED">;
|
|
3633
3669
|
OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
|
|
3634
3670
|
TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
|
|
3671
|
+
TOTP_NOT_CONFIGURED: import("better-auth").RawError<"TOTP_NOT_CONFIGURED">;
|
|
3635
3672
|
TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
|
|
3636
3673
|
BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
|
|
3637
3674
|
INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
|
|
@@ -3643,7 +3680,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3643
3680
|
}, {
|
|
3644
3681
|
id: "device-authorization";
|
|
3645
3682
|
version: string;
|
|
3646
|
-
$InferServerPlugin:
|
|
3683
|
+
$InferServerPlugin: {
|
|
3647
3684
|
id: "device-authorization";
|
|
3648
3685
|
version: string;
|
|
3649
3686
|
schema: {
|
|
@@ -3686,24 +3723,42 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3686
3723
|
required: false;
|
|
3687
3724
|
};
|
|
3688
3725
|
};
|
|
3726
|
+
indexes: {
|
|
3727
|
+
fields: [string];
|
|
3728
|
+
unique: true;
|
|
3729
|
+
}[];
|
|
3689
3730
|
};
|
|
3690
3731
|
};
|
|
3691
3732
|
endpoints: {
|
|
3692
|
-
deviceCode: import("better-
|
|
3733
|
+
deviceCode: import("better-call").StrictEndpoint<"/device/code", {
|
|
3693
3734
|
method: "POST";
|
|
3735
|
+
cloneRequest: true;
|
|
3694
3736
|
body: import("zod").ZodObject<{
|
|
3695
3737
|
client_id: import("zod").ZodString;
|
|
3696
3738
|
user_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3697
3739
|
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3740
|
+
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
3741
|
+
user_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3742
|
+
scope: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3743
|
+
client_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3698
3744
|
}, import("zod/v4/core").$strip>;
|
|
3699
3745
|
error: import("zod").ZodObject<{
|
|
3700
3746
|
error: import("zod").ZodEnum<{
|
|
3701
|
-
invalid_request: "invalid_request";
|
|
3702
3747
|
invalid_client: "invalid_client";
|
|
3748
|
+
invalid_request: "invalid_request";
|
|
3749
|
+
invalid_scope: "invalid_scope";
|
|
3750
|
+
server_error: "server_error";
|
|
3751
|
+
unauthorized_client: "unauthorized_client";
|
|
3703
3752
|
}>;
|
|
3704
3753
|
error_description: import("zod").ZodString;
|
|
3705
3754
|
}, import("zod/v4/core").$strip>;
|
|
3755
|
+
onValidationError: ({ issues, message }: {
|
|
3756
|
+
message: string;
|
|
3757
|
+
issues: readonly import("better-call").StandardSchemaV1.Issue[];
|
|
3758
|
+
}) => never;
|
|
3706
3759
|
metadata: {
|
|
3760
|
+
noStore: boolean;
|
|
3761
|
+
allowedMediaTypes: string[];
|
|
3707
3762
|
openapi: {
|
|
3708
3763
|
description: string;
|
|
3709
3764
|
responses: {
|
|
@@ -3746,6 +3801,25 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3746
3801
|
};
|
|
3747
3802
|
};
|
|
3748
3803
|
400: {
|
|
3804
|
+
description: string;
|
|
3805
|
+
content: {
|
|
3806
|
+
"application/json": {
|
|
3807
|
+
schema: {
|
|
3808
|
+
type: "object";
|
|
3809
|
+
properties: {
|
|
3810
|
+
error: {
|
|
3811
|
+
type: string;
|
|
3812
|
+
enum: ["invalid_request", "invalid_client", "unauthorized_client", "invalid_scope"];
|
|
3813
|
+
};
|
|
3814
|
+
error_description: {
|
|
3815
|
+
type: string;
|
|
3816
|
+
};
|
|
3817
|
+
};
|
|
3818
|
+
};
|
|
3819
|
+
};
|
|
3820
|
+
};
|
|
3821
|
+
};
|
|
3822
|
+
500: {
|
|
3749
3823
|
description: string;
|
|
3750
3824
|
content: {
|
|
3751
3825
|
"application/json": {
|
|
@@ -3775,7 +3849,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3775
3849
|
expires_in: number;
|
|
3776
3850
|
interval: number;
|
|
3777
3851
|
}>;
|
|
3778
|
-
deviceToken: import("better-
|
|
3852
|
+
deviceToken: import("better-call").StrictEndpoint<"/device/token", {
|
|
3779
3853
|
method: "POST";
|
|
3780
3854
|
body: import("zod").ZodObject<{
|
|
3781
3855
|
grant_type: import("zod").ZodLiteral<"urn:ietf:params:oauth:grant-type:device_code">;
|
|
@@ -3794,6 +3868,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3794
3868
|
error_description: import("zod").ZodString;
|
|
3795
3869
|
}, import("zod/v4/core").$strip>;
|
|
3796
3870
|
metadata: {
|
|
3871
|
+
noStore: boolean;
|
|
3797
3872
|
openapi: {
|
|
3798
3873
|
description: string;
|
|
3799
3874
|
responses: {
|
|
@@ -3843,7 +3918,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3843
3918
|
expires_in: number;
|
|
3844
3919
|
scope: string;
|
|
3845
3920
|
}>;
|
|
3846
|
-
deviceVerify: import("better-
|
|
3921
|
+
deviceVerify: import("better-call").StrictEndpoint<"/device", {
|
|
3847
3922
|
method: "GET";
|
|
3848
3923
|
query: import("zod").ZodObject<{
|
|
3849
3924
|
user_code: import("zod").ZodString;
|
|
@@ -3874,6 +3949,14 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3874
3949
|
enum: string[];
|
|
3875
3950
|
description: string;
|
|
3876
3951
|
};
|
|
3952
|
+
client_id: {
|
|
3953
|
+
type: string;
|
|
3954
|
+
description: string;
|
|
3955
|
+
};
|
|
3956
|
+
scope: {
|
|
3957
|
+
type: string;
|
|
3958
|
+
description: string;
|
|
3959
|
+
};
|
|
3877
3960
|
};
|
|
3878
3961
|
};
|
|
3879
3962
|
};
|
|
@@ -3885,8 +3968,10 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3885
3968
|
}, {
|
|
3886
3969
|
user_code: string;
|
|
3887
3970
|
status: string;
|
|
3888
|
-
|
|
3889
|
-
|
|
3971
|
+
client_id?: string | undefined;
|
|
3972
|
+
scope?: string | undefined;
|
|
3973
|
+
} & Partial<Record<never, never>>>;
|
|
3974
|
+
deviceApprove: import("better-call").StrictEndpoint<"/device/approve", {
|
|
3890
3975
|
method: "POST";
|
|
3891
3976
|
body: import("zod").ZodObject<{
|
|
3892
3977
|
userCode: import("zod").ZodString;
|
|
@@ -3927,7 +4012,7 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3927
4012
|
}, {
|
|
3928
4013
|
success: boolean;
|
|
3929
4014
|
}>;
|
|
3930
|
-
deviceDeny: import("better-
|
|
4015
|
+
deviceDeny: import("better-call").StrictEndpoint<"/device/deny", {
|
|
3931
4016
|
method: "POST";
|
|
3932
4017
|
body: import("zod").ZodObject<{
|
|
3933
4018
|
userCode: import("zod").ZodString;
|
|
@@ -3968,6 +4053,11 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3968
4053
|
success: boolean;
|
|
3969
4054
|
}>;
|
|
3970
4055
|
};
|
|
4056
|
+
rateLimit: {
|
|
4057
|
+
pathMatcher(path: string): path is "/device";
|
|
4058
|
+
window: number;
|
|
4059
|
+
max: number;
|
|
4060
|
+
}[];
|
|
3971
4061
|
$ERROR_CODES: {
|
|
3972
4062
|
USER_NOT_FOUND: import("better-auth").RawError<"USER_NOT_FOUND">;
|
|
3973
4063
|
FAILED_TO_CREATE_SESSION: import("better-auth").RawError<"FAILED_TO_CREATE_SESSION">;
|
|
@@ -3983,7 +4073,10 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
3983
4073
|
INVALID_DEVICE_CODE_STATUS: import("better-auth").RawError<"INVALID_DEVICE_CODE_STATUS">;
|
|
3984
4074
|
AUTHENTICATION_REQUIRED: import("better-auth").RawError<"AUTHENTICATION_REQUIRED">;
|
|
3985
4075
|
};
|
|
3986
|
-
options:
|
|
4076
|
+
options: {
|
|
4077
|
+
grant: import("better-auth/plugins/device-authorization").DeviceAuthorizationGrant<Readonly<{
|
|
4078
|
+
[k: string]: import("zod/v4/core").$ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>>;
|
|
4079
|
+
}>, Record<string, unknown>> | undefined;
|
|
3987
4080
|
expiresIn: import("better-auth/plugins/device-authorization").TimeString;
|
|
3988
4081
|
interval: import("better-auth/plugins/device-authorization").TimeString;
|
|
3989
4082
|
deviceCodeLength: number;
|
|
@@ -4009,8 +4102,8 @@ declare function createConfiguredBetterAuthClient(config: DecodedDalpAuthClientC
|
|
|
4009
4102
|
} | undefined;
|
|
4010
4103
|
} | undefined;
|
|
4011
4104
|
} | undefined;
|
|
4012
|
-
}
|
|
4013
|
-
}
|
|
4105
|
+
};
|
|
4106
|
+
};
|
|
4014
4107
|
pathMethods: {
|
|
4015
4108
|
"/device/code": "POST";
|
|
4016
4109
|
"/device/token": "POST";
|
package/dist/auth.js
CHANGED
|
@@ -102,7 +102,7 @@ function createCookieStoreFetch(cookieStore, fetchImpl = globalThis.fetch) {
|
|
|
102
102
|
// package.json
|
|
103
103
|
var package_default = {
|
|
104
104
|
name: "@settlemint/dalp-sdk",
|
|
105
|
-
version: "3.1.4-main.
|
|
105
|
+
version: "3.1.4-main.32551787629",
|
|
106
106
|
private: false,
|
|
107
107
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
108
108
|
homepage: "https://settlemint.com",
|
|
@@ -209,12 +209,13 @@ var package_default = {
|
|
|
209
209
|
typecheck: "oxlint --deny-warnings ."
|
|
210
210
|
},
|
|
211
211
|
dependencies: {
|
|
212
|
-
"@better-auth/api-key": "1.
|
|
213
|
-
"@better-auth/passkey": "1.
|
|
214
|
-
"better-auth": "1.
|
|
212
|
+
"@better-auth/api-key": "1.7.1",
|
|
213
|
+
"@better-auth/passkey": "1.7.1",
|
|
214
|
+
"better-auth": "1.7.1",
|
|
215
|
+
"better-call": "1.4.0",
|
|
215
216
|
dnum: "2.17.0",
|
|
216
217
|
standardwebhooks: "1.0.0",
|
|
217
|
-
viem: "2.55.
|
|
218
|
+
viem: "2.55.19"
|
|
218
219
|
},
|
|
219
220
|
devDependencies: {
|
|
220
221
|
"@arethetypeswrong/cli": "0.18.5",
|
|
@@ -223,7 +224,7 @@ var package_default = {
|
|
|
223
224
|
"@tools/scripts": "workspace:*",
|
|
224
225
|
"@tools/typescript-config": "workspace:*",
|
|
225
226
|
"@types/bun": "catalog:toolchain",
|
|
226
|
-
publint: "0.3.
|
|
227
|
+
publint: "0.3.24",
|
|
227
228
|
typescript: "7.0.2",
|
|
228
229
|
zod: "4.4.3"
|
|
229
230
|
},
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/dalp-sdk",
|
|
3
|
-
"version": "3.1.4-main.
|
|
3
|
+
"version": "3.1.4-main.32551787629",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Fully typed SDK for the DALP tokenization platform API",
|
|
6
6
|
"homepage": "https://settlemint.com",
|
|
@@ -107,12 +107,13 @@
|
|
|
107
107
|
"typecheck": "oxlint --deny-warnings ."
|
|
108
108
|
},
|
|
109
109
|
"dependencies": {
|
|
110
|
-
"@better-auth/api-key": "1.
|
|
111
|
-
"@better-auth/passkey": "1.
|
|
112
|
-
"better-auth": "1.
|
|
110
|
+
"@better-auth/api-key": "1.7.1",
|
|
111
|
+
"@better-auth/passkey": "1.7.1",
|
|
112
|
+
"better-auth": "1.7.1",
|
|
113
|
+
"better-call": "1.4.0",
|
|
113
114
|
"dnum": "2.17.0",
|
|
114
115
|
"standardwebhooks": "1.0.0",
|
|
115
|
-
"viem": "2.55.
|
|
116
|
+
"viem": "2.55.19"
|
|
116
117
|
},
|
|
117
118
|
"devDependencies": {
|
|
118
119
|
"@arethetypeswrong/cli": "0.18.5",
|
|
@@ -121,7 +122,7 @@
|
|
|
121
122
|
"@tools/scripts": "3.1.4",
|
|
122
123
|
"@tools/typescript-config": "3.1.4",
|
|
123
124
|
"@types/bun": "1.4.0",
|
|
124
|
-
"publint": "0.3.
|
|
125
|
+
"publint": "0.3.24",
|
|
125
126
|
"typescript": "7.0.2",
|
|
126
127
|
"zod": "4.4.3"
|
|
127
128
|
},
|