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