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.
Files changed (152) hide show
  1. package/dist/backend/adapters/express.d.mts +1 -1
  2. package/dist/backend/adapters/express.d.ts +1 -1
  3. package/dist/backend/adapters/express.js +6 -3
  4. package/dist/backend/adapters/express.mjs +4 -4
  5. package/dist/backend/adapters/fetch.d.mts +1 -1
  6. package/dist/backend/adapters/fetch.d.ts +1 -1
  7. package/dist/backend/adapters/fetch.js +6 -3
  8. package/dist/backend/adapters/fetch.mjs +4 -4
  9. package/dist/backend/adapters/hono.d.mts +1 -1
  10. package/dist/backend/adapters/hono.d.ts +1 -1
  11. package/dist/backend/adapters/hono.js +6 -3
  12. package/dist/backend/adapters/hono.mjs +4 -4
  13. package/dist/backend/adapters/index.d.mts +1 -1
  14. package/dist/backend/adapters/index.d.ts +1 -1
  15. package/dist/backend/adapters/index.js +6 -3
  16. package/dist/backend/adapters/index.mjs +7 -7
  17. package/dist/backend/adapters/next.d.mts +1 -1
  18. package/dist/backend/adapters/next.d.ts +1 -1
  19. package/dist/backend/adapters/next.js +6 -3
  20. package/dist/backend/adapters/next.mjs +4 -4
  21. package/dist/backend/{authTypes-B7b2mex1.d.mts → authTypes-CxFcWXh3.d.mts} +1 -1
  22. package/dist/backend/{authTypes-B7b2mex1.d.ts → authTypes-CxFcWXh3.d.ts} +1 -1
  23. package/dist/backend/{chunk-ZVZEA5YL.mjs → chunk-65JYBYIK.mjs} +1 -1
  24. package/dist/backend/{chunk-LJZUMUU3.mjs → chunk-DBMOXEHI.mjs} +1 -1
  25. package/dist/backend/{chunk-TJ7TRWN4.mjs → chunk-LFEAY3XJ.mjs} +1 -1
  26. package/dist/backend/{chunk-MPNJ2AXO.mjs → chunk-LTHZJCGX.mjs} +1 -1
  27. package/dist/backend/{chunk-UCGI7CYU.mjs → chunk-QMO6VPQ3.mjs} +6 -3
  28. package/dist/backend/{chunk-KJTWQSMK.mjs → chunk-QOX2POZP.mjs} +1 -1
  29. package/dist/backend/{chunk-D4BQG3DH.mjs → chunk-R6QKB5RX.mjs} +1 -1
  30. package/dist/backend/core/handlers/coreHandler.d.mts +2 -2
  31. package/dist/backend/core/handlers/coreHandler.d.ts +2 -2
  32. package/dist/backend/core/handlers/coreHandler.js +6 -3
  33. package/dist/backend/core/handlers/coreHandler.mjs +2 -2
  34. package/dist/backend/core/handlers/executeRoute.d.mts +2 -2
  35. package/dist/backend/core/handlers/executeRoute.d.ts +2 -2
  36. package/dist/backend/core/handlers/handleRouteByName.d.mts +1 -1
  37. package/dist/backend/core/handlers/handleRouteByName.d.ts +1 -1
  38. package/dist/backend/core/handlers/handleRouteByName.js +6 -3
  39. package/dist/backend/core/handlers/handleRouteByName.mjs +2 -2
  40. package/dist/backend/core/handlers/index.d.mts +2 -2
  41. package/dist/backend/core/handlers/index.d.ts +2 -2
  42. package/dist/backend/core/handlers/index.js +6 -3
  43. package/dist/backend/core/handlers/index.mjs +3 -3
  44. package/dist/backend/core/handlers/resolveIdentity.d.mts +1 -1
  45. package/dist/backend/core/handlers/resolveIdentity.d.ts +1 -1
  46. package/dist/backend/core/index.d.mts +2 -2
  47. package/dist/backend/core/index.d.ts +2 -2
  48. package/dist/backend/core/index.js +6 -3
  49. package/dist/backend/core/index.mjs +3 -3
  50. package/dist/backend/core/routes/index.d.mts +2 -2
  51. package/dist/backend/core/routes/index.d.ts +2 -2
  52. package/dist/backend/core/routes/routeBuilder.d.mts +2 -2
  53. package/dist/backend/core/routes/routeBuilder.d.ts +2 -2
  54. package/dist/backend/core/routes/routeConfigs.d.mts +2 -2
  55. package/dist/backend/core/routes/routeConfigs.d.ts +2 -2
  56. package/dist/backend/core/types/authTypes.d.mts +1 -1
  57. package/dist/backend/core/types/authTypes.d.ts +1 -1
  58. package/dist/backend/core/types/handlerTypes.d.mts +2 -2
  59. package/dist/backend/core/types/handlerTypes.d.ts +2 -2
  60. package/dist/backend/core/types/index.d.mts +2 -2
  61. package/dist/backend/core/types/index.d.ts +2 -2
  62. package/dist/backend/core/types/routeTypes.d.mts +2 -2
  63. package/dist/backend/core/types/routeTypes.d.ts +2 -2
  64. package/dist/backend/index.d.mts +4 -4
  65. package/dist/backend/index.d.ts +4 -4
  66. package/dist/backend/index.js +6 -3
  67. package/dist/backend/index.mjs +3 -3
  68. package/dist/backend/{routeTypes-BcR8yEXe.d.mts → routeTypes-CJUeRXwp.d.mts} +8 -3
  69. package/dist/backend/{routeTypes-CXj2d3BE.d.ts → routeTypes-Dt3mcOiI.d.ts} +8 -3
  70. package/dist/better-auth/{chunk-EFVPBRMR.mjs → chunk-SJGCFMIB.mjs} +6 -3
  71. package/dist/better-auth/index.js +6 -3
  72. package/dist/better-auth/index.mjs +1 -1
  73. package/dist/better-auth/utils/handleBetterAuthRoute.js +6 -3
  74. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +1 -1
  75. package/dist/better-auth/utils/index.js +6 -3
  76. package/dist/better-auth/utils/index.mjs +1 -1
  77. package/dist/react/AutumnContext.d.mts +3 -3
  78. package/dist/react/AutumnContext.d.ts +3 -3
  79. package/dist/react/AutumnProvider.js +15 -15
  80. package/dist/react/AutumnProvider.mjs +2 -2
  81. package/dist/react/{chunk-7IDH4OMG.mjs → chunk-26CKSAPZ.mjs} +1 -1
  82. package/dist/react/{chunk-NSFHAUTD.mjs → chunk-CHU7CIWP.mjs} +1 -1
  83. package/dist/react/{chunk-YQFYWH7J.mjs → chunk-G7FTQLT7.mjs} +1 -1
  84. package/dist/react/{chunk-BDG6JHEW.mjs → chunk-HSQUB3BZ.mjs} +1 -1
  85. package/dist/react/{chunk-DEZBJQEG.mjs → chunk-KB72KQKN.mjs} +1 -1
  86. package/dist/react/{chunk-FWWIAOPU.mjs → chunk-OXQG65ZT.mjs} +1 -1
  87. package/dist/react/{chunk-HRPQYDEN.mjs → chunk-P23DM4IS.mjs} +1 -1
  88. package/dist/react/{chunk-E5ZHOMZ4.mjs → chunk-XJZH5NMZ.mjs} +23 -23
  89. package/dist/react/{chunk-HVBDZARN.mjs → chunk-ZGPE4R6H.mjs} +2 -2
  90. package/dist/react/client/AutumnClient.d.mts +3 -3
  91. package/dist/react/client/AutumnClient.d.ts +3 -3
  92. package/dist/react/client/IAutumnClient.d.mts +3 -3
  93. package/dist/react/client/IAutumnClient.d.ts +3 -3
  94. package/dist/react/client/index.d.mts +3 -3
  95. package/dist/react/client/index.d.ts +3 -3
  96. package/dist/react/{customer-zogPdrbc.d.ts → customer-BI_KaaNd.d.ts} +1 -1
  97. package/dist/react/{customer-BTYGVzNm.d.mts → customer-BR2cYBBM.d.mts} +1 -1
  98. package/dist/react/hooks/index.d.mts +3 -3
  99. package/dist/react/hooks/index.d.ts +3 -3
  100. package/dist/react/hooks/index.js +16 -16
  101. package/dist/react/hooks/index.mjs +8 -8
  102. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  103. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  104. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  105. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  106. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  107. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  108. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  109. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  110. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  111. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  112. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  113. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  114. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  115. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  116. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  117. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  118. package/dist/react/hooks/useAggregateEvents.js +16 -16
  119. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  120. package/dist/react/hooks/useCustomer.d.mts +3 -3
  121. package/dist/react/hooks/useCustomer.d.ts +3 -3
  122. package/dist/react/hooks/useCustomer.js +16 -16
  123. package/dist/react/hooks/useCustomer.mjs +3 -3
  124. package/dist/react/hooks/useEntity.d.mts +2 -2
  125. package/dist/react/hooks/useEntity.d.ts +2 -2
  126. package/dist/react/hooks/useEntity.js +16 -16
  127. package/dist/react/hooks/useEntity.mjs +2 -2
  128. package/dist/react/hooks/useListEvents.d.mts +2 -2
  129. package/dist/react/hooks/useListEvents.d.ts +2 -2
  130. package/dist/react/hooks/useListEvents.js +16 -16
  131. package/dist/react/hooks/useListEvents.mjs +2 -2
  132. package/dist/react/hooks/useListPlans.d.mts +2 -2
  133. package/dist/react/hooks/useListPlans.d.ts +2 -2
  134. package/dist/react/hooks/useListPlans.js +16 -16
  135. package/dist/react/hooks/useListPlans.mjs +2 -2
  136. package/dist/react/hooks/useReferrals.d.mts +2 -2
  137. package/dist/react/hooks/useReferrals.d.ts +2 -2
  138. package/dist/react/hooks/useReferrals.js +16 -16
  139. package/dist/react/hooks/useReferrals.mjs +2 -2
  140. package/dist/react/index.d.mts +3 -3
  141. package/dist/react/index.d.ts +3 -3
  142. package/dist/react/index.js +22 -22
  143. package/dist/react/index.mjs +9 -9
  144. package/dist/react/{params-DWJn7Y2f.d.ts → params-BF_KxGYE.d.ts} +2 -2
  145. package/dist/react/{params-DpI-uEQy.d.mts → params-Bvc4DjLZ.d.mts} +2 -2
  146. package/dist/react/{plan-DYHM9lBi.d.mts → plan-CRa-NBw0.d.mts} +1 -1
  147. package/dist/react/{plan-DYHM9lBi.d.ts → plan-CRa-NBw0.d.ts} +1 -1
  148. package/dist/sdk/index.d.mts +7 -1
  149. package/dist/sdk/index.d.ts +7 -1
  150. package/dist/sdk/index.js +6 -3
  151. package/dist/sdk/index.mjs +6 -3
  152. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { Request, RequestHandler } from 'express';
