better-auth 0.8.7-beta.3 → 0.8.7-beta.5

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.
@@ -2592,6 +2592,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2592
2592
  };
2593
2593
  };
2594
2594
  organization: {
2595
+ modelName: string | undefined;
2595
2596
  fields: {
2596
2597
  name: {
2597
2598
  type: "string";
@@ -2621,6 +2622,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2621
2622
  };
2622
2623
  };
2623
2624
  member: {
2625
+ modelName: string | undefined;
2624
2626
  fields: {
2625
2627
  organizationId: {
2626
2628
  type: "string";
@@ -2650,6 +2652,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2650
2652
  };
2651
2653
  };
2652
2654
  invitation: {
2655
+ modelName: string | undefined;
2653
2656
  fields: {
2654
2657
  organizationId: {
2655
2658
  type: "string";
@@ -3402,7 +3405,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
3402
3405
  method: better_call.Method | better_call.Method[];
3403
3406
  headers: Headers;
3404
3407
  };
3405
- send2FaOTP: {
3408
+ sendTwoFactorOTP: {
3406
3409
  <C extends [better_call.Context<"/two-factor/send-otp", {
3407
3410
  method: "POST";
3408
3411
  use: better_call.Endpoint<better_call.Handler<string, {
@@ -3629,7 +3632,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
3629
3632
  method: better_call.Method | better_call.Method[];
3630
3633
  headers: Headers;
3631
3634
  };
3632
- verifyOTP: {
3635
+ verifyTwoFactorOTP: {
3633
3636
  <C extends [better_call.Context<"/two-factor/verify-otp", {
3634
3637
  method: "POST";
3635
3638
  body: z.ZodObject<{
@@ -3932,7 +3935,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
3932
3935
  method: better_call.Method | better_call.Method[];
3933
3936
  headers: Headers;
3934
3937
  };
3935
- viewTOTPURI: {
3938
+ getTOTPURI: {
3936
3939
  <C extends [better_call.Context<"/two-factor/get-totp-uri", {
3937
3940
  method: "POST";
3938
3941
  use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -4258,9 +4261,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4258
4261
  endpoint: better_call.Endpoint;
4259
4262
  }>): boolean;
4260
4263
  handler: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
4261
- response: {
4262
- twoFactorRedirect: boolean;
4263
- };
4264
+ response: Response;
4265
+ responseHeader?: undefined;
4266
+ } | {
4267
+ response: Record<string, unknown> | undefined;
4264
4268
  responseHeader: Headers;
4265
4269
  } | undefined>, better_call.EndpointOptions>;
4266
4270
  }[];
@@ -2592,6 +2592,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2592
2592
  };
2593
2593
  };
2594
2594
  organization: {
2595
+ modelName: string | undefined;
2595
2596
  fields: {
2596
2597
  name: {
2597
2598
  type: "string";
@@ -2621,6 +2622,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2621
2622
  };
2622
2623
  };
2623
2624
  member: {
2625
+ modelName: string | undefined;
2624
2626
  fields: {
2625
2627
  organizationId: {
2626
2628
  type: "string";
@@ -2650,6 +2652,7 @@ declare const organization: <O extends OrganizationOptions>(options?: O) => {
2650
2652
  };
2651
2653
  };
2652
2654
  invitation: {
2655
+ modelName: string | undefined;
2653
2656
  fields: {
2654
2657
  organizationId: {
2655
2658
  type: "string";
@@ -3402,7 +3405,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
3402
3405
  method: better_call.Method | better_call.Method[];
3403
3406
  headers: Headers;
3404
3407
  };
3405
- send2FaOTP: {
3408
+ sendTwoFactorOTP: {
3406
3409
  <C extends [better_call.Context<"/two-factor/send-otp", {
3407
3410
  method: "POST";
3408
3411
  use: better_call.Endpoint<better_call.Handler<string, {
@@ -3629,7 +3632,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
3629
3632
  method: better_call.Method | better_call.Method[];
3630
3633
  headers: Headers;
3631
3634
  };
3632
- verifyOTP: {
3635
+ verifyTwoFactorOTP: {
3633
3636
  <C extends [better_call.Context<"/two-factor/verify-otp", {
3634
3637
  method: "POST";
3635
3638
  body: z.ZodObject<{
@@ -3932,7 +3935,7 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
3932
3935
  method: better_call.Method | better_call.Method[];
3933
3936
  headers: Headers;
3934
3937
  };
3935
- viewTOTPURI: {
3938
+ getTOTPURI: {
3936
3939
  <C extends [better_call.Context<"/two-factor/get-totp-uri", {
3937
3940
  method: "POST";
3938
3941
  use: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
@@ -4258,9 +4261,10 @@ declare const twoFactor: (options?: TwoFactorOptions) => {
4258
4261
  endpoint: better_call.Endpoint;
4259
4262
  }>): boolean;
4260
4263
  handler: better_call.Endpoint<better_call.Handler<string, better_call.EndpointOptions, {
4261
- response: {
4262
- twoFactorRedirect: boolean;
4263
- };
4264
+ response: Response;
4265
+ responseHeader?: undefined;
4266
+ } | {
4267
+ response: Record<string, unknown> | undefined;
4264
4268
  responseHeader: Headers;
4265
4269
  } | undefined>, better_call.EndpointOptions>;
4266
4270
  }[];