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
|
@@ -81,8 +81,8 @@ var SDK_METADATA = {
|
|
|
81
81
|
language: "typescript",
|
|
82
82
|
openapiDocVersion: "2.2.0",
|
|
83
83
|
sdkVersion: "0.10.17",
|
|
84
|
-
genVersion: "2.879.
|
|
85
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
84
|
+
genVersion: "2.879.13",
|
|
85
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.13 2.2.0 @useautumn/sdk"
|
|
86
86
|
};
|
|
87
87
|
|
|
88
88
|
// ../sdk/src/lib/http.ts
|
|
@@ -1711,7 +1711,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1711
1711
|
carryOverUsages: z10.optional(
|
|
1712
1712
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1713
1713
|
),
|
|
1714
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1714
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1715
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1715
1716
|
}),
|
|
1716
1717
|
z10.transform((v) => {
|
|
1717
1718
|
return remap(v, {
|
|
@@ -1731,7 +1732,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1731
1732
|
customLineItems: "custom_line_items",
|
|
1732
1733
|
processorSubscriptionId: "processor_subscription_id",
|
|
1733
1734
|
carryOverBalances: "carry_over_balances",
|
|
1734
|
-
carryOverUsages: "carry_over_usages"
|
|
1735
|
+
carryOverUsages: "carry_over_usages",
|
|
1736
|
+
noBillingChanges: "no_billing_changes"
|
|
1735
1737
|
});
|
|
1736
1738
|
})
|
|
1737
1739
|
);
|
|
@@ -5282,6 +5284,11 @@ var SubscriptionStatus = {
|
|
|
5282
5284
|
Active: "active",
|
|
5283
5285
|
Scheduled: "scheduled"
|
|
5284
5286
|
};
|
|
5287
|
+
var Processor = {
|
|
5288
|
+
Stripe: "stripe",
|
|
5289
|
+
Revenuecat: "revenuecat",
|
|
5290
|
+
Vercel: "vercel"
|
|
5291
|
+
};
|
|
5285
5292
|
var ListCustomersEnv = {
|
|
5286
5293
|
Sandbox: "sandbox",
|
|
5287
5294
|
Live: "live"
|
|
@@ -5312,13 +5319,17 @@ var ListCustomersPlan$outboundSchema = z32.object({
|
|
|
5312
5319
|
versions: z32.optional(z32.array(z32.number()))
|
|
5313
5320
|
});
|
|
5314
5321
|
var SubscriptionStatus$outboundSchema = z32.enum(SubscriptionStatus);
|
|
5322
|
+
var Processor$outboundSchema = z32.enum(
|
|
5323
|
+
Processor
|
|
5324
|
+
);
|
|
5315
5325
|
var ListCustomersParams$outboundSchema = z32.pipe(
|
|
5316
5326
|
z32.object({
|
|
5317
5327
|
offset: z32._default(z32.int(), 0),
|
|
5318
5328
|
limit: z32._default(z32.int(), 10),
|
|
5319
5329
|
plans: z32.optional(z32.array(z32.lazy(() => ListCustomersPlan$outboundSchema))),
|
|
5320
5330
|
subscriptionStatus: z32.optional(SubscriptionStatus$outboundSchema),
|
|
5321
|
-
search: z32.optional(z32.string())
|
|
5331
|
+
search: z32.optional(z32.string()),
|
|
5332
|
+
processors: z32.optional(z32.array(Processor$outboundSchema))
|
|
5322
5333
|
}),
|
|
5323
5334
|
z32.transform((v) => {
|
|
5324
5335
|
return remap(v, {
|
|
@@ -6732,7 +6743,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6732
6743
|
carryOverUsages: z38.optional(
|
|
6733
6744
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6734
6745
|
),
|
|
6735
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6746
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6747
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6736
6748
|
}),
|
|
6737
6749
|
z38.transform((v) => {
|
|
6738
6750
|
return remap(v, {
|
|
@@ -6752,7 +6764,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6752
6764
|
customLineItems: "custom_line_items",
|
|
6753
6765
|
processorSubscriptionId: "processor_subscription_id",
|
|
6754
6766
|
carryOverBalances: "carry_over_balances",
|
|
6755
|
-
carryOverUsages: "carry_over_usages"
|
|
6767
|
+
carryOverUsages: "carry_over_usages",
|
|
6768
|
+
noBillingChanges: "no_billing_changes"
|
|
6756
6769
|
});
|
|
6757
6770
|
})
|
|
6758
6771
|
);
|
|
@@ -8414,7 +8427,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8414
8427
|
carryOverUsages: z42.optional(
|
|
8415
8428
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8416
8429
|
),
|
|
8417
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8430
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8431
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8418
8432
|
}),
|
|
8419
8433
|
z42.transform((v) => {
|
|
8420
8434
|
return remap(v, {
|
|
@@ -8430,7 +8444,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8430
8444
|
customLineItems: "custom_line_items",
|
|
8431
8445
|
processorSubscriptionId: "processor_subscription_id",
|
|
8432
8446
|
carryOverBalances: "carry_over_balances",
|
|
8433
|
-
carryOverUsages: "carry_over_usages"
|
|
8447
|
+
carryOverUsages: "carry_over_usages",
|
|
8448
|
+
noBillingChanges: "no_billing_changes"
|
|
8434
8449
|
});
|
|
8435
8450
|
})
|
|
8436
8451
|
);
|
|
@@ -11651,6 +11666,7 @@ var Billing = class extends ClientSDK {
|
|
|
11651
11666
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11652
11667
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11653
11668
|
* @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)
|
|
11669
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11654
11670
|
*
|
|
11655
11671
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11656
11672
|
*/
|
|
@@ -11736,6 +11752,7 @@ var Billing = class extends ClientSDK {
|
|
|
11736
11752
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11737
11753
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11738
11754
|
* @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)
|
|
11755
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11739
11756
|
*
|
|
11740
11757
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11741
11758
|
*/
|
|
@@ -14513,7 +14530,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14513
14530
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14514
14531
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14515
14532
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14516
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14533
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14534
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14517
14535
|
});
|
|
14518
14536
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14519
14537
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14598,7 +14616,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14598
14616
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14599
14617
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14600
14618
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14601
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14619
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14620
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14602
14621
|
});
|
|
14603
14622
|
var attachCodeSchema = openEnumSchema;
|
|
14604
14623
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15415,7 +15434,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15415
15434
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15416
15435
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15417
15436
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15418
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15437
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15438
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15419
15439
|
});
|
|
15420
15440
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15421
15441
|
var planSchema = import_v49.z.any();
|
|
@@ -15501,7 +15521,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15501
15521
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15502
15522
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15503
15523
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15504
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15524
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15525
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15505
15526
|
});
|
|
15506
15527
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15507
15528
|
planId: import_v49.z.string(),
|
|
@@ -16330,7 +16351,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16330
16351
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16331
16352
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16332
16353
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16333
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16354
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16355
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16334
16356
|
});
|
|
16335
16357
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16336
16358
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16408,7 +16430,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16408
16430
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16409
16431
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16410
16432
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16411
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16433
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16434
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16412
16435
|
});
|
|
16413
16436
|
|
|
16414
16437
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BKTIDIRX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-KEFLOTH7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-2R56EQ4S.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-RTMXCNBJ.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-GLJ7FFOQ.mjs";
|
|
18
|
-
import "../chunk-55C2WWXQ.mjs";
|
|
19
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
20
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
15
|
+
import "../chunk-INMDP2EE.mjs";
|
|
16
|
+
import "../chunk-6Y2MEAWW.mjs";
|
|
21
17
|
import "../chunk-TSF4YCUO.mjs";
|
|
22
18
|
import "../chunk-UAR3TMWI.mjs";
|
|
23
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-MBRTABXT.mjs";
|
|
20
|
+
import "../chunk-2NIBKIZV.mjs";
|
|
21
|
+
import "../chunk-S5HPMJ4U.mjs";
|
|
24
22
|
import "../chunk-OTXV5FY7.mjs";
|
|
25
|
-
import "../chunk-VZIMT7AO.mjs";
|
|
26
23
|
import "../chunk-Z6QP3YEA.mjs";
|
|
24
|
+
import "../chunk-VZIMT7AO.mjs";
|
|
25
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
26
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
27
27
|
import "../chunk-N7NFYY54.mjs";
|
|
28
28
|
export {
|
|
29
29
|
autumnHandler as expressAutumnHandler,
|
|
@@ -79,8 +79,8 @@ var SDK_METADATA = {
|
|
|
79
79
|
language: "typescript",
|
|
80
80
|
openapiDocVersion: "2.2.0",
|
|
81
81
|
sdkVersion: "0.10.17",
|
|
82
|
-
genVersion: "2.879.
|
|
83
|
-
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.
|
|
82
|
+
genVersion: "2.879.13",
|
|
83
|
+
userAgent: "speakeasy-sdk/typescript 0.10.17 2.879.13 2.2.0 @useautumn/sdk"
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
// ../sdk/src/lib/http.ts
|
|
@@ -1709,7 +1709,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1709
1709
|
carryOverUsages: z10.optional(
|
|
1710
1710
|
z10.lazy(() => AttachCarryOverUsages$outboundSchema)
|
|
1711
1711
|
),
|
|
1712
|
-
metadata: z10.optional(z10.record(z10.string(), z10.string()))
|
|
1712
|
+
metadata: z10.optional(z10.record(z10.string(), z10.string())),
|
|
1713
|
+
noBillingChanges: z10.optional(z10.boolean())
|
|
1713
1714
|
}),
|
|
1714
1715
|
z10.transform((v) => {
|
|
1715
1716
|
return remap(v, {
|
|
@@ -1729,7 +1730,8 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1729
1730
|
customLineItems: "custom_line_items",
|
|
1730
1731
|
processorSubscriptionId: "processor_subscription_id",
|
|
1731
1732
|
carryOverBalances: "carry_over_balances",
|
|
1732
|
-
carryOverUsages: "carry_over_usages"
|
|
1733
|
+
carryOverUsages: "carry_over_usages",
|
|
1734
|
+
noBillingChanges: "no_billing_changes"
|
|
1733
1735
|
});
|
|
1734
1736
|
})
|
|
1735
1737
|
);
|
|
@@ -5280,6 +5282,11 @@ var SubscriptionStatus = {
|
|
|
5280
5282
|
Active: "active",
|
|
5281
5283
|
Scheduled: "scheduled"
|
|
5282
5284
|
};
|
|
5285
|
+
var Processor = {
|
|
5286
|
+
Stripe: "stripe",
|
|
5287
|
+
Revenuecat: "revenuecat",
|
|
5288
|
+
Vercel: "vercel"
|
|
5289
|
+
};
|
|
5283
5290
|
var ListCustomersEnv = {
|
|
5284
5291
|
Sandbox: "sandbox",
|
|
5285
5292
|
Live: "live"
|
|
@@ -5310,13 +5317,17 @@ var ListCustomersPlan$outboundSchema = z32.object({
|
|
|
5310
5317
|
versions: z32.optional(z32.array(z32.number()))
|
|
5311
5318
|
});
|
|
5312
5319
|
var SubscriptionStatus$outboundSchema = z32.enum(SubscriptionStatus);
|
|
5320
|
+
var Processor$outboundSchema = z32.enum(
|
|
5321
|
+
Processor
|
|
5322
|
+
);
|
|
5313
5323
|
var ListCustomersParams$outboundSchema = z32.pipe(
|
|
5314
5324
|
z32.object({
|
|
5315
5325
|
offset: z32._default(z32.int(), 0),
|
|
5316
5326
|
limit: z32._default(z32.int(), 10),
|
|
5317
5327
|
plans: z32.optional(z32.array(z32.lazy(() => ListCustomersPlan$outboundSchema))),
|
|
5318
5328
|
subscriptionStatus: z32.optional(SubscriptionStatus$outboundSchema),
|
|
5319
|
-
search: z32.optional(z32.string())
|
|
5329
|
+
search: z32.optional(z32.string()),
|
|
5330
|
+
processors: z32.optional(z32.array(Processor$outboundSchema))
|
|
5320
5331
|
}),
|
|
5321
5332
|
z32.transform((v) => {
|
|
5322
5333
|
return remap(v, {
|
|
@@ -6730,7 +6741,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6730
6741
|
carryOverUsages: z38.optional(
|
|
6731
6742
|
z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
|
|
6732
6743
|
),
|
|
6733
|
-
metadata: z38.optional(z38.record(z38.string(), z38.string()))
|
|
6744
|
+
metadata: z38.optional(z38.record(z38.string(), z38.string())),
|
|
6745
|
+
noBillingChanges: z38.optional(z38.boolean())
|
|
6734
6746
|
}),
|
|
6735
6747
|
z38.transform((v) => {
|
|
6736
6748
|
return remap(v, {
|
|
@@ -6750,7 +6762,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6750
6762
|
customLineItems: "custom_line_items",
|
|
6751
6763
|
processorSubscriptionId: "processor_subscription_id",
|
|
6752
6764
|
carryOverBalances: "carry_over_balances",
|
|
6753
|
-
carryOverUsages: "carry_over_usages"
|
|
6765
|
+
carryOverUsages: "carry_over_usages",
|
|
6766
|
+
noBillingChanges: "no_billing_changes"
|
|
6754
6767
|
});
|
|
6755
6768
|
})
|
|
6756
6769
|
);
|
|
@@ -8412,7 +8425,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8412
8425
|
carryOverUsages: z42.optional(
|
|
8413
8426
|
z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
|
|
8414
8427
|
),
|
|
8415
|
-
metadata: z42.optional(z42.record(z42.string(), z42.string()))
|
|
8428
|
+
metadata: z42.optional(z42.record(z42.string(), z42.string())),
|
|
8429
|
+
noBillingChanges: z42.optional(z42.boolean())
|
|
8416
8430
|
}),
|
|
8417
8431
|
z42.transform((v) => {
|
|
8418
8432
|
return remap(v, {
|
|
@@ -8428,7 +8442,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8428
8442
|
customLineItems: "custom_line_items",
|
|
8429
8443
|
processorSubscriptionId: "processor_subscription_id",
|
|
8430
8444
|
carryOverBalances: "carry_over_balances",
|
|
8431
|
-
carryOverUsages: "carry_over_usages"
|
|
8445
|
+
carryOverUsages: "carry_over_usages",
|
|
8446
|
+
noBillingChanges: "no_billing_changes"
|
|
8432
8447
|
});
|
|
8433
8448
|
})
|
|
8434
8449
|
);
|
|
@@ -11649,6 +11664,7 @@ var Billing = class extends ClientSDK {
|
|
|
11649
11664
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11650
11665
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11651
11666
|
* @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)
|
|
11667
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11652
11668
|
*
|
|
11653
11669
|
* @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
|
|
11654
11670
|
*/
|
|
@@ -11734,6 +11750,7 @@ var Billing = class extends ClientSDK {
|
|
|
11734
11750
|
* @param carryOverBalances - Whether to carry over balances from the previous plan. (optional)
|
|
11735
11751
|
* @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
|
|
11736
11752
|
* @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)
|
|
11753
|
+
* @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
|
|
11737
11754
|
*
|
|
11738
11755
|
* @returns A preview response with line items, totals, and effective dates for the proposed changes.
|
|
11739
11756
|
*/
|
|
@@ -14511,7 +14528,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14511
14528
|
processor_subscription_id: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14512
14529
|
carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14513
14530
|
carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
|
|
14514
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14531
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14532
|
+
no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14515
14533
|
});
|
|
14516
14534
|
var closedEnumSchema2 = import_v42.z.any();
|
|
14517
14535
|
var openEnumSchema = import_v42.z.any();
|
|
@@ -14596,7 +14614,8 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14596
14614
|
processorSubscriptionId: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14597
14615
|
carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
|
|
14598
14616
|
carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
|
|
14599
|
-
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional()
|
|
14617
|
+
metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
|
|
14618
|
+
noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
|
|
14600
14619
|
});
|
|
14601
14620
|
var attachCodeSchema = openEnumSchema;
|
|
14602
14621
|
var attachRequiredActionSchema = import_v42.z.object({
|
|
@@ -15413,7 +15432,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15413
15432
|
processor_subscription_id: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15414
15433
|
carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15415
15434
|
carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
|
|
15416
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15435
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15436
|
+
no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15417
15437
|
});
|
|
15418
15438
|
var closedEnumSchema5 = import_v49.z.any();
|
|
15419
15439
|
var planSchema = import_v49.z.any();
|
|
@@ -15499,7 +15519,8 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15499
15519
|
processorSubscriptionId: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15500
15520
|
carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
|
|
15501
15521
|
carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
|
|
15502
|
-
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional()
|
|
15522
|
+
metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
|
|
15523
|
+
noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
|
|
15503
15524
|
});
|
|
15504
15525
|
var previewAttachIncomingSchema = import_v49.z.object({
|
|
15505
15526
|
planId: import_v49.z.string(),
|
|
@@ -16328,7 +16349,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16328
16349
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16329
16350
|
carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16330
16351
|
carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
|
|
16331
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16352
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16353
|
+
no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16332
16354
|
});
|
|
16333
16355
|
var closedEnumSchema8 = import_v413.z.any();
|
|
16334
16356
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -16406,7 +16428,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16406
16428
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16407
16429
|
carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
|
|
16408
16430
|
carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
|
|
16409
|
-
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional()
|
|
16431
|
+
metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
|
|
16432
|
+
noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
|
|
16410
16433
|
});
|
|
16411
16434
|
|
|
16412
16435
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-RTMXCNBJ.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
|
|
@@ -217,7 +217,8 @@ var attachParamsOutboundSchema = z2.object({
|
|
|
217
217
|
processor_subscription_id: z2.union([z2.string(), z2.undefined()]).optional(),
|
|
218
218
|
carry_over_balances: z2.union([attachCarryOverBalancesOutboundSchema, z2.undefined()]).optional(),
|
|
219
219
|
carry_over_usages: z2.union([attachCarryOverUsagesOutboundSchema, z2.undefined()]).optional(),
|
|
220
|
-
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional()
|
|
220
|
+
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional(),
|
|
221
|
+
no_billing_changes: z2.union([z2.boolean(), z2.undefined()]).optional()
|
|
221
222
|
});
|
|
222
223
|
var closedEnumSchema2 = z2.any();
|
|
223
224
|
var openEnumSchema = z2.any();
|
|
@@ -302,7 +303,8 @@ var attachParamsSchema = z2.object({
|
|
|
302
303
|
processorSubscriptionId: z2.union([z2.string(), z2.undefined()]).optional(),
|
|
303
304
|
carryOverBalances: z2.union([attachCarryOverBalancesSchema, z2.undefined()]).optional(),
|
|
304
305
|
carryOverUsages: z2.union([attachCarryOverUsagesSchema, z2.undefined()]).optional(),
|
|
305
|
-
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional()
|
|
306
|
+
metadata: z2.union([z2.record(z2.string(), z2.string()), z2.undefined()]).optional(),
|
|
307
|
+
noBillingChanges: z2.union([z2.boolean(), z2.undefined()]).optional()
|
|
306
308
|
});
|
|
307
309
|
var attachCodeSchema = openEnumSchema;
|
|
308
310
|
var attachRequiredActionSchema = z2.object({
|
|
@@ -1119,7 +1121,8 @@ var previewAttachParamsOutboundSchema = z9.object({
|
|
|
1119
1121
|
processor_subscription_id: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
1120
1122
|
carry_over_balances: z9.union([previewAttachCarryOverBalancesOutboundSchema, z9.undefined()]).optional(),
|
|
1121
1123
|
carry_over_usages: z9.union([previewAttachCarryOverUsagesOutboundSchema, z9.undefined()]).optional(),
|
|
1122
|
-
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional()
|
|
1124
|
+
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional(),
|
|
1125
|
+
no_billing_changes: z9.union([z9.boolean(), z9.undefined()]).optional()
|
|
1123
1126
|
});
|
|
1124
1127
|
var closedEnumSchema5 = z9.any();
|
|
1125
1128
|
var planSchema = z9.any();
|
|
@@ -1205,7 +1208,8 @@ var previewAttachParamsSchema = z9.object({
|
|
|
1205
1208
|
processorSubscriptionId: z9.union([z9.string(), z9.undefined()]).optional(),
|
|
1206
1209
|
carryOverBalances: z9.union([previewAttachCarryOverBalancesSchema, z9.undefined()]).optional(),
|
|
1207
1210
|
carryOverUsages: z9.union([previewAttachCarryOverUsagesSchema, z9.undefined()]).optional(),
|
|
1208
|
-
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional()
|
|
1211
|
+
metadata: z9.union([z9.record(z9.string(), z9.string()), z9.undefined()]).optional(),
|
|
1212
|
+
noBillingChanges: z9.union([z9.boolean(), z9.undefined()]).optional()
|
|
1209
1213
|
});
|
|
1210
1214
|
var previewAttachIncomingSchema = z9.object({
|
|
1211
1215
|
planId: z9.string(),
|
|
@@ -2034,7 +2038,8 @@ var setupPaymentParamsOutboundSchema = z13.object({
|
|
|
2034
2038
|
processor_subscription_id: z13.union([z13.string(), z13.undefined()]).optional(),
|
|
2035
2039
|
carry_over_balances: z13.union([setupPaymentCarryOverBalancesOutboundSchema, z13.undefined()]).optional(),
|
|
2036
2040
|
carry_over_usages: z13.union([setupPaymentCarryOverUsagesOutboundSchema, z13.undefined()]).optional(),
|
|
2037
|
-
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional()
|
|
2041
|
+
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional(),
|
|
2042
|
+
no_billing_changes: z13.union([z13.boolean(), z13.undefined()]).optional()
|
|
2038
2043
|
});
|
|
2039
2044
|
var closedEnumSchema8 = z13.any();
|
|
2040
2045
|
var setupPaymentPriceIntervalSchema = closedEnumSchema8;
|
|
@@ -2112,7 +2117,8 @@ var setupPaymentParamsSchema = z13.object({
|
|
|
2112
2117
|
processorSubscriptionId: z13.union([z13.string(), z13.undefined()]).optional(),
|
|
2113
2118
|
carryOverBalances: z13.union([setupPaymentCarryOverBalancesSchema, z13.undefined()]).optional(),
|
|
2114
2119
|
carryOverUsages: z13.union([setupPaymentCarryOverUsagesSchema, z13.undefined()]).optional(),
|
|
2115
|
-
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional()
|
|
2120
|
+
metadata: z13.union([z13.record(z13.string(), z13.string()), z13.undefined()]).optional(),
|
|
2121
|
+
noBillingChanges: z13.union([z13.boolean(), z13.undefined()]).optional()
|
|
2116
2122
|
});
|
|
2117
2123
|
|
|
2118
2124
|
// src/generated/updateSubscriptionSchemas.ts
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Autumn
|
|
3
|
-
} from "./chunk-GLJ7FFOQ.mjs";
|
|
4
|
-
import {
|
|
5
|
-
executeRoute
|
|
6
|
-
} from "./chunk-55C2WWXQ.mjs";
|
|
7
1
|
import {
|
|
8
2
|
buildRouter
|
|
9
3
|
} from "./chunk-UAR3TMWI.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Autumn
|
|
6
|
+
} from "./chunk-MBRTABXT.mjs";
|
|
10
7
|
import {
|
|
11
8
|
routeConfigs
|
|
12
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2NIBKIZV.mjs";
|
|
10
|
+
import {
|
|
11
|
+
executeRoute
|
|
12
|
+
} from "./chunk-S5HPMJ4U.mjs";
|
|
13
13
|
import {
|
|
14
14
|
secretKeyCheck
|
|
15
15
|
} from "./chunk-VZIMT7AO.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Autumn
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import {
|
|
5
|
-
executeRoute
|
|
6
|
-
} from "./chunk-55C2WWXQ.mjs";
|
|
3
|
+
} from "./chunk-MBRTABXT.mjs";
|
|
7
4
|
import {
|
|
8
5
|
routeConfigs
|
|
9
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2NIBKIZV.mjs";
|
|
7
|
+
import {
|
|
8
|
+
executeRoute
|
|
9
|
+
} from "./chunk-S5HPMJ4U.mjs";
|
|
10
10
|
import {
|
|
11
11
|
secretKeyCheck
|
|
12
12
|
} from "./chunk-VZIMT7AO.mjs";
|