2
- import { A as AuthResult } from '../authTypes-B7b2mex1.mjs';
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-B7b2mex1.js';
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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-MPNJ2AXO.mjs";
3
+ } from "../chunk-LTHZJCGX.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-LJZUMUU3.mjs";
7
- import "../chunk-ZVZEA5YL.mjs";
8
- import "../chunk-UCGI7CYU.mjs";
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,4 +1,4 @@
1
- import { A as AuthResult } from '../authTypes-B7b2mex1.mjs';
1
+ import { A as AuthResult } from '../authTypes-CxFcWXh3.mjs';
2
2
 
3
3
  type FetchAutumnHandlerOptions = {
4
4
  /** Function to identify the customer from the request */
@@ -1,4 +1,4 @@
1
- import { A as AuthResult } from '../authTypes-B7b2mex1.js';
1
+ import { A as AuthResult } from '../authTypes-CxFcWXh3.js';
2
2
 
3
3
  type FetchAutumnHandlerOptions = {
4
4
  /** 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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-KJTWQSMK.mjs";
3
+ } from "../chunk-QOX2POZP.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-LJZUMUU3.mjs";
7
- import "../chunk-ZVZEA5YL.mjs";
8
- import "../chunk-UCGI7CYU.mjs";
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-B7b2mex1.mjs';
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-B7b2mex1.js';
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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-TJ7TRWN4.mjs";
3
+ } from "../chunk-LFEAY3XJ.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-LJZUMUU3.mjs";
7
- import "../chunk-ZVZEA5YL.mjs";
8
- import "../chunk-UCGI7CYU.mjs";
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-B7b2mex1.mjs';
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-B7b2mex1.js';
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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-MPNJ2AXO.mjs";
3
+ } from "../chunk-LTHZJCGX.mjs";
4
4
  import {
5
5
  autumnHandler as autumnHandler2
6
- } from "../chunk-KJTWQSMK.mjs";
6
+ } from "../chunk-QOX2POZP.mjs";
7
7
  import {
8
8
  autumnHandler as autumnHandler3
9
- } from "../chunk-TJ7TRWN4.mjs";
9
+ } from "../chunk-LFEAY3XJ.mjs";
10
10
  import {
11
11
  autumnHandler as autumnHandler4
12
- } from "../chunk-D4BQG3DH.mjs";
12
+ } from "../chunk-R6QKB5RX.mjs";
13
13
  import "../chunk-WYDGEDEU.mjs";
14
14
  import "../chunk-VXND2UDT.mjs";
15
- import "../chunk-LJZUMUU3.mjs";
16
- import "../chunk-ZVZEA5YL.mjs";
17
- import "../chunk-UCGI7CYU.mjs";
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";
@@ -1,5 +1,5 @@
1
1
  import { NextResponse } from 'next/server';
2
- import { A as AuthResult } from '../authTypes-B7b2mex1.mjs';
2
+ import { A as AuthResult } from '../authTypes-CxFcWXh3.mjs';
3
3
 
4
4
  type NextAutumnHandlerOptions = {
5
5
  /** Function to identify the customer from the request */
@@ -1,5 +1,5 @@
1
1
  import { NextResponse } from 'next/server';
2
- import { A as AuthResult } from '../authTypes-B7b2mex1.js';
2
+ import { A as AuthResult } from '../authTypes-CxFcWXh3.js';
3
3
 
4
4
  type NextAutumnHandlerOptions = {
5
5
  /** Function to identify the customer from the request */
@@ -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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-D4BQG3DH.mjs";
3
+ } from "../chunk-R6QKB5RX.mjs";
4
4
  import "../chunk-WYDGEDEU.mjs";
5
5
  import "../chunk-VXND2UDT.mjs";
6
- import "../chunk-LJZUMUU3.mjs";
7
- import "../chunk-ZVZEA5YL.mjs";
8
- import "../chunk-UCGI7CYU.mjs";
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 CustomerData as C, type GetOrCreateCustomerParams as G, type OpenEnum as O, type ResolvedIdentity as R, type CustomerId as a, type ClosedEnum as b, CustomerExpand as c };
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 CustomerData as C, type GetOrCreateCustomerParams as G, type OpenEnum as O, type ResolvedIdentity as R, type CustomerId as a, type ClosedEnum as b, CustomerExpand as c };
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 };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-UCGI7CYU.mjs";
3
+ } from "./chunk-QMO6VPQ3.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-55C2WWXQ.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Autumn
3
- } from "./chunk-UCGI7CYU.mjs";
3
+ } from "./chunk-QMO6VPQ3.mjs";
4
4
  import {
5
5
  executeRoute
6
6
  } from "./chunk-55C2WWXQ.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ZVZEA5YL.mjs";
