@aphexcms/auth 0.2.2 → 0.3.0-next.20261109083516

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.
@@ -0,0 +1,738 @@
1
+ import type { AdminAuthClient } from '@aphexcms/cms-core/client';
2
+ /**
3
+ * The better-auth client, for a login page of your own (`authClient.signIn.social(...)`).
4
+ * The admin doesn't need this: hand it `adminAuthClient`.
5
+ */
6
+ export declare const authClient: import("better-auth/svelte").SvelteAuthClient<{
7
+ plugins: ({
8
+ id: "api-key";
9
+ version: string;
10
+ $InferServerPlugin: ReturnType<typeof import("@better-auth/api-key").apiKey>;
11
+ pathMethods: {
12
+ "/api-key/create": "POST";
13
+ "/api-key/delete": "POST";
14
+ "/api-key/delete-all-expired-api-keys": "POST";
15
+ };
16
+ $ERROR_CODES: {
17
+ INVALID_METADATA_TYPE: import("better-auth").RawError<"INVALID_METADATA_TYPE">;
18
+ REFILL_AMOUNT_AND_INTERVAL_REQUIRED: import("better-auth").RawError<"REFILL_AMOUNT_AND_INTERVAL_REQUIRED">;
19
+ REFILL_INTERVAL_AND_AMOUNT_REQUIRED: import("better-auth").RawError<"REFILL_INTERVAL_AND_AMOUNT_REQUIRED">;
20
+ USER_BANNED: import("better-auth").RawError<"USER_BANNED">;
21
+ UNAUTHORIZED_SESSION: import("better-auth").RawError<"UNAUTHORIZED_SESSION">;
22
+ KEY_NOT_FOUND: import("better-auth").RawError<"KEY_NOT_FOUND">;
23
+ KEY_DISABLED: import("better-auth").RawError<"KEY_DISABLED">;
24
+ KEY_EXPIRED: import("better-auth").RawError<"KEY_EXPIRED">;
25
+ USAGE_EXCEEDED: import("better-auth").RawError<"USAGE_EXCEEDED">;
26
+ KEY_NOT_RECOVERABLE: import("better-auth").RawError<"KEY_NOT_RECOVERABLE">;
27
+ EXPIRES_IN_IS_TOO_SMALL: import("better-auth").RawError<"EXPIRES_IN_IS_TOO_SMALL">;
28
+ EXPIRES_IN_IS_TOO_LARGE: import("better-auth").RawError<"EXPIRES_IN_IS_TOO_LARGE">;
29
+ INVALID_REMAINING: import("better-auth").RawError<"INVALID_REMAINING">;
30
+ INVALID_PREFIX_LENGTH: import("better-auth").RawError<"INVALID_PREFIX_LENGTH">;
31
+ INVALID_NAME_LENGTH: import("better-auth").RawError<"INVALID_NAME_LENGTH">;
32
+ METADATA_DISABLED: import("better-auth").RawError<"METADATA_DISABLED">;
33
+ RATE_LIMIT_EXCEEDED: import("better-auth").RawError<"RATE_LIMIT_EXCEEDED">;
34
+ NO_VALUES_TO_UPDATE: import("better-auth").RawError<"NO_VALUES_TO_UPDATE">;
35
+ KEY_DISABLED_EXPIRATION: import("better-auth").RawError<"KEY_DISABLED_EXPIRATION">;
36
+ INVALID_API_KEY: import("better-auth").RawError<"INVALID_API_KEY">;
37
+ INVALID_USER_ID_FROM_API_KEY: import("better-auth").RawError<"INVALID_USER_ID_FROM_API_KEY">;
38
+ INVALID_REFERENCE_ID_FROM_API_KEY: import("better-auth").RawError<"INVALID_REFERENCE_ID_FROM_API_KEY">;
39
+ INVALID_API_KEY_GETTER_RETURN_TYPE: import("better-auth").RawError<"INVALID_API_KEY_GETTER_RETURN_TYPE">;
40
+ SERVER_ONLY_PROPERTY: import("better-auth").RawError<"SERVER_ONLY_PROPERTY">;
41
+ FAILED_TO_UPDATE_API_KEY: import("better-auth").RawError<"FAILED_TO_UPDATE_API_KEY">;
42
+ NAME_REQUIRED: import("better-auth").RawError<"NAME_REQUIRED">;
43
+ ORGANIZATION_ID_REQUIRED: import("better-auth").RawError<"ORGANIZATION_ID_REQUIRED">;
44
+ USER_NOT_MEMBER_OF_ORGANIZATION: import("better-auth").RawError<"USER_NOT_MEMBER_OF_ORGANIZATION">;
45
+ INSUFFICIENT_API_KEY_PERMISSIONS: import("better-auth").RawError<"INSUFFICIENT_API_KEY_PERMISSIONS">;
46
+ NO_DEFAULT_API_KEY_CONFIGURATION_FOUND: import("better-auth").RawError<"NO_DEFAULT_API_KEY_CONFIGURATION_FOUND">;
47
+ ORGANIZATION_PLUGIN_REQUIRED: import("better-auth").RawError<"ORGANIZATION_PLUGIN_REQUIRED">;
48
+ };
49
+ } | {
50
+ id: "two-factor";
51
+ version: string;
52
+ $InferServerPlugin: ReturnType<(<O extends import("better-auth/plugins").TwoFactorOptions>(options?: O) => {
53
+ id: "two-factor";
54
+ version: string;
55
+ endpoints: {
56
+ enableTwoFactor: import("better-auth").StrictEndpoint<"/two-factor/enable", {
57
+ method: "POST";
58
+ body: import("zod").ZodObject<{
59
+ password: import("zod").ZodOptional<import("zod").ZodString>;
60
+ issuer: import("zod").ZodOptional<import("zod").ZodString>;
61
+ }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
62
+ password: import("zod").ZodString;
63
+ issuer: import("zod").ZodOptional<import("zod").ZodString>;
64
+ }, import("zod/v4/core").$strip>;
65
+ use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
66
+ session: {
67
+ session: Record<string, any> & {
68
+ id: string;
69
+ createdAt: Date;
70
+ updatedAt: Date;
71
+ userId: string;
72
+ expiresAt: Date;
73
+ token: string;
74
+ ipAddress?: string | null | undefined;
75
+ userAgent?: string | null | undefined;
76
+ };
77
+ user: Record<string, any> & {
78
+ id: string;
79
+ createdAt: Date;
80
+ updatedAt: Date;
81
+ email: string;
82
+ emailVerified: boolean;
83
+ name: string;
84
+ image?: string | null | undefined;
85
+ };
86
+ };
87
+ }>)[];
88
+ metadata: {
89
+ openapi: {
90
+ summary: string;
91
+ description: string;
92
+ responses: {
93
+ 200: {
94
+ description: string;
95
+ content: {
96
+ "application/json": {
97
+ schema: {
98
+ type: "object";
99
+ properties: {
100
+ totpURI: {
101
+ type: string;
102
+ description: string;
103
+ };
104
+ backupCodes: {
105
+ type: string;
106
+ items: {
107
+ type: string;
108
+ };
109
+ description: string;
110
+ };
111
+ };
112
+ };
113
+ };
114
+ };
115
+ };
116
+ };
117
+ };
118
+ };
119
+ }, {
120
+ totpURI: string;
121
+ backupCodes: string[];
122
+ }>;
123
+ disableTwoFactor: import("better-auth").StrictEndpoint<"/two-factor/disable", {
124
+ method: "POST";
125
+ body: import("zod").ZodObject<{
126
+ password: import("zod").ZodOptional<import("zod").ZodString>;
127
+ }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
128
+ password: import("zod").ZodString;
129
+ }, import("zod/v4/core").$strip>;
130
+ use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
131
+ session: {
132
+ session: Record<string, any> & {
133
+ id: string;
134
+ createdAt: Date;
135
+ updatedAt: Date;
136
+ userId: string;
137
+ expiresAt: Date;
138
+ token: string;
139
+ ipAddress?: string | null | undefined;
140
+ userAgent?: string | null | undefined;
141
+ };
142
+ user: Record<string, any> & {
143
+ id: string;
144
+ createdAt: Date;
145
+ updatedAt: Date;
146
+ email: string;
147
+ emailVerified: boolean;
148
+ name: string;
149
+ image?: string | null | undefined;
150
+ };
151
+ };
152
+ }>)[];
153
+ metadata: {
154
+ openapi: {
155
+ summary: string;
156
+ description: string;
157
+ responses: {
158
+ 200: {
159
+ description: string;
160
+ content: {
161
+ "application/json": {
162
+ schema: {
163
+ type: "object";
164
+ properties: {
165
+ status: {
166
+ type: string;
167
+ };
168
+ };
169
+ };
170
+ };
171
+ };
172
+ };
173
+ };
174
+ };
175
+ };
176
+ }, {
177
+ status: boolean;
178
+ }>;
179
+ verifyBackupCode: import("better-auth").StrictEndpoint<"/two-factor/verify-backup-code", {
180
+ method: "POST";
181
+ body: import("zod").ZodObject<{
182
+ code: import("zod").ZodString;
183
+ disableSession: import("zod").ZodOptional<import("zod").ZodBoolean>;
184
+ trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
185
+ }, import("zod/v4/core").$strip>;
186
+ metadata: {
187
+ openapi: {
188
+ description: string;
189
+ responses: {
190
+ "200": {
191
+ description: string;
192
+ content: {
193
+ "application/json": {
194
+ schema: {
195
+ type: "object";
196
+ properties: {
197
+ user: {
198
+ type: string;
199
+ properties: {
200
+ id: {
201
+ type: string;
202
+ description: string;
203
+ };
204
+ email: {
205
+ type: string;
206
+ format: string;
207
+ nullable: boolean;
208
+ description: string;
209
+ };
210
+ emailVerified: {
211
+ type: string;
212
+ nullable: boolean;
213
+ description: string;
214
+ };
215
+ name: {
216
+ type: string;
217
+ nullable: boolean;
218
+ description: string;
219
+ };
220
+ image: {
221
+ type: string;
222
+ format: string;
223
+ nullable: boolean;
224
+ description: string;
225
+ };
226
+ twoFactorEnabled: {
227
+ type: string;
228
+ description: string;
229
+ };
230
+ createdAt: {
231
+ type: string;
232
+ format: string;
233
+ description: string;
234
+ };
235
+ updatedAt: {
236
+ type: string;
237
+ format: string;
238
+ description: string;
239
+ };
240
+ };
241
+ required: string[];
242
+ description: string;
243
+ };
244
+ session: {
245
+ type: string;
246
+ properties: {
247
+ token: {
248
+ type: string;
249
+ description: string;
250
+ };
251
+ userId: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ createdAt: {
256
+ type: string;
257
+ format: string;
258
+ description: string;
259
+ };
260
+ expiresAt: {
261
+ type: string;
262
+ format: string;
263
+ description: string;
264
+ };
265
+ };
266
+ required: string[];
267
+ description: string;
268
+ };
269
+ };
270
+ required: string[];
271
+ };
272
+ };
273
+ };
274
+ };
275
+ };
276
+ };
277
+ };
278
+ }, {
279
+ token: string | undefined;
280
+ user: (Record<string, any> & {
281
+ id: string;
282
+ createdAt: Date;
283
+ updatedAt: Date;
284
+ email: string;
285
+ emailVerified: boolean;
286
+ name: string;
287
+ image?: string | null | undefined;
288
+ }) | import("better-auth/plugins").UserWithTwoFactor;
289
+ }>;
290
+ generateBackupCodes: import("better-auth").StrictEndpoint<"/two-factor/generate-backup-codes", {
291
+ method: "POST";
292
+ body: import("zod").ZodObject<{
293
+ password: import("zod").ZodOptional<import("zod").ZodString>;
294
+ }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
295
+ password: import("zod").ZodString;
296
+ }, import("zod/v4/core").$strip>;
297
+ use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
298
+ session: {
299
+ session: Record<string, any> & {
300
+ id: string;
301
+ createdAt: Date;
302
+ updatedAt: Date;
303
+ userId: string;
304
+ expiresAt: Date;
305
+ token: string;
306
+ ipAddress?: string | null | undefined;
307
+ userAgent?: string | null | undefined;
308
+ };
309
+ user: Record<string, any> & {
310
+ id: string;
311
+ createdAt: Date;
312
+ updatedAt: Date;
313
+ email: string;
314
+ emailVerified: boolean;
315
+ name: string;
316
+ image?: string | null | undefined;
317
+ };
318
+ };
319
+ }>)[];
320
+ metadata: {
321
+ openapi: {
322
+ description: string;
323
+ responses: {
324
+ "200": {
325
+ description: string;
326
+ content: {
327
+ "application/json": {
328
+ schema: {
329
+ type: "object";
330
+ properties: {
331
+ status: {
332
+ type: string;
333
+ description: string;
334
+ enum: boolean[];
335
+ };
336
+ backupCodes: {
337
+ type: string;
338
+ items: {
339
+ type: string;
340
+ };
341
+ description: string;
342
+ };
343
+ };
344
+ required: string[];
345
+ };
346
+ };
347
+ };
348
+ };
349
+ };
350
+ };
351
+ };
352
+ }, {
353
+ status: boolean;
354
+ backupCodes: string[];
355
+ }>;
356
+ viewBackupCodes: import("better-auth").StrictEndpoint<string, {
357
+ method: "POST";
358
+ body: import("zod").ZodObject<{
359
+ userId: import("zod").ZodCoercedString<unknown>;
360
+ }, import("zod/v4/core").$strip>;
361
+ }, {
362
+ status: boolean;
363
+ backupCodes: string[];
364
+ }>;
365
+ sendTwoFactorOTP: import("better-auth").StrictEndpoint<"/two-factor/send-otp", {
366
+ method: "POST";
367
+ body: import("zod").ZodOptional<import("zod").ZodObject<{
368
+ trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
369
+ }, import("zod/v4/core").$strip>>;
370
+ metadata: {
371
+ openapi: {
372
+ summary: string;
373
+ description: string;
374
+ responses: {
375
+ 200: {
376
+ description: string;
377
+ content: {
378
+ "application/json": {
379
+ schema: {
380
+ type: "object";
381
+ properties: {
382
+ status: {
383
+ type: string;
384
+ };
385
+ };
386
+ };
387
+ };
388
+ };
389
+ };
390
+ };
391
+ };
392
+ };
393
+ }, {
394
+ status: boolean;
395
+ }>;
396
+ verifyTwoFactorOTP: import("better-auth").StrictEndpoint<"/two-factor/verify-otp", {
397
+ method: "POST";
398
+ body: import("zod").ZodObject<{
399
+ code: import("zod").ZodString;
400
+ trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
401
+ }, import("zod/v4/core").$strip>;
402
+ metadata: {
403
+ openapi: {
404
+ summary: string;
405
+ description: string;
406
+ responses: {
407
+ "200": {
408
+ description: string;
409
+ content: {
410
+ "application/json": {
411
+ schema: {
412
+ type: "object";
413
+ properties: {
414
+ token: {
415
+ type: string;
416
+ description: string;
417
+ };
418
+ user: {
419
+ type: string;
420
+ properties: {
421
+ id: {
422
+ type: string;
423
+ description: string;
424
+ };
425
+ email: {
426
+ type: string;
427
+ format: string;
428
+ nullable: boolean;
429
+ description: string;
430
+ };
431
+ emailVerified: {
432
+ type: string;
433
+ nullable: boolean;
434
+ description: string;
435
+ };
436
+ name: {
437
+ type: string;
438
+ nullable: boolean;
439
+ description: string;
440
+ };
441
+ image: {
442
+ type: string;
443
+ format: string;
444
+ nullable: boolean;
445
+ description: string;
446
+ };
447
+ createdAt: {
448
+ type: string;
449
+ format: string;
450
+ description: string;
451
+ };
452
+ updatedAt: {
453
+ type: string;
454
+ format: string;
455
+ description: string;
456
+ };
457
+ };
458
+ required: string[];
459
+ description: string;
460
+ };
461
+ };
462
+ required: string[];
463
+ };
464
+ };
465
+ };
466
+ };
467
+ };
468
+ };
469
+ };
470
+ }, {
471
+ token: string;
472
+ user: import("better-auth/plugins").UserWithTwoFactor;
473
+ } | {
474
+ token: string;
475
+ user: Record<string, any> & {
476
+ id: string;
477
+ createdAt: Date;
478
+ updatedAt: Date;
479
+ email: string;
480
+ emailVerified: boolean;
481
+ name: string;
482
+ image?: string | null | undefined;
483
+ };
484
+ }>;
485
+ generateTOTP: import("better-auth").StrictEndpoint<string, {
486
+ method: "POST";
487
+ body: import("zod").ZodObject<{
488
+ secret: import("zod").ZodString;
489
+ }, import("zod/v4/core").$strip>;
490
+ metadata: {
491
+ openapi: {
492
+ summary: string;
493
+ description: string;
494
+ responses: {
495
+ 200: {
496
+ description: string;
497
+ content: {
498
+ "application/json": {
499
+ schema: {
500
+ type: "object";
501
+ properties: {
502
+ code: {
503
+ type: string;
504
+ };
505
+ };
506
+ };
507
+ };
508
+ };
509
+ };
510
+ };
511
+ };
512
+ };
513
+ }, {
514
+ code: string;
515
+ }>;
516
+ getTOTPURI: import("better-auth").StrictEndpoint<"/two-factor/get-totp-uri", {
517
+ method: "POST";
518
+ use: ((inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
519
+ session: {
520
+ session: Record<string, any> & {
521
+ id: string;
522
+ createdAt: Date;
523
+ updatedAt: Date;
524
+ userId: string;
525
+ expiresAt: Date;
526
+ token: string;
527
+ ipAddress?: string | null | undefined;
528
+ userAgent?: string | null | undefined;
529
+ };
530
+ user: Record<string, any> & {
531
+ id: string;
532
+ createdAt: Date;
533
+ updatedAt: Date;
534
+ email: string;
535
+ emailVerified: boolean;
536
+ name: string;
537
+ image?: string | null | undefined;
538
+ };
539
+ };
540
+ }>)[];
541
+ body: import("zod").ZodObject<{
542
+ password: import("zod").ZodOptional<import("zod").ZodString>;
543
+ }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
544
+ password: import("zod").ZodString;
545
+ }, import("zod/v4/core").$strip>;
546
+ metadata: {
547
+ openapi: {
548
+ summary: string;
549
+ description: string;
550
+ responses: {
551
+ 200: {
552
+ description: string;
553
+ content: {
554
+ "application/json": {
555
+ schema: {
556
+ type: "object";
557
+ properties: {
558
+ totpURI: {
559
+ type: string;
560
+ };
561
+ };
562
+ };
563
+ };
564
+ };
565
+ };
566
+ };
567
+ };
568
+ };
569
+ }, {
570
+ totpURI: string;
571
+ }>;
572
+ verifyTOTP: import("better-auth").StrictEndpoint<"/two-factor/verify-totp", {
573
+ method: "POST";
574
+ body: import("zod").ZodObject<{
575
+ code: import("zod").ZodString;
576
+ trustDevice: import("zod").ZodOptional<import("zod").ZodBoolean>;
577
+ }, import("zod/v4/core").$strip>;
578
+ metadata: {
579
+ openapi: {
580
+ summary: string;
581
+ description: string;
582
+ responses: {
583
+ 200: {
584
+ description: string;
585
+ content: {
586
+ "application/json": {
587
+ schema: {
588
+ type: "object";
589
+ properties: {
590
+ status: {
591
+ type: string;
592
+ };
593
+ };
594
+ };
595
+ };
596
+ };
597
+ };
598
+ };
599
+ };
600
+ };
601
+ }, {
602
+ token: string;
603
+ user: import("better-auth/plugins").UserWithTwoFactor;
604
+ } | {
605
+ token: string;
606
+ user: Record<string, any> & {
607
+ id: string;
608
+ createdAt: Date;
609
+ updatedAt: Date;
610
+ email: string;
611
+ emailVerified: boolean;
612
+ name: string;
613
+ image?: string | null | undefined;
614
+ };
615
+ }>;
616
+ };
617
+ options: NoInfer<O>;
618
+ hooks: {
619
+ after: {
620
+ matcher(context: import("better-auth").HookEndpointContext): boolean;
621
+ handler: (inputContext: import("better-auth").MiddlewareInputContext<import("better-auth").MiddlewareOptions>) => Promise<{
622
+ twoFactorRedirect: boolean;
623
+ twoFactorMethods: string[];
624
+ } | undefined>;
625
+ }[];
626
+ };
627
+ schema: {
628
+ user: {
629
+ fields: {
630
+ twoFactorEnabled: {
631
+ type: "boolean";
632
+ required: false;
633
+ defaultValue: false;
634
+ input: false;
635
+ };
636
+ };
637
+ };
638
+ twoFactor: {
639
+ fields: {
640
+ secret: {
641
+ type: "string";
642
+ required: true;
643
+ returned: false;
644
+ index: true;
645
+ };
646
+ backupCodes: {
647
+ type: "string";
648
+ required: true;
649
+ returned: false;
650
+ };
651
+ userId: {
652
+ type: "string";
653
+ required: true;
654
+ returned: false;
655
+ references: {
656
+ model: string;
657
+ field: string;
658
+ };
659
+ index: true;
660
+ };
661
+ verified: {
662
+ type: "boolean";
663
+ required: false;
664
+ defaultValue: true;
665
+ input: false;
666
+ };
667
+ failedVerificationCount: {
668
+ type: "number";
669
+ required: false;
670
+ defaultValue: number;
671
+ input: false;
672
+ returned: false;
673
+ };
674
+ lockedUntil: {
675
+ type: "date";
676
+ required: false;
677
+ input: false;
678
+ returned: false;
679
+ };
680
+ };
681
+ };
682
+ };
683
+ rateLimit: {
684
+ pathMatcher(path: string): boolean;
685
+ window: number;
686
+ max: number;
687
+ }[];
688
+ $ERROR_CODES: {
689
+ OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
690
+ OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
691
+ TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
692
+ TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
693
+ BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
694
+ INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
695
+ INVALID_CODE: import("better-auth").RawError<"INVALID_CODE">;
696
+ TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: import("better-auth").RawError<"TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE">;
697
+ ACCOUNT_TEMPORARILY_LOCKED: import("better-auth").RawError<"ACCOUNT_TEMPORARILY_LOCKED">;
698
+ INVALID_TWO_FACTOR_COOKIE: import("better-auth").RawError<"INVALID_TWO_FACTOR_COOKIE">;
699
+ };
700
+ })>;
701
+ atomListeners: {
702
+ matcher: (path: string) => boolean;
703
+ signal: "$sessionSignal";
704
+ }[];
705
+ pathMethods: {
706
+ "/two-factor/disable": "POST";
707
+ "/two-factor/enable": "POST";
708
+ "/two-factor/send-otp": "POST";
709
+ "/two-factor/generate-backup-codes": "POST";
710
+ "/two-factor/get-totp-uri": "POST";
711
+ "/two-factor/verify-totp": "POST";
712
+ "/two-factor/verify-otp": "POST";
713
+ "/two-factor/verify-backup-code": "POST";
714
+ };
715
+ fetchPlugins: {
716
+ id: string;
717
+ name: string;
718
+ hooks: {
719
+ onSuccess(context: import("better-auth/svelte").SuccessContext<any>): Promise<void>;
720
+ };
721
+ }[];
722
+ $ERROR_CODES: {
723
+ OTP_NOT_ENABLED: import("better-auth").RawError<"OTP_NOT_ENABLED">;
724
+ OTP_HAS_EXPIRED: import("better-auth").RawError<"OTP_HAS_EXPIRED">;
725
+ TOTP_NOT_ENABLED: import("better-auth").RawError<"TOTP_NOT_ENABLED">;
726
+ TWO_FACTOR_NOT_ENABLED: import("better-auth").RawError<"TWO_FACTOR_NOT_ENABLED">;
727
+ BACKUP_CODES_NOT_ENABLED: import("better-auth").RawError<"BACKUP_CODES_NOT_ENABLED">;
728
+ INVALID_BACKUP_CODE: import("better-auth").RawError<"INVALID_BACKUP_CODE">;
729
+ INVALID_CODE: import("better-auth").RawError<"INVALID_CODE">;
730
+ TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE: import("better-auth").RawError<"TOO_MANY_ATTEMPTS_REQUEST_NEW_CODE">;
731
+ ACCOUNT_TEMPORARILY_LOCKED: import("better-auth").RawError<"ACCOUNT_TEMPORARILY_LOCKED">;
732
+ INVALID_TWO_FACTOR_COOKIE: import("better-auth").RawError<"INVALID_TWO_FACTOR_COOKIE">;
733
+ };
734
+ })[];
735
+ }>;
736
+ /** What the admin's login and account panels call: `adminAuthClient` in `aphex.client.ts`. */
737
+ export declare const adminAuthClient: AdminAuthClient;
738
+ //# sourceMappingURL=client.d.ts.map