autumn-js 1.2.12 → 1.2.13

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 (159) hide show
  1. package/dist/backend/adapters/express.js +91 -4
  2. package/dist/backend/adapters/express.mjs +6 -6
  3. package/dist/backend/adapters/fetch.js +91 -4
  4. package/dist/backend/adapters/fetch.mjs +6 -6
  5. package/dist/backend/adapters/hono.js +91 -4
  6. package/dist/backend/adapters/hono.mjs +6 -6
  7. package/dist/backend/adapters/index.js +91 -4
  8. package/dist/backend/adapters/index.mjs +9 -9
  9. package/dist/backend/adapters/next.js +91 -4
  10. package/dist/backend/adapters/next.mjs +6 -6
  11. package/dist/backend/{chunk-JQX5WYYY.mjs → chunk-7BVATYGA.mjs} +1 -1
  12. package/dist/backend/{chunk-7Q77N2K2.mjs → chunk-DNNJOZAT.mjs} +1 -1
  13. package/dist/backend/{chunk-N53PKNZ6.mjs → chunk-EJGHP7KT.mjs} +2 -2
  14. package/dist/backend/{chunk-X4LPDDOP.mjs → chunk-MANTLPDT.mjs} +4 -0
  15. package/dist/backend/{chunk-4Q54RXI2.mjs → chunk-OUDB34Y7.mjs} +1 -1
  16. package/dist/backend/{chunk-SE5CK5NY.mjs → chunk-RPH5L44S.mjs} +1 -1
  17. package/dist/backend/{chunk-UEYDU64U.mjs → chunk-T42RZEUZ.mjs} +87 -4
  18. package/dist/backend/{chunk-ITXMMCSD.mjs → chunk-YSQQKZBU.mjs} +2 -2
  19. package/dist/backend/core/handlers/coreHandler.d.mts +1 -1
  20. package/dist/backend/core/handlers/coreHandler.d.ts +1 -1
  21. package/dist/backend/core/handlers/coreHandler.js +91 -4
  22. package/dist/backend/core/handlers/coreHandler.mjs +4 -4
  23. package/dist/backend/core/handlers/executeRoute.d.mts +1 -1
  24. package/dist/backend/core/handlers/executeRoute.d.ts +1 -1
  25. package/dist/backend/core/handlers/executeRoute.mjs +1 -1
  26. package/dist/backend/core/handlers/handleRouteByName.js +91 -4
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +4 -4
  28. package/dist/backend/core/handlers/index.d.mts +1 -1
  29. package/dist/backend/core/handlers/index.d.ts +1 -1
  30. package/dist/backend/core/handlers/index.js +91 -4
  31. package/dist/backend/core/handlers/index.mjs +5 -5
  32. package/dist/backend/core/index.d.mts +1 -1
  33. package/dist/backend/core/index.d.ts +1 -1
  34. package/dist/backend/core/index.js +91 -4
  35. package/dist/backend/core/index.mjs +7 -7
  36. package/dist/backend/core/routes/index.d.mts +1 -1
  37. package/dist/backend/core/routes/index.d.ts +1 -1
  38. package/dist/backend/core/routes/index.js +4 -0
  39. package/dist/backend/core/routes/index.mjs +2 -2
  40. package/dist/backend/core/routes/routeBuilder.d.mts +1 -1
  41. package/dist/backend/core/routes/routeBuilder.d.ts +1 -1
  42. package/dist/backend/core/routes/routeConfigs.d.mts +1 -1
  43. package/dist/backend/core/routes/routeConfigs.d.ts +1 -1
  44. package/dist/backend/core/routes/routeConfigs.js +4 -0
  45. package/dist/backend/core/routes/routeConfigs.mjs +2 -2
  46. package/dist/backend/core/types/handlerTypes.d.mts +1 -1
  47. package/dist/backend/core/types/handlerTypes.d.ts +1 -1
  48. package/dist/backend/core/types/index.d.mts +1 -1
  49. package/dist/backend/core/types/index.d.ts +1 -1
  50. package/dist/backend/core/types/routeTypes.d.mts +1 -1
  51. package/dist/backend/core/types/routeTypes.d.ts +1 -1
  52. package/dist/backend/core/utils/index.mjs +3 -3
  53. package/dist/backend/index.d.mts +2 -2
  54. package/dist/backend/index.d.ts +2 -2
  55. package/dist/backend/index.js +91 -4
  56. package/dist/backend/index.mjs +7 -7
  57. package/dist/backend/{routeTypes-D0ag5-Tb.d.ts → routeTypes-B94_Mq2J.d.ts} +93 -0
  58. package/dist/backend/{routeTypes-Cu-XQy7A.d.mts → routeTypes-DVwngaBn.d.mts} +93 -0
  59. package/dist/better-auth/{chunk-TEP6CVHR.mjs → chunk-4OWECHZC.mjs} +1 -1
  60. package/dist/better-auth/{chunk-GKUK5UGW.mjs → chunk-JIFD4TSN.mjs} +4 -0
  61. package/dist/better-auth/{chunk-XFATOIZD.mjs → chunk-ZZGFPTHO.mjs} +88 -5
  62. package/dist/better-auth/client.d.mts +3 -7
  63. package/dist/better-auth/client.d.ts +3 -7
  64. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.mts +43 -0
  65. package/dist/better-auth/createAutumnEndpoint-CvXRCg-M.d.ts +43 -0
  66. package/dist/better-auth/index.d.mts +3 -7
  67. package/dist/better-auth/index.d.ts +3 -7
  68. package/dist/better-auth/index.js +91 -4
  69. package/dist/better-auth/index.mjs +3 -3
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +3 -7
  71. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +3 -7
  72. package/dist/better-auth/utils/createAutumnEndpoint.js +4 -0
  73. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +3 -7
  75. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +3 -7
  76. package/dist/better-auth/utils/handleBetterAuthRoute.js +91 -4
  77. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  78. package/dist/better-auth/utils/index.d.mts +3 -8
  79. package/dist/better-auth/utils/index.d.ts +3 -8
  80. package/dist/better-auth/utils/index.js +91 -4
  81. package/dist/better-auth/utils/index.mjs +3 -3
  82. package/dist/react/AutumnContext.d.mts +3 -3
  83. package/dist/react/AutumnContext.d.ts +3 -3
  84. package/dist/react/AutumnProvider.js +15 -15
  85. package/dist/react/AutumnProvider.mjs +2 -2
  86. package/dist/react/{chunk-26CKSAPZ.mjs → chunk-7IDH4OMG.mjs} +1 -1
  87. package/dist/react/{chunk-HSQUB3BZ.mjs → chunk-BDG6JHEW.mjs} +1 -1
  88. package/dist/react/{chunk-KB72KQKN.mjs → chunk-DEZBJQEG.mjs} +1 -1
  89. package/dist/react/{chunk-XJZH5NMZ.mjs → chunk-E5ZHOMZ4.mjs} +23 -23
  90. package/dist/react/{chunk-OXQG65ZT.mjs → chunk-FWWIAOPU.mjs} +1 -1
  91. package/dist/react/{chunk-ZGPE4R6H.mjs → chunk-HVBDZARN.mjs} +2 -2
  92. package/dist/react/{chunk-MC2YYATT.mjs → chunk-J6SLKTKE.mjs} +1 -1
  93. package/dist/react/{chunk-CHU7CIWP.mjs → chunk-NSFHAUTD.mjs} +1 -1
  94. package/dist/react/{chunk-G7FTQLT7.mjs → chunk-YQFYWH7J.mjs} +1 -1
  95. package/dist/react/client/AutumnClient.d.mts +3 -3
  96. package/dist/react/client/AutumnClient.d.ts +3 -3
  97. package/dist/react/client/IAutumnClient.d.mts +16 -3
  98. package/dist/react/client/IAutumnClient.d.ts +16 -3
  99. package/dist/react/client/index.d.mts +3 -3
  100. package/dist/react/client/index.d.ts +3 -3
  101. package/dist/react/{customer-CbcVyRCQ.d.ts → customer-CaGJEN5J.d.ts} +1 -1
  102. package/dist/react/{customer-BYYt9N1h.d.mts → customer-DB8vL_m7.d.mts} +1 -1
  103. package/dist/react/hooks/index.d.mts +3 -3
  104. package/dist/react/hooks/index.d.ts +3 -3
  105. package/dist/react/hooks/index.js +16 -16
  106. package/dist/react/hooks/index.mjs +8 -8
  107. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +2 -2
  108. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +2 -2
  109. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +2 -2
  110. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +2 -2
  111. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +2 -2
  112. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +2 -2
  113. package/dist/react/hooks/internal/check/getCreditCost.d.mts +2 -2
  114. package/dist/react/hooks/internal/check/getCreditCost.d.ts +2 -2
  115. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +3 -3
  116. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +3 -3
  117. package/dist/react/hooks/internal/useCustomerActions.d.mts +3 -3
  118. package/dist/react/hooks/internal/useCustomerActions.d.ts +3 -3
  119. package/dist/react/hooks/internal/useCustomerActions.js +1 -1
  120. package/dist/react/hooks/internal/useCustomerActions.mjs +2 -2
  121. package/dist/react/hooks/useAggregateEvents.d.mts +2 -2
  122. package/dist/react/hooks/useAggregateEvents.d.ts +2 -2
  123. package/dist/react/hooks/useAggregateEvents.js +16 -16
  124. package/dist/react/hooks/useAggregateEvents.mjs +2 -2
  125. package/dist/react/hooks/useCustomer.d.mts +3 -3
  126. package/dist/react/hooks/useCustomer.d.ts +3 -3
  127. package/dist/react/hooks/useCustomer.js +16 -16
  128. package/dist/react/hooks/useCustomer.mjs +3 -3
  129. package/dist/react/hooks/useEntity.d.mts +2 -2
  130. package/dist/react/hooks/useEntity.d.ts +2 -2
  131. package/dist/react/hooks/useEntity.js +16 -16
  132. package/dist/react/hooks/useEntity.mjs +2 -2
  133. package/dist/react/hooks/useListEvents.d.mts +2 -2
  134. package/dist/react/hooks/useListEvents.d.ts +2 -2
  135. package/dist/react/hooks/useListEvents.js +16 -16
  136. package/dist/react/hooks/useListEvents.mjs +2 -2
  137. package/dist/react/hooks/useListPlans.d.mts +2 -2
  138. package/dist/react/hooks/useListPlans.d.ts +2 -2
  139. package/dist/react/hooks/useListPlans.js +16 -16
  140. package/dist/react/hooks/useListPlans.mjs +2 -2
  141. package/dist/react/hooks/useReferrals.d.mts +2 -2
  142. package/dist/react/hooks/useReferrals.d.ts +2 -2
  143. package/dist/react/hooks/useReferrals.js +16 -16
  144. package/dist/react/hooks/useReferrals.mjs +2 -2
  145. package/dist/react/index.d.mts +3 -3
  146. package/dist/react/index.d.ts +3 -3
  147. package/dist/react/index.js +22 -22
  148. package/dist/react/index.mjs +9 -9
  149. package/dist/react/{params-By0MIRsJ.d.ts → params-B5l9vHfZ.d.ts} +1 -1
  150. package/dist/react/{params-CUb0ZlUG.d.mts → params-BVglT8vT.d.mts} +1 -1
  151. package/dist/react/{plan-CqxFGNk2.d.mts → plan-DSTBzzTY.d.mts} +13 -0
  152. package/dist/react/{plan-CqxFGNk2.d.ts → plan-DSTBzzTY.d.ts} +13 -0
  153. package/dist/sdk/index.d.mts +125 -1
  154. package/dist/sdk/index.d.ts +125 -1
  155. package/dist/sdk/index.js +146 -4
  156. package/dist/sdk/index.mjs +133 -5
  157. package/package.json +1 -1
  158. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.mts +0 -309
  159. package/dist/better-auth/createAutumnEndpoint-D9Plymvy.d.ts +0 -309
