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
|
@@ -4,7 +4,7 @@ export { executeRoute } from './executeRoute.js';
|
|
|
4
4
|
export { handleRouteByName } from './handleRouteByName.js';
|
|
5
5
|
export { resolveIdentity } from './resolveIdentity.js';
|
|
6
6
|
import '../types/handlerTypes.js';
|
|
7
|
-
import '../../authTypes-
|
|
8
|
-
import '../../routeTypes-
|
|
7
|
+
import '../../authTypes-CxFcWXh3.js';
|
|
8
|
+
import '../../routeTypes-Dt3mcOiI.js';
|
|
9
9
|
import 'zod/v4';
|
|
10
10
|
import '../types/responseTypes.js';
|
|
@@ -7469,12 +7469,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7469
7469
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7470
7470
|
),
|
|
7471
7471
|
search: z36.optional(z36.string()),
|
|
7472
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7472
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7473
|
+
customerId: z36.optional(z36.string())
|
|
7473
7474
|
}),
|
|
7474
7475
|
z36.transform((v) => {
|
|
7475
7476
|
return remap(v, {
|
|
7476
7477
|
startCursor: "start_cursor",
|
|
7477
|
-
subscriptionStatus: "subscription_status"
|
|
7478
|
+
subscriptionStatus: "subscription_status",
|
|
7479
|
+
customerId: "customer_id"
|
|
7478
7480
|
});
|
|
7479
7481
|
})
|
|
7480
7482
|
);
|
|
@@ -14963,7 +14965,7 @@ var Billing = class extends ClientSDK {
|
|
|
14963
14965
|
* @example
|
|
14964
14966
|
* ```typescript
|
|
14965
14967
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14966
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14968
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14967
14969
|
* ```
|
|
14968
14970
|
*
|
|
14969
14971
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16174,6 +16176,7 @@ var Entities = class extends ClientSDK {
|
|
|
16174
16176
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16175
16177
|
* @param search - Search entities by id or name. (optional)
|
|
16176
16178
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16179
|
+
* @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)
|
|
16177
16180
|
*
|
|
16178
16181
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16179
16182
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../../chunk-VXND2UDT.mjs";
|
|
2
2
|
import {
|
|
3
3
|
handleRouteByName
|
|
4
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-DBMOXEHI.mjs";
|
|
5
5
|
import {
|
|
6
6
|
createCoreHandler
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-
|
|
7
|
+
} from "../../chunk-65JYBYIK.mjs";
|
|
8
|
+
import "../../chunk-QMO6VPQ3.mjs";
|
|
9
9
|
import {
|
|
10
10
|
executeRoute
|
|
11
11
|
} from "../../chunk-55C2WWXQ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AuthResult, R as ResolvedIdentity } from '../../authTypes-
|
|
1
|
+
import { A as AuthResult, R as ResolvedIdentity } from '../../authTypes-CxFcWXh3.mjs';
|
|
2
2
|
import { BackendResult } from '../types/responseTypes.mjs';
|
|
3
3
|
|
|
4
4
|
/** Result of identity resolution */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as AuthResult, R as ResolvedIdentity } from '../../authTypes-
|
|
1
|
+
import { A as AuthResult, R as ResolvedIdentity } from '../../authTypes-CxFcWXh3.js';
|
|
2
2
|
import { BackendResult } from '../types/responseTypes.js';
|
|
3
3
|
|
|
4
4
|
/** Result of identity resolution */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { createCoreHandler } from './handlers/coreHandler.mjs';
|
|
2
|
-
export { A as AuthResult,
|
|
2
|
+
export { A as AuthResult, a as CustomerData, c as CustomerId, R as ResolvedIdentity } from '../authTypes-CxFcWXh3.mjs';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.mjs';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.mjs';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn,
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, b as RouteDefinition } from '../routeTypes-CJUeRXwp.mjs';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.mjs';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.mjs';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.mjs';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export { createCoreHandler } from './handlers/coreHandler.js';
|
|
2
|
-
export { A as AuthResult,
|
|
2
|
+
export { A as AuthResult, a as CustomerData, c as CustomerId, R as ResolvedIdentity } from '../authTypes-CxFcWXh3.js';
|
|
3
3
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './types/handlerTypes.js';
|
|
4
4
|
export { BackendErrorBody, BackendResult } from './types/responseTypes.js';
|
|
5
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn,
|
|
5
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, b as RouteDefinition } from '../routeTypes-Dt3mcOiI.js';
|
|
6
6
|
export { HandleRouteByNameOptions, HandleRouteByNameResult, handleRouteByName } from './handlers/handleRouteByName.js';
|
|
7
7
|
export { buildRouter } from './routes/routeBuilder.js';
|
|
8
8
|
export { routeConfigs } from './routes/routeConfigs.js';
|
|
@@ -7473,12 +7473,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7473
7473
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7474
7474
|
),
|
|
7475
7475
|
search: z36.optional(z36.string()),
|
|
7476
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7476
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7477
|
+
customerId: z36.optional(z36.string())
|
|
7477
7478
|
}),
|
|
7478
7479
|
z36.transform((v) => {
|
|
7479
7480
|
return remap(v, {
|
|
7480
7481
|
startCursor: "start_cursor",
|
|
7481
|
-
subscriptionStatus: "subscription_status"
|
|
7482
|
+
subscriptionStatus: "subscription_status",
|
|
7483
|
+
customerId: "customer_id"
|
|
7482
7484
|
});
|
|
7483
7485
|
})
|
|
7484
7486
|
);
|
|
@@ -14967,7 +14969,7 @@ var Billing = class extends ClientSDK {
|
|
|
14967
14969
|
* @example
|
|
14968
14970
|
* ```typescript
|
|
14969
14971
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14970
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14972
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14971
14973
|
* ```
|
|
14972
14974
|
*
|
|
14973
14975
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16178,6 +16180,7 @@ var Entities = class extends ClientSDK {
|
|
|
16178
16180
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16179
16181
|
* @param search - Search entities by id or name. (optional)
|
|
16180
16182
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16183
|
+
* @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)
|
|
16181
16184
|
*
|
|
16182
16185
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16183
16186
|
*/
|
|
@@ -2,11 +2,11 @@ import "../chunk-WYDGEDEU.mjs";
|
|
|
2
2
|
import "../chunk-VXND2UDT.mjs";
|
|
3
3
|
import {
|
|
4
4
|
handleRouteByName
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-DBMOXEHI.mjs";
|
|
6
6
|
import {
|
|
7
7
|
createCoreHandler
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-65JYBYIK.mjs";
|
|
9
|
+
import "../chunk-QMO6VPQ3.mjs";
|
|
10
10
|
import "../chunk-55C2WWXQ.mjs";
|
|
11
11
|
import "../chunk-TBQ27LIK.mjs";
|
|
12
12
|
import "../chunk-J44WR3QZ.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.mjs';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.mjs';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
5
|
-
import '../../authTypes-
|
|
4
|
+
import '../../routeTypes-CJUeRXwp.mjs';
|
|
5
|
+
import '../../authTypes-CxFcWXh3.mjs';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../types/responseTypes.mjs';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { RouteMatch, buildRouter } from './routeBuilder.js';
|
|
2
2
|
export { routeConfigs } from './routeConfigs.js';
|
|
3
3
|
import 'rou3';
|
|
4
|
-
import '../../routeTypes-
|
|
5
|
-
import '../../authTypes-
|
|
4
|
+
import '../../routeTypes-Dt3mcOiI.js';
|
|
5
|
+
import '../../authTypes-CxFcWXh3.js';
|
|
6
6
|
import 'zod/v4';
|
|
7
7
|
import '../types/responseTypes.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import {
|
|
3
|
-
import '../../authTypes-
|
|
2
|
+
import { b as RouteDefinition } from '../../routeTypes-CJUeRXwp.mjs';
|
|
3
|
+
import '../../authTypes-CxFcWXh3.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../types/responseTypes.mjs';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RouterContext } from 'rou3';
|
|
2
|
-
import {
|
|
3
|
-
import '../../authTypes-
|
|
2
|
+
import { b as RouteDefinition } from '../../routeTypes-Dt3mcOiI.js';
|
|
3
|
+
import '../../authTypes-CxFcWXh3.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
import '../types/responseTypes.js';
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../authTypes-
|
|
1
|
+
import { b as RouteDefinition, c as RouteName } from '../../routeTypes-CJUeRXwp.mjs';
|
|
2
|
+
import '../../authTypes-CxFcWXh3.mjs';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../types/responseTypes.mjs';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import '../../authTypes-
|
|
1
|
+
import { b as RouteDefinition, c as RouteName } from '../../routeTypes-Dt3mcOiI.js';
|
|
2
|
+
import '../../authTypes-CxFcWXh3.js';
|
|
3
3
|
import 'zod/v4';
|
|
4
4
|
import '../types/responseTypes.js';
|
|
5
5
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AuthResult,
|
|
1
|
+
export { A as AuthResult, a as CustomerData, c as CustomerId, R as ResolvedIdentity } from '../../authTypes-CxFcWXh3.mjs';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AuthResult,
|
|
1
|
+
export { A as AuthResult, a as CustomerData, c as CustomerId, R as ResolvedIdentity } from '../../authTypes-CxFcWXh3.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AuthResult } from '../../authTypes-
|
|
2
|
-
import {
|
|
1
|
+
import { A as AuthResult } from '../../authTypes-CxFcWXh3.mjs';
|
|
2
|
+
import { b as RouteDefinition } from '../../routeTypes-CJUeRXwp.mjs';
|
|
3
3
|
import './responseTypes.mjs';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as AuthResult } from '../../authTypes-
|
|
2
|
-
import {
|
|
1
|
+
import { A as AuthResult } from '../../authTypes-CxFcWXh3.js';
|
|
2
|
+
import { b as RouteDefinition } from '../../routeTypes-Dt3mcOiI.js';
|
|
3
3
|
import './responseTypes.js';
|
|
4
4
|
import 'zod/v4';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AuthResult,
|
|
1
|
+
export { A as AuthResult, a as CustomerData, c as CustomerId, R as ResolvedIdentity } from '../../authTypes-CxFcWXh3.mjs';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.mjs';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.mjs';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn,
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as ROUTE_NAMES, b as RouteDefinition, c as RouteName } from '../../routeTypes-CJUeRXwp.mjs';
|
|
5
5
|
import 'zod/v4';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { A as AuthResult,
|
|
1
|
+
export { A as AuthResult, a as CustomerData, c as CustomerId, R as ResolvedIdentity } from '../../authTypes-CxFcWXh3.js';
|
|
2
2
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './handlerTypes.js';
|
|
3
3
|
export { BackendErrorBody, BackendResult } from './responseTypes.js';
|
|
4
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn,
|
|
4
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as ROUTE_NAMES, b as RouteDefinition, c as RouteName } from '../../routeTypes-Dt3mcOiI.js';
|
|
5
5
|
import 'zod/v4';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn,
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as ROUTE_NAMES, b as RouteDefinition, c as RouteName } from '../../routeTypes-CJUeRXwp.mjs';
|
|
2
2
|
import 'zod/v4';
|
|
3
|
-
import '../../authTypes-
|
|
3
|
+
import '../../authTypes-CxFcWXh3.mjs';
|
|
4
4
|
import './responseTypes.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn,
|
|
1
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn, R as ROUTE_NAMES, b as RouteDefinition, c as RouteName } from '../../routeTypes-Dt3mcOiI.js';
|
|
2
2
|
import 'zod/v4';
|
|
3
|
-
import '../../authTypes-
|
|
3
|
+
import '../../authTypes-CxFcWXh3.js';
|
|
4
4
|
import './responseTypes.js';
|
package/dist/backend/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { createCoreHandler } from './core/handlers/coreHandler.mjs';
|
|
2
|
-
import {
|
|
3
|
-
export { A as AuthResult,
|
|
2
|
+
import { a as CustomerData } from './authTypes-CxFcWXh3.mjs';
|
|
3
|
+
export { A as AuthResult, c as CustomerId, R as ResolvedIdentity } from './authTypes-CxFcWXh3.mjs';
|
|
4
4
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.mjs';
|
|
5
5
|
export { BackendErrorBody, BackendResult } from './core/types/responseTypes.mjs';
|
|
6
|
-
import {
|
|
7
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-
|
|
6
|
+
import { b as RouteDefinition } from './routeTypes-CJUeRXwp.mjs';
|
|
7
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-CJUeRXwp.mjs';
|
|
8
8
|
export { buildRouter } from './core/routes/routeBuilder.mjs';
|
|
9
9
|
export { routeConfigs } from './core/routes/routeConfigs.mjs';
|
|
10
10
|
export { secretKeyCheck } from './core/utils/secretKeyCheck.mjs';
|
package/dist/backend/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export { createCoreHandler } from './core/handlers/coreHandler.js';
|
|
2
|
-
import {
|
|
3
|
-
export { A as AuthResult,
|
|
2
|
+
import { a as CustomerData } from './authTypes-CxFcWXh3.js';
|
|
3
|
+
export { A as AuthResult, c as CustomerId, R as ResolvedIdentity } from './authTypes-CxFcWXh3.js';
|
|
4
4
|
export { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from './core/types/handlerTypes.js';
|
|
5
5
|
export { BackendErrorBody, BackendResult } from './core/types/responseTypes.js';
|
|
6
|
-
import {
|
|
7
|
-
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-
|
|
6
|
+
import { b as RouteDefinition } from './routeTypes-Dt3mcOiI.js';
|
|
7
|
+
export { C as CustomHandlerArgs, a as CustomHandlerFn } from './routeTypes-Dt3mcOiI.js';
|
|
8
8
|
export { buildRouter } from './core/routes/routeBuilder.js';
|
|
9
9
|
export { routeConfigs } from './core/routes/routeConfigs.js';
|
|
10
10
|
export { secretKeyCheck } from './core/utils/secretKeyCheck.js';
|
package/dist/backend/index.js
CHANGED
|
@@ -7473,12 +7473,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7473
7473
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7474
7474
|
),
|
|
7475
7475
|
search: z36.optional(z36.string()),
|
|
7476
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7476
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7477
|
+
customerId: z36.optional(z36.string())
|
|
7477
7478
|
}),
|
|
7478
7479
|
z36.transform((v) => {
|
|
7479
7480
|
return remap(v, {
|
|
7480
7481
|
startCursor: "start_cursor",
|
|
7481
|
-
subscriptionStatus: "subscription_status"
|
|
7482
|
+
subscriptionStatus: "subscription_status",
|
|
7483
|
+
customerId: "customer_id"
|
|
7482
7484
|
});
|
|
7483
7485
|
})
|
|
7484
7486
|
);
|
|
@@ -14967,7 +14969,7 @@ var Billing = class extends ClientSDK {
|
|
|
14967
14969
|
* @example
|
|
14968
14970
|
* ```typescript
|
|
14969
14971
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14970
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14972
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14971
14973
|
* ```
|
|
14972
14974
|
*
|
|
14973
14975
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16178,6 +16180,7 @@ var Entities = class extends ClientSDK {
|
|
|
16178
16180
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16179
16181
|
* @param search - Search entities by id or name. (optional)
|
|
16180
16182
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16183
|
+
* @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)
|
|
16181
16184
|
*
|
|
16182
16185
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16183
16186
|
*/
|
package/dist/backend/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-WYDGEDEU.mjs";
|
|
2
2
|
import "./chunk-VXND2UDT.mjs";
|
|
3
|
-
import "./chunk-
|
|
3
|
+
import "./chunk-DBMOXEHI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
createCoreHandler
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-65JYBYIK.mjs";
|
|
7
|
+
import "./chunk-QMO6VPQ3.mjs";
|
|
8
8
|
import "./chunk-55C2WWXQ.mjs";
|
|
9
9
|
import "./chunk-TBQ27LIK.mjs";
|
|
10
10
|
import "./chunk-J44WR3QZ.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, b as CustomerExpand, G as GetOrCreateCustomerParams, R as ResolvedIdentity } from './authTypes-CxFcWXh3.mjs';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { BackendResult } from './core/types/responseTypes.mjs';
|
|
4
4
|
|
|
@@ -8808,6 +8808,10 @@ type ListEntitiesParams = {
|
|
|
8808
8808
|
* Filter by parent customer processor type (stripe, revenuecat, vercel).
|
|
8809
8809
|
*/
|
|
8810
8810
|
processors?: Array<ListEntitiesProcessor> | undefined;
|
|
8811
|
+
/**
|
|
8812
|
+
* 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.
|
|
8813
|
+
*/
|
|
8814
|
+
customerId?: string | undefined;
|
|
8811
8815
|
};
|
|
8812
8816
|
/**
|
|
8813
8817
|
* The environment (sandbox/live)
|
|
@@ -16900,7 +16904,7 @@ declare class Billing extends ClientSDK {
|
|
|
16900
16904
|
* @example
|
|
16901
16905
|
* ```typescript
|
|
16902
16906
|
* // Schedule a transition from a trial plan to a paid plan
|
|
16903
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
16907
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
16904
16908
|
* ```
|
|
16905
16909
|
*
|
|
16906
16910
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -17239,6 +17243,7 @@ declare class Entities extends ClientSDK {
|
|
|
17239
17243
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
17240
17244
|
* @param search - Search entities by id or name. (optional)
|
|
17241
17245
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
17246
|
+
* @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)
|
|
17242
17247
|
*
|
|
17243
17248
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
17244
17249
|
*/
|
|
@@ -17740,4 +17745,4 @@ type RouteDefinition<T extends RouteName = RouteName> = {
|
|
|
17740
17745
|
bodySchema?: z.ZodTypeAny;
|
|
17741
17746
|
};
|
|
17742
17747
|
|
|
17743
|
-
export { Autumn as A, type CustomHandlerArgs as C,
|
|
17748
|
+
export { Autumn as A, type CustomHandlerArgs as C, ROUTE_NAMES as R, type CustomHandlerFn as a, type RouteDefinition as b, type RouteName as c };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as ClosedEnum, O as OpenEnum, b as CustomerExpand, G as GetOrCreateCustomerParams, R as ResolvedIdentity } from './authTypes-CxFcWXh3.js';
|
|
2
2
|
import { z } from 'zod/v4';
|
|
3
3
|
import { BackendResult } from './core/types/responseTypes.js';
|
|
4
4
|
|
|
@@ -8808,6 +8808,10 @@ type ListEntitiesParams = {
|
|
|
8808
8808
|
* Filter by parent customer processor type (stripe, revenuecat, vercel).
|
|
8809
8809
|
*/
|
|
8810
8810
|
processors?: Array<ListEntitiesProcessor> | undefined;
|
|
8811
|
+
/**
|
|
8812
|
+
* 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.
|
|
8813
|
+
*/
|
|
8814
|
+
customerId?: string | undefined;
|
|
8811
8815
|
};
|
|
8812
8816
|
/**
|
|
8813
8817
|
* The environment (sandbox/live)
|
|
@@ -16900,7 +16904,7 @@ declare class Billing extends ClientSDK {
|
|
|
16900
16904
|
* @example
|
|
16901
16905
|
* ```typescript
|
|
16902
16906
|
* // Schedule a transition from a trial plan to a paid plan
|
|
16903
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
16907
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
16904
16908
|
* ```
|
|
16905
16909
|
*
|
|
16906
16910
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -17239,6 +17243,7 @@ declare class Entities extends ClientSDK {
|
|
|
17239
17243
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
17240
17244
|
* @param search - Search entities by id or name. (optional)
|
|
17241
17245
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
17246
|
+
* @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)
|
|
17242
17247
|
*
|
|
17243
17248
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
17244
17249
|
*/
|
|
@@ -17740,4 +17745,4 @@ type RouteDefinition<T extends RouteName = RouteName> = {
|
|
|
17740
17745
|
bodySchema?: z.ZodTypeAny;
|
|
17741
17746
|
};
|
|
17742
17747
|
|
|
17743
|
-
export { Autumn as A, type CustomHandlerArgs as C,
|
|
17748
|
+
export { Autumn as A, type CustomHandlerArgs as C, ROUTE_NAMES as R, type CustomHandlerFn as a, type RouteDefinition as b, type RouteName as c };
|
|
@@ -7447,12 +7447,14 @@ var ListEntitiesParams$outboundSchema = z36.pipe(
|
|
|
7447
7447
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
7448
7448
|
),
|
|
7449
7449
|
search: z36.optional(z36.string()),
|
|
7450
|
-
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema))
|
|
7450
|
+
processors: z36.optional(z36.array(ListEntitiesProcessor$outboundSchema)),
|
|
7451
|
+
customerId: z36.optional(z36.string())
|
|
7451
7452
|
}),
|
|
7452
7453
|
z36.transform((v) => {
|
|
7453
7454
|
return remap(v, {
|
|
7454
7455
|
startCursor: "start_cursor",
|
|
7455
|
-
subscriptionStatus: "subscription_status"
|
|
7456
|
+
subscriptionStatus: "subscription_status",
|
|
7457
|
+
customerId: "customer_id"
|
|
7456
7458
|
});
|
|
7457
7459
|
})
|
|
7458
7460
|
);
|
|
@@ -14941,7 +14943,7 @@ var Billing = class extends ClientSDK {
|
|
|
14941
14943
|
* @example
|
|
14942
14944
|
* ```typescript
|
|
14943
14945
|
* // Schedule a transition from a trial plan to a paid plan
|
|
14944
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
14946
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
14945
14947
|
* ```
|
|
14946
14948
|
*
|
|
14947
14949
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -16152,6 +16154,7 @@ var Entities = class extends ClientSDK {
|
|
|
16152
16154
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
16153
16155
|
* @param search - Search entities by id or name. (optional)
|
|
16154
16156
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
16157
|
+
* @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)
|
|
16155
16158
|
*
|
|
16156
16159
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
16157
16160
|
*/
|
|
@@ -10700,12 +10700,14 @@ var ListEntitiesParams$outboundSchema = z52.pipe(
|
|
|
10700
10700
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
10701
10701
|
),
|
|
10702
10702
|
search: z52.optional(z52.string()),
|
|
10703
|
-
processors: z52.optional(z52.array(ListEntitiesProcessor$outboundSchema))
|
|
10703
|
+
processors: z52.optional(z52.array(ListEntitiesProcessor$outboundSchema)),
|
|
10704
|
+
customerId: z52.optional(z52.string())
|
|
10704
10705
|
}),
|
|
10705
10706
|
z52.transform((v) => {
|
|
10706
10707
|
return remap(v, {
|
|
10707
10708
|
startCursor: "start_cursor",
|
|
10708
|
-
subscriptionStatus: "subscription_status"
|
|
10709
|
+
subscriptionStatus: "subscription_status",
|
|
10710
|
+
customerId: "customer_id"
|
|
10709
10711
|
});
|
|
10710
10712
|
})
|
|
10711
10713
|
);
|
|
@@ -18194,7 +18196,7 @@ var Billing = class extends ClientSDK {
|
|
|
18194
18196
|
* @example
|
|
18195
18197
|
* ```typescript
|
|
18196
18198
|
* // Schedule a transition from a trial plan to a paid plan
|
|
18197
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
18199
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
18198
18200
|
* ```
|
|
18199
18201
|
*
|
|
18200
18202
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19405,6 +19407,7 @@ var Entities = class extends ClientSDK {
|
|
|
19405
19407
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
19406
19408
|
* @param search - Search entities by id or name. (optional)
|
|
19407
19409
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
19410
|
+
* @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)
|
|
19408
19411
|
*
|
|
19409
19412
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
19410
19413
|
*/
|
|
@@ -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
|
*/
|
|
@@ -10704,12 +10704,14 @@ var ListEntitiesParams$outboundSchema = z52.pipe(
|
|
|
10704
10704
|
ListEntitiesSubscriptionStatus$outboundSchema
|
|
10705
10705
|
),
|
|
10706
10706
|
search: z52.optional(z52.string()),
|
|
10707
|
-
processors: z52.optional(z52.array(ListEntitiesProcessor$outboundSchema))
|
|
10707
|
+
processors: z52.optional(z52.array(ListEntitiesProcessor$outboundSchema)),
|
|
10708
|
+
customerId: z52.optional(z52.string())
|
|
10708
10709
|
}),
|
|
10709
10710
|
z52.transform((v) => {
|
|
10710
10711
|
return remap(v, {
|
|
10711
10712
|
startCursor: "start_cursor",
|
|
10712
|
-
subscriptionStatus: "subscription_status"
|
|
10713
|
+
subscriptionStatus: "subscription_status",
|
|
10714
|
+
customerId: "customer_id"
|
|
10713
10715
|
});
|
|
10714
10716
|
})
|
|
10715
10717
|
);
|
|
@@ -18198,7 +18200,7 @@ var Billing = class extends ClientSDK {
|
|
|
18198
18200
|
* @example
|
|
18199
18201
|
* ```typescript
|
|
18200
18202
|
* // Schedule a transition from a trial plan to a paid plan
|
|
18201
|
-
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":
|
|
18203
|
+
* const response = await client.billing.createSchedule({ customerId: "cus_123", phases: [{"startsAt":1779472610002,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780682210002,"plans":[{"planId":"pro_plan"}]}] });
|
|
18202
18204
|
* ```
|
|
18203
18205
|
*
|
|
18204
18206
|
* @param customerId - The ID of the customer to create the schedule for.
|
|
@@ -19409,6 +19411,7 @@ var Entities = class extends ClientSDK {
|
|
|
19409
19411
|
* @param subscriptionStatus - Filter customer products used for entity hydration and plan matching. Defaults to active and scheduled. (optional)
|
|
19410
19412
|
* @param search - Search entities by id or name. (optional)
|
|
19411
19413
|
* @param processors - Filter by parent customer processor type (stripe, revenuecat, vercel). (optional)
|
|
19414
|
+
* @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)
|
|
19412
19415
|
*
|
|
19413
19416
|
* @returns A paginated list of entity objects including their current subscriptions, purchases, balances, and flags.
|
|
19414
19417
|
*/
|