@dodopayments/better-auth 1.4.0 → 1.4.1

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/client.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { dodopaymentsClient } from './index.cjs';
2
2
  import 'better-auth';
3
3
  import 'dodopayments/resources/usage-events.mjs';
4
- import './types-BxuQGgnN.cjs';
4
+ import './types-DtNvVoO9.cjs';
5
5
  import 'dodopayments';
6
6
  import 'better-call';
7
7
  import 'zod/v3';
package/dist/client.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export { dodopaymentsClient } from './index.js';
2
2
  import 'better-auth';
3
3
  import 'dodopayments/resources/usage-events.mjs';
4
- import './types-D2QzXmgc.js';
4
+ import './types-VW2PljjI.js';
5
5
  import 'dodopayments';
6
6
  import 'better-call';
7
7
  import 'zod/v3';
@@ -1,5 +1,5 @@
1
1
  import { User, GenericEndpointContext } from 'better-auth';
2
- import { D as DodoPaymentsOptions } from '../types-BxuQGgnN.cjs';
2
+ import { D as DodoPaymentsOptions } from '../types-DtNvVoO9.cjs';
3
3
  import 'dodopayments';
4
4
  import 'better-call';
5
5
  import 'zod/v3';
@@ -1,5 +1,5 @@
1
1
  import { User, GenericEndpointContext } from 'better-auth';
2
- import { D as DodoPaymentsOptions } from '../types-D2QzXmgc.js';
2
+ import { D as DodoPaymentsOptions } from '../types-VW2PljjI.js';
3
3
  import 'dodopayments';
4
4
  import 'better-call';
5
5
  import 'zod/v3';
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as better_auth from 'better-auth';
2
2
  import * as dodopayments_resources_usage_events_mjs from 'dodopayments/resources/usage-events.mjs';
3
- import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-BxuQGgnN.cjs';
4
- export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, w as webhooks } from './types-BxuQGgnN.cjs';
3
+ import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-DtNvVoO9.cjs';
4
+ export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, w as webhooks } from './types-DtNvVoO9.cjs';
5
5
  import * as better_call from 'better-call';
6
6
  import * as zod_v3 from 'zod/v3';
7
7
  export { usage } from './plugins/usage.cjs';
@@ -332,6 +332,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
332
332
  } | undefined;
333
333
  feature_flags?: {
334
334
  allow_currency_selection?: boolean | undefined;
335
+ allow_customer_editing_city?: boolean | undefined;
336
+ allow_customer_editing_country?: boolean | undefined;
337
+ allow_customer_editing_email?: boolean | undefined;
338
+ allow_customer_editing_name?: boolean | undefined;
339
+ allow_customer_editing_state?: boolean | undefined;
340
+ allow_customer_editing_street?: boolean | undefined;
341
+ allow_customer_editing_zipcode?: boolean | undefined;
335
342
  allow_discount_code?: boolean | undefined;
336
343
  allow_phone_number_collection?: boolean | undefined;
337
344
  allow_tax_id?: boolean | undefined;
@@ -470,18 +477,39 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
470
477
  }>>;
471
478
  feature_flags: zod_v3.ZodOptional<zod_v3.ZodObject<{
472
479
  allow_currency_selection: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
480
+ allow_customer_editing_city: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
481
+ allow_customer_editing_country: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
482
+ allow_customer_editing_email: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
483
+ allow_customer_editing_name: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
484
+ allow_customer_editing_state: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
485
+ allow_customer_editing_street: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
486
+ allow_customer_editing_zipcode: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
473
487
  allow_discount_code: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
474
488
  allow_phone_number_collection: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
475
489
  allow_tax_id: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
476
490
  always_create_new_customer: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
477
491
  }, "strip", zod_v3.ZodTypeAny, {
478
492
  allow_currency_selection?: boolean | undefined;
493
+ allow_customer_editing_city?: boolean | undefined;
494
+ allow_customer_editing_country?: boolean | undefined;
495
+ allow_customer_editing_email?: boolean | undefined;
496
+ allow_customer_editing_name?: boolean | undefined;
497
+ allow_customer_editing_state?: boolean | undefined;
498
+ allow_customer_editing_street?: boolean | undefined;
499
+ allow_customer_editing_zipcode?: boolean | undefined;
479
500
  allow_discount_code?: boolean | undefined;
480
501
  allow_phone_number_collection?: boolean | undefined;
481
502
  allow_tax_id?: boolean | undefined;
482
503
  always_create_new_customer?: boolean | undefined;
483
504
  }, {
484
505
  allow_currency_selection?: boolean | undefined;
506
+ allow_customer_editing_city?: boolean | undefined;
507
+ allow_customer_editing_country?: boolean | undefined;
508
+ allow_customer_editing_email?: boolean | undefined;
509
+ allow_customer_editing_name?: boolean | undefined;
510
+ allow_customer_editing_state?: boolean | undefined;
511
+ allow_customer_editing_street?: boolean | undefined;
512
+ allow_customer_editing_zipcode?: boolean | undefined;
485
513
  allow_discount_code?: boolean | undefined;
486
514
  allow_phone_number_collection?: boolean | undefined;
487
515
  allow_tax_id?: boolean | undefined;
@@ -569,6 +597,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
569
597
  } | undefined;