@@ -3083,6 +3083,16 @@ var FreeTrial$inboundSchema = z16.pipe(
3083
3083
  })
3084
3084
  );
3085
3085
  var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
3086
+ var PlanConfig$inboundSchema = z16.pipe(
3087
+ z16.object({
3088
+ ignore_past_due: z16._default(boolean2(), false)
3089
+ }),
3090
+ z16.transform((v) => {
3091
+ return remap(v, {
3092
+ "ignore_past_due": "ignorePastDue"
3093
+ });
3094
+ })
3095
+ );
3086
3096
  var PlanStatus$inboundSchema = inboundSchema(PlanStatus);
3087
3097
  var AttachAction$inboundSchema = inboundSchema(AttachAction);
3088
3098
  var CustomerEligibility$inboundSchema = z16.pipe(
@@ -3116,6 +3126,7 @@ var Plan$inboundSchema = z16.pipe(
3116
3126
  env: PlanEnv$inboundSchema,
3117
3127
  archived: boolean2(),
3118
3128
  base_variant_id: nullable(string4()),
3129
+ config: z16.lazy(() => PlanConfig$inboundSchema),
3119
3130
  customer_eligibility: optional2(z16.lazy(
3120
3131
  () => CustomerEligibility$inboundSchema
3121
3132
  ))
@@ -3796,6 +3807,16 @@ var FreeTrialRequest$outboundSchema = z19.pipe(
3796
3807
  });
3797
3808
  })
