autumn-js 1.2.13 → 1.2.15

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 (126) hide show
  1. package/dist/backend/adapters/express.js +623 -108
  2. package/dist/backend/adapters/express.mjs +8 -8
  3. package/dist/backend/adapters/fetch.js +623 -108
  4. package/dist/backend/adapters/fetch.mjs +8 -8
  5. package/dist/backend/adapters/hono.js +623 -108
  6. package/dist/backend/adapters/hono.mjs +8 -8
  7. package/dist/backend/adapters/index.js +623 -108
  8. package/dist/backend/adapters/index.mjs +11 -11
  9. package/dist/backend/adapters/next.js +623 -108
  10. package/dist/backend/adapters/next.mjs +8 -8
  11. package/dist/backend/{chunk-DNNJOZAT.mjs → chunk-BQVZ6GCE.mjs} +1 -1
  12. package/dist/backend/{chunk-YSQQKZBU.mjs → chunk-IEOQUAJY.mjs} +7 -7
  13. package/dist/backend/{chunk-MANTLPDT.mjs → chunk-IQS3LQVP.mjs} +36 -8
  14. package/dist/backend/{chunk-7BVATYGA.mjs → chunk-NDB3VKT4.mjs} +1 -1
  15. package/dist/backend/{chunk-RPH5L44S.mjs → chunk-NRTK5YZK.mjs} +1 -1
  16. package/dist/backend/{chunk-T42RZEUZ.mjs → chunk-OXCQHLZX.mjs} +587 -100
  17. package/dist/backend/{chunk-EJGHP7KT.mjs → chunk-RSIOYTRW.mjs} +5 -5
  18. package/dist/backend/{chunk-OUDB34Y7.mjs → chunk-X7LDYBKC.mjs} +1 -1
  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 +623 -108
  22. package/dist/backend/core/handlers/coreHandler.mjs +6 -6
  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 +3 -3
  26. package/dist/backend/core/handlers/handleRouteByName.js +623 -108
  27. package/dist/backend/core/handlers/handleRouteByName.mjs +6 -6
  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 +623 -108
  31. package/dist/backend/core/handlers/index.mjs +10 -10
  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 +623 -108
  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 +36 -8
  39. package/dist/backend/core/routes/index.mjs +1 -1
  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 +36 -8
  45. package/dist/backend/core/routes/routeConfigs.mjs +1 -1
  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/index.d.mts +2 -2
  53. package/dist/backend/index.d.ts +2 -2
  54. package/dist/backend/index.js +623 -108
  55. package/dist/backend/index.mjs +7 -7
  56. package/dist/backend/{routeTypes-DVwngaBn.d.mts → routeTypes-CIspXIZ4.d.mts} +841 -169
  57. package/dist/backend/{routeTypes-B94_Mq2J.d.ts → routeTypes-COwIJFNS.d.ts} +841 -169
  58. package/dist/better-auth/{chunk-4OWECHZC.mjs → chunk-L6XX4ONM.mjs} +1 -1
  59. package/dist/better-auth/{chunk-ZZGFPTHO.mjs → chunk-QT6R3AXQ.mjs} +588 -101
  60. package/dist/better-auth/{chunk-JIFD4TSN.mjs → chunk-ZO3KGM5W.mjs} +36 -8
  61. package/dist/better-auth/client.d.mts +2 -4
  62. package/dist/better-auth/client.d.ts +2 -4
  63. package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.ts → createAutumnEndpoint-Clm1sxhQ.d.mts} +4 -8
  64. package/dist/better-auth/{createAutumnEndpoint-CvXRCg-M.d.mts → createAutumnEndpoint-Clm1sxhQ.d.ts} +4 -8
  65. package/dist/better-auth/index.d.mts +2 -4
  66. package/dist/better-auth/index.d.ts +2 -4
  67. package/dist/better-auth/index.js +623 -108
  68. package/dist/better-auth/index.mjs +3 -3
  69. package/dist/better-auth/utils/createAutumnEndpoint.d.mts +2 -4
  70. package/dist/better-auth/utils/createAutumnEndpoint.d.ts +2 -4
  71. package/dist/better-auth/utils/createAutumnEndpoint.js +36 -8
  72. package/dist/better-auth/utils/createAutumnEndpoint.mjs +2 -2
  73. package/dist/better-auth/utils/handleBetterAuthRoute.d.mts +2 -4
  74. package/dist/better-auth/utils/handleBetterAuthRoute.d.ts +2 -4
  75. package/dist/better-auth/utils/handleBetterAuthRoute.js +623 -108
  76. package/dist/better-auth/utils/handleBetterAuthRoute.mjs +2 -2
  77. package/dist/better-auth/utils/index.d.mts +3 -4
  78. package/dist/better-auth/utils/index.d.ts +3 -4
  79. package/dist/better-auth/utils/index.js +623 -108
  80. package/dist/better-auth/utils/index.mjs +3 -3
  81. package/dist/react/AutumnContext.d.mts +2 -2
  82. package/dist/react/AutumnContext.d.ts +2 -2
  83. package/dist/react/client/AutumnClient.d.mts +2 -2
  84. package/dist/react/client/AutumnClient.d.ts +2 -2
  85. package/dist/react/client/IAutumnClient.d.mts +2 -2
  86. package/dist/react/client/IAutumnClient.d.ts +2 -2
  87. package/dist/react/client/index.d.mts +2 -2
  88. package/dist/react/client/index.d.ts +2 -2
  89. package/dist/react/{customer-DB8vL_m7.d.mts → customer-BDxW2bu6.d.mts} +35 -9
  90. package/dist/react/{customer-CaGJEN5J.d.ts → customer-BPUObmME.d.ts} +35 -9
  91. package/dist/react/hooks/index.d.mts +2 -2
  92. package/dist/react/hooks/index.d.ts +2 -2
  93. package/dist/react/hooks/internal/check/balanceToAllowed.d.mts +1 -1
  94. package/dist/react/hooks/internal/check/balanceToAllowed.d.ts +1 -1
  95. package/dist/react/hooks/internal/check/customerToFeatures.d.mts +1 -1
  96. package/dist/react/hooks/internal/check/customerToFeatures.d.ts +1 -1
  97. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.mts +1 -1
  98. package/dist/react/hooks/internal/check/findCreditSystemsByFeature.d.ts +1 -1
  99. package/dist/react/hooks/internal/check/getCreditCost.d.mts +1 -1
  100. package/dist/react/hooks/internal/check/getCreditCost.d.ts +1 -1
  101. package/dist/react/hooks/internal/getLocalCheckResponse.d.mts +2 -2
  102. package/dist/react/hooks/internal/getLocalCheckResponse.d.ts +2 -2
  103. package/dist/react/hooks/internal/useCustomerActions.d.mts +2 -2
  104. package/dist/react/hooks/internal/useCustomerActions.d.ts +2 -2
  105. package/dist/react/hooks/useAggregateEvents.d.mts +1 -1
  106. package/dist/react/hooks/useAggregateEvents.d.ts +1 -1
  107. package/dist/react/hooks/useCustomer.d.mts +2 -2
  108. package/dist/react/hooks/useCustomer.d.ts +2 -2
  109. package/dist/react/hooks/useEntity.d.mts +1 -1
  110. package/dist/react/hooks/useEntity.d.ts +1 -1
  111. package/dist/react/hooks/useListEvents.d.mts +1 -1
  112. package/dist/react/hooks/useListEvents.d.ts +1 -1
  113. package/dist/react/hooks/useListPlans.d.mts +1 -1
  114. package/dist/react/hooks/useListPlans.d.ts +1 -1
  115. package/dist/react/hooks/useReferrals.d.mts +1 -1
  116. package/dist/react/hooks/useReferrals.d.ts +1 -1
  117. package/dist/react/index.d.mts +2 -2
  118. package/dist/react/index.d.ts +2 -2
  119. package/dist/react/{params-B5l9vHfZ.d.ts → params-D4cEukOJ.d.ts} +615 -64
  120. package/dist/react/{params-BVglT8vT.d.mts → params-DzbSUS8O.d.mts} +615 -64
  121. package/dist/sdk/index.d.mts +980 -173
  122. package/dist/sdk/index.d.ts +980 -173
  123. package/dist/sdk/index.js +978 -212
  124. package/dist/sdk/index.mjs +825 -149
  125. package/package.json +1 -1
  126. package/dist/backend/{chunk-S5HPMJ4U.mjs → chunk-55C2WWXQ.mjs} +3 -3
@@ -81,8 +81,8 @@ var SDK_METADATA = {
81
81
  language: "typescript",
82
82
  openapiDocVersion: "2.2.0",
83
83
  sdkVersion: "0.10.17",
84
- genVersion: "2.881.4",
85
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.4 2.2.0 @useautumn/sdk"
84
+ genVersion: "2.881.16",
85
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
86
86
  };
