autumn-js 1.2.35 → 1.2.37
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 +699 -148
- 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 +699 -148
- 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 +699 -148
- 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 +699 -148
- 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 +699 -148
- package/dist/backend/adapters/next.mjs +5 -5
- package/dist/backend/{authTypes-B33BAaz1.d.mts → authTypes-jU7ON-I5.d.mts} +16 -0
- package/dist/backend/{authTypes-B33BAaz1.d.ts → authTypes-jU7ON-I5.d.ts} +16 -0
- package/dist/backend/{chunk-CTAEJHFX.mjs → chunk-AFWY6NDJ.mjs} +1 -1
- package/dist/backend/{chunk-FTV6MPLY.mjs → chunk-AOAGX4AS.mjs} +2 -2
- package/dist/backend/{chunk-VAAXORAG.mjs → chunk-DR35G6GS.mjs} +2 -2
- package/dist/backend/{chunk-TYGTZQUO.mjs → chunk-NHBJ3QDV.mjs} +260 -36
- package/dist/backend/{chunk-BTL6PH2D.mjs → chunk-PMD3Z6EM.mjs} +1 -1
- package/dist/backend/{chunk-SE42XPGB.mjs → chunk-QLH3M5PR.mjs} +439 -112
- package/dist/backend/{chunk-E5WAT35D.mjs → chunk-UWZYM74E.mjs} +1 -1
- package/dist/backend/{chunk-JRYUVNEG.mjs → chunk-VMYD4IWS.mjs} +1 -1
- 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 +699 -148
- 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 +699 -148
- 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 +699 -148
- 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 +699 -148
- 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 +260 -36
- 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 +260 -36
- 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 +699 -148
- package/dist/backend/index.mjs +4 -4
- package/dist/backend/{routeTypes-CX_fRpB1.d.ts → routeTypes-B0zHyzyX.d.ts} +615 -14
- package/dist/backend/{routeTypes-D-tNolqk.d.mts → routeTypes-M8hsq6U-.d.mts} +615 -14
- package/dist/better-auth/{chunk-DSE3KBZN.mjs → chunk-7NGK7FWC.mjs} +1 -1
- package/dist/better-auth/{chunk-RGU4M7DE.mjs → chunk-DG2IPLR6.mjs} +260 -36
- package/dist/better-auth/{chunk-MGUDRHQD.mjs → chunk-HCM5WABX.mjs} +440 -113
- package/dist/better-auth/index.js +699 -148
- package/dist/better-auth/index.mjs +3 -3
- package/dist/better-auth/types.d.mts +16 -0
- package/dist/better-auth/types.d.ts +16 -0
- package/dist/better-auth/utils/createAutumnEndpoint.js +260 -36
- package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
- package/dist/better-auth/utils/handleBetterAuthRoute.js +699 -148
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
- package/dist/better-auth/utils/index.js +699 -148
- package/dist/better-auth/utils/index.mjs +3 -3
- package/dist/react/AutumnContext.d.mts +4 -4
- package/dist/react/AutumnContext.d.ts +4 -4
- package/dist/react/client/AutumnClient.d.mts +4 -4
- package/dist/react/client/AutumnClient.d.ts +4 -4
- package/dist/react/client/IAutumnClient.d.mts +4 -4
- package/dist/react/client/IAutumnClient.d.ts +4 -4
- package/dist/react/client/index.d.mts +4 -4
- package/dist/react/client/index.d.ts +4 -4
- package/dist/react/{customer-fjDreCb2.d.mts → customer-CkuydPCd.d.mts} +17 -1
- package/dist/react/{customer-DDciGja3.d.ts → customer-D811_jP2.d.ts} +17 -1
- package/dist/react/hooks/index.d.mts +4 -4
- package/dist/react/hooks/index.d.ts +4 -4
- package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
- package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
- package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
- package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
- package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
- package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
- package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.mts +4 -4
- package/dist/react/hooks/internal/useCustomerActions.d.ts +4 -4
- package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListPlans.d.mts +3 -3
- package/dist/react/hooks/useListPlans.d.ts +3 -3
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/react/{list-plans-op-ByqRxdNR.d.mts → list-plans-op-Cwb5iIdA.d.ts} +33 -1
- package/dist/react/{list-plans-op-D-K2LRZV.d.ts → list-plans-op-DvXyRegM.d.mts} +33 -1
- package/dist/react/{params-BDzQ8IBN.d.mts → params-C0cH2cYK.d.mts} +214 -5
- package/dist/react/{params-DWmwIoI4.d.ts → params-CaUBdt-x.d.ts} +214 -5
- package/dist/react/{plan-DOxbvjQY.d.mts → plan-CUExbmy9.d.mts} +32 -0
- package/dist/react/{plan-DOxbvjQY.d.ts → plan-CUExbmy9.d.ts} +32 -0
- package/dist/sdk/index.d.mts +971 -22
- package/dist/sdk/index.d.ts +971 -22
- package/dist/sdk/index.js +854 -126
- package/dist/sdk/index.mjs +743 -121
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "./chunk-HIWOK3G6.mjs";
|
|
2
2
|
import {
|
|
3
3
|
createAutumnEndpoint
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-7NGK7FWC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createHandleBetterAuthRoute
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HCM5WABX.mjs";
|
|
8
8
|
import "./chunk-J2WYVGHS.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-DG2IPLR6.mjs";
|
|
10
10
|
import "./chunk-BT3EAYVW.mjs";
|
|
11
11
|
import "./chunk-GJAMWZNZ.mjs";
|
|
12
12
|
|
|
@@ -99,6 +99,10 @@ type GetOrCreateCustomerSpendLimit = {
|
|
|
99
99
|
* Overage cap for the feature: absolute units, or a percent (e.g. 120) when limit_type is usage_percentage.
|
|
100
100
|
*/
|
|
101
101
|
overageLimit?: number | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* When true, overage for this feature is not posted to Stripe. Usage tracking and balance resets still behave normally.
|
|
104
|
+
*/
|
|
105
|
+
skipOverageBilling?: boolean | undefined;
|
|
102
106
|
};
|
|
103
107
|
/**
|
|
104
108
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
@@ -113,6 +117,14 @@ declare const GetOrCreateCustomerUsageLimitInterval: {
|
|
|
113
117
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
114
118
|
*/
|
|
115
119
|
type GetOrCreateCustomerUsageLimitInterval = ClosedEnum<typeof GetOrCreateCustomerUsageLimitInterval>;
|
|
120
|
+
/**
|
|
121
|
+
* When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
|
|
122
|
+
*/
|
|
123
|
+
type GetOrCreateCustomerFilter = {
|
|
124
|
+
properties: {
|
|
125
|
+
[k: string]: string | number | boolean;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
116
128
|
type GetOrCreateCustomerUsageLimit = {
|
|
117
129
|
/**
|
|
118
130
|
* The feature this usage limit applies to.
|
|
@@ -130,6 +142,10 @@ type GetOrCreateCustomerUsageLimit = {
|
|
|
130
142
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
131
143
|
*/
|
|
132
144
|
interval: GetOrCreateCustomerUsageLimitInterval;
|
|
145
|
+
/**
|
|
146
|
+
* When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
|
|
147
|
+
*/
|
|
148
|
+
filter?: GetOrCreateCustomerFilter | undefined;
|
|
133
149
|
};
|
|
134
150
|
/**
|
|
135
151
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|
|
@@ -99,6 +99,10 @@ type GetOrCreateCustomerSpendLimit = {
|
|
|
99
99
|
* Overage cap for the feature: absolute units, or a percent (e.g. 120) when limit_type is usage_percentage.
|
|
100
100
|
*/
|
|
101
101
|
overageLimit?: number | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* When true, overage for this feature is not posted to Stripe. Usage tracking and balance resets still behave normally.
|
|
104
|
+
*/
|
|
105
|
+
skipOverageBilling?: boolean | undefined;
|
|
102
106
|
};
|
|
103
107
|
/**
|
|
104
108
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
@@ -113,6 +117,14 @@ declare const GetOrCreateCustomerUsageLimitInterval: {
|
|
|
113
117
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
114
118
|
*/
|
|
115
119
|
type GetOrCreateCustomerUsageLimitInterval = ClosedEnum<typeof GetOrCreateCustomerUsageLimitInterval>;
|
|
120
|
+
/**
|
|
121
|
+
* When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
|
|
122
|
+
*/
|
|
123
|
+
type GetOrCreateCustomerFilter = {
|
|
124
|
+
properties: {
|
|
125
|
+
[k: string]: string | number | boolean;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
116
128
|
type GetOrCreateCustomerUsageLimit = {
|
|
117
129
|
/**
|
|
118
130
|
* The feature this usage limit applies to.
|
|
@@ -130,6 +142,10 @@ type GetOrCreateCustomerUsageLimit = {
|
|
|
130
142
|
* Interval for the cap, aligned to the customer's billing cycle.
|
|
131
143
|
*/
|
|
132
144
|
interval: GetOrCreateCustomerUsageLimitInterval;
|
|
145
|
+
/**
|
|
146
|
+
* When set, only usage from events whose properties match counts toward this cap. Omit to count all usage of the feature.
|
|
147
|
+
*/
|
|
148
|
+
filter?: GetOrCreateCustomerFilter | undefined;
|
|
133
149
|
};
|
|
134
150
|
/**
|
|
135
151
|
* Whether the threshold is an absolute count or a percentage of the usage allowance or remaining balance.
|