@epcc-sdk/sdks-shopper 0.6.1 → 0.7.0

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.
@@ -1292,11 +1292,10 @@ __export(zod_gen_exports, {
1292
1292
  module.exports = __toCommonJS(zod_gen_exports);
1293
1293
  var import_zod = require("zod");
1294
1294
  const zAmount = import_zod.z.object({
1295
- amount: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1296
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1297
- }).max(BigInt("9223372036854775807"), {
1298
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1299
- }).optional(),
1295
+ amount: import_zod.z.preprocess(
1296
+ (v) => typeof v === "string" ? Number(v) : v,
1297
+ import_zod.z.number().int()
1298
+ ).optional(),
1300
1299
  includes_tax: import_zod.z.boolean().optional().default(false)
1301
1300
  });
1302
1301
  const zPrioritizedPricebooks = import_zod.z.array(
@@ -1495,9 +1494,10 @@ const zNodeAttributes = import_zod.z.object({
1495
1494
  const zReleaseIndexingCompleteData = import_zod.z.object({
1496
1495
  data: import_zod.z.object({
1497
1496
  status: import_zod.z.enum(["succeeded", "failed"]),
1498
- duration_ms: import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
1499
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1500
- }).nullish()
1497
+ duration_ms: import_zod.z.preprocess(
1498
+ (v) => typeof v === "string" ? Number(v) : v,
1499
+ import_zod.z.number().int().gte(0)
1500
+ ).nullish()
1501
1501
  }).optional()
1502
1502
  });
1503
1503
  const zNodeMeta = import_zod.z.object({
@@ -1519,33 +1519,28 @@ const zNodeReference = import_zod.z.object({
1519
1519
  });
1520
1520
  const zPageMeta = import_zod.z.object({
1521
1521
  results: import_zod.z.object({
1522
- total: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1523
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1524
- }).max(BigInt("9223372036854775807"), {
1525
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1526
- }).optional()
1522
+ total: import_zod.z.preprocess(
1523
+ (v) => typeof v === "string" ? Number(v) : v,
1524
+ import_zod.z.number().int()
1525
+ ).optional()
1527
1526
  }).optional(),
1528
1527
  page: import_zod.z.object({
1529
- limit: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1530
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1531
- }).max(BigInt("9223372036854775807"), {
1532
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1533
- }).optional(),
1534
- offset: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1535
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1536
- }).max(BigInt("9223372036854775807"), {
1537
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1538
- }).optional(),
1539
- current: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1540
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1541
- }).max(BigInt("9223372036854775807"), {
1542
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1543
- }).optional(),
1544
- total: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1545
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1546
- }).max(BigInt("9223372036854775807"), {
1547
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1548
- }).optional()
1528
+ limit: import_zod.z.preprocess(
1529
+ (v) => typeof v === "string" ? Number(v) : v,
1530
+ import_zod.z.number().int()
1531
+ ).optional(),
1532
+ offset: import_zod.z.preprocess(
1533
+ (v) => typeof v === "string" ? Number(v) : v,
1534
+ import_zod.z.number().int()
1535
+ ).optional(),
1536
+ current: import_zod.z.preprocess(
1537
+ (v) => typeof v === "string" ? Number(v) : v,
1538
+ import_zod.z.number().int()
1539
+ ).optional(),
1540
+ total: import_zod.z.preprocess(
1541
+ (v) => typeof v === "string" ? Number(v) : v,
1542
+ import_zod.z.number().int()
1543
+ ).optional()
1549
1544
  }).optional()
1550
1545
  });
1551
1546
  const zPricebook = import_zod.z.object({
@@ -1625,11 +1620,10 @@ const zVariation = import_zod.z.object({
1625
1620
  const zBundleConfiguration = import_zod.z.object({
1626
1621
  selected_options: import_zod.z.record(
1627
1622
  import_zod.z.record(
1628
- import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1629
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1630
- }).max(BigInt("9223372036854775807"), {
1631
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1632
- })
1623
+ import_zod.z.preprocess(
1624
+ (v) => typeof v === "string" ? Number(v) : v,
1625
+ import_zod.z.number().int()
1626
+ )
1633
1627
  )
1634
1628
  )
1635
1629
  });
@@ -1819,16 +1813,14 @@ const zReleaseMeta = import_zod.z.object({
1819
1813
  language: import_zod.z.string().optional(),
1820
1814
  is_full_publish: import_zod.z.boolean().optional().default(false),
1821
1815
  is_full_delta: import_zod.z.boolean().optional().default(false),
1822
- total_products: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1823
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1824
- }).max(BigInt("9223372036854775807"), {
1825
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1826
- }).nullish(),
1827
- total_nodes: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1828
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1829
- }).max(BigInt("9223372036854775807"), {
1830
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1831
- }).nullish(),
1816
+ total_products: import_zod.z.preprocess(
1817
+ (v) => typeof v === "string" ? Number(v) : v,
1818
+ import_zod.z.number().int()
1819
+ ).nullish(),
1820
+ total_nodes: import_zod.z.preprocess(
1821
+ (v) => typeof v === "string" ? Number(v) : v,
1822
+ import_zod.z.number().int()
1823
+ ).nullish(),
1832
1824
  percent_completed: import_zod.z.number().int().min(-2147483648, {
1833
1825
  message: "Invalid value: Expected int32 to be >= -2147483648"
1834
1826
  }).max(2147483647, {
@@ -1836,9 +1828,10 @@ const zReleaseMeta = import_zod.z.object({
1836
1828
  }).nullish(),
1837
1829
  owner: import_zod.z.enum(["store", "organization"]).optional(),
1838
1830
  price_segmentation_enabled: import_zod.z.boolean().optional(),
1839
- indexing_duration_ms: import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
1840
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1841
- }).nullish(),
1831
+ indexing_duration_ms: import_zod.z.preprocess(
1832
+ (v) => typeof v === "string" ? Number(v) : v,
1833
+ import_zod.z.number().int().gte(0)
1834
+ ).nullish(),
1842
1835
  includes_draft_products: import_zod.z.boolean().optional().default(false)
1843
1836
  });
1844
1837
  const zReleaseRelationships = import_zod.z.object({
@@ -1984,20 +1977,18 @@ const zTier = import_zod.z.object({
1984
1977
  price: zCurrencies.optional()
1985
1978
  });
1986
1979
  const zTieredAmount = import_zod.z.object({
1987
- amount: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1988
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1989
- }).max(BigInt("9223372036854775807"), {
1990
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
1991
- }).optional(),
1980
+ amount: import_zod.z.preprocess(
1981
+ (v) => typeof v === "string" ? Number(v) : v,
1982
+ import_zod.z.number().int()
1983
+ ).optional(),
1992
1984
  includes_tax: import_zod.z.boolean().optional().default(false),
1993
1985
  tiers: import_zod.z.record(
1994
1986
  import_zod.z.object({
1995
1987
  minimum_quantity: import_zod.z.number().int().optional(),
1996
- amount: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
1997
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
1998
- }).max(BigInt("9223372036854775807"), {
1999
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
2000
- }).optional()
1988
+ amount: import_zod.z.preprocess(
1989
+ (v) => typeof v === "string" ? Number(v) : v,
1990
+ import_zod.z.number().int()
1991
+ ).optional()
2001
1992
  })
2002
1993
  ).optional()
2003
1994
  });
@@ -3552,11 +3543,10 @@ const zTimePeriod = import_zod.z.object({
3552
3543
  });
3553
3544
  const zSingleCurrencyPrice = import_zod.z.object({
3554
3545
  currency: import_zod.z.string().max(1024),
3555
- amount: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
3556
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
3557
- }).max(BigInt("9223372036854775807"), {
3558
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3559
- }),
3546
+ amount: import_zod.z.preprocess(
3547
+ (v) => typeof v === "string" ? Number(v) : v,
3548
+ import_zod.z.number().int()
3549
+ ),
3560
3550
  includes_tax: import_zod.z.boolean().optional()
3561
3551
  });
3562
3552
  const zPriceUnits = import_zod.z.object({
@@ -3570,20 +3560,18 @@ const zNullablePriceUnits = import_zod.z.object({
3570
3560
  const zPrice = import_zod.z.unknown();
3571
3561
  const zNullablePrice = import_zod.z.record(
3572
3562
  import_zod.z.object({
3573
- amount: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
3574
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
3575
- }).max(BigInt("9223372036854775807"), {
3576
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3577
- }),
3563
+ amount: import_zod.z.preprocess(
3564
+ (v) => typeof v === "string" ? Number(v) : v,
3565
+ import_zod.z.number().int()
3566
+ ),
3578
3567
  includes_tax: import_zod.z.boolean().optional()
3579
3568
  }).nullable()
3580
3569
  ).nullable();
3581
3570
  const zPriceFormatting = import_zod.z.object({
3582
- amount: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
3583
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
3584
- }).max(BigInt("9223372036854775807"), {
3585
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3586
- }),
3571
+ amount: import_zod.z.preprocess(
3572
+ (v) => typeof v === "string" ? Number(v) : v,
3573
+ import_zod.z.number().int()
3574
+ ),
3587
3575
  currency: import_zod.z.string(),
3588
3576
  formatted: import_zod.z.string()
3589
3577
  });