3
+ } from "./chunk-65JYBYIK.mjs";
4
4
 
5
5
  // src/backend/adapters/hono.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ZVZEA5YL.mjs";
3
+ } from "./chunk-65JYBYIK.mjs";
4
4
 
5
5
  // src/backend/adapters/express.ts
6
6
  function autumnHandler(options) {
@@ -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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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 {
2
2
  createCoreHandler
3
- } from "./chunk-ZVZEA5YL.mjs";
3
+ } from "./chunk-65JYBYIK.mjs";
4
4
 
5
5
  // src/backend/adapters/fetch.ts
6
6
  function autumnHandler(options) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createCoreHandler
3
- } from "./chunk-ZVZEA5YL.mjs";
3
+ } from "./chunk-65JYBYIK.mjs";
4
4
 
5
5
  // src/backend/adapters/next.ts
6
6
  import { NextResponse } from "next/server";
@@ -1,6 +1,6 @@
1
1
  import { CoreHandlerOptions, UnifiedRequest, UnifiedResponse } from '../types/handlerTypes.mjs';
2
- import '../../authTypes-B7b2mex1.mjs';
3
- import '../../routeTypes-BcR8yEXe.mjs';
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-B7b2mex1.js';
3
- import '../../routeTypes-CXj2d3BE.js';
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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-ZVZEA5YL.mjs";
4
- import "../../chunk-UCGI7CYU.mjs";
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, R as RouteDefinition } from '../../routeTypes-BcR8yEXe.mjs';
2
- import { A as AuthResult } from '../../authTypes-B7b2mex1.mjs';
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, R as RouteDefinition } from '../../routeTypes-CXj2d3BE.js';
2
- import { A as AuthResult } from '../../authTypes-B7b2mex1.js';
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
 
