autumn-js 1.2.6 → 1.2.8
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 +30 -18
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.js +30 -18
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.js +30 -18
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.js +30 -18
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.js +30 -18
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{chunk-XZB2ADYZ.mjs → chunk-2NIBKIZV.mjs} +13 -8
- package/dist/backend/{chunk-R6OE5JPE.mjs → chunk-2SJN2D5K.mjs} +1 -1
- package/dist/backend/{chunk-J5JZJFCV.mjs → chunk-3KJVXSBT.mjs} +1 -1
- package/dist/backend/{chunk-YZFOEF7A.mjs → chunk-5J2AJ3AR.mjs} +17 -10
- package/dist/backend/{chunk-WVNQLDKM.mjs → chunk-EHOQ52YN.mjs} +1 -1
- package/dist/backend/{chunk-VR556ENV.mjs → chunk-EJFVGOSH.mjs} +2 -2
- package/dist/backend/{chunk-SX6BNSGF.mjs → chunk-OI6KS2W5.mjs} +2 -2
- package/dist/backend/{chunk-47D7XI4Q.mjs → chunk-RVNL4DSW.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 +30 -18
- 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 +30 -18
- 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 +30 -18
- 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 +30 -18
- 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 +13 -8
- 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 +13 -8
- 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 +30 -18
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-C3VYecpo.d.ts → routeTypes-DuQ0sP_P.d.ts} +20 -8
- package/dist/backend/{routeTypes-Oppq3hl5.d.mts → routeTypes-al_xVRsi.d.mts} +20 -8
- package/dist/better-auth/{chunk-A7AR77FT.mjs → chunk-F6ZMLAY6.mjs} +13 -8
- package/dist/better-auth/{chunk-Y2MTOCQZ.mjs → chunk-JV57X7GG.mjs} +18 -11
- package/dist/better-auth/{chunk-2QZB2VRG.mjs → chunk-LRULDM7S.mjs} +1 -1
- package/dist/better-auth/index.js +30 -18
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +13 -8
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +30 -18
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +30 -18
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +1 -1
- package/dist/react/AutumnContext.d.ts +1 -1
- package/dist/react/client/AutumnClient.d.mts +1 -1
- package/dist/react/client/AutumnClient.d.ts +1 -1
- package/dist/react/client/IAutumnClient.d.mts +1 -1
- package/dist/react/client/IAutumnClient.d.ts +1 -1
- package/dist/react/client/index.d.mts +1 -1
- package/dist/react/client/index.d.ts +1 -1
- package/dist/react/hooks/index.d.mts +1 -1
- package/dist/react/hooks/index.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.mts +1 -1
- package/dist/react/hooks/internal/useCustomerActions.d.ts +1 -1
- 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 +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- 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 +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/{params-M5KLTAn1.d.ts → params-1wfmIH4y.d.ts} +18 -8
- package/dist/react/{params-Bm9J41QJ.d.mts → params-DEcqxcLi.d.mts} +18 -8
- package/dist/sdk/index.d.mts +26 -14
- package/dist/sdk/index.d.ts +26 -14
- package/dist/sdk/index.js +22 -24
- package/dist/sdk/index.mjs +21 -21
- package/package.json +1 -1
|
@@ -1711,7 +1711,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1711
1711
|
carryOverUsages: z10.optional(
|
|
1712
1712
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1713
1713
|
),
|
|
1714
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1714
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1715
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1715
1716
|
}),
|
|
1716
1717
|
z10.transform((v) => {
|
|
1717
1718
|
return remap(v, {
|
|
@@ -1731,7 +1732,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1731
1732
|
customLineItems: "custom_line_items",
|
|
1732
1733
|
processorSubscriptionId: "processor_subscription_id",
|
|
1733
1734
|
carryOverBalances: "carry_over_balances",
|
|
1734
|
-
carryOverUsages: "carry_over_usages"
|
|
1735
|
+
carryOverUsages: "carry_over_usages",
|
|
1736
|
+
noBillingChanges: "no_billing_changes"
|
|
1735
1737
|
});
|
|
1736
1738
|
})
|
|
1737
1739
|
);
|
|
@@ -2538,7 +2540,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2538
2540
|
})
|
|
2539
2541
|
);
|
|
2540
2542
|
var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
|
|
2541
|
-
var
|
|
2543
|
+
var Properties$inboundSchema = z13.pipe(
|
|
2542
2544
|
z13.object({
|
|
2543
2545
|
is_free: boolean2(),
|
|
2544
2546
|
is_one_off: boolean2(),
|
|
@@ -2570,7 +2572,7 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2570
2572
|
free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
|
|
2571
2573
|
base_variant_id: nullable(string4()),
|
|
2572
2574
|
scenario: optional2(ProductScenario$inboundSchema),
|
|
2573
|
-
properties: optional2(z13.lazy(() =>
|
|
2575
|
+
properties: optional2(z13.lazy(() => Properties$inboundSchema))
|
|
2574
2576
|
}),
|
|
2575
2577
|
z13.transform((v) => {
|
|
2576
2578
|
return remap(v, {
|
|
@@ -5597,7 +5599,6 @@ var EventsListParams$outboundSchema = z33.pipe(
|
|
|
5597
5599
|
});
|
|
5598
5600
|
})
|
|
5599
5601
|
);
|
|
5600
|
-
var ListEventsProperties$inboundSchema = z33.object({});
|
|
5601
5602
|
var ListEventsList$inboundSchema = z33.pipe(
|
|
5602
5603
|
z33.object({
|
|
5603
5604
|
id: string4(),
|
|
@@ -5605,7 +5606,7 @@ var ListEventsList$inboundSchema = z33.pipe(
|
|
|
5605
5606
|
feature_id: string4(),
|
|
5606
5607
|
customer_id: string4(),
|
|
5607
5608
|
value: number2(),
|
|
5608
|
-
properties: z33.
|
|
5609
|
+
properties: z33.record(z33.string(), z33.any())
|
|
5609
5610
|
}),
|
|
5610
5611
|
z33.transform((v) => {
|
|
5611
5612
|
return remap(v, {
|
|
@@ -6733,7 +6734,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6733
6734
|
carryOverUsages: z38.optional(
|
|
6734
6735
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6735
6736
|
),
|
|
6736
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6737
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6738
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6737
6739
|
}),
|
|
6738
6740
|
z38.transform((v) => {
|
|
6739
6741
|
return remap(v, {
|
|
@@ -6753,7 +6755,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6753
6755
|
customLineItems: "custom_line_items",
|
|
6754
6756
|
processorSubscriptionId: "processor_subscription_id",
|
|
6755
6757
|
carryOverBalances: "carry_over_balances",
|
|
6756
|
-
carryOverUsages: "carry_over_usages"
|
|
6758
|
+
carryOverUsages: "carry_over_usages",
|
|
6759
|
+
noBillingChanges: "no_billing_changes"
|
|
6757
6760
|
});
|
|
6758
6761
|
})
|
|
6759
6762
|
);
|
|
@@ -8415,7 +8418,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8415
8418
|
carryOverUsages: z42.optional(
|
|
8416
8419
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8417
8420
|
),
|
|
8418
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8421
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8422
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8419
8423
|
}),
|
|
8420
8424
|
z42.transform((v) => {
|
|
8421
8425
|
return remap(v, {
|
|
@@ -8431,7 +8435,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8431
8435
|
customLineItems: "custom_line_items",
|
|
8432
8436
|
processorSubscriptionId: "processor_subscription_id",
|
|
8433
8437
|
carryOverBalances: "carry_over_balances",
|
|
8434
|
-
carryOverUsages: "carry_over_usages"
|
|
8438
|
+
carryOverUsages: "carry_over_usages",
|
|
8439
|
+
noBillingChanges: "no_billing_changes"
|
|
8435
8440
|
});
|
|
8436
8441
|
})
|
|
8437
8442
|
);
|
|
@@ -11652,6 +11657,7 @@ var Billing = class extends ClientSDK {
|
|
|
11652
11657
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11653
11658
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11654
11659
|
* @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)
|
|
11660
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11655
11661
|
*
|
|
11656
11662
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11657
11663
|
*/
|
|
@@ -11737,6 +11743,7 @@ var Billing = class extends ClientSDK {
|
|
|
11737
11743
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11738
11744
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11739
11745
|
* @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)
|
|
11746
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11740
11747
|
*
|
|
11741
11748
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11742
11749
|
*/
|
|
@@ -14514,7 +14521,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14514
14521
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14515
14522
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14516
14523
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14517
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14524
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14525
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14518
14526
|
});
|
|
14519
14527
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14520
14528
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14599,7 +14607,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14599
14607
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14600
14608
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14601
14609
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14602
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14610
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14611
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14603
14612
|
});
|
|
14604
14613
|
var attachCodeSchema = openEnumSchema;
|
|
14605
14614
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -14768,14 +14777,13 @@ var eventsListParamsSchema = import_v45.z.object({
|
|
|
14768
14777
|
featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
|
|
14769
14778
|
customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
|
|
14770
14779
|
});
|
|
14771
|
-
var listEventsPropertiesSchema = import_v45.z.object({});
|
|
14772
14780
|
var listEventsListSchema = import_v45.z.object({
|
|
14773
14781
|
id: import_v45.z.string(),
|
|
14774
14782
|
timestamp: import_v45.z.number(),
|
|
14775
14783
|
featureId: import_v45.z.string(),
|
|
14776
14784
|
customerId: import_v45.z.string(),
|
|
14777
14785
|
value: import_v45.z.number(),
|
|
14778
|
-
properties:
|
|
14786
|
+
properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
|
|
14779
14787
|
});
|
|
14780
14788
|
var listEventsResponseSchema = import_v45.z.object({
|
|
14781
14789
|
list: import_v45.z.array(listEventsListSchema),
|
|
@@ -15417,7 +15425,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15417
15425
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15418
15426
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15419
15427
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15420
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15428
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15429
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15421
15430
|
});
|
|
15422
15431
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15423
15432
|
var planSchema = import_v49.z.any();
|
|
@@ -15503,7 +15512,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15503
15512
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15504
15513
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15505
15514
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15506
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15515
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15516
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15507
15517
|
});
|
|
15508
15518
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15509
15519
|
planId: import_v49.z.string(),
|
|
@@ -16332,7 +16342,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16332
16342
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16333
16343
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16334
16344
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16335
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16345
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16346
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16336
16347
|
});
|
|
16337
16348
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16338
16349
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16410,7 +16421,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16410
16421
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16411
16422
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16412
16423
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16413
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16424
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16425
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16414
16426
|
});
|
|
16415
16427
|
|
|
16416
16428
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2SJN2D5K.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-RVNL4DSW.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-3KJVXSBT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-EHOQ52YN.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-OI6KS2W5.mjs";
|
|
16
|
+
import "../chunk-EJFVGOSH.mjs";
|
|
17
|
+
import "../chunk-5J2AJ3AR.mjs";
|
|
18
18
|
import "../chunk-55C2WWXQ.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.mjs";
|
|
21
21
|
import "../chunk-TSF4YCUO.mjs";
|
|
22
22
|
import "../chunk-UAR3TMWI.mjs";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-2NIBKIZV.mjs";
|
|
24
24
|
import "../chunk-OTXV5FY7.mjs";
|
|
25
25
|
import "../chunk-VZIMT7AO.mjs";
|
|
26
26
|
import "../chunk-Z6QP3YEA.mjs";
|
|
@@ -1709,7 +1709,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1709
1709
|
carryOverUsages: z10.optional(
|
|
1710
1710
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1711
1711
|
),
|
|
1712
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1712
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1713
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1713
1714
|
}),
|
|
1714
1715
|
z10.transform((v) => {
|
|
1715
1716
|
return remap(v, {
|
|
@@ -1729,7 +1730,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1729
1730
|
customLineItems: "custom_line_items",
|
|
1730
1731
|
processorSubscriptionId: "processor_subscription_id",
|
|
1731
1732
|
carryOverBalances: "carry_over_balances",
|
|
1732
|
-
carryOverUsages: "carry_over_usages"
|
|
1733
|
+
carryOverUsages: "carry_over_usages",
|
|
1734
|
+
noBillingChanges: "no_billing_changes"
|
|
1733
1735
|
});
|
|
1734
1736
|
})
|
|
1735
1737
|
);
|
|
@@ -2536,7 +2538,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2536
2538
|
})
|
|
2537
2539
|
);
|
|
2538
2540
|
var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
|
|
2539
|
-
var
|
|
2541
|
+
var Properties$inboundSchema = z13.pipe(
|
|
2540
2542
|
z13.object({
|
|
2541
2543
|
is_free: boolean2(),
|
|
2542
2544
|
is_one_off: boolean2(),
|
|
@@ -2568,7 +2570,7 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2568
2570
|
free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
|
|
2569
2571
|
base_variant_id: nullable(string4()),
|
|
2570
2572
|
scenario: optional2(ProductScenario$inboundSchema),
|
|
2571
|
-
properties: optional2(z13.lazy(() =>
|
|
2573
|
+
properties: optional2(z13.lazy(() => Properties$inboundSchema))
|
|
2572
2574
|
}),
|
|
2573
2575
|
z13.transform((v) => {
|
|
2574
2576
|
return remap(v, {
|
|
@@ -5595,7 +5597,6 @@ var EventsListParams$outboundSchema = z33.pipe(
|
|
|
5595
5597
|
});
|
|
5596
5598
|
})
|
|
5597
5599
|
);
|
|
5598
|
-
var ListEventsProperties$inboundSchema = z33.object({});
|
|
5599
5600
|
var ListEventsList$inboundSchema = z33.pipe(
|
|
5600
5601
|
z33.object({
|
|
5601
5602
|
id: string4(),
|
|
@@ -5603,7 +5604,7 @@ var ListEventsList$inboundSchema = z33.pipe(
|
|
|
5603
5604
|
feature_id: string4(),
|
|
5604
5605
|
customer_id: string4(),
|
|
5605
5606
|
value: number2(),
|
|
5606
|
-
properties: z33.
|
|
5607
|
+
properties: z33.record(z33.string(), z33.any())
|
|
5607
5608
|
}),
|
|
5608
5609
|
z33.transform((v) => {
|
|
5609
5610
|
return remap(v, {
|
|
@@ -6731,7 +6732,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6731
6732
|
carryOverUsages: z38.optional(
|
|
6732
6733
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6733
6734
|
),
|
|
6734
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6735
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6736
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6735
6737
|
}),
|
|
6736
6738
|
z38.transform((v) => {
|
|
6737
6739
|
return remap(v, {
|
|
@@ -6751,7 +6753,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6751
6753
|
customLineItems: "custom_line_items",
|
|
6752
6754
|
processorSubscriptionId: "processor_subscription_id",
|
|
6753
6755
|
carryOverBalances: "carry_over_balances",
|
|
6754
|
-
carryOverUsages: "carry_over_usages"
|
|
6756
|
+
carryOverUsages: "carry_over_usages",
|
|
6757
|
+
noBillingChanges: "no_billing_changes"
|
|
6755
6758
|
});
|
|
6756
6759
|
})
|
|
6757
6760
|
);
|
|
@@ -8413,7 +8416,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8413
8416
|
carryOverUsages: z42.optional(
|
|
8414
8417
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8415
8418
|
),
|
|
8416
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8419
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8420
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8417
8421
|
}),
|
|
8418
8422
|
z42.transform((v) => {
|
|
8419
8423
|
return remap(v, {
|
|
@@ -8429,7 +8433,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8429
8433
|
customLineItems: "custom_line_items",
|
|
8430
8434
|
processorSubscriptionId: "processor_subscription_id",
|
|
8431
8435
|
carryOverBalances: "carry_over_balances",
|
|
8432
|
-
carryOverUsages: "carry_over_usages"
|
|
8436
|
+
carryOverUsages: "carry_over_usages",
|
|
8437
|
+
noBillingChanges: "no_billing_changes"
|
|
8433
8438
|
});
|
|
8434
8439
|
})
|
|
8435
8440
|
);
|
|
@@ -11650,6 +11655,7 @@ var Billing = class extends ClientSDK {
|
|
|
11650
11655
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11651
11656
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11652
11657
|
* @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)
|
|
11658
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11653
11659
|
*
|
|
11654
11660
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11655
11661
|
*/
|
|
@@ -11735,6 +11741,7 @@ var Billing = class extends ClientSDK {
|
|
|
11735
11741
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11736
11742
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11737
11743
|
* @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)
|
|
11744
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11738
11745
|
*
|
|
11739
11746
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11740
11747
|
*/
|
|
@@ -14512,7 +14519,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14512
14519
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14513
14520
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14514
14521
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14515
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14522
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14523
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14516
14524
|
});
|
|
14517
14525
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14518
14526
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14597,7 +14605,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14597
14605
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14598
14606
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14599
14607
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14600
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14608
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14609
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14601
14610
|
});
|
|
14602
14611
|
var attachCodeSchema = openEnumSchema;
|
|
14603
14612
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -14766,14 +14775,13 @@ var eventsListParamsSchema = import_v45.z.object({
|
|
|
14766
14775
|
featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
|
|
14767
14776
|
customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
|
|
14768
14777
|
});
|
|
14769
|
-
var listEventsPropertiesSchema = import_v45.z.object({});
|
|
14770
14778
|
var listEventsListSchema = import_v45.z.object({
|
|
14771
14779
|
id: import_v45.z.string(),
|
|
14772
14780
|
timestamp: import_v45.z.number(),
|
|
14773
14781
|
featureId: import_v45.z.string(),
|
|
14774
14782
|
customerId: import_v45.z.string(),
|
|
14775
14783
|
value: import_v45.z.number(),
|
|
14776
|
-
properties:
|
|
14784
|
+
properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
|
|
14777
14785
|
});
|
|
14778
14786
|
var listEventsResponseSchema = import_v45.z.object({
|
|
14779
14787
|
list: import_v45.z.array(listEventsListSchema),
|
|
@@ -15415,7 +15423,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15415
15423
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15416
15424
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15417
15425
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15418
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15426
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15427
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15419
15428
|
});
|
|
15420
15429
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15421
15430
|
var planSchema = import_v49.z.any();
|
|
@@ -15501,7 +15510,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15501
15510
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15502
15511
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15503
15512
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15504
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15513
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15514
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15505
15515
|
});
|
|
15506
15516
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15507
15517
|
planId: import_v49.z.string(),
|
|
@@ -16330,7 +16340,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16330
16340
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16331
16341
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16332
16342
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16333
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16343
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16344
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16334
16345
|
});
|
|
16335
16346
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16336
16347
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16408,7 +16419,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16408
16419
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16409
16420
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16410
16421
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16411
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16422
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16423
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16412
16424
|
});
|
|
16413
16425
|
|
|
16414
16426
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-EHOQ52YN.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-OI6KS2W5.mjs";
|
|
7
|
+
import "../chunk-EJFVGOSH.mjs";
|
|
8
|
+
import "../chunk-5J2AJ3AR.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-2NIBKIZV.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
17
|
import "../chunk-Z6QP3YEA.mjs";
|
|
@@ -217,7 +217,8 @@ var attachParamsOutboundSchema = z2.object({
|
|
|
217
217
|
processor_subscription_id: z2.union([z2.string(), z2.undefined()]).optional(),
|
|
218
218
|
carry_over_balances: z2.union([attachCarryOverBalancesOutboundSchema, z2.undefined()]).optional(),
|
|
219
219
|
carry_over_usages: z2.union([attachCarryOverUsagesOutboundSchema, z2.undefined()]).optional(),
|
|
220
|
-
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional()
|
|
220
|
+
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional(),
|
|
221
|
+
no_billing_changes: z2.union([z2.boolean(), z2.undefined()]).optional()
|
|
221
222
|
});
|
|
222
223
|
var closedEnumSchema2 = z2.any();
|
|
223
224
|
var openEnumSchema = z2.any();
|
|
@@ -302,7 +303,8 @@ var attachParamsSchema = z2.object({
|
|
|
302
303
|
processorSubscriptionId: z2.union([z2.string(), z2.undefined()]).optional(),
|
|
303
304
|
carryOverBalances: z2.union([attachCarryOverBalancesSchema, z2.undefined()]).optional(),
|
|
304
305
|
carryOverUsages: z2.union([attachCarryOverUsagesSchema, z2.undefined()]).optional(),
|
|
305
|
-
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional()
|
|
306
|
+
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional(),
|
|
307
|
+
noBillingChanges: z2.union([z2.boolean(), z2.undefined()]).optional()
|
|
306
308
|
});
|
|
307
309
|
var attachCodeSchema = openEnumSchema;
|
|
308
310
|
var attachRequiredActionSchema = z2.object({
|
|
@@ -471,14 +473,13 @@ var eventsListParamsSchema = z5.object({
|
|
|
471
473
|
featureId: z5.union([z5.string(), z5.array(z5.string()), z5.undefined()]).optional(),
|
|
472
474
|
customRange: z5.union([listEventsCustomRangeSchema, z5.undefined()]).optional()
|
|
473
475
|
});
|
|
474
|
-
var listEventsPropertiesSchema = z5.object({});
|
|
475
476
|
var listEventsListSchema = z5.object({
|
|
476
477
|
id: z5.string(),
|
|
477
478
|
timestamp: z5.number(),
|
|
478
479
|
featureId: z5.string(),
|
|
479
480
|
customerId: z5.string(),
|
|
480
481
|
value: z5.number(),
|
|
481
|
-
properties:
|
|
482
|
+
properties: z5.record(z5.string(), z5.any())
|
|
482
483
|
});
|
|
483
484
|
var listEventsResponseSchema = z5.object({
|
|
484
485
|
list: z5.array(listEventsListSchema),
|
|
@@ -1120,7 +1121,8 @@ var previewAttachParamsOutboundSchema = z9.object({
|
|
|
1120
1121
|
processor_subscription_id: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
1121
1122
|
carry_over_balances: z9.union([previewAttachCarryOverBalancesOutboundSchema, z9.undefined()]).optional(),
|
|
1122
1123
|
carry_over_usages: z9.union([previewAttachCarryOverUsagesOutboundSchema, z9.undefined()]).optional(),
|
|
1123
|
-
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional()
|
|
1124
|
+
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional(),
|
|
1125
|
+
no_billing_changes: z9.union([z9.boolean(), z9.undefined()]).optional()
|
|
1124
1126
|
});
|
|
1125
1127
|
var closedEnumSchema5 = z9.any();
|
|
1126
1128
|
var planSchema = z9.any();
|
|
@@ -1206,7 +1208,8 @@ var previewAttachParamsSchema = z9.object({
|
|
|
1206
1208
|
processorSubscriptionId: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
1207
1209
|
carryOverBalances: z9.union([previewAttachCarryOverBalancesSchema, z9.undefined()]).optional(),
|
|
1208
1210
|
carryOverUsages: z9.union([previewAttachCarryOverUsagesSchema, z9.undefined()]).optional(),
|
|
1209
|
-
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional()
|
|
1211
|
+
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional(),
|
|
1212
|
+
noBillingChanges: z9.union([z9.boolean(), z9.undefined()]).optional()
|
|
1210
1213
|
});
|
|
1211
1214
|
var previewAttachIncomingSchema = z9.object({
|
|
1212
1215
|
planId: z9.string(),
|
|
@@ -2035,7 +2038,8 @@ var setupPaymentParamsOutboundSchema = z13.object({
|
|
|
2035
2038
|
processor_subscription_id: z13.union([z13.string(), z13.undefined()]).optional(),
|
|
2036
2039
|
carry_over_balances: z13.union([setupPaymentCarryOverBalancesOutboundSchema, z13.undefined()]).optional(),
|
|
2037
2040
|
carry_over_usages: z13.union([setupPaymentCarryOverUsagesOutboundSchema, z13.undefined()]).optional(),
|
|
2038
|
-
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional()
|
|
2041
|
+
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional(),
|
|
2042
|
+
no_billing_changes: z13.union([z13.boolean(), z13.undefined()]).optional()
|
|
2039
2043
|
});
|
|
2040
2044
|
var closedEnumSchema8 = z13.any();
|
|
2041
2045
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -2113,7 +2117,8 @@ var setupPaymentParamsSchema = z13.object({
|
|
|
2113
2117
|
processorSubscriptionId: z13.union([z13.string(), z13.undefined()]).optional(),
|
|
2114
2118
|
carryOverBalances: z13.union([setupPaymentCarryOverBalancesSchema, z13.undefined()]).optional(),
|
|
2115
2119
|
carryOverUsages: z13.union([setupPaymentCarryOverUsagesSchema, z13.undefined()]).optional(),
|
|
2116
|
-
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional()
|
|
2120
|
+
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional(),
|
|
2121
|
+
noBillingChanges: z13.union([z13.boolean(), z13.undefined()]).optional()
|
|
2117
2122
|
});
|
|
2118
2123
|
|
|
2119
2124
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1625,7 +1625,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1625
1625
|
carryOverUsages: z10.optional(
|
|
1626
1626
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1627
1627
|
),
|
|
1628
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1628
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1629
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1629
1630
|
}),
|
|
1630
1631
|
z10.transform((v) => {
|
|
1631
1632
|
return remap(v, {
|
|
@@ -1645,7 +1646,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1645
1646
|
customLineItems: "custom_line_items",
|
|
1646
1647
|
processorSubscriptionId: "processor_subscription_id",
|
|
1647
1648
|
carryOverBalances: "carry_over_balances",
|
|
1648
|
-
carryOverUsages: "carry_over_usages"
|
|
1649
|
+
carryOverUsages: "carry_over_usages",
|
|
1650
|
+
noBillingChanges: "no_billing_changes"
|
|
1649
1651
|
});
|
|
1650
1652
|
})
|
|
1651
1653
|
);
|
|
@@ -2452,7 +2454,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2452
2454
|
})
|
|
2453
2455
|
);
|
|
2454
2456
|
var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
|
|
2455
|
-
var
|
|
2457
|
+
var Properties$inboundSchema = z13.pipe(
|
|
2456
2458
|
z13.object({
|
|
2457
2459
|
is_free: boolean2(),
|
|
2458
2460
|
is_one_off: boolean2(),
|
|
@@ -2484,7 +2486,7 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2484
2486
|
free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
|
|
2485
2487
|
base_variant_id: nullable(string4()),
|
|
2486
2488
|
scenario: optional2(ProductScenario$inboundSchema),
|
|
2487
|
-
properties: optional2(z13.lazy(() =>
|
|
2489
|
+
properties: optional2(z13.lazy(() => Properties$inboundSchema))
|
|
2488
2490
|
}),
|
|
2489
2491
|
z13.transform((v) => {
|
|
2490
2492
|
return remap(v, {
|
|
@@ -5511,7 +5513,6 @@ var EventsListParams$outboundSchema = z33.pipe(
|
|
|
5511
5513
|
});
|
|
5512
5514
|
})
|
|
5513
5515
|
);
|
|
5514
|
-
var ListEventsProperties$inboundSchema = z33.object({});
|
|
5515
5516
|
var ListEventsList$inboundSchema = z33.pipe(
|
|
5516
5517
|
z33.object({
|
|
5517
5518
|
id: string4(),
|
|
@@ -5519,7 +5520,7 @@ var ListEventsList$inboundSchema = z33.pipe(
|
|
|
5519
5520
|
feature_id: string4(),
|
|
5520
5521
|
customer_id: string4(),
|
|
5521
5522
|
value: number2(),
|
|
5522
|
-
properties: z33.
|
|
5523
|
+
properties: z33.record(z33.string(), z33.any())
|
|
5523
5524
|
}),
|
|
5524
5525
|
z33.transform((v) => {
|
|
5525
5526
|
return remap(v, {
|
|
@@ -6647,7 +6648,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6647
6648
|
carryOverUsages: z38.optional(
|
|
6648
6649
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6649
6650
|
),
|
|
6650
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6651
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6652
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6651
6653
|
}),
|
|
6652
6654
|
z38.transform((v) => {
|
|
6653
6655
|
return remap(v, {
|
|
@@ -6667,7 +6669,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6667
6669
|
customLineItems: "custom_line_items",
|
|
6668
6670
|
processorSubscriptionId: "processor_subscription_id",
|
|
6669
6671
|
carryOverBalances: "carry_over_balances",
|
|
6670
|
-
carryOverUsages: "carry_over_usages"
|
|
6672
|
+
carryOverUsages: "carry_over_usages",
|
|
6673
|
+
noBillingChanges: "no_billing_changes"
|
|
6671
6674
|
});
|
|
6672
6675
|
})
|
|
6673
6676
|
);
|
|
@@ -8329,7 +8332,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8329
8332
|
carryOverUsages: z42.optional(
|
|
8330
8333
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8331
8334
|
),
|
|
8332
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8335
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8336
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8333
8337
|
}),
|
|
8334
8338
|
z42.transform((v) => {
|
|
8335
8339
|
return remap(v, {
|
|
@@ -8345,7 +8349,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8345
8349
|
customLineItems: "custom_line_items",
|
|
8346
8350
|
processorSubscriptionId: "processor_subscription_id",
|
|
8347
8351
|
carryOverBalances: "carry_over_balances",
|
|
8348
|
-
carryOverUsages: "carry_over_usages"
|
|
8352
|
+
carryOverUsages: "carry_over_usages",
|
|
8353
|
+
noBillingChanges: "no_billing_changes"
|
|
8349
8354
|
});
|
|
8350
8355
|
})
|
|
8351
8356
|
);
|
|
@@ -11594,6 +11599,7 @@ var Billing = class extends ClientSDK {
|
|
|
11594
11599
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11595
11600
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11596
11601
|
* @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)
|
|
11602
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11597
11603
|
*
|
|
11598
11604
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11599
11605
|
*/
|
|
@@ -11679,6 +11685,7 @@ var Billing = class extends ClientSDK {
|
|
|
11679
11685
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11680
11686
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11681
11687
|
* @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)
|
|
11688
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11682
11689
|
*
|
|
11683
11690
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11684
11691
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5J2AJ3AR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
executeRoute
|
|
6
6
|
} from "./chunk-55C2WWXQ.mjs";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk-UAR3TMWI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
routeConfigs
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2NIBKIZV.mjs";
|
|
13
13
|
import {
|
|
14
14
|
secretKeyCheck
|
|
15
15
|
} from "./chunk-VZIMT7AO.mjs";
|