570
598
  feature_flags?: {
571
599
  allow_currency_selection?: boolean | undefined;
600
+ allow_customer_editing_city?: boolean | undefined;
601
+ allow_customer_editing_country?: boolean | undefined;
602
+ allow_customer_editing_email?: boolean | undefined;
603
+ allow_customer_editing_name?: boolean | undefined;
604
+ allow_customer_editing_state?: boolean | undefined;
605
+ allow_customer_editing_street?: boolean | undefined;
606
+ allow_customer_editing_zipcode?: boolean | undefined;
572
607
  allow_discount_code?: boolean | undefined;
573
608
  allow_phone_number_collection?: boolean | undefined;
574
609
  allow_tax_id?: boolean | undefined;
@@ -626,6 +661,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
626
661
  } | undefined;
627
662
  feature_flags?: {
628
663
  allow_currency_selection?: boolean | undefined;
664
+ allow_customer_editing_city?: boolean | undefined;
665
+ allow_customer_editing_country?: boolean | undefined;
666
+ allow_customer_editing_email?: boolean | undefined;
667
+ allow_customer_editing_name?: boolean | undefined;
668
+ allow_customer_editing_state?: boolean | undefined;
669
+ allow_customer_editing_street?: boolean | undefined;
670
+ allow_customer_editing_zipcode?: boolean | undefined;
629
671
  allow_discount_code?: boolean | undefined;
630
672
  allow_phone_number_collection?: boolean | undefined;
631
673
  allow_tax_id?: boolean | undefined;
@@ -681,21 +723,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
681
723
  session: {
682
724
  session: Record<string, any> & {
683
725
  id: string;
684
- userId: string;
685
- expiresAt: Date;
686
726
  createdAt: Date;
687
727
  updatedAt: Date;
728
+ userId: string;
729
+ expiresAt: Date;
688
730
  token: string;
689
731
  ipAddress?: string | null | undefined;
690
732
  userAgent?: string | null | undefined;
691
733
  };
692
734
  user: Record<string, any> & {
693
735
  id: string;
736
+ createdAt: Date;
737
+ updatedAt: Date;
694
738
  email: string;
695
739
  emailVerified: boolean;
696
740
  name: string;
697
- createdAt: Date;
698
- updatedAt: Date;
699
741
  image?: string | null | undefined;
700
742
  };
701
743
  };
@@ -753,21 +795,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
753
795
  session: {
754
796
  session: Record<string, any> & {
755
797
  id: string;
756
- userId: string;
757
- expiresAt: Date;
758
798
  createdAt: Date;
759
799
  updatedAt: Date;
800
+ userId: string;
801
+ expiresAt: Date;
760
802
  token: string;
761
803
  ipAddress?: string | null | undefined;
762
804
  userAgent?: string | null | undefined;
763
805
  };
764
806
  user: Record<string, any> & {
765
807
  id: string;
808
+ createdAt: Date;
809
+ updatedAt: Date;
766
810
  email: string;
767
811
  emailVerified: boolean;
768
812
  name: string;
769
- createdAt: Date;
770
- updatedAt: Date;
771
813
  image?: string | null | undefined;
772
814
  };
773
815
  };
@@ -825,21 +867,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
825
867
  session: {
826
868
  session: Record<string, any> & {
827
869
  id: string;
828
- userId: string;
829
- expiresAt: Date;
830
870
  createdAt: Date;
831
871
  updatedAt: Date;
872
+ userId: string;
873
+ expiresAt: Date;
832
874
  token: string;
833
875
  ipAddress?: string | null | undefined;
834
876
  userAgent?: string | null | undefined;
835
877
  };
836
878
  user: Record<string, any> & {
837
879
  id: string;
880
+ createdAt: Date;
881
+ updatedAt: Date;
838
882
  email: string;
839
883
  emailVerified: boolean;
840
884
  name: string;
841
- createdAt: Date;
842
- updatedAt: Date;
843
885
  image?: string | null | undefined;
844
886
  };
845
887
  };
@@ -943,21 +985,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
943
985
  session: {
944
986
  session: Record<string, any> & {
945
987
  id: string;
946
- userId: string;
947
- expiresAt: Date;
948
988
  createdAt: Date;
949
989
  updatedAt: Date;
990
+ userId: string;
991
+ expiresAt: Date;
950
992
  token: string;
951
993
  ipAddress?: string | null | undefined;
952
994
  userAgent?: string | null | undefined;
953
995
  };
954
996
  user: Record<string, any> & {
955
997
  id: string;
998
+ createdAt: Date;
999
+ updatedAt: Date;
956
1000
  email: string;
957
1001
  emailVerified: boolean;
958
1002
  name: string;
959
- createdAt: Date;
960
- updatedAt: Date;
961
1003
  image?: string | null | undefined;
962
1004
  };
963
1005
  };
@@ -1031,21 +1073,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1031
1073
  session: {
1032
1074
  session: Record<string, any> & {
1033
1075
  id: string;
1034
- userId: string;
1035
- expiresAt: Date;
1036
1076
  createdAt: Date;
1037
1077
  updatedAt: Date;
1078
+ userId: string;
1079
+ expiresAt: Date;
1038
1080
  token: string;
1039
1081
  ipAddress?: string | null | undefined;
1040
1082
  userAgent?: string | null | undefined;
1041
1083
  };
1042
1084
  user: Record<string, any> & {
1043
1085
  id: string;
1086
+ createdAt: Date;
1087
+ updatedAt: Date;
1044
1088
  email: string;
1045
1089
  emailVerified: boolean;
1046
1090
  name: string;
1047
- createdAt: Date;
1048
- updatedAt: Date;
1049
1091
  image?: string | null | undefined;
1050
1092
  };
1051
1093
  };
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as better_auth from 'better-auth';
2
2
  import * as dodopayments_resources_usage_events_mjs from 'dodopayments/resources/usage-events.mjs';
3
- import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-D2QzXmgc.js';
4
- export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, w as webhooks } from './types-D2QzXmgc.js';
3
+ import { D as DodoPaymentsOptions, C as CreateCheckoutResponse, a as CustomerPortalResponse, S as SubscriptionItems, P as PaymentItems, W as WebhookResponse } from './types-VW2PljjI.js';
4
+ export { g as CheckoutOptions, e as DodoPaymentsEndpoints, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, b as Product, f as checkout, p as portal, w as webhooks } from './types-VW2PljjI.js';
5
5
  import * as better_call from 'better-call';
