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
@@ -78,8 +78,8 @@ var SDK_METADATA = {
78
78
  language: "typescript",
79
79
  openapiDocVersion: "2.2.0",
80
80
  sdkVersion: "0.10.17",
81
- genVersion: "2.881.4",
82
- userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.4 2.2.0 @useautumn/sdk"
81
+ genVersion: "2.881.16",
82
+ userAgent: "speakeasy-sdk/typescript 0.10.17 2.881.16 2.2.0 @useautumn/sdk"
83
83
  };
84
84
 
85
85
  // ../sdk/src/lib/http.ts
@@ -1709,7 +1709,8 @@ var AttachParams$outboundSchema = z10.pipe(
1709
1709
  z10.lazy(() => AttachCarryOverUsages$outboundSchema)
1710
1710
  ),
1711
1711
  metadata: z10.optional(z10.record(z10.string(), z10.string())),
1712
- noBillingChanges: z10.optional(z10.boolean())
1712
+ noBillingChanges: z10.optional(z10.boolean()),
1713
+ enablePlanImmediately: z10.optional(z10.boolean())
1713
1714
  }),
1714
1715
  z10.transform((v) => {
1715
1716
  return remap(v, {
@@ -1730,7 +1731,8 @@ var AttachParams$outboundSchema = z10.pipe(
1730
1731
  processorSubscriptionId: "processor_subscription_id",
1731
1732
  carryOverBalances: "carry_over_balances",
1732
1733
  carryOverUsages: "carry_over_usages",
1733
- noBillingChanges: "no_billing_changes"
1734
+ noBillingChanges: "no_billing_changes",
1735
+ enablePlanImmediately: "enable_plan_immediately"
1734
1736
  });
1735
1737
  })
1736
1738
  );
