autumn-js 1.1.10 → 1.2.0
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 +20 -9
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +20 -9
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +20 -9
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +20 -9
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +20 -9
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-HG52KOLU.mjs → chunk-3YYODLUY.mjs} +1 -1
- package/dist/backend/{chunk-3N5JKLZU.mjs → chunk-5TDPAYPN.mjs} +1 -1
- package/dist/backend/{chunk-NKLPJAWS.mjs → chunk-6YVVHFAT.mjs} +1 -1
- package/dist/backend/{chunk-NSXJQETG.mjs → chunk-BSY23UM3.mjs} +12 -6
- package/dist/backend/{chunk-CS4R7BU4.mjs → chunk-JDL37I7Y.mjs} +5 -5
- package/dist/backend/{chunk-RGUUMXFG.mjs → chunk-MJBKNDWD.mjs} +8 -3
- package/dist/backend/{chunk-SBTEC637.mjs → chunk-RYP3CVST.mjs} +1 -1
- package/dist/backend/{chunk-TC6BT3QN.mjs → chunk-VR35K2UZ.mjs} +7 -7
- 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 +20 -9
- package/dist/backend/core/handlers/coreHandler.mjs +7 -7
- package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
- package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
- package/dist/backend/core/handlers/executeRoute.mjs +4 -4
- package/dist/backend/core/handlers/handleRouteByName.js +20 -9
- package/dist/backend/core/handlers/handleRouteByName.mjs +7 -7
- package/dist/backend/core/handlers/index.d.mts +1 -1
- package/dist/backend/core/handlers/index.d.ts +1 -1
- package/dist/backend/core/handlers/index.js +20 -9
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/index.d.mts +1 -1
- package/dist/backend/core/index.d.ts +1 -1
- package/dist/backend/core/index.js +20 -9
- package/dist/backend/core/index.mjs +10 -10
- package/dist/backend/core/routes/index.d.mts +1 -1
- package/dist/backend/core/routes/index.d.ts +1 -1
- package/dist/backend/core/routes/index.js +12 -6
- package/dist/backend/core/routes/index.mjs +2 -2
- package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
- package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
- package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
- package/dist/backend/core/routes/routeConfigs.js +12 -6
- package/dist/backend/core/routes/routeConfigs.mjs +2 -2
- package/dist/backend/core/types/handlerTypes.d.mts +1 -1
- package/dist/backend/core/types/handlerTypes.d.ts +1 -1
- package/dist/backend/core/types/index.d.mts +1 -1
- package/dist/backend/core/types/index.d.ts +1 -1
- package/dist/backend/core/types/routeTypes.d.mts +1 -1
- package/dist/backend/core/types/routeTypes.d.ts +1 -1
- package/dist/backend/core/utils/index.mjs +3 -3
- package/dist/backend/index.d.mts +2 -2
- package/dist/backend/index.d.ts +2 -2
- package/dist/backend/index.js +20 -9
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-CpYmkN-b.d.ts → routeTypes-B7YXq83l.d.ts} +20 -0
- package/dist/backend/{routeTypes-mZBR-uVw.d.mts → routeTypes-BglWygTb.d.mts} +20 -0
- package/dist/better-auth/{chunk-SASLAUVA.mjs → chunk-I4LI2AOX.mjs} +9 -4
- package/dist/better-auth/{chunk-AHCYYKBC.mjs → chunk-LHA6NFFS.mjs} +12 -6
- package/dist/better-auth/{chunk-6YDKA7Z5.mjs → chunk-TDX4NREA.mjs} +1 -1
- package/dist/better-auth/index.js +20 -9
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.js +12 -6
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +20 -9
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +20 -9
- 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-DQdWUztN.d.mts → params-BmtAnULw.d.mts} +18 -0
- package/dist/react/{params-BJe02wWl.d.ts → params-CL0lZNfr.d.ts} +18 -0
- package/dist/sdk/index.d.mts +29 -0
- package/dist/sdk/index.d.ts +29 -0
- package/dist/sdk/index.js +8 -3
- package/dist/sdk/index.mjs +8 -3
- package/package.json +1 -1
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -1693,7 +1693,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1693
1693
|
),
|
|
1694
1694
|
carryOverUsages: z10.optional(
|
|
1695
1695
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1696
|
-
)
|
|
1696
|
+
),
|
|
1697
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1697
1698
|
}),
|
|
1698
1699
|
z10.transform((v) => {
|
|
1699
1700
|
return remap(v, {
|
|
@@ -6541,7 +6542,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6541
6542
|
),
|
|
6542
6543
|
carryOverUsages: z38.optional(
|
|
6543
6544
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6544
|
-
)
|
|
6545
|
+
),
|
|
6546
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6545
6547
|
}),
|
|
6546
6548
|
z38.transform((v) => {
|
|
6547
6549
|
return remap(v, {
|
|
@@ -8195,7 +8197,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8195
8197
|
),
|
|
8196
8198
|
carryOverUsages: z42.optional(
|
|
8197
8199
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8198
|
-
)
|
|
8200
|
+
),
|
|
8201
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8199
8202
|
}),
|
|
8200
8203
|
z42.transform((v) => {
|
|
8201
8204
|
return remap(v, {
|
|
@@ -11340,6 +11343,7 @@ var Billing = class extends ClientSDK {
|
|
|
11340
11343
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11341
11344
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11342
11345
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11346
|
+
* @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)
|
|
11343
11347
|
*
|
|
11344
11348
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11345
11349
|
*/
|
|
@@ -11423,6 +11427,7 @@ var Billing = class extends ClientSDK {
|
|
|
11423
11427
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11424
11428
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11425
11429
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11430
|
+
* @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)
|
|
11426
11431
|
*
|
|
11427
11432
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11428
11433
|
*/
|
|
@@ -14193,7 +14198,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14193
14198
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
14194
14199
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14195
14200
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14196
|
-
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional()
|
|
14201
|
+
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14202
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14197
14203
|
});
|
|
14198
14204
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14199
14205
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14275,7 +14281,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14275
14281
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
14276
14282
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14277
14283
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14278
|
-
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional()
|
|
14284
|
+
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14285
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14279
14286
|
});
|
|
14280
14287
|
var attachCodeSchema = openEnumSchema;
|
|
14281
14288
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15062,7 +15069,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15062
15069
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
15063
15070
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15064
15071
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15065
|
-
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional()
|
|
15072
|
+
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15073
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15066
15074
|
});
|
|
15067
15075
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15068
15076
|
var planSchema = import_v49.z.any();
|
|
@@ -15145,7 +15153,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15145
15153
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
15146
15154
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15147
15155
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15148
|
-
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional()
|
|
15156
|
+
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15157
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15149
15158
|
});
|
|
15150
15159
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15151
15160
|
planId: import_v49.z.string(),
|
|
@@ -15952,7 +15961,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
15952
15961
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
15953
15962
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
15954
15963
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15955
|
-
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional()
|
|
15964
|
+
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15965
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
15956
15966
|
});
|
|
15957
15967
|
var closedEnumSchema8 = import_v413.z.any();
|
|
15958
15968
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16027,7 +16037,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16027
16037
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
16028
16038
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16029
16039
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16030
|
-
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional()
|
|
16040
|
+
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16041
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16031
16042
|
});
|
|
16032
16043
|
|
|
16033
16044
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3YYODLUY.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JDL37I7Y.mjs";
|
|
7
|
+
import "../chunk-VR35K2UZ.mjs";
|
|
8
|
+
import "../chunk-MJBKNDWD.mjs";
|
|
9
|
+
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
8
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-NSXJQETG.mjs";
|
|
12
|
-
import "../chunk-S5HPMJ4U.mjs";
|
|
14
|
+
import "../chunk-BSY23UM3.mjs";
|
|
13
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
15
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
17
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1693,7 +1693,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1693
1693
|
),
|
|
1694
1694
|
carryOverUsages: z10.optional(
|
|
1695
1695
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1696
|
-
)
|
|
1696
|
+
),
|
|
1697
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1697
1698
|
}),
|
|
1698
1699
|
z10.transform((v) => {
|
|
1699
1700
|
return remap(v, {
|
|
@@ -6541,7 +6542,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6541
6542
|
),
|
|
6542
6543
|
carryOverUsages: z38.optional(
|
|
6543
6544
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6544
|
-
)
|
|
6545
|
+
),
|
|
6546
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6545
6547
|
}),
|
|
6546
6548
|
z38.transform((v) => {
|
|
6547
6549
|
return remap(v, {
|
|
@@ -8195,7 +8197,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8195
8197
|
),
|
|
8196
8198
|
carryOverUsages: z42.optional(
|
|
8197
8199
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8198
|
-
)
|
|
8200
|
+
),
|
|
8201
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8199
8202
|
}),
|
|
8200
8203
|
z42.transform((v) => {
|
|
8201
8204
|
return remap(v, {
|
|
@@ -11340,6 +11343,7 @@ var Billing = class extends ClientSDK {
|
|
|
11340
11343
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11341
11344
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11342
11345
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11346
|
+
* @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)
|
|
11343
11347
|
*
|
|
11344
11348
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11345
11349
|
*/
|
|
@@ -11423,6 +11427,7 @@ var Billing = class extends ClientSDK {
|
|
|
11423
11427
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11424
11428
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11425
11429
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11430
|
+
* @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)
|
|
11426
11431
|
*
|
|
11427
11432
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11428
11433
|
*/
|
|
@@ -14193,7 +14198,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14193
14198
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
14194
14199
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14195
14200
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14196
|
-
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional()
|
|
14201
|
+
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14202
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14197
14203
|
});
|
|
14198
14204
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14199
14205
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14275,7 +14281,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14275
14281
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
14276
14282
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14277
14283
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14278
|
-
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional()
|
|
14284
|
+
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14285
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14279
14286
|
});
|
|
14280
14287
|
var attachCodeSchema = openEnumSchema;
|
|
14281
14288
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15062,7 +15069,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15062
15069
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
15063
15070
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15064
15071
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15065
|
-
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional()
|
|
15072
|
+
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15073
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15066
15074
|
});
|
|
15067
15075
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15068
15076
|
var planSchema = import_v49.z.any();
|
|
@@ -15145,7 +15153,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15145
15153
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
15146
15154
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15147
15155
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15148
|
-
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional()
|
|
15156
|
+
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15157
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15149
15158
|
});
|
|
15150
15159
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15151
15160
|
planId: import_v49.z.string(),
|
|
@@ -15952,7 +15961,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
15952
15961
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
15953
15962
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
15954
15963
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15955
|
-
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional()
|
|
15964
|
+
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15965
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
15956
15966
|
});
|
|
15957
15967
|
var closedEnumSchema8 = import_v413.z.any();
|
|
15958
15968
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16027,7 +16037,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16027
16037
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
16028
16038
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16029
16039
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16030
|
-
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional()
|
|
16040
|
+
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16041
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16031
16042
|
});
|
|
16032
16043
|
|
|
16033
16044
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-5TDPAYPN.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JDL37I7Y.mjs";
|
|
7
|
+
import "../chunk-VR35K2UZ.mjs";
|
|
8
|
+
import "../chunk-MJBKNDWD.mjs";
|
|
9
|
+
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
8
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-NSXJQETG.mjs";
|
|
12
|
-
import "../chunk-S5HPMJ4U.mjs";
|
|
14
|
+
import "../chunk-BSY23UM3.mjs";
|
|
13
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
15
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
17
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1693,7 +1693,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1693
1693
|
),
|
|
1694
1694
|
carryOverUsages: z10.optional(
|
|
1695
1695
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1696
|
-
)
|
|
1696
|
+
),
|
|
1697
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1697
1698
|
}),
|
|
1698
1699
|
z10.transform((v) => {
|
|
1699
1700
|
return remap(v, {
|
|
@@ -6541,7 +6542,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6541
6542
|
),
|
|
6542
6543
|
carryOverUsages: z38.optional(
|
|
6543
6544
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6544
|
-
)
|
|
6545
|
+
),
|
|
6546
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6545
6547
|
}),
|
|
6546
6548
|
z38.transform((v) => {
|
|
6547
6549
|
return remap(v, {
|
|
@@ -8195,7 +8197,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8195
8197
|
),
|
|
8196
8198
|
carryOverUsages: z42.optional(
|
|
8197
8199
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8198
|
-
)
|
|
8200
|
+
),
|
|
8201
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8199
8202
|
}),
|
|
8200
8203
|
z42.transform((v) => {
|
|
8201
8204
|
return remap(v, {
|
|
@@ -11340,6 +11343,7 @@ var Billing = class extends ClientSDK {
|
|
|
11340
11343
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11341
11344
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11342
11345
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11346
|
+
* @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)
|
|
11343
11347
|
*
|
|
11344
11348
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11345
11349
|
*/
|
|
@@ -11423,6 +11427,7 @@ var Billing = class extends ClientSDK {
|
|
|
11423
11427
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11424
11428
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11425
11429
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11430
|
+
* @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)
|
|
11426
11431
|
*
|
|
11427
11432
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11428
11433
|
*/
|
|
@@ -14193,7 +14198,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14193
14198
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
14194
14199
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14195
14200
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14196
|
-
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional()
|
|
14201
|
+
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14202
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14197
14203
|
});
|
|
14198
14204
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14199
14205
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14275,7 +14281,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14275
14281
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
14276
14282
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14277
14283
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14278
|
-
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional()
|
|
14284
|
+
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14285
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14279
14286
|
});
|
|
14280
14287
|
var attachCodeSchema = openEnumSchema;
|
|
14281
14288
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15062,7 +15069,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15062
15069
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
15063
15070
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15064
15071
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15065
|
-
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional()
|
|
15072
|
+
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15073
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15066
15074
|
});
|
|
15067
15075
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15068
15076
|
var planSchema = import_v49.z.any();
|
|
@@ -15145,7 +15153,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15145
15153
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
15146
15154
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15147
15155
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15148
|
-
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional()
|
|
15156
|
+
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15157
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15149
15158
|
});
|
|
15150
15159
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15151
15160
|
planId: import_v49.z.string(),
|
|
@@ -15952,7 +15961,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
15952
15961
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
15953
15962
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
15954
15963
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15955
|
-
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional()
|
|
15964
|
+
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15965
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
15956
15966
|
});
|
|
15957
15967
|
var closedEnumSchema8 = import_v413.z.any();
|
|
15958
15968
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16027,7 +16037,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16027
16037
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
16028
16038
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16029
16039
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16030
|
-
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional()
|
|
16040
|
+
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16041
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16031
16042
|
});
|
|
16032
16043
|
|
|
16033
16044
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-6YVVHFAT.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JDL37I7Y.mjs";
|
|
7
|
+
import "../chunk-VR35K2UZ.mjs";
|
|
8
|
+
import "../chunk-MJBKNDWD.mjs";
|
|
9
|
+
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
8
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-NSXJQETG.mjs";
|
|
12
|
-
import "../chunk-S5HPMJ4U.mjs";
|
|
14
|
+
import "../chunk-BSY23UM3.mjs";
|
|
13
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
15
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
17
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -1696,7 +1696,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1696
1696
|
),
|
|
1697
1697
|
carryOverUsages: z10.optional(
|
|
1698
1698
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1699
|
-
)
|
|
1699
|
+
),
|
|
1700
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1700
1701
|
}),
|
|
1701
1702
|
z10.transform((v) => {
|
|
1702
1703
|
return remap(v, {
|
|
@@ -6544,7 +6545,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6544
6545
|
),
|
|
6545
6546
|
carryOverUsages: z38.optional(
|
|
6546
6547
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6547
|
-
)
|
|
6548
|
+
),
|
|
6549
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6548
6550
|
}),
|
|
6549
6551
|
z38.transform((v) => {
|
|
6550
6552
|
return remap(v, {
|
|
@@ -8198,7 +8200,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8198
8200
|
),
|
|
8199
8201
|
carryOverUsages: z42.optional(
|
|
8200
8202
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8201
|
-
)
|
|
8203
|
+
),
|
|
8204
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8202
8205
|
}),
|
|
8203
8206
|
z42.transform((v) => {
|
|
8204
8207
|
return remap(v, {
|
|
@@ -11343,6 +11346,7 @@ var Billing = class extends ClientSDK {
|
|
|
11343
11346
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11344
11347
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11345
11348
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11349
|
+
* @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)
|
|
11346
11350
|
*
|
|
11347
11351
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11348
11352
|
*/
|
|
@@ -11426,6 +11430,7 @@ var Billing = class extends ClientSDK {
|
|
|
11426
11430
|
* @param processorSubscriptionId - The processor subscription ID to link. Use this to attach an existing Stripe subscription instead of creating a new one. (optional)
|
|
11427
11431
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11428
11432
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11433
|
+
* @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)
|
|
11429
11434
|
*
|
|
11430
11435
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11431
11436
|
*/
|
|
@@ -14196,7 +14201,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14196
14201
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
14197
14202
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14198
14203
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14199
|
-
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional()
|
|
14204
|
+
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14205
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14200
14206
|
});
|
|
14201
14207
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14202
14208
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14278,7 +14284,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14278
14284
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
14279
14285
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14280
14286
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14281
|
-
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional()
|
|
14287
|
+
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14288
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14282
14289
|
});
|
|
14283
14290
|
var attachCodeSchema = openEnumSchema;
|
|
14284
14291
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15065,7 +15072,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15065
15072
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
15066
15073
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15067
15074
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15068
|
-
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional()
|
|
15075
|
+
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15076
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15069
15077
|
});
|
|
15070
15078
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15071
15079
|
var planSchema = import_v49.z.any();
|
|
@@ -15148,7 +15156,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15148
15156
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
15149
15157
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15150
15158
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15151
|
-
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional()
|
|
15159
|
+
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15160
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15152
15161
|
});
|
|
15153
15162
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15154
15163
|
planId: import_v49.z.string(),
|
|
@@ -15955,7 +15964,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
15955
15964
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
15956
15965
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
15957
15966
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15958
|
-
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional()
|
|
15967
|
+
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
15968
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
15959
15969
|
});
|
|
15960
15970
|
var closedEnumSchema8 = import_v413.z.any();
|
|
15961
15971
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16030,7 +16040,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16030
16040
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
16031
16041
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16032
16042
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16033
|
-
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional()
|
|
16043
|
+
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16044
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16034
16045
|
});
|
|
16035
16046
|
|
|
16036
16047
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-3YYODLUY.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-5TDPAYPN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-6YVVHFAT.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-RYP3CVST.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-JDL37I7Y.mjs";
|
|
16
|
+
import "../chunk-VR35K2UZ.mjs";
|
|
17
|
+
import "../chunk-MJBKNDWD.mjs";
|
|
18
|
+
import "../chunk-55C2WWXQ.mjs";
|
|
19
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
20
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
17
21
|
import "../chunk-TSF4YCUO.mjs";
|
|
18
22
|
import "../chunk-UAR3TMWI.mjs";
|
|
19
|
-
import "../chunk-
|
|
20
|
-
import "../chunk-NSXJQETG.mjs";
|
|
21
|
-
import "../chunk-S5HPMJ4U.mjs";
|
|
23
|
+
import "../chunk-BSY23UM3.mjs";
|
|
22
24
|
import "../chunk-OTXV5FY7.mjs";
|
|
23
|
-
import "../chunk-Z6QP3YEA.mjs";
|
|
24
25
|
import "../chunk-VZIMT7AO.mjs";
|
|
25
|
-
import "../chunk-
|
|
26
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
26
|
+
import "../chunk-Z6QP3YEA.mjs";
|
|
27
27
|
import "../chunk-N7NFYY54.mjs";
|
|
28
28
|
export {
|
|
29
29
|
autumnHandler as expressAutumnHandler,
|