6
6
  import * as zod_v3 from 'zod/v3';
7
7
  export { usage } from './plugins/usage.js';
@@ -332,6 +332,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
332
332
  } | undefined;
333
333
  feature_flags?: {
334
334
  allow_currency_selection?: boolean | undefined;
335
+ allow_customer_editing_city?: boolean | undefined;
336
+ allow_customer_editing_country?: boolean | undefined;
337
+ allow_customer_editing_email?: boolean | undefined;
338
+ allow_customer_editing_name?: boolean | undefined;
339
+ allow_customer_editing_state?: boolean | undefined;
340
+ allow_customer_editing_street?: boolean | undefined;
341
+ allow_customer_editing_zipcode?: boolean | undefined;
335
342
  allow_discount_code?: boolean | undefined;
336
343
  allow_phone_number_collection?: boolean | undefined;
337
344
  allow_tax_id?: boolean | undefined;
@@ -470,18 +477,39 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
470
477
  }>>;
471
478
  feature_flags: zod_v3.ZodOptional<zod_v3.ZodObject<{
472
479
  allow_currency_selection: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
480
+ allow_customer_editing_city: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
481
+ allow_customer_editing_country: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
482
+ allow_customer_editing_email: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
483
+ allow_customer_editing_name: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
484
+ allow_customer_editing_state: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
485
+ allow_customer_editing_street: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
486
+ allow_customer_editing_zipcode: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
473
487
  allow_discount_code: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
474
488
  allow_phone_number_collection: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
475
489
  allow_tax_id: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
476
490
  always_create_new_customer: zod_v3.ZodOptional<zod_v3.ZodBoolean>;
477
491
  }, "strip", zod_v3.ZodTypeAny, {
478
492
  allow_currency_selection?: boolean | undefined;
493
+ allow_customer_editing_city?: boolean | undefined;
494
+ allow_customer_editing_country?: boolean | undefined;
495
+ allow_customer_editing_email?: boolean | undefined;
496
+ allow_customer_editing_name?: boolean | undefined;
497
+ allow_customer_editing_state?: boolean | undefined;
498
+ allow_customer_editing_street?: boolean | undefined;
499
+ allow_customer_editing_zipcode?: boolean | undefined;
479
500
  allow_discount_code?: boolean | undefined;
480
501
  allow_phone_number_collection?: boolean | undefined;
481
502
  allow_tax_id?: boolean | undefined;
482
503
  always_create_new_customer?: boolean | undefined;
483
504
  }, {
484
505
  allow_currency_selection?: boolean | undefined;
506
+ allow_customer_editing_city?: boolean | undefined;
507
+ allow_customer_editing_country?: boolean | undefined;
508
+ allow_customer_editing_email?: boolean | undefined;
509
+ allow_customer_editing_name?: boolean | undefined;
510
+ allow_customer_editing_state?: boolean | undefined;
511
+ allow_customer_editing_street?: boolean | undefined;
512
+ allow_customer_editing_zipcode?: boolean | undefined;
485
513
  allow_discount_code?: boolean | undefined;
486
514
  allow_phone_number_collection?: boolean | undefined;
487
515
  allow_tax_id?: boolean | undefined;
@@ -569,6 +597,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
569
597
  } | undefined;
570
598
  feature_flags?: {
571
599
  allow_currency_selection?: boolean | undefined;
600
+ allow_customer_editing_city?: boolean | undefined;
601
+ allow_customer_editing_country?: boolean | undefined;
602
+ allow_customer_editing_email?: boolean | undefined;
603
+ allow_customer_editing_name?: boolean | undefined;
604
+ allow_customer_editing_state?: boolean | undefined;
605
+ allow_customer_editing_street?: boolean | undefined;
606
+ allow_customer_editing_zipcode?: boolean | undefined;
572
607
  allow_discount_code?: boolean | undefined;
573
608
  allow_phone_number_collection?: boolean | undefined;
574
609
  allow_tax_id?: boolean | undefined;
@@ -626,6 +661,13 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
626
661
  } | undefined;
