autumn-js 1.2.26 → 1.2.27
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 +6 -3
- package/dist/backend/adapters/express.mjs +4 -4
- package/dist/backend/adapters/fetch.d.mts +1 -1
- package/dist/backend/adapters/fetch.d.ts +1 -1
- package/dist/backend/adapters/fetch.js +6 -3
- package/dist/backend/adapters/fetch.mjs +4 -4
- package/dist/backend/adapters/hono.d.mts +1 -1
- package/dist/backend/adapters/hono.d.ts +1 -1
- package/dist/backend/adapters/hono.js +6 -3
- package/dist/backend/adapters/hono.mjs +4 -4
- package/dist/backend/adapters/index.d.mts +1 -1
- package/dist/backend/adapters/index.d.ts +1 -1
- package/dist/backend/adapters/index.js +6 -3
- package/dist/backend/adapters/index.mjs +7 -7
- package/dist/backend/adapters/next.d.mts +1 -1
- package/dist/backend/adapters/next.d.ts +1 -1
- package/dist/backend/adapters/next.js +6 -3
- package/dist/backend/adapters/next.mjs +4 -4
- package/dist/backend/{authTypes-B7b2mex1.d.mts → authTypes-CxFcWXh3.d.mts} +1 -1
- package/dist/backend/{authTypes-B7b2mex1.d.ts → authTypes-CxFcWXh3.d.ts} +1 -1
- package/dist/backend/{chunk-ZVZEA5YL.mjs → chunk-65JYBYIK.mjs} +1 -1
- package/dist/backend/{chunk-LJZUMUU3.mjs → chunk-DBMOXEHI.mjs} +1 -1
- package/dist/backend/{chunk-TJ7TRWN4.mjs → chunk-LFEAY3XJ.mjs} +1 -1
- package/dist/backend/{chunk-MPNJ2AXO.mjs → chunk-LTHZJCGX.mjs} +1 -1
- package/dist/backend/{chunk-UCGI7CYU.mjs → chunk-QMO6VPQ3.mjs} +6 -3
- package/dist/backend/{chunk-KJTWQSMK.mjs → chunk-QOX2POZP.mjs} +1 -1
- package/dist/backend/{chunk-D4BQG3DH.mjs → chunk-R6QKB5RX.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 +6 -3
- package/dist/backend/core/handlers/coreHandler.mjs +2 -2
- 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 +6 -3
- package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
- 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 +6 -3
- package/dist/backend/core/handlers/index.mjs +3 -3
- 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 +6 -3
- package/dist/backend/core/index.mjs +3 -3
- 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/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/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 +6 -3
- package/dist/backend/index.mjs +3 -3
- package/dist/backend/{routeTypes-BcR8yEXe.d.mts → routeTypes-CJUeRXwp.d.mts} +8 -3
- package/dist/backend/{routeTypes-CXj2d3BE.d.ts → routeTypes-Dt3mcOiI.d.ts} +8 -3
- package/dist/better-auth/{chunk-EFVPBRMR.mjs → chunk-SJGCFMIB.mjs} +6 -3
- package/dist/better-auth/index.js +6 -3
- package/dist/better-auth/index.mjs +1 -1
- package/dist/better-auth/utils/handleBetterAuthRoute.js +6 -3
- package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
- package/dist/better-auth/utils/index.js +6 -3
- package/dist/better-auth/utils/index.mjs +1 -1
- package/dist/react/AutumnContext.d.mts +3 -3
- package/dist/react/AutumnContext.d.ts +3 -3
- package/dist/react/AutumnProvider.js +15 -15
- package/dist/react/AutumnProvider.mjs +2 -2
- package/dist/react/{chunk-7IDH4OMG.mjs → chunk-26CKSAPZ.mjs} +1 -1
- package/dist/react/{chunk-NSFHAUTD.mjs → chunk-CHU7CIWP.mjs} +1 -1
- package/dist/react/{chunk-YQFYWH7J.mjs → chunk-G7FTQLT7.mjs} +1 -1
- package/dist/react/{chunk-BDG6JHEW.mjs → chunk-HSQUB3BZ.mjs} +1 -1
- package/dist/react/{chunk-DEZBJQEG.mjs → chunk-KB72KQKN.mjs} +1 -1
- package/dist/react/{chunk-FWWIAOPU.mjs → chunk-OXQG65ZT.mjs} +1 -1
- package/dist/react/{chunk-HRPQYDEN.mjs → chunk-P23DM4IS.mjs} +1 -1
- package/dist/react/{chunk-E5ZHOMZ4.mjs → chunk-XJZH5NMZ.mjs} +23 -23
- package/dist/react/{chunk-HVBDZARN.mjs → chunk-ZGPE4R6H.mjs} +2 -2
- package/dist/react/client/AutumnClient.d.mts +3 -3
- package/dist/react/client/AutumnClient.d.ts +3 -3
- package/dist/react/client/IAutumnClient.d.mts +3 -3
- package/dist/react/client/IAutumnClient.d.ts +3 -3
- package/dist/react/client/index.d.mts +3 -3
- package/dist/react/client/index.d.ts +3 -3
- package/dist/react/{customer-zogPdrbc.d.ts → customer-BI_KaaNd.d.ts} +1 -1
- package/dist/react/{customer-BTYGVzNm.d.mts → customer-BR2cYBBM.d.mts} +1 -1
- package/dist/react/hooks/index.d.mts +3 -3
- package/dist/react/hooks/index.d.ts +3 -3
- package/dist/react/hooks/index.js +16 -16
- package/dist/react/hooks/index.mjs +8 -8
- 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 +3 -3
- package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
- 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 +2 -2
- package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
- package/dist/react/hooks/useAggregateEvents.js +16 -16
- package/dist/react/hooks/useAggregateEvents.mjs +2 -2
- package/dist/react/hooks/useCustomer.d.mts +3 -3
- package/dist/react/hooks/useCustomer.d.ts +3 -3
- package/dist/react/hooks/useCustomer.js +16 -16
- package/dist/react/hooks/useCustomer.mjs +3 -3
- package/dist/react/hooks/useEntity.d.mts +2 -2
- package/dist/react/hooks/useEntity.d.ts +2 -2
- package/dist/react/hooks/useEntity.js +16 -16
- package/dist/react/hooks/useEntity.mjs +2 -2
- package/dist/react/hooks/useListEvents.d.mts +2 -2
- package/dist/react/hooks/useListEvents.d.ts +2 -2
- package/dist/react/hooks/useListEvents.js +16 -16
- package/dist/react/hooks/useListEvents.mjs +2 -2
- package/dist/react/hooks/useListPlans.d.mts +2 -2
- package/dist/react/hooks/useListPlans.d.ts +2 -2
- package/dist/react/hooks/useListPlans.js +16 -16
- package/dist/react/hooks/useListPlans.mjs +2 -2
- package/dist/react/hooks/useReferrals.d.mts +2 -2
- package/dist/react/hooks/useReferrals.d.ts +2 -2
- package/dist/react/hooks/useReferrals.js +16 -16
- package/dist/react/hooks/useReferrals.mjs +2 -2
- package/dist/react/index.d.mts +3 -3
- package/dist/react/index.d.ts +3 -3
- package/dist/react/index.js +22 -22
- package/dist/react/index.mjs +9 -9
- package/dist/react/{params-DWJn7Y2f.d.ts → params-BF_KxGYE.d.ts} +2 -2
- package/dist/react/{params-DpI-uEQy.d.mts → params-Bvc4DjLZ.d.mts} +2 -2
- package/dist/react/{plan-DYHM9lBi.d.mts → plan-CRa-NBw0.d.mts} +1 -1
- package/dist/react/{plan-DYHM9lBi.d.ts → plan-CRa-NBw0.d.ts} +1 -1
- package/dist/sdk/index.d.mts +7 -1
- package/dist/sdk/index.d.ts +7 -1
- package/dist/sdk/index.js +6 -3
- package/dist/sdk/index.mjs +6 -3
- package/package.json +1 -1
|
@@ -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-CxFcWXh3.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-CxFcWXh3.js';
|
|
3
3
|
|
|
4
4
|
type ExpressAutumnHandlerOptions = {
|
|
5
5
|
/** Function to identify the customer from the request */
|
|
@@ -7465,12 +7465,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7465
7465
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7466
7466
|
),
|
|
7467
7467
|
search: z36.optional(z36.string()),
|
|
7468
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7468
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7469
|
+
customerId: z36.optional(z36.string())
|
|
7469
7470
|
}),
|
|
7470
7471
|
z36.transform((v) => {
|
|
7471
7472
|
return remap(v, {
|
|
7472
7473
|
startCursor: "start_cursor",
|
|
7473
|
-
subscriptionStatus: "subscription_status"
|
|
7474
|
+
subscriptionStatus: "subscription_status",
|
|
7475
|
+
customerId: "customer_id"
|
|
7474
7476
|
});
|
|
7475
7477
|
})
|
|
7476
7478
|
);
|
|
@@ -14959,7 +14961,7 @@ var Billing = class extends ClientSDK {
|
|
|
14959
14961
|
* @example
|
|
14960
14962
|
* ```typescript
|
|
14961
14963
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14962
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14964
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14963
14965
|
* ```
|
|
14964
14966
|
*
|
|
14965
14967
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16170,6 +16172,7 @@ var Entities = class extends ClientSDK {
|
|
|
16170
16172
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16171
16173
|
* @param search - Search entities by id or name. (optional)
|
|
16172
16174
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16175
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16173
16176
|
*
|
|
16174
16177
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16175
16178
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LTHZJCGX.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-DBMOXEHI.mjs";
|
|
7
|
+
import "../chunk-65JYBYIK.mjs";
|
|
8
|
+
import "../chunk-QMO6VPQ3.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -7465,12 +7465,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7465
7465
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7466
7466
|
),
|
|
7467
7467
|
search: z36.optional(z36.string()),
|
|
7468
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7468
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7469
|
+
customerId: z36.optional(z36.string())
|
|
7469
7470
|
}),
|
|
7470
7471
|
z36.transform((v) => {
|
|
7471
7472
|
return remap(v, {
|
|
7472
7473
|
startCursor: "start_cursor",
|
|
7473
|
-
subscriptionStatus: "subscription_status"
|
|
7474
|
+
subscriptionStatus: "subscription_status",
|
|
7475
|
+
customerId: "customer_id"
|
|
7474
7476
|
});
|
|
7475
7477
|
})
|
|
7476
7478
|
);
|
|
@@ -14959,7 +14961,7 @@ var Billing = class extends ClientSDK {
|
|
|
14959
14961
|
* @example
|
|
14960
14962
|
* ```typescript
|
|
14961
14963
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14962
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14964
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14963
14965
|
* ```
|
|
14964
14966
|
*
|
|
14965
14967
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16170,6 +16172,7 @@ var Entities = class extends ClientSDK {
|
|
|
16170
16172
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16171
16173
|
* @param search - Search entities by id or name. (optional)
|
|
16172
16174
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16175
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16173
16176
|
*
|
|
16174
16177
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16175
16178
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-QOX2POZP.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-DBMOXEHI.mjs";
|
|
7
|
+
import "../chunk-65JYBYIK.mjs";
|
|
8
|
+
import "../chunk-QMO6VPQ3.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.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-CxFcWXh3.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-CxFcWXh3.js';
|
|
5
5
|
|
|
6
6
|
type HonoAutumnHandlerOptions<ContextType extends Context = Context> = {
|
|
7
7
|
/** Function to identify the customer from the Hono context */
|
|
@@ -7465,12 +7465,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7465
7465
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7466
7466
|
),
|
|
7467
7467
|
search: z36.optional(z36.string()),
|
|
7468
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7468
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7469
|
+
customerId: z36.optional(z36.string())
|
|
7469
7470
|
}),
|
|
7470
7471
|
z36.transform((v) => {
|
|
7471
7472
|
return remap(v, {
|
|
7472
7473
|
startCursor: "start_cursor",
|
|
7473
|
-
subscriptionStatus: "subscription_status"
|
|
7474
|
+
subscriptionStatus: "subscription_status",
|
|
7475
|
+
customerId: "customer_id"
|
|
7474
7476
|
});
|
|
7475
7477
|
})
|
|
7476
7478
|
);
|
|
@@ -14959,7 +14961,7 @@ var Billing = class extends ClientSDK {
|
|
|
14959
14961
|
* @example
|
|
14960
14962
|
* ```typescript
|
|
14961
14963
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14962
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14964
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14963
14965
|
* ```
|
|
14964
14966
|
*
|
|
14965
14967
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16170,6 +16172,7 @@ var Entities = class extends ClientSDK {
|
|
|
16170
16172
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16171
16173
|
* @param search - Search entities by id or name. (optional)
|
|
16172
16174
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16175
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16173
16176
|
*
|
|
16174
16177
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16175
16178
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LFEAY3XJ.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-DBMOXEHI.mjs";
|
|
7
|
+
import "../chunk-65JYBYIK.mjs";
|
|
8
|
+
import "../chunk-QMO6VPQ3.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -3,7 +3,7 @@ export { FetchAutumnHandlerOptions, autumnHandler as fetchAutumnHandler } from '
|
|
|
3
3
|
export { HonoAutumnHandlerOptions, autumnHandler as honoAutumnHandler } from './hono.mjs';
|
|
4
4
|
export { NextAutumnHandlerOptions, autumnHandler as nextAutumnHandler } from './next.mjs';
|
|
5
5
|
import 'express';
|
|
6
|
-
import '../authTypes-
|
|
6
|
+
import '../authTypes-CxFcWXh3.mjs';
|
|
7
7
|
import 'hono/utils/types';
|
|
8
8
|
import 'hono';
|
|
9
9
|
import 'next/server';
|
|
@@ -3,7 +3,7 @@ export { FetchAutumnHandlerOptions, autumnHandler as fetchAutumnHandler } from '
|
|
|
3
3
|
export { HonoAutumnHandlerOptions, autumnHandler as honoAutumnHandler } from './hono.js';
|
|
4
4
|
export { NextAutumnHandlerOptions, autumnHandler as nextAutumnHandler } from './next.js';
|
|
5
5
|
import 'express';
|
|
6
|
-
import '../authTypes-
|
|
6
|
+
import '../authTypes-CxFcWXh3.js';
|
|
7
7
|
import 'hono/utils/types';
|
|
8
8
|
import 'hono';
|
|
9
9
|
import 'next/server';
|
|
@@ -7468,12 +7468,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7468
7468
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7469
7469
|
),
|
|
7470
7470
|
search: z36.optional(z36.string()),
|
|
7471
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7471
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7472
|
+
customerId: z36.optional(z36.string())
|
|
7472
7473
|
}),
|
|
7473
7474
|
z36.transform((v) => {
|
|
7474
7475
|
return remap(v, {
|
|
7475
7476
|
startCursor: "start_cursor",
|
|
7476
|
-
subscriptionStatus: "subscription_status"
|
|
7477
|
+
subscriptionStatus: "subscription_status",
|
|
7478
|
+
customerId: "customer_id"
|
|
7477
7479
|
});
|
|
7478
7480
|
})
|
|
7479
7481
|
);
|
|
@@ -14962,7 +14964,7 @@ var Billing = class extends ClientSDK {
|
|
|
14962
14964
|
* @example
|
|
14963
14965
|
* ```typescript
|
|
14964
14966
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14965
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14967
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14966
14968
|
* ```
|
|
14967
14969
|
*
|
|
14968
14970
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16173,6 +16175,7 @@ var Entities = class extends ClientSDK {
|
|
|
16173
16175
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16174
16176
|
* @param search - Search entities by id or name. (optional)
|
|
16175
16177
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16178
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16176
16179
|
*
|
|
16177
16180
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16178
16181
|
*/
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-LTHZJCGX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
autumnHandler as autumnHandler2
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-QOX2POZP.mjs";
|
|
7
7
|
import {
|
|
8
8
|
autumnHandler as autumnHandler3
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-LFEAY3XJ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
autumnHandler as autumnHandler4
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-R6QKB5RX.mjs";
|
|
13
13
|
import "../chunk-WYDGEDEU.mjs";
|
|
14
14
|
import "../chunk-VXND2UDT.mjs";
|
|
15
|
-
import "../chunk-
|
|
16
|
-
import "../chunk-
|
|
17
|
-
import "../chunk-
|
|
15
|
+
import "../chunk-DBMOXEHI.mjs";
|
|
16
|
+
import "../chunk-65JYBYIK.mjs";
|
|
17
|
+
import "../chunk-QMO6VPQ3.mjs";
|
|
18
18
|
import "../chunk-55C2WWXQ.mjs";
|
|
19
19
|
import "../chunk-TBQ27LIK.mjs";
|
|
20
20
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -7466,12 +7466,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7466
7466
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7467
7467
|
),
|
|
7468
7468
|
search: z36.optional(z36.string()),
|
|
7469
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7469
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7470
|
+
customerId: z36.optional(z36.string())
|
|
7470
7471
|
}),
|
|
7471
7472
|
z36.transform((v) => {
|
|
7472
7473
|
return remap(v, {
|
|
7473
7474
|
startCursor: "start_cursor",
|
|
7474
|
-
subscriptionStatus: "subscription_status"
|
|
7475
|
+
subscriptionStatus: "subscription_status",
|
|
7476
|
+
customerId: "customer_id"
|
|
7475
7477
|
});
|
|
7476
7478
|
})
|
|
7477
7479
|
);
|
|
@@ -14960,7 +14962,7 @@ var Billing = class extends ClientSDK {
|
|
|
14960
14962
|
* @example
|
|
14961
14963
|
* ```typescript
|
|
14962
14964
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14963
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14965
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14964
14966
|
* ```
|
|
14965
14967
|
*
|
|
14966
14968
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16171,6 +16173,7 @@ var Entities = class extends ClientSDK {
|
|
|
16171
16173
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16172
16174
|
* @param search - Search entities by id or name. (optional)
|
|
16173
16175
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16176
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16174
16177
|
*
|
|
16175
16178
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16176
16179
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autumnHandler
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-R6QKB5RX.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-DBMOXEHI.mjs";
|
|
7
|
+
import "../chunk-65JYBYIK.mjs";
|
|
8
|
+
import "../chunk-QMO6VPQ3.mjs";
|
|
9
9
|
import "../chunk-55C2WWXQ.mjs";
|
|
10
10
|
import "../chunk-TBQ27LIK.mjs";
|
|
11
11
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -228,4 +228,4 @@ type ResolvedIdentity = {
|
|
|
228
228
|
/** Result of the identify function (can be sync or async) */
|
|
229
229
|
type AuthResult = ResolvedIdentity | null | Promise<ResolvedIdentity | null>;
|
|
230
230
|
|
|
231
|
-
export { type AuthResult as A, type
|
|
231
|
+
export { type AuthResult as A, type ClosedEnum as C, type GetOrCreateCustomerParams as G, type OpenEnum as O, type ResolvedIdentity as R, type CustomerData as a, CustomerExpand as b, type CustomerId as c };
|
|
@@ -228,4 +228,4 @@ type ResolvedIdentity = {
|
|
|
228
228
|
/** Result of the identify function (can be sync or async) */
|
|
229
229
|
type AuthResult = ResolvedIdentity | null | Promise<ResolvedIdentity | null>;
|
|
230
230
|
|
|
231
|
-
export { type AuthResult as A, type
|
|
231
|
+
export { type AuthResult as A, type ClosedEnum as C, type GetOrCreateCustomerParams as G, type OpenEnum as O, type ResolvedIdentity as R, type CustomerData as a, CustomerExpand as b, type CustomerId as c };
|
|
@@ -7382,12 +7382,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7382
7382
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7383
7383
|
),
|
|
7384
7384
|
search: z36.optional(z36.string()),
|
|
7385
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7385
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7386
|
+
customerId: z36.optional(z36.string())
|
|
7386
7387
|
}),
|
|
7387
7388
|
z36.transform((v) => {
|
|
7388
7389
|
return remap(v, {
|
|
7389
7390
|
startCursor: "start_cursor",
|
|
7390
|
-
subscriptionStatus: "subscription_status"
|
|
7391
|
+
subscriptionStatus: "subscription_status",
|
|
7392
|
+
customerId: "customer_id"
|
|
7391
7393
|
});
|
|
7392
7394
|
})
|
|
7393
7395
|
);
|
|
@@ -14904,7 +14906,7 @@ var Billing = class extends ClientSDK {
|
|
|
14904
14906
|
* @example
|
|
14905
14907
|
* ```typescript
|
|
14906
14908
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14907
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14909
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14908
14910
|
* ```
|
|
14909
14911
|
*
|
|
14910
14912
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16115,6 +16117,7 @@ var Entities = class extends ClientSDK {
|
|
|
16115
16117
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16116
16118
|
* @param search - Search entities by id or name. (optional)
|
|
16117
16119
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16120
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16118
16121
|
*
|
|
16119
16122
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16120
16123
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
|
|
2
|
-
import '../../authTypes-
|
|
3
|
-
import '../../routeTypes-
|
|
2
|
+
import '../../authTypes-CxFcWXh3.mjs';
|
|
3
|
+
import '../../routeTypes-CJUeRXwp.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../types/responseTypes.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.js';
|
|
2
|
-
import '../../authTypes-
|
|
3
|
-
import '../../routeTypes-
|
|
2
|
+
import '../../authTypes-CxFcWXh3.js';
|
|
3
|
+
import '../../routeTypes-Dt3mcOiI.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../types/responseTypes.js';
|
|
6
6
|
|
|
@@ -7465,12 +7465,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7465
7465
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7466
7466
|
),
|
|
7467
7467
|
search: z36.optional(z36.string()),
|
|
7468
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7468
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7469
|
+
customerId: z36.optional(z36.string())
|
|
7469
7470
|
}),
|
|
7470
7471
|
z36.transform((v) => {
|
|
7471
7472
|
return remap(v, {
|
|
7472
7473
|
startCursor: "start_cursor",
|
|
7473
|
-
subscriptionStatus: "subscription_status"
|
|
7474
|
+
subscriptionStatus: "subscription_status",
|
|
7475
|
+
customerId: "customer_id"
|
|
7474
7476
|
});
|
|
7475
7477
|
})
|
|
7476
7478
|
);
|
|
@@ -14959,7 +14961,7 @@ var Billing = class extends ClientSDK {
|
|
|
14959
14961
|
* @example
|
|
14960
14962
|
* ```typescript
|
|
14961
14963
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14962
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14964
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14963
14965
|
* ```
|
|
14964
14966
|
*
|
|
14965
14967
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16170,6 +16172,7 @@ var Entities = class extends ClientSDK {
|
|
|
16170
16172
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16171
16173
|
* @param search - Search entities by id or name. (optional)
|
|
16172
16174
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16175
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16173
16176
|
*
|
|
16174
16177
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16175
16178
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createCoreHandler
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-65JYBYIK.mjs";
|
|
4
|
+
import "../../chunk-QMO6VPQ3.mjs";
|
|
5
5
|
import "../../chunk-55C2WWXQ.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Autumn,
|
|
2
|
-
import { A as AuthResult } from '../../authTypes-
|
|
1
|
+
import { A as Autumn, b as RouteDefinition } from '../../routeTypes-CJUeRXwp.mjs';
|
|
2
|
+
import { A as AuthResult } from '../../authTypes-CxFcWXh3.mjs';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as Autumn,
|
|
2
|
-
import { A as AuthResult } from '../../authTypes-
|
|
1
|
+
import { A as Autumn, b as RouteDefinition } from '../../routeTypes-Dt3mcOiI.js';
|
|
2
|
+
import { A as AuthResult } from '../../authTypes-CxFcWXh3.js';
|
|
3
3
|
import { BackendResult } from '../types/responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
@@ -7465,12 +7465,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7465
7465
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7466
7466
|
),
|
|
7467
7467
|
search: z36.optional(z36.string()),
|
|
7468
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7468
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7469
|
+
customerId: z36.optional(z36.string())
|
|
7469
7470
|
}),
|
|
7470
7471
|
z36.transform((v) => {
|
|
7471
7472
|
return remap(v, {
|
|
7472
7473
|
startCursor: "start_cursor",
|
|
7473
|
-
subscriptionStatus: "subscription_status"
|
|
7474
|
+
subscriptionStatus: "subscription_status",
|
|
7475
|
+
customerId: "customer_id"
|
|
7474
7476
|
});
|
|
7475
7477
|
})
|
|
7476
7478
|
);
|
|
@@ -14959,7 +14961,7 @@ var Billing = class extends ClientSDK {
|
|
|
14959
14961
|
* @example
|
|
14960
14962
|
* ```typescript
|
|
14961
14963
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14962
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14964
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14963
14965
|
* ```
|
|
14964
14966
|
*
|
|
14965
14967
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16170,6 +16172,7 @@ var Entities = class extends ClientSDK {
|
|
|
16170
16172
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16171
16173
|
* @param search - Search entities by id or name. (optional)
|
|
16172
16174
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16175
|
+
* @param customerId - Restrict the response to entities owned by this customer id. Use to bulk-fetch all entities for one customer in a single paginated call instead of iterating entities.get. (optional)
|
|
16173
16176
|
*
|
|
16174
16177
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16175
16178
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleRouteByName
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-DBMOXEHI.mjs";
|
|
4
|
+
import "../../chunk-QMO6VPQ3.mjs";
|
|
5
5
|
import "../../chunk-55C2WWXQ.mjs";
|
|
6
6
|
import "../../chunk-TBQ27LIK.mjs";
|
|
7
7
|
import "../../chunk-J44WR3QZ.mjs";
|
|
@@ -4,7 +4,7 @@ export { executeRoute } from './executeRoute.mjs';
|
|
|
4
4
|
export { handleRouteByName } from './handleRouteByName.mjs';
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.mjs';
|
|
6
6
|
import '../types/handlerTypes.mjs';
|
|
7
|
-
import '../../authTypes-
|
|
8
|
-
import '../../routeTypes-
|
|
7
|
+
import '../../authTypes-CxFcWXh3.mjs';
|
|
8
|
+
import '../../routeTypes-CJUeRXwp.mjs';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../types/responseTypes.mjs';
|