autumn-js 1.2.4 → 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 +64 -13
- package/dist/backend/adapters/express.mjs +5 -5
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +64 -13
- package/dist/backend/adapters/fetch.mjs +5 -5
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +64 -13
- package/dist/backend/adapters/hono.mjs +5 -5
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +64 -13
- package/dist/backend/adapters/index.mjs +8 -8
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +64 -13
- package/dist/backend/adapters/next.mjs +5 -5
- 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-SCDE7Y52.mjs → chunk-47D7XI4Q.mjs} +1 -1
- package/dist/backend/{chunk-UUMOHEAD.mjs → chunk-J5JZJFCV.mjs} +1 -1
- package/dist/backend/{chunk-AIKOHUUL.mjs → chunk-R6OE5JPE.mjs} +1 -1
- package/dist/backend/{chunk-AA2HLIP7.mjs → chunk-SX6BNSGF.mjs} +2 -2
- package/dist/backend/{chunk-OZRCCZTP.mjs → chunk-VR556ENV.mjs} +2 -2
- package/dist/backend/{chunk-MHFVVQCC.mjs → chunk-WVNQLDKM.mjs} +1 -1
- package/dist/backend/{chunk-3RN6TO3T.mjs → chunk-XZB2ADYZ.mjs} +10 -0
- package/dist/backend/{chunk-BGGTI77T.mjs → chunk-YZFOEF7A.mjs} +54 -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 +64 -13
- package/dist/backend/core/handlers/coreHandler.mjs +3 -3
- 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/handleRouteByName.d.mts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
- package/dist/backend/core/handlers/handleRouteByName.js +64 -13
- package/dist/backend/core/handlers/handleRouteByName.mjs +3 -3
- 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 +64 -13
- package/dist/backend/core/handlers/index.mjs +4 -4
- 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 +64 -13
- package/dist/backend/core/index.mjs +4 -4
- 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 +64 -13
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-DpH9YHyt.d.ts → routeTypes-C3VYecpo.d.ts} +110 -61
- package/dist/backend/{routeTypes-mIP4rSxp.d.mts → routeTypes-Oppq3hl5.d.mts} +110 -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-3C2VGNW3.mjs → chunk-Y2MTOCQZ.mjs} +55 -14
- package/dist/better-auth/index.js +64 -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 +64 -13
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +64 -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-Bj6uyOX1.d.mts → params-Bm9J41QJ.d.mts} +49 -20
- package/dist/react/{params-DAVIR4YX.d.ts → params-M5KLTAn1.d.ts} +49 -20
- package/dist/sdk/index.d.mts +121 -65
- package/dist/sdk/index.d.ts +121 -65
- package/dist/sdk/index.js +54 -13
- package/dist/sdk/index.mjs +54 -13
- package/package.json +1 -1
|
@@ -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
|
});
|
|
@@ -2331,6 +2335,7 @@ var ProductScenario = {
|
|
|
2331
2335
|
New: "new",
|
|
2332
2336
|
Renew: "renew",
|
|
2333
2337
|
Upgrade: "upgrade",
|
|
2338
|
+
UpdatePrepaidQuantity: "update_prepaid_quantity",
|
|
2334
2339
|
Downgrade: "downgrade",
|
|
2335
2340
|
Cancel: "cancel",
|
|
2336
2341
|
Expired: "expired",
|
|
@@ -2673,7 +2678,9 @@ var CustomerDataInterval = {
|
|
|
2673
2678
|
};
|
|
2674
2679
|
var CustomerDataThresholdType = {
|
|
2675
2680
|
Usage: "usage",
|
|
2676
|
-
UsagePercentage: "usage_percentage"
|
|
2681
|
+
UsagePercentage: "usage_percentage",
|
|
2682
|
+
Remaining: "remaining",
|
|
2683
|
+
RemainingPercentage: "remaining_percentage"
|
|
2677
2684
|
};
|
|
2678
2685
|
var CustomerDataInterval$outboundSchema = z15.enum(CustomerDataInterval);
|
|
2679
2686
|
var CustomerDataPurchaseLimit$outboundSchema = z15.pipe(
|
|
@@ -3075,7 +3082,9 @@ var Plan$inboundSchema = z16.pipe(
|
|
|
3075
3082
|
// ../sdk/src/models/create-entity-op.ts
|
|
3076
3083
|
var CreateEntityThresholdTypeRequestBody = {
|
|
3077
3084
|
Usage: "usage",
|
|
3078
|
-
UsagePercentage: "usage_percentage"
|
|
3085
|
+
UsagePercentage: "usage_percentage",
|
|
3086
|
+
Remaining: "remaining",
|
|
3087
|
+
RemainingPercentage: "remaining_percentage"
|
|
3079
3088
|
};
|
|
3080
3089
|
var CreateEntityEnv = {
|
|
3081
3090
|
Sandbox: "sandbox",
|
|
@@ -3092,7 +3101,9 @@ var CreateEntityType = {
|
|
|
3092
3101
|
};
|
|
3093
3102
|
var CreateEntityThresholdTypeResponse = {
|
|
3094
3103
|
Usage: "usage",
|
|
3095
|
-
UsagePercentage: "usage_percentage"
|
|
3104
|
+
UsagePercentage: "usage_percentage",
|
|
3105
|
+
Remaining: "remaining",
|
|
3106
|
+
RemainingPercentage: "remaining_percentage"
|
|
3096
3107
|
};
|
|
3097
3108
|
var CreateEntitySpendLimitRequest$outboundSchema = z17.pipe(
|
|
3098
3109
|
z17.object({
|
|
@@ -4009,7 +4020,9 @@ var CustomerInterval = {
|
|
|
4009
4020
|
};
|
|
4010
4021
|
var CustomerThresholdType = {
|
|
4011
4022
|
Usage: "usage",
|
|
4012
|
-
UsagePercentage: "usage_percentage"
|
|
4023
|
+
UsagePercentage: "usage_percentage",
|
|
4024
|
+
Remaining: "remaining",
|
|
4025
|
+
RemainingPercentage: "remaining_percentage"
|
|
4013
4026
|
};
|
|
4014
4027
|
var CustomerStatus = {
|
|
4015
4028
|
Active: "active",
|
|
@@ -4521,7 +4534,9 @@ var GetEntityType = {
|
|
|
4521
4534
|
};
|
|
4522
4535
|
var GetEntityThresholdType = {
|
|
4523
4536
|
Usage: "usage",
|
|
4524
|
-
UsagePercentage: "usage_percentage"
|
|
4537
|
+
UsagePercentage: "usage_percentage",
|
|
4538
|
+
Remaining: "remaining",
|
|
4539
|
+
RemainingPercentage: "remaining_percentage"
|
|
4525
4540
|
};
|
|
4526
4541
|
var GetEntityParams$outboundSchema = z28.pipe(
|
|
4527
4542
|
z28.object({
|
|
@@ -4811,7 +4826,9 @@ var GetOrCreateCustomerInterval = {
|
|
|
4811
4826
|
};
|
|
4812
4827
|
var GetOrCreateCustomerThresholdType = {
|
|
4813
4828
|
Usage: "usage",
|
|
4814
|
-
UsagePercentage: "usage_percentage"
|
|
4829
|
+
UsagePercentage: "usage_percentage",
|
|
4830
|
+
Remaining: "remaining",
|
|
4831
|
+
RemainingPercentage: "remaining_percentage"
|
|
4815
4832
|
};
|
|
4816
4833
|
var GetOrCreateCustomerInterval$outboundSchema = z30.enum(GetOrCreateCustomerInterval);
|
|
4817
4834
|
var GetOrCreateCustomerPurchaseLimit$outboundSchema = z30.pipe(
|
|
@@ -5274,7 +5291,9 @@ var ListCustomersInterval = {
|
|
|
5274
5291
|
};
|
|
5275
5292
|
var ListCustomersThresholdType = {
|
|
5276
5293
|
Usage: "usage",
|
|
5277
|
-
UsagePercentage: "usage_percentage"
|
|
5294
|
+
UsagePercentage: "usage_percentage",
|
|
5295
|
+
Remaining: "remaining",
|
|
5296
|
+
RemainingPercentage: "remaining_percentage"
|
|
5278
5297
|
};
|
|
5279
5298
|
var ListCustomersStatus = {
|
|
5280
5299
|
Active: "active",
|
|
@@ -6015,7 +6034,9 @@ var MultiAttachRedirectMode = {
|
|
|
6015
6034
|
};
|
|
6016
6035
|
var MultiAttachThresholdType = {
|
|
6017
6036
|
Usage: "usage",
|
|
6018
|
-
UsagePercentage: "usage_percentage"
|
|
6037
|
+
UsagePercentage: "usage_percentage",
|
|
6038
|
+
Remaining: "remaining",
|
|
6039
|
+
RemainingPercentage: "remaining_percentage"
|
|
6019
6040
|
};
|
|
6020
6041
|
var MultiAttachCode = {
|
|
6021
6042
|
ThreedsRequired: "3ds_required",
|
|
@@ -6696,6 +6717,7 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6696
6717
|
),
|
|
6697
6718
|
successUrl: z38.optional(z38.string()),
|
|
6698
6719
|
newBillingSubscription: z38.optional(z38.boolean()),
|
|
6720
|
+
billingCycleAnchor: z38.optional(z38.literal("now")),
|
|
6699
6721
|
planSchedule: z38.optional(PreviewAttachPlanSchedule$outboundSchema),
|
|
6700
6722
|
checkoutSessionParams: z38.optional(z38.record(z38.string(), z38.any())),
|
|
6701
6723
|
customLineItems: z38.optional(
|
|
@@ -6722,6 +6744,7 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
|
|
|
6722
6744
|
subscriptionId: "subscription_id",
|
|
6723
6745
|
successUrl: "success_url",
|
|
6724
6746
|
newBillingSubscription: "new_billing_subscription",
|
|
6747
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
6725
6748
|
planSchedule: "plan_schedule",
|
|
6726
6749
|
checkoutSessionParams: "checkout_session_params",
|
|
6727
6750
|
customLineItems: "custom_line_items",
|
|
@@ -7018,7 +7041,9 @@ var PreviewMultiAttachRedirectMode = {
|
|
|
7018
7041
|
};
|
|
7019
7042
|
var PreviewMultiAttachThresholdType = {
|
|
7020
7043
|
Usage: "usage",
|
|
7021
|
-
UsagePercentage: "usage_percentage"
|
|
7044
|
+
UsagePercentage: "usage_percentage",
|
|
7045
|
+
Remaining: "remaining",
|
|
7046
|
+
RemainingPercentage: "remaining_percentage"
|
|
7022
7047
|
};
|
|
7023
7048
|
var PreviewMultiAttachCheckoutType = {
|
|
7024
7049
|
StripeCheckout: "stripe_checkout",
|
|
@@ -7836,6 +7861,7 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7836
7861
|
),
|
|
7837
7862
|
subscriptionId: z40.optional(z40.string()),
|
|
7838
7863
|
cancelAction: z40.optional(PreviewUpdateCancelAction$outboundSchema),
|
|
7864
|
+
billingCycleAnchor: z40.optional(z40.literal("now")),
|
|
7839
7865
|
noBillingChanges: z40.optional(z40.boolean()),
|
|
7840
7866
|
recalculateBalances: z40.optional(
|
|
7841
7867
|
z40.lazy(() => PreviewUpdateRecalculateBalances$outboundSchema)
|
|
@@ -7852,6 +7878,7 @@ var PreviewUpdateParams$outboundSchema = z40.pipe(
|
|
|
7852
7878
|
redirectMode: "redirect_mode",
|
|
7853
7879
|
subscriptionId: "subscription_id",
|
|
7854
7880
|
cancelAction: "cancel_action",
|
|
7881
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
7855
7882
|
noBillingChanges: "no_billing_changes",
|
|
7856
7883
|
recalculateBalances: "recalculate_balances"
|
|
7857
7884
|
});
|
|
@@ -8373,6 +8400,7 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8373
8400
|
z42.array(z42.lazy(() => SetupPaymentAttachDiscount$outboundSchema))
|
|
8374
8401
|
),
|
|
8375
8402
|
successUrl: z42.optional(z42.string()),
|
|
8403
|
+
billingCycleAnchor: z42.optional(z42.literal("now")),
|
|
8376
8404
|
checkoutSessionParams: z42.optional(z42.record(z42.string(), z42.any())),
|
|
8377
8405
|
customLineItems: z42.optional(
|
|
8378
8406
|
z42.array(z42.lazy(() => SetupPaymentCustomLineItem$outboundSchema))
|
|
@@ -8395,6 +8423,7 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
|
|
|
8395
8423
|
prorationBehavior: "proration_behavior",
|
|
8396
8424
|
subscriptionId: "subscription_id",
|
|
8397
8425
|
successUrl: "success_url",
|
|
8426
|
+
billingCycleAnchor: "billing_cycle_anchor",
|
|
8398
8427
|
checkoutSessionParams: "checkout_session_params",
|
|
8399
8428
|
customLineItems: "custom_line_items",
|
|
8400
8429
|
processorSubscriptionId: "processor_subscription_id",
|
|
@@ -8522,7 +8551,9 @@ var UpdateCustomerIntervalRequest = {
|
|
|
8522
8551
|
};
|
|
8523
8552
|
var UpdateCustomerThresholdTypeRequestBody = {
|
|
8524
8553
|
Usage: "usage",
|
|
8525
|
-
UsagePercentage: "usage_percentage"
|
|
8554
|
+
UsagePercentage: "usage_percentage",
|
|
8555
|
+
Remaining: "remaining",
|
|
8556
|
+
RemainingPercentage: "remaining_percentage"
|
|
8526
8557
|
};
|
|
8527
8558
|
var UpdateCustomerEnv = {
|
|
8528
8559
|
Sandbox: "sandbox",
|
|
@@ -8536,7 +8567,9 @@ var UpdateCustomerIntervalResponse = {
|
|
|
8536
8567
|
};
|
|
8537
8568
|
var UpdateCustomerThresholdTypeResponse = {
|
|
8538
8569
|
Usage: "usage",
|
|
8539
|
-
UsagePercentage: "usage_percentage"
|
|
8570
|
+
UsagePercentage: "usage_percentage",
|
|
8571
|
+
Remaining: "remaining",
|
|
8572
|
+
RemainingPercentage: "remaining_percentage"
|
|
8540
8573
|
};
|
|
8541
8574
|
var UpdateCustomerStatus = {
|
|
8542
8575
|
Active: "active",
|
|
@@ -8906,7 +8939,9 @@ var UpdateCustomerResponse$inboundSchema = z45.pipe(
|
|
|
8906
8939
|
var z46 = __toESM(require("zod/v4-mini"), 1);
|
|
8907
8940
|
var UpdateEntityThresholdTypeRequestBody = {
|
|
8908
8941
|
Usage: "usage",
|
|
8909
|
-
UsagePercentage: "usage_percentage"
|
|
8942
|
+
UsagePercentage: "usage_percentage",
|
|
8943
|
+
Remaining: "remaining",
|
|
8944
|
+
RemainingPercentage: "remaining_percentage"
|
|
8910
8945
|
};
|
|
8911
8946
|
var UpdateEntityEnv = {
|
|
8912
8947
|
Sandbox: "sandbox",
|
|
@@ -8923,7 +8958,9 @@ var UpdateEntityType = {
|
|
|
8923
8958
|
};
|
|
8924
8959
|
var UpdateEntityThresholdTypeResponse = {
|
|
8925
8960
|
Usage: "usage",
|
|
8926
|
-
UsagePercentage: "usage_percentage"
|
|
8961
|
+
UsagePercentage: "usage_percentage",
|
|
8962
|
+
Remaining: "remaining",
|
|
8963
|
+
RemainingPercentage: "remaining_percentage"
|
|
8927
8964
|
};
|
|
8928
8965
|
var UpdateEntitySpendLimitRequest$outboundSchema = z46.pipe(
|
|
8929
8966
|
z46.object({
|
|
@@ -11604,6 +11641,7 @@ var Billing = class extends ClientSDK {
|
|
|
11604
11641
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11605
11642
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
11606
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)
|
|
11607
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)
|
|
11608
11646
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11609
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)
|
|
@@ -11688,6 +11726,7 @@ var Billing = class extends ClientSDK {
|
|
|
11688
11726
|
* @param discounts - List of discounts to apply. Each discount can be an Autumn reward ID, Stripe coupon ID, or Stripe promotion code. (optional)
|
|
11689
11727
|
* @param successUrl - URL to redirect to after successful checkout. (optional)
|
|
11690
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)
|
|
11691
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)
|
|
11692
11731
|
* @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
|
|
11693
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)
|
|
@@ -11770,6 +11809,7 @@ var Billing = class extends ClientSDK {
|
|
|
11770
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)
|
|
11771
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)
|
|
11772
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)
|
|
11773
11813
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
11774
11814
|
* @param recalculateBalances - Controls whether balances should be recalculated during the subscription update. (optional)
|
|
11775
11815
|
*
|
|
@@ -11804,6 +11844,7 @@ var Billing = class extends ClientSDK {
|
|
|
11804
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)
|
|
11805
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)
|
|
11806
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)
|
|
11807
11848
|
* @param noBillingChanges - If true, the subscription is updated internally without applying billing changes in Stripe. (optional)
|
|
11808
11849
|
* @param recalculateBalances - Controls whether balances should be recalculated during the subscription update. (optional)
|
|
11809
11850
|
*
|
|
@@ -14463,6 +14504,7 @@ var attachParamsOutboundSchema = import_v42.z.object({
|
|
|
14463
14504
|
discounts: import_v42.z.union([import_v42.z.array(attachAttachDiscountOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
14464
14505
|
success_url: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14465
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(),
|
|
14466
14508
|
plan_schedule: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14467
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(),
|
|
14468
14510
|
custom_line_items: import_v42.z.union([import_v42.z.array(attachCustomLineItemOutboundSchema), import_v42.z.undefined()]).optional(),
|
|
@@ -14547,6 +14589,7 @@ var attachParamsSchema = import_v42.z.object({
|
|
|
14547
14589
|
discounts: import_v42.z.union([import_v42.z.array(attachAttachDiscountSchema), import_v42.z.undefined()]).optional(),
|
|
14548
14590
|
successUrl: import_v42.z.union([import_v42.z.string(), import_v42.z.undefined()]).optional(),
|
|
14549
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(),
|
|
14550
14593
|
planSchedule: import_v42.z.union([attachPlanScheduleSchema, import_v42.z.undefined()]).optional(),
|
|
14551
14594
|
checkoutSessionParams: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.any()), import_v42.z.undefined()]).optional(),
|
|
14552
14595
|
customLineItems: import_v42.z.union([import_v42.z.array(attachCustomLineItemSchema), import_v42.z.undefined()]).optional(),
|
|
@@ -15364,6 +15407,7 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
|
|
|
15364
15407
|
discounts: import_v49.z.union([import_v49.z.array(previewAttachAttachDiscountOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
15365
15408
|
success_url: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15366
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(),
|
|
15367
15411
|
plan_schedule: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15368
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(),
|
|
15369
15413
|
custom_line_items: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemOutboundSchema), import_v49.z.undefined()]).optional(),
|
|
@@ -15449,6 +15493,7 @@ var previewAttachParamsSchema = import_v49.z.object({
|
|
|
15449
15493
|
discounts: import_v49.z.union([import_v49.z.array(previewAttachAttachDiscountSchema), import_v49.z.undefined()]).optional(),
|
|
15450
15494
|
successUrl: import_v49.z.union([import_v49.z.string(), import_v49.z.undefined()]).optional(),
|
|
15451
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(),
|
|
15452
15497
|
planSchedule: import_v49.z.union([previewAttachPlanScheduleSchema, import_v49.z.undefined()]).optional(),
|
|
15453
15498
|
checkoutSessionParams: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.any()), import_v49.z.undefined()]).optional(),
|
|
15454
15499
|
customLineItems: import_v49.z.union([import_v49.z.array(previewAttachCustomLineItemSchema), import_v49.z.undefined()]).optional(),
|
|
@@ -16023,6 +16068,7 @@ var previewUpdateParamsOutboundSchema = import_v411.z.object({
|
|
|
16023
16068
|
redirect_mode: import_v411.z.string(),
|
|
16024
16069
|
subscription_id: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16025
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(),
|
|
16026
16072
|
no_billing_changes: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16027
16073
|
recalculate_balances: import_v411.z.union([previewUpdateRecalculateBalancesOutboundSchema, import_v411.z.undefined()]).optional()
|
|
16028
16074
|
});
|
|
@@ -16101,6 +16147,7 @@ var previewUpdateParamsSchema = import_v411.z.object({
|
|
|
16101
16147
|
redirectMode: import_v411.z.union([previewUpdateRedirectModeSchema, import_v411.z.undefined()]).optional(),
|
|
16102
16148
|
subscriptionId: import_v411.z.union([import_v411.z.string(), import_v411.z.undefined()]).optional(),
|
|
16103
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(),
|
|
16104
16151
|
noBillingChanges: import_v411.z.union([import_v411.z.boolean(), import_v411.z.undefined()]).optional(),
|
|
16105
16152
|
recalculateBalances: import_v411.z.union([previewUpdateRecalculateBalancesSchema, import_v411.z.undefined()]).optional()
|
|
16106
16153
|
});
|
|
@@ -16276,6 +16323,7 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
|
|
|
16276
16323
|
subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16277
16324
|
discounts: import_v413.z.union([import_v413.z.array(setupPaymentAttachDiscountOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
16278
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(),
|
|
16279
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(),
|
|
16280
16328
|
custom_line_items: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemOutboundSchema), import_v413.z.undefined()]).optional(),
|
|
16281
16329
|
processor_subscription_id: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -16353,6 +16401,7 @@ var setupPaymentParamsSchema = import_v413.z.object({
|
|
|
16353
16401
|
subscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
16354
16402
|
discounts: import_v413.z.union([import_v413.z.array(setupPaymentAttachDiscountSchema), import_v413.z.undefined()]).optional(),
|
|
16355
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(),
|
|
16356
16405
|
checkoutSessionParams: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.any()), import_v413.z.undefined()]).optional(),
|
|
16357
16406
|
customLineItems: import_v413.z.union([import_v413.z.array(setupPaymentCustomLineItemSchema), import_v413.z.undefined()]).optional(),
|
|
16358
16407
|
processorSubscriptionId: import_v413.z.union([import_v413.z.string(), import_v413.z.undefined()]).optional(),
|
|
@@ -16471,6 +16520,7 @@ var updateSubscriptionParamsOutboundSchema = import_v414.z.object({
|
|
|
16471
16520
|
redirect_mode: import_v414.z.string(),
|
|
16472
16521
|
subscription_id: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16473
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(),
|
|
16474
16524
|
no_billing_changes: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16475
16525
|
recalculate_balances: import_v414.z.union([billingUpdateRecalculateBalancesOutboundSchema, import_v414.z.undefined()]).optional()
|
|
16476
16526
|
});
|
|
@@ -16548,6 +16598,7 @@ var updateSubscriptionParamsSchema = import_v414.z.object({
|
|
|
16548
16598
|
redirectMode: import_v414.z.union([billingUpdateRedirectModeSchema, import_v414.z.undefined()]).optional(),
|
|
16549
16599
|
subscriptionId: import_v414.z.union([import_v414.z.string(), import_v414.z.undefined()]).optional(),
|
|
16550
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(),
|
|
16551
16602
|
noBillingChanges: import_v414.z.union([import_v414.z.boolean(), import_v414.z.undefined()]).optional(),
|
|
16552
16603
|
recalculateBalances: import_v414.z.union([billingUpdateRecalculateBalancesSchema, import_v414.z.undefined()]).optional()
|
|
16553
16604
|
});
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-47D7XI4Q.mjs";
|
|
4
4
|
import "../chunk-WYDGEDEU.mjs";
|
|
5
5
|
import "../chunk-VXND2UDT.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-SX6BNSGF.mjs";
|
|
7
|
+
import "../chunk-VR556ENV.mjs";
|
|
8
|
+
import "../chunk-YZFOEF7A.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
12
12
|
import "../chunk-TSF4YCUO.mjs";
|
|
13
13
|
import "../chunk-UAR3TMWI.mjs";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-XZB2ADYZ.mjs";
|
|
15
15
|
import "../chunk-OTXV5FY7.mjs";
|
|
16
16
|
import "../chunk-VZIMT7AO.mjs";
|
|
17
17
|
import "../chunk-Z6QP3YEA.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as hono_utils_types from 'hono/utils/types';
|
|
2
2
|
import * as hono from 'hono';
|
|
3
3
|
import { Context, Next } from 'hono';
|
|
4
|
-
import { A as AuthResult } from '../authTypes-
|
|
4
|
+
import { A as AuthResult } from '../authTypes-BapwVzwz.mjs';
|
|
5
5
|
|
|
6
6
|
type HonoAutumnHandlerOptions<ContextType extends Context = Context> = {
|
|
7
7
|
/** Function to identify the customer from the Hono context */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as hono_utils_types from 'hono/utils/types';
|
|
2
2
|
import * as hono from 'hono';
|
|
3
3
|
import { Context, Next } from 'hono';
|
|
4
|
-
import { A as AuthResult } from '../authTypes-
|
|
4
|
+
import { A as AuthResult } from '../authTypes-BapwVzwz.js';
|
|
5
5
|
|
|
6
6
|
type HonoAutumnHandlerOptions<ContextType extends Context = Context> = {
|
|
7
7
|
/** Function to identify the customer from the Hono context */
|