autumn-js 1.2.7 → 1.2.9
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 +38 -15
- package/dist/backend/adapters/express.mjs +9 -9
- package/dist/backend/adapters/fetch.js +38 -15
- package/dist/backend/adapters/fetch.mjs +9 -9
- package/dist/backend/adapters/hono.js +38 -15
- package/dist/backend/adapters/hono.mjs +9 -9
- package/dist/backend/adapters/index.js +38 -15
- package/dist/backend/adapters/index.mjs +12 -12
- package/dist/backend/adapters/next.js +38 -15
- package/dist/backend/adapters/next.mjs +9 -9
- package/dist/backend/{chunk-THDDG3SC.mjs → chunk-2NIBKIZV.mjs} +12 -6
- package/dist/backend/{chunk-UC2X6SWS.mjs → chunk-2R56EQ4S.mjs} +1 -1
- package/dist/backend/{chunk-PKA4GW4O.mjs → chunk-6Y2MEAWW.mjs} +7 -7
- package/dist/backend/{chunk-RUMFBMKX.mjs → chunk-BKTIDIRX.mjs} +1 -1
- package/dist/backend/{chunk-LNALJOXZ.mjs → chunk-INMDP2EE.mjs} +5 -5
- package/dist/backend/{chunk-5CZDAFNW.mjs → chunk-KEFLOTH7.mjs} +1 -1
- package/dist/backend/{chunk-GLJ7FFOQ.mjs → chunk-MBRTABXT.mjs} +26 -9
- package/dist/backend/{chunk-DV2YHWEK.mjs → chunk-RTMXCNBJ.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 +38 -15
- 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 +38 -15
- 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 +38 -15
- 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 +38 -15
- 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 +38 -15
- package/dist/backend/index.mjs +10 -10
- package/dist/backend/{routeTypes-CeGvUnxR.d.mts → routeTypes-C_13ls9L.d.mts} +24 -0
- package/dist/backend/{routeTypes-unMyXmbr.d.ts → routeTypes-FYNUgD55.d.ts} +24 -0
- package/dist/better-auth/{chunk-SAEKRWYS.mjs → chunk-F6ZMLAY6.mjs} +12 -6
- package/dist/better-auth/{chunk-27T7GCI3.mjs → chunk-G6UW7SLU.mjs} +27 -10
- package/dist/better-auth/{chunk-YHZ5P4JJ.mjs → chunk-LRULDM7S.mjs} +1 -1
- package/dist/better-auth/client.d.mts +1 -2
- package/dist/better-auth/client.d.ts +1 -2
- package/dist/better-auth/{createAutumnEndpoint-p1QlSPE4.d.ts → createAutumnEndpoint-QlOJ33tY.d.mts} +1 -2
- package/dist/better-auth/{createAutumnEndpoint-p1QlSPE4.d.mts → createAutumnEndpoint-QlOJ33tY.d.ts} +1 -2
- package/dist/better-auth/index.d.mts +1 -2
- package/dist/better-auth/index.d.ts +1 -2
- package/dist/better-auth/index.js +38 -15
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/utils/createAutumnEndpoint.d.mts +1 -2
- package/dist/better-auth/utils/createAutumnEndpoint.d.ts +1 -2
- package/dist/better-auth/utils/createAutumnEndpoint.js +12 -6
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +1 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +1 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +38 -15
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.d.mts +1 -2
- package/dist/better-auth/utils/index.d.ts +1 -2
- package/dist/better-auth/utils/index.js +38 -15
- 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/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
- package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
- package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
- package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
- package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
- package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
- package/dist/react/{chunk-MC2YYATT.mjs → chunk-J6SLKTKE.mjs} +1 -1
- package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
- package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +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/index.js +16 -16
- package/dist/react/hooks/index.mjs +8 -8
- 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/internal/useCustomerActions.js +1 -1
- package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useAggregateEvents.js +16 -16
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +1 -1
- package/dist/react/hooks/useCustomer.d.ts +1 -1
- package/dist/react/hooks/useCustomer.js +16 -16
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useEntity.js +16 -16
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListEvents.js +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useListPlans.js +16 -16
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/hooks/useReferrals.js +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-CtLqnjHp.d.ts → params-1wfmIH4y.d.ts} +12 -0
- package/dist/react/{params-IlPe7I2T.d.mts → params-DEcqxcLi.d.mts} +12 -0
- package/dist/sdk/index.d.mts +33 -3
- package/dist/sdk/index.d.ts +33 -3
- package/dist/sdk/index.js +28 -9
- package/dist/sdk/index.mjs +27 -10
- package/package.json +2 -2
- package/dist/backend/{chunk-55C2WWXQ.mjs → chunk-S5HPMJ4U.mjs} +3 -3
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.879.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
81
|
+
genVersion: "2.879.13",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.13 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -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
|
);
|
|
@@ -5279,6 +5281,11 @@ var SubscriptionStatus = {
|
|
|
5279
5281
|
Active: "active",
|
|
5280
5282
|
Scheduled: "scheduled"
|
|
5281
5283
|
};
|
|
5284
|
+
var Processor = {
|
|
5285
|
+
Stripe: "stripe",
|
|
5286
|
+
Revenuecat: "revenuecat",
|
|
5287
|
+
Vercel: "vercel"
|
|
5288
|
+
};
|
|
5282
5289
|
var ListCustomersEnv = {
|
|
5283
5290
|
Sandbox: "sandbox",
|
|
5284
5291
|
Live: "live"
|
|
@@ -5309,13 +5316,17 @@ var ListCustomersPlan$outboundSchema = z32.object({
|
|
|
5309
5316
|
versions: z32.optional(z32.array(z32.number()))
|
|
5310
5317
|
});
|
|
5311
5318
|
var SubscriptionStatus$outboundSchema = z32.enum(SubscriptionStatus);
|
|
5319
|
+
var Processor$outboundSchema = z32.enum(
|
|
5320
|
+
Processor
|
|
5321
|
+
);
|
|
5312
5322
|
var ListCustomersParams$outboundSchema = z32.pipe(
|
|
5313
5323
|
z32.object({
|
|
5314
5324
|
offset: z32._default(z32.int(), 0),
|
|
5315
5325
|
limit: z32._default(z32.int(), 10),
|
|
5316
5326
|
plans: z32.optional(z32.array(z32.lazy(() => ListCustomersPlan$outboundSchema))),
|
|
5317
5327
|
subscriptionStatus: z32.optional(SubscriptionStatus$outboundSchema),
|
|
5318
|
-
search: z32.optional(z32.string())
|
|
5328
|
+
search: z32.optional(z32.string()),
|
|
5329
|
+
processors: z32.optional(z32.array(Processor$outboundSchema))
|
|
5319
5330
|
}),
|
|
5320
5331
|
z32.transform((v) => {
|
|
5321
5332
|
return remap(v, {
|
|
@@ -6729,7 +6740,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6729
6740
|
carryOverUsages: z38.optional(
|
|
6730
6741
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6731
6742
|
),
|
|
6732
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6743
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6744
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6733
6745
|
}),
|
|
6734
6746
|
z38.transform((v) => {
|
|
6735
6747
|
return remap(v, {
|
|
@@ -6749,7 +6761,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6749
6761
|
customLineItems: "custom_line_items",
|
|
6750
6762
|
processorSubscriptionId: "processor_subscription_id",
|
|
6751
6763
|
carryOverBalances: "carry_over_balances",
|
|
6752
|
-
carryOverUsages: "carry_over_usages"
|
|
6764
|
+
carryOverUsages: "carry_over_usages",
|
|
6765
|
+
noBillingChanges: "no_billing_changes"
|
|
6753
6766
|
});
|
|
6754
6767
|
})
|
|
6755
6768
|
);
|
|
@@ -8411,7 +8424,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8411
8424
|
carryOverUsages: z42.optional(
|
|
8412
8425
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8413
8426
|
),
|
|
8414
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8427
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8428
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8415
8429
|
}),
|
|
8416
8430
|
z42.transform((v) => {
|
|
8417
8431
|
return remap(v, {
|
|
@@ -8427,7 +8441,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8427
8441
|
customLineItems: "custom_line_items",
|
|
8428
8442
|
processorSubscriptionId: "processor_subscription_id",
|
|
8429
8443
|
carryOverBalances: "carry_over_balances",
|
|
8430
|
-
carryOverUsages: "carry_over_usages"
|
|
8444
|
+
carryOverUsages: "carry_over_usages",
|
|
8445
|
+
noBillingChanges: "no_billing_changes"
|
|
8431
8446
|
});
|
|
8432
8447
|
})
|
|
8433
8448
|
);
|
|
@@ -11648,6 +11663,7 @@ var Billing = class extends ClientSDK {
|
|
|
11648
11663
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11649
11664
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11650
11665
|
* @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)
|
|
11666
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11651
11667
|
*
|
|
11652
11668
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11653
11669
|
*/
|
|
@@ -11733,6 +11749,7 @@ var Billing = class extends ClientSDK {
|
|
|
11733
11749
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11734
11750
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11735
11751
|
* @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)
|
|
11752
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11736
11753
|
*
|
|
11737
11754
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11738
11755
|
*/
|
|
@@ -14510,7 +14527,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14510
14527
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14511
14528
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14512
14529
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14530
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14531
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14514
14532
|
});
|
|
14515
14533
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14516
14534
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14595,7 +14613,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14595
14613
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14596
14614
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14597
14615
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14616
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14617
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14599
14618
|
});
|
|
14600
14619
|
var attachCodeSchema = openEnumSchema;
|
|
14601
14620
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15412,7 +15431,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15412
15431
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15413
15432
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15414
15433
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15415
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15434
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15435
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15416
15436
|
});
|
|
15417
15437
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15418
15438
|
var planSchema = import_v49.z.any();
|
|
@@ -15498,7 +15518,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15498
15518
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15499
15519
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15500
15520
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15501
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15521
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15522
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15502
15523
|
});
|
|
15503
15524
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15504
15525
|
planId: import_v49.z.string(),
|
|
@@ -16327,7 +16348,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16327
16348
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16328
16349
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16329
16350
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16330
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16351
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16352
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16331
16353
|
});
|
|
16332
16354
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16333
16355
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16405,7 +16427,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16405
16427
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16406
16428
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16407
16429
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16408
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16430
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16431
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16409
16432
|
});
|
|
16410
16433
|
|
|
16411
16434
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BKTIDIRX.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-GLJ7FFOQ.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-INMDP2EE.mjs";
|
|
7
|
+
import "../chunk-6Y2MEAWW.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-MBRTABXT.mjs";
|
|
11
|
+
import "../chunk-2NIBKIZV.mjs";
|
|
12
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-Z6QP3YEA.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.879.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
81
|
+
genVersion: "2.879.13",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.13 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -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
|
);
|
|
@@ -5279,6 +5281,11 @@ var SubscriptionStatus = {
|
|
|
5279
5281
|
Active: "active",
|
|
5280
5282
|
Scheduled: "scheduled"
|
|
5281
5283
|
};
|
|
5284
|
+
var Processor = {
|
|
5285
|
+
Stripe: "stripe",
|
|
5286
|
+
Revenuecat: "revenuecat",
|
|
5287
|
+
Vercel: "vercel"
|
|
5288
|
+
};
|
|
5282
5289
|
var ListCustomersEnv = {
|
|
5283
5290
|
Sandbox: "sandbox",
|
|
5284
5291
|
Live: "live"
|
|
@@ -5309,13 +5316,17 @@ var ListCustomersPlan$outboundSchema = z32.object({
|
|
|
5309
5316
|
versions: z32.optional(z32.array(z32.number()))
|
|
5310
5317
|
});
|
|
5311
5318
|
var SubscriptionStatus$outboundSchema = z32.enum(SubscriptionStatus);
|
|
5319
|
+
var Processor$outboundSchema = z32.enum(
|
|
5320
|
+
Processor
|
|
5321
|
+
);
|
|
5312
5322
|
var ListCustomersParams$outboundSchema = z32.pipe(
|
|
5313
5323
|
z32.object({
|
|
5314
5324
|
offset: z32._default(z32.int(), 0),
|
|
5315
5325
|
limit: z32._default(z32.int(), 10),
|
|
5316
5326
|
plans: z32.optional(z32.array(z32.lazy(() => ListCustomersPlan$outboundSchema))),
|
|
5317
5327
|
subscriptionStatus: z32.optional(SubscriptionStatus$outboundSchema),
|
|
5318
|
-
search: z32.optional(z32.string())
|
|
5328
|
+
search: z32.optional(z32.string()),
|
|
5329
|
+
processors: z32.optional(z32.array(Processor$outboundSchema))
|
|
5319
5330
|
}),
|
|
5320
5331
|
z32.transform((v) => {
|
|
5321
5332
|
return remap(v, {
|
|
@@ -6729,7 +6740,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6729
6740
|
carryOverUsages: z38.optional(
|
|
6730
6741
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6731
6742
|
),
|
|
6732
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6743
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6744
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6733
6745
|
}),
|
|
6734
6746
|
z38.transform((v) => {
|
|
6735
6747
|
return remap(v, {
|
|
@@ -6749,7 +6761,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6749
6761
|
customLineItems: "custom_line_items",
|
|
6750
6762
|
processorSubscriptionId: "processor_subscription_id",
|
|
6751
6763
|
carryOverBalances: "carry_over_balances",
|
|
6752
|
-
carryOverUsages: "carry_over_usages"
|
|
6764
|
+
carryOverUsages: "carry_over_usages",
|
|
6765
|
+
noBillingChanges: "no_billing_changes"
|
|
6753
6766
|
});
|
|
6754
6767
|
})
|
|
6755
6768
|
);
|
|
@@ -8411,7 +8424,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8411
8424
|
carryOverUsages: z42.optional(
|
|
8412
8425
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8413
8426
|
),
|
|
8414
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8427
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8428
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8415
8429
|
}),
|
|
8416
8430
|
z42.transform((v) => {
|
|
8417
8431
|
return remap(v, {
|
|
@@ -8427,7 +8441,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8427
8441
|
customLineItems: "custom_line_items",
|
|
8428
8442
|
processorSubscriptionId: "processor_subscription_id",
|
|
8429
8443
|
carryOverBalances: "carry_over_balances",
|
|
8430
|
-
carryOverUsages: "carry_over_usages"
|
|
8444
|
+
carryOverUsages: "carry_over_usages",
|
|
8445
|
+
noBillingChanges: "no_billing_changes"
|
|
8431
8446
|
});
|
|
8432
8447
|
})
|
|
8433
8448
|
);
|
|
@@ -11648,6 +11663,7 @@ var Billing = class extends ClientSDK {
|
|
|
11648
11663
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11649
11664
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11650
11665
|
* @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)
|
|
11666
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11651
11667
|
*
|
|
11652
11668
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11653
11669
|
*/
|
|
@@ -11733,6 +11749,7 @@ var Billing = class extends ClientSDK {
|
|
|
11733
11749
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11734
11750
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11735
11751
|
* @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)
|
|
11752
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11736
11753
|
*
|
|
11737
11754
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11738
11755
|
*/
|
|
@@ -14510,7 +14527,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14510
14527
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14511
14528
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14512
14529
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14530
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14531
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14514
14532
|
});
|
|
14515
14533
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14516
14534
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14595,7 +14613,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14595
14613
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14596
14614
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14597
14615
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14616
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14617
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14599
14618
|
});
|
|
14600
14619
|
var attachCodeSchema = openEnumSchema;
|
|
14601
14620
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15412,7 +15431,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15412
15431
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15413
15432
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15414
15433
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15415
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15434
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15435
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15416
15436
|
});
|
|
15417
15437
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15418
15438
|
var planSchema = import_v49.z.any();
|
|
@@ -15498,7 +15518,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15498
15518
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15499
15519
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15500
15520
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15501
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15521
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15522
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15502
15523
|
});
|
|
15503
15524
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15504
15525
|
planId: import_v49.z.string(),
|
|
@@ -16327,7 +16348,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16327
16348
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16328
16349
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16329
16350
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16330
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16351
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16352
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16331
16353
|
});
|
|
16332
16354
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16333
16355
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16405,7 +16427,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16405
16427
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16406
16428
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16407
16429
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16408
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16430
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16431
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16409
16432
|
});
|
|
16410
16433
|
|
|
16411
16434
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-KEFLOTH7.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-GLJ7FFOQ.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-INMDP2EE.mjs";
|
|
7
|
+
import "../chunk-6Y2MEAWW.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-MBRTABXT.mjs";
|
|
11
|
+
import "../chunk-2NIBKIZV.mjs";
|
|
12
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-Z6QP3YEA.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|
|
@@ -78,8 +78,8 @@ var SDK_METADATA = {
|
|
|
78
78
|
language: "typescript",
|
|
79
79
|
openapiDocVersion: "2.2.0",
|
|
80
80
|
sdkVersion: "0.10.17",
|
|
81
|
-
genVersion: "2.879.
|
|
82
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
81
|
+
genVersion: "2.879.13",
|
|
82
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.13 2.2.0 @useautumn/sdk"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
// ../sdk/src/lib/http.ts
|
|
@@ -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
|
);
|
|
@@ -5279,6 +5281,11 @@ var SubscriptionStatus = {
|
|
|
5279
5281
|
Active: "active",
|
|
5280
5282
|
Scheduled: "scheduled"
|
|
5281
5283
|
};
|
|
5284
|
+
var Processor = {
|
|
5285
|
+
Stripe: "stripe",
|
|
5286
|
+
Revenuecat: "revenuecat",
|
|
5287
|
+
Vercel: "vercel"
|
|
5288
|
+
};
|
|
5282
5289
|
var ListCustomersEnv = {
|
|
5283
5290
|
Sandbox: "sandbox",
|
|
5284
5291
|
Live: "live"
|
|
@@ -5309,13 +5316,17 @@ var ListCustomersPlan$outboundSchema = z32.object({
|
|
|
5309
5316
|
versions: z32.optional(z32.array(z32.number()))
|
|
5310
5317
|
});
|
|
5311
5318
|
var SubscriptionStatus$outboundSchema = z32.enum(SubscriptionStatus);
|
|
5319
|
+
var Processor$outboundSchema = z32.enum(
|
|
5320
|
+
Processor
|
|
5321
|
+
);
|
|
5312
5322
|
var ListCustomersParams$outboundSchema = z32.pipe(
|
|
5313
5323
|
z32.object({
|
|
5314
5324
|
offset: z32._default(z32.int(), 0),
|
|
5315
5325
|
limit: z32._default(z32.int(), 10),
|
|
5316
5326
|
plans: z32.optional(z32.array(z32.lazy(() => ListCustomersPlan$outboundSchema))),
|
|
5317
5327
|
subscriptionStatus: z32.optional(SubscriptionStatus$outboundSchema),
|
|
5318
|
-
search: z32.optional(z32.string())
|
|
5328
|
+
search: z32.optional(z32.string()),
|
|
5329
|
+
processors: z32.optional(z32.array(Processor$outboundSchema))
|
|
5319
5330
|
}),
|
|
5320
5331
|
z32.transform((v) => {
|
|
5321
5332
|
return remap(v, {
|
|
@@ -6729,7 +6740,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6729
6740
|
carryOverUsages: z38.optional(
|
|
6730
6741
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6731
6742
|
),
|
|
6732
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6743
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6744
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6733
6745
|
}),
|
|
6734
6746
|
z38.transform((v) => {
|
|
6735
6747
|
return remap(v, {
|
|
@@ -6749,7 +6761,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6749
6761
|
customLineItems: "custom_line_items",
|
|
6750
6762
|
processorSubscriptionId: "processor_subscription_id",
|
|
6751
6763
|
carryOverBalances: "carry_over_balances",
|
|
6752
|
-
carryOverUsages: "carry_over_usages"
|
|
6764
|
+
carryOverUsages: "carry_over_usages",
|
|
6765
|
+
noBillingChanges: "no_billing_changes"
|
|
6753
6766
|
});
|
|
6754
6767
|
})
|
|
6755
6768
|
);
|
|
@@ -8411,7 +8424,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8411
8424
|
carryOverUsages: z42.optional(
|
|
8412
8425
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8413
8426
|
),
|
|
8414
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8427
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8428
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8415
8429
|
}),
|
|
8416
8430
|
z42.transform((v) => {
|
|
8417
8431
|
return remap(v, {
|
|
@@ -8427,7 +8441,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8427
8441
|
customLineItems: "custom_line_items",
|
|
8428
8442
|
processorSubscriptionId: "processor_subscription_id",
|
|
8429
8443
|
carryOverBalances: "carry_over_balances",
|
|
8430
|
-
carryOverUsages: "carry_over_usages"
|
|
8444
|
+
carryOverUsages: "carry_over_usages",
|
|
8445
|
+
noBillingChanges: "no_billing_changes"
|
|
8431
8446
|
});
|
|
8432
8447
|
})
|
|
8433
8448
|
);
|
|
@@ -11648,6 +11663,7 @@ var Billing = class extends ClientSDK {
|
|
|
11648
11663
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11649
11664
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11650
11665
|
* @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)
|
|
11666
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11651
11667
|
*
|
|
11652
11668
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11653
11669
|
*/
|
|
@@ -11733,6 +11749,7 @@ var Billing = class extends ClientSDK {
|
|
|
11733
11749
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11734
11750
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11735
11751
|
* @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)
|
|
11752
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11736
11753
|
*
|
|
11737
11754
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11738
11755
|
*/
|
|
@@ -14510,7 +14527,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14510
14527
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14511
14528
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14512
14529
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14530
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14531
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14514
14532
|
});
|
|
14515
14533
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14516
14534
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14595,7 +14613,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14595
14613
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14596
14614
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14597
14615
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14616
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14617
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14599
14618
|
});
|
|
14600
14619
|
var attachCodeSchema = openEnumSchema;
|
|
14601
14620
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15412,7 +15431,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15412
15431
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15413
15432
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15414
15433
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15415
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15434
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15435
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15416
15436
|
});
|
|
15417
15437
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15418
15438
|
var planSchema = import_v49.z.any();
|
|
@@ -15498,7 +15518,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15498
15518
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15499
15519
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15500
15520
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15501
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15521
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15522
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15502
15523
|
});
|
|
15503
15524
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15504
15525
|
planId: import_v49.z.string(),
|
|
@@ -16327,7 +16348,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16327
16348
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16328
16349
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16329
16350
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16330
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16351
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16352
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16331
16353
|
});
|
|
16332
16354
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16333
16355
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16405,7 +16427,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16405
16427
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16406
16428
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16407
16429
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16408
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16430
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16431
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16409
16432
|
});
|
|
16410
16433
|
|
|
16411
16434
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-2R56EQ4S.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-GLJ7FFOQ.mjs";
|
|
9
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
6
|
+
import "../chunk-INMDP2EE.mjs";
|
|
7
|
+
import "../chunk-6Y2MEAWW.mjs";
|
|
12
8
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
9
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-MBRTABXT.mjs";
|
|
11
|
+
import "../chunk-2NIBKIZV.mjs";
|
|
12
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
15
13
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
17
14
|
import "../chunk-Z6QP3YEA.mjs";
|
|
15
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
16
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|