@better-auth/stripe 1.6.25 → 1.6.27
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.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as StripePlan, n as stripe } from "./index-
|
|
1
|
+
import { l as StripePlan, n as stripe } from "./index-lrlfzwTm.mjs";
|
|
2
2
|
//#region src/error-codes.d.ts
|
|
3
3
|
declare const STRIPE_ERROR_CODES: {
|
|
4
4
|
UNAUTHORIZED: import("better-auth").RawError<"UNAUTHORIZED">;
|
package/dist/client.mjs
CHANGED
|
@@ -545,8 +545,8 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
545
545
|
operationId: string;
|
|
546
546
|
};
|
|
547
547
|
};
|
|
548
|
-
use: (
|
|
549
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
548
|
+
use: (import("better-call").Middleware<{
|
|
549
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
550
550
|
session: {
|
|
551
551
|
session: Record<string, any> & {
|
|
552
552
|
id: string;
|
|
@@ -568,12 +568,36 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
568
568
|
image?: string | null | undefined;
|
|
569
569
|
};
|
|
570
570
|
};
|
|
571
|
-
}
|
|
571
|
+
}>>[];
|
|
572
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
573
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
574
|
+
session: {
|
|
575
|
+
session: Record<string, any> & {
|
|
576
|
+
id: string;
|
|
577
|
+
createdAt: Date;
|
|
578
|
+
updatedAt: Date;
|
|
579
|
+
userId: string;
|
|
580
|
+
expiresAt: Date;
|
|
581
|
+
token: string;
|
|
582
|
+
ipAddress?: string | null | undefined;
|
|
583
|
+
userAgent?: string | null | undefined;
|
|
584
|
+
};
|
|
585
|
+
user: Record<string, any> & {
|
|
586
|
+
id: string;
|
|
587
|
+
createdAt: Date;
|
|
588
|
+
updatedAt: Date;
|
|
589
|
+
email: string;
|
|
590
|
+
emailVerified: boolean;
|
|
591
|
+
name: string;
|
|
592
|
+
image?: string | null | undefined;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
}>>[];
|
|
572
596
|
}>) => Promise<{
|
|
573
597
|
session: StripeCtxSession;
|
|
574
|
-
}
|
|
598
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
575
599
|
referenceId: string;
|
|
576
|
-
}
|
|
600
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>)[];
|
|
577
601
|
}, {
|
|
578
602
|
url: string;
|
|
579
603
|
redirect: boolean;
|
|
@@ -608,8 +632,8 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
608
632
|
operationId: string;
|
|
609
633
|
};
|
|
610
634
|
};
|
|
611
|
-
use: (
|
|
612
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
635
|
+
use: (import("better-call").Middleware<{
|
|
636
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
613
637
|
session: {
|
|
614
638
|
session: Record<string, any> & {
|
|
615
639
|
id: string;
|
|
@@ -631,12 +655,36 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
631
655
|
image?: string | null | undefined;
|
|
632
656
|
};
|
|
633
657
|
};
|
|
634
|
-
}
|
|
658
|
+
}>>[];
|
|
659
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
660
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
661
|
+
session: {
|
|
662
|
+
session: Record<string, any> & {
|
|
663
|
+
id: string;
|
|
664
|
+
createdAt: Date;
|
|
665
|
+
updatedAt: Date;
|
|
666
|
+
userId: string;
|
|
667
|
+
expiresAt: Date;
|
|
668
|
+
token: string;
|
|
669
|
+
ipAddress?: string | null | undefined;
|
|
670
|
+
userAgent?: string | null | undefined;
|
|
671
|
+
};
|
|
672
|
+
user: Record<string, any> & {
|
|
673
|
+
id: string;
|
|
674
|
+
createdAt: Date;
|
|
675
|
+
updatedAt: Date;
|
|
676
|
+
email: string;
|
|
677
|
+
emailVerified: boolean;
|
|
678
|
+
name: string;
|
|
679
|
+
image?: string | null | undefined;
|
|
680
|
+
};
|
|
681
|
+
};
|
|
682
|
+
}>>[];
|
|
635
683
|
}>) => Promise<{
|
|
636
684
|
session: StripeCtxSession;
|
|
637
|
-
}
|
|
685
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
638
686
|
referenceId: string;
|
|
639
|
-
}
|
|
687
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>)[];
|
|
640
688
|
}, {
|
|
641
689
|
url: string;
|
|
642
690
|
redirect: boolean;
|
|
@@ -656,8 +704,8 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
656
704
|
operationId: string;
|
|
657
705
|
};
|
|
658
706
|
};
|
|
659
|
-
use: (
|
|
660
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
707
|
+
use: (import("better-call").Middleware<{
|
|
708
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
661
709
|
session: {
|
|
662
710
|
session: Record<string, any> & {
|
|
663
711
|
id: string;
|
|
@@ -679,12 +727,36 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
679
727
|
image?: string | null | undefined;
|
|
680
728
|
};
|
|
681
729
|
};
|
|
682
|
-
}
|
|
730
|
+
}>>[];
|
|
731
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
732
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
733
|
+
session: {
|
|
734
|
+
session: Record<string, any> & {
|
|
735
|
+
id: string;
|
|
736
|
+
createdAt: Date;
|
|
737
|
+
updatedAt: Date;
|
|
738
|
+
userId: string;
|
|
739
|
+
expiresAt: Date;
|
|
740
|
+
token: string;
|
|
741
|
+
ipAddress?: string | null | undefined;
|
|
742
|
+
userAgent?: string | null | undefined;
|
|
743
|
+
};
|
|
744
|
+
user: Record<string, any> & {
|
|
745
|
+
id: string;
|
|
746
|
+
createdAt: Date;
|
|
747
|
+
updatedAt: Date;
|
|
748
|
+
email: string;
|
|
749
|
+
emailVerified: boolean;
|
|
750
|
+
name: string;
|
|
751
|
+
image?: string | null | undefined;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
754
|
+
}>>[];
|
|
683
755
|
}>) => Promise<{
|
|
684
756
|
session: StripeCtxSession;
|
|
685
|
-
}
|
|
757
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
686
758
|
referenceId: string;
|
|
687
|
-
}
|
|
759
|
+
}>>)[];
|
|
688
760
|
}, Stripe.Response<Stripe.Subscription>>;
|
|
689
761
|
listActiveSubscriptions: import("better-call").StrictEndpoint<"/subscription/list", {
|
|
690
762
|
method: "GET";
|
|
@@ -700,8 +772,32 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
700
772
|
operationId: string;
|
|
701
773
|
};
|
|
702
774
|
};
|
|
703
|
-
use: (
|
|
704
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
775
|
+
use: (import("better-call").Middleware<{
|
|
776
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
777
|
+
session: {
|
|
778
|
+
session: Record<string, any> & {
|
|
779
|
+
id: string;
|
|
780
|
+
createdAt: Date;
|
|
781
|
+
updatedAt: Date;
|
|
782
|
+
userId: string;
|
|
783
|
+
expiresAt: Date;
|
|
784
|
+
token: string;
|
|
785
|
+
ipAddress?: string | null | undefined;
|
|
786
|
+
userAgent?: string | null | undefined;
|
|
787
|
+
};
|
|
788
|
+
user: Record<string, any> & {
|
|
789
|
+
id: string;
|
|
790
|
+
createdAt: Date;
|
|
791
|
+
updatedAt: Date;
|
|
792
|
+
email: string;
|
|
793
|
+
emailVerified: boolean;
|
|
794
|
+
name: string;
|
|
795
|
+
image?: string | null | undefined;
|
|
796
|
+
};
|
|
797
|
+
};
|
|
798
|
+
}>>[];
|
|
799
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
800
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
705
801
|
session: {
|
|
706
802
|
session: Record<string, any> & {
|
|
707
803
|
id: string;
|
|
@@ -723,12 +819,12 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
723
819
|
image?: string | null | undefined;
|
|
724
820
|
};
|
|
725
821
|
};
|
|
726
|
-
}
|
|
822
|
+
}>>[];
|
|
727
823
|
}>) => Promise<{
|
|
728
824
|
session: StripeCtxSession;
|
|
729
|
-
}
|
|
825
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
730
826
|
referenceId: string;
|
|
731
|
-
}
|
|
827
|
+
}>>)[];
|
|
732
828
|
}, {
|
|
733
829
|
limits: Record<string, unknown> | undefined;
|
|
734
830
|
priceId: string | undefined;
|
|
@@ -759,7 +855,7 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
759
855
|
operationId: string;
|
|
760
856
|
};
|
|
761
857
|
};
|
|
762
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void
|
|
858
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>[];
|
|
763
859
|
}, never>;
|
|
764
860
|
createBillingPortal: import("better-call").StrictEndpoint<"/subscription/billing-portal", {
|
|
765
861
|
method: "POST";
|
|
@@ -778,8 +874,32 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
778
874
|
operationId: string;
|
|
779
875
|
};
|
|
780
876
|
};
|
|
781
|
-
use: (
|
|
782
|
-
use: ((inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
877
|
+
use: (import("better-call").Middleware<{
|
|
878
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
879
|
+
session: {
|
|
880
|
+
session: Record<string, any> & {
|
|
881
|
+
id: string;
|
|
882
|
+
createdAt: Date;
|
|
883
|
+
updatedAt: Date;
|
|
884
|
+
userId: string;
|
|
885
|
+
expiresAt: Date;
|
|
886
|
+
token: string;
|
|
887
|
+
ipAddress?: string | null | undefined;
|
|
888
|
+
userAgent?: string | null | undefined;
|
|
889
|
+
};
|
|
890
|
+
user: Record<string, any> & {
|
|
891
|
+
id: string;
|
|
892
|
+
createdAt: Date;
|
|
893
|
+
updatedAt: Date;
|
|
894
|
+
email: string;
|
|
895
|
+
emailVerified: boolean;
|
|
896
|
+
name: string;
|
|
897
|
+
image?: string | null | undefined;
|
|
898
|
+
};
|
|
899
|
+
};
|
|
900
|
+
}>>[];
|
|
901
|
+
}, (inputContext: import("better-call").MiddlewareInputContext<{
|
|
902
|
+
use: import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
783
903
|
session: {
|
|
784
904
|
session: Record<string, any> & {
|
|
785
905
|
id: string;
|
|
@@ -801,12 +921,12 @@ declare const stripe: <O extends StripeOptions>(options: O) => {
|
|
|
801
921
|
image?: string | null | undefined;
|
|
802
922
|
};
|
|
803
923
|
};
|
|
804
|
-
}
|
|
924
|
+
}>>[];
|
|
805
925
|
}>) => Promise<{
|
|
806
926
|
session: StripeCtxSession;
|
|
807
|
-
}
|
|
927
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<{
|
|
808
928
|
referenceId: string;
|
|
809
|
-
}
|
|
929
|
+
}>> | import("better-call").Middleware<import("better-call").MiddlewareOptions, (inputContext: import("better-call").MiddlewareInputContext<import("better-call").MiddlewareOptions>) => Promise<void>>)[];
|
|
810
930
|
}, {
|
|
811
931
|
url: string;
|
|
812
932
|
redirect: boolean;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CheckoutSessionLocale, c as StripeOptions, d as SubscriptionOptions, f as WithActiveOrganizationId, i as CheckoutSessionLineItem, l as StripePlan, n as stripe, o as CustomerType, p as WithStripeCustomerId, r as AuthorizeReferenceAction, s as StripeCtxSession, t as StripePlugin, u as Subscription } from "./index-
|
|
1
|
+
import { a as CheckoutSessionLocale, c as StripeOptions, d as SubscriptionOptions, f as WithActiveOrganizationId, i as CheckoutSessionLineItem, l as StripePlan, n as stripe, o as CustomerType, p as WithStripeCustomerId, r as AuthorizeReferenceAction, s as StripeCtxSession, t as StripePlugin, u as Subscription } from "./index-lrlfzwTm.mjs";
|
|
2
2
|
export { type AuthorizeReferenceAction, type CheckoutSessionLineItem, type CheckoutSessionLocale, type CustomerType, type StripeCtxSession, type StripeOptions, type StripePlan, StripePlugin, type Subscription, type SubscriptionOptions, type WithActiveOrganizationId, type WithStripeCustomerId, stripe };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as STRIPE_ERROR_CODES, t as PACKAGE_VERSION } from "./version-
|
|
1
|
+
import { n as STRIPE_ERROR_CODES, t as PACKAGE_VERSION } from "./version-BUm_1Q0_.mjs";
|
|
2
2
|
import { APIError, HIDE_METADATA } from "better-auth";
|
|
3
3
|
import { defu } from "defu";
|
|
4
4
|
import { createAuthEndpoint, createAuthMiddleware } from "@better-auth/core/api";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/stripe",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.27",
|
|
4
4
|
"description": "Stripe plugin for Better Auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
"zod": "^4.3.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"better-call": "1.
|
|
58
|
+
"better-call": "1.4.0",
|
|
59
59
|
"stripe": "^22.0.1",
|
|
60
60
|
"tsdown": "0.22.7",
|
|
61
|
-
"@better-auth/core": "1.6.
|
|
62
|
-
"better-auth": "1.6.
|
|
61
|
+
"@better-auth/core": "1.6.27",
|
|
62
|
+
"better-auth": "1.6.27"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"better-call": "1.
|
|
65
|
+
"better-call": "1.4.0",
|
|
66
66
|
"stripe": "^18 || ^19 || ^20 || ^21 || ^22",
|
|
67
|
-
"@better-auth/core": "^1.6.
|
|
68
|
-
"better-auth": "^1.6.
|
|
67
|
+
"@better-auth/core": "^1.6.27",
|
|
68
|
+
"better-auth": "^1.6.27"
|
|
69
69
|
},
|
|
70
70
|
"scripts": {
|
|
71
71
|
"build": "tsdown",
|