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
|
@@ -1708,7 +1708,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1708
1708
|
carryOverUsages: z10.optional(
|
|
1709
1709
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1710
1710
|
),
|
|
1711
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1711
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1712
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1712
1713
|
}),
|
|
1713
1714
|
z10.transform((v) => {
|
|
1714
1715
|
return remap(v, {
|
|
@@ -1728,7 +1729,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1728
1729
|
customLineItems: "custom_line_items",
|
|
1729
1730
|
processorSubscriptionId: "processor_subscription_id",
|
|
1730
1731
|
carryOverBalances: "carry_over_balances",
|
|
1731
|
-
carryOverUsages: "carry_over_usages"
|
|
1732
|
+
carryOverUsages: "carry_over_usages",
|
|
1733
|
+
noBillingChanges: "no_billing_changes"
|
|
1732
1734
|
});
|
|
1733
1735
|
})
|
|
1734
1736
|
);
|
|
@@ -2535,7 +2537,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2535
2537
|
})
|
|
2536
2538
|
);
|
|
2537
2539
|
var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
|
|
2538
|
-
var
|
|
2540
|
+
var Properties$inboundSchema = z13.pipe(
|
|
2539
2541
|
z13.object({
|
|
2540
2542
|
is_free: boolean2(),
|
|
2541
2543
|
is_one_off: boolean2(),
|
|
@@ -2567,7 +2569,7 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2567
2569
|
free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
|
|
2568
2570
|
base_variant_id: nullable(string4()),
|
|
2569
2571
|
scenario: optional2(ProductScenario$inboundSchema),
|
|
2570
|
-
properties: optional2(z13.lazy(() =>
|
|
2572
|
+
properties: optional2(z13.lazy(() => Properties$inboundSchema))
|
|
2571
2573
|
}),
|
|
2572
2574
|
z13.transform((v) => {
|
|
2573
2575
|
return remap(v, {
|
|
@@ -5594,7 +5596,6 @@ var EventsListParams$outboundSchema = z33.pipe(
|
|
|
5594
5596
|
});
|
|
5595
5597
|
})
|
|
5596
5598
|
);
|
|
5597
|
-
var ListEventsProperties$inboundSchema = z33.object({});
|
|
5598
5599
|
var ListEventsList$inboundSchema = z33.pipe(
|
|
5599
5600
|
z33.object({
|
|
5600
5601
|
id: string4(),
|
|
@@ -5602,7 +5603,7 @@ var ListEventsList$inboundSchema = z33.pipe(
|
|
|
5602
5603
|
feature_id: string4(),
|
|
5603
5604
|
customer_id: string4(),
|
|
5604
5605
|
value: number2(),
|
|
5605
|
-
properties: z33.
|
|
5606
|
+
properties: z33.record(z33.string(), z33.any())
|
|
5606
5607
|
}),
|
|
5607
5608
|
z33.transform((v) => {
|
|
5608
5609
|
return remap(v, {
|
|
@@ -6730,7 +6731,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6730
6731
|
carryOverUsages: z38.optional(
|
|
6731
6732
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6732
6733
|
),
|
|
6733
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6734
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6735
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6734
6736
|
}),
|
|
6735
6737
|
z38.transform((v) => {
|
|
6736
6738
|
return remap(v, {
|
|
@@ -6750,7 +6752,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6750
6752
|
customLineItems: "custom_line_items",
|
|
6751
6753
|
processorSubscriptionId: "processor_subscription_id",
|
|
6752
6754
|
carryOverBalances: "carry_over_balances",
|
|
6753
|
-
carryOverUsages: "carry_over_usages"
|
|
6755
|
+
carryOverUsages: "carry_over_usages",
|
|
6756
|
+
noBillingChanges: "no_billing_changes"
|
|
6754
6757
|
});
|
|
6755
6758
|
})
|
|
6756
6759
|
);
|
|
@@ -8412,7 +8415,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8412
8415
|
carryOverUsages: z42.optional(
|
|
8413
8416
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8414
8417
|
),
|
|
8415
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8418
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8419
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8416
8420
|
}),
|
|
8417
8421
|
z42.transform((v) => {
|
|
8418
8422
|
return remap(v, {
|
|
@@ -8428,7 +8432,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8428
8432
|
customLineItems: "custom_line_items",
|
|
8429
8433
|
processorSubscriptionId: "processor_subscription_id",
|
|
8430
8434
|
carryOverBalances: "carry_over_balances",
|
|
8431
|
-
carryOverUsages: "carry_over_usages"
|
|
8435
|
+
carryOverUsages: "carry_over_usages",
|
|
8436
|
+
noBillingChanges: "no_billing_changes"
|
|
8432
8437
|
});
|
|
8433
8438
|
})
|
|
8434
8439
|
);
|
|
@@ -11649,6 +11654,7 @@ var Billing = class extends ClientSDK {
|
|
|
11649
11654
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11650
11655
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11651
11656
|
* @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)
|
|
11657
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11652
11658
|
*
|
|
11653
11659
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11654
11660
|
*/
|
|
@@ -11734,6 +11740,7 @@ var Billing = class extends ClientSDK {
|
|
|
11734
11740
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11735
11741
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11736
11742
|
* @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)
|
|
11743
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11737
11744
|
*
|
|
11738
11745
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11739
11746
|
*/
|
|
@@ -14511,7 +14518,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14511
14518
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14512
14519
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
14520
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14514
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14521
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14522
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14515
14523
|
});
|
|
14516
14524
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14517
14525
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14596,7 +14604,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14596
14604
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14597
14605
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
14606
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14599
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14607
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14608
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14600
14609
|
});
|
|
14601
14610
|
var attachCodeSchema = openEnumSchema;
|
|
14602
14611
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -14765,14 +14774,13 @@ var eventsListParamsSchema = import_v45.z.object({
|
|
|
14765
14774
|
featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
|
|
14766
14775
|
customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
|
|
14767
14776
|
});
|
|
14768
|
-
var listEventsPropertiesSchema = import_v45.z.object({});
|
|
14769
14777
|
var listEventsListSchema = import_v45.z.object({
|
|
14770
14778
|
id: import_v45.z.string(),
|
|
14771
14779
|
timestamp: import_v45.z.number(),
|
|
14772
14780
|
featureId: import_v45.z.string(),
|
|
14773
14781
|
customerId: import_v45.z.string(),
|
|
14774
14782
|
value: import_v45.z.number(),
|
|
14775
|
-
properties:
|
|
14783
|
+
properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
|
|
14776
14784
|
});
|
|
14777
14785
|
var listEventsResponseSchema = import_v45.z.object({
|
|
14778
14786
|
list: import_v45.z.array(listEventsListSchema),
|
|
@@ -15414,7 +15422,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15414
15422
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15415
15423
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15416
15424
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15417
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15425
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15426
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15418
15427
|
});
|
|
15419
15428
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15420
15429
|
var planSchema = import_v49.z.any();
|
|
@@ -15500,7 +15509,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15500
15509
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15501
15510
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15502
15511
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15503
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15512
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15513
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15504
15514
|
});
|
|
15505
15515
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15506
15516
|
planId: import_v49.z.string(),
|
|
@@ -16329,7 +16339,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16329
16339
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16330
16340
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16331
16341
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16332
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16342
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16343
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16333
16344
|
});
|
|
16334
16345
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16335
16346
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16407,7 +16418,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16407
16418
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16408
16419
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16409
16420
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16410
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16421
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16422
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16411
16423
|
});
|
|
16412
16424
|
|
|
16413
16425
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2SJN2D5K.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";
|
|
@@ -1708,7 +1708,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1708
1708
|
carryOverUsages: z10.optional(
|
|
1709
1709
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1710
1710
|
),
|
|
1711
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1711
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1712
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1712
1713
|
}),
|
|
1713
1714
|
z10.transform((v) => {
|
|
1714
1715
|
return remap(v, {
|
|
@@ -1728,7 +1729,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1728
1729
|
customLineItems: "custom_line_items",
|
|
1729
1730
|
processorSubscriptionId: "processor_subscription_id",
|
|
1730
1731
|
carryOverBalances: "carry_over_balances",
|
|
1731
|
-
carryOverUsages: "carry_over_usages"
|
|
1732
|
+
carryOverUsages: "carry_over_usages",
|
|
1733
|
+
noBillingChanges: "no_billing_changes"
|
|
1732
1734
|
});
|
|
1733
1735
|
})
|
|
1734
1736
|
);
|
|
@@ -2535,7 +2537,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2535
2537
|
})
|
|
2536
2538
|
);
|
|
2537
2539
|
var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
|
|
2538
|
-
var
|
|
2540
|
+
var Properties$inboundSchema = z13.pipe(
|
|
2539
2541
|
z13.object({
|
|
2540
2542
|
is_free: boolean2(),
|
|
2541
2543
|
is_one_off: boolean2(),
|
|
@@ -2567,7 +2569,7 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2567
2569
|
free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
|
|
2568
2570
|
base_variant_id: nullable(string4()),
|
|
2569
2571
|
scenario: optional2(ProductScenario$inboundSchema),
|
|
2570
|
-
properties: optional2(z13.lazy(() =>
|
|
2572
|
+
properties: optional2(z13.lazy(() => Properties$inboundSchema))
|
|
2571
2573
|
}),
|
|
2572
2574
|
z13.transform((v) => {
|
|
2573
2575
|
return remap(v, {
|
|
@@ -5594,7 +5596,6 @@ var EventsListParams$outboundSchema = z33.pipe(
|
|
|
5594
5596
|
});
|
|
5595
5597
|
})
|
|
5596
5598
|
);
|
|
5597
|
-
var ListEventsProperties$inboundSchema = z33.object({});
|
|
5598
5599
|
var ListEventsList$inboundSchema = z33.pipe(
|
|
5599
5600
|
z33.object({
|
|
5600
5601
|
id: string4(),
|
|
@@ -5602,7 +5603,7 @@ var ListEventsList$inboundSchema = z33.pipe(
|
|
|
5602
5603
|
feature_id: string4(),
|
|
5603
5604
|
customer_id: string4(),
|
|
5604
5605
|
value: number2(),
|
|
5605
|
-
properties: z33.
|
|
5606
|
+
properties: z33.record(z33.string(), z33.any())
|
|
5606
5607
|
}),
|
|
5607
5608
|
z33.transform((v) => {
|
|
5608
5609
|
return remap(v, {
|
|
@@ -6730,7 +6731,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6730
6731
|
carryOverUsages: z38.optional(
|
|
6731
6732
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6732
6733
|
),
|
|
6733
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6734
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6735
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6734
6736
|
}),
|
|
6735
6737
|
z38.transform((v) => {
|
|
6736
6738
|
return remap(v, {
|
|
@@ -6750,7 +6752,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6750
6752
|
customLineItems: "custom_line_items",
|
|
6751
6753
|
processorSubscriptionId: "processor_subscription_id",
|
|
6752
6754
|
carryOverBalances: "carry_over_balances",
|
|
6753
|
-
carryOverUsages: "carry_over_usages"
|
|
6755
|
+
carryOverUsages: "carry_over_usages",
|
|
6756
|
+
noBillingChanges: "no_billing_changes"
|
|
6754
6757
|
});
|
|
6755
6758
|
})
|
|
6756
6759
|
);
|
|
@@ -8412,7 +8415,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8412
8415
|
carryOverUsages: z42.optional(
|
|
8413
8416
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8414
8417
|
),
|
|
8415
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8418
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8419
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8416
8420
|
}),
|
|
8417
8421
|
z42.transform((v) => {
|
|
8418
8422
|
return remap(v, {
|
|
@@ -8428,7 +8432,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8428
8432
|
customLineItems: "custom_line_items",
|
|
8429
8433
|
processorSubscriptionId: "processor_subscription_id",
|
|
8430
8434
|
carryOverBalances: "carry_over_balances",
|
|
8431
|
-
carryOverUsages: "carry_over_usages"
|
|
8435
|
+
carryOverUsages: "carry_over_usages",
|
|
8436
|
+
noBillingChanges: "no_billing_changes"
|
|
8432
8437
|
});
|
|
8433
8438
|
})
|
|
8434
8439
|
);
|
|
@@ -11649,6 +11654,7 @@ var Billing = class extends ClientSDK {
|
|
|
11649
11654
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11650
11655
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11651
11656
|
* @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)
|
|
11657
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11652
11658
|
*
|
|
11653
11659
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11654
11660
|
*/
|
|
@@ -11734,6 +11740,7 @@ var Billing = class extends ClientSDK {
|
|
|
11734
11740
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11735
11741
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11736
11742
|
* @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)
|
|
11743
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11737
11744
|
*
|
|
11738
11745
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11739
11746
|
*/
|
|
@@ -14511,7 +14518,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14511
14518
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14512
14519
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
14520
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14514
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14521
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14522
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14515
14523
|
});
|
|
14516
14524
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14517
14525
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14596,7 +14604,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14596
14604
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14597
14605
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
14606
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14599
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14607
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14608
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14600
14609
|
});
|
|
14601
14610
|
var attachCodeSchema = openEnumSchema;
|
|
14602
14611
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -14765,14 +14774,13 @@ var eventsListParamsSchema = import_v45.z.object({
|
|
|
14765
14774
|
featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
|
|
14766
14775
|
customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
|
|
14767
14776
|
});
|
|
14768
|
-
var listEventsPropertiesSchema = import_v45.z.object({});
|
|
14769
14777
|
var listEventsListSchema = import_v45.z.object({
|
|
14770
14778
|
id: import_v45.z.string(),
|
|
14771
14779
|
timestamp: import_v45.z.number(),
|
|
14772
14780
|
featureId: import_v45.z.string(),
|
|
14773
14781
|
customerId: import_v45.z.string(),
|
|
14774
14782
|
value: import_v45.z.number(),
|
|
14775
|
-
properties:
|
|
14783
|
+
properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
|
|
14776
14784
|
});
|
|
14777
14785
|
var listEventsResponseSchema = import_v45.z.object({
|
|
14778
14786
|
list: import_v45.z.array(listEventsListSchema),
|
|
@@ -15414,7 +15422,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15414
15422
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15415
15423
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15416
15424
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15417
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15425
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15426
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15418
15427
|
});
|
|
15419
15428
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15420
15429
|
var planSchema = import_v49.z.any();
|
|
@@ -15500,7 +15509,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15500
15509
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15501
15510
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15502
15511
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15503
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15512
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15513
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15504
15514
|
});
|
|
15505
15515
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15506
15516
|
planId: import_v49.z.string(),
|
|
@@ -16329,7 +16339,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16329
16339
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16330
16340
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16331
16341
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16332
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16342
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16343
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16333
16344
|
});
|
|
16334
16345
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16335
16346
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16407,7 +16418,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16407
16418
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16408
16419
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16409
16420
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16410
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16421
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16422
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16411
16423
|
});
|
|
16412
16424
|
|
|
16413
16425
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RVNL4DSW.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";
|
|
@@ -1708,7 +1708,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1708
1708
|
carryOverUsages: z10.optional(
|
|
1709
1709
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1710
1710
|
),
|
|
1711
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1711
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1712
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1712
1713
|
}),
|
|
1713
1714
|
z10.transform((v) => {
|
|
1714
1715
|
return remap(v, {
|
|
@@ -1728,7 +1729,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1728
1729
|
customLineItems: "custom_line_items",
|
|
1729
1730
|
processorSubscriptionId: "processor_subscription_id",
|
|
1730
1731
|
carryOverBalances: "carry_over_balances",
|
|
1731
|
-
carryOverUsages: "carry_over_usages"
|
|
1732
|
+
carryOverUsages: "carry_over_usages",
|
|
1733
|
+
noBillingChanges: "no_billing_changes"
|
|
1732
1734
|
});
|
|
1733
1735
|
})
|
|
1734
1736
|
);
|
|
@@ -2535,7 +2537,7 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
|
|
|
2535
2537
|
})
|
|
2536
2538
|
);
|
|
2537
2539
|
var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
|
|
2538
|
-
var
|
|
2540
|
+
var Properties$inboundSchema = z13.pipe(
|
|
2539
2541
|
z13.object({
|
|
2540
2542
|
is_free: boolean2(),
|
|
2541
2543
|
is_one_off: boolean2(),
|
|
@@ -2567,7 +2569,7 @@ var Product$inboundSchema = z13.pipe(
|
|
|
2567
2569
|
free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
|
|
2568
2570
|
base_variant_id: nullable(string4()),
|
|
2569
2571
|
scenario: optional2(ProductScenario$inboundSchema),
|
|
2570
|
-
properties: optional2(z13.lazy(() =>
|
|
2572
|
+
properties: optional2(z13.lazy(() => Properties$inboundSchema))
|
|
2571
2573
|
}),
|
|
2572
2574
|
z13.transform((v) => {
|
|
2573
2575
|
return remap(v, {
|
|
@@ -5594,7 +5596,6 @@ var EventsListParams$outboundSchema = z33.pipe(
|
|
|
5594
5596
|
});
|
|
5595
5597
|
})
|
|
5596
5598
|
);
|
|
5597
|
-
var ListEventsProperties$inboundSchema = z33.object({});
|
|
5598
5599
|
var ListEventsList$inboundSchema = z33.pipe(
|
|
5599
5600
|
z33.object({
|
|
5600
5601
|
id: string4(),
|
|
@@ -5602,7 +5603,7 @@ var ListEventsList$inboundSchema = z33.pipe(
|
|
|
5602
5603
|
feature_id: string4(),
|
|
5603
5604
|
customer_id: string4(),
|
|
5604
5605
|
value: number2(),
|
|
5605
|
-
properties: z33.
|
|
5606
|
+
properties: z33.record(z33.string(), z33.any())
|
|
5606
5607
|
}),
|
|
5607
5608
|
z33.transform((v) => {
|
|
5608
5609
|
return remap(v, {
|
|
@@ -6730,7 +6731,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6730
6731
|
carryOverUsages: z38.optional(
|
|
6731
6732
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6732
6733
|
),
|
|
6733
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6734
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6735
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6734
6736
|
}),
|
|
6735
6737
|
z38.transform((v) => {
|
|
6736
6738
|
return remap(v, {
|
|
@@ -6750,7 +6752,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6750
6752
|
customLineItems: "custom_line_items",
|
|
6751
6753
|
processorSubscriptionId: "processor_subscription_id",
|
|
6752
6754
|
carryOverBalances: "carry_over_balances",
|
|
6753
|
-
carryOverUsages: "carry_over_usages"
|
|
6755
|
+
carryOverUsages: "carry_over_usages",
|
|
6756
|
+
noBillingChanges: "no_billing_changes"
|
|
6754
6757
|
});
|
|
6755
6758
|
})
|
|
6756
6759
|
);
|
|
@@ -8412,7 +8415,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8412
8415
|
carryOverUsages: z42.optional(
|
|
8413
8416
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8414
8417
|
),
|
|
8415
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8418
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8419
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8416
8420
|
}),
|
|
8417
8421
|
z42.transform((v) => {
|
|
8418
8422
|
return remap(v, {
|
|
@@ -8428,7 +8432,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8428
8432
|
customLineItems: "custom_line_items",
|
|
8429
8433
|
processorSubscriptionId: "processor_subscription_id",
|
|
8430
8434
|
carryOverBalances: "carry_over_balances",
|
|
8431
|
-
carryOverUsages: "carry_over_usages"
|
|
8435
|
+
carryOverUsages: "carry_over_usages",
|
|
8436
|
+
noBillingChanges: "no_billing_changes"
|
|
8432
8437
|
});
|
|
8433
8438
|
})
|
|
8434
8439
|
);
|
|
@@ -11649,6 +11654,7 @@ var Billing = class extends ClientSDK {
|
|
|
11649
11654
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11650
11655
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11651
11656
|
* @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)
|
|
11657
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11652
11658
|
*
|
|
11653
11659
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11654
11660
|
*/
|
|
@@ -11734,6 +11740,7 @@ var Billing = class extends ClientSDK {
|
|
|
11734
11740
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11735
11741
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11736
11742
|
* @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)
|
|
11743
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11737
11744
|
*
|
|
11738
11745
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11739
11746
|
*/
|
|
@@ -14511,7 +14518,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14511
14518
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14512
14519
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
14520
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14514
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14521
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14522
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14515
14523
|
});
|
|
14516
14524
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14517
14525
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14596,7 +14604,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14596
14604
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14597
14605
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
14606
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14599
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14607
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14608
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14600
14609
|
});
|
|
14601
14610
|
var attachCodeSchema = openEnumSchema;
|
|
14602
14611
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -14765,14 +14774,13 @@ var eventsListParamsSchema = import_v45.z.object({
|
|
|
14765
14774
|
featureId: import_v45.z.union([import_v45.z.string(), import_v45.z.array(import_v45.z.string()), import_v45.z.undefined()]).optional(),
|
|
14766
14775
|
customRange: import_v45.z.union([listEventsCustomRangeSchema, import_v45.z.undefined()]).optional()
|
|
14767
14776
|
});
|
|
14768
|
-
var listEventsPropertiesSchema = import_v45.z.object({});
|
|
14769
14777
|
var listEventsListSchema = import_v45.z.object({
|
|
14770
14778
|
id: import_v45.z.string(),
|
|
14771
14779
|
timestamp: import_v45.z.number(),
|
|
14772
14780
|
featureId: import_v45.z.string(),
|
|
14773
14781
|
customerId: import_v45.z.string(),
|
|
14774
14782
|
value: import_v45.z.number(),
|
|
14775
|
-
properties:
|
|
14783
|
+
properties: import_v45.z.record(import_v45.z.string(), import_v45.z.any())
|
|
14776
14784
|
});
|
|
14777
14785
|
var listEventsResponseSchema = import_v45.z.object({
|
|
14778
14786
|
list: import_v45.z.array(listEventsListSchema),
|
|
@@ -15414,7 +15422,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15414
15422
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15415
15423
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15416
15424
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15417
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15425
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15426
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15418
15427
|
});
|
|
15419
15428
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15420
15429
|
var planSchema = import_v49.z.any();
|
|
@@ -15500,7 +15509,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15500
15509
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15501
15510
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15502
15511
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15503
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15512
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15513
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15504
15514
|
});
|
|
15505
15515
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15506
15516
|
planId: import_v49.z.string(),
|
|
@@ -16329,7 +16339,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16329
16339
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16330
16340
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16331
16341
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16332
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16342
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16343
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16333
16344
|
});
|
|
16334
16345
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16335
16346
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16407,7 +16418,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16407
16418
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16408
16419
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16409
16420
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16410
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16421
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16422
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16411
16423
|
});
|
|
16412
16424
|
|
|
16413
16425
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3KJVXSBT.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";
|