autumn-js 1.2.14 → 1.2.15
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 +204 -39
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +204 -39
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +204 -39
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +204 -39
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +204 -39
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-JDJMZQCY.mjs → chunk-BQVZ6GCE.mjs} +1 -1
- package/dist/backend/{chunk-5XWZK7Q6.mjs → chunk-IEOQUAJY.mjs} +7 -7
- package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
- package/dist/backend/{chunk-N2OJ347N.mjs → chunk-NDB3VKT4.mjs} +1 -1
- package/dist/backend/{chunk-ZOOAE7OJ.mjs → chunk-NRTK5YZK.mjs} +1 -1
- package/dist/backend/{chunk-GE5VY4YO.mjs → chunk-OXCQHLZX.mjs} +168 -31
- package/dist/backend/{chunk-QAFNIIBW.mjs → chunk-RSIOYTRW.mjs} +5 -5
- package/dist/backend/{chunk-BVJU43R5.mjs → chunk-X7LDYBKC.mjs} +1 -1
- 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 +204 -39
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- 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/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +204 -39
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- 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 +204 -39
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +204 -39
- package/dist/backend/core/index.mjs +10 -10
- 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 -8
- package/dist/backend/core/routes/index.mjs +2 -2
- 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 -8
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- 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/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +204 -39
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-B-X-zb1q.d.mts → routeTypes-CIspXIZ4.d.mts} +209 -27
- package/dist/backend/{routeTypes-bGaZQm24.d.ts → routeTypes-COwIJFNS.d.ts} +209 -27
- package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
- package/dist/better-auth/{chunk-DNNKTBFL.mjs → chunk-QT6R3AXQ.mjs} +169 -32
- package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
- package/dist/better-auth/index.js +204 -39
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +204 -39
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +204 -39
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
- package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/{params-CTiHT2EX.d.ts → params-D4cEukOJ.d.ts} +100 -0
- package/dist/react/{params-ZvrBzzFE.d.mts → params-DzbSUS8O.d.mts} +100 -0
- package/dist/sdk/index.d.mts +272 -39
- package/dist/sdk/index.d.ts +272 -39
- package/dist/sdk/index.js +3118 -2899
- package/dist/sdk/index.mjs +3080 -2887
- package/package.json +1 -1
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.881.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.
|
|
81
|
+
genVersion: "2.881.16",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -1709,7 +1709,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1709
1709
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1710
1710
|
),
|
|
1711
1711
|
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1712
|
-
noBillingChanges: z10.optional(z10.boolean())
|
|
1712
|
+
noBillingChanges: z10.optional(z10.boolean()),
|
|
1713
|
+
enablePlanImmediately: z10.optional(z10.boolean())
|
|
1713
1714
|
}),
|
|
1714
1715
|
z10.transform((v) => {
|
|
1715
1716
|
return remap(v, {
|
|
@@ -1730,7 +1731,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1730
1731
|
processorSubscriptionId: "processor_subscription_id",
|
|
1731
1732
|
carryOverBalances: "carry_over_balances",
|
|
1732
1733
|
carryOverUsages: "carry_over_usages",
|
|
1733
|
-
noBillingChanges: "no_billing_changes"
|
|
1734
|
+
noBillingChanges: "no_billing_changes",
|
|
1735
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
1734
1736
|
});
|
|
1735
1737
|
})
|
|
1736
1738
|
);
|
|
@@ -4413,7 +4415,13 @@ var CustomerEnv = {
|
|
|
4413
4415
|
Sandbox: "sandbox",
|
|
4414
4416
|
Live: "live"
|
|
4415
4417
|
};
|
|
4416
|
-
var
|
|
4418
|
+
var CustomerInterval2 = {
|
|
4419
|
+
Hour: "hour",
|
|
4420
|
+
Day: "day",
|
|
4421
|
+
Week: "week",
|
|
4422
|
+
Month: "month"
|
|
4423
|
+
};
|
|
4424
|
+
var CustomerInterval1 = {
|
|
4417
4425
|
Hour: "hour",
|
|
4418
4426
|
Day: "day",
|
|
4419
4427
|
Week: "week",
|
|
@@ -4450,10 +4458,26 @@ var CustomerDurationType = {
|
|
|
4450
4458
|
Forever: "forever"
|
|
4451
4459
|
};
|
|
4452
4460
|
var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
|
|
4453
|
-
var
|
|
4454
|
-
var
|
|
4461
|
+
var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
|
|
4462
|
+
var CustomerPurchaseLimit2$inboundSchema = z21.pipe(
|
|
4455
4463
|
z21.object({
|
|
4456
|
-
interval:
|
|
4464
|
+
interval: nullable(CustomerInterval2$inboundSchema),
|
|
4465
|
+
interval_count: nullable(number2()),
|
|
4466
|
+
limit: nullable(number2()),
|
|
4467
|
+
count: number2(),
|
|
4468
|
+
next_reset_at: number2()
|
|
4469
|
+
}),
|
|
4470
|
+
z21.transform((v) => {
|
|
4471
|
+
return remap(v, {
|
|
4472
|
+
"interval_count": "intervalCount",
|
|
4473
|
+
"next_reset_at": "nextResetAt"
|
|
4474
|
+
});
|
|
4475
|
+
})
|
|
4476
|
+
);
|
|
4477
|
+
var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
|
|
4478
|
+
var CustomerPurchaseLimit1$inboundSchema = z21.pipe(
|
|
4479
|
+
z21.object({
|
|
4480
|
+
interval: CustomerInterval1$inboundSchema,
|
|
4457
4481
|
interval_count: z21._default(number2(), 1),
|
|
4458
4482
|
limit: number2()
|
|
4459
4483
|
}),
|
|
@@ -4463,15 +4487,20 @@ var CustomerPurchaseLimit$inboundSchema = z21.pipe(
|
|
|
4463
4487
|
});
|
|
4464
4488
|
})
|
|
4465
4489
|
);
|
|
4490
|
+
var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
4491
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4492
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4493
|
+
]);
|
|
4466
4494
|
var CustomerAutoTopup$inboundSchema = z21.pipe(
|
|
4467
4495
|
z21.object({
|
|
4468
4496
|
feature_id: string4(),
|
|
4469
4497
|
enabled: z21._default(boolean2(), false),
|
|
4470
4498
|
threshold: number2(),
|
|
4471
4499
|
quantity: number2(),
|
|
4472
|
-
purchase_limit: optional2(
|
|
4473
|
-
z21.lazy(() =>
|
|
4474
|
-
|
|
4500
|
+
purchase_limit: optional2(smartUnion([
|
|
4501
|
+
z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
|
|
4502
|
+
z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
|
|
4503
|
+
])),
|
|
4475
4504
|
invoice_mode: optional2(boolean2())
|
|
4476
4505
|
}),
|
|
4477
4506
|
z21.transform((v) => {
|
|
@@ -5729,7 +5758,13 @@ var ListCustomersEnv = {
|
|
|
5729
5758
|
Sandbox: "sandbox",
|
|
5730
5759
|
Live: "live"
|
|
5731
5760
|
};
|
|
5732
|
-
var
|
|
5761
|
+
var ListCustomersInterval2 = {
|
|
5762
|
+
Hour: "hour",
|
|
5763
|
+
Day: "day",
|
|
5764
|
+
Week: "week",
|
|
5765
|
+
Month: "month"
|
|
5766
|
+
};
|
|
5767
|
+
var ListCustomersInterval1 = {
|
|
5733
5768
|
Hour: "hour",
|
|
5734
5769
|
Day: "day",
|
|
5735
5770
|
Week: "week",
|
|
@@ -5774,10 +5809,26 @@ var ListCustomersParams$outboundSchema = z32.pipe(
|
|
|
5774
5809
|
})
|
|
5775
5810
|
);
|
|
5776
5811
|
var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
|
|
5777
|
-
var
|
|
5778
|
-
var
|
|
5812
|
+
var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
|
|
5813
|
+
var ListCustomersPurchaseLimit2$inboundSchema = z32.pipe(
|
|
5814
|
+
z32.object({
|
|
5815
|
+
interval: nullable(ListCustomersInterval2$inboundSchema),
|
|
5816
|
+
interval_count: nullable(number2()),
|
|
5817
|
+
limit: nullable(number2()),
|
|
5818
|
+
count: number2(),
|
|
5819
|
+
next_reset_at: number2()
|
|
5820
|
+
}),
|
|
5821
|
+
z32.transform((v) => {
|
|
5822
|
+
return remap(v, {
|
|
5823
|
+
"interval_count": "intervalCount",
|
|
5824
|
+
"next_reset_at": "nextResetAt"
|
|
5825
|
+
});
|
|
5826
|
+
})
|
|
5827
|
+
);
|
|
5828
|
+
var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
|
|
5829
|
+
var ListCustomersPurchaseLimit1$inboundSchema = z32.pipe(
|
|
5779
5830
|
z32.object({
|
|
5780
|
-
interval:
|
|
5831
|
+
interval: ListCustomersInterval1$inboundSchema,
|
|
5781
5832
|
interval_count: z32._default(number2(), 1),
|
|
5782
5833
|
limit: number2()
|
|
5783
5834
|
}),
|
|
@@ -5787,15 +5838,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
|
|
|
5787
5838
|
});
|
|
5788
5839
|
})
|
|
5789
5840
|
);
|
|
5841
|
+
var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
5842
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5843
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5844
|
+
]);
|
|
5790
5845
|
var ListCustomersAutoTopup$inboundSchema = z32.pipe(
|
|
5791
5846
|
z32.object({
|
|
5792
5847
|
feature_id: string4(),
|
|
5793
5848
|
enabled: z32._default(boolean2(), false),
|
|
5794
5849
|
threshold: number2(),
|
|
5795
5850
|
quantity: number2(),
|
|
5796
|
-
purchase_limit: optional2(
|
|
5797
|
-
z32.lazy(() =>
|
|
5798
|
-
|
|
5851
|
+
purchase_limit: optional2(smartUnion([
|
|
5852
|
+
z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
|
|
5853
|
+
z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
|
|
5854
|
+
])),
|
|
5799
5855
|
invoice_mode: optional2(boolean2())
|
|
5800
5856
|
}),
|
|
5801
5857
|
z32.transform((v) => {
|
|
@@ -6794,6 +6850,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6794
6850
|
"if_required"
|
|
6795
6851
|
),
|
|
6796
6852
|
newBillingSubscription: z36.optional(z36.boolean()),
|
|
6853
|
+
enablePlanImmediately: z36.optional(z36.boolean()),
|
|
6797
6854
|
customerData: z36.optional(CustomerData$outboundSchema),
|
|
6798
6855
|
entityData: z36.optional(z36.lazy(() => MultiAttachEntityData$outboundSchema))
|
|
6799
6856
|
}),
|
|
@@ -6807,6 +6864,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
|
|
|
6807
6864
|
checkoutSessionParams: "checkout_session_params",
|
|
6808
6865
|
redirectMode: "redirect_mode",
|
|
6809
6866
|
newBillingSubscription: "new_billing_subscription",
|
|
6867
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
6810
6868
|
customerData: "customer_data",
|
|
6811
6869
|
entityData: "entity_data"
|
|
6812
6870
|
});
|
|
@@ -6956,6 +7014,10 @@ var PreviewAttachCheckoutType = {
|
|
|
6956
7014
|
StripeCheckout: "stripe_checkout",
|
|
6957
7015
|
AutumnCheckout: "autumn_checkout"
|
|
6958
7016
|
};
|
|
7017
|
+
var PreviewAttachStatus = {
|
|
7018
|
+
Complete: "complete",
|
|
7019
|
+
Incomplete: "incomplete"
|
|
7020
|
+
};
|
|
6959
7021
|
var PreviewAttachFeatureQuantityRequest$outboundSchema = z38.pipe(
|
|
6960
7022
|
z38.object({
|
|
6961
7023
|
featureId: z38.string(),
|
|
@@ -7202,7 +7264,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
7202
7264
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
7203
7265
|
),
|
|
7204
7266
|
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
7205
|
-
noBillingChanges: z38.optional(z38.boolean())
|
|
7267
|
+
noBillingChanges: z38.optional(z38.boolean()),
|
|
7268
|
+
enablePlanImmediately: z38.optional(z38.boolean())
|
|
7206
7269
|
}),
|
|
7207
7270
|
z38.transform((v) => {
|
|
7208
7271
|
return remap(v, {
|
|
@@ -7223,7 +7286,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
7223
7286
|
processorSubscriptionId: "processor_subscription_id",
|
|
7224
7287
|
carryOverBalances: "carry_over_balances",
|
|
7225
7288
|
carryOverUsages: "carry_over_usages",
|
|
7226
|
-
noBillingChanges: "no_billing_changes"
|
|
7289
|
+
noBillingChanges: "no_billing_changes",
|
|
7290
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
7227
7291
|
});
|
|
7228
7292
|
})
|
|
7229
7293
|
);
|
|
@@ -7421,6 +7485,22 @@ var PreviewAttachOutgoing$inboundSchema = z38.pipe(
|
|
|
7421
7485
|
})
|
|
7422
7486
|
);
|
|
7423
7487
|
var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
|
|
7488
|
+
var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
|
|
7489
|
+
var PreviewAttachTax$inboundSchema = z38.pipe(
|
|
7490
|
+
z38.object({
|
|
7491
|
+
total: number2(),
|
|
7492
|
+
amount_inclusive: number2(),
|
|
7493
|
+
amount_exclusive: number2(),
|
|
7494
|
+
currency: string4(),
|
|
7495
|
+
status: PreviewAttachStatus$inboundSchema
|
|
7496
|
+
}),
|
|
7497
|
+
z38.transform((v) => {
|
|
7498
|
+
return remap(v, {
|
|
7499
|
+
"amount_inclusive": "amountInclusive",
|
|
7500
|
+
"amount_exclusive": "amountExclusive"
|
|
7501
|
+
});
|
|
7502
|
+
})
|
|
7503
|
+
);
|
|
7424
7504
|
var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
7425
7505
|
z38.object({
|
|
7426
7506
|
customer_id: string4(),
|
|
@@ -7435,7 +7515,8 @@ var PreviewAttachResponse$inboundSchema = z38.pipe(
|
|
|
7435
7515
|
incoming: z38.array(z38.lazy(() => PreviewAttachIncoming$inboundSchema)),
|
|
7436
7516
|
outgoing: z38.array(z38.lazy(() => PreviewAttachOutgoing$inboundSchema)),
|
|
7437
7517
|
redirect_to_checkout: boolean2(),
|
|
7438
|
-
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
|
|
7518
|
+
checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
|
|
7519
|
+
tax: optional2(z38.lazy(() => PreviewAttachTax$inboundSchema))
|
|
7439
7520
|
}),
|
|
7440
7521
|
z38.transform((v) => {
|
|
7441
7522
|
return remap(v, {
|
|
@@ -7522,6 +7603,10 @@ var PreviewMultiAttachCheckoutType = {
|
|
|
7522
7603
|
StripeCheckout: "stripe_checkout",
|
|
7523
7604
|
AutumnCheckout: "autumn_checkout"
|
|
7524
7605
|
};
|
|
7606
|
+
var PreviewMultiAttachStatus = {
|
|
7607
|
+
Complete: "complete",
|
|
7608
|
+
Incomplete: "incomplete"
|
|
7609
|
+
};
|
|
7525
7610
|
var PreviewMultiAttachPriceInterval$outboundSchema = z39.enum(PreviewMultiAttachPriceInterval);
|
|
7526
7611
|
var PreviewMultiAttachBasePrice$outboundSchema = z39.pipe(
|
|
7527
7612
|
z39.object({
|
|
@@ -7819,6 +7904,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7819
7904
|
"if_required"
|
|
7820
7905
|
),
|
|
7821
7906
|
newBillingSubscription: z39.optional(z39.boolean()),
|
|
7907
|
+
enablePlanImmediately: z39.optional(z39.boolean()),
|
|
7822
7908
|
customerData: z39.optional(CustomerData$outboundSchema),
|
|
7823
7909
|
entityData: z39.optional(
|
|
7824
7910
|
z39.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
|
|
@@ -7834,6 +7920,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
|
|
|
7834
7920
|
checkoutSessionParams: "checkout_session_params",
|
|
7835
7921
|
redirectMode: "redirect_mode",
|
|
7836
7922
|
newBillingSubscription: "new_billing_subscription",
|
|
7923
|
+
enablePlanImmediately: "enable_plan_immediately",
|
|
7837
7924
|
customerData: "customer_data",
|
|
7838
7925
|
entityData: "entity_data"
|
|
7839
7926
|
});
|
|
@@ -8033,6 +8120,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z39.pipe(
|
|
|
8033
8120
|
})
|
|
8034
8121
|
);
|
|
8035
8122
|
var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
|
|
8123
|
+
var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
|
|
8124
|
+
var PreviewMultiAttachTax$inboundSchema = z39.pipe(
|
|
8125
|
+
z39.object({
|
|
8126
|
+
total: number2(),
|
|
8127
|
+
amount_inclusive: number2(),
|
|
8128
|
+
amount_exclusive: number2(),
|
|
8129
|
+
currency: string4(),
|
|
8130
|
+
status: PreviewMultiAttachStatus$inboundSchema
|
|
8131
|
+
}),
|
|
8132
|
+
z39.transform((v) => {
|
|
8133
|
+
return remap(v, {
|
|
8134
|
+
"amount_inclusive": "amountInclusive",
|
|
8135
|
+
"amount_exclusive": "amountExclusive"
|
|
8136
|
+
});
|
|
8137
|
+
})
|
|
8138
|
+
);
|
|
8036
8139
|
var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
8037
8140
|
z39.object({
|
|
8038
8141
|
customer_id: string4(),
|
|
@@ -8047,7 +8150,8 @@ var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
|
|
|
8047
8150
|
incoming: z39.array(z39.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
|
|
8048
8151
|
outgoing: z39.array(z39.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
|
|
8049
8152
|
redirect_to_checkout: boolean2(),
|
|
8050
|
-
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
|
|
8153
|
+
checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
|
|
8154
|
+
tax: optional2(z39.lazy(() => PreviewMultiAttachTax$inboundSchema))
|
|
8051
8155
|
}),
|
|
8052
8156
|
z39.transform((v) => {
|
|
8053
8157
|
return remap(v, {
|
|
@@ -8901,7 +9005,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8901
9005
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8902
9006
|
),
|
|
8903
9007
|
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8904
|
-
noBillingChanges: z42.optional(z42.boolean())
|
|
9008
|
+
noBillingChanges: z42.optional(z42.boolean()),
|
|
9009
|
+
enablePlanImmediately: z42.optional(z42.boolean())
|
|
8905
9010
|
}),
|
|
8906
9011
|
z42.transform((v) => {
|
|
8907
9012
|
return remap(v, {
|
|
@@ -8918,7 +9023,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8918
9023
|
processorSubscriptionId: "processor_subscription_id",
|
|
8919
9024
|
carryOverBalances: "carry_over_balances",
|
|
8920
9025
|
carryOverUsages: "carry_over_usages",
|
|
8921
|
-
noBillingChanges: "no_billing_changes"
|
|
9026
|
+
noBillingChanges: "no_billing_changes",
|
|
9027
|
+
enablePlanImmediately: "enable_plan_immediately"
|
|
8922
9028
|
});
|
|
8923
9029
|
})
|
|
8924
9030
|
);
|
|
@@ -9070,7 +9176,13 @@ var UpdateCustomerEnv = {
|
|
|
9070
9176
|
Sandbox: "sandbox",
|
|
9071
9177
|
Live: "live"
|
|
9072
9178
|
};
|
|
9073
|
-
var
|
|
9179
|
+
var UpdateCustomerIntervalResponse2 = {
|
|
9180
|
+
Hour: "hour",
|
|
9181
|
+
Day: "day",
|
|
9182
|
+
Week: "week",
|
|
9183
|
+
Month: "month"
|
|
9184
|
+
};
|
|
9185
|
+
var UpdateCustomerIntervalResponse1 = {
|
|
9074
9186
|
Hour: "hour",
|
|
9075
9187
|
Day: "day",
|
|
9076
9188
|
Week: "week",
|
|
@@ -9227,10 +9339,26 @@ var UpdateCustomerParams$outboundSchema = z45.pipe(
|
|
|
9227
9339
|
})
|
|
9228
9340
|
);
|
|
9229
9341
|
var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
|
|
9230
|
-
var
|
|
9231
|
-
var
|
|
9342
|
+
var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
|
|
9343
|
+
var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z45.pipe(
|
|
9344
|
+
z45.object({
|
|
9345
|
+
interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
|
|
9346
|
+
interval_count: nullable(number2()),
|
|
9347
|
+
limit: nullable(number2()),
|
|
9348
|
+
count: number2(),
|
|
9349
|
+
next_reset_at: number2()
|
|
9350
|
+
}),
|
|
9351
|
+
z45.transform((v) => {
|
|
9352
|
+
return remap(v, {
|
|
9353
|
+
"interval_count": "intervalCount",
|
|
9354
|
+
"next_reset_at": "nextResetAt"
|
|
9355
|
+
});
|
|
9356
|
+
})
|
|
9357
|
+
);
|
|
9358
|
+
var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
|
|
9359
|
+
var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z45.pipe(
|
|
9232
9360
|
z45.object({
|
|
9233
|
-
interval:
|
|
9361
|
+
interval: UpdateCustomerIntervalResponse1$inboundSchema,
|
|
9234
9362
|
interval_count: z45._default(number2(), 1),
|
|
9235
9363
|
limit: number2()
|
|
9236
9364
|
}),
|
|
@@ -9240,15 +9368,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
|
|
|
9240
9368
|
});
|
|
9241
9369
|
})
|
|
9242
9370
|
);
|
|
9371
|
+
var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
|
|
9372
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9373
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9374
|
+
]);
|
|
9243
9375
|
var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
|
|
9244
9376
|
z45.object({
|
|
9245
9377
|
feature_id: string4(),
|
|
9246
9378
|
enabled: z45._default(boolean2(), false),
|
|
9247
9379
|
threshold: number2(),
|
|
9248
9380
|
quantity: number2(),
|
|
9249
|
-
purchase_limit: optional2(
|
|
9250
|
-
z45.lazy(() =>
|
|
9251
|
-
|
|
9381
|
+
purchase_limit: optional2(smartUnion([
|
|
9382
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
|
|
9383
|
+
z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
|
|
9384
|
+
])),
|
|
9252
9385
|
invoice_mode: optional2(boolean2())
|
|
9253
9386
|
}),
|
|
9254
9387
|
z45.transform((v) => {
|
|
@@ -12214,6 +12347,7 @@ var Billing = class extends ClientSDK {
|
|
|
12214
12347
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
12215
12348
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
12216
12349
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12350
|
+
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
|
|
12217
12351
|
*
|
|
12218
12352
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
12219
12353
|
*/
|
|
@@ -12257,6 +12391,7 @@ var Billing = class extends ClientSDK {
|
|
|
12257
12391
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
12258
12392
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
12259
12393
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
12394
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
12260
12395
|
*
|
|
12261
12396
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
12262
12397
|
*/
|
|
@@ -12300,6 +12435,7 @@ var Billing = class extends ClientSDK {
|
|
|
12300
12435
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
12301
12436
|
* @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
|
|
12302
12437
|
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
12438
|
+
* @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
|
|
12303
12439
|
*
|
|
12304
12440
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
12305
12441
|
*/
|
|
@@ -12331,6 +12467,7 @@ var Billing = class extends ClientSDK {
|
|
|
12331
12467
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
12332
12468
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
12333
12469
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
12470
|
+
* @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
|
|
12334
12471
|
*
|
|
12335
12472
|
* @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
|
|
12336
12473
|
*/
|
|
@@ -15083,7 +15220,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
15083
15220
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
15084
15221
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
15085
15222
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
15086
|
-
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15223
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15224
|
+
enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15087
15225
|
});
|
|
15088
15226
|
var closedEnumSchema2 = import_v42.z.any();
|
|
15089
15227
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -15169,7 +15307,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
15169
15307
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
15170
15308
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
15171
15309
|
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
15172
|
-
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15310
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
15311
|
+
enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
15173
15312
|
});
|
|
15174
15313
|
var attachCodeSchema = openEnumSchema;
|
|
15175
15314
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15740,6 +15879,7 @@ var multiAttachParamsSchema = import_v47.z.object({
|
|
|
15740
15879
|
checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15741
15880
|
redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
|
|
15742
15881
|
newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15882
|
+
enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15743
15883
|
customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
|
|
15744
15884
|
entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
|
|
15745
15885
|
});
|
|
@@ -15766,6 +15906,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
|
|
|
15766
15906
|
checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
|
|
15767
15907
|
redirect_mode: import_v47.z.string(),
|
|
15768
15908
|
new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15909
|
+
enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
|
|
15769
15910
|
customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
|
|
15770
15911
|
entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
|
|
15771
15912
|
});
|
|
@@ -15999,7 +16140,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15999
16140
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
16000
16141
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
16001
16142
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
16002
|
-
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16143
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16144
|
+
enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16003
16145
|
});
|
|
16004
16146
|
var closedEnumSchema5 = import_v49.z.any();
|
|
16005
16147
|
var planSchema = import_v49.z.any();
|
|
@@ -16086,7 +16228,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
16086
16228
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
16087
16229
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
16088
16230
|
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
16089
|
-
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16231
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
16232
|
+
enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
16090
16233
|
});
|
|
16091
16234
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
16092
16235
|
planId: import_v49.z.string(),
|
|
@@ -16105,6 +16248,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
|
|
|
16105
16248
|
expiresAt: import_v49.z.number().nullable()
|
|
16106
16249
|
});
|
|
16107
16250
|
var previewAttachCheckoutTypeSchema = openEnumSchema4;
|
|
16251
|
+
var previewAttachStatusSchema = openEnumSchema4;
|
|
16252
|
+
var previewAttachTaxSchema = import_v49.z.object({
|
|
16253
|
+
total: import_v49.z.number(),
|
|
16254
|
+
amountInclusive: import_v49.z.number(),
|
|
16255
|
+
amountExclusive: import_v49.z.number(),
|
|
16256
|
+
currency: import_v49.z.string(),
|
|
16257
|
+
status: previewAttachStatusSchema
|
|
16258
|
+
});
|
|
16108
16259
|
var previewAttachResponseSchema = import_v49.z.object({
|
|
16109
16260
|
customerId: import_v49.z.string(),
|
|
16110
16261
|
lineItems: import_v49.z.array(previewAttachLineItemSchema),
|
|
@@ -16116,7 +16267,8 @@ var previewAttachResponseSchema = import_v49.z.object({
|
|
|
16116
16267
|
incoming: import_v49.z.array(previewAttachIncomingSchema),
|
|
16117
16268
|
outgoing: import_v49.z.array(previewAttachOutgoingSchema),
|
|
16118
16269
|
redirectToCheckout: import_v49.z.boolean(),
|
|
16119
|
-
checkoutType: previewAttachCheckoutTypeSchema.nullable()
|
|
16270
|
+
checkoutType: previewAttachCheckoutTypeSchema.nullable(),
|
|
16271
|
+
tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
|
|
16120
16272
|
});
|
|
16121
16273
|
|
|
16122
16274
|
// src/generated/previewMultiAttachSchemas.ts
|
|
@@ -16430,6 +16582,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
|
|
|
16430
16582
|
checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16431
16583
|
redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
|
|
16432
16584
|
newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16585
|
+
enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16433
16586
|
customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
|
|
16434
16587
|
entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
|
|
16435
16588
|
});
|
|
@@ -16450,6 +16603,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
|
|
|
16450
16603
|
expiresAt: import_v410.z.number().nullable()
|
|
16451
16604
|
});
|
|
16452
16605
|
var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
|
|
16606
|
+
var previewMultiAttachStatusSchema = openEnumSchema5;
|
|
16607
|
+
var previewMultiAttachTaxSchema = import_v410.z.object({
|
|
16608
|
+
total: import_v410.z.number(),
|
|
16609
|
+
amountInclusive: import_v410.z.number(),
|
|
16610
|
+
amountExclusive: import_v410.z.number(),
|
|
16611
|
+
currency: import_v410.z.string(),
|
|
16612
|
+
status: previewMultiAttachStatusSchema
|
|
16613
|
+
});
|
|
16453
16614
|
var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
16454
16615
|
customerId: import_v410.z.string(),
|
|
16455
16616
|
lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
|
|
@@ -16461,7 +16622,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
|
|
|
16461
16622
|
incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
|
|
16462
16623
|
outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
|
|
16463
16624
|
redirectToCheckout: import_v410.z.boolean(),
|
|
16464
|
-
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
|
|
16625
|
+
checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
|
|
16626
|
+
tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
|
|
16465
16627
|
});
|
|
16466
16628
|
var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
16467
16629
|
customer_id: import_v410.z.string(),
|
|
@@ -16477,6 +16639,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
|
|
|
16477
16639
|
checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
|
|
16478
16640
|
redirect_mode: import_v410.z.string(),
|
|
16479
16641
|
new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16642
|
+
enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
|
|
16480
16643
|
customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
|
|
16481
16644
|
entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
|
|
16482
16645
|
});
|
|
@@ -16926,7 +17089,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16926
17089
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16927
17090
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16928
17091
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16929
|
-
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17092
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17093
|
+
enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16930
17094
|
});
|
|
16931
17095
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16932
17096
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -17005,7 +17169,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
17005
17169
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
17006
17170
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
17007
17171
|
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
17008
|
-
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17172
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
|
|
17173
|
+
enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
17009
17174
|
});
|
|
17010
17175
|
|
|
17011
17176
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NDB3VKT4.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-RSIOYTRW.mjs";
|
|
7
|
+
import "../chunk-IEOQUAJY.mjs";
|
|
8
|
+
import "../chunk-OXCQHLZX.mjs";
|
|
9
|
+
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
8
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-MANTLPDT.mjs";
|
|
12
|
-
import "../chunk-S5HPMJ4U.mjs";
|
|
14
|
+
import "../chunk-IQS3LQVP.mjs";
|
|
13
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
15
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
17
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|