3798
3809
  );
3810
+ var CreatePlanConfigRequest$outboundSchema = z19.pipe(
3811
+ z19.object({
3812
+ ignorePastDue: z19._default(z19.boolean(), false)
3813
+ }),
3814
+ z19.transform((v) => {
3815
+ return remap(v, {
3816
+ ignorePastDue: "ignore_past_due"
3817
+ });
3818
+ })
3819
+ );
3799
3820
  var CreatePlanParams$outboundSchema = z19.pipe(
3800
3821
  z19.object({
3801
3822
  planId: z19.string(),
@@ -3806,7 +3827,8 @@ var CreatePlanParams$outboundSchema = z19.pipe(
3806
3827
  autoEnable: z19._default(z19.boolean(), false),
3807
3828
  price: z19.optional(z19.lazy(() => CreatePlanPriceRequest$outboundSchema)),
3808
3829
  items: z19.optional(z19.array(z19.lazy(() => CreatePlanPlanItem$outboundSchema))),
3809
- freeTrial: z19.optional(z19.lazy(() => FreeTrialRequest$outboundSchema))
3830
+ freeTrial: z19.optional(z19.lazy(() => FreeTrialRequest$outboundSchema)),
3831
+ config: z19.optional(z19.lazy(() => CreatePlanConfigRequest$outboundSchema))
3810
3832
  }),
3811
3833
  z19.transform((v) => {
3812
3834
  return remap(v, {
@@ -3980,6 +4002,16 @@ var CreatePlanFreeTrialResponse$inboundSchema = z19.pipe(
3980
4002
  })
3981
4003
  );
3982
4004
  var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
4005
+ var CreatePlanConfigResponse$inboundSchema = z19.pipe(
4006
+ z19.object({
4007
+ ignore_past_due: z19._default(boolean2(), false)
4008
+ }),
4009
+ z19.transform((v) => {
4010
+ return remap(v, {
4011
+ "ignore_past_due": "ignorePastDue"
4012
+ });
4013
+ })
4014
+ );
3983
4015
  var CreatePlanStatus$inboundSchema = inboundSchema(CreatePlanStatus);
3984
4016
  var CreatePlanAttachAction$inboundSchema = inboundSchema(CreatePlanAttachAction);
3985
4017
  var CreatePlanCustomerEligibility$inboundSchema = z19.pipe(
@@ -4015,6 +4047,7 @@ var CreatePlanResponse$inboundSchema = z19.pipe(
4015
4047
  env: CreatePlanEnv$inboundSchema,
4016
4048
  archived: boolean2(),
4017
4049
  base_variant_id: nullable(string4()),
4050
+ config: z19.lazy(() => CreatePlanConfigResponse$inboundSchema),
4018
4051
  customer_eligibility: optional2(
4019
4052
  z19.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
4020
4053
  )
@@ -5267,6 +5300,16 @@ var GetPlanFreeTrial$inboundSchema = z31.pipe(
5267
5300
  })
5268
5301
  );
5269
5302
  var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
5303
+ var GetPlanConfig$inboundSchema = z31.pipe(
5304
+ z31.object({
5305
+ ignore_past_due: z31._default(boolean2(), false)
5306
+ }),
5307
+ z31.transform((v) => {
5308
+ return remap(v, {
5309
+ "ignore_past_due": "ignorePastDue"
5310
+ });
5311
+ })
5312
+ );
5270
5313
  var GetPlanStatus$inboundSchema = inboundSchema(GetPlanStatus);
5271
5314
  var GetPlanAttachAction$inboundSchema = inboundSchema(GetPlanAttachAction);
5272
5315
  var GetPlanCustomerEligibility$inboundSchema = z31.pipe(
@@ -5300,6 +5343,7 @@ var GetPlanResponse$inboundSchema = z31.pipe(
5300
5343
  env: GetPlanEnv$inboundSchema,
5301
5344
  archived: boolean2(),
5302
5345
  base_variant_id: nullable(string4()),
5346
+ config: z31.lazy(() => GetPlanConfig$inboundSchema),
5303
5347
  customer_eligibility: optional2(
5304
5348
  z31.lazy(() => GetPlanCustomerEligibility$inboundSchema)
5305
5349
  )
@@ -6010,6 +6054,16 @@ var ListPlansFreeTrial$inboundSchema = z35.pipe(
6010
6054
  })
6011
6055
  );
6012
6056
  var ListPlansEnv$inboundSchema = inboundSchema(ListPlansEnv);
6057
+ var ListPlansConfig$inboundSchema = z35.pipe(
6058
+ z35.object({
6059
+ ignore_past_due: z35._default(boolean2(), false)
6060
+ }),
6061
+ z35.transform((v) => {
6062
+ return remap(v, {
6063
+ "ignore_past_due": "ignorePastDue"
6064
+ });
6065
+ })
6066
+ );
6013
6067
  var ListPlansStatus$inboundSchema = inboundSchema(ListPlansStatus);
6014
6068
  var ListPlansAttachAction$inboundSchema = inboundSchema(ListPlansAttachAction);
6015
6069
  var ListPlansCustomerEligibility$inboundSchema = z35.pipe(
@@ -6043,6 +6097,7 @@ var ListPlansList$inboundSchema = z35.pipe(
6043
6097
  env: ListPlansEnv$inboundSchema,
6044
6098
  archived: boolean2(),
6045
6099
  base_variant_id: nullable(string4()),
6100
+ config: z35.lazy(() => ListPlansConfig$inboundSchema),
6046
6101
  customer_eligibility: optional2(
6047
6102
  z35.lazy(() => ListPlansCustomerEligibility$inboundSchema)
6048
6103
  )
@@ -9737,6 +9792,16 @@ var UpdatePlanFreeTrialParams$outboundSchema = z48.pipe(
9737
9792
  });
9738
9793
  })
9739
9794
  );
9795
+ var UpdatePlanConfigRequest$outboundSchema = z48.pipe(
9796
+ z48.object({
9797
+ ignorePastDue: z48._default(z48.boolean(), false)
9798
+ }),
9799
+ z48.transform((v) => {
9800
+ return remap(v, {
9801
+ ignorePastDue: "ignore_past_due"
9802
+ });
9803
+ })
9804
+ );
9740
9805
  var UpdatePlanParams$outboundSchema = z48.pipe(
9741
9806
  z48.object({
9742
9807
  planId: z48.string(),
@@ -9752,6 +9817,7 @@ var UpdatePlanParams$outboundSchema = z48.pipe(
9752
9817
  freeTrial: z48.optional(
9753
9818
  z48.nullable(z48.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
9754
9819
  ),
9820
+ config: z48.optional(z48.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
9755
9821
  version: z48.optional(z48.number()),
9756
9822
  archived: z48._default(z48.boolean(), false),
9757
9823
  newPlanId: z48.optional(z48.string())
@@ -9929,6 +9995,16 @@ var UpdatePlanFreeTrial$inboundSchema = z48.pipe(
9929
9995
  })
9930
9996
  );
9931
9997
  var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
9998
+ var UpdatePlanConfigResponse$inboundSchema = z48.pipe(
9999
+ z48.object({
10000
+ ignore_past_due: z48._default(boolean2(), false)
10001
+ }),
10002
+ z48.transform((v) => {
10003
+ return remap(v, {
10004
+ "ignore_past_due": "ignorePastDue"
10005
+ });
10006
+ })
10007
+ );
9932
10008
  var UpdatePlanStatus$inboundSchema = inboundSchema(UpdatePlanStatus);
9933
10009
  var UpdatePlanAttachAction$inboundSchema = inboundSchema(UpdatePlanAttachAction);
9934
10010
  var UpdatePlanCustomerEligibility$inboundSchema = z48.pipe(
@@ -9962,6 +10038,7 @@ var UpdatePlanResponse$inboundSchema = z48.pipe(
9962
10038
  env: UpdatePlanEnv$inboundSchema,
9963
10039
  archived: boolean2(),
9964
10040
  base_variant_id: nullable(string4()),
10041
+ config: z48.lazy(() => UpdatePlanConfigResponse$inboundSchema),
9965
10042
  customer_eligibility: optional2(
9966
10043
  z48.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
9967
10044
  )
@@ -10220,10 +10297,14 @@ var FailOpenHook = class {
10220
10297
  fetcher: async (input, init) => {
10221
10298
  try {
10222
10299
  return init == null ? await fetch(input) : await fetch(input, init);
10223
- } catch {
10300
+ } catch (error) {
10301
+ console.log(error);
10302
+ console.log(
10303
+ `Network failed to reach Autumn: ${error}. Returning 555 Network Error.`
10304
+ );
10224
10305
  return new Response(null, {
10225
- status: 503,
10226
- statusText: "Autumn Unreachable"
10306
+ status: 555,
10307
+ statusText: "Network Error"
10227
10308
  });
10228
10309
  }
10229
10310
  }
@@ -13985,6 +14066,7 @@ var Plans = class extends ClientSDK {
13985
14066
  * @param price - Base recurring price for the plan. Omit for free or usage-only plans. (optional)
13986
14067
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
13987
14068
  * @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
14069
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
13988
14070
  *
13989
14071
  * @returns The created plan object.
13990
14072
  */
@@ -14090,6 +14172,7 @@ var Plans = class extends ClientSDK {
14090
14172
  * @param price - The price of the plan. Set to null to remove the base price. (optional)
14091
14173
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
14092
14174
  * @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
14175
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
14093
14176
  * @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
14094
14177
  *
14095
14178
  * @returns The updated plan object.
@@ -14975,6 +15058,9 @@ var listPlansItemDisplaySchema = import_v46.z.object({
14975
15058
  primaryText: import_v46.z.string(),
14976
15059
  secondaryText: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
14977
15060
  });
15061
+ var listPlansConfigSchema = import_v46.z.object({
15062
+ ignorePastDue: import_v46.z.boolean()
15063
+ });
14978
15064
  var listPlansParamsOutboundSchema = import_v46.z.object({
14979
15065
  customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
14980
15066
  entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
@@ -15063,6 +15149,7 @@ var listPlansListSchema = import_v46.z.object({
15063
15149
  env: listPlansEnvSchema,
15064
15150
  archived: import_v46.z.boolean(),
15065
15151
  baseVariantId: import_v46.z.string().nullable(),
15152
+ config: listPlansConfigSchema,
15066
15153
  customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
15067
15154
  });
15068
15155
  var listPlansResponseSchema = import_v46.z.object({
@@ -1,20 +1,20 @@
1
1
  import "../../chunk-VXND2UDT.mjs";
2
2
  import {
3
3
  handleRouteByName
4
- } from "../../chunk-N53PKNZ6.mjs";
4
+ } from "../../chunk-EJGHP7KT.mjs";
5
5
  import {
6
6
  createCoreHandler
7
- } from "../../chunk-ITXMMCSD.mjs";
7
+ } from "../../chunk-YSQQKZBU.mjs";
8
8
  import "../../chunk-TSF4YCUO.mjs";
9
9
  import "../../chunk-UAR3TMWI.mjs";
10
- import "../../chunk-UEYDU64U.mjs";
11
- import "../../chunk-X4LPDDOP.mjs";
10
+ import "../../chunk-T42RZEUZ.mjs";
11
+ import "../../chunk-MANTLPDT.mjs";
12
12
  import {
13
13
  executeRoute
14
14
  } from "../../chunk-S5HPMJ4U.mjs";
15
15
  import "../../chunk-OTXV5FY7.mjs";
16
- import "../../chunk-Z6QP3YEA.mjs";
17
16
  import "../../chunk-VZIMT7AO.mjs";
17
+ import "../../chunk-Z6QP3YEA.mjs";
18
18
  import {
19
19
  resolveIdentity
20
20
  } from "../../chunk-TBQ27LIK.mjs";
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.mjs';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-CyV4xBTB.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, R as RouteDefinition } from '../routeTypes-Cu-XQy7A.mjs';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-DVwngaBn.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';
@@ -2,7 +2,7 @@ export { createCoreHandler } from './handlers/coreHandler.js';
2
2
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../authTypes-CyV4xBTB.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, R as RouteDefinition } from '../routeTypes-D0ag5-Tb.js';
5
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, R as RouteDefinition } from '../routeTypes-B94_Mq2J.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';
@@ -3087,6 +3087,16 @@ var FreeTrial$inboundSchema = z16.pipe(
3087
3087
  })
3088
3088
  );
3089
3089
  var PlanEnv$inboundSchema = inboundSchema(PlanEnv);
3090
+ var PlanConfig$inboundSchema = z16.pipe(
3091
+ z16.object({
3092
+ ignore_past_due: z16._default(boolean2(), false)
3093
+ }),
3094
+ z16.transform((v) => {
3095
+ return remap(v, {
3096
+ "ignore_past_due": "ignorePastDue"
3097
+ });
3098
+ })
3099
+ );
3090
3100
  var PlanStatus$inboundSchema = inboundSchema(PlanStatus);
3091
3101
  var AttachAction$inboundSchema = inboundSchema(AttachAction);
3092
3102
  var CustomerEligibility$inboundSchema = z16.pipe(
@@ -3120,6 +3130,7 @@ var Plan$inboundSchema = z16.pipe(
3120
3130
  env: PlanEnv$inboundSchema,
3121
3131
  archived: boolean2(),
3122
3132
  base_variant_id: nullable(string4()),
3133
+ config: z16.lazy(() => PlanConfig$inboundSchema),
3123
3134
  customer_eligibility: optional2(z16.lazy(
3124
3135
  () => CustomerEligibility$inboundSchema
3125
3136
  ))
@@ -3800,6 +3811,16 @@ var FreeTrialRequest$outboundSchema = z19.pipe(
3800
3811
  });
3801
3812
  })
3802
3813
  );
3814
+ var CreatePlanConfigRequest$outboundSchema = z19.pipe(
3815
+ z19.object({
3816
+ ignorePastDue: z19._default(z19.boolean(), false)
3817
+ }),
3818
+ z19.transform((v) => {
3819
+ return remap(v, {
3820
+ ignorePastDue: "ignore_past_due"
3821
+ });
3822
+ })
3823
+ );
3803
3824
  var CreatePlanParams$outboundSchema = z19.pipe(
3804
3825
  z19.object({
3805
3826
  planId: z19.string(),
@@ -3810,7 +3831,8 @@ var CreatePlanParams$outboundSchema = z19.pipe(
3810
3831
  autoEnable: z19._default(z19.boolean(), false),
3811
3832
  price: z19.optional(z19.lazy(() => CreatePlanPriceRequest$outboundSchema)),
3812
3833
  items: z19.optional(z19.array(z19.lazy(() => CreatePlanPlanItem$outboundSchema))),
3813
- freeTrial: z19.optional(z19.lazy(() => FreeTrialRequest$outboundSchema))
3834
+ freeTrial: z19.optional(z19.lazy(() => FreeTrialRequest$outboundSchema)),
3835
+ config: z19.optional(z19.lazy(() => CreatePlanConfigRequest$outboundSchema))
3814
3836
  }),
3815
3837
  z19.transform((v) => {
3816
3838
  return remap(v, {
@@ -3984,6 +4006,16 @@ var CreatePlanFreeTrialResponse$inboundSchema = z19.pipe(
3984
4006
  })
3985
4007
  );
3986
4008
  var CreatePlanEnv$inboundSchema = inboundSchema(CreatePlanEnv);
4009
+ var CreatePlanConfigResponse$inboundSchema = z19.pipe(
4010
+ z19.object({
4011
+ ignore_past_due: z19._default(boolean2(), false)
4012
+ }),
4013
+ z19.transform((v) => {
4014
+ return remap(v, {
4015
+ "ignore_past_due": "ignorePastDue"
4016
+ });
4017
+ })
4018
+ );
3987
4019
  var CreatePlanStatus$inboundSchema = inboundSchema(CreatePlanStatus);
3988
4020
  var CreatePlanAttachAction$inboundSchema = inboundSchema(CreatePlanAttachAction);
3989
4021
  var CreatePlanCustomerEligibility$inboundSchema = z19.pipe(
@@ -4019,6 +4051,7 @@ var CreatePlanResponse$inboundSchema = z19.pipe(
4019
4051
  env: CreatePlanEnv$inboundSchema,
4020
4052
  archived: boolean2(),
4021
4053
  base_variant_id: nullable(string4()),
4054
+ config: z19.lazy(() => CreatePlanConfigResponse$inboundSchema),
4022
4055
  customer_eligibility: optional2(
4023
4056
  z19.lazy(() => CreatePlanCustomerEligibility$inboundSchema)
4024
4057
  )
@@ -5271,6 +5304,16 @@ var GetPlanFreeTrial$inboundSchema = z31.pipe(
5271
5304
  })
5272
5305
  );
5273
5306
  var GetPlanEnv$inboundSchema = inboundSchema(GetPlanEnv);
5307
+ var GetPlanConfig$inboundSchema = z31.pipe(
5308
+ z31.object({
5309
+ ignore_past_due: z31._default(boolean2(), false)
5310
+ }),
5311
+ z31.transform((v) => {
5312
+ return remap(v, {
5313
+ "ignore_past_due": "ignorePastDue"
5314
+ });
5315
+ })
5316
+ );
5274
5317
  var GetPlanStatus$inboundSchema = inboundSchema(GetPlanStatus);
5275
5318
  var GetPlanAttachAction$inboundSchema = inboundSchema(GetPlanAttachAction);
5276
5319
  var GetPlanCustomerEligibility$inboundSchema = z31.pipe(
@@ -5304,6 +5347,7 @@ var GetPlanResponse$inboundSchema = z31.pipe(
5304
5347
  env: GetPlanEnv$inboundSchema,
5305
5348
  archived: boolean2(),
5306
5349
  base_variant_id: nullable(string4()),
5350
+ config: z31.lazy(() => GetPlanConfig$inboundSchema),
5307
5351
  customer_eligibility: optional2(
5308
5352
  z31.lazy(() => GetPlanCustomerEligibility$inboundSchema)
5309
5353
  )
@@ -6014,6 +6058,16 @@ var ListPlansFreeTrial$inboundSchema = z35.pipe(
6014
6058
  })
6015
6059
  );
6016
6060
  var ListPlansEnv$inboundSchema = inboundSchema(ListPlansEnv);
6061
+ var ListPlansConfig$inboundSchema = z35.pipe(
6062
+ z35.object({
6063
+ ignore_past_due: z35._default(boolean2(), false)
6064
+ }),
6065
+ z35.transform((v) => {
6066
+ return remap(v, {
6067
+ "ignore_past_due": "ignorePastDue"
6068
+ });
6069
+ })
6070
+ );
6017
6071
  var ListPlansStatus$inboundSchema = inboundSchema(ListPlansStatus);
6018
6072
  var ListPlansAttachAction$inboundSchema = inboundSchema(ListPlansAttachAction);
6019
6073
  var ListPlansCustomerEligibility$inboundSchema = z35.pipe(
@@ -6047,6 +6101,7 @@ var ListPlansList$inboundSchema = z35.pipe(
6047
6101
  env: ListPlansEnv$inboundSchema,
6048
6102
  archived: boolean2(),
6049
6103
  base_variant_id: nullable(string4()),
6104
+ config: z35.lazy(() => ListPlansConfig$inboundSchema),
6050
6105
  customer_eligibility: optional2(
6051
6106
  z35.lazy(() => ListPlansCustomerEligibility$inboundSchema)
6052
6107
  )
@@ -9741,6 +9796,16 @@ var UpdatePlanFreeTrialParams$outboundSchema = z48.pipe(
9741
9796
  });
9742
9797
  })
9743
9798
  );
9799
+ var UpdatePlanConfigRequest$outboundSchema = z48.pipe(
9800
+ z48.object({
9801
+ ignorePastDue: z48._default(z48.boolean(), false)
9802
+ }),
9803
+ z48.transform((v) => {
9804
+ return remap(v, {
9805
+ ignorePastDue: "ignore_past_due"
9806
+ });
9807
+ })
9808
+ );
9744
9809
  var UpdatePlanParams$outboundSchema = z48.pipe(
9745
9810
  z48.object({
9746
9811
  planId: z48.string(),
@@ -9756,6 +9821,7 @@ var UpdatePlanParams$outboundSchema = z48.pipe(
9756
9821
  freeTrial: z48.optional(
9757
9822
  z48.nullable(z48.lazy(() => UpdatePlanFreeTrialParams$outboundSchema))
9758
9823
  ),
9824
+ config: z48.optional(z48.lazy(() => UpdatePlanConfigRequest$outboundSchema)),
9759
9825
  version: z48.optional(z48.number()),
9760
9826
  archived: z48._default(z48.boolean(), false),
9761
9827
  newPlanId: z48.optional(z48.string())
@@ -9933,6 +9999,16 @@ var UpdatePlanFreeTrial$inboundSchema = z48.pipe(
9933
9999
  })
9934
10000
  );
9935
10001
  var UpdatePlanEnv$inboundSchema = inboundSchema(UpdatePlanEnv);
10002
+ var UpdatePlanConfigResponse$inboundSchema = z48.pipe(
10003
+ z48.object({
10004
+ ignore_past_due: z48._default(boolean2(), false)
10005
+ }),
10006
+ z48.transform((v) => {
10007
+ return remap(v, {
10008
+ "ignore_past_due": "ignorePastDue"
10009
+ });
10010
+ })
10011
+ );
9936
10012
  var UpdatePlanStatus$inboundSchema = inboundSchema(UpdatePlanStatus);
9937
10013
  var UpdatePlanAttachAction$inboundSchema = inboundSchema(UpdatePlanAttachAction);
9938
10014
  var UpdatePlanCustomerEligibility$inboundSchema = z48.pipe(
@@ -9966,6 +10042,7 @@ var UpdatePlanResponse$inboundSchema = z48.pipe(
9966
10042
  env: UpdatePlanEnv$inboundSchema,
9967
10043
  archived: boolean2(),
9968
10044
  base_variant_id: nullable(string4()),
10045
+ config: z48.lazy(() => UpdatePlanConfigResponse$inboundSchema),
9969
10046
  customer_eligibility: optional2(
9970
10047
  z48.lazy(() => UpdatePlanCustomerEligibility$inboundSchema)
9971
10048
  )
@@ -10224,10 +10301,14 @@ var FailOpenHook = class {
10224
10301
  fetcher: async (input, init) => {
10225
10302
  try {
10226
10303
  return init == null ? await fetch(input) : await fetch(input, init);
10227
- } catch {
10304
+ } catch (error) {
10305
+ console.log(error);
10306
+ console.log(
10307
+ `Network failed to reach Autumn: ${error}. Returning 555 Network Error.`
10308
+ );
10228
10309
  return new Response(null, {
10229
- status: 503,
10230
- statusText: "Autumn Unreachable"
10310
+ status: 555,
10311
+ statusText: "Network Error"
10231
10312
  });
10232
10313
  }
10233
10314
  }
@@ -13989,6 +14070,7 @@ var Plans = class extends ClientSDK {
13989
14070
  * @param price - Base recurring price for the plan. Omit for free or usage-only plans. (optional)
13990
14071
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
13991
14072
  * @param freeTrial - Free trial configuration. Customers can try this plan before being charged. (optional)
14073
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
13992
14074
  *
13993
14075
  * @returns The created plan object.
13994
14076
  */
@@ -14094,6 +14176,7 @@ var Plans = class extends ClientSDK {
14094
14176
  * @param price - The price of the plan. Set to null to remove the base price. (optional)
14095
14177
  * @param items - Feature configurations for this plan. Each item defines included units, pricing, and reset behavior. (optional)
14096
14178
  * @param freeTrial - The free trial of the plan. Set to null to remove the free trial. (optional)
14179
+ * @param config - Miscellaneous plan-level configuration flags. (optional)
14097
14180
  * @param newPlanId - The new ID to use for the plan. Can only be updated if the plan has not been used by any customers. (optional)
14098
14181
  *
14099
14182
  * @returns The updated plan object.
@@ -14979,6 +15062,9 @@ var listPlansItemDisplaySchema = import_v46.z.object({
14979
15062
  primaryText: import_v46.z.string(),
14980
15063
  secondaryText: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
14981
15064
  });
15065
+ var listPlansConfigSchema = import_v46.z.object({
15066
+ ignorePastDue: import_v46.z.boolean()
15067
+ });
14982
15068
  var listPlansParamsOutboundSchema = import_v46.z.object({
14983
15069
  customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
14984
15070
  entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
@@ -15067,6 +15153,7 @@ var listPlansListSchema = import_v46.z.object({
15067
15153
  env: listPlansEnvSchema,
15068
15154
  archived: import_v46.z.boolean(),
15069
15155
  baseVariantId: import_v46.z.string().nullable(),
15156
+ config: listPlansConfigSchema,
15070
15157
  customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
15071
15158
  });
15072
15159
  var listPlansResponseSchema = import_v46.z.object({
@@ -2,26 +2,26 @@ import "../chunk-WYDGEDEU.mjs";
2
2
  import "../chunk-VXND2UDT.mjs";
3
3
  import {
4
4
  handleRouteByName
5
- } from "../chunk-N53PKNZ6.mjs";
5
+ } from "../chunk-EJGHP7KT.mjs";
6
6
  import {
7
7
  createCoreHandler
8
- } from "../chunk-ITXMMCSD.mjs";
8
+ } from "../chunk-YSQQKZBU.mjs";
9
9
  import "../chunk-TSF4YCUO.mjs";
10
10
  import {
11
11
  buildRouter
12
12
  } from "../chunk-UAR3TMWI.mjs";
13
- import "../chunk-UEYDU64U.mjs";
13
+ import "../chunk-T42RZEUZ.mjs";
14
14
  import {
15
15
  routeConfigs
16
- } from "../chunk-X4LPDDOP.mjs";
16
+ } from "../chunk-MANTLPDT.mjs";
17
17
  import "../chunk-S5HPMJ4U.mjs";
18
18
  import "../chunk-OTXV5FY7.mjs";
19
- import {
20
- sanitizeBody
21
- } from "../chunk-Z6QP3YEA.mjs";
22
19
  import {
23
20
  secretKeyCheck
24
21
  } from "../chunk-VZIMT7AO.mjs";
22
+ import {
23
+ sanitizeBody
24
+ } from "../chunk-Z6QP3YEA.mjs";
25
25
  import "../chunk-TBQ27LIK.mjs";
26
26
  import "../chunk-J44WR3QZ.mjs";
27
27
  import {
@@ -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-Cu-XQy7A.mjs';
4
+ import '../../routeTypes-DVwngaBn.mjs';
5
5
  import '../../authTypes-CyV4xBTB.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-D0ag5-Tb.js';
4
+ import '../../routeTypes-B94_Mq2J.js';
5
5
  import '../../authTypes-CyV4xBTB.js';
6
6
  import 'zod/v4';
7
7
  import '../types/responseTypes.js';
@@ -572,6 +572,9 @@ var listPlansItemDisplaySchema = import_v46.z.object({
572
572
  primaryText: import_v46.z.string(),
573
573
  secondaryText: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
574
574
  });
575
+ var listPlansConfigSchema = import_v46.z.object({
576
+ ignorePastDue: import_v46.z.boolean()
577
+ });
575
578
  var listPlansParamsOutboundSchema = import_v46.z.object({
576
579
  customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
577
580
  entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
@@ -660,6 +663,7 @@ var listPlansListSchema = import_v46.z.object({
660
663
  env: listPlansEnvSchema,
661
664
  archived: import_v46.z.boolean(),
662
665
  baseVariantId: import_v46.z.string().nullable(),
666
+ config: listPlansConfigSchema,
663
667
  customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
664
668
  });
665
669
  var listPlansResponseSchema = import_v46.z.object({
@@ -4,10 +4,10 @@ import {
4
4
  } from "../../chunk-UAR3TMWI.mjs";
5
5
  import {
6
6
  routeConfigs
7
- } from "../../chunk-X4LPDDOP.mjs";
7
+ } from "../../chunk-MANTLPDT.mjs";
8
8
  import "../../chunk-OTXV5FY7.mjs";
9
- import "../../chunk-Z6QP3YEA.mjs";
10
9
  import "../../chunk-VZIMT7AO.mjs";
10
+ import "../../chunk-Z6QP3YEA.mjs";
11
11
  import "../../chunk-N7NFYY54.mjs";
12
12
  export {
13
13
  buildRouter,
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-Cu-XQy7A.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-DVwngaBn.mjs';
3
3
  import '../../authTypes-CyV4xBTB.mjs';
4
4
  import 'zod/v4';
5
5
  import '../types/responseTypes.mjs';
@@ -1,5 +1,5 @@
1
1
  import { RouterContext } from 'rou3';
2
- import { R as RouteDefinition } from '../../routeTypes-D0ag5-Tb.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-B94_Mq2J.js';
3
3
  import '../../authTypes-CyV4xBTB.js';
4
4
  import 'zod/v4';
5
5
  import '../types/responseTypes.js';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-Cu-XQy7A.mjs';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-DVwngaBn.mjs';
2
2
  import '../../authTypes-CyV4xBTB.mjs';
3
3
  import 'zod/v4';
4
4
  import '../types/responseTypes.mjs';
@@ -1,4 +1,4 @@
1
- import { R as RouteDefinition, b as RouteName } from '../../routeTypes-D0ag5-Tb.js';
1
+ import { R as RouteDefinition, b as RouteName } from '../../routeTypes-B94_Mq2J.js';
2
2
  import '../../authTypes-CyV4xBTB.js';
3
3
  import 'zod/v4';
4
4
  import '../types/responseTypes.js';
@@ -555,6 +555,9 @@ var listPlansItemDisplaySchema = import_v46.z.object({
555
555
  primaryText: import_v46.z.string(),
556
556
  secondaryText: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional()
557
557
  });
558
+ var listPlansConfigSchema = import_v46.z.object({
559
+ ignorePastDue: import_v46.z.boolean()
560
+ });
558
561
  var listPlansParamsOutboundSchema = import_v46.z.object({
559
562
  customer_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
560
563
  entity_id: import_v46.z.union([import_v46.z.string(), import_v46.z.undefined()]).optional(),
@@ -643,6 +646,7 @@ var listPlansListSchema = import_v46.z.object({
643
646
  env: listPlansEnvSchema,
644
647
  archived: import_v46.z.boolean(),
645
648
  baseVariantId: import_v46.z.string().nullable(),
649
+ config: listPlansConfigSchema,
646
650
  customerEligibility: import_v46.z.union([listPlansCustomerEligibilitySchema, import_v46.z.undefined()]).optional()
647
651
  });
648
652
  var listPlansResponseSchema = import_v46.z.object({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  routeConfigs
3
- } from "../../chunk-X4LPDDOP.mjs";
3
+ } from "../../chunk-MANTLPDT.mjs";
4
4
  import "../../chunk-OTXV5FY7.mjs";
5
- import "../../chunk-Z6QP3YEA.mjs";
6
5
  import "../../chunk-VZIMT7AO.mjs";
6
+ import "../../chunk-Z6QP3YEA.mjs";
7
7
  import "../../chunk-N7NFYY54.mjs";
8
8
  export {
9
9
  routeConfigs
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-CyV4xBTB.mjs';
2
- import { R as RouteDefinition } from '../../routeTypes-Cu-XQy7A.mjs';
2
+ import { R as RouteDefinition } from '../../routeTypes-DVwngaBn.mjs';
3
3
  import './responseTypes.mjs';
4
4
  import 'zod/v4';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { A as AuthResult } from '../../authTypes-CyV4xBTB.js';
2
- import { R as RouteDefinition } from '../../routeTypes-D0ag5-Tb.js';
2
+ import { R as RouteDefinition } from '../../routeTypes-B94_Mq2J.js';
3
3
  import './responseTypes.js';
4
4
  import 'zod/v4';
5
5
 
@@ -1,5 +1,5 @@
1
1
  export { A as AuthResult, C as CustomerData, a as CustomerId, R as ResolvedIdentity } from '../../authTypes-CyV4xBTB.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, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-Cu-XQy7A.mjs';
4
+ export { C as CustomHandlerArgs, a as CustomHandlerFn, c as ROUTE_NAMES, R as RouteDefinition, b as RouteName } from '../../routeTypes-DVwngaBn.mjs';
5
5
  import 'zod/v4';