87
87
 
88
88
  // ../sdk/src/lib/http.ts
@@ -1712,7 +1712,8 @@ var AttachParams$outboundSchema = z10.pipe(
1712
1712
  z10.lazy(() => AttachCarryOverUsages$outboundSchema)
1713
1713
  ),
1714
1714
  metadata: z10.optional(z10.record(z10.string(), z10.string())),
1715
- noBillingChanges: z10.optional(z10.boolean())
1715
+ noBillingChanges: z10.optional(z10.boolean()),
1716
+ enablePlanImmediately: z10.optional(z10.boolean())
1716
1717
  }),
1717
1718
  z10.transform((v) => {
1718
1719
  return remap(v, {
@@ -1733,7 +1734,8 @@ var AttachParams$outboundSchema = z10.pipe(
1733
1734
  processorSubscriptionId: "processor_subscription_id",
1734
1735
  carryOverBalances: "carry_over_balances",
1735
1736
  carryOverUsages: "carry_over_usages",
1736
- noBillingChanges: "no_billing_changes"
1737
+ noBillingChanges: "no_billing_changes",
1738
+ enablePlanImmediately: "enable_plan_immediately"
1737
1739
  });
1738
1740
  })
1739
1741
  );
@@ -2285,31 +2287,31 @@ var BillingUpdateResponse$inboundSchema = z12.pipe(
2285
2287
 
2286
2288
  // ../sdk/src/models/check-op.ts
2287
2289
  var z13 = __toESM(require("zod/v4-mini"), 1);
2288
- var FlagType = {
2290
+ var FlagType2 = {
2289
2291
  Boolean: "boolean",
2290
2292
  Metered: "metered",
2291
2293
  CreditSystem: "credit_system"
2292
2294
  };
2293
- var Scenario = {
2295
+ var Scenario2 = {
2294
2296
  UsageLimit: "usage_limit",
2295
2297
  FeatureFlag: "feature_flag"
2296
2298
  };
2297
- var CheckEnv = {
2299
+ var CheckEnv2 = {
2298
2300
  Sandbox: "sandbox",
2299
2301
  Live: "live"
2300
2302
  };
2301
- var ProductType = {
2303
+ var ProductType2 = {
2302
2304
  Feature: "feature",
2303
2305
  PricedFeature: "priced_feature",
2304
2306
  Price: "price"
2305
2307
  };
2306
- var FeatureType = {
2308
+ var FeatureType2 = {
2307
2309
  SingleUse: "single_use",
2308
2310
  ContinuousUse: "continuous_use",
2309
2311
  Boolean: "boolean",
2310
2312
  Static: "static"
2311
2313
  };
2312
- var CheckInterval = {
2314
+ var CheckInterval2 = {
2313
2315
  Minute: "minute",
2314
2316
  Hour: "hour",
2315
2317
  Day: "day",
@@ -2319,37 +2321,113 @@ var CheckInterval = {
2319
2321
  SemiAnnual: "semi_annual",
2320
2322
  Year: "year"
2321
2323
  };
2322
- var CheckTierBehavior = {
2324
+ var CheckTierBehavior2 = {
2323
2325
  Graduated: "graduated",
2324
2326
  Volume: "volume"
2325
2327
  };
2326
- var UsageModel = {
2328
+ var UsageModel2 = {
2327
2329
  Prepaid: "prepaid",
2328
2330
  PayPerUse: "pay_per_use"
2329
2331
  };
2330
- var ConfigDuration = {
2332
+ var ConfigDuration2 = {
2331
2333
  Month: "month",
2332
2334
  Forever: "forever"
2333
2335
  };
2334
- var CheckOnIncrease = {
2336
+ var CheckOnIncrease2 = {
2335
2337
  BillImmediately: "bill_immediately",
2336
2338
  ProrateImmediately: "prorate_immediately",
2337
2339
  ProrateNextCycle: "prorate_next_cycle",
2338
2340
  BillNextCycle: "bill_next_cycle"
2339
2341
  };
2340
- var CheckOnDecrease = {
2342
+ var CheckOnDecrease2 = {
2341
2343
  Prorate: "prorate",
2342
2344
  ProrateImmediately: "prorate_immediately",
2343
2345
  ProrateNextCycle: "prorate_next_cycle",
2344
2346
  None: "none",
2345
2347
  NoProrations: "no_prorations"
2346
2348
  };
2347
- var FreeTrialDuration = {
2349
+ var FreeTrialDuration2 = {
2348
2350
  Day: "day",
2349
2351
  Month: "month",
2350
2352
  Year: "year"
2351
2353
  };
2352
- var ProductScenario = {
2354
+ var ProductScenario2 = {
2355
+ Scheduled: "scheduled",
2356
+ Active: "active",
2357
+ New: "new",
2358
+ Renew: "renew",
2359
+ Upgrade: "upgrade",
2360
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
2361
+ Downgrade: "downgrade",
2362
+ Cancel: "cancel",
2363
+ Expired: "expired",
2364
+ PastDue: "past_due"
2365
+ };
2366
+ var FlagType1 = {
2367
+ Boolean: "boolean",
2368
+ Metered: "metered",
2369
+ CreditSystem: "credit_system"
2370
+ };
2371
+ var Scenario1 = {
2372
+ UsageLimit: "usage_limit",
2373
+ FeatureFlag: "feature_flag"
2374
+ };
2375
+ var CheckEnv1 = {
2376
+ Sandbox: "sandbox",
2377
+ Live: "live"
2378
+ };
2379
+ var ProductType1 = {
2380
+ Feature: "feature",
2381
+ PricedFeature: "priced_feature",
2382
+ Price: "price"
2383
+ };
2384
+ var FeatureType1 = {
2385
+ SingleUse: "single_use",
2386
+ ContinuousUse: "continuous_use",
2387
+ Boolean: "boolean",
2388
+ Static: "static"
2389
+ };
2390
+ var CheckInterval1 = {
2391
+ Minute: "minute",
2392
+ Hour: "hour",
2393
+ Day: "day",
2394
+ Week: "week",
2395
+ Month: "month",
2396
+ Quarter: "quarter",
2397
+ SemiAnnual: "semi_annual",
2398
+ Year: "year"
2399
+ };
2400
+ var CheckTierBehavior1 = {
2401
+ Graduated: "graduated",
2402
+ Volume: "volume"
2403
+ };
2404
+ var UsageModel1 = {
2405
+ Prepaid: "prepaid",
2406
+ PayPerUse: "pay_per_use"
2407
+ };
2408
+ var ConfigDuration1 = {
2409
+ Month: "month",
2410
+ Forever: "forever"
2411
+ };
2412
+ var CheckOnIncrease1 = {
2413
+ BillImmediately: "bill_immediately",
2414
+ ProrateImmediately: "prorate_immediately",
2415
+ ProrateNextCycle: "prorate_next_cycle",
2416
+ BillNextCycle: "bill_next_cycle"
2417
+ };
2418
+ var CheckOnDecrease1 = {
2419
+ Prorate: "prorate",
2420
+ ProrateImmediately: "prorate_immediately",
2421
+ ProrateNextCycle: "prorate_next_cycle",
2422
+ None: "none",
2423
+ NoProrations: "no_prorations"
2424
+ };
2425
+ var FreeTrialDuration1 = {
2426
+ Day: "day",
2427
+ Month: "month",
2428
+ Year: "year"
2429
+ };
2430
+ var ProductScenario1 = {
2353
2431
  Scheduled: "scheduled",
2354
2432
  Active: "active",
2355
2433
  New: "new",
@@ -2396,8 +2474,8 @@ var CheckParams$outboundSchema = z13.pipe(
2396
2474
  });
2397
2475
  })
2398
2476
  );
2399
- var FlagType$inboundSchema = inboundSchema(FlagType);
2400
- var CheckCreditSchema$inboundSchema = z13.pipe(
2477
+ var FlagType2$inboundSchema = inboundSchema(FlagType2);
2478
+ var CheckCreditSchema2$inboundSchema = z13.pipe(
2401
2479
  z13.object({
2402
2480
  metered_feature_id: string4(),
2403
2481
  credit_cost: number2()
@@ -2409,21 +2487,21 @@ var CheckCreditSchema$inboundSchema = z13.pipe(
2409
2487
  });
2410
2488
  })
2411
2489
  );
2412
- var FlagDisplay$inboundSchema = z13.object({
2490
+ var FlagDisplay2$inboundSchema = z13.object({
2413
2491
  singular: z13.optional(z13.nullable(string4())),
2414
2492
  plural: z13.optional(z13.nullable(string4()))
2415
2493
  });
2416
- var CheckFeature$inboundSchema = z13.pipe(
2494
+ var CheckFeature2$inboundSchema = z13.pipe(
2417
2495
  z13.object({
2418
2496
  id: string4(),
2419
2497
  name: string4(),
2420
- type: FlagType$inboundSchema,
2498
+ type: FlagType2$inboundSchema,
2421
2499
  consumable: boolean2(),
2422
2500
  event_names: optional2(z13.array(string4())),
2423
2501
  credit_schema: optional2(
2424
- z13.array(z13.lazy(() => CheckCreditSchema$inboundSchema))
2502
+ z13.array(z13.lazy(() => CheckCreditSchema2$inboundSchema))
2425
2503
  ),
2426
- display: optional2(z13.lazy(() => FlagDisplay$inboundSchema)),
2504
+ display: optional2(z13.lazy(() => FlagDisplay2$inboundSchema)),
2427
2505
  archived: boolean2()
2428
2506
  }),
2429
2507
  z13.transform((v) => {
@@ -2433,13 +2511,13 @@ var CheckFeature$inboundSchema = z13.pipe(
2433
2511
  });
2434
2512
  })
2435
2513
  );
2436
- var Flag$inboundSchema = z13.pipe(
2514
+ var Flag2$inboundSchema = z13.pipe(
2437
2515
  z13.object({
2438
2516
  id: string4(),
2439
2517
  plan_id: nullable(string4()),
2440
2518
  expires_at: nullable(number2()),
2441
2519
  feature_id: string4(),
2442
- feature: optional2(z13.lazy(() => CheckFeature$inboundSchema))
2520
+ feature: optional2(z13.lazy(() => CheckFeature2$inboundSchema))
2443
2521
  }),
2444
2522
  z13.transform((v) => {
2445
2523
  return remap(v, {
@@ -2449,15 +2527,15 @@ var Flag$inboundSchema = z13.pipe(
2449
2527
  });
2450
2528
  })
2451
2529
  );
2452
- var Scenario$inboundSchema = inboundSchema(Scenario);
2453
- var CheckEnv$inboundSchema = inboundSchema(CheckEnv);
2454
- var ProductType$inboundSchema = inboundSchema(ProductType);
2455
- var FeatureType$inboundSchema = inboundSchema(FeatureType);
2456
- var IncludedUsage$inboundSchema = smartUnion([number2(), string4()]);
2457
- var CheckInterval$inboundSchema = inboundSchema(CheckInterval);
2458
- var CheckTierBehavior$inboundSchema = inboundSchema(CheckTierBehavior);
2459
- var UsageModel$inboundSchema = inboundSchema(UsageModel);
2460
- var ProductDisplay$inboundSchema = z13.pipe(
2530
+ var Scenario2$inboundSchema = inboundSchema(Scenario2);
2531
+ var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
2532
+ var ProductType2$inboundSchema = inboundSchema(ProductType2);
2533
+ var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
2534
+ var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
2535
+ var CheckInterval2$inboundSchema = inboundSchema(CheckInterval2);
2536
+ var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
2537
+ var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
2538
+ var ProductDisplay2$inboundSchema = z13.pipe(
2461
2539
  z13.object({
2462
2540
  primary_text: string4(),
2463
2541
  secondary_text: z13.optional(z13.nullable(string4()))
@@ -2469,12 +2547,12 @@ var ProductDisplay$inboundSchema = z13.pipe(
2469
2547
  });
2470
2548
  })
2471
2549
  );
2472
- var ConfigDuration$inboundSchema = inboundSchema(ConfigDuration);
2473
- var CheckRollover$inboundSchema = z13.pipe(
2550
+ var ConfigDuration2$inboundSchema = inboundSchema(ConfigDuration2);
2551
+ var CheckRollover2$inboundSchema = z13.pipe(
2474
2552
  z13.object({
2475
2553
  max: z13.optional(z13.nullable(number2())),
2476
2554
  max_percentage: z13.optional(z13.nullable(number2())),
2477
- duration: z13._default(ConfigDuration$inboundSchema, "month"),
2555
+ duration: z13._default(ConfigDuration2$inboundSchema, "month"),
2478
2556
  length: number2()
2479
2557
  }),
2480
2558
  z13.transform((v) => {
@@ -2483,15 +2561,15 @@ var CheckRollover$inboundSchema = z13.pipe(
2483
2561
  });
2484
2562
  })
2485
2563
  );
2486
- var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
2487
- var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
2488
- var CheckConfig$inboundSchema = z13.pipe(
2564
+ var CheckOnIncrease2$inboundSchema = inboundSchema(CheckOnIncrease2);
2565
+ var CheckOnDecrease2$inboundSchema = inboundSchema(CheckOnDecrease2);
2566
+ var CheckConfig2$inboundSchema = z13.pipe(
2489
2567
  z13.object({
2490
2568
  rollover: z13.optional(
2491
- z13.nullable(z13.lazy(() => CheckRollover$inboundSchema))
2569
+ z13.nullable(z13.lazy(() => CheckRollover2$inboundSchema))
2492
2570
  ),
2493
- on_increase: z13.optional(z13.nullable(CheckOnIncrease$inboundSchema)),
2494
- on_decrease: z13.optional(z13.nullable(CheckOnDecrease$inboundSchema))
2571
+ on_increase: z13.optional(z13.nullable(CheckOnIncrease2$inboundSchema)),
2572
+ on_decrease: z13.optional(z13.nullable(CheckOnDecrease2$inboundSchema))
2495
2573
  }),
2496
2574
  z13.transform((v) => {
2497
2575
  return remap(v, {
@@ -2500,29 +2578,29 @@ var CheckConfig$inboundSchema = z13.pipe(
2500
2578
  });
2501
2579
  })
2502
2580
  );
2503
- var CheckItem$inboundSchema = z13.pipe(
2581
+ var CheckItem2$inboundSchema = z13.pipe(
2504
2582
  z13.object({
2505
- type: z13.optional(z13.nullable(ProductType$inboundSchema)),
2583
+ type: z13.optional(z13.nullable(ProductType2$inboundSchema)),
2506
2584
  feature_id: z13.optional(z13.nullable(string4())),
2507
- feature_type: z13.optional(z13.nullable(FeatureType$inboundSchema)),
2585
+ feature_type: z13.optional(z13.nullable(FeatureType2$inboundSchema)),
2508
2586
  included_usage: z13.optional(
2509
2587
  z13.nullable(smartUnion([number2(), string4()]))
2510
2588
  ),
2511
- interval: z13.optional(z13.nullable(CheckInterval$inboundSchema)),
2589
+ interval: z13.optional(z13.nullable(CheckInterval2$inboundSchema)),
2512
2590
  interval_count: z13.optional(z13.nullable(number2())),
2513
2591
  price: z13.optional(z13.nullable(number2())),
2514
2592
  tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
2515
- tier_behavior: z13.optional(z13.nullable(CheckTierBehavior$inboundSchema)),
2516
- usage_model: z13.optional(z13.nullable(UsageModel$inboundSchema)),
2593
+ tier_behavior: z13.optional(z13.nullable(CheckTierBehavior2$inboundSchema)),
2594
+ usage_model: z13.optional(z13.nullable(UsageModel2$inboundSchema)),
2517
2595
  billing_units: z13.optional(z13.nullable(number2())),
2518
2596
  reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
2519
2597
  entity_feature_id: z13.optional(z13.nullable(string4())),
2520
2598
  display: z13.optional(
2521
- z13.nullable(z13.lazy(() => ProductDisplay$inboundSchema))
2599
+ z13.nullable(z13.lazy(() => ProductDisplay2$inboundSchema))
2522
2600
  ),
2523
2601
  quantity: z13.optional(z13.nullable(number2())),
2524
2602
  next_cycle_quantity: z13.optional(z13.nullable(number2())),
2525
- config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig$inboundSchema)))
2603
+ config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig2$inboundSchema)))
2526
2604
  }),
2527
2605
  z13.transform((v) => {
2528
2606
  return remap(v, {
@@ -2539,10 +2617,10 @@ var CheckItem$inboundSchema = z13.pipe(
2539
2617
  });
2540
2618
  })
2541
2619
  );
2542
- var FreeTrialDuration$inboundSchema = inboundSchema(FreeTrialDuration);
2543
- var CheckFreeTrial$inboundSchema = z13.pipe(
2620
+ var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
2621
+ var CheckFreeTrial2$inboundSchema = z13.pipe(
2544
2622
  z13.object({
2545
- duration: FreeTrialDuration$inboundSchema,
2623
+ duration: FreeTrialDuration2$inboundSchema,
2546
2624
  length: number2(),
2547
2625
  unique_fingerprint: boolean2(),
2548
2626
  card_required: boolean2(),
@@ -2556,8 +2634,8 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
2556
2634
  });
2557
2635
  })
2558
2636
  );
2559
- var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
2560
- var Properties$inboundSchema = z13.pipe(
2637
+ var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
2638
+ var Properties2$inboundSchema = z13.pipe(
2561
2639
  z13.object({
2562
2640
  is_free: boolean2(),
2563
2641
  is_one_off: boolean2(),
@@ -2574,22 +2652,22 @@ var Properties$inboundSchema = z13.pipe(
2574
2652
  });
2575
2653
  })
2576
2654
  );
2577
- var Product$inboundSchema = z13.pipe(
2655
+ var Product2$inboundSchema = z13.pipe(
2578
2656
  z13.object({
2579
2657
  id: string4(),
2580
2658
  name: string4(),
2581
2659
  group: nullable(string4()),
2582
- env: CheckEnv$inboundSchema,
2660
+ env: CheckEnv2$inboundSchema,
2583
2661
  is_add_on: boolean2(),
2584
2662
  is_default: boolean2(),
2585
2663
  archived: boolean2(),
2586
2664
  version: number2(),
2587
2665
  created_at: number2(),
2588
- items: z13.array(z13.lazy(() => CheckItem$inboundSchema)),
2589
- free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
2666
+ items: z13.array(z13.lazy(() => CheckItem2$inboundSchema)),
2667
+ free_trial: nullable(z13.lazy(() => CheckFreeTrial2$inboundSchema)),
2590
2668
  base_variant_id: nullable(string4()),
2591
- scenario: optional2(ProductScenario$inboundSchema),
2592
- properties: optional2(z13.lazy(() => Properties$inboundSchema))
2669
+ scenario: optional2(ProductScenario2$inboundSchema),
2670
+ properties: optional2(z13.lazy(() => Properties2$inboundSchema))
2593
2671
  }),
2594
2672
  z13.transform((v) => {
2595
2673
  return remap(v, {
@@ -2601,14 +2679,14 @@ var Product$inboundSchema = z13.pipe(
2601
2679
  });
2602
2680
  })
2603
2681
  );
2604
- var Preview$inboundSchema = z13.pipe(
2682
+ var Preview2$inboundSchema = z13.pipe(
2605
2683
  z13.object({
2606
- scenario: Scenario$inboundSchema,
2684
+ scenario: Scenario2$inboundSchema,
2607
2685
  title: string4(),
2608
2686
  message: string4(),
2609
2687
  feature_id: string4(),
2610
2688
  feature_name: string4(),
2611
- products: z13.array(z13.lazy(() => Product$inboundSchema))
2689
+ products: z13.array(z13.lazy(() => Product2$inboundSchema))
2612
2690
  }),
2613
2691
  z13.transform((v) => {
2614
2692
  return remap(v, {
@@ -2617,15 +2695,15 @@ var Preview$inboundSchema = z13.pipe(
2617
2695
  });
2618
2696
  })
2619
2697
  );
2620
- var CheckResponse$inboundSchema = z13.pipe(
2698
+ var CheckResponseBody2$inboundSchema = z13.pipe(
2621
2699
  z13.object({
2622
2700
  allowed: boolean2(),
2623
2701
  customer_id: string4(),
2624
2702
  entity_id: z13.optional(z13.nullable(string4())),
2625
2703
  required_balance: optional2(number2()),
2626
2704
  balance: nullable(Balance$inboundSchema),
2627
- flag: nullable(z13.lazy(() => Flag$inboundSchema)),
2628
- preview: optional2(z13.lazy(() => Preview$inboundSchema))
2705
+ flag: nullable(z13.lazy(() => Flag2$inboundSchema)),
2706
+ preview: optional2(z13.lazy(() => Preview2$inboundSchema))
2629
2707
  }),
2630
2708
  z13.transform((v) => {
2631
2709
  return remap(v, {
@@ -2635,6 +2713,249 @@ var CheckResponse$inboundSchema = z13.pipe(
2635
2713
  });
2636
2714
  })
2637
2715
  );
2716
+ var FlagType1$inboundSchema = inboundSchema(FlagType1);
2717
+ var CheckCreditSchema1$inboundSchema = z13.pipe(
2718
+ z13.object({
2719
+ metered_feature_id: string4(),
2720
+ credit_cost: number2()
2721
+ }),
2722
+ z13.transform((v) => {
2723
+ return remap(v, {
2724
+ "metered_feature_id": "meteredFeatureId",
2725
+ "credit_cost": "creditCost"
2726
+ });
2727
+ })
2728
+ );
2729
+ var FlagDisplay1$inboundSchema = z13.object({
2730
+ singular: z13.optional(z13.nullable(string4())),
2731
+ plural: z13.optional(z13.nullable(string4()))
2732
+ });
2733
+ var CheckFeature1$inboundSchema = z13.pipe(
2734
+ z13.object({
2735
+ id: string4(),
2736
+ name: string4(),
2737
+ type: FlagType1$inboundSchema,
2738
+ consumable: boolean2(),
2739
+ event_names: optional2(z13.array(string4())),
2740
+ credit_schema: optional2(
2741
+ z13.array(z13.lazy(() => CheckCreditSchema1$inboundSchema))
2742
+ ),
2743
+ display: optional2(z13.lazy(() => FlagDisplay1$inboundSchema)),
2744
+ archived: boolean2()
2745
+ }),
2746
+ z13.transform((v) => {
2747
+ return remap(v, {
2748
+ "event_names": "eventNames",
2749
+ "credit_schema": "creditSchema"
2750
+ });
2751
+ })
2752
+ );
2753
+ var Flag1$inboundSchema = z13.pipe(
2754
+ z13.object({
2755
+ id: string4(),
2756
+ plan_id: nullable(string4()),
2757
+ expires_at: nullable(number2()),
2758
+ feature_id: string4(),
2759
+ feature: optional2(z13.lazy(() => CheckFeature1$inboundSchema))
2760
+ }),
2761
+ z13.transform((v) => {
2762
+ return remap(v, {
2763
+ "plan_id": "planId",
2764
+ "expires_at": "expiresAt",
2765
+ "feature_id": "featureId"
2766
+ });
2767
+ })
2768
+ );
2769
+ var Scenario1$inboundSchema = inboundSchema(Scenario1);
2770
+ var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
2771
+ var ProductType1$inboundSchema = inboundSchema(ProductType1);
2772
+ var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
2773
+ var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
2774
+ var CheckInterval1$inboundSchema = inboundSchema(CheckInterval1);
2775
+ var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
2776
+ var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
2777
+ var ProductDisplay1$inboundSchema = z13.pipe(
2778
+ z13.object({
2779
+ primary_text: string4(),
2780
+ secondary_text: z13.optional(z13.nullable(string4()))
2781
+ }),
2782
+ z13.transform((v) => {
2783
+ return remap(v, {
2784
+ "primary_text": "primaryText",
2785
+ "secondary_text": "secondaryText"
2786
+ });
2787
+ })
2788
+ );
2789
+ var ConfigDuration1$inboundSchema = inboundSchema(ConfigDuration1);
2790
+ var CheckRollover1$inboundSchema = z13.pipe(
2791
+ z13.object({
2792
+ max: z13.optional(z13.nullable(number2())),
2793
+ max_percentage: z13.optional(z13.nullable(number2())),
2794
+ duration: z13._default(ConfigDuration1$inboundSchema, "month"),
2795
+ length: number2()
2796
+ }),
2797
+ z13.transform((v) => {
2798
+ return remap(v, {
2799
+ "max_percentage": "maxPercentage"
2800
+ });
2801
+ })
2802
+ );
2803
+ var CheckOnIncrease1$inboundSchema = inboundSchema(CheckOnIncrease1);
2804
+ var CheckOnDecrease1$inboundSchema = inboundSchema(CheckOnDecrease1);
2805
+ var CheckConfig1$inboundSchema = z13.pipe(
2806
+ z13.object({
2807
+ rollover: z13.optional(
2808
+ z13.nullable(z13.lazy(() => CheckRollover1$inboundSchema))
2809
+ ),
2810
+ on_increase: z13.optional(z13.nullable(CheckOnIncrease1$inboundSchema)),
2811
+ on_decrease: z13.optional(z13.nullable(CheckOnDecrease1$inboundSchema))
2812
+ }),
2813
+ z13.transform((v) => {
2814
+ return remap(v, {
2815
+ "on_increase": "onIncrease",
2816
+ "on_decrease": "onDecrease"
2817
+ });
2818
+ })
2819
+ );
2820
+ var CheckItem1$inboundSchema = z13.pipe(
2821
+ z13.object({
2822
+ type: z13.optional(z13.nullable(ProductType1$inboundSchema)),
2823
+ feature_id: z13.optional(z13.nullable(string4())),
2824
+ feature_type: z13.optional(z13.nullable(FeatureType1$inboundSchema)),
2825
+ included_usage: z13.optional(
2826
+ z13.nullable(smartUnion([number2(), string4()]))
2827
+ ),
2828
+ interval: z13.optional(z13.nullable(CheckInterval1$inboundSchema)),
2829
+ interval_count: z13.optional(z13.nullable(number2())),
2830
+ price: z13.optional(z13.nullable(number2())),
2831
+ tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
2832
+ tier_behavior: z13.optional(z13.nullable(CheckTierBehavior1$inboundSchema)),
2833
+ usage_model: z13.optional(z13.nullable(UsageModel1$inboundSchema)),
2834
+ billing_units: z13.optional(z13.nullable(number2())),
2835
+ reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
2836
+ entity_feature_id: z13.optional(z13.nullable(string4())),
2837
+ display: z13.optional(
2838
+ z13.nullable(z13.lazy(() => ProductDisplay1$inboundSchema))
2839
+ ),
2840
+ quantity: z13.optional(z13.nullable(number2())),
2841
+ next_cycle_quantity: z13.optional(z13.nullable(number2())),
2842
+ config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig1$inboundSchema)))
2843
+ }),
2844
+ z13.transform((v) => {
2845
+ return remap(v, {
2846
+ "feature_id": "featureId",
2847
+ "feature_type": "featureType",
2848
+ "included_usage": "includedUsage",
2849
+ "interval_count": "intervalCount",
2850
+ "tier_behavior": "tierBehavior",
2851
+ "usage_model": "usageModel",
2852
+ "billing_units": "billingUnits",
2853
+ "reset_usage_when_enabled": "resetUsageWhenEnabled",
2854
+ "entity_feature_id": "entityFeatureId",
2855
+ "next_cycle_quantity": "nextCycleQuantity"
2856
+ });
2857
+ })
2858
+ );
2859
+ var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
2860
+ var CheckFreeTrial1$inboundSchema = z13.pipe(
2861
+ z13.object({
2862
+ duration: FreeTrialDuration1$inboundSchema,
2863
+ length: number2(),
2864
+ unique_fingerprint: boolean2(),
2865
+ card_required: boolean2(),
2866
+ trial_available: z13.nullable(z13._default(boolean2(), true))
2867
+ }),
2868
+ z13.transform((v) => {
2869
+ return remap(v, {
2870
+ "unique_fingerprint": "uniqueFingerprint",
2871
+ "card_required": "cardRequired",
2872
+ "trial_available": "trialAvailable"
2873
+ });
2874
+ })
2875
+ );
2876
+ var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
2877
+ var Properties1$inboundSchema = z13.pipe(
2878
+ z13.object({
2879
+ is_free: boolean2(),
2880
+ is_one_off: boolean2(),
2881
+ interval_group: z13.optional(z13.nullable(string4())),
2882
+ has_trial: z13.optional(z13.nullable(boolean2())),
2883
+ updateable: z13.optional(z13.nullable(boolean2()))
2884
+ }),
2885
+ z13.transform((v) => {
2886
+ return remap(v, {
2887
+ "is_free": "isFree",
2888
+ "is_one_off": "isOneOff",
2889
+ "interval_group": "intervalGroup",
2890
+ "has_trial": "hasTrial"
2891
+ });
2892
+ })
2893
+ );
2894
+ var Product1$inboundSchema = z13.pipe(
2895
+ z13.object({
2896
+ id: string4(),
2897
+ name: string4(),
2898
+ group: nullable(string4()),
2899
+ env: CheckEnv1$inboundSchema,
2900
+ is_add_on: boolean2(),
2901
+ is_default: boolean2(),
2902
+ archived: boolean2(),
2903
+ version: number2(),
2904
+ created_at: number2(),
2905
+ items: z13.array(z13.lazy(() => CheckItem1$inboundSchema)),
2906
+ free_trial: nullable(z13.lazy(() => CheckFreeTrial1$inboundSchema)),
2907
+ base_variant_id: nullable(string4()),
2908
+ scenario: optional2(ProductScenario1$inboundSchema),
2909
+ properties: optional2(z13.lazy(() => Properties1$inboundSchema))
2910
+ }),
2911
+ z13.transform((v) => {
2912
+ return remap(v, {
2913
+ "is_add_on": "isAddOn",
2914
+ "is_default": "isDefault",
2915
+ "created_at": "createdAt",
2916
+ "free_trial": "freeTrial",
2917
+ "base_variant_id": "baseVariantId"
2918
+ });
2919
+ })
2920
+ );
2921
+ var Preview1$inboundSchema = z13.pipe(
2922
+ z13.object({
2923
+ scenario: Scenario1$inboundSchema,
2924
+ title: string4(),
2925
+ message: string4(),
2926
+ feature_id: string4(),
2927
+ feature_name: string4(),
2928
+ products: z13.array(z13.lazy(() => Product1$inboundSchema))
2929
+ }),
2930
+ z13.transform((v) => {
2931
+ return remap(v, {
2932
+ "feature_id": "featureId",
2933
+ "feature_name": "featureName"
2934
+ });
2935
+ })
2936
+ );
2937
+ var CheckResponseBody1$inboundSchema = z13.pipe(
2938
+ z13.object({
2939
+ allowed: boolean2(),
2940
+ customer_id: string4(),
2941
+ entity_id: z13.optional(z13.nullable(string4())),
2942
+ required_balance: optional2(number2()),
2943
+ balance: nullable(Balance$inboundSchema),
2944
+ flag: nullable(z13.lazy(() => Flag1$inboundSchema)),
2945
+ preview: optional2(z13.lazy(() => Preview1$inboundSchema))
2946
+ }),
2947
+ z13.transform((v) => {
2948
+ return remap(v, {
2949
+ "customer_id": "customerId",
2950
+ "entity_id": "entityId",
2951
+ "required_balance": "requiredBalance"
2952
+ });
2953
+ })
2954
+ );
2955
+ var CheckResponse$inboundSchema = smartUnion([
2956
+ z13.lazy(() => CheckResponseBody1$inboundSchema),
2957
+ z13.lazy(() => CheckResponseBody2$inboundSchema)
2958
+ ]);
2638
2959
 
2639
2960
  // ../sdk/src/models/create-balance-op.ts
2640
2961
  var z14 = __toESM(require("zod/v4-mini"), 1);
@@ -4097,7 +4418,13 @@ var CustomerEnv = {
4097
4418
  Sandbox: "sandbox",
4098
4419
  Live: "live"
4099
4420
  };
4100
- var CustomerInterval = {
4421
+ var CustomerInterval2 = {
4422
+ Hour: "hour",
4423
+ Day: "day",
4424
+ Week: "week",
4425
+ Month: "month"
4426
+ };
4427
+ var CustomerInterval1 = {
4101
4428
  Hour: "hour",
4102
4429
  Day: "day",
4103
4430
  Week: "week",
@@ -4134,10 +4461,26 @@ var CustomerDurationType = {
4134
4461
  Forever: "forever"
4135
4462
  };
4136
4463
  var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
4137
- var CustomerInterval$inboundSchema = inboundSchema(CustomerInterval);
4138
- var CustomerPurchaseLimit$inboundSchema = z21.pipe(
4464
+ var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
4465
+ var CustomerPurchaseLimit2$inboundSchema = z21.pipe(
4466
+ z21.object({
4467
+ interval: nullable(CustomerInterval2$inboundSchema),
4468
+ interval_count: nullable(number2()),
4469
+ limit: nullable(number2()),
4470
+ count: number2(),
4471
+ next_reset_at: number2()
4472
+ }),
4473
+ z21.transform((v) => {
4474
+ return remap(v, {
4475
+ "interval_count": "intervalCount",
4476
+ "next_reset_at": "nextResetAt"
4477
+ });
4478
+ })
4479
+ );
4480
+ var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
4481
+ var CustomerPurchaseLimit1$inboundSchema = z21.pipe(
4139
4482
  z21.object({
4140
- interval: CustomerInterval$inboundSchema,
4483
+ interval: CustomerInterval1$inboundSchema,
4141
4484
  interval_count: z21._default(number2(), 1),
4142
4485
  limit: number2()
4143
4486
  }),
@@ -4147,15 +4490,20 @@ var CustomerPurchaseLimit$inboundSchema = z21.pipe(
4147
4490
  });
4148
4491
  })
4149
4492
  );
4493
+ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
4494
+ z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
4495
+ z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
4496
+ ]);
4150
4497
  var CustomerAutoTopup$inboundSchema = z21.pipe(
4151
4498
  z21.object({
4152
4499
  feature_id: string4(),
4153
4500
  enabled: z21._default(boolean2(), false),
4154
4501
  threshold: number2(),
4155
4502
  quantity: number2(),
4156
- purchase_limit: optional2(
4157
- z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
4158
- ),
4503
+ purchase_limit: optional2(smartUnion([
4504
+ z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
4505
+ z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
4506
+ ])),
4159
4507
  invoice_mode: optional2(boolean2())
4160
4508
  }),
4161
4509
  z21.transform((v) => {
@@ -4609,9 +4957,16 @@ var FinalizeBalanceParams$outboundSchema = z27.pipe(
4609
4957
  });
4610
4958
  })
4611
4959
  );
4612
- var FinalizeLockResponse$inboundSchema = z27.object({
4960
+ var FinalizeLockResponseBody2$inboundSchema = z27.object({
4961
+ success: boolean2()
4962
+ });
4963
+ var FinalizeLockResponseBody1$inboundSchema = z27.object({
4613
4964
  success: boolean2()
4614
4965
  });
4966
+ var FinalizeLockResponse$inboundSchema = smartUnion([
4967
+ z27.lazy(() => FinalizeLockResponseBody1$inboundSchema),
4968
+ z27.lazy(() => FinalizeLockResponseBody2$inboundSchema)
4969
+ ]);
4615
4970
 
4616
4971
  // ../sdk/src/models/get-entity-op.ts
4617
4972
  var z28 = __toESM(require("zod/v4-mini"), 1);
@@ -5406,7 +5761,13 @@ var ListCustomersEnv = {
5406
5761
  Sandbox: "sandbox",
5407
5762
  Live: "live"
5408
5763
  };
5409
- var ListCustomersInterval = {
5764
+ var ListCustomersInterval2 = {
5765
+ Hour: "hour",
5766
+ Day: "day",
5767
+ Week: "week",
5768
+ Month: "month"
5769
+ };
5770
+ var ListCustomersInterval1 = {
5410
5771
  Hour: "hour",
5411
5772
  Day: "day",
5412
5773
  Week: "week",
@@ -5451,10 +5812,26 @@ var ListCustomersParams$outboundSchema = z32.pipe(
5451
5812
  })
5452
5813
  );
5453
5814
  var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
5454
- var ListCustomersInterval$inboundSchema = inboundSchema(ListCustomersInterval);
5455
- var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
5815
+ var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
5816
+ var ListCustomersPurchaseLimit2$inboundSchema = z32.pipe(
5456
5817
  z32.object({
5457
- interval: ListCustomersInterval$inboundSchema,
5818
+ interval: nullable(ListCustomersInterval2$inboundSchema),
5819
+ interval_count: nullable(number2()),
5820
+ limit: nullable(number2()),
5821
+ count: number2(),
5822
+ next_reset_at: number2()
5823
+ }),
5824
+ z32.transform((v) => {
5825
+ return remap(v, {
5826
+ "interval_count": "intervalCount",
5827
+ "next_reset_at": "nextResetAt"
5828
+ });
5829
+ })
5830
+ );
5831
+ var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
5832
+ var ListCustomersPurchaseLimit1$inboundSchema = z32.pipe(
5833
+ z32.object({
5834
+ interval: ListCustomersInterval1$inboundSchema,
5458
5835
  interval_count: z32._default(number2(), 1),
5459
5836
  limit: number2()
5460
5837
  }),
@@ -5464,15 +5841,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
5464
5841
  });
5465
5842
  })
5466
5843
  );
5844
+ var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
5845
+ z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
5846
+ z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
5847
+ ]);
5467
5848
  var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5468
5849
  z32.object({
5469
5850
  feature_id: string4(),
5470
5851
  enabled: z32._default(boolean2(), false),
5471
5852
  threshold: number2(),
5472
5853
  quantity: number2(),
5473
- purchase_limit: optional2(
5474
- z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5475
- ),
5854
+ purchase_limit: optional2(smartUnion([
5855
+ z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
5856
+ z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
5857
+ ])),
5476
5858
  invoice_mode: optional2(boolean2())
5477
5859
  }),
5478
5860
  z32.transform((v) => {
@@ -6471,6 +6853,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
6471
6853
  "if_required"
6472
6854
  ),
6473
6855
  newBillingSubscription: z36.optional(z36.boolean()),
6856
+ enablePlanImmediately: z36.optional(z36.boolean()),
6474
6857
  customerData: z36.optional(CustomerData$outboundSchema),
6475
6858
  entityData: z36.optional(z36.lazy(() => MultiAttachEntityData$outboundSchema))
6476
6859
  }),
@@ -6484,6 +6867,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
6484
6867
  checkoutSessionParams: "checkout_session_params",
6485
6868
  redirectMode: "redirect_mode",
6486
6869
  newBillingSubscription: "new_billing_subscription",
6870
+ enablePlanImmediately: "enable_plan_immediately",
6487
6871
  customerData: "customer_data",
6488
6872
  entityData: "entity_data"
6489
6873
  });
@@ -6633,6 +7017,10 @@ var PreviewAttachCheckoutType = {
6633
7017
  StripeCheckout: "stripe_checkout",
6634
7018
  AutumnCheckout: "autumn_checkout"
6635
7019
  };
7020
+ var PreviewAttachStatus = {
7021
+ Complete: "complete",
7022
+ Incomplete: "incomplete"
7023
+ };
6636
7024
  var PreviewAttachFeatureQuantityRequest$outboundSchema = z38.pipe(
6637
7025
  z38.object({
6638
7026
  featureId: z38.string(),
@@ -6879,7 +7267,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
6879
7267
  z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
6880
7268
  ),
6881
7269
  metadata: z38.optional(z38.record(z38.string(), z38.string())),
6882
- noBillingChanges: z38.optional(z38.boolean())
7270
+ noBillingChanges: z38.optional(z38.boolean()),
7271
+ enablePlanImmediately: z38.optional(z38.boolean())
6883
7272
  }),
6884
7273
  z38.transform((v) => {
6885
7274
  return remap(v, {
@@ -6900,7 +7289,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
6900
7289
  processorSubscriptionId: "processor_subscription_id",
6901
7290
  carryOverBalances: "carry_over_balances",
6902
7291
  carryOverUsages: "carry_over_usages",
6903
- noBillingChanges: "no_billing_changes"
7292
+ noBillingChanges: "no_billing_changes",
7293
+ enablePlanImmediately: "enable_plan_immediately"
6904
7294
  });
6905
7295
  })
6906
7296
  );
@@ -7098,6 +7488,22 @@ var PreviewAttachOutgoing$inboundSchema = z38.pipe(
7098
7488
  })
7099
7489
  );
7100
7490
  var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
7491
+ var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
7492
+ var PreviewAttachTax$inboundSchema = z38.pipe(
7493
+ z38.object({
7494
+ total: number2(),
7495
+ amount_inclusive: number2(),
7496
+ amount_exclusive: number2(),
7497
+ currency: string4(),
7498
+ status: PreviewAttachStatus$inboundSchema
7499
+ }),
7500
+ z38.transform((v) => {
7501
+ return remap(v, {
7502
+ "amount_inclusive": "amountInclusive",
7503
+ "amount_exclusive": "amountExclusive"
7504
+ });
7505
+ })
7506
+ );
7101
7507
  var PreviewAttachResponse$inboundSchema = z38.pipe(
7102
7508
  z38.object({
7103
7509
  customer_id: string4(),
@@ -7112,7 +7518,8 @@ var PreviewAttachResponse$inboundSchema = z38.pipe(
7112
7518
  incoming: z38.array(z38.lazy(() => PreviewAttachIncoming$inboundSchema)),
7113
7519
  outgoing: z38.array(z38.lazy(() => PreviewAttachOutgoing$inboundSchema)),
7114
7520
  redirect_to_checkout: boolean2(),
7115
- checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
7521
+ checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
7522
+ tax: optional2(z38.lazy(() => PreviewAttachTax$inboundSchema))
7116
7523
  }),
7117
7524
  z38.transform((v) => {
7118
7525
  return remap(v, {
@@ -7199,6 +7606,10 @@ var PreviewMultiAttachCheckoutType = {
7199
7606
  StripeCheckout: "stripe_checkout",
7200
7607
  AutumnCheckout: "autumn_checkout"
7201
7608
  };
7609
+ var PreviewMultiAttachStatus = {
7610
+ Complete: "complete",
7611
+ Incomplete: "incomplete"
7612
+ };
7202
7613
  var PreviewMultiAttachPriceInterval$outboundSchema = z39.enum(PreviewMultiAttachPriceInterval);
7203
7614
  var PreviewMultiAttachBasePrice$outboundSchema = z39.pipe(
7204
7615
  z39.object({
@@ -7496,6 +7907,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
7496
7907
  "if_required"
7497
7908
  ),
7498
7909
  newBillingSubscription: z39.optional(z39.boolean()),
7910
+ enablePlanImmediately: z39.optional(z39.boolean()),
7499
7911
  customerData: z39.optional(CustomerData$outboundSchema),
7500
7912
  entityData: z39.optional(
7501
7913
  z39.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
@@ -7511,6 +7923,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
7511
7923
  checkoutSessionParams: "checkout_session_params",
7512
7924
  redirectMode: "redirect_mode",
7513
7925
  newBillingSubscription: "new_billing_subscription",
7926
+ enablePlanImmediately: "enable_plan_immediately",
7514
7927
  customerData: "customer_data",
7515
7928
  entityData: "entity_data"
7516
7929
  });
@@ -7710,6 +8123,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z39.pipe(
7710
8123
  })
7711
8124
  );
7712
8125
  var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
8126
+ var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
8127
+ var PreviewMultiAttachTax$inboundSchema = z39.pipe(
8128
+ z39.object({
8129
+ total: number2(),
8130
+ amount_inclusive: number2(),
8131
+ amount_exclusive: number2(),
8132
+ currency: string4(),
8133
+ status: PreviewMultiAttachStatus$inboundSchema
8134
+ }),
8135
+ z39.transform((v) => {
8136
+ return remap(v, {
8137
+ "amount_inclusive": "amountInclusive",
8138
+ "amount_exclusive": "amountExclusive"
8139
+ });
8140
+ })
8141
+ );
7713
8142
  var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
7714
8143
  z39.object({
7715
8144
  customer_id: string4(),
@@ -7724,7 +8153,8 @@ var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
7724
8153
  incoming: z39.array(z39.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
7725
8154
  outgoing: z39.array(z39.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
7726
8155
  redirect_to_checkout: boolean2(),
7727
- checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
8156
+ checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
8157
+ tax: optional2(z39.lazy(() => PreviewMultiAttachTax$inboundSchema))
7728
8158
  }),
7729
8159
  z39.transform((v) => {
7730
8160
  return remap(v, {
@@ -8578,7 +9008,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
8578
9008
  z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
8579
9009
  ),
8580
9010
  metadata: z42.optional(z42.record(z42.string(), z42.string())),
8581
- noBillingChanges: z42.optional(z42.boolean())
9011
+ noBillingChanges: z42.optional(z42.boolean()),
9012
+ enablePlanImmediately: z42.optional(z42.boolean())
8582
9013
  }),
8583
9014
  z42.transform((v) => {
8584
9015
  return remap(v, {
@@ -8595,7 +9026,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
8595
9026
  processorSubscriptionId: "processor_subscription_id",
8596
9027
  carryOverBalances: "carry_over_balances",
8597
9028
  carryOverUsages: "carry_over_usages",
8598
- noBillingChanges: "no_billing_changes"
9029
+ noBillingChanges: "no_billing_changes",
9030
+ enablePlanImmediately: "enable_plan_immediately"
8599
9031
  });
8600
9032
  })
8601
9033
  );
@@ -8647,7 +9079,24 @@ var TrackParams$outboundSchema = z43.pipe(
8647
9079
  });
8648
9080
  })
8649
9081
  );
8650
- var TrackResponse$inboundSchema = z43.pipe(
9082
+ var TrackResponseBody2$inboundSchema = z43.pipe(
9083
+ z43.object({
9084
+ customer_id: string4(),
9085
+ entity_id: optional2(string4()),
9086
+ event_name: optional2(string4()),
9087
+ value: number2(),
9088
+ balance: nullable(Balance$inboundSchema),
9089
+ balances: optional2(z43.record(z43.string(), Balance$inboundSchema))
9090
+ }),
9091
+ z43.transform((v) => {
9092
+ return remap(v, {
9093
+ "customer_id": "customerId",
9094
+ "entity_id": "entityId",
9095
+ "event_name": "eventName"
9096
+ });
9097
+ })
9098
+ );
9099
+ var TrackResponseBody1$inboundSchema = z43.pipe(
8651
9100
  z43.object({
8652
9101
  customer_id: string4(),
8653
9102
  entity_id: optional2(string4()),
@@ -8664,6 +9113,10 @@ var TrackResponse$inboundSchema = z43.pipe(
8664
9113
  });
8665
9114
  })
8666
9115
  );
9116
+ var TrackResponse$inboundSchema = smartUnion([
9117
+ z43.lazy(() => TrackResponseBody1$inboundSchema),
9118
+ z43.lazy(() => TrackResponseBody2$inboundSchema)
9119
+ ]);
8667
9120
 
8668
9121
  // ../sdk/src/models/update-balance-op.ts
8669
9122
  var z44 = __toESM(require("zod/v4-mini"), 1);
@@ -8726,7 +9179,13 @@ var UpdateCustomerEnv = {
8726
9179
  Sandbox: "sandbox",
8727
9180
  Live: "live"
8728
9181
  };
8729
- var UpdateCustomerIntervalResponse = {
9182
+ var UpdateCustomerIntervalResponse2 = {
9183
+ Hour: "hour",
9184
+ Day: "day",
9185
+ Week: "week",
9186
+ Month: "month"
9187
+ };
9188
+ var UpdateCustomerIntervalResponse1 = {
8730
9189
  Hour: "hour",
8731
9190
  Day: "day",
8732
9191
  Week: "week",
@@ -8883,10 +9342,26 @@ var UpdateCustomerParams$outboundSchema = z45.pipe(
8883
9342
  })
8884
9343
  );
8885
9344
  var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
8886
- var UpdateCustomerIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse);
8887
- var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
9345
+ var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
9346
+ var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z45.pipe(
9347
+ z45.object({
9348
+ interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
9349
+ interval_count: nullable(number2()),
9350
+ limit: nullable(number2()),
9351
+ count: number2(),
9352
+ next_reset_at: number2()
9353
+ }),
9354
+ z45.transform((v) => {
9355
+ return remap(v, {
9356
+ "interval_count": "intervalCount",
9357
+ "next_reset_at": "nextResetAt"
9358
+ });
9359
+ })
9360
+ );
9361
+ var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
9362
+ var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z45.pipe(
8888
9363
  z45.object({
8889
- interval: UpdateCustomerIntervalResponse$inboundSchema,
9364
+ interval: UpdateCustomerIntervalResponse1$inboundSchema,
8890
9365
  interval_count: z45._default(number2(), 1),
8891
9366
  limit: number2()
8892
9367
  }),
@@ -8896,15 +9371,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
8896
9371
  });
8897
9372
  })
8898
9373
  );
9374
+ var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
9375
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
9376
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
9377
+ ]);
8899
9378
  var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8900