@@ -1,4 +1,4 @@
1
- import { A as AuthResult } from '../../authTypes-B7b2mex1.mjs';
1
+ import { A as AuthResult } from '../../authTypes-CxFcWXh3.mjs';
2
2
 
3
3
  type HandleRouteByNameOptions = {
4
4
  /** Route name to execute (e.g. "customers.get_or_create") */
@@ -1,4 +1,4 @@
1
- import { A as AuthResult } from '../../authTypes-B7b2mex1.js';
1
+ import { A as AuthResult } from '../../authTypes-CxFcWXh3.js';
2
2
 
3
3
  type HandleRouteByNameOptions = {
4
4
  /** Route name to execute (e.g. "customers.get_or_create") */
@@ -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":1779303143711,"plans":[{"planId":"trial_plan"}]},{"startsAt":1780512743711,"plans":[{"planId":"pro_plan"}]}] });
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-LJZUMUU3.mjs";
4
- import "../../chunk-UCGI7CYU.mjs";
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-B7b2mex1.mjs';
8
- import '../../routeTypes-BcR8yEXe.mjs';
7
+ import '../../authTypes-CxFcWXh3.mjs';
8
+ import '../../routeTypes-CJUeRXwp.mjs';
9
9
  import 'zod/v4';
10
10
  import '../types/responseTypes.mjs';