autumn-js 1.2.44 → 1.2.45
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/backend/adapters/express.js +71 -1
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +71 -1
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +71 -1
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +71 -1
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +71 -1
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-HMEVH6GK.mjs → chunk-5DLBV5WP.mjs} +2 -2
- package/dist/backend/{chunk-43PV6A4J.mjs → chunk-67LHAREL.mjs} +1 -1
- package/dist/backend/{chunk-PKU2QG3V.mjs → chunk-DY6WMOCT.mjs} +2 -2
- package/dist/backend/{chunk-W2L6YF67.mjs → chunk-J2VZ3UZS.mjs} +1 -1
- package/dist/backend/{chunk-GRPW7PMD.mjs → chunk-L7N6FVEE.mjs} +1 -1
- package/dist/backend/{chunk-YOZEZHQY.mjs → chunk-P2TFPTAM.mjs} +1 -1
- package/dist/backend/{chunk-UBDJHK2I.mjs → chunk-PVDDMLWT.mjs} +35 -1
- package/dist/backend/{chunk-NX26QVC6.mjs → chunk-YKRFY5TK.mjs} +36 -0
- package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
- package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
- package/dist/backend/core/handlers/coreHandler.js +71 -1
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +71 -1
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +71 -1
- package/dist/backend/core/handlers/index.mjs +4 -4
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +71 -1
- package/dist/backend/core/index.mjs +4 -4
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +36 -0
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +36 -0
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +71 -1
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CODz5Cb_.d.ts → routeTypes-COLvwrcx.d.ts} +137 -1
- package/dist/backend/{routeTypes-CJ1KepjZ.d.mts → routeTypes-UN48tvoc.d.mts} +137 -1
- package/dist/better-auth/{chunk-W2AEIA6U.mjs → chunk-3LKXO3EE.mjs} +1 -1
- package/dist/better-auth/{chunk-7LUOWWZI.mjs → chunk-J3W4EO5H.mjs} +36 -0
- package/dist/better-auth/{chunk-XME6A73W.mjs → chunk-MOCG3CBD.mjs} +36 -2
- package/dist/better-auth/index.js +71 -1
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +71 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +71 -1
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +7 -4
- package/dist/react/AutumnContext.d.ts +7 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-2LdIXsvH.d.ts → customer-CNfSCDv_.d.ts} +1 -1
- package/dist/react/{customer-VoTRBlpB.d.mts → customer-VD6pkmpz.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +7 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +7 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +5 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +5 -2
- package/dist/react/hooks/useCustomer.d.mts +4 -3
- package/dist/react/hooks/useCustomer.d.ts +4 -3
- package/dist/react/hooks/useEntity.d.mts +3 -2
- package/dist/react/hooks/useEntity.d.ts +3 -2
- package/dist/react/hooks/useListEvents.d.mts +5 -2
- package/dist/react/hooks/useListEvents.d.ts +5 -2
- package/dist/react/hooks/useListPlans.d.mts +6 -3
- package/dist/react/hooks/useListPlans.d.ts +6 -3
- package/dist/react/hooks/useReferrals.d.mts +3 -2
- package/dist/react/hooks/useReferrals.d.ts +3 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-op-Bv7x0N22.d.ts → list-plans-op-B87IUSZR.d.ts} +9 -1
- package/dist/react/{list-plans-op-Cj9hlzsX.d.mts → list-plans-op-CvGXtKAO.d.mts} +9 -1
- package/dist/react/{params-5C7THGzd.d.mts → params-ChMwkOJA.d.ts} +69 -1
- package/dist/react/{params-B1og9_ES.d.ts → params-DlzWLPN2.d.mts} +69 -1
- package/dist/react/{plan-Kbxmz27V.d.mts → plan-DBswUtWr.d.mts} +8 -0
- package/dist/react/{plan-Kbxmz27V.d.ts → plan-DBswUtWr.d.ts} +8 -0
- package/dist/sdk/index.d.mts +161 -1
- package/dist/sdk/index.d.ts +161 -1
- package/dist/sdk/index.js +35 -1
- package/dist/sdk/index.mjs +35 -1
- package/package.json +1 -1
|
@@ -1736,6 +1736,7 @@ var AttachItemPlanItem$outboundSchema = z11.pipe(
|
|
|
1736
1736
|
featureId: z11.string(),
|
|
1737
1737
|
included: z11.optional(z11.number()),
|
|
1738
1738
|
unlimited: z11.optional(z11.boolean()),
|
|
1739
|
+
pooled: z11._default(z11.boolean(), false),
|
|
1739
1740
|
reset: z11.optional(z11.lazy(() => AttachItemReset$outboundSchema)),
|
|
1740
1741
|
price: z11.optional(z11.lazy(() => AttachItemPrice$outboundSchema)),
|
|
1741
1742
|
proration: z11.optional(z11.lazy(() => AttachItemProration$outboundSchema)),
|
|
@@ -1855,6 +1856,7 @@ var AttachAddItemPlanItem$outboundSchema = z11.pipe(
|
|
|
1855
1856
|
featureId: z11.string(),
|
|
1856
1857
|
included: z11.optional(z11.number()),
|
|
1857
1858
|
unlimited: z11.optional(z11.boolean()),
|
|
1859
|
+
pooled: z11._default(z11.boolean(), false),
|
|
1858
1860
|
reset: z11.optional(z11.lazy(() => AttachAddItemReset$outboundSchema)),
|
|
1859
1861
|
price: z11.optional(z11.lazy(() => AttachAddItemPrice$outboundSchema)),
|
|
1860
1862
|
proration: z11.optional(z11.lazy(() => AttachAddItemProration$outboundSchema)),
|
|
@@ -2161,6 +2163,7 @@ var AttachUpsertLicensePlanItem$outboundSchema = z11.pipe(
|
|
|
2161
2163
|
featureId: z11.string(),
|
|
2162
2164
|
included: z11.optional(z11.number()),
|
|
2163
2165
|
unlimited: z11.optional(z11.boolean()),
|
|
2166
|
+
pooled: z11._default(z11.boolean(), false),
|
|
2164
2167
|
reset: z11.optional(z11.lazy(() => AttachUpsertLicenseReset$outboundSchema)),
|
|
2165
2168
|
price: z11.optional(z11.lazy(() => AttachUpsertLicensePrice$outboundSchema)),
|
|
2166
2169
|
proration: z11.optional(
|
|
@@ -3100,6 +3103,7 @@ var BillingUpdateItemPlanItem$outboundSchema = z14.pipe(
|
|
|
3100
3103
|
featureId: z14.string(),
|
|
3101
3104
|
included: z14.optional(z14.number()),
|
|
3102
3105
|
unlimited: z14.optional(z14.boolean()),
|
|
3106
|
+
pooled: z14._default(z14.boolean(), false),
|
|
3103
3107
|
reset: z14.optional(z14.lazy(() => BillingUpdateItemReset$outboundSchema)),
|
|
3104
3108
|
price: z14.optional(z14.lazy(() => BillingUpdateItemPrice$outboundSchema)),
|
|
3105
3109
|
proration: z14.optional(
|
|
@@ -3227,6 +3231,7 @@ var BillingUpdateAddItemPlanItem$outboundSchema = z14.pipe(
|
|
|
3227
3231
|
featureId: z14.string(),
|
|
3228
3232
|
included: z14.optional(z14.number()),
|
|
3229
3233
|
unlimited: z14.optional(z14.boolean()),
|
|
3234
|
+
pooled: z14._default(z14.boolean(), false),
|
|
3230
3235
|
reset: z14.optional(z14.lazy(() => BillingUpdateAddItemReset$outboundSchema)),
|
|
3231
3236
|
price: z14.optional(z14.lazy(() => BillingUpdateAddItemPrice$outboundSchema)),
|
|
3232
3237
|
proration: z14.optional(
|
|
@@ -3547,6 +3552,7 @@ var BillingUpdateUpsertLicensePlanItem$outboundSchema = z14.pipe(
|
|
|
3547
3552
|
featureId: z14.string(),
|
|
3548
3553
|
included: z14.optional(z14.number()),
|
|
3549
3554
|
unlimited: z14.optional(z14.boolean()),
|
|
3555
|
+
pooled: z14._default(z14.boolean(), false),
|
|
3550
3556
|
reset: z14.optional(
|
|
3551
3557
|
z14.lazy(() => BillingUpdateUpsertLicenseReset$outboundSchema)
|
|
3552
3558
|
),
|
|
@@ -5518,6 +5524,7 @@ var Item$inboundSchema = z18.pipe(
|
|
|
5518
5524
|
feature: optional3(z18.lazy(() => PlanFeature$inboundSchema)),
|
|
5519
5525
|
included: number2(),
|
|
5520
5526
|
unlimited: boolean2(),
|
|
5527
|
+
pooled: z18._default(boolean2(), false),
|
|
5521
5528
|
reset: nullable(z18.lazy(() => PlanItemReset$inboundSchema)),
|
|
5522
5529
|
price: nullable(z18.lazy(() => PlanItemPrice$inboundSchema)),
|
|
5523
5530
|
display: optional3(z18.lazy(() => PlanItemDisplay$inboundSchema)),
|
|
@@ -5679,6 +5686,7 @@ var PlanItem$inboundSchema = z18.pipe(
|
|
|
5679
5686
|
feature_id: string4(),
|
|
5680
5687
|
included: optional3(number2()),
|
|
5681
5688
|
unlimited: optional3(boolean2()),
|
|
5689
|
+
pooled: z18._default(boolean2(), false),
|
|
5682
5690
|
reset: optional3(z18.lazy(() => PlanVariantDetailsReset$inboundSchema)),
|
|
5683
5691
|
price: optional3(z18.lazy(() => PlanVariantDetailsPrice$inboundSchema)),
|
|
5684
5692
|
proration: optional3(z18.lazy(() => Proration$inboundSchema)),
|
|
@@ -7225,6 +7233,7 @@ var CreatePlanItemPlanItem$outboundSchema = z21.pipe(
|
|
|
7225
7233
|
featureId: z21.string(),
|
|
7226
7234
|
included: z21.optional(z21.number()),
|
|
7227
7235
|
unlimited: z21.optional(z21.boolean()),
|
|
7236
|
+
pooled: z21._default(z21.boolean(), false),
|
|
7228
7237
|
reset: z21.optional(
|
|
7229
7238
|
z21.lazy(() => CreatePlanItemResetRequestBody$outboundSchema)
|
|
7230
7239
|
),
|
|
@@ -7377,6 +7386,7 @@ var CreatePlanLicensePlanItem$outboundSchema = z21.pipe(
|
|
|
7377
7386
|
featureId: z21.string(),
|
|
7378
7387
|
included: z21.optional(z21.number()),
|
|
7379
7388
|
unlimited: z21.optional(z21.boolean()),
|
|
7389
|
+
pooled: z21._default(z21.boolean(), false),
|
|
7380
7390
|
reset: z21.optional(z21.lazy(() => CreatePlanLicenseReset$outboundSchema)),
|
|
7381
7391
|
price: z21.optional(z21.lazy(() => CreatePlanLicensePrice$outboundSchema)),
|
|
7382
7392
|
proration: z21.optional(
|
|
@@ -7841,6 +7851,7 @@ var CreatePlanItem$inboundSchema = z21.pipe(
|
|
|
7841
7851
|
feature: optional3(z21.lazy(() => CreatePlanFeature$inboundSchema)),
|
|
7842
7852
|
included: number2(),
|
|
7843
7853
|
unlimited: boolean2(),
|
|
7854
|
+
pooled: z21._default(boolean2(), false),
|
|
7844
7855
|
reset: nullable(
|
|
7845
7856
|
z21.lazy(() => CreatePlanItemResetResponse$inboundSchema)
|
|
7846
7857
|
),
|
|
@@ -8012,6 +8023,7 @@ var CreatePlanPlanItemResponse$inboundSchema = z21.pipe(
|
|
|
8012
8023
|
feature_id: string4(),
|
|
8013
8024
|
included: optional3(number2()),
|
|
8014
8025
|
unlimited: optional3(boolean2()),
|
|
8026
|
+
pooled: z21._default(boolean2(), false),
|
|
8015
8027
|
reset: optional3(
|
|
8016
8028
|
z21.lazy(() => CreatePlanVariantDetailsReset$inboundSchema)
|
|
8017
8029
|
),
|
|
@@ -8816,6 +8828,7 @@ var CreateScheduleItemPlanItem2$outboundSchema = z23.pipe(
|
|
|
8816
8828
|
featureId: z23.string(),
|
|
8817
8829
|
included: z23.optional(z23.number()),
|
|
8818
8830
|
unlimited: z23.optional(z23.boolean()),
|
|
8831
|
+
pooled: z23._default(z23.boolean(), false),
|
|
8819
8832
|
reset: z23.optional(z23.lazy(() => CreateScheduleItemReset2$outboundSchema)),
|
|
8820
8833
|
price: z23.optional(z23.lazy(() => CreateScheduleItemPrice2$outboundSchema)),
|
|
8821
8834
|
proration: z23.optional(
|
|
@@ -8928,6 +8941,7 @@ var CreateScheduleAddItemPlanItem2$outboundSchema = z23.pipe(
|
|
|
8928
8941
|
featureId: z23.string(),
|
|
8929
8942
|
included: z23.optional(z23.number()),
|
|
8930
8943
|
unlimited: z23.optional(z23.boolean()),
|
|
8944
|
+
pooled: z23._default(z23.boolean(), false),
|
|
8931
8945
|
reset: z23.optional(z23.lazy(() => CreateScheduleAddItemReset2$outboundSchema)),
|
|
8932
8946
|
price: z23.optional(z23.lazy(() => CreateScheduleAddItemPrice2$outboundSchema)),
|
|
8933
8947
|
proration: z23.optional(
|
|
@@ -11628,6 +11642,7 @@ var GetPlanItem$inboundSchema = z36.pipe(
|
|
|
11628
11642
|
feature: optional3(z36.lazy(() => GetPlanFeature$inboundSchema)),
|
|
11629
11643
|
included: number2(),
|
|
11630
11644
|
unlimited: boolean2(),
|
|
11645
|
+
pooled: z36._default(boolean2(), false),
|
|
11631
11646
|
reset: nullable(z36.lazy(() => GetPlanItemReset$inboundSchema)),
|
|
11632
11647
|
price: nullable(z36.lazy(() => GetPlanItemPrice$inboundSchema)),
|
|
11633
11648
|
display: optional3(z36.lazy(() => GetPlanItemDisplay$inboundSchema)),
|
|
@@ -11791,6 +11806,7 @@ var GetPlanPlanItem$inboundSchema = z36.pipe(
|
|
|
11791
11806
|
feature_id: string4(),
|
|
11792
11807
|
included: optional3(number2()),
|
|
11793
11808
|
unlimited: optional3(boolean2()),
|
|
11809
|
+
pooled: z36._default(boolean2(), false),
|
|
11794
11810
|
reset: optional3(
|
|
11795
11811
|
z36.lazy(() => GetPlanVariantDetailsReset$inboundSchema)
|
|
11796
11812
|
),
|
|
@@ -14161,6 +14177,7 @@ var ListPlansItem$inboundSchema = z46.pipe(
|
|
|
14161
14177
|
feature: optional3(z46.lazy(() => ListPlansFeature$inboundSchema)),
|
|
14162
14178
|
included: number2(),
|
|
14163
14179
|
unlimited: boolean2(),
|
|
14180
|
+
pooled: z46._default(boolean2(), false),
|
|
14164
14181
|
reset: nullable(z46.lazy(() => ListPlansItemReset$inboundSchema)),
|
|
14165
14182
|
price: nullable(z46.lazy(() => ListPlansItemPrice$inboundSchema)),
|
|
14166
14183
|
display: optional3(z46.lazy(() => ListPlansItemDisplay$inboundSchema)),
|
|
@@ -14309,6 +14326,7 @@ var ListPlansPlanItem$inboundSchema = z46.pipe(
|
|
|
14309
14326
|
feature_id: string4(),
|
|
14310
14327
|
included: optional3(number2()),
|
|
14311
14328
|
unlimited: optional3(boolean2()),
|
|
14329
|
+
pooled: z46._default(boolean2(), false),
|
|
14312
14330
|
reset: optional3(
|
|
14313
14331
|
z46.lazy(() => ListPlansVariantDetailsReset$inboundSchema)
|
|
14314
14332
|
),
|
|
@@ -15096,6 +15114,7 @@ var MultiAttachPlanItem$outboundSchema = z49.pipe(
|
|
|
15096
15114
|
featureId: z49.string(),
|
|
15097
15115
|
included: z49.optional(z49.number()),
|
|
15098
15116
|
unlimited: z49.optional(z49.boolean()),
|
|
15117
|
+
pooled: z49._default(z49.boolean(), false),
|
|
15099
15118
|
reset: z49.optional(z49.lazy(() => MultiAttachReset$outboundSchema)),
|
|
15100
15119
|
price: z49.optional(z49.lazy(() => MultiAttachPrice$outboundSchema)),
|
|
15101
15120
|
proration: z49.optional(z49.lazy(() => MultiAttachProration$outboundSchema)),
|
|
@@ -15887,6 +15906,7 @@ var PreviewAttachItemPlanItem$outboundSchema = z52.pipe(
|
|
|
15887
15906
|
featureId: z52.string(),
|
|
15888
15907
|
included: z52.optional(z52.number()),
|
|
15889
15908
|
unlimited: z52.optional(z52.boolean()),
|
|
15909
|
+
pooled: z52._default(z52.boolean(), false),
|
|
15890
15910
|
reset: z52.optional(z52.lazy(() => PreviewAttachItemReset$outboundSchema)),
|
|
15891
15911
|
price: z52.optional(z52.lazy(() => PreviewAttachItemPrice$outboundSchema)),
|
|
15892
15912
|
proration: z52.optional(
|
|
@@ -16014,6 +16034,7 @@ var PreviewAttachAddItemPlanItem$outboundSchema = z52.pipe(
|
|
|
16014
16034
|
featureId: z52.string(),
|
|
16015
16035
|
included: z52.optional(z52.number()),
|
|
16016
16036
|
unlimited: z52.optional(z52.boolean()),
|
|
16037
|
+
pooled: z52._default(z52.boolean(), false),
|
|
16017
16038
|
reset: z52.optional(z52.lazy(() => PreviewAttachAddItemReset$outboundSchema)),
|
|
16018
16039
|
price: z52.optional(z52.lazy(() => PreviewAttachAddItemPrice$outboundSchema)),
|
|
16019
16040
|
proration: z52.optional(
|
|
@@ -16334,6 +16355,7 @@ var PreviewAttachUpsertLicensePlanItem$outboundSchema = z52.pipe(
|
|
|
16334
16355
|
featureId: z52.string(),
|
|
16335
16356
|
included: z52.optional(z52.number()),
|
|
16336
16357
|
unlimited: z52.optional(z52.boolean()),
|
|
16358
|
+
pooled: z52._default(z52.boolean(), false),
|
|
16337
16359
|
reset: z52.optional(
|
|
16338
16360
|
z52.lazy(() => PreviewAttachUpsertLicenseReset$outboundSchema)
|
|
16339
16361
|
),
|
|
@@ -17071,6 +17093,7 @@ var PreviewMultiAttachPlanItem$outboundSchema = z53.pipe(
|
|
|
17071
17093
|
featureId: z53.string(),
|
|
17072
17094
|
included: z53.optional(z53.number()),
|
|
17073
17095
|
unlimited: z53.optional(z53.boolean()),
|
|
17096
|
+
pooled: z53._default(z53.boolean(), false),
|
|
17074
17097
|
reset: z53.optional(z53.lazy(() => PreviewMultiAttachReset$outboundSchema)),
|
|
17075
17098
|
price: z53.optional(z53.lazy(() => PreviewMultiAttachPrice$outboundSchema)),
|
|
17076
17099
|
proration: z53.optional(
|
|
@@ -18255,6 +18278,7 @@ var PreviewUpdateItemPlanItem$outboundSchema = z55.pipe(
|
|
|
18255
18278
|
featureId: z55.string(),
|
|
18256
18279
|
included: z55.optional(z55.number()),
|
|
18257
18280
|
unlimited: z55.optional(z55.boolean()),
|
|
18281
|
+
pooled: z55._default(z55.boolean(), false),
|
|
18258
18282
|
reset: z55.optional(z55.lazy(() => PreviewUpdateItemReset$outboundSchema)),
|
|
18259
18283
|
price: z55.optional(z55.lazy(() => PreviewUpdateItemPrice$outboundSchema)),
|
|
18260
18284
|
proration: z55.optional(
|
|
@@ -18382,6 +18406,7 @@ var PreviewUpdateAddItemPlanItem$outboundSchema = z55.pipe(
|
|
|
18382
18406
|
featureId: z55.string(),
|
|
18383
18407
|
included: z55.optional(z55.number()),
|
|
18384
18408
|
unlimited: z55.optional(z55.boolean()),
|
|
18409
|
+
pooled: z55._default(z55.boolean(), false),
|
|
18385
18410
|
reset: z55.optional(z55.lazy(() => PreviewUpdateAddItemReset$outboundSchema)),
|
|
18386
18411
|
price: z55.optional(z55.lazy(() => PreviewUpdateAddItemPrice$outboundSchema)),
|
|
18387
18412
|
proration: z55.optional(
|
|
@@ -18702,6 +18727,7 @@ var PreviewUpdateUpsertLicensePlanItem$outboundSchema = z55.pipe(
|
|
|
18702
18727
|
featureId: z55.string(),
|
|
18703
18728
|
included: z55.optional(z55.number()),
|
|
18704
18729
|
unlimited: z55.optional(z55.boolean()),
|
|
18730
|
+
pooled: z55._default(z55.boolean(), false),
|
|
18705
18731
|
reset: z55.optional(
|
|
18706
18732
|
z55.lazy(() => PreviewUpdateUpsertLicenseReset$outboundSchema)
|
|
18707
18733
|
),
|
|
@@ -19676,6 +19702,7 @@ var SetupPaymentItemPlanItem$outboundSchema = z61.pipe(
|
|
|
19676
19702
|
featureId: z61.string(),
|
|
19677
19703
|
included: z61.optional(z61.number()),
|
|
19678
19704
|
unlimited: z61.optional(z61.boolean()),
|
|
19705
|
+
pooled: z61._default(z61.boolean(), false),
|
|
19679
19706
|
reset: z61.optional(z61.lazy(() => SetupPaymentItemReset$outboundSchema)),
|
|
19680
19707
|
price: z61.optional(z61.lazy(() => SetupPaymentItemPrice$outboundSchema)),
|
|
19681
19708
|
proration: z61.optional(
|
|
@@ -19803,6 +19830,7 @@ var SetupPaymentAddItemPlanItem$outboundSchema = z61.pipe(
|
|
|
19803
19830
|
featureId: z61.string(),
|
|
19804
19831
|
included: z61.optional(z61.number()),
|
|
19805
19832
|
unlimited: z61.optional(z61.boolean()),
|
|
19833
|
+
pooled: z61._default(z61.boolean(), false),
|
|
19806
19834
|
reset: z61.optional(z61.lazy(() => SetupPaymentAddItemReset$outboundSchema)),
|
|
19807
19835
|
price: z61.optional(z61.lazy(() => SetupPaymentAddItemPrice$outboundSchema)),
|
|
19808
19836
|
proration: z61.optional(
|
|
@@ -20123,6 +20151,7 @@ var SetupPaymentUpsertLicensePlanItem$outboundSchema = z61.pipe(
|
|
|
20123
20151
|
featureId: z61.string(),
|
|
20124
20152
|
included: z61.optional(z61.number()),
|
|
20125
20153
|
unlimited: z61.optional(z61.boolean()),
|
|
20154
|
+
pooled: z61._default(z61.boolean(), false),
|
|
20126
20155
|
reset: z61.optional(
|
|
20127
20156
|
z61.lazy(() => SetupPaymentUpsertLicenseReset$outboundSchema)
|
|
20128
20157
|
),
|
|
@@ -22762,6 +22791,7 @@ var UpdatePlanItemPlanItem$outboundSchema = z69.pipe(
|
|
|
22762
22791
|
featureId: z69.string(),
|
|
22763
22792
|
included: z69.optional(z69.number()),
|
|
22764
22793
|
unlimited: z69.optional(z69.boolean()),
|
|
22794
|
+
pooled: z69._default(z69.boolean(), false),
|
|
22765
22795
|
reset: z69.optional(
|
|
22766
22796
|
z69.lazy(() => UpdatePlanItemResetRequestBody$outboundSchema)
|
|
22767
22797
|
),
|
|
@@ -22914,6 +22944,7 @@ var UpdatePlanLicensePlanItem$outboundSchema = z69.pipe(
|
|
|
22914
22944
|
featureId: z69.string(),
|
|
22915
22945
|
included: z69.optional(z69.number()),
|
|
22916
22946
|
unlimited: z69.optional(z69.boolean()),
|
|
22947
|
+
pooled: z69._default(z69.boolean(), false),
|
|
22917
22948
|
reset: z69.optional(z69.lazy(() => UpdatePlanLicenseReset$outboundSchema)),
|
|
22918
22949
|
price: z69.optional(z69.lazy(() => UpdatePlanLicensePrice$outboundSchema)),
|
|
22919
22950
|
proration: z69.optional(
|
|
@@ -23314,6 +23345,7 @@ var VariantPlanItem$outboundSchema = z69.pipe(
|
|
|
23314
23345
|
featureId: z69.string(),
|
|
23315
23346
|
included: z69.optional(z69.number()),
|
|
23316
23347
|
unlimited: z69.optional(z69.boolean()),
|
|
23348
|
+
pooled: z69._default(z69.boolean(), false),
|
|
23317
23349
|
reset: z69.optional(z69.lazy(() => VariantReset$outboundSchema)),
|
|
23318
23350
|
price: z69.optional(z69.lazy(() => VariantPrice$outboundSchema)),
|
|
23319
23351
|
proration: z69.optional(z69.lazy(() => VariantProration$outboundSchema)),
|
|
@@ -23792,6 +23824,7 @@ var UpdatePlanItem$inboundSchema = z69.pipe(
|
|
|
23792
23824
|
feature: optional3(z69.lazy(() => UpdatePlanFeature$inboundSchema)),
|
|
23793
23825
|
included: number2(),
|
|
23794
23826
|
unlimited: boolean2(),
|
|
23827
|
+
pooled: z69._default(boolean2(), false),
|
|
23795
23828
|
reset: nullable(
|
|
23796
23829
|
z69.lazy(() => UpdatePlanItemResetResponse$inboundSchema)
|
|
23797
23830
|
),
|
|
@@ -23963,6 +23996,7 @@ var UpdatePlanPlanItemResponse$inboundSchema = z69.pipe(
|
|
|
23963
23996
|
feature_id: string4(),
|
|
23964
23997
|
included: optional3(number2()),
|
|
23965
23998
|
unlimited: optional3(boolean2()),
|
|
23999
|
+
pooled: z69._default(boolean2(), false),
|
|
23966
24000
|
reset: optional3(
|
|
23967
24001
|
z69.lazy(() => UpdatePlanVariantDetailsReset$inboundSchema)
|
|
23968
24002
|
),
|
|
@@ -26730,7 +26764,7 @@ var Billing = class extends ClientSDK {
|
|
|
26730
26764
|
* @example
|
|
26731
26765
|
* ```typescript
|
|
26732
26766
|
* // Schedule a transition from a trial plan to a paid plan
|
|
26733
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
26767
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1785242875734,"plans":[{"planId":"trial_plan"}]},{"startsAt":1786452475734,"plans":[{"planId":"pro_plan"}]}] });
|
|
26734
26768
|
* ```
|
|
26735
26769
|
*
|
|
26736
26770
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -245,6 +245,7 @@ var attachItemPlanItemOutboundSchema = z2.object({
|
|
|
245
245
|
feature_id: z2.string(),
|
|
246
246
|
included: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
247
247
|
unlimited: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
248
|
+
pooled: z2.boolean(),
|
|
248
249
|
reset: z2.union([attachItemResetOutboundSchema, z2.undefined()]).optional(),
|
|
249
250
|
price: z2.union([attachItemPriceOutboundSchema, z2.undefined()]).optional(),
|
|
250
251
|
proration: z2.union([attachItemProrationOutboundSchema, z2.undefined()]).optional(),
|
|
@@ -301,6 +302,7 @@ var attachAddItemPlanItemOutboundSchema = z2.object({
|
|
|
301
302
|
feature_id: z2.string(),
|
|
302
303
|
included: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
303
304
|
unlimited: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
305
|
+
pooled: z2.boolean(),
|
|
304
306
|
reset: z2.union([attachAddItemResetOutboundSchema, z2.undefined()]).optional(),
|
|
305
307
|
price: z2.union([attachAddItemPriceOutboundSchema, z2.undefined()]).optional(),
|
|
306
308
|
proration: z2.union([attachAddItemProrationOutboundSchema, z2.undefined()]).optional(),
|
|
@@ -434,6 +436,7 @@ var attachUpsertLicensePlanItemOutboundSchema = z2.object({
|
|
|
434
436
|
feature_id: z2.string(),
|
|
435
437
|
included: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
436
438
|
unlimited: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
439
|
+
pooled: z2.boolean(),
|
|
437
440
|
reset: z2.union([attachUpsertLicenseResetOutboundSchema, z2.undefined()]).optional(),
|
|
438
441
|
price: z2.union([attachUpsertLicensePriceOutboundSchema, z2.undefined()]).optional(),
|
|
439
442
|
proration: z2.union([attachUpsertLicenseProrationOutboundSchema, z2.undefined()]).optional(),
|
|
@@ -576,6 +579,7 @@ var attachItemPlanItemSchema = z2.object({
|
|
|
576
579
|
featureId: z2.string(),
|
|
577
580
|
included: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
578
581
|
unlimited: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
582
|
+
pooled: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
579
583
|
reset: z2.union([attachItemResetSchema, z2.undefined()]).optional(),
|
|
580
584
|
price: z2.union([attachItemPriceSchema, z2.undefined()]).optional(),
|
|
581
585
|
proration: z2.union([attachItemProrationSchema, z2.undefined()]).optional(),
|
|
@@ -617,6 +621,7 @@ var attachAddItemPlanItemSchema = z2.object({
|
|
|
617
621
|
featureId: z2.string(),
|
|
618
622
|
included: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
619
623
|
unlimited: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
624
|
+
pooled: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
620
625
|
reset: z2.union([attachAddItemResetSchema, z2.undefined()]).optional(),
|
|
621
626
|
price: z2.union([attachAddItemPriceSchema, z2.undefined()]).optional(),
|
|
622
627
|
proration: z2.union([attachAddItemProrationSchema, z2.undefined()]).optional(),
|
|
@@ -742,6 +747,7 @@ var attachUpsertLicensePlanItemSchema = z2.object({
|
|
|
742
747
|
featureId: z2.string(),
|
|
743
748
|
included: z2.union([z2.number(), z2.undefined()]).optional(),
|
|
744
749
|
unlimited: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
750
|
+
pooled: z2.union([z2.boolean(), z2.undefined()]).optional(),
|
|
745
751
|
reset: z2.union([attachUpsertLicenseResetSchema, z2.undefined()]).optional(),
|
|
746
752
|
price: z2.union([attachUpsertLicensePriceSchema, z2.undefined()]).optional(),
|
|
747
753
|
proration: z2.union([attachUpsertLicenseProrationSchema, z2.undefined()]).optional(),
|
|
@@ -1229,6 +1235,7 @@ var listPlansItemSchema = z6.object({
|
|
|
1229
1235
|
feature: z6.union([listPlansFeatureSchema, z6.undefined()]).optional(),
|
|
1230
1236
|
included: z6.number(),
|
|
1231
1237
|
unlimited: z6.boolean(),
|
|
1238
|
+
pooled: z6.boolean(),
|
|
1232
1239
|
reset: listPlansItemResetSchema.nullable(),
|
|
1233
1240
|
price: listPlansItemPriceSchema.nullable(),
|
|
1234
1241
|
display: z6.union([listPlansItemDisplaySchema, z6.undefined()]).optional(),
|
|
@@ -1289,6 +1296,7 @@ var listPlansPlanItemSchema = z6.object({
|
|
|
1289
1296
|
featureId: z6.string(),
|
|
1290
1297
|
included: z6.union([z6.number(), z6.undefined()]).optional(),
|
|
1291
1298
|
unlimited: z6.union([z6.boolean(), z6.undefined()]).optional(),
|
|
1299
|
+
pooled: z6.boolean(),
|
|
1292
1300
|
reset: z6.union([listPlansVariantDetailsResetSchema, z6.undefined()]).optional(),
|
|
1293
1301
|
price: z6.union([listPlansVariantDetailsPriceSchema, z6.undefined()]).optional(),
|
|
1294
1302
|
proration: z6.union([listPlansProrationSchema, z6.undefined()]).optional(),
|
|
@@ -1585,6 +1593,7 @@ var multiAttachPlanItemOutboundSchema = z7.object({
|
|
|
1585
1593
|
feature_id: z7.string(),
|
|
1586
1594
|
included: z7.union([z7.number(), z7.undefined()]).optional(),
|
|
1587
1595
|
unlimited: z7.union([z7.boolean(), z7.undefined()]).optional(),
|
|
1596
|
+
pooled: z7.boolean(),
|
|
1588
1597
|
reset: z7.union([multiAttachResetOutboundSchema, z7.undefined()]).optional(),
|
|
1589
1598
|
price: z7.union([multiAttachPriceOutboundSchema, z7.undefined()]).optional(),
|
|
1590
1599
|
proration: z7.union([multiAttachProrationOutboundSchema, z7.undefined()]).optional(),
|
|
@@ -1717,6 +1726,7 @@ var multiAttachPlanItemSchema = z7.object({
|
|
|
1717
1726
|
featureId: z7.string(),
|
|
1718
1727
|
included: z7.union([z7.number(), z7.undefined()]).optional(),
|
|
1719
1728
|
unlimited: z7.union([z7.boolean(), z7.undefined()]).optional(),
|
|
1729
|
+
pooled: z7.union([z7.boolean(), z7.undefined()]).optional(),
|
|
1720
1730
|
reset: z7.union([multiAttachResetSchema, z7.undefined()]).optional(),
|
|
1721
1731
|
price: z7.union([multiAttachPriceSchema, z7.undefined()]).optional(),
|
|
1722
1732
|
proration: z7.union([multiAttachProrationSchema, z7.undefined()]).optional(),
|
|
@@ -2093,6 +2103,7 @@ var previewAttachItemPlanItemOutboundSchema = z9.object({
|
|
|
2093
2103
|
feature_id: z9.string(),
|
|
2094
2104
|
included: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2095
2105
|
unlimited: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2106
|
+
pooled: z9.boolean(),
|
|
2096
2107
|
reset: z9.union([previewAttachItemResetOutboundSchema, z9.undefined()]).optional(),
|
|
2097
2108
|
price: z9.union([previewAttachItemPriceOutboundSchema, z9.undefined()]).optional(),
|
|
2098
2109
|
proration: z9.union([previewAttachItemProrationOutboundSchema, z9.undefined()]).optional(),
|
|
@@ -2152,6 +2163,7 @@ var previewAttachAddItemPlanItemOutboundSchema = z9.object({
|
|
|
2152
2163
|
feature_id: z9.string(),
|
|
2153
2164
|
included: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2154
2165
|
unlimited: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2166
|
+
pooled: z9.boolean(),
|
|
2155
2167
|
reset: z9.union([previewAttachAddItemResetOutboundSchema, z9.undefined()]).optional(),
|
|
2156
2168
|
price: z9.union([previewAttachAddItemPriceOutboundSchema, z9.undefined()]).optional(),
|
|
2157
2169
|
proration: z9.union([previewAttachAddItemProrationOutboundSchema, z9.undefined()]).optional(),
|
|
@@ -2290,6 +2302,7 @@ var previewAttachUpsertLicensePlanItemOutboundSchema = z9.object({
|
|
|
2290
2302
|
feature_id: z9.string(),
|
|
2291
2303
|
included: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2292
2304
|
unlimited: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2305
|
+
pooled: z9.boolean(),
|
|
2293
2306
|
reset: z9.union([previewAttachUpsertLicenseResetOutboundSchema, z9.undefined()]).optional(),
|
|
2294
2307
|
price: z9.union([previewAttachUpsertLicensePriceOutboundSchema, z9.undefined()]).optional(),
|
|
2295
2308
|
proration: z9.union([previewAttachUpsertLicenseProrationOutboundSchema, z9.undefined()]).optional(),
|
|
@@ -2439,6 +2452,7 @@ var previewAttachItemPlanItemSchema = z9.object({
|
|
|
2439
2452
|
featureId: z9.string(),
|
|
2440
2453
|
included: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2441
2454
|
unlimited: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2455
|
+
pooled: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2442
2456
|
reset: z9.union([previewAttachItemResetSchema, z9.undefined()]).optional(),
|
|
2443
2457
|
price: z9.union([previewAttachItemPriceSchema, z9.undefined()]).optional(),
|
|
2444
2458
|
proration: z9.union([previewAttachItemProrationSchema, z9.undefined()]).optional(),
|
|
@@ -2483,6 +2497,7 @@ var previewAttachAddItemPlanItemSchema = z9.object({
|
|
|
2483
2497
|
featureId: z9.string(),
|
|
2484
2498
|
included: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2485
2499
|
unlimited: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2500
|
+
pooled: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2486
2501
|
reset: z9.union([previewAttachAddItemResetSchema, z9.undefined()]).optional(),
|
|
2487
2502
|
price: z9.union([previewAttachAddItemPriceSchema, z9.undefined()]).optional(),
|
|
2488
2503
|
proration: z9.union([previewAttachAddItemProrationSchema, z9.undefined()]).optional(),
|
|
@@ -2608,6 +2623,7 @@ var previewAttachUpsertLicensePlanItemSchema = z9.object({
|
|
|
2608
2623
|
featureId: z9.string(),
|
|
2609
2624
|
included: z9.union([z9.number(), z9.undefined()]).optional(),
|
|
2610
2625
|
unlimited: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2626
|
+
pooled: z9.union([z9.boolean(), z9.undefined()]).optional(),
|
|
2611
2627
|
reset: z9.union([previewAttachUpsertLicenseResetSchema, z9.undefined()]).optional(),
|
|
2612
2628
|
price: z9.union([previewAttachUpsertLicensePriceSchema, z9.undefined()]).optional(),
|
|
2613
2629
|
proration: z9.union([previewAttachUpsertLicenseProrationSchema, z9.undefined()]).optional(),
|
|
@@ -2929,6 +2945,7 @@ var previewMultiAttachPlanItemOutboundSchema = z10.object({
|
|
|
2929
2945
|
feature_id: z10.string(),
|
|
2930
2946
|
included: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
2931
2947
|
unlimited: z10.union([z10.boolean(), z10.undefined()]).optional(),
|
|
2948
|
+
pooled: z10.boolean(),
|
|
2932
2949
|
reset: z10.union([previewMultiAttachResetOutboundSchema, z10.undefined()]).optional(),
|
|
2933
2950
|
price: z10.union([previewMultiAttachPriceOutboundSchema, z10.undefined()]).optional(),
|
|
2934
2951
|
proration: z10.union([previewMultiAttachProrationOutboundSchema, z10.undefined()]).optional(),
|
|
@@ -3071,6 +3088,7 @@ var previewMultiAttachPlanItemSchema = z10.object({
|
|
|
3071
3088
|
featureId: z10.string(),
|
|
3072
3089
|
included: z10.union([z10.number(), z10.undefined()]).optional(),
|
|
3073
3090
|
unlimited: z10.union([z10.boolean(), z10.undefined()]).optional(),
|
|
3091
|
+
pooled: z10.union([z10.boolean(), z10.undefined()]).optional(),
|
|
3074
3092
|
reset: z10.union([previewMultiAttachResetSchema, z10.undefined()]).optional(),
|
|
3075
3093
|
price: z10.union([previewMultiAttachPriceSchema, z10.undefined()]).optional(),
|
|
3076
3094
|
proration: z10.union([previewMultiAttachProrationSchema, z10.undefined()]).optional(),
|
|
@@ -3456,6 +3474,7 @@ var previewUpdateItemPlanItemOutboundSchema = z11.object({
|
|
|
3456
3474
|
feature_id: z11.string(),
|
|
3457
3475
|
included: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
3458
3476
|
unlimited: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3477
|
+
pooled: z11.boolean(),
|
|
3459
3478
|
reset: z11.union([previewUpdateItemResetOutboundSchema, z11.undefined()]).optional(),
|
|
3460
3479
|
price: z11.union([previewUpdateItemPriceOutboundSchema, z11.undefined()]).optional(),
|
|
3461
3480
|
proration: z11.union([previewUpdateItemProrationOutboundSchema, z11.undefined()]).optional(),
|
|
@@ -3515,6 +3534,7 @@ var previewUpdateAddItemPlanItemOutboundSchema = z11.object({
|
|
|
3515
3534
|
feature_id: z11.string(),
|
|
3516
3535
|
included: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
3517
3536
|
unlimited: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3537
|
+
pooled: z11.boolean(),
|
|
3518
3538
|
reset: z11.union([previewUpdateAddItemResetOutboundSchema, z11.undefined()]).optional(),
|
|
3519
3539
|
price: z11.union([previewUpdateAddItemPriceOutboundSchema, z11.undefined()]).optional(),
|
|
3520
3540
|
proration: z11.union([previewUpdateAddItemProrationOutboundSchema, z11.undefined()]).optional(),
|
|
@@ -3653,6 +3673,7 @@ var previewUpdateUpsertLicensePlanItemOutboundSchema = z11.object({
|
|
|
3653
3673
|
feature_id: z11.string(),
|
|
3654
3674
|
included: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
3655
3675
|
unlimited: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3676
|
+
pooled: z11.boolean(),
|
|
3656
3677
|
reset: z11.union([previewUpdateUpsertLicenseResetOutboundSchema, z11.undefined()]).optional(),
|
|
3657
3678
|
price: z11.union([previewUpdateUpsertLicensePriceOutboundSchema, z11.undefined()]).optional(),
|
|
3658
3679
|
proration: z11.union([previewUpdateUpsertLicenseProrationOutboundSchema, z11.undefined()]).optional(),
|
|
@@ -3786,6 +3807,7 @@ var previewUpdateItemPlanItemSchema = z11.object({
|
|
|
3786
3807
|
featureId: z11.string(),
|
|
3787
3808
|
included: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
3788
3809
|
unlimited: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3810
|
+
pooled: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3789
3811
|
reset: z11.union([previewUpdateItemResetSchema, z11.undefined()]).optional(),
|
|
3790
3812
|
price: z11.union([previewUpdateItemPriceSchema, z11.undefined()]).optional(),
|
|
3791
3813
|
proration: z11.union([previewUpdateItemProrationSchema, z11.undefined()]).optional(),
|
|
@@ -3830,6 +3852,7 @@ var previewUpdateAddItemPlanItemSchema = z11.object({
|
|
|
3830
3852
|
featureId: z11.string(),
|
|
3831
3853
|
included: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
3832
3854
|
unlimited: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3855
|
+
pooled: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3833
3856
|
reset: z11.union([previewUpdateAddItemResetSchema, z11.undefined()]).optional(),
|
|
3834
3857
|
price: z11.union([previewUpdateAddItemPriceSchema, z11.undefined()]).optional(),
|
|
3835
3858
|
proration: z11.union([previewUpdateAddItemProrationSchema, z11.undefined()]).optional(),
|
|
@@ -3955,6 +3978,7 @@ var previewUpdateUpsertLicensePlanItemSchema = z11.object({
|
|
|
3955
3978
|
featureId: z11.string(),
|
|
3956
3979
|
included: z11.union([z11.number(), z11.undefined()]).optional(),
|
|
3957
3980
|
unlimited: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3981
|
+
pooled: z11.union([z11.boolean(), z11.undefined()]).optional(),
|
|
3958
3982
|
reset: z11.union([previewUpdateUpsertLicenseResetSchema, z11.undefined()]).optional(),
|
|
3959
3983
|
price: z11.union([previewUpdateUpsertLicensePriceSchema, z11.undefined()]).optional(),
|
|
3960
3984
|
proration: z11.union([previewUpdateUpsertLicenseProrationSchema, z11.undefined()]).optional(),
|
|
@@ -4265,6 +4289,7 @@ var setupPaymentItemPlanItemOutboundSchema = z13.object({
|
|
|
4265
4289
|
feature_id: z13.string(),
|
|
4266
4290
|
included: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
4267
4291
|
unlimited: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4292
|
+
pooled: z13.boolean(),
|
|
4268
4293
|
reset: z13.union([setupPaymentItemResetOutboundSchema, z13.undefined()]).optional(),
|
|
4269
4294
|
price: z13.union([setupPaymentItemPriceOutboundSchema, z13.undefined()]).optional(),
|
|
4270
4295
|
proration: z13.union([setupPaymentItemProrationOutboundSchema, z13.undefined()]).optional(),
|
|
@@ -4326,6 +4351,7 @@ var setupPaymentAddItemPlanItemOutboundSchema = z13.object({
|
|
|
4326
4351
|
feature_id: z13.string(),
|
|
4327
4352
|
included: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
4328
4353
|
unlimited: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4354
|
+
pooled: z13.boolean(),
|
|
4329
4355
|
reset: z13.union([setupPaymentAddItemResetOutboundSchema, z13.undefined()]).optional(),
|
|
4330
4356
|
price: z13.union([setupPaymentAddItemPriceOutboundSchema, z13.undefined()]).optional(),
|
|
4331
4357
|
proration: z13.union([setupPaymentAddItemProrationOutboundSchema, z13.undefined()]).optional(),
|
|
@@ -4462,6 +4488,7 @@ var setupPaymentUpsertLicensePlanItemOutboundSchema = z13.object({
|
|
|
4462
4488
|
feature_id: z13.string(),
|
|
4463
4489
|
included: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
4464
4490
|
unlimited: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4491
|
+
pooled: z13.boolean(),
|
|
4465
4492
|
reset: z13.union([setupPaymentUpsertLicenseResetOutboundSchema, z13.undefined()]).optional(),
|
|
4466
4493
|
price: z13.union([setupPaymentUpsertLicensePriceOutboundSchema, z13.undefined()]).optional(),
|
|
4467
4494
|
proration: z13.union([setupPaymentUpsertLicenseProrationOutboundSchema, z13.undefined()]).optional(),
|
|
@@ -4594,6 +4621,7 @@ var setupPaymentItemPlanItemSchema = z13.object({
|
|
|
4594
4621
|
featureId: z13.string(),
|
|
4595
4622
|
included: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
4596
4623
|
unlimited: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4624
|
+
pooled: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4597
4625
|
reset: z13.union([setupPaymentItemResetSchema, z13.undefined()]).optional(),
|
|
4598
4626
|
price: z13.union([setupPaymentItemPriceSchema, z13.undefined()]).optional(),
|
|
4599
4627
|
proration: z13.union([setupPaymentItemProrationSchema, z13.undefined()]).optional(),
|
|
@@ -4638,6 +4666,7 @@ var setupPaymentAddItemPlanItemSchema = z13.object({
|
|
|
4638
4666
|
featureId: z13.string(),
|
|
4639
4667
|
included: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
4640
4668
|
unlimited: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4669
|
+
pooled: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4641
4670
|
reset: z13.union([setupPaymentAddItemResetSchema, z13.undefined()]).optional(),
|
|
4642
4671
|
price: z13.union([setupPaymentAddItemPriceSchema, z13.undefined()]).optional(),
|
|
4643
4672
|
proration: z13.union([setupPaymentAddItemProrationSchema, z13.undefined()]).optional(),
|
|
@@ -4763,6 +4792,7 @@ var setupPaymentUpsertLicensePlanItemSchema = z13.object({
|
|
|
4763
4792
|
featureId: z13.string(),
|
|
4764
4793
|
included: z13.union([z13.number(), z13.undefined()]).optional(),
|
|
4765
4794
|
unlimited: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4795
|
+
pooled: z13.union([z13.boolean(), z13.undefined()]).optional(),
|
|
4766
4796
|
reset: z13.union([setupPaymentUpsertLicenseResetSchema, z13.undefined()]).optional(),
|
|
4767
4797
|
price: z13.union([setupPaymentUpsertLicensePriceSchema, z13.undefined()]).optional(),
|
|
4768
4798
|
proration: z13.union([setupPaymentUpsertLicenseProrationSchema, z13.undefined()]).optional(),
|
|
@@ -5022,6 +5052,7 @@ var billingUpdateItemPlanItemOutboundSchema = z14.object({
|
|
|
5022
5052
|
feature_id: z14.string(),
|
|
5023
5053
|
included: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5024
5054
|
unlimited: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5055
|
+
pooled: z14.boolean(),
|
|
5025
5056
|
reset: z14.union([billingUpdateItemResetOutboundSchema, z14.undefined()]).optional(),
|
|
5026
5057
|
price: z14.union([billingUpdateItemPriceOutboundSchema, z14.undefined()]).optional(),
|
|
5027
5058
|
proration: z14.union([billingUpdateItemProrationOutboundSchema, z14.undefined()]).optional(),
|
|
@@ -5081,6 +5112,7 @@ var billingUpdateAddItemPlanItemOutboundSchema = z14.object({
|
|
|
5081
5112
|
feature_id: z14.string(),
|
|
5082
5113
|
included: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5083
5114
|
unlimited: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5115
|
+
pooled: z14.boolean(),
|
|
5084
5116
|
reset: z14.union([billingUpdateAddItemResetOutboundSchema, z14.undefined()]).optional(),
|
|
5085
5117
|
price: z14.union([billingUpdateAddItemPriceOutboundSchema, z14.undefined()]).optional(),
|
|
5086
5118
|
proration: z14.union([billingUpdateAddItemProrationOutboundSchema, z14.undefined()]).optional(),
|
|
@@ -5219,6 +5251,7 @@ var billingUpdateUpsertLicensePlanItemOutboundSchema = z14.object({
|
|
|
5219
5251
|
feature_id: z14.string(),
|
|
5220
5252
|
included: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5221
5253
|
unlimited: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5254
|
+
pooled: z14.boolean(),
|
|
5222
5255
|
reset: z14.union([billingUpdateUpsertLicenseResetOutboundSchema, z14.undefined()]).optional(),
|
|
5223
5256
|
price: z14.union([billingUpdateUpsertLicensePriceOutboundSchema, z14.undefined()]).optional(),
|
|
5224
5257
|
proration: z14.union([billingUpdateUpsertLicenseProrationOutboundSchema, z14.undefined()]).optional(),
|
|
@@ -5348,6 +5381,7 @@ var billingUpdateItemPlanItemSchema = z14.object({
|
|
|
5348
5381
|
featureId: z14.string(),
|
|
5349
5382
|
included: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5350
5383
|
unlimited: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5384
|
+
pooled: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5351
5385
|
reset: z14.union([billingUpdateItemResetSchema, z14.undefined()]).optional(),
|
|
5352
5386
|
price: z14.union([billingUpdateItemPriceSchema, z14.undefined()]).optional(),
|
|
5353
5387
|
proration: z14.union([billingUpdateItemProrationSchema, z14.undefined()]).optional(),
|
|
@@ -5392,6 +5426,7 @@ var billingUpdateAddItemPlanItemSchema = z14.object({
|
|
|
5392
5426
|
featureId: z14.string(),
|
|
5393
5427
|
included: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5394
5428
|
unlimited: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5429
|
+
pooled: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5395
5430
|
reset: z14.union([billingUpdateAddItemResetSchema, z14.undefined()]).optional(),
|
|
5396
5431
|
price: z14.union([billingUpdateAddItemPriceSchema, z14.undefined()]).optional(),
|
|
5397
5432
|
proration: z14.union([billingUpdateAddItemProrationSchema, z14.undefined()]).optional(),
|
|
@@ -5517,6 +5552,7 @@ var billingUpdateUpsertLicensePlanItemSchema = z14.object({
|
|
|
5517
5552
|
featureId: z14.string(),
|
|
5518
5553
|
included: z14.union([z14.number(), z14.undefined()]).optional(),
|
|
5519
5554
|
unlimited: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5555
|
+
pooled: z14.union([z14.boolean(), z14.undefined()]).optional(),
|
|
5520
5556
|
reset: z14.union([billingUpdateUpsertLicenseResetSchema, z14.undefined()]).optional(),
|
|
5521
5557
|
price: z14.union([billingUpdateUpsertLicensePriceSchema, z14.undefined()]).optional(),
|
|
5522
5558
|
proration: z14.union([billingUpdateUpsertLicenseProrationSchema, z14.undefined()]).optional(),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
2
|
import '../../authTypes-COW88tnI.mjs';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-UN48tvoc.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.mjs';
|
|
6
6
|
import '../types/responseTypes.mjs';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
2
|
import '../../authTypes-COW88tnI.js';
|
|
3
|
-
import '../../routeTypes-
|
|
3
|
+
import '../../routeTypes-COLvwrcx.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../utils/sanitizeBody.js';
|
|
6
6
|
import '../types/responseTypes.js';
|