autumn-js 1.2.5 → 1.2.6
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.d.mts +1 -1
- package/dist/backend/adapters/express.d.ts +1 -1
- package/dist/backend/adapters/express.js +63 -13
- package/dist/backend/adapters/express.mjs +8 -8
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +63 -13
- package/dist/backend/adapters/fetch.mjs +8 -8
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +63 -13
- package/dist/backend/adapters/hono.mjs +8 -8
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +63 -13
- package/dist/backend/adapters/index.mjs +11 -11
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +63 -13
- package/dist/backend/adapters/next.mjs +8 -8
- package/dist/backend/{authTypes-Bdpu8A6G.d.mts → authTypes-BapwVzwz.d.mts} +7 -5
- package/dist/backend/{authTypes-Bdpu8A6G.d.ts → authTypes-BapwVzwz.d.ts} +7 -5
- package/dist/backend/{chunk-ROGSCIQY.mjs → chunk-47D7XI4Q.mjs} +1 -1
- package/dist/backend/{chunk-J2P4XIDE.mjs → chunk-J5JZJFCV.mjs} +1 -1
- package/dist/backend/{chunk-4VEVV4YT.mjs → chunk-R6OE5JPE.mjs} +1 -1
- package/dist/backend/{chunk-DYVMFOAC.mjs → chunk-SX6BNSGF.mjs} +5 -5
- package/dist/backend/{chunk-CZ3GSCGC.mjs → chunk-VR556ENV.mjs} +7 -7
- package/dist/backend/{chunk-VDUNE74N.mjs → chunk-WVNQLDKM.mjs} +1 -1
- package/dist/backend/{chunk-3RN6TO3T.mjs → chunk-XZB2ADYZ.mjs} +10 -0
- package/dist/backend/{chunk-LKQP4KZQ.mjs → chunk-YZFOEF7A.mjs} +53 -13
- package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
- package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
- package/dist/backend/core/handlers/coreHandler.js +63 -13
- package/dist/backend/core/handlers/coreHandler.mjs +6 -6
- package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
- package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
- package/dist/backend/core/handlers/executeRoute.mjs +3 -3
- package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +63 -13
- package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
- package/dist/backend/core/handlers/index.d.mts +2 -2
- package/dist/backend/core/handlers/index.d.ts +2 -2
- package/dist/backend/core/handlers/index.js +63 -13
- package/dist/backend/core/handlers/index.mjs +10 -10
- package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
- package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
- package/dist/backend/core/index.d.mts +2 -2
- package/dist/backend/core/index.d.ts +2 -2
- package/dist/backend/core/index.js +63 -13
- package/dist/backend/core/index.mjs +7 -7
- package/dist/backend/core/routes/index.d.mts +2 -2
- package/dist/backend/core/routes/index.d.ts +2 -2
- package/dist/backend/core/routes/index.js +10 -0
- package/dist/backend/core/routes/index.mjs +1 -1
- package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
- package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
- package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
- package/dist/backend/core/routes/routeConfigs.js +10 -0
- package/dist/backend/core/routes/routeConfigs.mjs +1 -1
- package/dist/backend/core/types/authTypes.d.mts +1 -1
- package/dist/backend/core/types/authTypes.d.ts +1 -1
- package/dist/backend/core/types/handlerTypes.d.mts +2 -2
- package/dist/backend/core/types/handlerTypes.d.ts +2 -2
- package/dist/backend/core/types/index.d.mts +2 -2
- package/dist/backend/core/types/index.d.ts +2 -2
- package/dist/backend/core/types/routeTypes.d.mts +2 -2
- package/dist/backend/core/types/routeTypes.d.ts +2 -2
- package/dist/backend/index.d.mts +4 -4
- package/dist/backend/index.d.ts +4 -4
- package/dist/backend/index.js +63 -13
- package/dist/backend/index.mjs +7 -7
- package/dist/backend/{routeTypes-CmW3_-dX.d.ts → routeTypes-C3VYecpo.d.ts} +109 -61
- package/dist/backend/{routeTypes-ODZ6pr_U.d.mts → routeTypes-Oppq3hl5.d.mts} +109 -61
- package/dist/better-auth/{chunk-UCMJFTKD.mjs → chunk-2QZB2VRG.mjs} +1 -1
- package/dist/better-auth/{chunk-CG3LL2TQ.mjs → chunk-A7AR77FT.mjs} +10 -0
- package/dist/better-auth/{chunk-3GJ25EX7.mjs → chunk-Y2MTOCQZ.mjs} +54 -14
- package/dist/better-auth/index.js +63 -13
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +7 -5
- package/dist/better-auth/types.d.ts +7 -5
- package/dist/better-auth/utils/createAutumnEndpoint.js +10 -0
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +63 -13
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +63 -13
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +2 -2
- package/dist/react/AutumnContext.d.ts +2 -2
- package/dist/react/client/AutumnClient.d.mts +2 -2
- package/dist/react/client/AutumnClient.d.ts +2 -2
- package/dist/react/client/IAutumnClient.d.mts +2 -2
- package/dist/react/client/IAutumnClient.d.ts +2 -2
- package/dist/react/client/index.d.mts +2 -2
- package/dist/react/client/index.d.ts +2 -2
- package/dist/react/{customer-DDRi84Zq.d.mts → customer-C6YdbkAE.d.mts} +7 -5
- package/dist/react/{customer-BPHnUS4N.d.ts → customer-DTJHvcHL.d.ts} +7 -5
- package/dist/react/hooks/index.d.mts +2 -2
- package/dist/react/hooks/index.d.ts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
- package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
- package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
- package/dist/react/hooks/useCustomer.d.mts +2 -2
- package/dist/react/hooks/useCustomer.d.ts +2 -2
- package/dist/react/hooks/useEntity.d.mts +1 -1
- package/dist/react/hooks/useEntity.d.ts +1 -1
- package/dist/react/hooks/useListEvents.d.mts +1 -1
- package/dist/react/hooks/useListEvents.d.ts +1 -1
- package/dist/react/hooks/useListPlans.d.mts +1 -1
- package/dist/react/hooks/useListPlans.d.ts +1 -1
- package/dist/react/hooks/useReferrals.d.mts +1 -1
- package/dist/react/hooks/useReferrals.d.ts +1 -1
- package/dist/react/index.d.mts +2 -2
- package/dist/react/index.d.ts +2 -2
- package/dist/react/{params-BUYYymIy.d.mts → params-Bm9J41QJ.d.mts} +48 -20
- package/dist/react/{params-Dpki_MJA.d.ts → params-M5KLTAn1.d.ts} +48 -20
- package/dist/sdk/index.d.mts +120 -65
- package/dist/sdk/index.d.ts +120 -65
- package/dist/sdk/index.js +53 -13
- package/dist/sdk/index.mjs +53 -13
- package/package.json +1 -1
- package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, RequestHandler } from 'express';
|
|
2
|
-
import { A as AuthResult } from '../authTypes-
|
|
2
|
+
import { A as AuthResult } from '../authTypes-BapwVzwz.mjs';
|
|
3
3
|
|
|
4
4
|
type ExpressAutumnHandlerOptions = {
|
|
5
5
|
/** Function to identify the customer from the request */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Request, RequestHandler } from 'express';
|
|
2
|
-
import { A as AuthResult } from '../authTypes-
|
|
2
|
+
import { A as AuthResult } from '../authTypes-BapwVzwz.js';
|
|
3
3
|
|
|
4
4
|
type ExpressAutumnHandlerOptions = {
|
|
5
5
|
/** Function to identify the customer from the request */
|
|
@@ -1695,6 +1695,7 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1695
1695
|
),
|
|
1696
1696
|
successUrl: z10.optional(z10.string()),
|
|
1697
1697
|
newBillingSubscription: z10.optional(z10.boolean()),
|
|
1698
|
+
billingCycleAnchor: z10.optional(z10.literal("now")),
|
|
1698
1699
|
planSchedule: z10.optional(AttachPlanSchedule$outboundSchema),
|
|
1699
1700
|
checkoutSessionParams: z10.optional(z10.record(z10.string(), z10.any())),
|
|
1700
1701
|
customLineItems: z10.optional(
|
|
@@ -1721,6 +1722,7 @@ var AttachParams$outboundSchema = z10.pipe(
|
|
|
1721
1722
|
subscriptionId: "subscription_id",
|
|
1722
1723
|
successUrl: "success_url",
|
|
1723
1724
|
newBillingSubscription: "new_billing_subscription",
|
|
1725
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
1724
1726
|
planSchedule: "plan_schedule",
|
|
1725
1727
|
checkoutSessionParams: "checkout_session_params",
|
|
1726
1728
|
customLineItems: "custom_line_items",
|
|
@@ -2198,6 +2200,7 @@ var UpdateSubscriptionParams$outboundSchema = z12.pipe(
|
|
|
2198
2200
|
),
|
|
2199
2201
|
subscriptionId: z12.optional(z12.string()),
|
|
2200
2202
|
cancelAction: z12.optional(BillingUpdateCancelAction$outboundSchema),
|
|
2203
|
+
billingCycleAnchor: z12.optional(z12.literal("now")),
|
|
2201
2204
|
noBillingChanges: z12.optional(z12.boolean()),
|
|
2202
2205
|
recalculateBalances: z12.optional(
|
|
2203
2206
|
z12.lazy(() => BillingUpdateRecalculateBalances$outboundSchema)
|
|
@@ -2214,6 +2217,7 @@ var UpdateSubscriptionParams$outboundSchema = z12.pipe(
|
|
|
2214
2217
|
redirectMode: "redirect_mode",
|
|
2215
2218
|
subscriptionId: "subscription_id",
|
|
2216
2219
|
cancelAction: "cancel_action",
|
|
2220
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
2217
2221
|
noBillingChanges: "no_billing_changes",
|
|
2218
2222
|
recalculateBalances: "recalculate_balances"
|
|
2219
2223
|
});
|
|
@@ -2674,7 +2678,9 @@ var CustomerDataInterval = {
|
|
|
2674
2678
|
};
|
|
2675
2679
|
var CustomerDataThresholdType = {
|
|
2676
2680
|
Usage: "usage",
|
|
2677
|
-
UsagePercentage: "usage_percentage"
|
|
2681
|
+
UsagePercentage: "usage_percentage",
|
|
2682
|
+
Remaining: "remaining",
|
|
2683
|
+
RemainingPercentage: "remaining_percentage"
|
|
2678
2684
|
};
|
|
2679
2685
|
var CustomerDataInterval$outboundSchema = z15.enum(CustomerDataInterval);
|
|
2680
2686
|
var CustomerDataPurchaseLimit$outboundSchema = z15.pipe(
|
|
@@ -3076,7 +3082,9 @@ var Plan$inboundSchema = z16.pipe(
|
|
|
3076
3082
|
// ../sdk/src/models/create-entity-op.ts
|
|
3077
3083
|
var CreateEntityThresholdTypeRequestBody = {
|
|
3078
3084
|
Usage: "usage",
|
|
3079
|
-
UsagePercentage: "usage_percentage"
|
|
3085
|
+
UsagePercentage: "usage_percentage",
|
|
3086
|
+
Remaining: "remaining",
|
|
3087
|
+
RemainingPercentage: "remaining_percentage"
|
|
3080
3088
|
};
|
|
3081
3089
|
var CreateEntityEnv = {
|
|
3082
3090
|
Sandbox: "sandbox",
|
|
@@ -3093,7 +3101,9 @@ var CreateEntityType = {
|
|
|
3093
3101
|
};
|
|
3094
3102
|
var CreateEntityThresholdTypeResponse = {
|
|
3095
3103
|
Usage: "usage",
|
|
3096
|
-
UsagePercentage: "usage_percentage"
|
|
3104
|
+
UsagePercentage: "usage_percentage",
|
|
3105
|
+
Remaining: "remaining",
|
|
3106
|
+
RemainingPercentage: "remaining_percentage"
|
|
3097
3107
|
};
|
|
3098
3108
|
var CreateEntitySpendLimitRequest$outboundSchema = z17.pipe(
|
|
3099
3109
|
z17.object({
|
|
@@ -4010,7 +4020,9 @@ var CustomerInterval = {
|
|
|
4010
4020
|
};
|
|
4011
4021
|
var CustomerThresholdType = {
|
|
4012
4022
|
Usage: "usage",
|
|
4013
|
-
UsagePercentage: "usage_percentage"
|
|
4023
|
+
UsagePercentage: "usage_percentage",
|
|
4024
|
+
Remaining: "remaining",
|
|
4025
|
+
RemainingPercentage: "remaining_percentage"
|
|
4014
4026
|
};
|
|
4015
4027
|
var CustomerStatus = {
|
|
4016
4028
|
Active: "active",
|
|
@@ -4522,7 +4534,9 @@ var GetEntityType = {
|
|
|
4522
4534
|
};
|
|
4523
4535
|
var GetEntityThresholdType = {
|
|
4524
4536
|
Usage: "usage",
|
|
4525
|
-
UsagePercentage: "usage_percentage"
|
|
4537
|
+
UsagePercentage: "usage_percentage",
|
|
4538
|
+
Remaining: "remaining",
|
|
4539
|
+
RemainingPercentage: "remaining_percentage"
|
|
4526
4540
|
};
|
|
4527
4541
|
var GetEntityParams$outboundSchema = z28.pipe(
|
|
4528
4542
|
z28.object({
|
|
@@ -4812,7 +4826,9 @@ var GetOrCreateCustomerInterval = {
|
|
|
4812
4826
|
};
|
|
4813
4827
|
var GetOrCreateCustomerThresholdType = {
|
|
4814
4828
|
Usage: "usage",
|
|
4815
|
-
UsagePercentage: "usage_percentage"
|
|
4829
|
+
UsagePercentage: "usage_percentage",
|
|
4830
|
+
Remaining: "remaining",
|
|
4831
|
+
RemainingPercentage: "remaining_percentage"
|
|
4816
4832
|
};
|
|
4817
4833
|
var GetOrCreateCustomerInterval$outboundSchema = z30.enum(GetOrCreateCustomerInterval);
|
|
4818
4834
|
var GetOrCreateCustomerPurchaseLimit$outboundSchema = z30.pipe(
|
|
@@ -5275,7 +5291,9 @@ var ListCustomersInterval = {
|
|
|
5275
5291
|
};
|
|
5276
5292
|
var ListCustomersThresholdType = {
|
|
5277
5293
|
Usage: "usage",
|
|
5278
|
-
UsagePercentage: "usage_percentage"
|
|
5294
|
+
UsagePercentage: "usage_percentage",
|
|
5295
|
+
Remaining: "remaining",
|
|
5296
|
+
RemainingPercentage: "remaining_percentage"
|
|
5279
5297
|
};
|
|
5280
5298
|
var ListCustomersStatus = {
|
|
5281
5299
|
Active: "active",
|
|
@@ -6016,7 +6034,9 @@ var MultiAttachRedirectMode = {
|
|
|
6016
6034
|
};
|
|
6017
6035
|
var MultiAttachThresholdType = {
|
|
6018
6036
|
Usage: "usage",
|
|
6019
|
-
UsagePercentage: "usage_percentage"
|
|
6037
|
+
UsagePercentage: "usage_percentage",
|
|
6038
|
+
Remaining: "remaining",
|
|
6039
|
+
RemainingPercentage: "remaining_percentage"
|
|
6020
6040
|
};
|
|
6021
6041
|
var MultiAttachCode = {
|
|
6022
6042
|
ThreedsRequired: "3ds_required",
|
|
@@ -6697,6 +6717,7 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6697
6717
|
),
|
|
6698
6718
|
successUrl: z38.optional(z38.string()),
|
|
6699
6719
|
newBillingSubscription: z38.optional(z38.boolean()),
|
|
6720
|
+
billingCycleAnchor: z38.optional(z38.literal("now")),
|
|
6700
6721
|
planSchedule: z38.optional(PreviewAttachPlanSchedule$outboundSchema),
|
|
6701
6722
|
checkoutSessionParams: z38.optional(z38.record(z38.string(), z38.any())),
|
|
6702
6723
|
customLineItems: z38.optional(
|
|
@@ -6723,6 +6744,7 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6723
6744
|
subscriptionId: "subscription_id",
|
|
6724
6745
|
successUrl: "success_url",
|
|
6725
6746
|
newBillingSubscription: "new_billing_subscription",
|
|
6747
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
6726
6748
|
planSchedule: "plan_schedule",
|
|
6727
6749
|
checkoutSessionParams: "checkout_session_params",
|
|
6728
6750
|
customLineItems: "custom_line_items",
|
|
@@ -7019,7 +7041,9 @@ var PreviewMultiAttachRedirectMode = {
|
|
|
7019
7041
|
};
|
|
7020
7042
|
var PreviewMultiAttachThresholdType = {
|
|
7021
7043
|
Usage: "usage",
|
|
7022
|
-
UsagePercentage: "usage_percentage"
|
|
7044
|
+
UsagePercentage: "usage_percentage",
|
|
7045
|
+
Remaining: "remaining",
|
|
7046
|
+
RemainingPercentage: "remaining_percentage"
|
|
7023
7047
|
};
|
|
7024
7048
|
var PreviewMultiAttachCheckoutType = {
|
|
7025
7049
|
StripeCheckout: "stripe_checkout",
|
|
@@ -7837,6 +7861,7 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7837
7861
|
),
|
|
7838
7862
|
subscriptionId: z40.optional(z40.string()),
|
|
7839
7863
|
cancelAction: z40.optional(PreviewUpdateCancelAction$outboundSchema),
|
|
7864
|
+
billingCycleAnchor: z40.optional(z40.literal("now")),
|
|
7840
7865
|
noBillingChanges: z40.optional(z40.boolean()),
|
|
7841
7866
|
recalculateBalances: z40.optional(
|
|
7842
7867
|
z40.lazy(() => PreviewUpdateRecalculateBalances$outboundSchema)
|
|
@@ -7853,6 +7878,7 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7853
7878
|
redirectMode: "redirect_mode",
|
|
7854
7879
|
subscriptionId: "subscription_id",
|
|
7855
7880
|
cancelAction: "cancel_action",
|
|
7881
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
7856
7882
|
noBillingChanges: "no_billing_changes",
|
|
7857
7883
|
recalculateBalances: "recalculate_balances"
|
|
7858
7884
|
});
|
|
@@ -8374,6 +8400,7 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8374
8400
|
z42.array(z42.lazy(() => SetupPaymentAttachDiscount$outboundSchema))
|
|
8375
8401
|
),
|
|
8376
8402
|
successUrl: z42.optional(z42.string()),
|
|
8403
|
+
billingCycleAnchor: z42.optional(z42.literal("now")),
|
|
8377
8404
|
checkoutSessionParams: z42.optional(z42.record(z42.string(), z42.any())),
|
|
8378
8405
|
customLineItems: z42.optional(
|
|
8379
8406
|
z42.array(z42.lazy(() => SetupPaymentCustomLineItem$outboundSchema))
|
|
@@ -8396,6 +8423,7 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8396
8423
|
prorationBehavior: "proration_behavior",
|
|
8397
8424
|
subscriptionId: "subscription_id",
|
|
8398
8425
|
successUrl: "success_url",
|
|
8426
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
8399
8427
|
checkoutSessionParams: "checkout_session_params",
|
|
8400
8428
|
customLineItems: "custom_line_items",
|
|
8401
8429
|
processorSubscriptionId: "processor_subscription_id",
|
|
@@ -8523,7 +8551,9 @@ var UpdateCustomerIntervalRequest = {
|
|
|
8523
8551
|
};
|
|
8524
8552
|
var UpdateCustomerThresholdTypeRequestBody = {
|
|
8525
8553
|
Usage: "usage",
|
|
8526
|
-
UsagePercentage: "usage_percentage"
|
|
8554
|
+
UsagePercentage: "usage_percentage",
|
|
8555
|
+
Remaining: "remaining",
|
|
8556
|
+
RemainingPercentage: "remaining_percentage"
|
|
8527
8557
|
};
|
|
8528
8558
|
var UpdateCustomerEnv = {
|
|
8529
8559
|
Sandbox: "sandbox",
|
|
@@ -8537,7 +8567,9 @@ var UpdateCustomerIntervalResponse = {
|
|
|
8537
8567
|
};
|
|
8538
8568
|
var UpdateCustomerThresholdTypeResponse = {
|
|
8539
8569
|
Usage: "usage",
|
|
8540
|
-
UsagePercentage: "usage_percentage"
|
|
8570
|
+
UsagePercentage: "usage_percentage",
|
|
8571
|
+
Remaining: "remaining",
|
|
8572
|
+
RemainingPercentage: "remaining_percentage"
|
|
8541
8573
|
};
|
|
8542
8574
|
var UpdateCustomerStatus = {
|
|
8543
8575
|
Active: "active",
|
|
@@ -8907,7 +8939,9 @@ var UpdateCustomerResponse$inboundSchema = z45.pipe(
|
|
|
8907
8939
|
var z46 = __toESM(require("zod/v4-mini"), 1);
|
|
8908
8940
|
var UpdateEntityThresholdTypeRequestBody = {
|
|
8909
8941
|
Usage: "usage",
|
|
8910
|
-
UsagePercentage: "usage_percentage"
|
|
8942
|
+
UsagePercentage: "usage_percentage",
|
|
8943
|
+
Remaining: "remaining",
|
|
8944
|
+
RemainingPercentage: "remaining_percentage"
|
|
8911
8945
|
};
|
|
8912
8946
|
var UpdateEntityEnv = {
|
|
8913
8947
|
Sandbox: "sandbox",
|
|
@@ -8924,7 +8958,9 @@ var UpdateEntityType = {
|
|
|
8924
8958
|
};
|
|
8925
8959
|
var UpdateEntityThresholdTypeResponse = {
|
|
8926
8960
|
Usage: "usage",
|
|
8927
|
-
UsagePercentage: "usage_percentage"
|
|
8961
|
+
UsagePercentage: "usage_percentage",
|
|
8962
|
+
Remaining: "remaining",
|
|
8963
|
+
RemainingPercentage: "remaining_percentage"
|
|
8928
8964
|
};
|
|
8929
8965
|
var UpdateEntitySpendLimitRequest$outboundSchema = z46.pipe(
|
|
8930
8966
|
z46.object({
|
|
@@ -11605,6 +11641,7 @@ var Billing = class extends ClientSDK {
|
|
|
11605
11641
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11606
11642
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
11607
11643
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
11644
|
+
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now'. (optional)
|
|
11608
11645
|
* @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
|
|
11609
11646
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11610
11647
|
* @param customLineItems - Custom line items that override the auto-generated proration invoice. Only valid for immediate plan changes (eg. upgrades or one off plans). (optional)
|
|
@@ -11689,6 +11726,7 @@ var Billing = class extends ClientSDK {
|
|
|
11689
11726
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11690
11727
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
11691
11728
|
* @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
|
|
11729
|
+
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now'. (optional)
|
|
11692
11730
|
* @param planSchedule - When the plan change should take effect. 'immediate' applies now, 'end_of_cycle' schedules for the end of the current billing cycle. By default, upgrades are immediate and downgrades are scheduled. (optional)
|
|
11693
11731
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11694
11732
|
* @param customLineItems - Custom line items that override the auto-generated proration invoice. Only valid for immediate plan changes (eg. upgrades or one off plans). (optional)
|
|
@@ -11771,6 +11809,7 @@ var Billing = class extends ClientSDK {
|
|
|
11771
11809
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11772
11810
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11773
11811
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11812
|
+
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11774
11813
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
11775
11814
|
* @param recalculateBalances - Controls whether balances should be recalculated during the subscription update. (optional)
|
|
11776
11815
|
*
|
|
@@ -11805,6 +11844,7 @@ var Billing = class extends ClientSDK {
|
|
|
11805
11844
|
* @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
|
|
11806
11845
|
* @param subscriptionId - A unique ID to identify this subscription. Can be used to target specific subscriptions in update operations when a customer has multiple products with the same plan. (optional)
|
|
11807
11846
|
* @param cancelAction - Action to perform for cancellation. 'cancel_immediately' cancels now with prorated refund, 'cancel_end_of_cycle' cancels at period end, 'uncancel' reverses a pending cancellation. (optional)
|
|
11847
|
+
* @param billingCycleAnchor - Reset the billing cycle anchor immediately with 'now' (optional)
|
|
11808
11848
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
11809
11849
|
* @param recalculateBalances - Controls whether balances should be recalculated during the subscription update. (optional)
|
|
11810
11850
|
*
|
|
@@ -14464,6 +14504,7 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14464
14504
|
discounts: import_v42.z.union([import_v42.z.array(attachAttachDiscountOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
14465
14505
|
success_url: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14466
14506
|
new_billing_subscription: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
14507
|
+
billing_cycle_anchor: import_v42.z.union([import_v42.z.literal("now"), import_v42.z.undefined()]).optional(),
|
|
14467
14508
|
plan_schedule: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14468
14509
|
checkout_session_params: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
14469
14510
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
@@ -14548,6 +14589,7 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14548
14589
|
discounts: import_v42.z.union([import_v42.z.array(attachAttachDiscountSchema), import_v42.z.undefined()]).optional(),
|
|
14549
14590
|
successUrl: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14550
14591
|
newBillingSubscription: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
|
|
14592
|
+
billingCycleAnchor: import_v42.z.union([import_v42.z.literal("now"), import_v42.z.undefined()]).optional(),
|
|
14551
14593
|
planSchedule: import_v42.z.union([attachPlanScheduleSchema, import_v42.z.undefined()]).optional(),
|
|
14552
14594
|
checkoutSessionParams: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
14553
14595
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
@@ -15365,6 +15407,7 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15365
15407
|
discounts: import_v49.z.union([import_v49.z.array(previewAttachAttachDiscountOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
15366
15408
|
success_url: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15367
15409
|
new_billing_subscription: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
15410
|
+
billing_cycle_anchor: import_v49.z.union([import_v49.z.literal("now"), import_v49.z.undefined()]).optional(),
|
|
15368
15411
|
plan_schedule: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15369
15412
|
checkout_session_params: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.any()), import_v49.z.undefined()]).optional(),
|
|
15370
15413
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
@@ -15450,6 +15493,7 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15450
15493
|
discounts: import_v49.z.union([import_v49.z.array(previewAttachAttachDiscountSchema), import_v49.z.undefined()]).optional(),
|
|
15451
15494
|
successUrl: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15452
15495
|
newBillingSubscription: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
|
|
15496
|
+
billingCycleAnchor: import_v49.z.union([import_v49.z.literal("now"), import_v49.z.undefined()]).optional(),
|
|
15453
15497
|
planSchedule: import_v49.z.union([previewAttachPlanScheduleSchema, import_v49.z.undefined()]).optional(),
|
|
15454
15498
|
checkoutSessionParams: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.any()), import_v49.z.undefined()]).optional(),
|
|
15455
15499
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
@@ -16024,6 +16068,7 @@ var previewUpdateParamsOutboundSchema = import_v411.z.object({
|
|
|
16024
16068
|
redirect_mode: import_v411.z.string(),
|
|
16025
16069
|
subscription_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16026
16070
|
cancel_action: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16071
|
+
billing_cycle_anchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16027
16072
|
no_billing_changes: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16028
16073
|
recalculate_balances: import_v411.z.union([previewUpdateRecalculateBalancesOutboundSchema, import_v411.z.undefined()]).optional()
|
|
16029
16074
|
});
|
|
@@ -16102,6 +16147,7 @@ var previewUpdateParamsSchema = import_v411.z.object({
|
|
|
16102
16147
|
redirectMode: import_v411.z.union([previewUpdateRedirectModeSchema, import_v411.z.undefined()]).optional(),
|
|
16103
16148
|
subscriptionId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16104
16149
|
cancelAction: import_v411.z.union([previewUpdateCancelActionSchema, import_v411.z.undefined()]).optional(),
|
|
16150
|
+
billingCycleAnchor: import_v411.z.union([import_v411.z.literal("now"), import_v411.z.undefined()]).optional(),
|
|
16105
16151
|
noBillingChanges: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16106
16152
|
recalculateBalances: import_v411.z.union([previewUpdateRecalculateBalancesSchema, import_v411.z.undefined()]).optional()
|
|
16107
16153
|
});
|
|
@@ -16277,6 +16323,7 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16277
16323
|
subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16278
16324
|
discounts: import_v413.z.union([import_v413.z.array(setupPaymentAttachDiscountOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
16279
16325
|
success_url: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16326
|
+
billing_cycle_anchor: import_v413.z.union([import_v413.z.literal("now"), import_v413.z.undefined()]).optional(),
|
|
16280
16327
|
checkout_session_params: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.any()), import_v413.z.undefined()]).optional(),
|
|
16281
16328
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
16282
16329
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -16354,6 +16401,7 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16354
16401
|
subscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16355
16402
|
discounts: import_v413.z.union([import_v413.z.array(setupPaymentAttachDiscountSchema), import_v413.z.undefined()]).optional(),
|
|
16356
16403
|
successUrl: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16404
|
+
billingCycleAnchor: import_v413.z.union([import_v413.z.literal("now"), import_v413.z.undefined()]).optional(),
|
|
16357
16405
|
checkoutSessionParams: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.any()), import_v413.z.undefined()]).optional(),
|
|
16358
16406
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
16359
16407
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -16472,6 +16520,7 @@ var updateSubscriptionParamsOutboundSchema = import_v414.z.object({
|
|
|
16472
16520
|
redirect_mode: import_v414.z.string(),
|
|
16473
16521
|
subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16474
16522
|
cancel_action: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16523
|
+
billing_cycle_anchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16475
16524
|
no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16476
16525
|
recalculate_balances: import_v414.z.union([billingUpdateRecalculateBalancesOutboundSchema, import_v414.z.undefined()]).optional()
|
|
16477
16526
|
});
|
|
@@ -16549,6 +16598,7 @@ var updateSubscriptionParamsSchema = import_v414.z.object({
|
|
|
16549
16598
|
redirectMode: import_v414.z.union([billingUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
|
|
16550
16599
|
subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16551
16600
|
cancelAction: import_v414.z.union([billingUpdateCancelActionSchema, import_v414.z.undefined()]).optional(),
|
|
16601
|
+
billingCycleAnchor: import_v414.z.union([import_v414.z.literal("now"), import_v414.z.undefined()]).optional(),
|
|
16552
16602
|
noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16553
16603
|
recalculateBalances: import_v414.z.union([billingUpdateRecalculateBalancesSchema, import_v414.z.undefined()]).optional()
|
|
16554
16604
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-R6OE5JPE.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-SX6BNSGF.mjs";
|
|
7
|
+
import "../chunk-VR556ENV.mjs";
|
|
8
|
+
import "../chunk-YZFOEF7A.mjs";
|
|
9
|
+
import "../chunk-55C2WWXQ.mjs";
|
|
10
|
+
import "../chunk-TBQ27LIK.mjs";
|
|
11
|
+
import "../chunk-J44WR3QZ.mjs";
|
|
8
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
9
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-3RN6TO3T.mjs";
|
|
12
|
-
import "../chunk-S5HPMJ4U.mjs";
|
|
14
|
+
import "../chunk-XZB2ADYZ.mjs";
|
|
13
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
14
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
15
17
|
import "../chunk-Z6QP3YEA.mjs";
|
|
16
|
-
import "../chunk-TBQ27LIK.mjs";
|
|
17
|
-
import "../chunk-J44WR3QZ.mjs";
|
|
18
18
|
import "../chunk-N7NFYY54.mjs";
|
|
19
19
|
export {
|
|
20
20
|
autumnHandler
|