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