@@ -3629,12 +3617,16 @@ const zPlanUpdateAttributes = import_zod.z.object({
3629
3617
  });
3630
3618
  const zDunningRuleAttributes = import_zod.z.object({
3631
3619
  payment_retry_type: import_zod.z.enum(["fixed", "backoff", "tiered"]),
3632
- payment_retry_interval: import_zod.z.coerce.bigint().gte(BigInt(1)).lte(BigInt(1024)).optional(),
3620
+ payment_retry_interval: import_zod.z.preprocess(
3621
+ (v) => typeof v === "string" ? Number(v) : v,
3622
+ import_zod.z.number().int().gte(1).lte(1024)
3623
+ ).optional(),
3633
3624
  payment_retry_unit: import_zod.z.enum(["day", "week"]).optional(),
3634
3625
  payment_retry_multiplier: import_zod.z.number().gte(1).lte(1024).optional(),
3635
- payment_retries_limit: import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
3636
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3637
- }),
3626
+ payment_retries_limit: import_zod.z.preprocess(
3627
+ (v) => typeof v === "string" ? Number(v) : v,
3628
+ import_zod.z.number().int().gte(0)
3629
+ ),
3638
3630
  action: import_zod.z.enum(["none", "pause", "close", "suspend"]),
3639
3631
  default: import_zod.z.boolean().optional()
3640
3632
  });
@@ -3644,19 +3636,24 @@ const zDunningRuleCreate = import_zod.z.object({
3644
3636
  });
3645
3637
  const zDunningRuleUpdateAttributes = import_zod.z.object({
3646
3638
  payment_retry_type: import_zod.z.enum(["fixed", "backoff", "tiered"]).optional(),
3647
- payment_retry_interval: import_zod.z.coerce.bigint().gte(BigInt(1)).lte(BigInt(1024)).nullish(),
3639
+ payment_retry_interval: import_zod.z.preprocess(
3640
+ (v) => typeof v === "string" ? Number(v) : v,
3641
+ import_zod.z.number().int().gte(1).lte(1024)
3642
+ ).nullish(),
3648
3643
  payment_retry_unit: import_zod.z.enum(["day", "week"]).optional(),
3649
3644
  payment_retry_multiplier: import_zod.z.number().gte(1).lte(1024).nullish(),
3650
- payment_retries_limit: import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
3651
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3652
- }).optional(),
3645
+ payment_retries_limit: import_zod.z.preprocess(
3646
+ (v) => typeof v === "string" ? Number(v) : v,
3647
+ import_zod.z.number().int().gte(0)
3648
+ ).optional(),
3653
3649
  action: import_zod.z.enum(["none", "pause", "close", "suspend"]).optional(),
3654
3650
  default: import_zod.z.boolean().optional()
3655
3651
  });
3656
3652
  const zProrationPolicyAttributes = import_zod.z.object({
3657
3653
  name: import_zod.z.string().min(3).max(1024),
3658
3654
  rounding: import_zod.z.enum(["up", "down", "nearest"]),
3659
- external_ref: zExternalRef.optional()
3655
+ external_ref: zExternalRef.optional(),
3656
+ allow_negative_proration_refund: import_zod.z.boolean().optional().default(false)
3660
3657
  });
3661
3658
  const zProrationPolicyResponseAttributes = zProrationPolicyAttributes;
3662
3659
  const zProrationPolicyCreate = import_zod.z.object({
@@ -3666,7 +3663,8 @@ const zProrationPolicyCreate = import_zod.z.object({
3666
3663
  const zProrationPolicyUpdateAttributes = import_zod.z.object({
3667
3664
  external_ref: zExternalRefUpdate.optional(),
3668
3665
  name: import_zod.z.string().min(3).max(1024).optional(),
3669
- rounding: import_zod.z.enum(["up", "down", "nearest"]).optional()
3666
+ rounding: import_zod.z.enum(["up", "down", "nearest"]).optional(),
3667
+ allow_negative_proration_refund: import_zod.z.boolean().optional()
3670
3668
  });
3671
3669
  const zFeatureConfigAccessAttributes = import_zod.z.object({
3672
3670
  type: import_zod.z.literal("access")
@@ -3783,22 +3781,29 @@ const zProrationPreviewType = import_zod.z.literal("proration_preview");
3783
3781
  const zProrationPreviewAttributes = import_zod.z.object({
3784
3782
  trigger: zProrationPreviewTriggerType,
3785
3783
  would_prorate: import_zod.z.boolean(),
3786
- rejection_reason: import_zod.z.enum(["negative_amount", "no_change"]),
3787
- billing_cost_before_proration: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
3788
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
3789
- }).max(BigInt("9223372036854775807"), {
3790
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3791
- }).nullish(),
3792
- refunded_cost_for_unused_pricing_option_period: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
3793
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
3794
- }).max(BigInt("9223372036854775807"), {
3795
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3796
- }).nullish(),
3797
- new_pricing_option_cost: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
3798
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
3799
- }).max(BigInt("9223372036854775807"), {
3800
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3801
- }).nullish(),
3784
+ would_refund: import_zod.z.boolean().nullish(),
3785
+ refund_amount: import_zod.z.preprocess(
3786
+ (v) => typeof v === "string" ? Number(v) : v,
3787
+ import_zod.z.number().int()
3788
+ ).nullish(),
3789
+ rejection_reason: import_zod.z.enum([
3790
+ "negative_amount",
3791
+ "no_change",
3792
+ "refund_not_possible",
3793
+ "refund_disallowed_by_policy"
3794
+ ]),
3795
+ billing_cost_before_proration: import_zod.z.preprocess(
3796
+ (v) => typeof v === "string" ? Number(v) : v,
3797
+ import_zod.z.number().int()
3798
+ ).nullish(),
3799
+ refunded_cost_for_unused_pricing_option_period: import_zod.z.preprocess(
3800
+ (v) => typeof v === "string" ? Number(v) : v,
3801
+ import_zod.z.number().int()
3802
+ ).nullish(),
3803
+ new_pricing_option_cost: import_zod.z.preprocess(
3804
+ (v) => typeof v === "string" ? Number(v) : v,
3805
+ import_zod.z.number().int()
3806
+ ).nullish(),
3802
3807
  proration_policy_id: import_zod.z.string().uuid().nullish(),
3803
3808
  prorated_at: import_zod.z.string().nullish(),
3804
3809
  billing_period_end_date_after_proration: import_zod.z.string().nullish(),
@@ -3990,9 +3995,10 @@ const zUpdateInvoicePaymentAttributes = import_zod.z.object({
3990
3995
  payment_taken_at: import_zod.z.string().optional()
3991
3996
  });
3992
3997
  const zSubscriptionInvoicePaymentRefundAttributes = import_zod.z.object({
3993
- amount: import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
3994
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
3995
- }),
3998
+ amount: import_zod.z.preprocess(
3999
+ (v) => typeof v === "string" ? Number(v) : v,
4000
+ import_zod.z.number().int().gte(1)
4001
+ ),
3996
4002
  reason: import_zod.z.string().max(1024),
3997
4003
  gateway: import_zod.z.string().max(1024),
3998
4004
  external_refund_id: import_zod.z.string().max(1024),
@@ -4001,9 +4007,10 @@ const zSubscriptionInvoicePaymentRefundAttributes = import_zod.z.object({
4001
4007
  const zCreateInvoicePaymentRefund = import_zod.z.object({
4002
4008
  type: zSubscriptionInvoicePaymentRefundType,
4003
4009
  attributes: import_zod.z.object({
4004
- amount: import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
4005
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4006
- }),
4010
+ amount: import_zod.z.preprocess(
4011
+ (v) => typeof v === "string" ? Number(v) : v,
4012
+ import_zod.z.number().int().gte(1)
4013
+ ),
4007
4014
  reason: import_zod.z.string().min(1).max(1024)
4008
4015
  })
4009
4016
  });
@@ -4060,9 +4067,10 @@ const zNullableLeadTime = import_zod.z.object({
4060
4067
  const zNotificationSchedule = import_zod.z.object({
4061
4068
  name: import_zod.z.string().min(1).max(1024),
4062
4069
  unit: import_zod.z.enum(["day", "week", "month"]),
4063
- amount: import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
4064
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4065
- })
4070
+ amount: import_zod.z.preprocess(
4071
+ (v) => typeof v === "string" ? Number(v) : v,
4072
+ import_zod.z.number().int().gte(1)
4073
+ )
4066
4074
  });
4067
4075
  const zPricingOptionAttributes = import_zod.z.object({
4068
4076
  external_ref: zExternalRef.optional(),
@@ -4444,7 +4452,13 @@ const zSubscriptionMeta = import_zod.z.object({
4444
4452
  pending: import_zod.z.boolean(),
4445
4453
  invoice_after: import_zod.z.string(),
4446
4454
  pending_price_change: zSubscriptionPriceChanges.optional(),
4447
- price_update_history: import_zod.z.array(zSubscriptionPriceUpdateHistoryEntry).optional()
4455
+ price_update_history: import_zod.z.array(zSubscriptionPriceUpdateHistoryEntry).optional(),
4456
+ last_refund_id: import_zod.z.string().uuid().optional(),
4457
+ last_refund_amount: import_zod.z.preprocess(
4458
+ (v) => typeof v === "string" ? Number(v) : v,
4459
+ import_zod.z.number().int()
4460
+ ).optional(),
4461
+ paused_by: import_zod.z.enum(["subscriber", "merchandizer", "dunning"]).optional()
4448
4462
  }).readonly();
4449
4463
  const zBuildSubscription = import_zod.z.object({
4450
4464
  external_ref: zExternalRef.optional(),
@@ -4551,21 +4565,18 @@ const zUpdateInvoicePayment = import_zod.z.object({
4551
4565
  });
4552
4566
  const zProrationEvent = import_zod.z.object({
4553
4567
  proration_policy_id: zSubscriptionsUuid,
4554
- billing_cost_before_proration: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4555
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4556
- }).max(BigInt("9223372036854775807"), {
4557
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4558
- }),
4559
- refunded_amount_for_unused_pricing_option: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4560
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4561
- }).max(BigInt("9223372036854775807"), {
4562
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4563
- }),
4564
- new_pricing_option_cost: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4565
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4566
- }).max(BigInt("9223372036854775807"), {
4567
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4568
- }),
4568
+ billing_cost_before_proration: import_zod.z.preprocess(
4569
+ (v) => typeof v === "string" ? Number(v) : v,
4570
+ import_zod.z.number().int()
4571
+ ),
4572
+ refunded_amount_for_unused_pricing_option: import_zod.z.preprocess(
4573
+ (v) => typeof v === "string" ? Number(v) : v,
4574
+ import_zod.z.number().int()
4575
+ ),
4576
+ new_pricing_option_cost: import_zod.z.preprocess(
4577
+ (v) => typeof v === "string" ? Number(v) : v,
4578
+ import_zod.z.number().int()
4579
+ ),
4569
4580
  prorated_at: import_zod.z.string()
4570
4581
  });