@@ -2282,31 +2284,31 @@ var BillingUpdateResponse$inboundSchema = z12.pipe(
2282
2284
 
2283
2285
  // ../sdk/src/models/check-op.ts
2284
2286
  var z13 = __toESM(require("zod/v4-mini"), 1);
2285
- var FlagType = {
2287
+ var FlagType2 = {
2286
2288
  Boolean: "boolean",
2287
2289
  Metered: "metered",
2288
2290
  CreditSystem: "credit_system"
2289
2291
  };
2290
- var Scenario = {
2292
+ var Scenario2 = {
2291
2293
  UsageLimit: "usage_limit",
2292
2294
  FeatureFlag: "feature_flag"
2293
2295
  };
2294
- var CheckEnv = {
2296
+ var CheckEnv2 = {
2295
2297
  Sandbox: "sandbox",
2296
2298
  Live: "live"
2297
2299
  };
2298
- var ProductType = {
2300
+ var ProductType2 = {
2299
2301
  Feature: "feature",
2300
2302
  PricedFeature: "priced_feature",
2301
2303
  Price: "price"
2302
2304
  };
2303
- var FeatureType = {
2305
+ var FeatureType2 = {
2304
2306
  SingleUse: "single_use",
2305
2307
  ContinuousUse: "continuous_use",
2306
2308
  Boolean: "boolean",
2307
2309
  Static: "static"
2308
2310
  };
2309
- var CheckInterval = {
2311
+ var CheckInterval2 = {
2310
2312
  Minute: "minute",
2311
2313
  Hour: "hour",
2312
2314
  Day: "day",
@@ -2316,37 +2318,113 @@ var CheckInterval = {
2316
2318
  SemiAnnual: "semi_annual",
2317
2319
  Year: "year"
2318
2320
  };
2319
- var CheckTierBehavior = {
2321
+ var CheckTierBehavior2 = {
2320
2322
  Graduated: "graduated",
2321
2323
  Volume: "volume"
2322
2324
  };
2323
- var UsageModel = {
2325
+ var UsageModel2 = {
2324
2326
  Prepaid: "prepaid",
2325
2327
  PayPerUse: "pay_per_use"
2326
2328
  };
2327
- var ConfigDuration = {
2329
+ var ConfigDuration2 = {
2328
2330
  Month: "month",
2329
2331
  Forever: "forever"
2330
2332
  };
2331
- var CheckOnIncrease = {
2333
+ var CheckOnIncrease2 = {
2332
2334
  BillImmediately: "bill_immediately",
2333
2335
  ProrateImmediately: "prorate_immediately",
2334
2336
  ProrateNextCycle: "prorate_next_cycle",
2335
2337
  BillNextCycle: "bill_next_cycle"
2336
2338
  };
2337
- var CheckOnDecrease = {
2339
+ var CheckOnDecrease2 = {
2338
2340
  Prorate: "prorate",
2339
2341
  ProrateImmediately: "prorate_immediately",
2340
2342
  ProrateNextCycle: "prorate_next_cycle",
2341
2343
  None: "none",
2342
2344
  NoProrations: "no_prorations"
2343
2345
  };
2344
- var FreeTrialDuration = {
2346
+ var FreeTrialDuration2 = {
2345
2347
  Day: "day",
2346
2348
  Month: "month",
2347
2349
  Year: "year"
2348
2350
  };
2349
- var ProductScenario = {
2351
+ var ProductScenario2 = {
2352
+ Scheduled: "scheduled",
2353
+ Active: "active",
2354
+ New: "new",
2355
+ Renew: "renew",
2356
+ Upgrade: "upgrade",
2357
+ UpdatePrepaidQuantity: "update_prepaid_quantity",
2358
+ Downgrade: "downgrade",
2359
+ Cancel: "cancel",
2360
+ Expired: "expired",
2361
+ PastDue: "past_due"
2362
+ };
2363
+ var FlagType1 = {
2364
+ Boolean: "boolean",
2365
+ Metered: "metered",
2366
+ CreditSystem: "credit_system"
2367
+ };
2368
+ var Scenario1 = {
2369
+ UsageLimit: "usage_limit",
2370
+ FeatureFlag: "feature_flag"
2371
+ };
2372
+ var CheckEnv1 = {
2373
+ Sandbox: "sandbox",
2374
+ Live: "live"
2375
+ };
2376
+ var ProductType1 = {
2377
+ Feature: "feature",
2378
+ PricedFeature: "priced_feature",
2379
+ Price: "price"
2380
+ };
2381
+ var FeatureType1 = {
2382
+ SingleUse: "single_use",
2383
+ ContinuousUse: "continuous_use",
2384
+ Boolean: "boolean",
2385
+ Static: "static"
2386
+ };
2387
+ var CheckInterval1 = {
2388
+ Minute: "minute",
2389
+ Hour: "hour",
2390
+ Day: "day",
2391
+ Week: "week",
2392
+ Month: "month",
2393
+ Quarter: "quarter",
2394
+ SemiAnnual: "semi_annual",
2395
+ Year: "year"
2396
+ };
2397
+ var CheckTierBehavior1 = {
2398
+ Graduated: "graduated",
2399
+ Volume: "volume"
2400
+ };
2401
+ var UsageModel1 = {
2402
+ Prepaid: "prepaid",
2403
+ PayPerUse: "pay_per_use"
2404
+ };
2405
+ var ConfigDuration1 = {
2406
+ Month: "month",
2407
+ Forever: "forever"
2408
+ };
2409
+ var CheckOnIncrease1 = {
2410
+ BillImmediately: "bill_immediately",
2411
+ ProrateImmediately: "prorate_immediately",
2412
+ ProrateNextCycle: "prorate_next_cycle",
2413
+ BillNextCycle: "bill_next_cycle"
2414
+ };
2415
+ var CheckOnDecrease1 = {
2416
+ Prorate: "prorate",
2417
+ ProrateImmediately: "prorate_immediately",
2418
+ ProrateNextCycle: "prorate_next_cycle",
2419
+ None: "none",
2420
+ NoProrations: "no_prorations"
2421
+ };
2422
+ var FreeTrialDuration1 = {
2423
+ Day: "day",
2424
+ Month: "month",
2425
+ Year: "year"
2426
+ };
2427
+ var ProductScenario1 = {
2350
2428
  Scheduled: "scheduled",
2351
2429
  Active: "active",
2352
2430
  New: "new",
@@ -2393,8 +2471,8 @@ var CheckParams$outboundSchema = z13.pipe(
2393
2471
  });
2394
2472
  })
2395
2473
  );
2396
- var FlagType$inboundSchema = inboundSchema(FlagType);
2397
- var CheckCreditSchema$inboundSchema = z13.pipe(
2474
+ var FlagType2$inboundSchema = inboundSchema(FlagType2);
2475
+ var CheckCreditSchema2$inboundSchema = z13.pipe(
2398
2476
  z13.object({
2399
2477
  metered_feature_id: string4(),
2400
2478
  credit_cost: number2()
@@ -2406,21 +2484,21 @@ var CheckCreditSchema$inboundSchema = z13.pipe(
2406
2484
  });
2407
2485
  })
2408
2486
  );
2409
- var FlagDisplay$inboundSchema = z13.object({
2487
+ var FlagDisplay2$inboundSchema = z13.object({
2410
2488
  singular: z13.optional(z13.nullable(string4())),
2411
2489
  plural: z13.optional(z13.nullable(string4()))
2412
2490
  });
2413
- var CheckFeature$inboundSchema = z13.pipe(
2491
+ var CheckFeature2$inboundSchema = z13.pipe(
2414
2492
  z13.object({
2415
2493
  id: string4(),
2416
2494
  name: string4(),
2417
- type: FlagType$inboundSchema,
2495
+ type: FlagType2$inboundSchema,
2418
2496
  consumable: boolean2(),
2419
2497
  event_names: optional2(z13.array(string4())),
2420
2498
  credit_schema: optional2(
2421
- z13.array(z13.lazy(() => CheckCreditSchema$inboundSchema))
2499
+ z13.array(z13.lazy(() => CheckCreditSchema2$inboundSchema))
2422
2500
  ),
2423
- display: optional2(z13.lazy(() => FlagDisplay$inboundSchema)),
2501
+ display: optional2(z13.lazy(() => FlagDisplay2$inboundSchema)),
2424
2502
  archived: boolean2()
2425
2503
  }),
2426
2504
  z13.transform((v) => {
@@ -2430,13 +2508,13 @@ var CheckFeature$inboundSchema = z13.pipe(
2430
2508
  });
2431
2509
  })
2432
2510
  );
2433
- var Flag$inboundSchema = z13.pipe(
2511
+ var Flag2$inboundSchema = z13.pipe(
2434
2512
  z13.object({
2435
2513
  id: string4(),
2436
2514
  plan_id: nullable(string4()),
2437
2515
  expires_at: nullable(number2()),
2438
2516
  feature_id: string4(),
2439
- feature: optional2(z13.lazy(() => CheckFeature$inboundSchema))
2517
+ feature: optional2(z13.lazy(() => CheckFeature2$inboundSchema))
2440
2518
  }),
2441
2519
  z13.transform((v) => {
2442
2520
  return remap(v, {
@@ -2446,15 +2524,15 @@ var Flag$inboundSchema = z13.pipe(
2446
2524
  });
2447
2525
  })
2448
2526
  );
2449
- var Scenario$inboundSchema = inboundSchema(Scenario);
2450
- var CheckEnv$inboundSchema = inboundSchema(CheckEnv);
2451
- var ProductType$inboundSchema = inboundSchema(ProductType);
2452
- var FeatureType$inboundSchema = inboundSchema(FeatureType);
2453
- var IncludedUsage$inboundSchema = smartUnion([number2(), string4()]);
2454
- var CheckInterval$inboundSchema = inboundSchema(CheckInterval);
2455
- var CheckTierBehavior$inboundSchema = inboundSchema(CheckTierBehavior);
2456
- var UsageModel$inboundSchema = inboundSchema(UsageModel);
2457
- var ProductDisplay$inboundSchema = z13.pipe(
2527
+ var Scenario2$inboundSchema = inboundSchema(Scenario2);
2528
+ var CheckEnv2$inboundSchema = inboundSchema(CheckEnv2);
2529
+ var ProductType2$inboundSchema = inboundSchema(ProductType2);
2530
+ var FeatureType2$inboundSchema = inboundSchema(FeatureType2);
2531
+ var IncludedUsage2$inboundSchema = smartUnion([number2(), string4()]);
2532
+ var CheckInterval2$inboundSchema = inboundSchema(CheckInterval2);
2533
+ var CheckTierBehavior2$inboundSchema = inboundSchema(CheckTierBehavior2);
2534
+ var UsageModel2$inboundSchema = inboundSchema(UsageModel2);
2535
+ var ProductDisplay2$inboundSchema = z13.pipe(
2458
2536
  z13.object({
2459
2537
  primary_text: string4(),
2460
2538
  secondary_text: z13.optional(z13.nullable(string4()))
@@ -2466,12 +2544,12 @@ var ProductDisplay$inboundSchema = z13.pipe(
2466
2544
  });
2467
2545
  })
2468
2546
  );
2469
- var ConfigDuration$inboundSchema = inboundSchema(ConfigDuration);
2470
- var CheckRollover$inboundSchema = z13.pipe(
2547
+ var ConfigDuration2$inboundSchema = inboundSchema(ConfigDuration2);
2548
+ var CheckRollover2$inboundSchema = z13.pipe(
2471
2549
  z13.object({
2472
2550
  max: z13.optional(z13.nullable(number2())),
2473
2551
  max_percentage: z13.optional(z13.nullable(number2())),
2474
- duration: z13._default(ConfigDuration$inboundSchema, "month"),
2552
+ duration: z13._default(ConfigDuration2$inboundSchema, "month"),
2475
2553
  length: number2()
2476
2554
  }),
2477
2555
  z13.transform((v) => {
@@ -2480,15 +2558,15 @@ var CheckRollover$inboundSchema = z13.pipe(
2480
2558
  });
2481
2559
  })
2482
2560
  );
2483
- var CheckOnIncrease$inboundSchema = inboundSchema(CheckOnIncrease);
2484
- var CheckOnDecrease$inboundSchema = inboundSchema(CheckOnDecrease);
2485
- var CheckConfig$inboundSchema = z13.pipe(
2561
+ var CheckOnIncrease2$inboundSchema = inboundSchema(CheckOnIncrease2);
2562
+ var CheckOnDecrease2$inboundSchema = inboundSchema(CheckOnDecrease2);
2563
+ var CheckConfig2$inboundSchema = z13.pipe(
2486
2564
  z13.object({
2487
2565
  rollover: z13.optional(
2488
- z13.nullable(z13.lazy(() => CheckRollover$inboundSchema))
2566
+ z13.nullable(z13.lazy(() => CheckRollover2$inboundSchema))
2489
2567
  ),
2490
- on_increase: z13.optional(z13.nullable(CheckOnIncrease$inboundSchema)),
2491
- on_decrease: z13.optional(z13.nullable(CheckOnDecrease$inboundSchema))
2568
+ on_increase: z13.optional(z13.nullable(CheckOnIncrease2$inboundSchema)),
2569
+ on_decrease: z13.optional(z13.nullable(CheckOnDecrease2$inboundSchema))
2492
2570
  }),
2493
2571
  z13.transform((v) => {
2494
2572
  return remap(v, {
@@ -2497,29 +2575,29 @@ var CheckConfig$inboundSchema = z13.pipe(
2497
2575
  });
2498
2576
  })
2499
2577
  );
2500
- var CheckItem$inboundSchema = z13.pipe(
2578
+ var CheckItem2$inboundSchema = z13.pipe(
2501
2579
  z13.object({
2502
- type: z13.optional(z13.nullable(ProductType$inboundSchema)),
2580
+ type: z13.optional(z13.nullable(ProductType2$inboundSchema)),
2503
2581
  feature_id: z13.optional(z13.nullable(string4())),
2504
- feature_type: z13.optional(z13.nullable(FeatureType$inboundSchema)),
2582
+ feature_type: z13.optional(z13.nullable(FeatureType2$inboundSchema)),
2505
2583
  included_usage: z13.optional(
2506
2584
  z13.nullable(smartUnion([number2(), string4()]))
2507
2585
  ),
2508
- interval: z13.optional(z13.nullable(CheckInterval$inboundSchema)),
2586
+ interval: z13.optional(z13.nullable(CheckInterval2$inboundSchema)),
2509
2587
  interval_count: z13.optional(z13.nullable(number2())),
2510
2588
  price: z13.optional(z13.nullable(number2())),
2511
2589
  tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
2512
- tier_behavior: z13.optional(z13.nullable(CheckTierBehavior$inboundSchema)),
2513
- usage_model: z13.optional(z13.nullable(UsageModel$inboundSchema)),
2590
+ tier_behavior: z13.optional(z13.nullable(CheckTierBehavior2$inboundSchema)),
2591
+ usage_model: z13.optional(z13.nullable(UsageModel2$inboundSchema)),
2514
2592
  billing_units: z13.optional(z13.nullable(number2())),
2515
2593
  reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
2516
2594
  entity_feature_id: z13.optional(z13.nullable(string4())),
2517
2595
  display: z13.optional(
2518
- z13.nullable(z13.lazy(() => ProductDisplay$inboundSchema))
2596
+ z13.nullable(z13.lazy(() => ProductDisplay2$inboundSchema))
2519
2597
  ),
2520
2598
  quantity: z13.optional(z13.nullable(number2())),
2521
2599
  next_cycle_quantity: z13.optional(z13.nullable(number2())),
2522
- config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig$inboundSchema)))
2600
+ config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig2$inboundSchema)))
2523
2601
  }),
2524
2602
  z13.transform((v) => {
2525
2603
  return remap(v, {
@@ -2536,10 +2614,10 @@ var CheckItem$inboundSchema = z13.pipe(
2536
2614
  });
2537
2615
  })
2538
2616
  );
2539
- var FreeTrialDuration$inboundSchema = inboundSchema(FreeTrialDuration);
2540
- var CheckFreeTrial$inboundSchema = z13.pipe(
2617
+ var FreeTrialDuration2$inboundSchema = inboundSchema(FreeTrialDuration2);
2618
+ var CheckFreeTrial2$inboundSchema = z13.pipe(
2541
2619
  z13.object({
2542
- duration: FreeTrialDuration$inboundSchema,
2620
+ duration: FreeTrialDuration2$inboundSchema,
2543
2621
  length: number2(),
2544
2622
  unique_fingerprint: boolean2(),
2545
2623
  card_required: boolean2(),
@@ -2553,8 +2631,8 @@ var CheckFreeTrial$inboundSchema = z13.pipe(
2553
2631
  });
2554
2632
  })
2555
2633
  );
2556
- var ProductScenario$inboundSchema = inboundSchema(ProductScenario);
2557
- var Properties$inboundSchema = z13.pipe(
2634
+ var ProductScenario2$inboundSchema = inboundSchema(ProductScenario2);
2635
+ var Properties2$inboundSchema = z13.pipe(
2558
2636
  z13.object({
2559
2637
  is_free: boolean2(),
2560
2638
  is_one_off: boolean2(),
@@ -2571,22 +2649,22 @@ var Properties$inboundSchema = z13.pipe(
2571
2649
  });
2572
2650
  })
2573
2651
  );
2574
- var Product$inboundSchema = z13.pipe(
2652
+ var Product2$inboundSchema = z13.pipe(
2575
2653
  z13.object({
2576
2654
  id: string4(),
2577
2655
  name: string4(),
2578
2656
  group: nullable(string4()),
2579
- env: CheckEnv$inboundSchema,
2657
+ env: CheckEnv2$inboundSchema,
2580
2658
  is_add_on: boolean2(),
2581
2659
  is_default: boolean2(),
2582
2660
  archived: boolean2(),
2583
2661
  version: number2(),
2584
2662
  created_at: number2(),
2585
- items: z13.array(z13.lazy(() => CheckItem$inboundSchema)),
2586
- free_trial: nullable(z13.lazy(() => CheckFreeTrial$inboundSchema)),
2663
+ items: z13.array(z13.lazy(() => CheckItem2$inboundSchema)),
2664
+ free_trial: nullable(z13.lazy(() => CheckFreeTrial2$inboundSchema)),
2587
2665
  base_variant_id: nullable(string4()),
2588
- scenario: optional2(ProductScenario$inboundSchema),
2589
- properties: optional2(z13.lazy(() => Properties$inboundSchema))
2666
+ scenario: optional2(ProductScenario2$inboundSchema),
2667
+ properties: optional2(z13.lazy(() => Properties2$inboundSchema))
2590
2668
  }),
2591
2669
  z13.transform((v) => {
2592
2670
  return remap(v, {
@@ -2598,14 +2676,14 @@ var Product$inboundSchema = z13.pipe(
2598
2676
  });
2599
2677
  })
2600
2678
  );
2601
- var Preview$inboundSchema = z13.pipe(
2679
+ var Preview2$inboundSchema = z13.pipe(
2602
2680
  z13.object({
2603
- scenario: Scenario$inboundSchema,
2681
+ scenario: Scenario2$inboundSchema,
2604
2682
  title: string4(),
2605
2683
  message: string4(),
2606
2684
  feature_id: string4(),
2607
2685
  feature_name: string4(),
2608
- products: z13.array(z13.lazy(() => Product$inboundSchema))
2686
+ products: z13.array(z13.lazy(() => Product2$inboundSchema))
2609
2687
  }),
2610
2688
  z13.transform((v) => {
2611
2689
  return remap(v, {
@@ -2614,15 +2692,15 @@ var Preview$inboundSchema = z13.pipe(
2614
2692
  });
2615
2693
  })
2616
2694
  );
2617
- var CheckResponse$inboundSchema = z13.pipe(
2695
+ var CheckResponseBody2$inboundSchema = z13.pipe(
2618
2696
  z13.object({
2619
2697
  allowed: boolean2(),
2620
2698
  customer_id: string4(),
2621
2699
  entity_id: z13.optional(z13.nullable(string4())),
2622
2700
  required_balance: optional2(number2()),
2623
2701
  balance: nullable(Balance$inboundSchema),
2624
- flag: nullable(z13.lazy(() => Flag$inboundSchema)),
2625
- preview: optional2(z13.lazy(() => Preview$inboundSchema))
2702
+ flag: nullable(z13.lazy(() => Flag2$inboundSchema)),
2703
+ preview: optional2(z13.lazy(() => Preview2$inboundSchema))
2626
2704
  }),
2627
2705
  z13.transform((v) => {
2628
2706
  return remap(v, {
@@ -2632,6 +2710,249 @@ var CheckResponse$inboundSchema = z13.pipe(
2632
2710
  });
2633
2711
  })
2634
2712
  );
2713
+ var FlagType1$inboundSchema = inboundSchema(FlagType1);
2714
+ var CheckCreditSchema1$inboundSchema = z13.pipe(
2715
+ z13.object({
2716
+ metered_feature_id: string4(),
2717
+ credit_cost: number2()
2718
+ }),
2719
+ z13.transform((v) => {
2720
+ return remap(v, {
2721
+ "metered_feature_id": "meteredFeatureId",
2722
+ "credit_cost": "creditCost"
2723
+ });
2724
+ })
2725
+ );
2726
+ var FlagDisplay1$inboundSchema = z13.object({
2727
+ singular: z13.optional(z13.nullable(string4())),
2728
+ plural: z13.optional(z13.nullable(string4()))
2729
+ });
2730
+ var CheckFeature1$inboundSchema = z13.pipe(
2731
+ z13.object({
2732
+ id: string4(),
2733
+ name: string4(),
2734
+ type: FlagType1$inboundSchema,
2735
+ consumable: boolean2(),
2736
+ event_names: optional2(z13.array(string4())),
2737
+ credit_schema: optional2(
2738
+ z13.array(z13.lazy(() => CheckCreditSchema1$inboundSchema))
2739
+ ),
2740
+ display: optional2(z13.lazy(() => FlagDisplay1$inboundSchema)),
2741
+ archived: boolean2()
2742
+ }),
2743
+ z13.transform((v) => {
2744
+ return remap(v, {
2745
+ "event_names": "eventNames",
2746
+ "credit_schema": "creditSchema"
2747
+ });
2748
+ })
2749
+ );
2750
+ var Flag1$inboundSchema = z13.pipe(
2751
+ z13.object({
2752
+ id: string4(),
2753
+ plan_id: nullable(string4()),
2754
+ expires_at: nullable(number2()),
2755
+ feature_id: string4(),
2756
+ feature: optional2(z13.lazy(() => CheckFeature1$inboundSchema))
2757
+ }),
2758
+ z13.transform((v) => {
2759
+ return remap(v, {
2760
+ "plan_id": "planId",
2761
+ "expires_at": "expiresAt",
2762
+ "feature_id": "featureId"
2763
+ });
2764
+ })
2765
+ );
2766
+ var Scenario1$inboundSchema = inboundSchema(Scenario1);
2767
+ var CheckEnv1$inboundSchema = inboundSchema(CheckEnv1);
2768
+ var ProductType1$inboundSchema = inboundSchema(ProductType1);
2769
+ var FeatureType1$inboundSchema = inboundSchema(FeatureType1);
2770
+ var IncludedUsage1$inboundSchema = smartUnion([number2(), string4()]);
2771
+ var CheckInterval1$inboundSchema = inboundSchema(CheckInterval1);
2772
+ var CheckTierBehavior1$inboundSchema = inboundSchema(CheckTierBehavior1);
2773
+ var UsageModel1$inboundSchema = inboundSchema(UsageModel1);
2774
+ var ProductDisplay1$inboundSchema = z13.pipe(
2775
+ z13.object({
2776
+ primary_text: string4(),
2777
+ secondary_text: z13.optional(z13.nullable(string4()))
2778
+ }),
2779
+ z13.transform((v) => {
2780
+ return remap(v, {
2781
+ "primary_text": "primaryText",
2782
+ "secondary_text": "secondaryText"
2783
+ });
2784
+ })
2785
+ );
2786
+ var ConfigDuration1$inboundSchema = inboundSchema(ConfigDuration1);
2787
+ var CheckRollover1$inboundSchema = z13.pipe(
2788
+ z13.object({
2789
+ max: z13.optional(z13.nullable(number2())),
2790
+ max_percentage: z13.optional(z13.nullable(number2())),
2791
+ duration: z13._default(ConfigDuration1$inboundSchema, "month"),
2792
+ length: number2()
2793
+ }),
2794
+ z13.transform((v) => {
2795
+ return remap(v, {
2796
+ "max_percentage": "maxPercentage"
2797
+ });
2798
+ })
2799
+ );
2800
+ var CheckOnIncrease1$inboundSchema = inboundSchema(CheckOnIncrease1);
2801
+ var CheckOnDecrease1$inboundSchema = inboundSchema(CheckOnDecrease1);
2802
+ var CheckConfig1$inboundSchema = z13.pipe(
2803
+ z13.object({
2804
+ rollover: z13.optional(
2805
+ z13.nullable(z13.lazy(() => CheckRollover1$inboundSchema))
2806
+ ),
2807
+ on_increase: z13.optional(z13.nullable(CheckOnIncrease1$inboundSchema)),
2808
+ on_decrease: z13.optional(z13.nullable(CheckOnDecrease1$inboundSchema))
2809
+ }),
2810
+ z13.transform((v) => {
2811
+ return remap(v, {
2812
+ "on_increase": "onIncrease",
2813
+ "on_decrease": "onDecrease"
2814
+ });
2815
+ })
2816
+ );
2817
+ var CheckItem1$inboundSchema = z13.pipe(
2818
+ z13.object({
2819
+ type: z13.optional(z13.nullable(ProductType1$inboundSchema)),
2820
+ feature_id: z13.optional(z13.nullable(string4())),
2821
+ feature_type: z13.optional(z13.nullable(FeatureType1$inboundSchema)),
2822
+ included_usage: z13.optional(
2823
+ z13.nullable(smartUnion([number2(), string4()]))
2824
+ ),
2825
+ interval: z13.optional(z13.nullable(CheckInterval1$inboundSchema)),
2826
+ interval_count: z13.optional(z13.nullable(number2())),
2827
+ price: z13.optional(z13.nullable(number2())),
2828
+ tiers: z13.optional(z13.nullable(z13.array(nullable(z13.any())))),
2829
+ tier_behavior: z13.optional(z13.nullable(CheckTierBehavior1$inboundSchema)),
2830
+ usage_model: z13.optional(z13.nullable(UsageModel1$inboundSchema)),
2831
+ billing_units: z13.optional(z13.nullable(number2())),
2832
+ reset_usage_when_enabled: z13.optional(z13.nullable(boolean2())),
2833
+ entity_feature_id: z13.optional(z13.nullable(string4())),
2834
+ display: z13.optional(
2835
+ z13.nullable(z13.lazy(() => ProductDisplay1$inboundSchema))
2836
+ ),
2837
+ quantity: z13.optional(z13.nullable(number2())),
2838
+ next_cycle_quantity: z13.optional(z13.nullable(number2())),
2839
+ config: z13.optional(z13.nullable(z13.lazy(() => CheckConfig1$inboundSchema)))
2840
+ }),
2841
+ z13.transform((v) => {
2842
+ return remap(v, {
2843
+ "feature_id": "featureId",
2844
+ "feature_type": "featureType",
2845
+ "included_usage": "includedUsage",
2846
+ "interval_count": "intervalCount",
2847
+ "tier_behavior": "tierBehavior",
2848
+ "usage_model": "usageModel",
2849
+ "billing_units": "billingUnits",
2850
+ "reset_usage_when_enabled": "resetUsageWhenEnabled",
2851
+ "entity_feature_id": "entityFeatureId",
2852
+ "next_cycle_quantity": "nextCycleQuantity"
2853
+ });
2854
+ })
2855
+ );
2856
+ var FreeTrialDuration1$inboundSchema = inboundSchema(FreeTrialDuration1);
2857
+ var CheckFreeTrial1$inboundSchema = z13.pipe(
2858
+ z13.object({
2859
+ duration: FreeTrialDuration1$inboundSchema,
2860
+ length: number2(),
2861
+ unique_fingerprint: boolean2(),
2862
+ card_required: boolean2(),
2863
+ trial_available: z13.nullable(z13._default(boolean2(), true))
2864
+ }),
2865
+ z13.transform((v) => {
2866
+ return remap(v, {
2867
+ "unique_fingerprint": "uniqueFingerprint",
2868
+ "card_required": "cardRequired",
2869
+ "trial_available": "trialAvailable"
2870
+ });
2871
+ })
2872
+ );
2873
+ var ProductScenario1$inboundSchema = inboundSchema(ProductScenario1);
2874
+ var Properties1$inboundSchema = z13.pipe(
2875
+ z13.object({
2876
+ is_free: boolean2(),
2877
+ is_one_off: boolean2(),
2878
+ interval_group: z13.optional(z13.nullable(string4())),
2879
+ has_trial: z13.optional(z13.nullable(boolean2())),
2880
+ updateable: z13.optional(z13.nullable(boolean2()))
2881
+ }),
2882
+ z13.transform((v) => {
2883
+ return remap(v, {
2884
+ "is_free": "isFree",
2885
+ "is_one_off": "isOneOff",
2886
+ "interval_group": "intervalGroup",
2887
+ "has_trial": "hasTrial"
2888
+ });
2889
+ })
2890
+ );
2891
+ var Product1$inboundSchema = z13.pipe(
2892
+ z13.object({
2893
+ id: string4(),
2894
+ name: string4(),
2895
+ group: nullable(string4()),
2896
+ env: CheckEnv1$inboundSchema,
2897
+ is_add_on: boolean2(),
2898
+ is_default: boolean2(),
2899
+ archived: boolean2(),
2900
+ version: number2(),
2901
+ created_at: number2(),
2902
+ items: z13.array(z13.lazy(() => CheckItem1$inboundSchema)),
2903
+ free_trial: nullable(z13.lazy(() => CheckFreeTrial1$inboundSchema)),
2904
+ base_variant_id: nullable(string4()),
2905
+ scenario: optional2(ProductScenario1$inboundSchema),
2906
+ properties: optional2(z13.lazy(() => Properties1$inboundSchema))
2907
+ }),
2908
+ z13.transform((v) => {
2909
+ return remap(v, {
2910
+ "is_add_on": "isAddOn",
2911
+ "is_default": "isDefault",
2912
+ "created_at": "createdAt",
2913
+ "free_trial": "freeTrial",
2914
+ "base_variant_id": "baseVariantId"
2915
+ });
2916
+ })
2917
+ );
2918
+ var Preview1$inboundSchema = z13.pipe(
2919
+ z13.object({
2920
+ scenario: Scenario1$inboundSchema,
2921
+ title: string4(),
2922
+ message: string4(),
2923
+ feature_id: string4(),
2924
+ feature_name: string4(),
2925
+ products: z13.array(z13.lazy(() => Product1$inboundSchema))
2926
+ }),
2927
+ z13.transform((v) => {
2928
+ return remap(v, {
2929
+ "feature_id": "featureId",
2930
+ "feature_name": "featureName"
2931
+ });
2932
+ })
2933
+ );
2934
+ var CheckResponseBody1$inboundSchema = z13.pipe(
2935
+ z13.object({
2936
+ allowed: boolean2(),
2937
+ customer_id: string4(),
2938
+ entity_id: z13.optional(z13.nullable(string4())),
2939
+ required_balance: optional2(number2()),
2940
+ balance: nullable(Balance$inboundSchema),
2941
+ flag: nullable(z13.lazy(() => Flag1$inboundSchema)),
2942
+ preview: optional2(z13.lazy(() => Preview1$inboundSchema))
2943
+ }),
2944
+ z13.transform((v) => {
2945
+ return remap(v, {
2946
+ "customer_id": "customerId",
2947
+ "entity_id": "entityId",
2948
+ "required_balance": "requiredBalance"
2949
+ });
2950
+ })
2951
+ );
2952
+ var CheckResponse$inboundSchema = smartUnion([
2953
+ z13.lazy(() => CheckResponseBody1$inboundSchema),
2954
+ z13.lazy(() => CheckResponseBody2$inboundSchema)
2955
+ ]);
2635
2956
 
2636
2957
  // ../sdk/src/models/create-balance-op.ts
2637
2958
  var z14 = __toESM(require("zod/v4-mini"), 1);
@@ -4094,7 +4415,13 @@ var CustomerEnv = {
4094
4415
  Sandbox: "sandbox",
4095
4416
  Live: "live"
4096
4417
  };
4097
- var CustomerInterval = {
4418
+ var CustomerInterval2 = {
4419
+ Hour: "hour",
4420
+ Day: "day",
4421
+ Week: "week",
4422
+ Month: "month"
4423
+ };
4424
+ var CustomerInterval1 = {
4098
4425
  Hour: "hour",
4099
4426
  Day: "day",
4100
4427
  Week: "week",
@@ -4131,10 +4458,26 @@ var CustomerDurationType = {
4131
4458
  Forever: "forever"
4132
4459
  };
4133
4460
  var CustomerEnv$inboundSchema = inboundSchema(CustomerEnv);
4134
- var CustomerInterval$inboundSchema = inboundSchema(CustomerInterval);
4135
- var CustomerPurchaseLimit$inboundSchema = z21.pipe(
4461
+ var CustomerInterval2$inboundSchema = inboundSchema(CustomerInterval2);
4462
+ var CustomerPurchaseLimit2$inboundSchema = z21.pipe(
4463
+ z21.object({
4464
+ interval: nullable(CustomerInterval2$inboundSchema),
4465
+ interval_count: nullable(number2()),
4466
+ limit: nullable(number2()),
4467
+ count: number2(),
4468
+ next_reset_at: number2()
4469
+ }),
4470
+ z21.transform((v) => {
4471
+ return remap(v, {
4472
+ "interval_count": "intervalCount",
4473
+ "next_reset_at": "nextResetAt"
4474
+ });
4475
+ })
4476
+ );
4477
+ var CustomerInterval1$inboundSchema = inboundSchema(CustomerInterval1);
4478
+ var CustomerPurchaseLimit1$inboundSchema = z21.pipe(
4136
4479
  z21.object({
4137
- interval: CustomerInterval$inboundSchema,
4480
+ interval: CustomerInterval1$inboundSchema,
4138
4481
  interval_count: z21._default(number2(), 1),
4139
4482
  limit: number2()
4140
4483
  }),
@@ -4144,15 +4487,20 @@ var CustomerPurchaseLimit$inboundSchema = z21.pipe(
4144
4487
  });
4145
4488
  })
4146
4489
  );
4490
+ var CustomerPurchaseLimitUnion$inboundSchema = smartUnion([
4491
+ z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
4492
+ z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
4493
+ ]);
4147
4494
  var CustomerAutoTopup$inboundSchema = z21.pipe(
4148
4495
  z21.object({
4149
4496
  feature_id: string4(),
4150
4497
  enabled: z21._default(boolean2(), false),
4151
4498
  threshold: number2(),
4152
4499
  quantity: number2(),
4153
- purchase_limit: optional2(
4154
- z21.lazy(() => CustomerPurchaseLimit$inboundSchema)
4155
- ),
4500
+ purchase_limit: optional2(smartUnion([
4501
+ z21.lazy(() => CustomerPurchaseLimit2$inboundSchema),
4502
+ z21.lazy(() => CustomerPurchaseLimit1$inboundSchema)
4503
+ ])),
4156
4504
  invoice_mode: optional2(boolean2())
4157
4505
  }),
4158
4506
  z21.transform((v) => {
@@ -4606,9 +4954,16 @@ var FinalizeBalanceParams$outboundSchema = z27.pipe(
4606
4954
  });
4607
4955
  })
4608
4956
  );
4609
- var FinalizeLockResponse$inboundSchema = z27.object({
4957
+ var FinalizeLockResponseBody2$inboundSchema = z27.object({
4958
+ success: boolean2()
4959
+ });
4960
+ var FinalizeLockResponseBody1$inboundSchema = z27.object({
4610
4961
  success: boolean2()
4611
4962
  });
4963
+ var FinalizeLockResponse$inboundSchema = smartUnion([
4964
+ z27.lazy(() => FinalizeLockResponseBody1$inboundSchema),
4965
+ z27.lazy(() => FinalizeLockResponseBody2$inboundSchema)
4966
+ ]);
4612
4967
 
4613
4968
  // ../sdk/src/models/get-entity-op.ts
4614
4969
  var z28 = __toESM(require("zod/v4-mini"), 1);
@@ -5403,7 +5758,13 @@ var ListCustomersEnv = {
5403
5758
  Sandbox: "sandbox",
5404
5759
  Live: "live"
5405
5760
  };
5406
- var ListCustomersInterval = {
5761
+ var ListCustomersInterval2 = {
5762
+ Hour: "hour",
5763
+ Day: "day",
5764
+ Week: "week",
5765
+ Month: "month"
5766
+ };
5767
+ var ListCustomersInterval1 = {
5407
5768
  Hour: "hour",
5408
5769
  Day: "day",
5409
5770
  Week: "week",
@@ -5448,10 +5809,26 @@ var ListCustomersParams$outboundSchema = z32.pipe(
5448
5809
  })
5449
5810
  );
5450
5811
  var ListCustomersEnv$inboundSchema = inboundSchema(ListCustomersEnv);
5451
- var ListCustomersInterval$inboundSchema = inboundSchema(ListCustomersInterval);
5452
- var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
5812
+ var ListCustomersInterval2$inboundSchema = inboundSchema(ListCustomersInterval2);
5813
+ var ListCustomersPurchaseLimit2$inboundSchema = z32.pipe(
5453
5814
  z32.object({
5454
- interval: ListCustomersInterval$inboundSchema,
5815
+ interval: nullable(ListCustomersInterval2$inboundSchema),
5816
+ interval_count: nullable(number2()),
5817
+ limit: nullable(number2()),
5818
+ count: number2(),
5819
+ next_reset_at: number2()
5820
+ }),
5821
+ z32.transform((v) => {
5822
+ return remap(v, {
5823
+ "interval_count": "intervalCount",
5824
+ "next_reset_at": "nextResetAt"
5825
+ });
5826
+ })
5827
+ );
5828
+ var ListCustomersInterval1$inboundSchema = inboundSchema(ListCustomersInterval1);
5829
+ var ListCustomersPurchaseLimit1$inboundSchema = z32.pipe(
5830
+ z32.object({
5831
+ interval: ListCustomersInterval1$inboundSchema,
5455
5832
  interval_count: z32._default(number2(), 1),
5456
5833
  limit: number2()
5457
5834
  }),
@@ -5461,15 +5838,20 @@ var ListCustomersPurchaseLimit$inboundSchema = z32.pipe(
5461
5838
  });
5462
5839
  })
5463
5840
  );
5841
+ var ListCustomersPurchaseLimitUnion$inboundSchema = smartUnion([
5842
+ z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
5843
+ z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
5844
+ ]);
5464
5845
  var ListCustomersAutoTopup$inboundSchema = z32.pipe(
5465
5846
  z32.object({
5466
5847
  feature_id: string4(),
5467
5848
  enabled: z32._default(boolean2(), false),
5468
5849
  threshold: number2(),
5469
5850
  quantity: number2(),
5470
- purchase_limit: optional2(
5471
- z32.lazy(() => ListCustomersPurchaseLimit$inboundSchema)
5472
- ),
5851
+ purchase_limit: optional2(smartUnion([
5852
+ z32.lazy(() => ListCustomersPurchaseLimit2$inboundSchema),
5853
+ z32.lazy(() => ListCustomersPurchaseLimit1$inboundSchema)
5854
+ ])),
5473
5855
  invoice_mode: optional2(boolean2())
5474
5856
  }),
5475
5857
  z32.transform((v) => {
@@ -6468,6 +6850,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
6468
6850
  "if_required"
6469
6851
  ),
6470
6852
  newBillingSubscription: z36.optional(z36.boolean()),
6853
+ enablePlanImmediately: z36.optional(z36.boolean()),
6471
6854
  customerData: z36.optional(CustomerData$outboundSchema),
6472
6855
  entityData: z36.optional(z36.lazy(() => MultiAttachEntityData$outboundSchema))
6473
6856
  }),
@@ -6481,6 +6864,7 @@ var MultiAttachParams$outboundSchema = z36.pipe(
6481
6864
  checkoutSessionParams: "checkout_session_params",
6482
6865
  redirectMode: "redirect_mode",
6483
6866
  newBillingSubscription: "new_billing_subscription",
6867
+ enablePlanImmediately: "enable_plan_immediately",
6484
6868
  customerData: "customer_data",
6485
6869
  entityData: "entity_data"
6486
6870
  });
@@ -6630,6 +7014,10 @@ var PreviewAttachCheckoutType = {
6630
7014
  StripeCheckout: "stripe_checkout",
6631
7015
  AutumnCheckout: "autumn_checkout"
6632
7016
  };
7017
+ var PreviewAttachStatus = {
7018
+ Complete: "complete",
7019
+ Incomplete: "incomplete"
7020
+ };
6633
7021
  var PreviewAttachFeatureQuantityRequest$outboundSchema = z38.pipe(
6634
7022
  z38.object({
6635
7023
  featureId: z38.string(),
@@ -6876,7 +7264,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
6876
7264
  z38.lazy(() => PreviewAttachCarryOverUsages$outboundSchema)
6877
7265
  ),
6878
7266
  metadata: z38.optional(z38.record(z38.string(), z38.string())),
6879
- noBillingChanges: z38.optional(z38.boolean())
7267
+ noBillingChanges: z38.optional(z38.boolean()),
7268
+ enablePlanImmediately: z38.optional(z38.boolean())
6880
7269
  }),
6881
7270
  z38.transform((v) => {
6882
7271
  return remap(v, {
@@ -6897,7 +7286,8 @@ var PreviewAttachParams$outboundSchema = z38.pipe(
6897
7286
  processorSubscriptionId: "processor_subscription_id",
6898
7287
  carryOverBalances: "carry_over_balances",
6899
7288
  carryOverUsages: "carry_over_usages",
6900
- noBillingChanges: "no_billing_changes"
7289
+ noBillingChanges: "no_billing_changes",
7290
+ enablePlanImmediately: "enable_plan_immediately"
6901
7291
  });
6902
7292
  })
6903
7293
  );
@@ -7095,6 +7485,22 @@ var PreviewAttachOutgoing$inboundSchema = z38.pipe(
7095
7485
  })
7096
7486
  );
7097
7487
  var PreviewAttachCheckoutType$inboundSchema = inboundSchema(PreviewAttachCheckoutType);
7488
+ var PreviewAttachStatus$inboundSchema = inboundSchema(PreviewAttachStatus);
7489
+ var PreviewAttachTax$inboundSchema = z38.pipe(
7490
+ z38.object({
7491
+ total: number2(),
7492
+ amount_inclusive: number2(),
7493
+ amount_exclusive: number2(),
7494
+ currency: string4(),
7495
+ status: PreviewAttachStatus$inboundSchema
7496
+ }),
7497
+ z38.transform((v) => {
7498
+ return remap(v, {
7499
+ "amount_inclusive": "amountInclusive",
7500
+ "amount_exclusive": "amountExclusive"
7501
+ });
7502
+ })
7503
+ );
7098
7504
  var PreviewAttachResponse$inboundSchema = z38.pipe(
7099
7505
  z38.object({
7100
7506
  customer_id: string4(),
@@ -7109,7 +7515,8 @@ var PreviewAttachResponse$inboundSchema = z38.pipe(
7109
7515
  incoming: z38.array(z38.lazy(() => PreviewAttachIncoming$inboundSchema)),
7110
7516
  outgoing: z38.array(z38.lazy(() => PreviewAttachOutgoing$inboundSchema)),
7111
7517
  redirect_to_checkout: boolean2(),
7112
- checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema)
7518
+ checkout_type: nullable(PreviewAttachCheckoutType$inboundSchema),
7519
+ tax: optional2(z38.lazy(() => PreviewAttachTax$inboundSchema))
7113
7520
  }),
7114
7521
  z38.transform((v) => {
7115
7522
  return remap(v, {
@@ -7196,6 +7603,10 @@ var PreviewMultiAttachCheckoutType = {
7196
7603
  StripeCheckout: "stripe_checkout",
7197
7604
  AutumnCheckout: "autumn_checkout"
7198
7605
  };
7606
+ var PreviewMultiAttachStatus = {
7607
+ Complete: "complete",
7608
+ Incomplete: "incomplete"
7609
+ };
7199
7610
  var PreviewMultiAttachPriceInterval$outboundSchema = z39.enum(PreviewMultiAttachPriceInterval);
7200
7611
  var PreviewMultiAttachBasePrice$outboundSchema = z39.pipe(
7201
7612
  z39.object({
@@ -7493,6 +7904,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
7493
7904
  "if_required"
7494
7905
  ),
7495
7906
  newBillingSubscription: z39.optional(z39.boolean()),
7907
+ enablePlanImmediately: z39.optional(z39.boolean()),
7496
7908
  customerData: z39.optional(CustomerData$outboundSchema),
7497
7909
  entityData: z39.optional(
7498
7910
  z39.lazy(() => PreviewMultiAttachEntityData$outboundSchema)
@@ -7508,6 +7920,7 @@ var PreviewMultiAttachParams$outboundSchema = z39.pipe(
7508
7920
  checkoutSessionParams: "checkout_session_params",
7509
7921
  redirectMode: "redirect_mode",
7510
7922
  newBillingSubscription: "new_billing_subscription",
7923
+ enablePlanImmediately: "enable_plan_immediately",
7511
7924
  customerData: "customer_data",
7512
7925
  entityData: "entity_data"
7513
7926
  });
@@ -7707,6 +8120,22 @@ var PreviewMultiAttachOutgoing$inboundSchema = z39.pipe(
7707
8120
  })
7708
8121
  );
7709
8122
  var PreviewMultiAttachCheckoutType$inboundSchema = inboundSchema(PreviewMultiAttachCheckoutType);
8123
+ var PreviewMultiAttachStatus$inboundSchema = inboundSchema(PreviewMultiAttachStatus);
8124
+ var PreviewMultiAttachTax$inboundSchema = z39.pipe(
8125
+ z39.object({
8126
+ total: number2(),
8127
+ amount_inclusive: number2(),
8128
+ amount_exclusive: number2(),
8129
+ currency: string4(),
8130
+ status: PreviewMultiAttachStatus$inboundSchema
8131
+ }),
8132
+ z39.transform((v) => {
8133
+ return remap(v, {
8134
+ "amount_inclusive": "amountInclusive",
8135
+ "amount_exclusive": "amountExclusive"
8136
+ });
8137
+ })
8138
+ );
7710
8139
  var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
7711
8140
  z39.object({
7712
8141
  customer_id: string4(),
@@ -7721,7 +8150,8 @@ var PreviewMultiAttachResponse$inboundSchema = z39.pipe(
7721
8150
  incoming: z39.array(z39.lazy(() => PreviewMultiAttachIncoming$inboundSchema)),
7722
8151
  outgoing: z39.array(z39.lazy(() => PreviewMultiAttachOutgoing$inboundSchema)),
7723
8152
  redirect_to_checkout: boolean2(),
7724
- checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema)
8153
+ checkout_type: nullable(PreviewMultiAttachCheckoutType$inboundSchema),
8154
+ tax: optional2(z39.lazy(() => PreviewMultiAttachTax$inboundSchema))
7725
8155
  }),
7726
8156
  z39.transform((v) => {
7727
8157
  return remap(v, {
@@ -8575,7 +9005,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
8575
9005
  z42.lazy(() => SetupPaymentCarryOverUsages$outboundSchema)
8576
9006
  ),
8577
9007
  metadata: z42.optional(z42.record(z42.string(), z42.string())),
8578
- noBillingChanges: z42.optional(z42.boolean())
9008
+ noBillingChanges: z42.optional(z42.boolean()),
9009
+ enablePlanImmediately: z42.optional(z42.boolean())
8579
9010
  }),
8580
9011
  z42.transform((v) => {
8581
9012
  return remap(v, {
@@ -8592,7 +9023,8 @@ var SetupPaymentParams$outboundSchema = z42.pipe(
8592
9023
  processorSubscriptionId: "processor_subscription_id",
8593
9024
  carryOverBalances: "carry_over_balances",
8594
9025
  carryOverUsages: "carry_over_usages",
8595
- noBillingChanges: "no_billing_changes"
9026
+ noBillingChanges: "no_billing_changes",
9027
+ enablePlanImmediately: "enable_plan_immediately"
8596
9028
  });
8597
9029
  })
8598
9030
  );
@@ -8644,7 +9076,24 @@ var TrackParams$outboundSchema = z43.pipe(
8644
9076
  });
8645
9077
  })
8646
9078
  );
8647
- var TrackResponse$inboundSchema = z43.pipe(
9079
+ var TrackResponseBody2$inboundSchema = z43.pipe(
9080
+ z43.object({
9081
+ customer_id: string4(),
9082
+ entity_id: optional2(string4()),
9083
+ event_name: optional2(string4()),
9084
+ value: number2(),
9085
+ balance: nullable(Balance$inboundSchema),
9086
+ balances: optional2(z43.record(z43.string(), Balance$inboundSchema))
9087
+ }),
9088
+ z43.transform((v) => {
9089
+ return remap(v, {
9090
+ "customer_id": "customerId",
9091
+ "entity_id": "entityId",
9092
+ "event_name": "eventName"
9093
+ });
9094
+ })
9095
+ );
9096
+ var TrackResponseBody1$inboundSchema = z43.pipe(
8648
9097
  z43.object({
8649
9098
  customer_id: string4(),
8650
9099
  entity_id: optional2(string4()),
@@ -8661,6 +9110,10 @@ var TrackResponse$inboundSchema = z43.pipe(
8661
9110
  });
8662
9111
  })
8663
9112
  );
9113
+ var TrackResponse$inboundSchema = smartUnion([
9114
+ z43.lazy(() => TrackResponseBody1$inboundSchema),
9115
+ z43.lazy(() => TrackResponseBody2$inboundSchema)
9116
+ ]);
8664
9117
 
8665
9118
  // ../sdk/src/models/update-balance-op.ts
8666
9119
  var z44 = __toESM(require("zod/v4-mini"), 1);
@@ -8723,7 +9176,13 @@ var UpdateCustomerEnv = {
8723
9176
  Sandbox: "sandbox",
8724
9177
  Live: "live"
8725
9178
  };
8726
- var UpdateCustomerIntervalResponse = {
9179
+ var UpdateCustomerIntervalResponse2 = {
9180
+ Hour: "hour",
9181
+ Day: "day",
9182
+ Week: "week",
9183
+ Month: "month"
9184
+ };
9185
+ var UpdateCustomerIntervalResponse1 = {
8727
9186
  Hour: "hour",
8728
9187
  Day: "day",
8729
9188
  Week: "week",
@@ -8880,10 +9339,26 @@ var UpdateCustomerParams$outboundSchema = z45.pipe(
8880
9339
  })
8881
9340
  );
8882
9341
  var UpdateCustomerEnv$inboundSchema = inboundSchema(UpdateCustomerEnv);
8883
- var UpdateCustomerIntervalResponse$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse);
8884
- var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
9342
+ var UpdateCustomerIntervalResponse2$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse2);
9343
+ var UpdateCustomerPurchaseLimitResponse2$inboundSchema = z45.pipe(
9344
+ z45.object({
9345
+ interval: nullable(UpdateCustomerIntervalResponse2$inboundSchema),
9346
+ interval_count: nullable(number2()),
9347
+ limit: nullable(number2()),
9348
+ count: number2(),
9349
+ next_reset_at: number2()
9350
+ }),
9351
+ z45.transform((v) => {
9352
+ return remap(v, {
9353
+ "interval_count": "intervalCount",
9354
+ "next_reset_at": "nextResetAt"
9355
+ });
9356
+ })
9357
+ );
9358
+ var UpdateCustomerIntervalResponse1$inboundSchema = inboundSchema(UpdateCustomerIntervalResponse1);
9359
+ var UpdateCustomerPurchaseLimitResponse1$inboundSchema = z45.pipe(
8885
9360
  z45.object({
8886
- interval: UpdateCustomerIntervalResponse$inboundSchema,
9361
+ interval: UpdateCustomerIntervalResponse1$inboundSchema,
8887
9362
  interval_count: z45._default(number2(), 1),
8888
9363
  limit: number2()
8889
9364
  }),
@@ -8893,15 +9368,20 @@ var UpdateCustomerPurchaseLimitResponse$inboundSchema = z45.pipe(
8893
9368
  });
8894
9369
  })
8895
9370
  );
9371
+ var UpdateCustomerPurchaseLimitUnion$inboundSchema = smartUnion([
9372
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
9373
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
9374
+ ]);
8896
9375
  var UpdateCustomerAutoTopupResponse$inboundSchema = z45.pipe(
8897
9376
  z45.object({
8898
9377
  feature_id: string4(),
8899
9378
  enabled: z45._default(boolean2(), false),
8900
9379
  threshold: number2(),
8901
9380
  quantity: number2(),
8902
- purchase_limit: optional2(
8903
- z45.lazy(() => UpdateCustomerPurchaseLimitResponse$inboundSchema)
8904
- ),
9381
+ purchase_limit: optional2(smartUnion([
9382
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse2$inboundSchema),
9383
+ z45.lazy(() => UpdateCustomerPurchaseLimitResponse1$inboundSchema)
9384
+ ])),
8905
9385
  invoice_mode: optional2(boolean2())
8906
9386
  }),
8907
9387
  z45.transform((v) => {
@@ -10145,6 +10625,7 @@ async function $do(client, request, options) {
10145
10625
  const response = doResult.value;
10146
10626
  const [result] = await match(
10147
10627
  json(200, CheckResponse$inboundSchema),
10628
+ json(202, CheckResponse$inboundSchema),
10148
10629
  fail("4XX"),
10149
10630
  fail("5XX")
10150
10631
  )(response, req);
@@ -10223,6 +10704,7 @@ async function $do2(client, request, options) {
10223
10704
  const response = doResult.value;
10224
10705
  const [result] = await match(
10225
10706
  json(200, TrackResponse$inboundSchema),
10707
+ json(202, TrackResponse$inboundSchema),
10226
10708
  fail("4XX"),
10227
10709
  fail("5XX")
10228
10710
  )(response, req);
@@ -11062,6 +11544,7 @@ async function $do5(client, request, options) {
11062
11544
  const response = doResult.value;
11063
11545
  const [result] = await match(
11064
11546
  json(200, FinalizeLockResponse$inboundSchema),
11547
+ json(202, FinalizeLockResponse$inboundSchema),
11065
11548
  fail("4XX"),
11066
11549
  fail("5XX")
11067
11550
  )(response, req);
@@ -11864,6 +12347,7 @@ var Billing = class extends ClientSDK {
11864
12347
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
11865
12348
  * @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)
11866
12349
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
12350
+ * @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)
11867
12351
  *
11868
12352
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
11869
12353
  */
@@ -11907,6 +12391,7 @@ var Billing = class extends ClientSDK {
11907
12391
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
11908
12392
  * @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)
11909
12393
  * @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)
12394
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
11910
12395
  *
11911
12396
  * @returns A billing response with customer ID, invoice details, and payment URL (if checkout required).
11912
12397
  */
@@ -11950,6 +12435,7 @@ var Billing = class extends ClientSDK {
11950
12435
  * @param carryOverUsages - Whether to carry over usages from the previous plan. (optional)
11951
12436
  * @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)
11952
12437
  * @param noBillingChanges - If true, skips any billing changes for the attach operation. (optional)
12438
+ * @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)
11953
12439
  *
11954
12440
  * @returns A preview response with line items, totals, and effective dates for the proposed changes.
11955
12441
  */
@@ -11981,6 +12467,7 @@ var Billing = class extends ClientSDK {
11981
12467
  * @param checkoutSessionParams - Additional parameters to pass into the creation of the Stripe checkout session. (optional)
11982
12468
  * @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)
11983
12469
  * @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)
12470
+ * @param enablePlanImmediately - If true, the cusProducts are activated immediately even when payment is pending via Stripe checkout. (optional)
11984
12471
  *
11985
12472
  * @returns A preview response with line items, totals, and effective dates for the proposed multi-plan attachment.
11986
12473
  */
@@ -14460,7 +14947,7 @@ var Autumn = class extends ClientSDK {
14460
14947
  * @param lock - Reserve units of a feature upfront by passing a lock_id, then call balances.finalize to confirm or release the hold. (optional)
14461
14948
  * @param withPreview - If true, includes upgrade/upsell information in the response when access is denied. Useful for displaying paywalls. (optional)
14462
14949
  *
14463
- * @returns Whether access is allowed, plus the current balance for that feature.
14950
+ * @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.
14464
14951
  */
14465
14952
  async check(request, options) {
14466
14953
  return unwrapAsync(check(
@@ -14493,7 +14980,7 @@ var Autumn = class extends ClientSDK {
14493
14980
  * @param value - The amount of usage to record. Defaults to 1. Use negative values to credit balance (e.g., when removing a seat). (optional)
14494
14981
  * @param properties - Additional properties to attach to this usage event. (optional)
14495
14982
  *
14496
- * @returns The usage value recorded, with either a single updated balance or a map of updated balances.
14983
+ * @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.
14497
14984
  */
14498
14985
  async track(request, options) {
14499
14986
  return unwrapAsync(track(
@@ -14733,7 +15220,8 @@ var attachParamsOutboundSchema = import_v42.z.object({
14733
15220
  carry_over_balances: import_v42.z.union([attachCarryOverBalancesOutboundSchema, import_v42.z.undefined()]).optional(),
14734
15221
  carry_over_usages: import_v42.z.union([attachCarryOverUsagesOutboundSchema, import_v42.z.undefined()]).optional(),
14735
15222
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
14736
- no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
15223
+ no_billing_changes: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
15224
+ enable_plan_immediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
14737
15225
  });
14738
15226
  var closedEnumSchema2 = import_v42.z.any();
14739
15227
  var openEnumSchema = import_v42.z.any();
@@ -14819,7 +15307,8 @@ var attachParamsSchema = import_v42.z.object({
14819
15307
  carryOverBalances: import_v42.z.union([attachCarryOverBalancesSchema, import_v42.z.undefined()]).optional(),
14820
15308
  carryOverUsages: import_v42.z.union([attachCarryOverUsagesSchema, import_v42.z.undefined()]).optional(),
14821
15309
  metadata: import_v42.z.union([import_v42.z.record(import_v42.z.string(), import_v42.z.string()), import_v42.z.undefined()]).optional(),
14822
- noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
15310
+ noBillingChanges: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional(),
15311
+ enablePlanImmediately: import_v42.z.union([import_v42.z.boolean(), import_v42.z.undefined()]).optional()
14823
15312
  });
14824
15313
  var attachCodeSchema = openEnumSchema;
14825
15314
  var attachRequiredActionSchema = import_v42.z.object({
@@ -15390,6 +15879,7 @@ var multiAttachParamsSchema = import_v47.z.object({
15390
15879
  checkoutSessionParams: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
15391
15880
  redirectMode: import_v47.z.union([multiAttachRedirectModeSchema, import_v47.z.undefined()]).optional(),
15392
15881
  newBillingSubscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15882
+ enablePlanImmediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15393
15883
  customerData: import_v47.z.union([customerDataSchema, import_v47.z.undefined()]).optional(),
15394
15884
  entityData: import_v47.z.union([multiAttachEntityDataSchema, import_v47.z.undefined()]).optional()
15395
15885
  });
@@ -15416,6 +15906,7 @@ var multiAttachParamsOutboundSchema = import_v47.z.object({
15416
15906
  checkout_session_params: import_v47.z.union([import_v47.z.record(import_v47.z.string(), import_v47.z.any()), import_v47.z.undefined()]).optional(),
15417
15907
  redirect_mode: import_v47.z.string(),
15418
15908
  new_billing_subscription: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15909
+ enable_plan_immediately: import_v47.z.union([import_v47.z.boolean(), import_v47.z.undefined()]).optional(),
15419
15910
  customer_data: import_v47.z.union([customerDataOutboundSchema, import_v47.z.undefined()]).optional(),
15420
15911
  entity_data: import_v47.z.union([multiAttachEntityDataOutboundSchema, import_v47.z.undefined()]).optional()
15421
15912
  });
@@ -15649,7 +16140,8 @@ var previewAttachParamsOutboundSchema = import_v49.z.object({
15649
16140
  carry_over_balances: import_v49.z.union([previewAttachCarryOverBalancesOutboundSchema, import_v49.z.undefined()]).optional(),
15650
16141
  carry_over_usages: import_v49.z.union([previewAttachCarryOverUsagesOutboundSchema, import_v49.z.undefined()]).optional(),
15651
16142
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
15652
- no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
16143
+ no_billing_changes: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
16144
+ enable_plan_immediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
15653
16145
  });
15654
16146
  var closedEnumSchema5 = import_v49.z.any();
15655
16147
  var planSchema = import_v49.z.any();
@@ -15736,7 +16228,8 @@ var previewAttachParamsSchema = import_v49.z.object({
15736
16228
  carryOverBalances: import_v49.z.union([previewAttachCarryOverBalancesSchema, import_v49.z.undefined()]).optional(),
15737
16229
  carryOverUsages: import_v49.z.union([previewAttachCarryOverUsagesSchema, import_v49.z.undefined()]).optional(),
15738
16230
  metadata: import_v49.z.union([import_v49.z.record(import_v49.z.string(), import_v49.z.string()), import_v49.z.undefined()]).optional(),
15739
- noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
16231
+ noBillingChanges: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional(),
16232
+ enablePlanImmediately: import_v49.z.union([import_v49.z.boolean(), import_v49.z.undefined()]).optional()
15740
16233
  });
15741
16234
  var previewAttachIncomingSchema = import_v49.z.object({
15742
16235
  planId: import_v49.z.string(),
@@ -15755,6 +16248,14 @@ var previewAttachOutgoingSchema = import_v49.z.object({
15755
16248
  expiresAt: import_v49.z.number().nullable()
15756
16249
  });
15757
16250
  var previewAttachCheckoutTypeSchema = openEnumSchema4;
16251
+ var previewAttachStatusSchema = openEnumSchema4;
16252
+ var previewAttachTaxSchema = import_v49.z.object({
16253
+ total: import_v49.z.number(),
16254
+ amountInclusive: import_v49.z.number(),
16255
+ amountExclusive: import_v49.z.number(),
16256
+ currency: import_v49.z.string(),
16257
+ status: previewAttachStatusSchema
16258
+ });
15758
16259
  var previewAttachResponseSchema = import_v49.z.object({
15759
16260
  customerId: import_v49.z.string(),
15760
16261
  lineItems: import_v49.z.array(previewAttachLineItemSchema),
@@ -15766,7 +16267,8 @@ var previewAttachResponseSchema = import_v49.z.object({
15766
16267
  incoming: import_v49.z.array(previewAttachIncomingSchema),
15767
16268
  outgoing: import_v49.z.array(previewAttachOutgoingSchema),
15768
16269
  redirectToCheckout: import_v49.z.boolean(),
15769
- checkoutType: previewAttachCheckoutTypeSchema.nullable()
16270
+ checkoutType: previewAttachCheckoutTypeSchema.nullable(),
16271
+ tax: import_v49.z.union([previewAttachTaxSchema, import_v49.z.undefined()]).optional()
15770
16272
  });
15771
16273
 
15772
16274
  // src/generated/previewMultiAttachSchemas.ts
@@ -16080,6 +16582,7 @@ var previewMultiAttachParamsSchema = import_v410.z.object({
16080
16582
  checkoutSessionParams: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
16081
16583
  redirectMode: import_v410.z.union([previewMultiAttachRedirectModeSchema, import_v410.z.undefined()]).optional(),
16082
16584
  newBillingSubscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16585
+ enablePlanImmediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16083
16586
  customerData: import_v410.z.union([customerDataSchema2, import_v410.z.undefined()]).optional(),
16084
16587
  entityData: import_v410.z.union([previewMultiAttachEntityDataSchema, import_v410.z.undefined()]).optional()
16085
16588
  });
@@ -16100,6 +16603,14 @@ var previewMultiAttachOutgoingSchema = import_v410.z.object({
16100
16603
  expiresAt: import_v410.z.number().nullable()
16101
16604
  });
16102
16605
  var previewMultiAttachCheckoutTypeSchema = openEnumSchema5;
16606
+ var previewMultiAttachStatusSchema = openEnumSchema5;
16607
+ var previewMultiAttachTaxSchema = import_v410.z.object({
16608
+ total: import_v410.z.number(),
16609
+ amountInclusive: import_v410.z.number(),
16610
+ amountExclusive: import_v410.z.number(),
16611
+ currency: import_v410.z.string(),
16612
+ status: previewMultiAttachStatusSchema
16613
+ });
16103
16614
  var previewMultiAttachResponseSchema = import_v410.z.object({
16104
16615
  customerId: import_v410.z.string(),
16105
16616
  lineItems: import_v410.z.array(previewMultiAttachLineItemSchema),
@@ -16111,7 +16622,8 @@ var previewMultiAttachResponseSchema = import_v410.z.object({
16111
16622
  incoming: import_v410.z.array(previewMultiAttachIncomingSchema),
16112
16623
  outgoing: import_v410.z.array(previewMultiAttachOutgoingSchema),
16113
16624
  redirectToCheckout: import_v410.z.boolean(),
16114
- checkoutType: previewMultiAttachCheckoutTypeSchema.nullable()
16625
+ checkoutType: previewMultiAttachCheckoutTypeSchema.nullable(),
16626
+ tax: import_v410.z.union([previewMultiAttachTaxSchema, import_v410.z.undefined()]).optional()
16115
16627
  });
16116
16628
  var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
16117
16629
  customer_id: import_v410.z.string(),
@@ -16127,6 +16639,7 @@ var previewMultiAttachParamsOutboundSchema = import_v410.z.object({
16127
16639
  checkout_session_params: import_v410.z.union([import_v410.z.record(import_v410.z.string(), import_v410.z.any()), import_v410.z.undefined()]).optional(),
16128
16640
  redirect_mode: import_v410.z.string(),
16129
16641
  new_billing_subscription: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16642
+ enable_plan_immediately: import_v410.z.union([import_v410.z.boolean(), import_v410.z.undefined()]).optional(),
16130
16643
  customer_data: import_v410.z.union([customerDataOutboundSchema2, import_v410.z.undefined()]).optional(),
16131
16644
  entity_data: import_v410.z.union([previewMultiAttachEntityDataOutboundSchema, import_v410.z.undefined()]).optional()
16132
16645
  });
@@ -16576,7 +17089,8 @@ var setupPaymentParamsOutboundSchema = import_v413.z.object({
16576
17089
  carry_over_balances: import_v413.z.union([setupPaymentCarryOverBalancesOutboundSchema, import_v413.z.undefined()]).optional(),
16577
17090
  carry_over_usages: import_v413.z.union([setupPaymentCarryOverUsagesOutboundSchema, import_v413.z.undefined()]).optional(),
16578
17091
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
16579
- no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
17092
+ no_billing_changes: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
17093
+ enable_plan_immediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
16580
17094
  });
16581
17095
  var closedEnumSchema8 = import_v413.z.any();
16582
17096
  var setupPaymentPriceIntervalSchema = closedEnumSchema8;
@@ -16655,7 +17169,8 @@ var setupPaymentParamsSchema = import_v413.z.object({
16655
17169
  carryOverBalances: import_v413.z.union([setupPaymentCarryOverBalancesSchema, import_v413.z.undefined()]).optional(),
16656
17170
  carryOverUsages: import_v413.z.union([setupPaymentCarryOverUsagesSchema, import_v413.z.undefined()]).optional(),
16657
17171
  metadata: import_v413.z.union([import_v413.z.record(import_v413.z.string(), import_v413.z.string()), import_v413.z.undefined()]).optional(),
16658
- noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
17172
+ noBillingChanges: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional(),
17173
+ enablePlanImmediately: import_v413.z.union([import_v413.z.boolean(), import_v413.z.undefined()]).optional()
16659
17174
  });
16660
17175
 
16661
17176
  // src/generated/updateSubscriptionSchemas.ts