@polar-sh/better-auth 1.6.3 → 1.6.4
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.d.cts +0 -36
- package/dist/index.d.ts +0 -36
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -134,8 +134,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (polar: Polar) =>
|
|
|
134
134
|
redirect?: boolean | undefined;
|
|
135
135
|
embedOrigin?: string | undefined;
|
|
136
136
|
}>;
|
|
137
|
-
} & {
|
|
138
|
-
use: any[];
|
|
139
137
|
}, {
|
|
140
138
|
url: string;
|
|
141
139
|
redirect: boolean;
|
|
@@ -171,8 +169,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
171
169
|
};
|
|
172
170
|
};
|
|
173
171
|
}>)[];
|
|
174
|
-
} & {
|
|
175
|
-
use: any[];
|
|
176
172
|
}, {
|
|
177
173
|
url: string;
|
|
178
174
|
redirect: boolean;
|
|
@@ -202,8 +198,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
202
198
|
};
|
|
203
199
|
};
|
|
204
200
|
}>)[];
|
|
205
|
-
} & {
|
|
206
|
-
use: any[];
|
|
207
201
|
}, _polar_sh_sdk_models_components_customerstate_js.CustomerState>;
|
|
208
202
|
benefits: better_auth.StrictEndpoint<"/customer/benefits/list", {
|
|
209
203
|
method: "GET";
|
|
@@ -240,8 +234,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
240
234
|
};
|
|
241
235
|
};
|
|
242
236
|
}>)[];
|
|
243
|
-
} & {
|
|
244
|
-
use: any[];
|
|
245
237
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalbenefitgrantslist_js.CustomerPortalBenefitGrantsListResponse, {
|
|
246
238
|
page: number;
|
|
247
239
|
}>>;
|
|
@@ -286,8 +278,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
286
278
|
};
|
|
287
279
|
};
|
|
288
280
|
}>)[];
|
|
289
|
-
} & {
|
|
290
|
-
use: any[];
|
|
291
281
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_subscriptionslist_js.SubscriptionsListResponse, {
|
|
292
282
|
page: number;
|
|
293
283
|
}> | _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalsubscriptionslist_js.CustomerPortalSubscriptionsListResponse, {
|
|
@@ -331,8 +321,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
331
321
|
};
|
|
332
322
|
};
|
|
333
323
|
}>)[];
|
|
334
|
-
} & {
|
|
335
|
-
use: any[];
|
|
336
324
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalorderslist_js.CustomerPortalOrdersListResponse, {
|
|
337
325
|
page: number;
|
|
338
326
|
}>>;
|
|
@@ -380,8 +368,6 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
380
368
|
page?: number | undefined;
|
|
381
369
|
limit?: number | undefined;
|
|
382
370
|
}>;
|
|
383
|
-
} & {
|
|
384
|
-
use: any[];
|
|
385
371
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalcustomermeterslist_js.CustomerPortalCustomerMetersListResponse, {
|
|
386
372
|
page: number;
|
|
387
373
|
}>>;
|
|
@@ -420,8 +406,6 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
420
406
|
};
|
|
421
407
|
};
|
|
422
408
|
}>)[];
|
|
423
|
-
} & {
|
|
424
|
-
use: any[];
|
|
425
409
|
}, _polar_sh_sdk_models_components_eventsingestresponse_js.EventsIngestResponse>;
|
|
426
410
|
};
|
|
427
411
|
|
|
@@ -546,8 +530,6 @@ declare const webhooks: (options: WebhooksOptions) => (_polar: Polar) => {
|
|
|
546
530
|
isAction: false;
|
|
547
531
|
};
|
|
548
532
|
cloneRequest: true;
|
|
549
|
-
} & {
|
|
550
|
-
use: any[];
|
|
551
533
|
}, {
|
|
552
534
|
received: boolean;
|
|
553
535
|
}>;
|
|
@@ -627,8 +609,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
627
609
|
redirect?: boolean | undefined;
|
|
628
610
|
embedOrigin?: string | undefined;
|
|
629
611
|
}>;
|
|
630
|
-
} & {
|
|
631
|
-
use: any[];
|
|
632
612
|
}, {
|
|
633
613
|
url: string;
|
|
634
614
|
redirect: boolean;
|
|
@@ -669,8 +649,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
669
649
|
page?: number | undefined;
|
|
670
650
|
limit?: number | undefined;
|
|
671
651
|
}>;
|
|
672
|
-
} & {
|
|
673
|
-
use: any[];
|
|
674
652
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalcustomermeterslist_js.CustomerPortalCustomerMetersListResponse, {
|
|
675
653
|
page: number;
|
|
676
654
|
}>>;
|
|
@@ -709,8 +687,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
709
687
|
};
|
|
710
688
|
};
|
|
711
689
|
}>)[];
|
|
712
|
-
} & {
|
|
713
|
-
use: any[];
|
|
714
690
|
}, _polar_sh_sdk_models_components_eventsingestresponse_js.EventsIngestResponse>;
|
|
715
691
|
} | {
|
|
716
692
|
portal: better_auth.StrictEndpoint<"/customer/portal", {
|
|
@@ -738,8 +714,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
738
714
|
};
|
|
739
715
|
};
|
|
740
716
|
}>)[];
|
|
741
|
-
} & {
|
|
742
|
-
use: any[];
|
|
743
717
|
}, {
|
|
744
718
|
url: string;
|
|
745
719
|
redirect: boolean;
|
|
@@ -769,8 +743,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
769
743
|
};
|
|
770
744
|
};
|
|
771
745
|
}>)[];
|
|
772
|
-
} & {
|
|
773
|
-
use: any[];
|
|
774
746
|
}, _polar_sh_sdk_models_components_customerstate_js.CustomerState>;
|
|
775
747
|
benefits: better_auth.StrictEndpoint<"/customer/benefits/list", {
|
|
776
748
|
method: "GET";
|
|
@@ -807,8 +779,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
807
779
|
};
|
|
808
780
|
};
|
|
809
781
|
}>)[];
|
|
810
|
-
} & {
|
|
811
|
-
use: any[];
|
|
812
782
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalbenefitgrantslist_js.CustomerPortalBenefitGrantsListResponse, {
|
|
813
783
|
page: number;
|
|
814
784
|
}>>;
|
|
@@ -853,8 +823,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
853
823
|
};
|
|
854
824
|
};
|
|
855
825
|
}>)[];
|
|
856
|
-
} & {
|
|
857
|
-
use: any[];
|
|
858
826
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_subscriptionslist_js.SubscriptionsListResponse, {
|
|
859
827
|
page: number;
|
|
860
828
|
}> | _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalsubscriptionslist_js.CustomerPortalSubscriptionsListResponse, {
|
|
@@ -898,8 +866,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
898
866
|
};
|
|
899
867
|
};
|
|
900
868
|
}>)[];
|
|
901
|
-
} & {
|
|
902
|
-
use: any[];
|
|
903
869
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalorderslist_js.CustomerPortalOrdersListResponse, {
|
|
904
870
|
page: number;
|
|
905
871
|
}>>;
|
|
@@ -910,8 +876,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
910
876
|
isAction: false;
|
|
911
877
|
};
|
|
912
878
|
cloneRequest: true;
|
|
913
|
-
} & {
|
|
914
|
-
use: any[];
|
|
915
879
|
}, {
|
|
916
880
|
received: boolean;
|
|
917
881
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -134,8 +134,6 @@ declare const checkout: (checkoutOptions?: CheckoutOptions) => (polar: Polar) =>
|
|
|
134
134
|
redirect?: boolean | undefined;
|
|
135
135
|
embedOrigin?: string | undefined;
|
|
136
136
|
}>;
|
|
137
|
-
} & {
|
|
138
|
-
use: any[];
|
|
139
137
|
}, {
|
|
140
138
|
url: string;
|
|
141
139
|
redirect: boolean;
|
|
@@ -171,8 +169,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
171
169
|
};
|
|
172
170
|
};
|
|
173
171
|
}>)[];
|
|
174
|
-
} & {
|
|
175
|
-
use: any[];
|
|
176
172
|
}, {
|
|
177
173
|
url: string;
|
|
178
174
|
redirect: boolean;
|
|
@@ -202,8 +198,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
202
198
|
};
|
|
203
199
|
};
|
|
204
200
|
}>)[];
|
|
205
|
-
} & {
|
|
206
|
-
use: any[];
|
|
207
201
|
}, _polar_sh_sdk_models_components_customerstate_js.CustomerState>;
|
|
208
202
|
benefits: better_auth.StrictEndpoint<"/customer/benefits/list", {
|
|
209
203
|
method: "GET";
|
|
@@ -240,8 +234,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
240
234
|
};
|
|
241
235
|
};
|
|
242
236
|
}>)[];
|
|
243
|
-
} & {
|
|
244
|
-
use: any[];
|
|
245
237
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalbenefitgrantslist_js.CustomerPortalBenefitGrantsListResponse, {
|
|
246
238
|
page: number;
|
|
247
239
|
}>>;
|
|
@@ -286,8 +278,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
286
278
|
};
|
|
287
279
|
};
|
|
288
280
|
}>)[];
|
|
289
|
-
} & {
|
|
290
|
-
use: any[];
|
|
291
281
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_subscriptionslist_js.SubscriptionsListResponse, {
|
|
292
282
|
page: number;
|
|
293
283
|
}> | _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalsubscriptionslist_js.CustomerPortalSubscriptionsListResponse, {
|
|
@@ -331,8 +321,6 @@ declare const portal: ({ returnUrl }?: PortalConfig) => (polar: Polar) => {
|
|
|
331
321
|
};
|
|
332
322
|
};
|
|
333
323
|
}>)[];
|
|
334
|
-
} & {
|
|
335
|
-
use: any[];
|
|
336
324
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalorderslist_js.CustomerPortalOrdersListResponse, {
|
|
337
325
|
page: number;
|
|
338
326
|
}>>;
|
|
@@ -380,8 +368,6 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
380
368
|
page?: number | undefined;
|
|
381
369
|
limit?: number | undefined;
|
|
382
370
|
}>;
|
|
383
|
-
} & {
|
|
384
|
-
use: any[];
|
|
385
371
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalcustomermeterslist_js.CustomerPortalCustomerMetersListResponse, {
|
|
386
372
|
page: number;
|
|
387
373
|
}>>;
|
|
@@ -420,8 +406,6 @@ declare const usage: (_usageOptions?: UsageOptions) => (polar: Polar) => {
|
|
|
420
406
|
};
|
|
421
407
|
};
|
|
422
408
|
}>)[];
|
|
423
|
-
} & {
|
|
424
|
-
use: any[];
|
|
425
409
|
}, _polar_sh_sdk_models_components_eventsingestresponse_js.EventsIngestResponse>;
|
|
426
410
|
};
|
|
427
411
|
|
|
@@ -546,8 +530,6 @@ declare const webhooks: (options: WebhooksOptions) => (_polar: Polar) => {
|
|
|
546
530
|
isAction: false;
|
|
547
531
|
};
|
|
548
532
|
cloneRequest: true;
|
|
549
|
-
} & {
|
|
550
|
-
use: any[];
|
|
551
533
|
}, {
|
|
552
534
|
received: boolean;
|
|
553
535
|
}>;
|
|
@@ -627,8 +609,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
627
609
|
redirect?: boolean | undefined;
|
|
628
610
|
embedOrigin?: string | undefined;
|
|
629
611
|
}>;
|
|
630
|
-
} & {
|
|
631
|
-
use: any[];
|
|
632
612
|
}, {
|
|
633
613
|
url: string;
|
|
634
614
|
redirect: boolean;
|
|
@@ -669,8 +649,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
669
649
|
page?: number | undefined;
|
|
670
650
|
limit?: number | undefined;
|
|
671
651
|
}>;
|
|
672
|
-
} & {
|
|
673
|
-
use: any[];
|
|
674
652
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalcustomermeterslist_js.CustomerPortalCustomerMetersListResponse, {
|
|
675
653
|
page: number;
|
|
676
654
|
}>>;
|
|
@@ -709,8 +687,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
709
687
|
};
|
|
710
688
|
};
|
|
711
689
|
}>)[];
|
|
712
|
-
} & {
|
|
713
|
-
use: any[];
|
|
714
690
|
}, _polar_sh_sdk_models_components_eventsingestresponse_js.EventsIngestResponse>;
|
|
715
691
|
} | {
|
|
716
692
|
portal: better_auth.StrictEndpoint<"/customer/portal", {
|
|
@@ -738,8 +714,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
738
714
|
};
|
|
739
715
|
};
|
|
740
716
|
}>)[];
|
|
741
|
-
} & {
|
|
742
|
-
use: any[];
|
|
743
717
|
}, {
|
|
744
718
|
url: string;
|
|
745
719
|
redirect: boolean;
|
|
@@ -769,8 +743,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
769
743
|
};
|
|
770
744
|
};
|
|
771
745
|
}>)[];
|
|
772
|
-
} & {
|
|
773
|
-
use: any[];
|
|
774
746
|
}, _polar_sh_sdk_models_components_customerstate_js.CustomerState>;
|
|
775
747
|
benefits: better_auth.StrictEndpoint<"/customer/benefits/list", {
|
|
776
748
|
method: "GET";
|
|
@@ -807,8 +779,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
807
779
|
};
|
|
808
780
|
};
|
|
809
781
|
}>)[];
|
|
810
|
-
} & {
|
|
811
|
-
use: any[];
|
|
812
782
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalbenefitgrantslist_js.CustomerPortalBenefitGrantsListResponse, {
|
|
813
783
|
page: number;
|
|
814
784
|
}>>;
|
|
@@ -853,8 +823,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
853
823
|
};
|
|
854
824
|
};
|
|
855
825
|
}>)[];
|
|
856
|
-
} & {
|
|
857
|
-
use: any[];
|
|
858
826
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_subscriptionslist_js.SubscriptionsListResponse, {
|
|
859
827
|
page: number;
|
|
860
828
|
}> | _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalsubscriptionslist_js.CustomerPortalSubscriptionsListResponse, {
|
|
@@ -898,8 +866,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
898
866
|
};
|
|
899
867
|
};
|
|
900
868
|
}>)[];
|
|
901
|
-
} & {
|
|
902
|
-
use: any[];
|
|
903
869
|
}, _polar_sh_sdk_types_operations_js.PageIterator<_polar_sh_sdk_models_operations_customerportalorderslist_js.CustomerPortalOrdersListResponse, {
|
|
904
870
|
page: number;
|
|
905
871
|
}>>;
|
|
@@ -910,8 +876,6 @@ declare const polar: <O extends PolarOptions>(options: O) => {
|
|
|
910
876
|
isAction: false;
|
|
911
877
|
};
|
|
912
878
|
cloneRequest: true;
|
|
913
|
-
} & {
|
|
914
|
-
use: any[];
|
|
915
879
|
}, {
|
|
916
880
|
received: boolean;
|
|
917
881
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@polar-sh/better-auth",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.4",
|
|
4
4
|
"description": "Polar integration for better-auth",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"@polar-sh/sdk": "^0.42.1",
|
|
46
46
|
"@sindresorhus/tsconfig": "^7.0.0",
|
|
47
47
|
"@types/node": "^20.0.0",
|
|
48
|
-
"better-auth": "^1.4.
|
|
48
|
+
"better-auth": "^1.4.12",
|
|
49
49
|
"tsup": "^8.5.1",
|
|
50
50
|
"vitest": "^2.1.8",
|
|
51
51
|
"@polar-sh/adapter-utils": "0.4.3"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@polar-sh/sdk": "^0.42.1",
|
|
55
|
-
"better-auth": "^1.4.
|
|
55
|
+
"better-auth": "^1.4.12",
|
|
56
56
|
"zod": "^3.24.2 || ^4"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|