4571
4582
  const zSubscriptionInvoiceMeta = import_zod.z.object({
@@ -4577,11 +4588,10 @@ const zSubscriptionInvoiceMeta = import_zod.z.object({
4577
4588
  notifications: import_zod.z.array(zInvoiceNotification).optional(),
4578
4589
  timestamps: zInvoiceTimestamps,
4579
4590
  proration_events: import_zod.z.array(zProrationEvent).nullable(),
4580
- pro_rata_remaining_value: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4581
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4582
- }).max(BigInt("9223372036854775807"), {
4583
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4584
- })
4591
+ pro_rata_remaining_value: import_zod.z.preprocess(
4592
+ (v) => typeof v === "string" ? Number(v) : v,
4593
+ import_zod.z.number().int()
4594
+ )
4585
4595
  }).readonly();
4586
4596
  const zSubscriptionInvoicePaymentRefund = import_zod.z.object({
4587
4597
  id: zSubscriptionsUuid,
@@ -4681,67 +4691,58 @@ const zMultipleProducts = import_zod.z.object({
4681
4691
  id: import_zod.z.string().uuid()
4682
4692
  });
4683
4693
  const zNullableLocation = import_zod.z.object({
4684
- available: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4685
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4686
- }).max(BigInt("9223372036854775807"), {
4687
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4688
- })
4694
+ available: import_zod.z.preprocess(
4695
+ (v) => typeof v === "string" ? Number(v) : v,
4696
+ import_zod.z.number().int()
4697
+ )
4689
4698
  }).nullable();
4690
4699
  const zNullableLocations = import_zod.z.record(zNullableLocation);
4691
4700
  const zStockUpdateAttributes = import_zod.z.object({
4692
4701
  locations: zNullableLocations.optional()
4693
4702
  });
4694
4703
  const zStockCreateAttributes = import_zod.z.object({
4695
- available: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4696
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4697
- }).max(BigInt("9223372036854775807"), {
4698
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4699
- }).optional(),
4704
+ available: import_zod.z.preprocess(
4705
+ (v) => typeof v === "string" ? Number(v) : v,
4706
+ import_zod.z.number().int()
4707
+ ).optional(),
4700
4708
  locations: import_zod.z.record(
4701
4709
  import_zod.z.object({
4702
- available: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4703
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4704
- }).max(BigInt("9223372036854775807"), {
4705
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4706
- })
4710
+ available: import_zod.z.preprocess(
4711
+ (v) => typeof v === "string" ? Number(v) : v,
4712
+ import_zod.z.number().int()
4713
+ )
4707
4714
  })
4708
4715
  ).optional()
4709
4716
  });
4710
4717
  const zStockLocations = import_zod.z.record(
4711
4718
  import_zod.z.object({
4712
- available: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4713
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4714
- }).max(BigInt("9223372036854775807"), {
4715
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4716
- }),
4717
- allocated: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4718
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4719
- }).max(BigInt("9223372036854775807"), {
4720
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4721
- }),
4722
- total: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4723
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4724
- }).max(BigInt("9223372036854775807"), {
4725
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4726
- })
4719
+ available: import_zod.z.preprocess(
4720
+ (v) => typeof v === "string" ? Number(v) : v,
4721
+ import_zod.z.number().int()
4722
+ ),
4723
+ allocated: import_zod.z.preprocess(
4724
+ (v) => typeof v === "string" ? Number(v) : v,
4725
+ import_zod.z.number().int()
4726
+ ),
4727
+ total: import_zod.z.preprocess(
4728
+ (v) => typeof v === "string" ? Number(v) : v,
4729
+ import_zod.z.number().int()
4730
+ )
4727
4731
  })
4728
4732
  );
4729
4733
  const zStockResponseAttributes = import_zod.z.object({
4730
- available: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4731
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4732
- }).max(BigInt("9223372036854775807"), {
4733
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4734
- }),
4735
- allocated: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4736
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4737
- }).max(BigInt("9223372036854775807"), {
4738
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4739
- }),
4740
- total: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4741
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4742
- }).max(BigInt("9223372036854775807"), {
4743
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4744
- }),
4734
+ available: import_zod.z.preprocess(
4735
+ (v) => typeof v === "string" ? Number(v) : v,
4736
+ import_zod.z.number().int()
4737
+ ),
4738
+ allocated: import_zod.z.preprocess(
4739
+ (v) => typeof v === "string" ? Number(v) : v,
4740
+ import_zod.z.number().int()
4741
+ ),
4742
+ total: import_zod.z.preprocess(
4743
+ (v) => typeof v === "string" ? Number(v) : v,
4744
+ import_zod.z.number().int()
4745
+ ),
4745
4746
  locations: zStockLocations.optional()
4746
4747
  });
4747
4748
  const zGeolocationDetails = import_zod.z.object({
@@ -4775,11 +4776,10 @@ const zInventoriesUuid = import_zod.z.string();
4775
4776
  const zTransactionResponseAttributes = import_zod.z.object({
4776
4777
  action: import_zod.z.enum(["increment", "decrement", "allocate", "deallocate"]),
4777
4778
  product_id: zInventoriesUuid,
4778
- quantity: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
4779
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
4780
- }).max(BigInt("9223372036854775807"), {
4781
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4782
- }),
4779
+ quantity: import_zod.z.preprocess(
4780
+ (v) => typeof v === "string" ? Number(v) : v,
4781
+ import_zod.z.number().int()
4782
+ ),
4783
4783
  location: import_zod.z.string().min(1).max(128).optional()
4784
4784
  });