9379
  z45.object({
8901
9380
  feature_id: string4(),
8902
9381
  enabled: z45._default(boolean2(), false),
8903
9382
  threshold: number2(),
8904
9383
  quantity: number2(),
8905
- purchase_limit: optional2(
8906
- z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8907
- ),
9384
+ purchase_limit: optional2(smartUnion([
9385
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
9386
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
9387
+ ])),
8908
9388
  invoice_mode: optional2(boolean2())
8909
9389
  }),
8910
9390
  z45.transform((v) => {
@@ -10148,6 +10628,7 @@ async function $do(client, request, options) {
10148
10628
  const response = doResult.value;
10149
10629
  const [result] = await match(
10150
10630
  json(200, CheckResponse$inboundSchema),
10631
+ json(202, CheckResponse$inboundSchema),
10151
10632
  fail("4XX"),
10152
10633
  fail("5XX")
10153
10634
  )(response, req);
@@ -10226,6 +10707,7 @@ async function $do2(client, request, options) {
10226
10707
  const response = doResult.value;
10227
10708
  const [result] = await match(
10228
10709
  json(200, TrackResponse$inboundSchema),
10710
+ json(202, TrackResponse$inboundSchema),
10229
10711
  fail("4XX"),
10230
10712
  fail("5XX")
10231
10713
  )(response, req);
@@ -11065,6 +11547,7 @@ async function $do5(client, request, options) {
11065
11547
  const response = doResult.value;
11066
11548
  const [result] = await match(
11067
11549
  json(200, FinalizeLockResponse$inboundSchema),
11550
+ json(202, FinalizeLockResponse$inboundSchema),
11068
11551
  fail("4XX"),
11069
11552
  fail("5XX")
11070
11553
  )(response, req);
@@ -11867,6 +12350,7 @@ var Billing = class extends ClientSDK {
11867
12350
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
11868
12351
  * @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
11869
12352
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
12353
+ * @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
11870
12354
  *
11871
12355
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
11872
12356
  */
@@ -11910,6 +12394,7 @@ var Billing = class extends ClientSDK {
11910
12394
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
11911
12395
  * @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
11912
12396
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
12397
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
11913
12398
  *
11914
12399
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
11915
12400
  */
@@ -11953,6 +12438,7 @@ var Billing = class extends ClientSDK {
11953
12438
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
11954
12439
  * @param metadata - Key-value metadata to attach to the Stripe subscription, invoice, and checkout session created during this attach flow. Keys prefixed with 'autumn_' are reserved and will be stripped. (optional)
11955
12440
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
12441
+ * @param enablePlanImmediately - If true, the customer's plan is activated immediately even when payment is deferred (invoice mode) or pending (Stripe checkout). For Stripe checkout, the customer_product is inserted before the customer completes the hosted form. (optional)
11956
12442
  *
11957
12443
  * @returns A preview response with line items, totals, and effective dates for the proposed changes.
11958
12444
  */
@@ -11984,6 +12470,7 @@ var Billing = class extends ClientSDK {
11984
12470
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
11985
12471
  * @param redirectMode - Controls when to return a checkout URL. 'always' returns a URL even if payment succeeds, 'if_required' only when payment action is needed, 'never' disables redirects. (optional)
11986
12472
  * @param newBillingSubscription - Only applicable when the customer has an existing Stripe subscription. If true, creates a new separate subscription instead of merging into the existing one. (optional)
12473
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
11987
12474
  *
11988
12475
  * @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
11989
12476
  */
@@ -14463,7 +14950,7 @@ var Autumn = class extends ClientSDK {
14463
14950
  * @param lock - Reserve units of a feature upfront by passing a lock_id, then call balances.finalize to confirm or release the hold. (optional)
14464
14951
  * @param withPreview - If true, includes upgrade/upsell information in the response when access is denied. Useful for displaying paywalls. (optional)
14465
14952
  *
14466
- * @returns Whether access is allowed, plus the current balance for that feature.
14953
+ * @returns Whether access is allowed, plus the current balance for that feature. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 and allow access fail-open.
14467
14954
  */
14468
14955
  async check(request, options) {
14469
14956
  return unwrapAsync(check(
@@ -14496,7 +14983,7 @@ var Autumn = class extends ClientSDK {
14496
14983
  * @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
14497
14984
  * @param properties - Additional properties to attach to this usage event. (optional)
14498
14985
  *
14499
- * @returns The usage value recorded, with either a single updated balance or a map of updated balances.
14986
+ * @returns The usage value recorded, with either a single updated balance or a map of updated balances. If Autumn is experiencing degraded service from a downstream provider, the API may return 202 after accepting the event for replay so it can be tracked as soon as the service is restored.
14500
14987
  */
14501
14988
  async track(request, options) {
14502
14989
  return unwrapAsync(track(
@@ -14736,7 +15223,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
14736
15223
  carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
14737
15224
  carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
14738
15225
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
14739
- no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
15226
+ no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
15227
+ enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
14740
15228
  });
14741
15229
  var closedEnumSchema2 = import_v42.z.any();
14742
15230
  var openEnumSchema = import_v42.z.any();
@@ -14822,7 +15310,8 @@ var attachParamsSchema = import_v42.z.object({
14822
15310
  carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
14823
15311
  carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
14824
15312
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
14825
- noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
15313
+ noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
15314
+ enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
14826
15315
  });
14827
15316
  var attachCodeSchema = openEnumSchema;
14828
15317
  var attachRequiredActionSchema = import_v42.z.object({
@@ -15393,6 +15882,7 @@ var multiAttachParamsSchema = import_v47.z.object({
15393
15882
  checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
15394
15883
  redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
15395
15884
  newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15885
+ enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15396
15886
  customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
15397
15887
  entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
15398
15888
  });
@@ -15419,6 +15909,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
15419
15909
  checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
15420
15910
  redirect_mode: import_v47.z.string(),
15421
15911
  new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15912
+ enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15422
15913
  customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
15423
15914
  entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
15424
15915
  });
@@ -15652,7 +16143,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
15652
16143
  carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
15653
16144
  carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
15654
16145
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
15655
- no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
16146
+ no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
16147
+ enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
15656
16148
  });
15657
16149
  var closedEnumSchema5 = import_v49.z.any();
15658
16150
  var planSchema = import_v49.z.any();
@@ -15739,7 +16231,8 @@ var previewAttachParamsSchema = import_v49.z.object({
15739
16231
  carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
15740
16232
  carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
15741
16233
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
15742
- noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
16234
+ noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
16235
+ enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
15743
16236
  });
15744
16237
  var previewAttachIncomingSchema = import_v49.z.object({
15745
16238
  planId: import_v49.z.string(),
@@ -15758,6 +16251,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
15758
16251
  expiresAt: import_v49.z.number().nullable()
15759
16252
  });
15760
16253
  var previewAttachCheckoutTypeSchema = openEnumSchema4;
16254
+ var previewAttachStatusSchema = openEnumSchema4;
16255
+ var previewAttachTaxSchema = import_v49.z.object({
16256
+ total: import_v49.z.number(),
16257
+ amountInclusive: import_v49.z.number(),
16258
+ amountExclusive: import_v49.z.number(),
16259
+ currency: import_v49.z.string(),
16260
+ status: previewAttachStatusSchema
16261
+ });
15761
16262
  var previewAttachResponseSchema = import_v49.z.object({
15762
16263
  customerId: import_v49.z.string(),
15763
16264
  lineItems: import_v49.z.array(previewAttachLineItemSchema),
@@ -15769,7 +16270,8 @@ var previewAttachResponseSchema = import_v49.z.object({
15769
16270
  incoming: import_v49.z.array(previewAttachIncomingSchema),
15770
16271
  outgoing: import_v49.z.array(previewAttachOutgoingSchema),
15771
16272
  redirectToCheckout: import_v49.z.boolean(),
15772
- checkoutType: previewAttachCheckoutTypeSchema.nullable()
16273
+ checkoutType: previewAttachCheckoutTypeSchema.nullable(),
16274
+ tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
15773
16275
  });
15774
16276
 
15775
16277
  // src/generated/previewMultiAttachSchemas.ts
@@ -16083,6 +16585,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
16083
16585
  checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
16084
16586
  redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
16085
16587
  newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16588
+ enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16086
16589
  customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
16087
16590
  entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
16088
16591
  });
@@ -16103,6 +16606,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
16103
16606
  expiresAt: import_v410.z.number().nullable()
16104
16607
  });
16105
16608
  var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
16609
+ var previewMultiAttachStatusSchema = openEnumSchema5;
16610
+ var previewMultiAttachTaxSchema = import_v410.z.object({
16611
+ total: import_v410.z.number(),
16612
+ amountInclusive: import_v410.z.number(),
16613
+ amountExclusive: import_v410.z.number(),
16614
+ currency: import_v410.z.string(),
16615
+ status: previewMultiAttachStatusSchema
16616
+ });
16106
16617
  var previewMultiAttachResponseSchema = import_v410.z.object({
16107
16618
  customerId: import_v410.z.string(),
16108
16619
  lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
@@ -16114,7 +16625,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
16114
16625
  incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
16115
16626
  outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
16116
16627
  redirectToCheckout: import_v410.z.boolean(),
16117
- checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
16628
+ checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
16629
+ tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
16118
16630
  });
16119
16631
  var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
16120
16632
  customer_id: import_v410.z.string(),
@@ -16130,6 +16642,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
16130
16642
  checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
16131
16643
  redirect_mode: import_v410.z.string(),
16132
16644
  new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16645
+ enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16133
16646
  customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
16134
16647
  entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
16135
16648
  });
@@ -16579,7 +17092,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
16579
17092
  carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
16580
17093
  carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
16581
17094
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
16582
- no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
17095
+ no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
17096
+ enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
16583
17097
  });
16584
17098
  var closedEnumSchema8 = import_v413.z.any();
16585
17099
  var setupPaymentPriceIntervalSchema = closedEnumSchema8;
@@ -16658,7 +17172,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
16658
17172
  carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
16659
17173
  carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
16660
17174
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
16661
- noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
17175
+ noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
17176
+ enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
16662
17177
  });
16663
17178
 
16664
17179
  // src/generated/updateSubscriptionSchemas.ts