627
662
  feature_flags?: {
628
663
  allow_currency_selection?: boolean | undefined;
664
+ allow_customer_editing_city?: boolean | undefined;
665
+ allow_customer_editing_country?: boolean | undefined;
666
+ allow_customer_editing_email?: boolean | undefined;
667
+ allow_customer_editing_name?: boolean | undefined;
668
+ allow_customer_editing_state?: boolean | undefined;
669
+ allow_customer_editing_street?: boolean | undefined;
670
+ allow_customer_editing_zipcode?: boolean | undefined;
629
671
  allow_discount_code?: boolean | undefined;
630
672
  allow_phone_number_collection?: boolean | undefined;
631
673
  allow_tax_id?: boolean | undefined;
@@ -681,21 +723,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
681
723
  session: {
682
724
  session: Record<string, any> & {
683
725
  id: string;
684
- userId: string;
685
- expiresAt: Date;
686
726
  createdAt: Date;
687
727
  updatedAt: Date;
728
+ userId: string;
729
+ expiresAt: Date;
688
730
  token: string;
689
731
  ipAddress?: string | null | undefined;
690
732
  userAgent?: string | null | undefined;
691
733
  };
692
734
  user: Record<string, any> & {
693
735
  id: string;
736
+ createdAt: Date;
737
+ updatedAt: Date;
694
738
  email: string;
695
739
  emailVerified: boolean;
696
740
  name: string;
697
- createdAt: Date;
698
- updatedAt: Date;
699
741
  image?: string | null | undefined;
700
742
  };
701
743
  };
@@ -753,21 +795,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
753
795
  session: {
754
796
  session: Record<string, any> & {
755
797
  id: string;
756
- userId: string;
757
- expiresAt: Date;
758
798
  createdAt: Date;
759
799
  updatedAt: Date;
800
+ userId: string;
801
+ expiresAt: Date;
760
802
  token: string;
761
803
  ipAddress?: string | null | undefined;
762
804
  userAgent?: string | null | undefined;
763
805
  };
764
806
  user: Record<string, any> & {
765
807
  id: string;
808
+ createdAt: Date;
809
+ updatedAt: Date;
766
810
  email: string;
767
811
  emailVerified: boolean;
768
812
  name: string;
769
- createdAt: Date;
770
- updatedAt: Date;
771
813
  image?: string | null | undefined;
772
814
  };
773
815
  };
@@ -825,21 +867,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
825
867
  session: {
826
868
  session: Record<string, any> & {
827
869
  id: string;
828
- userId: string;
829
- expiresAt: Date;
830
870
  createdAt: Date;
831
871
  updatedAt: Date;
872
+ userId: string;
873
+ expiresAt: Date;
832
874
  token: string;
833
875
  ipAddress?: string | null | undefined;
834
876
  userAgent?: string | null | undefined;
835
877
  };
836
878
  user: Record<string, any> & {
837
879
  id: string;
880
+ createdAt: Date;
881
+ updatedAt: Date;
838
882
  email: string;
839
883
  emailVerified: boolean;
840
884
  name: string;
841
- createdAt: Date;
842
- updatedAt: Date;
843
885
  image?: string | null | undefined;
844
886
  };
845
887
  };
@@ -943,21 +985,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
943
985
  session: {
944
986
  session: Record<string, any> & {
945
987
  id: string;
946
- userId: string;
947
- expiresAt: Date;
948
988
  createdAt: Date;
949
989
  updatedAt: Date;
990
+ userId: string;
991
+ expiresAt: Date;
950
992
  token: string;
951
993
  ipAddress?: string | null | undefined;
952
994
  userAgent?: string | null | undefined;
953
995
  };
954
996
  user: Record<string, any> & {
955
997
  id: string;
998
+ createdAt: Date;
999
+ updatedAt: Date;
956
1000
  email: string;
957
1001
  emailVerified: boolean;
958
1002
  name: string;
959
- createdAt: Date;
960
- updatedAt: Date;
961
1003
  image?: string | null | undefined;
962
1004
  };
963
1005
  };
@@ -1031,21 +1073,21 @@ declare const dodopayments: (options: DodoPaymentsOptions) => {
1031
1073
  session: {
1032
1074
  session: Record<string, any> & {
1033
1075
  id: string;
1034
- userId: string;
1035
- expiresAt: Date;
1036
1076
  createdAt: Date;
1037
1077
  updatedAt: Date;
1078
+ userId: string;
1079
+ expiresAt: Date;
1038
1080
  token: string;
1039
1081
  ipAddress?: string | null | undefined;
1040
1082
  userAgent?: string | null | undefined;
1041
1083
  };
1042
1084
  user: Record<string, any> & {
1043
1085
  id: string;
1086
+ createdAt: Date;
1087
+ updatedAt: Date;
1044
1088
  email: string;
1045
1089
  emailVerified: boolean;
1046
1090
  name: string;
1047
- createdAt: Date;
1048
- updatedAt: Date;
1049
1091
  image?: string | null | undefined;
1050
1092
  };
1051
1093
  };
@@ -1,7 +1,7 @@
1
1
  import 'better-call';
2
2
  import 'dodopayments';
3
3
  import 'zod/v3';
4
- export { g as CheckoutOptions, f as checkout } from '../types-BxuQGgnN.cjs';
4
+ export { g as CheckoutOptions, f as checkout } from '../types-DtNvVoO9.cjs';
5
5
  import 'better-auth';
6
6
  import '@dodopayments/core/webhook';
7
7
  import './usage.cjs';
@@ -1,7 +1,7 @@
1
1
  import 'better-call';
2
2
  import 'dodopayments';
3
3
  import 'zod/v3';
4
- export { g as CheckoutOptions, f as checkout } from '../types-D2QzXmgc.js';
4
+ export { g as CheckoutOptions, f as checkout } from '../types-VW2PljjI.js';
5
5
  import 'better-auth';
6
6
  import '@dodopayments/core/webhook';
7
7
  import './usage.js';
@@ -1,7 +1,7 @@
1
1
  import 'better-call';
2
2
  import 'dodopayments';
3
3
  import 'zod/v3';
4
- export { p as portal } from '../types-BxuQGgnN.cjs';
4
+ export { p as portal } from '../types-DtNvVoO9.cjs';
5
5
  import 'better-auth';
6
6
  import '@dodopayments/core/webhook';
7
7
  import './usage.cjs';
@@ -1,7 +1,7 @@
1
1
  import 'better-call';
2
2
  import 'dodopayments';
3
3
  import 'zod/v3';
4
- export { p as portal } from '../types-D2QzXmgc.js';
4
+ export { p as portal } from '../types-VW2PljjI.js';
5
5
  import 'better-auth';
6
6
  import '@dodopayments/core/webhook';
7
7
  import './usage.js';
@@ -60,21 +60,21 @@ declare const usage: () => (dodopayments: DodoPayments) => {
60
60
  session: {
61
61
  session: Record<string, any> & {
62
62
  id: string;
63
- userId: string;
64
- expiresAt: Date;
65
63
  createdAt: Date;
66
64
  updatedAt: Date;
65
+ userId: string;
66
+ expiresAt: Date;
67
67
  token: string;
68
68
  ipAddress?: string | null | undefined;
69
69
  userAgent?: string | null | undefined;
70
70
  };
71
71
  user: Record<string, any> & {
72
72
  id: string;
73
+ createdAt: Date;
74
+ updatedAt: Date;
73
75
  email: string;
74
76
  emailVerified: boolean;
75
77
  name: string;
76
- createdAt: Date;
77
- updatedAt: Date;
78
78
  image?: string | null | undefined;
79
79
  };
80
80
  };
@@ -148,21 +148,21 @@ declare const usage: () => (dodopayments: DodoPayments) => {
148
148
  session: {
149
149
  session: Record<string, any> & {
150
150
  id: string;
151
- userId: string;
152
- expiresAt: Date;
153
151
  createdAt: Date;
154
152
  updatedAt: Date;
153
+ userId: string;
154
+ expiresAt: Date;
155
155
  token: string;
156
156
  ipAddress?: string | null | undefined;
157
157
  userAgent?: string | null | undefined;
158
158
  };
159
159
  user: Record<string, any> & {
160
160
  id: string;
161
+ createdAt: Date;
162
+ updatedAt: Date;
161
163
  email: string;
162
164
  emailVerified: boolean;
163
165
  name: string;
164
- createdAt: Date;
165
- updatedAt: Date;
166
166
  image?: string | null | undefined;
167
167
  };
168
168
  };
@@ -60,21 +60,21 @@ declare const usage: () => (dodopayments: DodoPayments) => {
60
60
  session: {
61
61
  session: Record<string, any> & {
62
62
  id: string;
63
- userId: string;
64
- expiresAt: Date;
65
63
  createdAt: Date;
66
64
  updatedAt: Date;
65
+ userId: string;
66
+ expiresAt: Date;
67
67
  token: string;
68
68
  ipAddress?: string | null | undefined;
69
69
  userAgent?: string | null | undefined;
70
70
  };
71
71
  user: Record<string, any> & {
72
72
  id: string;
73
+ createdAt: Date;
74
+ updatedAt: Date;
73
75
  email: string;
74
76
  emailVerified: boolean;
75
77
  name: string;
76
- createdAt: Date;
77
- updatedAt: Date;
78
78
  image?: string | null | undefined;
79
79
  };
80
80
  };
@@ -148,21 +148,21 @@ declare const usage: () => (dodopayments: DodoPayments) => {
148
148
  session: {
149
149
  session: Record<string, any> & {
150
150
  id: string;
151
- userId: string;
152
- expiresAt: Date;
153
151
  createdAt: Date;
154
152
  updatedAt: Date;
153
+ userId: string;
154
+ expiresAt: Date;
155
155
  token: string;
156
156
  ipAddress?: string | null | undefined;
157
157
  userAgent?: string | null | undefined;
158
158
  };
159
159
  user: Record<string, any> & {
160
160
  id: string;
161
+ createdAt: Date;
162
+ updatedAt: Date;
161
163
  email: string;
162
164
  emailVerified: boolean;
163
165
  name: string;
164
- createdAt: Date;
165
- updatedAt: Date;
166
166
  image?: string | null | undefined;
167
167
  };
168
168
  };
@@ -1,7 +1,7 @@
1
1
  import 'better-call';
2
2
  import 'dodopayments';
3
3
  import '@dodopayments/core/webhook';
4
- export { w as webhooks } from '../types-BxuQGgnN.cjs';
4
+ export { w as webhooks } from '../types-DtNvVoO9.cjs';
5
5
  import 'better-auth';
6
6
  import 'zod/v3';
7
7
  import './usage.cjs';
@@ -1,7 +1,7 @@
1
1
  import 'better-call';
2
2
  import 'dodopayments';
3
3
  import '@dodopayments/core/webhook';
4
- export { w as webhooks } from '../types-D2QzXmgc.js';
4
+ export { w as webhooks } from '../types-VW2PljjI.js';
5
5
  import 'better-auth';
6
6
  import 'zod/v3';
7
7
  import './usage.js';
@@ -344,6 +344,13 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
344
344
  } | undefined;
345
345
  feature_flags?: {
346
346
  allow_currency_selection?: boolean | undefined;
347
+ allow_customer_editing_city?: boolean | undefined;
348
+ allow_customer_editing_country?: boolean | undefined;
349
+ allow_customer_editing_email?: boolean | undefined;
350
+ allow_customer_editing_name?: boolean | undefined;
351
+ allow_customer_editing_state?: boolean | undefined;
352
+ allow_customer_editing_street?: boolean | undefined;
353
+ allow_customer_editing_zipcode?: boolean | undefined;
347
354
  allow_discount_code?: boolean | undefined;
348
355
  allow_phone_number_collection?: boolean | undefined;
349
356
  allow_tax_id?: boolean | undefined;
@@ -482,18 +489,39 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
482
489
  }>>;
483
490
  feature_flags: z.ZodOptional<z.ZodObject<{
484
491
  allow_currency_selection: z.ZodOptional<z.ZodBoolean>;
492
+ allow_customer_editing_city: z.ZodOptional<z.ZodBoolean>;
493
+ allow_customer_editing_country: z.ZodOptional<z.ZodBoolean>;
494
+ allow_customer_editing_email: z.ZodOptional<z.ZodBoolean>;
495
+ allow_customer_editing_name: z.ZodOptional<z.ZodBoolean>;
496
+ allow_customer_editing_state: z.ZodOptional<z.ZodBoolean>;
497
+ allow_customer_editing_street: z.ZodOptional<z.ZodBoolean>;
498
+ allow_customer_editing_zipcode: z.ZodOptional<z.ZodBoolean>;
485
499
  allow_discount_code: z.ZodOptional<z.ZodBoolean>;
486
500
  allow_phone_number_collection: z.ZodOptional<z.ZodBoolean>;
487
501
  allow_tax_id: z.ZodOptional<z.ZodBoolean>;
488
502
  always_create_new_customer: z.ZodOptional<z.ZodBoolean>;
489
503
  }, "strip", z.ZodTypeAny, {
490
504
  allow_currency_selection?: boolean | undefined;
505
+ allow_customer_editing_city?: boolean | undefined;
506
+ allow_customer_editing_country?: boolean | undefined;
507
+ allow_customer_editing_email?: boolean | undefined;
508
+ allow_customer_editing_name?: boolean | undefined;
509
+ allow_customer_editing_state?: boolean | undefined;
510
+ allow_customer_editing_street?: boolean | undefined;
511
+ allow_customer_editing_zipcode?: boolean | undefined;
491
512
  allow_discount_code?: boolean | undefined;
492
513
  allow_phone_number_collection?: boolean | undefined;
493
514
  allow_tax_id?: boolean | undefined;
494
515
  always_create_new_customer?: boolean | undefined;
495
516
  }, {
496
517
  allow_currency_selection?: boolean | undefined;
518
+ allow_customer_editing_city?: boolean | undefined;
519
+ allow_customer_editing_country?: boolean | undefined;
520
+ allow_customer_editing_email?: boolean | undefined;
521
+ allow_customer_editing_name?: boolean | undefined;
522
+ allow_customer_editing_state?: boolean | undefined;
523
+ allow_customer_editing_street?: boolean | undefined;
524
+ allow_customer_editing_zipcode?: boolean | undefined;
497
525
  allow_discount_code?: boolean | undefined;
498
526
  allow_phone_number_collection?: boolean | undefined;
499
527
  allow_tax_id?: boolean | undefined;
@@ -581,6 +609,13 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
581
609
  } | undefined;
582
610
  feature_flags?: {
583
611
  allow_currency_selection?: boolean | undefined;
612
+ allow_customer_editing_city?: boolean | undefined;
613
+ allow_customer_editing_country?: boolean | undefined;
614
+ allow_customer_editing_email?: boolean | undefined;
615
+ allow_customer_editing_name?: boolean | undefined;
616
+ allow_customer_editing_state?: boolean | undefined;
617
+ allow_customer_editing_street?: boolean | undefined;
618
+ allow_customer_editing_zipcode?: boolean | undefined;
584
619
  allow_discount_code?: boolean | undefined;
585
620
  allow_phone_number_collection?: boolean | undefined;
586
621
  allow_tax_id?: boolean | undefined;
@@ -638,6 +673,13 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
638
673
  } | undefined;
639
674
  feature_flags?: {
640
675
  allow_currency_selection?: boolean | undefined;
676
+ allow_customer_editing_city?: boolean | undefined;
677
+ allow_customer_editing_country?: boolean | undefined;
678
+ allow_customer_editing_email?: boolean | undefined;
679
+ allow_customer_editing_name?: boolean | undefined;
680
+ allow_customer_editing_state?: boolean | undefined;
681
+ allow_customer_editing_street?: boolean | undefined;
682
+ allow_customer_editing_zipcode?: boolean | undefined;
641
683
  allow_discount_code?: boolean | undefined;
642
684
  allow_phone_number_collection?: boolean | undefined;
643
685
  allow_tax_id?: boolean | undefined;
@@ -695,21 +737,21 @@ declare const portal: () => (dodopayments: DodoPayments$1) => {
695
737
  session: {
696
738
  session: Record<string, any> & {
697
739
  id: string;
698
- userId: string;
699
- expiresAt: Date;
700
740
  createdAt: Date;
701
741
  updatedAt: Date;
742
+ userId: string;
743
+ expiresAt: Date;
702
744
  token: string;
703
745
  ipAddress?: string | null | undefined;
704
746
  userAgent?: string | null | undefined;
705
747
  };
706
748
  user: Record<string, any> & {
707
749
  id: string;
750
+ createdAt: Date;
751
+ updatedAt: Date;
708
752
  email: string;
709
753
  emailVerified: boolean;
710
754
  name: string;
711
- createdAt: Date;
712
- updatedAt: Date;
713
755
  image?: string | null | undefined;
714
756
  };
715
757
  };
@@ -767,21 +809,21 @@ declare const portal: () => (dodopayments: DodoPayments$1) => {
767
809
  session: {
768
810
  session: Record<string, any> & {
769
811
  id: string;
770
- userId: string;
771
- expiresAt: Date;
772
812
  createdAt: Date;
773
813
  updatedAt: Date;
814
+ userId: string;
815
+ expiresAt: Date;
774
816
  token: string;
775
817
  ipAddress?: string | null | undefined;
776
818
  userAgent?: string | null | undefined;
777
819
  };
778
820
  user: Record<string, any> & {
779
821
  id: string;
822
+ createdAt: Date;
823
+ updatedAt: Date;
780
824
  email: string;
781
825
  emailVerified: boolean;
782
826
  name: string;
783
- createdAt: Date;
784
- updatedAt: Date;
785
827
  image?: string | null | undefined;
786
828
  };
787
829
  };
@@ -839,21 +881,21 @@ declare const portal: () => (dodopayments: DodoPayments$1) => {
839
881
  session: {
840
882
  session: Record<string, any> & {
841
883
  id: string;
842
- userId: string;
843
- expiresAt: Date;
844
884
  createdAt: Date;
845
885
  updatedAt: Date;
886
+ userId: string;
887
+ expiresAt: Date;
846
888
  token: string;
847
889
  ipAddress?: string | null | undefined;
848
890
  userAgent?: string | null | undefined;
849
891
  };
850
892
  user: Record<string, any> & {
851
893
  id: string;
894
+ createdAt: Date;
895
+ updatedAt: Date;
852
896
  email: string;
853
897
  emailVerified: boolean;
854
898
  name: string;
855
- createdAt: Date;
856
- updatedAt: Date;
857
899
  image?: string | null | undefined;
858
900
  };
859
901
  };
@@ -344,6 +344,13 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
344
344
  } | undefined;
345
345
  feature_flags?: {
346
346
  allow_currency_selection?: boolean | undefined;
347
+ allow_customer_editing_city?: boolean | undefined;
348
+ allow_customer_editing_country?: boolean | undefined;
349
+ allow_customer_editing_email?: boolean | undefined;
350
+ allow_customer_editing_name?: boolean | undefined;
351
+ allow_customer_editing_state?: boolean | undefined;
352
+ allow_customer_editing_street?: boolean | undefined;
353
+ allow_customer_editing_zipcode?: boolean | undefined;
347
354
  allow_discount_code?: boolean | undefined;
348
355
  allow_phone_number_collection?: boolean | undefined;
349
356
  allow_tax_id?: boolean | undefined;
@@ -482,18 +489,39 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
482
489
  }>>;
483
490
  feature_flags: z.ZodOptional<z.ZodObject<{
484
491
  allow_currency_selection: z.ZodOptional<z.ZodBoolean>;
492
+ allow_customer_editing_city: z.ZodOptional<z.ZodBoolean>;
493
+ allow_customer_editing_country: z.ZodOptional<z.ZodBoolean>;
494
+ allow_customer_editing_email: z.ZodOptional<z.ZodBoolean>;
495
+ allow_customer_editing_name: z.ZodOptional<z.ZodBoolean>;
496
+ allow_customer_editing_state: z.ZodOptional<z.ZodBoolean>;
497
+ allow_customer_editing_street: z.ZodOptional<z.ZodBoolean>;
498
+ allow_customer_editing_zipcode: z.ZodOptional<z.ZodBoolean>;
485
499
  allow_discount_code: z.ZodOptional<z.ZodBoolean>;
486
500
  allow_phone_number_collection: z.ZodOptional<z.ZodBoolean>;
487
501
  allow_tax_id: z.ZodOptional<z.ZodBoolean>;
488
502
  always_create_new_customer: z.ZodOptional<z.ZodBoolean>;
489
503
  }, "strip", z.ZodTypeAny, {
490
504
  allow_currency_selection?: boolean | undefined;
505
+ allow_customer_editing_city?: boolean | undefined;
506
+ allow_customer_editing_country?: boolean | undefined;
507
+ allow_customer_editing_email?: boolean | undefined;
508
+ allow_customer_editing_name?: boolean | undefined;
509
+ allow_customer_editing_state?: boolean | undefined;
510
+ allow_customer_editing_street?: boolean | undefined;
511
+ allow_customer_editing_zipcode?: boolean | undefined;
491
512
  allow_discount_code?: boolean | undefined;
492
513
  allow_phone_number_collection?: boolean | undefined;
493
514
  allow_tax_id?: boolean | undefined;
494
515
  always_create_new_customer?: boolean | undefined;
495
516
  }, {
496
517
  allow_currency_selection?: boolean | undefined;
518
+ allow_customer_editing_city?: boolean | undefined;
519
+ allow_customer_editing_country?: boolean | undefined;
520
+ allow_customer_editing_email?: boolean | undefined;
521
+ allow_customer_editing_name?: boolean | undefined;
522
+ allow_customer_editing_state?: boolean | undefined;
523
+ allow_customer_editing_street?: boolean | undefined;
524
+ allow_customer_editing_zipcode?: boolean | undefined;
497
525
  allow_discount_code?: boolean | undefined;
498
526
  allow_phone_number_collection?: boolean | undefined;
499
527
  allow_tax_id?: boolean | undefined;
@@ -581,6 +609,13 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
581
609
  } | undefined;
582
610
  feature_flags?: {
583
611
  allow_currency_selection?: boolean | undefined;
612
+ allow_customer_editing_city?: boolean | undefined;
613
+ allow_customer_editing_country?: boolean | undefined;
614
+ allow_customer_editing_email?: boolean | undefined;
615
+ allow_customer_editing_name?: boolean | undefined;
616
+ allow_customer_editing_state?: boolean | undefined;
617
+ allow_customer_editing_street?: boolean | undefined;
618
+ allow_customer_editing_zipcode?: boolean | undefined;
584
619
  allow_discount_code?: boolean | undefined;
585
620
  allow_phone_number_collection?: boolean | undefined;
586
621
  allow_tax_id?: boolean | undefined;
@@ -638,6 +673,13 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (dodopayments: Do
638
673
  } | undefined;
639
674
  feature_flags?: {
640
675
  allow_currency_selection?: boolean | undefined;
676
+ allow_customer_editing_city?: boolean | undefined;
677
+ allow_customer_editing_country?: boolean | undefined;
678
+ allow_customer_editing_email?: boolean | undefined;
679
+ allow_customer_editing_name?: boolean | undefined;
680
+ allow_customer_editing_state?: boolean | undefined;
681
+ allow_customer_editing_street?: boolean | undefined;
682
+ allow_customer_editing_zipcode?: boolean | undefined;
641
683
  allow_discount_code?: boolean | undefined;
642
684
  allow_phone_number_collection?: boolean | undefined;
643
685
  allow_tax_id?: boolean | undefined;
@@ -695,21 +737,21 @@ declare const portal: () => (dodopayments: DodoPayments$1) => {
695
737
  session: {
696
738
  session: Record<string, any> & {
697
739
  id: string;
698
- userId: string;
699
- expiresAt: Date;
700
740
  createdAt: Date;
701
741
  updatedAt: Date;
742
+ userId: string;
743
+ expiresAt: Date;
702
744
  token: string;
703
745
  ipAddress?: string | null | undefined;
704
746
  userAgent?: string | null | undefined;
705
747
  };
706
748
  user: Record<string, any> & {
707
749
  id: string;
750
+ createdAt: Date;
751
+ updatedAt: Date;
708
752
  email: string;
709
753
  emailVerified: boolean;
710
754
  name: string;
711
- createdAt: Date;
712
- updatedAt: Date;
713
755
  image?: string | null | undefined;
714
756
  };
715
757
  };
@@ -767,21 +809,21 @@ declare const portal: () => (dodopayments: DodoPayments$1) => {
767
809
  session: {
768
810
  session: Record<string, any> & {
769
811
  id: string;
770
- userId: string;
771
- expiresAt: Date;
772
812
  createdAt: Date;
773
813
  updatedAt: Date;
814
+ userId: string;
815
+ expiresAt: Date;
774
816
  token: string;
775
817
  ipAddress?: string | null | undefined;
776
818
  userAgent?: string | null | undefined;
777
819
  };
778
820
  user: Record<string, any> & {
779
821
  id: string;
822
+ createdAt: Date;
823
+ updatedAt: Date;
780
824
  email: string;
781
825
  emailVerified: boolean;
782
826
  name: string;
783
- createdAt: Date;
784
- updatedAt: Date;
785
827
  image?: string | null | undefined;
786
828
  };
787
829
  };
@@ -839,21 +881,21 @@ declare const portal: () => (dodopayments: DodoPayments$1) => {
839
881
  session: {
840
882
  session: Record<string, any> & {
841
883
  id: string;
842
- userId: string;
843
- expiresAt: Date;
844
884
  createdAt: Date;
845
885
  updatedAt: Date;
886
+ userId: string;
887
+ expiresAt: Date;
846
888
  token: string;
847
889
  ipAddress?: string | null | undefined;
848
890
  userAgent?: string | null | undefined;
849
891
  };
850
892
  user: Record<string, any> & {
851
893
  id: string;
894
+ createdAt: Date;
895
+ updatedAt: Date;
852
896
  email: string;
853
897
  emailVerified: boolean;
854
898
  name: string;
855
- createdAt: Date;
856
- updatedAt: Date;
857
899
  image?: string | null | undefined;
858
900
  };
859
901
  };
package/dist/types.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'dodopayments';
2
2
  import 'better-auth';
3
- export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-BxuQGgnN.cjs';
3
+ export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-DtNvVoO9.cjs';
4
4
  import './plugins/usage.cjs';
5
5
  import 'better-call';
6
6
  import 'zod/v3';
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'dodopayments';
2
2
  import 'better-auth';
3
- export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-D2QzXmgc.js';
3
+ export { C as CreateCheckoutResponse, a as CustomerPortalResponse, e as DodoPaymentsEndpoints, D as DodoPaymentsOptions, c as DodoPaymentsPlugin, d as DodoPaymentsPlugins, P as PaymentItems, b as Product, S as SubscriptionItems, W as WebhookResponse } from './types-VW2PljjI.js';
4
4
  import './plugins/usage.js';
5
5
  import 'better-call';
6
6
  import 'zod/v3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dodopayments/better-auth",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "types": "./dist/index.d.ts",
20
20
  "dependencies": {
21
- "@dodopayments/core": "^0.3.5"
21
+ "@dodopayments/core": "^0.3.7"
22
22
  },
23
23
  "engines": {
24
24
  "node": ">=16.0.0"
@@ -48,5 +48,9 @@
48
48
  "files": [
49
49
  "dist",
50
50
  "llm-prompt.txt"
51
- ]
51
+ ],
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "git+https://github.com/dodopayments/dodo-adapters.git"
55
+ }
52
56
  }