4785
4785
  const zStockCreate = import_zod.z.object({
@@ -4795,9 +4795,10 @@ const zStockUpdateRequest = import_zod.z.object({
4795
4795
  const zTransactionCreateAttributes = import_zod.z.object({
4796
4796
  product_id: zInventoriesUuid.optional(),
4797
4797
  action: import_zod.z.enum(["increment", "decrement", "allocate", "deallocate", "set"]),
4798
- quantity: import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
4799
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
4800
- }),
4798
+ quantity: import_zod.z.preprocess(
4799
+ (v) => typeof v === "string" ? Number(v) : v,
4800
+ import_zod.z.number().int().gte(0)
4801
+ ),
4801
4802
  location: import_zod.z.string().min(1).max(128).optional()
4802
4803
  });
4803
4804
  const zTransactionCreate = import_zod.z.object({
@@ -5562,11 +5563,10 @@ const zTextMatchInfo = import_zod.z.object({
5562
5563
  best_field_score: import_zod.z.string().optional(),
5563
5564
  best_field_weight: import_zod.z.number().int().optional(),
5564
5565
  fields_matched: import_zod.z.number().int().optional(),
5565
- num_tokens_dropped: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
5566
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
5567
- }).max(BigInt("9223372036854775807"), {
5568
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
5569
- }).optional(),
5566
+ num_tokens_dropped: import_zod.z.preprocess(
5567
+ (v) => typeof v === "string" ? Number(v) : v,
5568
+ import_zod.z.number().int()
5569
+ ).optional(),
5570
5570
  score: import_zod.z.string().optional(),
5571
5571
  tokens_matched: import_zod.z.number().int().optional(),
5572
5572
  typo_prefix_score: import_zod.z.number().int().optional()
@@ -6657,7 +6657,13 @@ const zSubscriptionMetaWritable = import_zod.z.object({
6657
6657
  pending: import_zod.z.boolean(),
6658
6658
  invoice_after: import_zod.z.string(),
6659
6659
  pending_price_change: zSubscriptionPriceChanges.optional(),
6660
- price_update_history: import_zod.z.array(zSubscriptionPriceUpdateHistoryEntry).optional()
6660
+ price_update_history: import_zod.z.array(zSubscriptionPriceUpdateHistoryEntry).optional(),
6661
+ last_refund_id: import_zod.z.string().uuid().optional(),
6662
+ last_refund_amount: import_zod.z.preprocess(
6663
+ (v) => typeof v === "string" ? Number(v) : v,
6664
+ import_zod.z.number().int()
6665
+ ).optional(),
6666
+ paused_by: import_zod.z.enum(["subscriber", "merchandizer", "dunning"]).optional()
6661
6667
  }).readonly();
6662
6668
  const zPaymentAuthorityWritable = import_zod.z.intersection(
6663
6669
  import_zod.z.union([
@@ -6787,11 +6793,10 @@ const zSubscriptionInvoiceMetaWritable = import_zod.z.object({
6787
6793
  notifications: import_zod.z.array(zInvoiceNotification).optional(),
6788
6794
  timestamps: zInvoiceTimestamps,
6789
6795
  proration_events: import_zod.z.array(zProrationEvent).nullable(),
6790
- pro_rata_remaining_value: import_zod.z.coerce.bigint().min(BigInt("-9223372036854775808"), {
6791
- message: "Invalid value: Expected int64 to be >= -9223372036854775808"
6792
- }).max(BigInt("9223372036854775807"), {
6793
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
6794
- })
6796
+ pro_rata_remaining_value: import_zod.z.preprocess(
6797
+ (v) => typeof v === "string" ? Number(v) : v,
6798
+ import_zod.z.number().int()
6799
+ )
6795
6800
  }).readonly();
6796
6801
  const zSubscriptionInvoiceWritable = import_zod.z.object({
6797
6802
  id: zSubscriptionsUuid.optional(),
@@ -6980,10 +6985,14 @@ const zFilterRule = import_zod.z.string();
6980
6985
  const zInclude = import_zod.z.array(
6981
6986
  import_zod.z.enum(["files", "main_image", "component_products"])
6982
6987
  );
6983
- const zLimit = import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
6984
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
6985
- });
6986
- const zOffset = import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4));
6988
+ const zLimit = import_zod.z.preprocess(
6989
+ (v) => typeof v === "string" ? Number(v) : v,
6990
+ import_zod.z.number().int().gte(1)
6991
+ );
6992
+ const zOffset = import_zod.z.preprocess(
6993
+ (v) => typeof v === "string" ? Number(v) : v,
6994
+ import_zod.z.number().int().gte(0).lte(1e4)
6995
+ );
6987
6996
  const zPricebookIdsForPriceSegmentationPreview = import_zod.z.array(import_zod.z.string()).max(5);
6988
6997
  const zPricebookIdsOfAvailablePricesToShow = import_zod.z.array(import_zod.z.string());
6989
6998
  const zTag = import_zod.z.string();
@@ -7002,30 +7011,48 @@ const zSubscriptionInclude = import_zod.z.array(
7002
7011
  import_zod.z.enum(["plans", "pricing_options"])
7003
7012
  );
7004
7013
  const zSubscriptionsFilter = import_zod.z.string();
7005
- const zSubscriptionsPageLimit = import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7006
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7007
- });
7008
- const zSubscriptionsPageOffset = import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4));
7014
+ const zSubscriptionsPageLimit = import_zod.z.preprocess(
7015
+ (v) => typeof v === "string" ? Number(v) : v,
7016
+ import_zod.z.number().int().gte(0)
7017
+ );
7018
+ const zSubscriptionsPageOffset = import_zod.z.preprocess(
7019
+ (v) => typeof v === "string" ? Number(v) : v,
7020
+ import_zod.z.number().int().gte(0).lte(1e4)
7021
+ );
7009
7022
  const zEpGeolocation = import_zod.z.string().regex(/^-?\d+(\.\d+)?,-?\d+(\.\d+)?$/);
7010
7023
  const zInventoriesFilter = import_zod.z.string();
7011
7024
  const zInventoriesPageLimit = import_zod.z.number().int().gte(0);
7012
7025
  const zInventoriesPageOffset = import_zod.z.number().int().gte(0).lte(1e4);
7013
7026
  const zFilter = import_zod.z.string();
7014
- const zPageLimit = import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7015
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7016
- });
7017
- const zPageOffset = import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4));
7027
+ const zPageLimit = import_zod.z.preprocess(
7028
+ (v) => typeof v === "string" ? Number(v) : v,
7029
+ import_zod.z.number().int().gte(0)
7030
+ );
7031
+ const zPageOffset = import_zod.z.preprocess(
7032
+ (v) => typeof v === "string" ? Number(v) : v,
7033
+ import_zod.z.number().int().gte(0).lte(1e4)
7034
+ );
7018
7035
  const zIncludeAccountMember = import_zod.z.string();
7019
7036
  const zIncludeAccount = import_zod.z.string();
7020
7037
  const zAccountTagId = import_zod.z.string().uuid();
7021
- const zAuthenticationRealmspageLimit = import_zod.z.coerce.bigint().gte(BigInt(1)).lte(BigInt(100)).default(BigInt(25));
7022
- const zAuthenticationRealmspageOffset = import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7023
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7024
- }).default(BigInt(0));
7038
+ const zAuthenticationRealmspageLimit = import_zod.z.preprocess(
7039
+ (v) => typeof v === "string" ? Number(v) : v,
7040
+ import_zod.z.number().int().gte(1).lte(100)
7041
+ ).default(25);
7042
+ const zAuthenticationRealmspageOffset = import_zod.z.preprocess(
7043
+ (v) => typeof v === "string" ? Number(v) : v,
7044
+ import_zod.z.number().int().gte(0)
7045
+ ).default(0);
7025
7046
  const zAuthenticationRealmsfilter = import_zod.z.string();
7026
7047
  const zFilesfilter = import_zod.z.string();
7027
- const zFilespageOffset = import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4));
7028
- const zFilespageLimit = import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4));
7048
+ const zFilespageOffset = import_zod.z.preprocess(
7049
+ (v) => typeof v === "string" ? Number(v) : v,
7050
+ import_zod.z.number().int().gte(0).lte(1e4)
7051
+ );
7052
+ const zFilespageLimit = import_zod.z.preprocess(
7053
+ (v) => typeof v === "string" ? Number(v) : v,
7054
+ import_zod.z.number().int().gte(0).lte(1e4)
7055
+ );
7029
7056
  const zCatalogSearchacceptLanguage = import_zod.z.string();
7030
7057
  const zCatalogSearchpricebookIdsForPriceSegmentationPreview = import_zod.z.array(import_zod.z.string()).max(5);
7031
7058
  const zCatalogSearchpricebookIdsOfAvailablePricesToShow = import_zod.z.array(import_zod.z.string()).max(5);
@@ -7057,10 +7084,14 @@ const zGetByContextAllHierarchiesHeaders = import_zod.z.object({
7057
7084
  });
7058
7085
  const zGetByContextAllHierarchiesQuery = import_zod.z.object({
7059
7086
  filter: import_zod.z.string().optional(),
7060
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7061
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7062
- }).optional(),
7063
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7087
+ "page[limit]": import_zod.z.preprocess(
7088
+ (v) => typeof v === "string" ? Number(v) : v,
7089
+ import_zod.z.number().int().gte(1)
7090
+ ).optional(),
7091
+ "page[offset]": import_zod.z.preprocess(
7092
+ (v) => typeof v === "string" ? Number(v) : v,
7093
+ import_zod.z.number().int().gte(0).lte(1e4)
7094
+ ).optional()
7064
7095
  });
