auth 1.5.1-beta.3 → 1.5.2

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/index.mjs CHANGED
@@ -10,7 +10,7 @@ import { getAdapter } from "better-auth/db/adapter";
10
10
  import chalk from "chalk";
11
11
  import prompts from "prompts";
12
12
  import yoctoSpinner from "yocto-spinner";
13
- import * as z from "zod";
13
+ import * as z$1 from "zod/v4";
14
14
  import { initGetFieldName, initGetModelName } from "better-auth/adapters";
15
15
  import { getAuthTables } from "better-auth/db";
16
16
  import prettier, { format } from "prettier";
@@ -26,6 +26,7 @@ import { loadConfig } from "c12";
26
26
  import * as os$1 from "node:os";
27
27
  import os from "node:os";
28
28
  import open from "open";
29
+ import z from "zod";
29
30
  import { env } from "@better-auth/core/env";
30
31
  import { log } from "@clack/prompts";
31
32
  import { base64 } from "@better-auth/utils/base64";
@@ -1144,14 +1145,14 @@ function createMockAdapter$1(adapterId, dialect) {
1144
1145
  };
1145
1146
  }
1146
1147
  async function generateAction(opts) {
1147
- const options = z.object({
1148
- cwd: z.string(),
1149
- config: z.string().optional(),
1150
- output: z.string().optional(),
1151
- adapter: z.string().optional(),
1152
- dialect: z.string().optional(),
1153
- y: z.boolean().optional(),
1154
- yes: z.boolean().optional()
1148
+ const options = z$1.object({
1149
+ cwd: z$1.string(),
1150
+ config: z$1.string().optional(),
1151
+ output: z$1.string().optional(),
1152
+ adapter: z$1.string().optional(),
1153
+ dialect: z$1.string().optional(),
1154
+ y: z$1.boolean().optional(),
1155
+ yes: z$1.boolean().optional()
1155
1156
  }).parse(opts);
1156
1157
  const cwd = path.resolve(options.cwd);
1157
1158
  if (!existsSync(cwd)) {
@@ -2427,7 +2428,7 @@ const tempPluginsConfig = {
2427
2428
  argument: {
2428
2429
  index: 0,
2429
2430
  isProperty: "issuer",
2430
- schema: z.coerce.string().optional()
2431
+ schema: z$1.coerce.string().optional()
2431
2432
  }
2432
2433
  },
2433
2434
  {
@@ -2439,7 +2440,7 @@ const tempPluginsConfig = {
2439
2440
  argument: {
2440
2441
  index: 0,
2441
2442
  isProperty: "skipVerificationOnEnable",
2442
- schema: z.coerce.boolean().optional()
2443
+ schema: z$1.coerce.boolean().optional()
2443
2444
  }
2444
2445
  },
2445
2446
  {
@@ -2456,7 +2457,7 @@ const tempPluginsConfig = {
2456
2457
  argument: {
2457
2458
  index: 0,
2458
2459
  isProperty: "digits",
2459
- schema: z.coerce.number().positive().optional()
2460
+ schema: z$1.coerce.number().positive().optional()
2460
2461
  }
2461
2462
  }, {
2462
2463
  flag: "totp-otp-period",
@@ -2467,7 +2468,7 @@ const tempPluginsConfig = {
2467
2468
  argument: {
2468
2469
  index: 0,
2469
2470
  isProperty: "period",
2470
- schema: z.coerce.number().positive().optional()
2471
+ schema: z$1.coerce.number().positive().optional()
2471
2472
  }
2472
2473
  }],
2473
2474
  argument: {
@@ -2489,7 +2490,7 @@ const tempPluginsConfig = {
2489
2490
  argument: {
2490
2491
  index: 0,
2491
2492
  isProperty: "period",
2492
- schema: z.coerce.number().positive().optional()
2493
+ schema: z$1.coerce.number().positive().optional()
2493
2494
  }
2494
2495
  }, {
2495
2496
  flag: "otp-store-otp",
@@ -2514,7 +2515,7 @@ const tempPluginsConfig = {
2514
2515
  argument: {
2515
2516
  index: 0,
2516
2517
  isProperty: "storeOTP",
2517
- schema: z.enum([
2518
+ schema: z$1.enum([
2518
2519
  "plain",
2519
2520
  "encrypted",
2520
2521
  "hashed"
@@ -2539,7 +2540,7 @@ const tempPluginsConfig = {
2539
2540
  argument: {
2540
2541
  index: 0,
2541
2542
  isProperty: "amount",
2542
- schema: z.coerce.number().positive().optional()
2543
+ schema: z$1.coerce.number().positive().optional()
2543
2544
  }
2544
2545
  }, {
2545
2546
  flag: "backup-code-length",
@@ -2550,7 +2551,7 @@ const tempPluginsConfig = {
2550
2551
  argument: {
2551
2552
  index: 0,
2552
2553
  isProperty: "length",
2553
- schema: z.coerce.number().positive().optional()
2554
+ schema: z$1.coerce.number().positive().optional()
2554
2555
  }
2555
2556
  }],
2556
2557
  argument: {
@@ -2575,7 +2576,7 @@ const tempPluginsConfig = {
2575
2576
  argument: {
2576
2577
  index: 0,
2577
2578
  isProperty: "twoFactorTable",
2578
- schema: z.coerce.string().optional()
2579
+ schema: z$1.coerce.string().optional()
2579
2580
  }
2580
2581
  }]
2581
2582
  }
@@ -2609,7 +2610,7 @@ const tempPluginsConfig = {
2609
2610
  argument: {
2610
2611
  index: 0,
2611
2612
  isProperty: "maxUsernameLength",
2612
- schema: z.coerce.number().min(0).positive().optional()
2613
+ schema: z$1.coerce.number().min(0).positive().optional()
2613
2614
  }
2614
2615
  },
2615
2616
  {
@@ -2621,7 +2622,7 @@ const tempPluginsConfig = {
2621
2622
  argument: {
2622
2623
  index: 0,
2623
2624
  isProperty: "minUsernameLength",
2624
- schema: z.coerce.number().min(0).positive().optional()
2625
+ schema: z$1.coerce.number().min(0).positive().optional()
2625
2626
  }
2626
2627
  },
2627
2628
  {
@@ -2644,7 +2645,7 @@ const tempPluginsConfig = {
2644
2645
  argument: {
2645
2646
  index: 0,
2646
2647
  isProperty: "username",
2647
- schema: z.enum(["pre-normalization", "post-normalization"]).optional()
2648
+ schema: z$1.enum(["pre-normalization", "post-normalization"]).optional()
2648
2649
  }
2649
2650
  }, {
2650
2651
  flag: "username-validation-order-display-username",
@@ -2662,7 +2663,7 @@ const tempPluginsConfig = {
2662
2663
  argument: {
2663
2664
  index: 0,
2664
2665
  isProperty: "displayUsername",
2665
- schema: z.enum(["pre-normalization", "post-normalization"]).optional()
2666
+ schema: z$1.enum(["pre-normalization", "post-normalization"]).optional()
2666
2667
  }
2667
2668
  }],
2668
2669
  argument: {
@@ -2701,7 +2702,7 @@ const tempPluginsConfig = {
2701
2702
  argument: {
2702
2703
  index: 0,
2703
2704
  isProperty: "expiresIn",
2704
- schema: z.coerce.number().optional()
2705
+ schema: z$1.coerce.number().optional()
2705
2706
  }
2706
2707
  },
2707
2708
  {
@@ -2716,7 +2717,7 @@ const tempPluginsConfig = {
2716
2717
  argument: {
2717
2718
  index: 0,
2718
2719
  isProperty: "sendMagicLink",
2719
- schema: z.coerce.string()
2720
+ schema: z$1.coerce.string()
2720
2721
  }
2721
2722
  },
2722
2723
  {
@@ -2733,7 +2734,7 @@ const tempPluginsConfig = {
2733
2734
  argument: {
2734
2735
  index: 0,
2735
2736
  isProperty: "window",
2736
- schema: z.coerce.number().optional()
2737
+ schema: z$1.coerce.number().optional()
2737
2738
  }
2738
2739
  }, {
2739
2740
  flag: "magic-link-rate-limit-max",
@@ -2745,7 +2746,7 @@ const tempPluginsConfig = {
2745
2746
  argument: {
2746
2747
  index: 0,
2747
2748
  isProperty: "max",
2748
- schema: z.coerce.number().optional()
2749
+ schema: z$1.coerce.number().optional()
2749
2750
  }
2750
2751
  }],
2751
2752
  argument: {
@@ -2769,7 +2770,7 @@ const tempPluginsConfig = {
2769
2770
  argument: {
2770
2771
  index: 0,
2771
2772
  isProperty: "storeToken",
2772
- schema: z.enum(["plain", "hashed"]).optional()
2773
+ schema: z$1.enum(["plain", "hashed"]).optional()
2773
2774
  }
2774
2775
  }
2775
2776
  ]
@@ -2805,7 +2806,7 @@ const tempPluginsConfig = {
2805
2806
  argument: {
2806
2807
  index: 0,
2807
2808
  isProperty: "sendVerificationOTP",
2808
- schema: z.coerce.string()
2809
+ schema: z$1.coerce.string()
2809
2810
  }
2810
2811
  },
2811
2812
  {
@@ -2818,7 +2819,7 @@ const tempPluginsConfig = {
2818
2819
  argument: {
2819
2820
  index: 0,
2820
2821
  isProperty: "otpLength",
2821
- schema: z.coerce.number().optional()
2822
+ schema: z$1.coerce.number().optional()
2822
2823
  }
2823
2824
  },
2824
2825
  {
@@ -2831,7 +2832,7 @@ const tempPluginsConfig = {
2831
2832
  argument: {
2832
2833
  index: 0,
2833
2834
  isProperty: "expiresIn",
2834
- schema: z.coerce.number().optional()
2835
+ schema: z$1.coerce.number().optional()
2835
2836
  }
2836
2837
  },
2837
2838
  {
@@ -2844,7 +2845,7 @@ const tempPluginsConfig = {
2844
2845
  argument: {
2845
2846
  index: 0,
2846
2847
  isProperty: "sendVerificationOnSignUp",
2847
- schema: z.coerce.boolean().optional()
2848
+ schema: z$1.coerce.boolean().optional()
2848
2849
  }
2849
2850
  },
2850
2851
  {
@@ -2857,7 +2858,7 @@ const tempPluginsConfig = {
2857
2858
  argument: {
2858
2859
  index: 0,
2859
2860
  isProperty: "disableSignUp",
2860
- schema: z.coerce.boolean().optional()
2861
+ schema: z$1.coerce.boolean().optional()
2861
2862
  }
2862
2863
  },
2863
2864
  {
@@ -2870,7 +2871,7 @@ const tempPluginsConfig = {
2870
2871
  argument: {
2871
2872
  index: 0,
2872
2873
  isProperty: "allowedAttempts",
2873
- schema: z.coerce.number().optional()
2874
+ schema: z$1.coerce.number().optional()
2874
2875
  }
2875
2876
  },
2876
2877
  {
@@ -2896,7 +2897,7 @@ const tempPluginsConfig = {
2896
2897
  argument: {
2897
2898
  index: 0,
2898
2899
  isProperty: "storeOTP",
2899
- schema: z.enum([
2900
+ schema: z$1.enum([
2900
2901
  "plain",
2901
2902
  "encrypted",
2902
2903
  "hashed"
@@ -2913,7 +2914,7 @@ const tempPluginsConfig = {
2913
2914
  argument: {
2914
2915
  index: 0,
2915
2916
  isProperty: "overrideDefaultEmailVerification",
2916
- schema: z.coerce.boolean().optional()
2917
+ schema: z$1.coerce.boolean().optional()
2917
2918
  }
2918
2919
  }
2919
2920
  ]
@@ -3040,7 +3041,7 @@ const tempPluginsConfig = {
3040
3041
  argument: {
3041
3042
  index: 0,
3042
3043
  isProperty: "defaultRole",
3043
- schema: z.coerce.string().optional()
3044
+ schema: z$1.coerce.string().optional()
3044
3045
  }
3045
3046
  }, {
3046
3047
  flag: "admin-roles",
@@ -3051,7 +3052,7 @@ const tempPluginsConfig = {
3051
3052
  argument: {
3052
3053
  index: 0,
3053
3054
  isProperty: "adminRoles",
3054
- schema: z.array(z.string()).optional()
3055
+ schema: z$1.array(z$1.string()).optional()
3055
3056
  }
3056
3057
  }]
3057
3058
  },
@@ -3083,7 +3084,7 @@ const tempPluginsConfig = {
3083
3084
  argument: {
3084
3085
  index: 0,
3085
3086
  isProperty: "apiKeyHeaders",
3086
- schema: z.coerce.string().optional()
3087
+ schema: z$1.coerce.string().optional()
3087
3088
  }
3088
3089
  },
3089
3090
  {
@@ -3096,7 +3097,7 @@ const tempPluginsConfig = {
3096
3097
  argument: {
3097
3098
  index: 0,
3098
3099
  isProperty: "defaultKeyLength",
3099
- schema: z.coerce.number().positive().optional()
3100
+ schema: z$1.coerce.number().positive().optional()
3100
3101
  }
3101
3102
  },
3102
3103
  {
@@ -3108,7 +3109,7 @@ const tempPluginsConfig = {
3108
3109
  argument: {
3109
3110
  index: 0,
3110
3111
  isProperty: "disableKeyHashing",
3111
- schema: z.coerce.boolean().optional()
3112
+ schema: z$1.coerce.boolean().optional()
3112
3113
  }
3113
3114
  },
3114
3115
  {
@@ -3120,7 +3121,7 @@ const tempPluginsConfig = {
3120
3121
  argument: {
3121
3122
  index: 0,
3122
3123
  isProperty: "enableMetadata",
3123
- schema: z.coerce.boolean().optional()
3124
+ schema: z$1.coerce.boolean().optional()
3124
3125
  }
3125
3126
  },
3126
3127
  {
@@ -3132,7 +3133,7 @@ const tempPluginsConfig = {
3132
3133
  argument: {
3133
3134
  index: 0,
3134
3135
  isProperty: "enableSessionForAPIKeys",
3135
- schema: z.coerce.boolean().optional()
3136
+ schema: z$1.coerce.boolean().optional()
3136
3137
  }
3137
3138
  }
3138
3139
  ]
@@ -3164,7 +3165,7 @@ const tempPluginsConfig = {
3164
3165
  argument: {
3165
3166
  index: 0,
3166
3167
  isProperty: "requireSignature",
3167
- schema: z.coerce.boolean().optional()
3168
+ schema: z$1.coerce.boolean().optional()
3168
3169
  }
3169
3170
  }]
3170
3171
  },
@@ -3205,7 +3206,7 @@ const tempPluginsConfig = {
3205
3206
  argument: {
3206
3207
  index: 0,
3207
3208
  isProperty: "provider",
3208
- schema: z.enum([
3209
+ schema: z$1.enum([
3209
3210
  "google-recaptcha",
3210
3211
  "cloudflare-turnstile",
3211
3212
  "hcaptcha",
@@ -3220,7 +3221,7 @@ const tempPluginsConfig = {
3220
3221
  argument: {
3221
3222
  index: 0,
3222
3223
  isProperty: "secretKey",
3223
- schema: z.coerce.string()
3224
+ schema: z$1.coerce.string()
3224
3225
  }
3225
3226
  },
3226
3227
  {
@@ -3231,7 +3232,7 @@ const tempPluginsConfig = {
3231
3232
  argument: {
3232
3233
  index: 0,
3233
3234
  isProperty: "siteKey",
3234
- schema: z.coerce.string().optional()
3235
+ schema: z$1.coerce.string().optional()
3235
3236
  }
3236
3237
  },
3237
3238
  {
@@ -3244,7 +3245,7 @@ const tempPluginsConfig = {
3244
3245
  argument: {
3245
3246
  index: 0,
3246
3247
  isProperty: "minScore",
3247
- schema: z.coerce.number().min(0).max(1).optional()
3248
+ schema: z$1.coerce.number().min(0).max(1).optional()
3248
3249
  }
3249
3250
  }
3250
3251
  ]
@@ -3269,7 +3270,7 @@ const tempPluginsConfig = {
3269
3270
  argument: {
3270
3271
  index: 0,
3271
3272
  isProperty: "shouldMutateListDeviceSessionsEndpoint",
3272
- schema: z.coerce.boolean().optional()
3273
+ schema: z$1.coerce.boolean().optional()
3273
3274
  }
3274
3275
  }]
3275
3276
  },
@@ -3301,7 +3302,7 @@ const tempPluginsConfig = {
3301
3302
  argument: {
3302
3303
  index: 0,
3303
3304
  isProperty: "expiresIn",
3304
- schema: z.coerce.string().optional()
3305
+ schema: z$1.coerce.string().optional()
3305
3306
  }
3306
3307
  },
3307
3308
  {
@@ -3313,7 +3314,7 @@ const tempPluginsConfig = {
3313
3314
  argument: {
3314
3315
  index: 0,
3315
3316
  isProperty: "interval",
3316
- schema: z.coerce.string().optional()
3317
+ schema: z$1.coerce.string().optional()
3317
3318
  }
3318
3319
  },
3319
3320
  {
@@ -3326,7 +3327,7 @@ const tempPluginsConfig = {
3326
3327
  argument: {
3327
3328
  index: 0,
3328
3329
  isProperty: "deviceCodeLength",
3329
- schema: z.coerce.number().positive().optional()
3330
+ schema: z$1.coerce.number().positive().optional()
3330
3331
  }
3331
3332
  },
3332
3333
  {
@@ -3339,7 +3340,7 @@ const tempPluginsConfig = {
3339
3340
  argument: {
3340
3341
  index: 0,
3341
3342
  isProperty: "userCodeLength",
3342
- schema: z.coerce.number().positive().optional()
3343
+ schema: z$1.coerce.number().positive().optional()
3343
3344
  }
3344
3345
  }
3345
3346
  ]
@@ -3370,7 +3371,7 @@ const tempPluginsConfig = {
3370
3371
  argument: {
3371
3372
  index: 0,
3372
3373
  isProperty: "customPasswordCompromisedMessage",
3373
- schema: z.coerce.string().optional()
3374
+ schema: z$1.coerce.string().optional()
3374
3375
  }
3375
3376
  }]
3376
3377
  },
@@ -3394,7 +3395,7 @@ const tempPluginsConfig = {
3394
3395
  argument: {
3395
3396
  index: 0,
3396
3397
  isProperty: "disableSettingJwtHeader",
3397
- schema: z.coerce.boolean().optional()
3398
+ schema: z$1.coerce.boolean().optional()
3398
3399
  }
3399
3400
  }]
3400
3401
  },
@@ -3426,7 +3427,7 @@ const tempPluginsConfig = {
3426
3427
  argument: {
3427
3428
  index: 0,
3428
3429
  isProperty: "cookieName",
3429
- schema: z.coerce.string().optional()
3430
+ schema: z$1.coerce.string().optional()
3430
3431
  }
3431
3432
  },
3432
3433
  {
@@ -3439,7 +3440,7 @@ const tempPluginsConfig = {
3439
3440
  argument: {
3440
3441
  index: 0,
3441
3442
  isProperty: "maxAge",
3442
- schema: z.coerce.number().positive().optional()
3443
+ schema: z$1.coerce.number().positive().optional()
3443
3444
  }
3444
3445
  },
3445
3446
  {
@@ -3451,7 +3452,7 @@ const tempPluginsConfig = {
3451
3452
  argument: {
3452
3453
  index: 0,
3453
3454
  isProperty: "storeInDatabase",
3454
- schema: z.coerce.boolean().optional()
3455
+ schema: z$1.coerce.boolean().optional()
3455
3456
  }
3456
3457
  }
3457
3458
  ]
@@ -3481,7 +3482,7 @@ const tempPluginsConfig = {
3481
3482
  argument: {
3482
3483
  index: 0,
3483
3484
  isProperty: "loginPage",
3484
- schema: z.coerce.string()
3485
+ schema: z$1.coerce.string()
3485
3486
  }
3486
3487
  }, {
3487
3488
  flag: "mcp-resource",
@@ -3491,7 +3492,7 @@ const tempPluginsConfig = {
3491
3492
  argument: {
3492
3493
  index: 0,
3493
3494
  isProperty: "resource",
3494
- schema: z.coerce.string().optional()
3495
+ schema: z$1.coerce.string().optional()
3495
3496
  }
3496
3497
  }]
3497
3498
  },
@@ -3516,7 +3517,7 @@ const tempPluginsConfig = {
3516
3517
  argument: {
3517
3518
  index: 0,
3518
3519
  isProperty: "maximumSessions",
3519
- schema: z.coerce.number().positive().optional()
3520
+ schema: z$1.coerce.number().positive().optional()
3520
3521
  }
3521
3522
  }]
3522
3523
  },
@@ -3546,7 +3547,7 @@ const tempPluginsConfig = {
3546
3547
  argument: {
3547
3548
  index: 0,
3548
3549
  isProperty: "currentURL",
3549
- schema: z.coerce.string().optional()
3550
+ schema: z$1.coerce.string().optional()
3550
3551
  }
3551
3552
  }, {
3552
3553
  flag: "oauth-proxy-production-url",
@@ -3556,7 +3557,7 @@ const tempPluginsConfig = {
3556
3557
  argument: {
3557
3558
  index: 0,
3558
3559
  isProperty: "productionURL",
3559
- schema: z.coerce.string().optional()
3560
+ schema: z$1.coerce.string().optional()
3560
3561
  }
3561
3562
  }]
3562
3563
  },
@@ -3580,7 +3581,7 @@ const tempPluginsConfig = {
3580
3581
  argument: {
3581
3582
  index: 0,
3582
3583
  isProperty: "disableSignup",
3583
- schema: z.coerce.boolean().optional()
3584
+ schema: z$1.coerce.boolean().optional()
3584
3585
  }
3585
3586
  }, {
3586
3587
  flag: "one-tap-client-id",
@@ -3590,7 +3591,7 @@ const tempPluginsConfig = {
3590
3591
  argument: {
3591
3592
  index: 0,
3592
3593
  isProperty: "clientId",
3593
- schema: z.coerce.string().optional()
3594
+ schema: z$1.coerce.string().optional()
3594
3595
  }
3595
3596
  }]
3596
3597
  },
@@ -3623,7 +3624,7 @@ const tempPluginsConfig = {
3623
3624
  argument: {
3624
3625
  index: 0,
3625
3626
  isProperty: "expiresIn",
3626
- schema: z.coerce.number().positive().optional()
3627
+ schema: z$1.coerce.number().positive().optional()
3627
3628
  }
3628
3629
  },
3629
3630
  {
@@ -3635,7 +3636,7 @@ const tempPluginsConfig = {
3635
3636
  argument: {
3636
3637
  index: 0,
3637
3638
  isProperty: "disableClientRequest",
3638
- schema: z.coerce.boolean().optional()
3639
+ schema: z$1.coerce.boolean().optional()
3639
3640
  }
3640
3641
  },
3641
3642
  {
@@ -3654,7 +3655,7 @@ const tempPluginsConfig = {
3654
3655
  argument: {
3655
3656
  index: 0,
3656
3657
  isProperty: "storeToken",
3657
- schema: z.enum(["plain", "hashed"]).optional()
3658
+ schema: z$1.enum(["plain", "hashed"]).optional()
3658
3659
  }
3659
3660
  }
3660
3661
  ]
@@ -3687,7 +3688,7 @@ const tempPluginsConfig = {
3687
3688
  argument: {
3688
3689
  index: 0,
3689
3690
  isProperty: "path",
3690
- schema: z.coerce.string().optional()
3691
+ schema: z$1.coerce.string().optional()
3691
3692
  }
3692
3693
  },
3693
3694
  {
@@ -3699,7 +3700,7 @@ const tempPluginsConfig = {
3699
3700
  argument: {
3700
3701
  index: 0,
3701
3702
  isProperty: "disableDefaultReference",
3702
- schema: z.coerce.boolean().optional()
3703
+ schema: z$1.coerce.boolean().optional()
3703
3704
  }
3704
3705
  },
3705
3706
  {
@@ -3761,7 +3762,7 @@ const tempPluginsConfig = {
3761
3762
  argument: {
3762
3763
  index: 0,
3763
3764
  isProperty: "theme",
3764
- schema: z.enum([
3765
+ schema: z$1.enum([
3765
3766
  "alternate",
3766
3767
  "default",
3767
3768
  "moon",
@@ -3800,7 +3801,7 @@ const tempPluginsConfig = {
3800
3801
  argument: {
3801
3802
  index: 0,
3802
3803
  isProperty: "allowUserToCreateOrganization",
3803
- schema: z.coerce.boolean().optional()
3804
+ schema: z$1.coerce.boolean().optional()
3804
3805
  }
3805
3806
  },
3806
3807
  {
@@ -3812,7 +3813,7 @@ const tempPluginsConfig = {
3812
3813
  argument: {
3813
3814
  index: 0,
3814
3815
  isProperty: "creatorRole",
3815
- schema: z.coerce.string().optional()
3816
+ schema: z$1.coerce.string().optional()
3816
3817
  }
3817
3818
  },
3818
3819
  {
@@ -3825,7 +3826,7 @@ const tempPluginsConfig = {
3825
3826
  argument: {
3826
3827
  index: 0,
3827
3828
  isProperty: "membershipLimit",
3828
- schema: z.coerce.number().positive().optional()
3829
+ schema: z$1.coerce.number().positive().optional()
3829
3830
  }
3830
3831
  }
3831
3832
  ]
@@ -3856,7 +3857,7 @@ const tempPluginsConfig = {
3856
3857
  argument: {
3857
3858
  index: 0,
3858
3859
  isProperty: "domain",
3859
- schema: z.coerce.string()
3860
+ schema: z$1.coerce.string()
3860
3861
  }
3861
3862
  },
3862
3863
  {
@@ -3867,7 +3868,7 @@ const tempPluginsConfig = {
3867
3868
  argument: {
3868
3869
  index: 0,
3869
3870
  isProperty: "emailDomainName",
3870
- schema: z.coerce.string().optional()
3871
+ schema: z$1.coerce.string().optional()
3871
3872
  }
3872
3873
  },
3873
3874
  {
@@ -3879,7 +3880,7 @@ const tempPluginsConfig = {
3879
3880
  argument: {
3880
3881
  index: 0,
3881
3882
  isProperty: "anonymous",
3882
- schema: z.coerce.boolean().optional()
3883
+ schema: z$1.coerce.boolean().optional()
3883
3884
  }
3884
3885
  }
3885
3886
  ]
@@ -3934,7 +3935,7 @@ const tempPluginsConfig = {
3934
3935
  argument: {
3935
3936
  index: 0,
3936
3937
  isProperty: "defaultOverrideUserInfo",
3937
- schema: z.coerce.boolean().optional()
3938
+ schema: z$1.coerce.boolean().optional()
3938
3939
  }
3939
3940
  },
3940
3941
  {
@@ -3947,7 +3948,7 @@ const tempPluginsConfig = {
3947
3948
  argument: {
3948
3949
  index: 0,
3949
3950
  isProperty: "disableImplicitSignUp",
3950
- schema: z.coerce.boolean().optional()
3951
+ schema: z$1.coerce.boolean().optional()
3951
3952
  }
3952
3953
  },
3953
3954
  {
@@ -3961,7 +3962,7 @@ const tempPluginsConfig = {
3961
3962
  argument: {
3962
3963
  index: 0,
3963
3964
  isProperty: "providersLimit",
3964
- schema: z.coerce.number().int().positive().optional()
3965
+ schema: z$1.coerce.number().int().positive().optional()
3965
3966
  }
3966
3967
  },
3967
3968
  {
@@ -3974,7 +3975,7 @@ const tempPluginsConfig = {
3974
3975
  argument: {
3975
3976
  index: 0,
3976
3977
  isProperty: "trustEmailVerified",
3977
- schema: z.coerce.boolean().optional()
3978
+ schema: z$1.coerce.boolean().optional()
3978
3979
  }
3979
3980
  },
3980
3981
  {
@@ -3985,7 +3986,7 @@ const tempPluginsConfig = {
3985
3986
  argument: {
3986
3987
  index: 0,
3987
3988
  isProperty: "domainVerification",
3988
- schema: z.object({ enabled: z.coerce.boolean().optional() }).optional()
3989
+ schema: z$1.object({ enabled: z$1.coerce.boolean().optional() }).optional()
3989
3990
  },
3990
3991
  isNestedObject: [{
3991
3992
  flag: "sso-domain-verification-enabled",
@@ -3997,7 +3998,7 @@ const tempPluginsConfig = {
3997
3998
  argument: {
3998
3999
  index: 0,
3999
4000
  isProperty: "enabled",
4000
- schema: z.coerce.boolean().optional()
4001
+ schema: z$1.coerce.boolean().optional()
4001
4002
  }
4002
4003
  }]
4003
4004
  }
@@ -4018,7 +4019,7 @@ const tempPluginsConfig = {
4018
4019
  argument: {
4019
4020
  index: 0,
4020
4021
  isProperty: "domainVerification",
4021
- schema: z.object({ enabled: z.coerce.boolean().optional() }).optional()
4022
+ schema: z$1.object({ enabled: z$1.coerce.boolean().optional() }).optional()
4022
4023
  },
4023
4024
  isNestedObject: [{
4024
4025
  flag: "sso-client-domain-verification-enabled",
@@ -4030,7 +4031,7 @@ const tempPluginsConfig = {
4030
4031
  argument: {
4031
4032
  index: 0,
4032
4033
  isProperty: "enabled",
4033
- schema: z.coerce.boolean().optional()
4034
+ schema: z$1.coerce.boolean().optional()
4034
4035
  }
4035
4036
  }]
4036
4037
  }]
@@ -6246,11 +6247,11 @@ const mcp = new Command("mcp").description("Add Better Auth MCP server to MCP Cl
6246
6247
  //#region src/commands/migrate.ts
6247
6248
  /** @internal */
6248
6249
  async function migrateAction(opts) {
6249
- const options = z.object({
6250
- cwd: z.string(),
6251
- config: z.string().optional(),
6252
- y: z.boolean().optional(),
6253
- yes: z.boolean().optional()
6250
+ const options = z$1.object({
6251
+ cwd: z$1.string(),
6252
+ config: z$1.string().optional(),
6253
+ y: z$1.boolean().optional(),
6254
+ yes: z$1.boolean().optional()
6254
6255
  }).parse(opts);
6255
6256
  const cwd = path.resolve(options.cwd);
6256
6257
  if (!existsSync(cwd)) {
@@ -6402,9 +6403,9 @@ function isBetterAuthPackage(name) {
6402
6403
  return name === "better-auth" || name.startsWith("@better-auth/");
6403
6404
  }
6404
6405
  async function upgradeAction(opts) {
6405
- const options = z.object({
6406
- cwd: z.string(),
6407
- yes: z.boolean().optional()
6406
+ const options = z$1.object({
6407
+ cwd: z$1.string(),
6408
+ yes: z$1.boolean().optional()
6408
6409
  }).parse(opts);
6409
6410
  const cwd = path.resolve(options.cwd);
6410
6411
  if (!existsSync(cwd)) {