7065
7096
  const zGetByContextAllHierarchiesResponse = zHierarchyListData;
7066
7097
  const zGetByContextHierarchyHeaders = import_zod.z.object({
@@ -7082,10 +7113,14 @@ const zGetByContextHierarchyNodesPath = import_zod.z.object({
7082
7113
  });
7083
7114
  const zGetByContextHierarchyNodesQuery = import_zod.z.object({
7084
7115
  filter: import_zod.z.string().optional(),
7085
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7086
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7087
- }).optional(),
7088
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7116
+ "page[limit]": import_zod.z.preprocess(
7117
+ (v) => typeof v === "string" ? Number(v) : v,
7118
+ import_zod.z.number().int().gte(1)
7119
+ ).optional(),
7120
+ "page[offset]": import_zod.z.preprocess(
7121
+ (v) => typeof v === "string" ? Number(v) : v,
7122
+ import_zod.z.number().int().gte(0).lte(1e4)
7123
+ ).optional()
7089
7124
  });
7090
7125
  const zGetByContextHierarchyNodesResponse = zNodeListData;
7091
7126
  const zGetByContextHierarchyChildNodesHeaders = import_zod.z.object({
@@ -7098,10 +7133,14 @@ const zGetByContextHierarchyChildNodesPath = import_zod.z.object({
7098
7133
  });
7099
7134
  const zGetByContextHierarchyChildNodesQuery = import_zod.z.object({
7100
7135
  filter: import_zod.z.string().optional(),
7101
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7102
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7103
- }).optional(),
7104
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7136
+ "page[limit]": import_zod.z.preprocess(
7137
+ (v) => typeof v === "string" ? Number(v) : v,
7138
+ import_zod.z.number().int().gte(1)
7139
+ ).optional(),
7140
+ "page[offset]": import_zod.z.preprocess(
7141
+ (v) => typeof v === "string" ? Number(v) : v,
7142
+ import_zod.z.number().int().gte(0).lte(1e4)
7143
+ ).optional()
7105
7144
  });
7106
7145
  const zGetByContextHierarchyChildNodesResponse = zNodeListData;
7107
7146
  const zGetByContextAllNodesHeaders = import_zod.z.object({
@@ -7111,10 +7150,14 @@ const zGetByContextAllNodesHeaders = import_zod.z.object({
7111
7150
  });
7112
7151
  const zGetByContextAllNodesQuery = import_zod.z.object({
7113
7152
  filter: import_zod.z.string().optional(),
7114
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7115
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7116
- }).optional(),
7117
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7153
+ "page[limit]": import_zod.z.preprocess(
7154
+ (v) => typeof v === "string" ? Number(v) : v,
7155
+ import_zod.z.number().int().gte(1)
7156
+ ).optional(),
7157
+ "page[offset]": import_zod.z.preprocess(
7158
+ (v) => typeof v === "string" ? Number(v) : v,
7159
+ import_zod.z.number().int().gte(0).lte(1e4)
7160
+ ).optional()
7118
7161
  });
7119
7162
  const zGetByContextAllNodesResponse = zNodeListData;
7120
7163
  const zGetByContextNodeHeaders = import_zod.z.object({
@@ -7136,10 +7179,14 @@ const zGetByContextChildNodesPath = import_zod.z.object({
7136
7179
  });
7137
7180
  const zGetByContextChildNodesQuery = import_zod.z.object({
7138
7181
  filter: import_zod.z.string().optional(),
7139
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7140
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7141
- }).optional(),
7142
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7182
+ "page[limit]": import_zod.z.preprocess(
7183
+ (v) => typeof v === "string" ? Number(v) : v,
7184
+ import_zod.z.number().int().gte(1)
7185
+ ).optional(),
7186
+ "page[offset]": import_zod.z.preprocess(
7187
+ (v) => typeof v === "string" ? Number(v) : v,
7188
+ import_zod.z.number().int().gte(0).lte(1e4)
7189
+ ).optional()
7143
7190
  });
7144
7191
  const zGetByContextChildNodesResponse = zNodeListData;
7145
7192
  const zGetByContextComponentProductIdsHeaders = import_zod.z.object({
@@ -7150,18 +7197,26 @@ const zGetByContextComponentProductIdsPath = import_zod.z.object({
7150
7197
  product_id: import_zod.z.string()
7151
7198
  });
7152
7199
  const zGetByContextComponentProductIdsQuery = import_zod.z.object({
7153
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7154
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7155
- }).optional(),
7156
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7200
+ "page[limit]": import_zod.z.preprocess(
7201
+ (v) => typeof v === "string" ? Number(v) : v,
7202
+ import_zod.z.number().int().gte(1)
7203
+ ).optional(),
7204
+ "page[offset]": import_zod.z.preprocess(
7205
+ (v) => typeof v === "string" ? Number(v) : v,
7206
+ import_zod.z.number().int().gte(0).lte(1e4)
7207
+ ).optional()
7157
7208
  });
7158
7209
  const zGetByContextComponentProductIdsResponse = zProductReferenceListData;
7159
7210
  const zGetCatalogsQuery = import_zod.z.object({
7160
7211
  filter: import_zod.z.string().optional(),
7161
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7162
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7163
- }).optional(),
7164
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7212
+ "page[limit]": import_zod.z.preprocess(
7213
+ (v) => typeof v === "string" ? Number(v) : v,
7214
+ import_zod.z.number().int().gte(1)
7215
+ ).optional(),
7216
+ "page[offset]": import_zod.z.preprocess(
7217
+ (v) => typeof v === "string" ? Number(v) : v,
7218
+ import_zod.z.number().int().gte(0).lte(1e4)
7219
+ ).optional()
7165
7220
  });
7166
7221
  const zGetCatalogsResponse = zCatalogListData;
7167
7222
  const zCreateCatalogBody = zCatalogCreateData;
@@ -7210,10 +7265,14 @@ const zGetReleaseByIdPath = import_zod.z.object({
7210
7265
  const zGetReleaseByIdResponse = zReleaseData;
7211
7266
  const zGetRulesQuery = import_zod.z.object({
7212
7267
  filter: import_zod.z.string().optional(),
7213
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7214
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7215
- }).optional(),
7216
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7268
+ "page[limit]": import_zod.z.preprocess(
7269
+ (v) => typeof v === "string" ? Number(v) : v,
7270
+ import_zod.z.number().int().gte(1)
7271
+ ).optional(),
7272
+ "page[offset]": import_zod.z.preprocess(
7273
+ (v) => typeof v === "string" ? Number(v) : v,
7274
+ import_zod.z.number().int().gte(0).lte(1e4)
7275
+ ).optional()
7217
7276
  });
7218
7277
  const zGetRulesResponse = zRuleListData;
7219
7278
  const zCreateRuleBody = zRuleCreateData;
@@ -7233,10 +7292,14 @@ const zUpdateRulePath = import_zod.z.object({
7233
7292
  const zUpdateRuleResponse = zRuleData;
7234
7293
  const zValidateCatalogRulesBody = zCatalogRuleValidatorRequest;
7235
7294
  const zValidateCatalogRulesQuery = import_zod.z.object({
7236
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7237
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7238
- }).optional(),
7239
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7295
+ "page[limit]": import_zod.z.preprocess(
7296
+ (v) => typeof v === "string" ? Number(v) : v,
7297
+ import_zod.z.number().int().gte(1)
7298
+ ).optional(),
7299
+ "page[offset]": import_zod.z.preprocess(
7300
+ (v) => typeof v === "string" ? Number(v) : v,
7301
+ import_zod.z.number().int().gte(0).lte(1e4)
7302
+ ).optional()
7240
7303
  });
7241
7304
  const zValidateCatalogRulesResponse = zRuleListData;
7242
7305
  const zGetAllHierarchiesHeaders = import_zod.z.object({
@@ -7248,10 +7311,14 @@ const zGetAllHierarchiesPath = import_zod.z.object({
7248
7311
  });
7249
7312
  const zGetAllHierarchiesQuery = import_zod.z.object({
7250
7313
  filter: import_zod.z.string().optional(),
7251
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7252
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7253
- }).optional(),
7254
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7314
+ "page[limit]": import_zod.z.preprocess(
7315
+ (v) => typeof v === "string" ? Number(v) : v,
7316
+ import_zod.z.number().int().gte(1)
7317
+ ).optional(),
7318
+ "page[offset]": import_zod.z.preprocess(
7319
+ (v) => typeof v === "string" ? Number(v) : v,
7320
+ import_zod.z.number().int().gte(0).lte(1e4)
7321
+ ).optional()
7255
7322
  });
7256
7323
  const zGetAllHierarchiesResponse = zHierarchyListData;
7257
7324
  const zGetHierarchyHeaders = import_zod.z.object({
@@ -7273,10 +7340,14 @@ const zGetHierarchyNodesPath = import_zod.z.object({
7273
7340
  });
7274
7341
  const zGetHierarchyNodesQuery = import_zod.z.object({
7275
7342
  filter: import_zod.z.string().optional(),
7276
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7277
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7278
- }).optional(),
7279
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7343
+ "page[limit]": import_zod.z.preprocess(
7344
+ (v) => typeof v === "string" ? Number(v) : v,
7345
+ import_zod.z.number().int().gte(1)
7346
+ ).optional(),
7347
+ "page[offset]": import_zod.z.preprocess(
7348
+ (v) => typeof v === "string" ? Number(v) : v,
7349
+ import_zod.z.number().int().gte(0).lte(1e4)
7350
+ ).optional()
7280
7351
  });
7281
7352
  const zGetHierarchyNodesResponse = zNodeListData;
7282
7353
  const zGetHierarchyChildNodesHeaders = import_zod.z.object({
@@ -7289,10 +7360,14 @@ const zGetHierarchyChildNodesPath = import_zod.z.object({
7289
7360
  });
7290
7361
  const zGetHierarchyChildNodesQuery = import_zod.z.object({
7291
7362
  filter: import_zod.z.string().optional(),
7292
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7293
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7294
- }).optional(),
7295
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7363
+ "page[limit]": import_zod.z.preprocess(
7364
+ (v) => typeof v === "string" ? Number(v) : v,
7365
+ import_zod.z.number().int().gte(1)
7366
+ ).optional(),
7367
+ "page[offset]": import_zod.z.preprocess(
7368
+ (v) => typeof v === "string" ? Number(v) : v,
7369
+ import_zod.z.number().int().gte(0).lte(1e4)
7370
+ ).optional()
7296
7371
  });
7297
7372
  const zGetHierarchyChildNodesResponse = zNodeListData;
7298
7373
  const zGetAllNodesHeaders = import_zod.z.object({
@@ -7304,10 +7379,14 @@ const zGetAllNodesPath = import_zod.z.object({
7304
7379
  });
7305
7380
  const zGetAllNodesQuery = import_zod.z.object({
7306
7381
  filter: import_zod.z.string().optional(),
7307
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7308
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7309
- }).optional(),
7310
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7382
+ "page[limit]": import_zod.z.preprocess(
7383
+ (v) => typeof v === "string" ? Number(v) : v,
7384
+ import_zod.z.number().int().gte(1)
7385
+ ).optional(),
7386
+ "page[offset]": import_zod.z.preprocess(
7387
+ (v) => typeof v === "string" ? Number(v) : v,
7388
+ import_zod.z.number().int().gte(0).lte(1e4)
7389
+ ).optional()
7311
7390
  });
7312
7391
  const zGetAllNodesResponse = zNodeListData;
7313
7392
  const zGetNodeHeaders = import_zod.z.object({
@@ -7329,10 +7408,14 @@ const zGetChildNodesPath = import_zod.z.object({
7329
7408
  });
7330
7409
  const zGetChildNodesQuery = import_zod.z.object({
7331
7410
  filter: import_zod.z.string().optional(),
7332
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7333
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7334
- }).optional(),
7335
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7411
+ "page[limit]": import_zod.z.preprocess(
7412
+ (v) => typeof v === "string" ? Number(v) : v,
7413
+ import_zod.z.number().int().gte(1)
7414
+ ).optional(),
7415
+ "page[offset]": import_zod.z.preprocess(
7416
+ (v) => typeof v === "string" ? Number(v) : v,
7417
+ import_zod.z.number().int().gte(0).lte(1e4)
7418
+ ).optional()
7336
7419
  });
7337
7420
  const zGetChildNodesResponse = zNodeListData;
7338
7421
  const zGetComponentProductIdsHeaders = import_zod.z.object({
@@ -7346,10 +7429,14 @@ const zGetComponentProductIdsPath = import_zod.z.object({
7346
7429
  });
7347
7430
  const zGetComponentProductIdsQuery = import_zod.z.object({
7348
7431
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
7349
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
7350
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7351
- }).optional(),
7352
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
7432
+ "page[limit]": import_zod.z.preprocess(
7433
+ (v) => typeof v === "string" ? Number(v) : v,
7434
+ import_zod.z.number().int().gte(1)
7435
+ ).optional(),
7436
+ "page[offset]": import_zod.z.preprocess(
7437
+ (v) => typeof v === "string" ? Number(v) : v,
7438
+ import_zod.z.number().int().gte(0).lte(1e4)
7439
+ ).optional()
7353
7440
  });
7354
7441
  const zGetComponentProductIdsResponse = zProductReferenceListData;
7355
7442
  const zGetCartsHeaders = import_zod.z.object({
@@ -7753,10 +7840,14 @@ const zPutV2SettingsCartStoreIdPath = import_zod.z.object({
7753
7840
  const zPutV2SettingsCartStoreIdResponse = zSettingsCart;
7754
7841
  const zListOfferingsQuery = import_zod.z.object({
7755
7842
  filter: import_zod.z.string().optional(),
7756
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7757
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7758
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7759
- }).optional(),
7843
+ "page[offset]": import_zod.z.preprocess(
7844
+ (v) => typeof v === "string" ? Number(v) : v,
7845
+ import_zod.z.number().int().gte(0).lte(1e4)
7846
+ ).optional(),
7847
+ "page[limit]": import_zod.z.preprocess(
7848
+ (v) => typeof v === "string" ? Number(v) : v,
7849
+ import_zod.z.number().int().gte(0)
7850
+ ).optional(),
7760
7851
  include: import_zod.z.array(import_zod.z.enum(["plans", "pricing_options", "features"])).optional()
7761
7852
  });
7762
7853
  const zListOfferingsResponse = import_zod.z.object({
@@ -7778,10 +7869,14 @@ const zListOfferingPricingOptionsPath = import_zod.z.object({
7778
7869
  offering_uuid: zSubscriptionsUuid
7779
7870
  });
7780
7871
  const zListOfferingPricingOptionsQuery = import_zod.z.object({
7781
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7782
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7783
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7784
- }).optional()
7872
+ "page[offset]": import_zod.z.preprocess(
7873
+ (v) => typeof v === "string" ? Number(v) : v,
7874
+ import_zod.z.number().int().gte(0).lte(1e4)
7875
+ ).optional(),
7876
+ "page[limit]": import_zod.z.preprocess(
7877
+ (v) => typeof v === "string" ? Number(v) : v,
7878
+ import_zod.z.number().int().gte(0)
7879
+ ).optional()
7785
7880
  });
7786
7881
  const zListOfferingPricingOptionsResponse = import_zod.z.object({
7787
7882
  data: import_zod.z.array(zOfferingPricingOption).optional(),
@@ -7791,10 +7886,14 @@ const zListOfferingFeaturesPath = import_zod.z.object({
7791
7886
  offering_uuid: zSubscriptionsUuid
7792
7887
  });
7793
7888
  const zListOfferingFeaturesQuery = import_zod.z.object({
7794
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7795
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7796
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7797
- }).optional()
7889
+ "page[offset]": import_zod.z.preprocess(
7890
+ (v) => typeof v === "string" ? Number(v) : v,
7891
+ import_zod.z.number().int().gte(0).lte(1e4)
7892
+ ).optional(),
7893
+ "page[limit]": import_zod.z.preprocess(
7894
+ (v) => typeof v === "string" ? Number(v) : v,
7895
+ import_zod.z.number().int().gte(0)
7896
+ ).optional()
7798
7897
  });
7799
7898
  const zListOfferingFeaturesResponse = import_zod.z.object({
7800
7899
  data: import_zod.z.array(zOfferingFeature).optional(),
@@ -7804,10 +7903,14 @@ const zListOfferingPlansPath = import_zod.z.object({
7804
7903
  offering_uuid: zSubscriptionsUuid
7805
7904
  });
7806
7905
  const zListOfferingPlansQuery = import_zod.z.object({
7807
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7808
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7809
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7810
- }).optional()
7906
+ "page[offset]": import_zod.z.preprocess(
7907
+ (v) => typeof v === "string" ? Number(v) : v,
7908
+ import_zod.z.number().int().gte(0).lte(1e4)
7909
+ ).optional(),
7910
+ "page[limit]": import_zod.z.preprocess(
7911
+ (v) => typeof v === "string" ? Number(v) : v,
7912
+ import_zod.z.number().int().gte(0)
7913
+ ).optional()
7811
7914
  });
7812
7915
  const zListOfferingPlansResponse = import_zod.z.object({
7813
7916
  data: import_zod.z.array(zOfferingPlan).optional(),
@@ -7822,10 +7925,14 @@ const zListOfferingPlanPricingOptionsResponse = import_zod.z.object({
7822
7925
  });
7823
7926
  const zListSubscriptionsQuery = import_zod.z.object({
7824
7927
  filter: import_zod.z.string().optional(),
7825
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7826
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7827
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7828
- }).optional(),
7928
+ "page[offset]": import_zod.z.preprocess(
7929
+ (v) => typeof v === "string" ? Number(v) : v,
7930
+ import_zod.z.number().int().gte(0).lte(1e4)
7931
+ ).optional(),
7932
+ "page[limit]": import_zod.z.preprocess(
7933
+ (v) => typeof v === "string" ? Number(v) : v,
7934
+ import_zod.z.number().int().gte(0)
7935
+ ).optional(),
7829
7936
  include: import_zod.z.array(import_zod.z.enum(["plans", "pricing_options"])).optional()
7830
7937
  });
7831
7938
  const zListSubscriptionsResponse = import_zod.z.object({
@@ -7879,10 +7986,14 @@ const zListSubscriptionInvoicesPath = import_zod.z.object({
7879
7986
  subscription_uuid: zSubscriptionsUuid
7880
7987
  });
7881
7988
  const zListSubscriptionInvoicesQuery = import_zod.z.object({
7882
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7883
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7884
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7885
- }).optional()
7989
+ "page[offset]": import_zod.z.preprocess(
7990
+ (v) => typeof v === "string" ? Number(v) : v,
7991
+ import_zod.z.number().int().gte(0).lte(1e4)
7992
+ ).optional(),
7993
+ "page[limit]": import_zod.z.preprocess(
7994
+ (v) => typeof v === "string" ? Number(v) : v,
7995
+ import_zod.z.number().int().gte(0)
7996
+ ).optional()
7886
7997
  });
7887
7998
  const zListSubscriptionInvoicesResponse = import_zod.z.object({
7888
7999
  data: import_zod.z.array(zSubscriptionInvoice).optional(),
@@ -7893,10 +8004,14 @@ const zListSubscriptionInvoicePaymentsPath = import_zod.z.object({
7893
8004
  invoice_uuid: zSubscriptionsUuid
7894
8005
  });
7895
8006
  const zListSubscriptionInvoicePaymentsQuery = import_zod.z.object({
7896
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7897
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7898
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7899
- }).optional()
8007
+ "page[offset]": import_zod.z.preprocess(
8008
+ (v) => typeof v === "string" ? Number(v) : v,
8009
+ import_zod.z.number().int().gte(0).lte(1e4)
8010
+ ).optional(),
8011
+ "page[limit]": import_zod.z.preprocess(
8012
+ (v) => typeof v === "string" ? Number(v) : v,
8013
+ import_zod.z.number().int().gte(0)
8014
+ ).optional()
7900
8015
  });
7901
8016
  const zListSubscriptionInvoicePaymentsResponse = import_zod.z.object({
7902
8017
  data: import_zod.z.array(zSubscriptionInvoicePayment).optional(),
@@ -7919,10 +8034,14 @@ const zGetSubscriptionInvoiceResponse = import_zod.z.object({
7919
8034
  });
7920
8035
  const zListInvoicesQuery = import_zod.z.object({
7921
8036
  filter: import_zod.z.string().optional(),
7922
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
7923
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
7924
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
7925
- }).optional()
8037
+ "page[offset]": import_zod.z.preprocess(
8038
+ (v) => typeof v === "string" ? Number(v) : v,
8039
+ import_zod.z.number().int().gte(0).lte(1e4)
8040
+ ).optional(),
8041
+ "page[limit]": import_zod.z.preprocess(
8042
+ (v) => typeof v === "string" ? Number(v) : v,
8043
+ import_zod.z.number().int().gte(0)
8044
+ ).optional()
7926
8045
  });
7927
8046
  const zListInvoicesResponse = import_zod.z.object({
7928
8047
  data: import_zod.z.array(zSubscriptionInvoice).optional(),
@@ -8013,10 +8132,14 @@ const zPutV2AccountAddressResponse = import_zod.z.object({
8013
8132
  });
8014
8133
  const zGetV2AccountsQuery = import_zod.z.object({
8015
8134
  filter: import_zod.z.string().optional(),
8016
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
8017
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8018
- }).optional(),
8019
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
8135
+ "page[limit]": import_zod.z.preprocess(
8136
+ (v) => typeof v === "string" ? Number(v) : v,
8137
+ import_zod.z.number().int().gte(0)
8138
+ ).optional(),
8139
+ "page[offset]": import_zod.z.preprocess(
8140
+ (v) => typeof v === "string" ? Number(v) : v,
8141
+ import_zod.z.number().int().gte(0).lte(1e4)
8142
+ ).optional(),
8020
8143
  sort: import_zod.z.enum([
8021
8144
  "created_at",
8022
8145
  "-created_at",
@@ -8078,10 +8201,14 @@ const zPutV2AccountsAccountIdResponse = import_zod.z.object({
8078
8201
  }).optional()
8079
8202
  });
8080
8203
  const zGetV2AccountMembersQuery = import_zod.z.object({
8081
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
8082
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8083
- }).optional(),
8084
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
8204
+ "page[limit]": import_zod.z.preprocess(
8205
+ (v) => typeof v === "string" ? Number(v) : v,
8206
+ import_zod.z.number().int().gte(0)
8207
+ ).optional(),
8208
+ "page[offset]": import_zod.z.preprocess(
8209
+ (v) => typeof v === "string" ? Number(v) : v,
8210
+ import_zod.z.number().int().gte(0).lte(1e4)
8211
+ ).optional(),
8085
8212
  filter: import_zod.z.string().optional(),
8086
8213
  sort: import_zod.z.enum([
8087
8214
  "created_at",
@@ -8121,10 +8248,14 @@ const zGetV2AccountsAccountIdAccountMembershipsPath = import_zod.z.object({
8121
8248
  });
8122
8249
  const zGetV2AccountsAccountIdAccountMembershipsQuery = import_zod.z.object({
8123
8250
  filter: import_zod.z.string().optional(),
8124
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).max(BigInt("9223372036854775807"), {
8125
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8126
- }).optional(),
8127
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
8251
+ "page[limit]": import_zod.z.preprocess(
8252
+ (v) => typeof v === "string" ? Number(v) : v,
8253
+ import_zod.z.number().int().gte(0)
8254
+ ).optional(),
8255
+ "page[offset]": import_zod.z.preprocess(
8256
+ (v) => typeof v === "string" ? Number(v) : v,
8257
+ import_zod.z.number().int().gte(0).lte(1e4)
8258
+ ).optional(),
8128
8259
  include: import_zod.z.string().optional(),
8129
8260
  sort: import_zod.z.enum([
8130
8261
  "created_at",
@@ -8228,8 +8359,14 @@ const zGetACurrencyResponse = zResponseData.and(
8228
8359
  );
8229
8360
  const zGetAllFilesQuery = import_zod.z.object({
8230
8361
  filter: import_zod.z.string().optional(),
8231
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional(),
8232
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8362
+ "page[limit]": import_zod.z.preprocess(
8363
+ (v) => typeof v === "string" ? Number(v) : v,
8364
+ import_zod.z.number().int().gte(0).lte(1e4)
8365
+ ).optional(),
8366
+ "page[offset]": import_zod.z.preprocess(
8367
+ (v) => typeof v === "string" ? Number(v) : v,
8368
+ import_zod.z.number().int().gte(0).lte(1e4)
8369
+ ).optional()
8233
8370
  });
8234
8371
  const zGetAllFilesResponse = import_zod.z.object({
8235
8372
  data: import_zod.z.array(zFile).optional(),
@@ -8263,10 +8400,14 @@ const zGetByContextAllProductsHeaders = import_zod.z.object({
8263
8400
  const zGetByContextAllProductsQuery = import_zod.z.object({
8264
8401
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8265
8402
  filter: import_zod.z.string().optional(),
8266
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8267
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8268
- }).optional(),
8269
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8403
+ "page[limit]": import_zod.z.preprocess(
8404
+ (v) => typeof v === "string" ? Number(v) : v,
8405
+ import_zod.z.number().int().gte(1)
8406
+ ).optional(),
8407
+ "page[offset]": import_zod.z.preprocess(
8408
+ (v) => typeof v === "string" ? Number(v) : v,
8409
+ import_zod.z.number().int().gte(0).lte(1e4)
8410
+ ).optional()
8270
8411
  });
8271
8412
  const zGetByContextAllProductsResponse = zProductListData;
8272
8413
  const zGetByContextProductHeaders = import_zod.z.object({
@@ -8292,10 +8433,14 @@ const zGetByContextAllRelatedProductsPath = import_zod.z.object({
8292
8433
  });
8293
8434
  const zGetByContextAllRelatedProductsQuery = import_zod.z.object({
8294
8435
  filter: import_zod.z.string().optional(),
8295
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8296
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8297
- }).optional(),
8298
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8436
+ "page[limit]": import_zod.z.preprocess(
8437
+ (v) => typeof v === "string" ? Number(v) : v,
8438
+ import_zod.z.number().int().gte(1)
8439
+ ).optional(),
8440
+ "page[offset]": import_zod.z.preprocess(
8441
+ (v) => typeof v === "string" ? Number(v) : v,
8442
+ import_zod.z.number().int().gte(0).lte(1e4)
8443
+ ).optional()
8299
8444
  });
8300
8445
  const zGetByContextAllRelatedProductsResponse = zProductListData;
8301
8446
  const zGetByContextChildProductsHeaders = import_zod.z.object({
@@ -8309,10 +8454,14 @@ const zGetByContextChildProductsPath = import_zod.z.object({
8309
8454
  const zGetByContextChildProductsQuery = import_zod.z.object({
8310
8455
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8311
8456
  filter: import_zod.z.string().optional(),
8312
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8313
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8314
- }).optional(),
8315
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8457
+ "page[limit]": import_zod.z.preprocess(
8458
+ (v) => typeof v === "string" ? Number(v) : v,
8459
+ import_zod.z.number().int().gte(1)
8460
+ ).optional(),
8461
+ "page[offset]": import_zod.z.preprocess(
8462
+ (v) => typeof v === "string" ? Number(v) : v,
8463
+ import_zod.z.number().int().gte(0).lte(1e4)
8464
+ ).optional()
8316
8465
  });
8317
8466
  const zGetByContextChildProductsResponse = zProductListData;
8318
8467
  const zGetByContextProductsForHierarchyHeaders = import_zod.z.object({
@@ -8326,10 +8475,14 @@ const zGetByContextProductsForHierarchyPath = import_zod.z.object({
8326
8475
  const zGetByContextProductsForHierarchyQuery = import_zod.z.object({
8327
8476
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8328
8477
  filter: import_zod.z.string().optional(),
8329
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8330
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8331
- }).optional(),
8332
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8478
+ "page[limit]": import_zod.z.preprocess(
8479
+ (v) => typeof v === "string" ? Number(v) : v,
8480
+ import_zod.z.number().int().gte(1)
8481
+ ).optional(),
8482
+ "page[offset]": import_zod.z.preprocess(
8483
+ (v) => typeof v === "string" ? Number(v) : v,
8484
+ import_zod.z.number().int().gte(0).lte(1e4)
8485
+ ).optional()
8333
8486
  });
8334
8487
  const zGetByContextProductsForHierarchyResponse = zProductListData;
8335
8488
  const zGetByContextProductsForNodeHeaders = import_zod.z.object({
@@ -8343,10 +8496,14 @@ const zGetByContextProductsForNodePath = import_zod.z.object({
8343
8496
  const zGetByContextProductsForNodeQuery = import_zod.z.object({
8344
8497
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8345
8498
  filter: import_zod.z.string().optional(),
8346
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8347
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8348
- }).optional(),
8349
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8499
+ "page[limit]": import_zod.z.preprocess(
8500
+ (v) => typeof v === "string" ? Number(v) : v,
8501
+ import_zod.z.number().int().gte(1)
8502
+ ).optional(),
8503
+ "page[offset]": import_zod.z.preprocess(
8504
+ (v) => typeof v === "string" ? Number(v) : v,
8505
+ import_zod.z.number().int().gte(0).lte(1e4)
8506
+ ).optional()
8350
8507
  });
8351
8508
  const zGetByContextProductsForNodeResponse = zProductListData;
8352
8509
  const zConfigureByContextProductBody = zBundleConfigurationData2;
@@ -8374,10 +8531,14 @@ const zGetAllProductsPath = import_zod.z.object({
8374
8531
  const zGetAllProductsQuery = import_zod.z.object({
8375
8532
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8376
8533
  filter: import_zod.z.string().optional(),
8377
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8378
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8379
- }).optional(),
8380
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8534
+ "page[limit]": import_zod.z.preprocess(
8535
+ (v) => typeof v === "string" ? Number(v) : v,
8536
+ import_zod.z.number().int().gte(1)
8537
+ ).optional(),
8538
+ "page[offset]": import_zod.z.preprocess(
8539
+ (v) => typeof v === "string" ? Number(v) : v,
8540
+ import_zod.z.number().int().gte(0).lte(1e4)
8541
+ ).optional()
8381
8542
  });
8382
8543
  const zGetAllProductsResponse = zProductListData;
8383
8544
  const zGetProductHeaders = import_zod.z.object({
@@ -8407,10 +8568,14 @@ const zGetAllRelatedProductsPath = import_zod.z.object({
8407
8568
  });
8408
8569
  const zGetAllRelatedProductsQuery = import_zod.z.object({
8409
8570
  filter: import_zod.z.string().optional(),
8410
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8411
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8412
- }).optional(),
8413
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8571
+ "page[limit]": import_zod.z.preprocess(
8572
+ (v) => typeof v === "string" ? Number(v) : v,
8573
+ import_zod.z.number().int().gte(1)
8574
+ ).optional(),
8575
+ "page[offset]": import_zod.z.preprocess(
8576
+ (v) => typeof v === "string" ? Number(v) : v,
8577
+ import_zod.z.number().int().gte(0).lte(1e4)
8578
+ ).optional()
8414
8579
  });
8415
8580
  const zGetAllRelatedProductsResponse = zProductListData;
8416
8581
  const zGetChildProductsHeaders = import_zod.z.object({
@@ -8426,10 +8591,14 @@ const zGetChildProductsPath = import_zod.z.object({
8426
8591
  const zGetChildProductsQuery = import_zod.z.object({
8427
8592
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8428
8593
  filter: import_zod.z.string().optional(),
8429
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8430
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8431
- }).optional(),
8432
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8594
+ "page[limit]": import_zod.z.preprocess(
8595
+ (v) => typeof v === "string" ? Number(v) : v,
8596
+ import_zod.z.number().int().gte(1)
8597
+ ).optional(),
8598
+ "page[offset]": import_zod.z.preprocess(
8599
+ (v) => typeof v === "string" ? Number(v) : v,
8600
+ import_zod.z.number().int().gte(0).lte(1e4)
8601
+ ).optional()
8433
8602
  });
8434
8603
  const zGetChildProductsResponse = zProductListData;
8435
8604
  const zGetProductsForHierarchyHeaders = import_zod.z.object({
@@ -8445,10 +8614,14 @@ const zGetProductsForHierarchyPath = import_zod.z.object({
8445
8614
  const zGetProductsForHierarchyQuery = import_zod.z.object({
8446
8615
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8447
8616
  filter: import_zod.z.string().optional(),
8448
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8449
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8450
- }).optional(),
8451
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8617
+ "page[limit]": import_zod.z.preprocess(
8618
+ (v) => typeof v === "string" ? Number(v) : v,
8619
+ import_zod.z.number().int().gte(1)
8620
+ ).optional(),
8621
+ "page[offset]": import_zod.z.preprocess(
8622
+ (v) => typeof v === "string" ? Number(v) : v,
8623
+ import_zod.z.number().int().gte(0).lte(1e4)
8624
+ ).optional()
8452
8625
  });
8453
8626
  const zGetProductsForHierarchyResponse = zProductListData;
8454
8627
  const zGetProductsForNodeHeaders = import_zod.z.object({
@@ -8464,10 +8637,14 @@ const zGetProductsForNodePath = import_zod.z.object({
8464
8637
  const zGetProductsForNodeQuery = import_zod.z.object({
8465
8638
  filter: import_zod.z.string().optional(),
8466
8639
  include: import_zod.z.array(import_zod.z.enum(["files", "main_image", "component_products"])).optional(),
8467
- "page[limit]": import_zod.z.coerce.bigint().gte(BigInt(1)).max(BigInt("9223372036854775807"), {
8468
- message: "Invalid value: Expected int64 to be <= 9223372036854775807"
8469
- }).optional(),
8470
- "page[offset]": import_zod.z.coerce.bigint().gte(BigInt(0)).lte(BigInt(1e4)).optional()
8640
+ "page[limit]": import_zod.z.preprocess(
8641
+ (v) => typeof v === "string" ? Number(v) : v,
8642
+ import_zod.z.number().int().gte(1)
8643
+ ).optional(),
8644
+ "page[offset]": import_zod.z.preprocess(
8645
+ (v) => typeof v === "string" ? Number(v) : v,
8646
+ import_zod.z.number().int().gte(0).lte(1e4)
8647
+ ).optional()
8471
8648
  });
8472
8649
  const zGetProductsForNodeResponse = zProductListData;
8473
8650
  // Annotate the CommonJS export names for ESM import in node: