@glowlabs-org/utils 0.2.91 → 0.2.93

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.
@@ -1,30 +1,8 @@
1
- export { C as ControlRouter, D as DECIMALS_BY_TOKEN, e as FORWARDER_ABI, F as FarmsRouter, a as ForwarderError, f as GCA_URLS, G as GLOW_WEIGHT_DECIMAL_PRECISION, H as HUB_URL, K as KickstarterRouter, M as MAX_WEIGHT, R as RegionRouter, U as USDG_WEIGHT_DECIMAL_PRECISION, W as WalletsRouter, b as allRegions, d as countries, g as getAddresses, r as regionMetadata, c as usStates, u as useForwarder } from './farms-router-DVSHNqsT.js';
2
- import { verifyTypedData } from 'viem';
1
+ import { T as TRANSFER_TYPES } from './farms-router-oHFOyL2k.js';
2
+ export { C as ControlRouter, D as DECIMALS_BY_TOKEN, e as FORWARDER_ABI, F as FarmsRouter, a as ForwarderError, f as GCA_URLS, G as GLOW_WEIGHT_DECIMAL_PRECISION, H as HUB_URL, K as KickstarterRouter, M as MAX_WEIGHT, O as OFF_CHAIN_PAYMENT_CURRENCIES, P as PAYMENT_CURRENCIES, R as RegionRouter, U as USDG_WEIGHT_DECIMAL_PRECISION, W as WalletsRouter, b as allRegions, d as countries, g as getAddresses, r as regionMetadata, c as usStates, u as useForwarder } from './farms-router-oHFOyL2k.js';
3
+ import { verifyTypedData, getAddress } from 'viem';
3
4
  import 'ethers';
4
5
 
5
- // ---------------------------------------------------------------------------
6
- // Common / Shared Types
7
- // ---------------------------------------------------------------------------
8
- const PAYMENT_CURRENCIES = [
9
- "GCTL",
10
- "USDC",
11
- "USDG",
12
- "GLW",
13
- "SGCTL",
14
- ];
15
- const OFF_CHAIN_PAYMENT_CURRENCIES = ["SGCTL", "GCTL"];
16
- const TRANSFER_TYPES = [
17
- "PayProtocolFeeAndMintGCTLAndStake",
18
- "PayProtocolFee",
19
- "PayAuditFees",
20
- "CommitKickstarter",
21
- "MintGCTLAndStake",
22
- "MintGCTL",
23
- "BuySolarFarm",
24
- "SponsorProtocolFee",
25
- "SponsorProtocolFeeAndMintGCTLAndStake",
26
- ];
27
-
28
6
  /** A special constant with type `never` */
29
7
  const NEVER = Object.freeze({
30
8
  status: "aborted",
@@ -624,60 +602,60 @@ class Class {
624
602
  }
625
603
 
626
604
  var util = /*#__PURE__*/Object.freeze({
627
- __proto__: null,
628
- BIGINT_FORMAT_RANGES: BIGINT_FORMAT_RANGES,
629
- Class: Class,
630
- NUMBER_FORMAT_RANGES: NUMBER_FORMAT_RANGES,
631
- aborted: aborted,
632
- allowsEval: allowsEval,
633
- assert: assert,
634
- assertEqual: assertEqual,
635
- assertIs: assertIs,
636
- assertNever: assertNever,
637
- assertNotEqual: assertNotEqual,
638
- assignProp: assignProp,
639
- cached: cached,
640
- captureStackTrace: captureStackTrace,
641
- cleanEnum: cleanEnum,
642
- cleanRegex: cleanRegex,
643
- clone: clone,
644
- cloneDef: cloneDef,
645
- createTransparentProxy: createTransparentProxy,
646
- defineLazy: defineLazy,
647
- esc: esc,
648
- escapeRegex: escapeRegex,
649
- extend: extend,
650
- finalizeIssue: finalizeIssue,
651
- floatSafeRemainder: floatSafeRemainder,
652
- getElementAtPath: getElementAtPath,
653
- getEnumValues: getEnumValues,
654
- getLengthableOrigin: getLengthableOrigin,
655
- getParsedType: getParsedType,
656
- getSizableOrigin: getSizableOrigin,
657
- isObject: isObject,
658
- isPlainObject: isPlainObject,
659
- issue: issue,
660
- joinValues: joinValues,
661
- jsonStringifyReplacer: jsonStringifyReplacer,
662
- merge: merge,
663
- mergeDefs: mergeDefs,
664
- normalizeParams: normalizeParams,
665
- nullish: nullish$1,
666
- numKeys: numKeys,
667
- objectClone: objectClone,
668
- omit: omit,
669
- optionalKeys: optionalKeys,
670
- partial: partial,
671
- pick: pick,
672
- prefixIssues: prefixIssues,
673
- primitiveTypes: primitiveTypes,
674
- promiseAllObject: promiseAllObject,
675
- propertyKeyTypes: propertyKeyTypes,
676
- randomString: randomString,
677
- required: required,
678
- shallowClone: shallowClone,
679
- stringifyPrimitive: stringifyPrimitive,
680
- unwrapMessage: unwrapMessage
605
+ __proto__: null,
606
+ BIGINT_FORMAT_RANGES: BIGINT_FORMAT_RANGES,
607
+ Class: Class,
608
+ NUMBER_FORMAT_RANGES: NUMBER_FORMAT_RANGES,
609
+ aborted: aborted,
610
+ allowsEval: allowsEval,
611
+ assert: assert,
612
+ assertEqual: assertEqual,
613
+ assertIs: assertIs,
614
+ assertNever: assertNever,
615
+ assertNotEqual: assertNotEqual,
616
+ assignProp: assignProp,
617
+ cached: cached,
618
+ captureStackTrace: captureStackTrace,
619
+ cleanEnum: cleanEnum,
620
+ cleanRegex: cleanRegex,
621
+ clone: clone,
622
+ cloneDef: cloneDef,
623
+ createTransparentProxy: createTransparentProxy,
624
+ defineLazy: defineLazy,
625
+ esc: esc,
626
+ escapeRegex: escapeRegex,
627
+ extend: extend,
628
+ finalizeIssue: finalizeIssue,
629
+ floatSafeRemainder: floatSafeRemainder,
630
+ getElementAtPath: getElementAtPath,
631
+ getEnumValues: getEnumValues,
632
+ getLengthableOrigin: getLengthableOrigin,
633
+ getParsedType: getParsedType,
634
+ getSizableOrigin: getSizableOrigin,
635
+ isObject: isObject,
636
+ isPlainObject: isPlainObject,
637
+ issue: issue,
638
+ joinValues: joinValues,
639
+ jsonStringifyReplacer: jsonStringifyReplacer,
640
+ merge: merge,
641
+ mergeDefs: mergeDefs,
642
+ normalizeParams: normalizeParams,
643
+ nullish: nullish$1,
644
+ numKeys: numKeys,
645
+ objectClone: objectClone,
646
+ omit: omit,
647
+ optionalKeys: optionalKeys,
648
+ partial: partial,
649
+ pick: pick,
650
+ prefixIssues: prefixIssues,
651
+ primitiveTypes: primitiveTypes,
652
+ promiseAllObject: promiseAllObject,
653
+ propertyKeyTypes: propertyKeyTypes,
654
+ randomString: randomString,
655
+ required: required,
656
+ shallowClone: shallowClone,
657
+ stringifyPrimitive: stringifyPrimitive,
658
+ unwrapMessage: unwrapMessage
681
659
  });
682
660
 
683
661
  const initializer$1 = (inst, def) => {
@@ -1020,48 +998,48 @@ const lowercase = /^[^A-Z]*$/;
1020
998
  const uppercase = /^[^a-z]*$/;
1021
999
 
1022
1000
  var regexes = /*#__PURE__*/Object.freeze({
1023
- __proto__: null,
1024
- base64: base64$1,
1025
- base64url: base64url$1,
1026
- bigint: bigint$2,
1027
- boolean: boolean$2,
1028
- browserEmail: browserEmail,
1029
- cidrv4: cidrv4$1,
1030
- cidrv6: cidrv6$1,
1031
- cuid: cuid$1,
1032
- cuid2: cuid2$1,
1033
- date: date$3,
1034
- datetime: datetime$1,
1035
- domain: domain,
1036
- duration: duration$1,
1037
- e164: e164$1,
1038
- email: email$1,
1039
- emoji: emoji$1,
1040
- extendedDuration: extendedDuration,
1041
- guid: guid$1,
1042
- hostname: hostname$1,
1043
- html5Email: html5Email,
1044
- idnEmail: idnEmail,
1045
- integer: integer,
1046
- ipv4: ipv4$1,
1047
- ipv6: ipv6$1,
1048
- ksuid: ksuid$1,
1049
- lowercase: lowercase,
1050
- nanoid: nanoid$1,
1051
- null: _null$2,
1052
- number: number$2,
1053
- rfc5322Email: rfc5322Email,
1054
- string: string$2,
1055
- time: time$1,
1056
- ulid: ulid$1,
1057
- undefined: _undefined$2,
1058
- unicodeEmail: unicodeEmail,
1059
- uppercase: uppercase,
1060
- uuid: uuid$1,
1061
- uuid4: uuid4,
1062
- uuid6: uuid6,
1063
- uuid7: uuid7,
1064
- xid: xid$1
1001
+ __proto__: null,
1002
+ base64: base64$1,
1003
+ base64url: base64url$1,
1004
+ bigint: bigint$2,
1005
+ boolean: boolean$2,
1006
+ browserEmail: browserEmail,
1007
+ cidrv4: cidrv4$1,
1008
+ cidrv6: cidrv6$1,
1009
+ cuid: cuid$1,
1010
+ cuid2: cuid2$1,
1011
+ date: date$3,
1012
+ datetime: datetime$1,
1013
+ domain: domain,
1014
+ duration: duration$1,
1015
+ e164: e164$1,
1016
+ email: email$1,
1017
+ emoji: emoji$1,
1018
+ extendedDuration: extendedDuration,
1019
+ guid: guid$1,
1020
+ hostname: hostname$1,
1021
+ html5Email: html5Email,
1022
+ idnEmail: idnEmail,
1023
+ integer: integer,
1024
+ ipv4: ipv4$1,
1025
+ ipv6: ipv6$1,
1026
+ ksuid: ksuid$1,
1027
+ lowercase: lowercase,
1028
+ nanoid: nanoid$1,
1029
+ null: _null$2,
1030
+ number: number$2,
1031
+ rfc5322Email: rfc5322Email,
1032
+ string: string$2,
1033
+ time: time$1,
1034
+ ulid: ulid$1,
1035
+ undefined: _undefined$2,
1036
+ unicodeEmail: unicodeEmail,
1037
+ uppercase: uppercase,
1038
+ uuid: uuid$1,
1039
+ uuid4: uuid4,
1040
+ uuid6: uuid6,
1041
+ uuid7: uuid7,
1042
+ xid: xid$1
1065
1043
  });
1066
1044
 
1067
1045
  // import { $ZodType } from "./schemas.js";
@@ -8413,49 +8391,49 @@ function yo () {
8413
8391
  }
8414
8392
 
8415
8393
  var index$1 = /*#__PURE__*/Object.freeze({
8416
- __proto__: null,
8417
- ar: ar,
8418
- az: az,
8419
- be: be,
8420
- ca: ca,
8421
- cs: cs,
8422
- da: da,
8423
- de: de,
8424
- en: en,
8425
- eo: eo,
8426
- es: es,
8427
- fa: fa,
8428
- fi: fi,
8429
- fr: fr,
8430
- frCA: frCA,
8431
- he: he,
8432
- hu: hu,
8433
- id: id,
8434
- is: is,
8435
- it: it,
8436
- ja: ja,
8437
- kh: kh,
8438
- ko: ko,
8439
- mk: mk,
8440
- ms: ms,
8441
- nl: nl,
8442
- no: no,
8443
- ota: ota,
8444
- pl: pl,
8445
- ps: ps,
8446
- pt: pt,
8447
- ru: ru,
8448
- sl: sl,
8449
- sv: sv,
8450
- ta: ta,
8451
- th: th,
8452
- tr: tr,
8453
- ua: ua,
8454
- ur: ur,
8455
- vi: vi,
8456
- yo: yo,
8457
- zhCN: zhCN,
8458
- zhTW: zhTW
8394
+ __proto__: null,
8395
+ ar: ar,
8396
+ az: az,
8397
+ be: be,
8398
+ ca: ca,
8399
+ cs: cs,
8400
+ da: da,
8401
+ de: de,
8402
+ en: en,
8403
+ eo: eo,
8404
+ es: es,
8405
+ fa: fa,
8406
+ fi: fi,
8407
+ fr: fr,
8408
+ frCA: frCA,
8409
+ he: he,
8410
+ hu: hu,
8411
+ id: id,
8412
+ is: is,
8413
+ it: it,
8414
+ ja: ja,
8415
+ kh: kh,
8416
+ ko: ko,
8417
+ mk: mk,
8418
+ ms: ms,
8419
+ nl: nl,
8420
+ no: no,
8421
+ ota: ota,
8422
+ pl: pl,
8423
+ ps: ps,
8424
+ pt: pt,
8425
+ ru: ru,
8426
+ sl: sl,
8427
+ sv: sv,
8428
+ ta: ta,
8429
+ th: th,
8430
+ tr: tr,
8431
+ ua: ua,
8432
+ ur: ur,
8433
+ vi: vi,
8434
+ yo: yo,
8435
+ zhCN: zhCN,
8436
+ zhTW: zhTW
8459
8437
  });
8460
8438
 
8461
8439
  const $output = Symbol("ZodOutput");
@@ -10370,252 +10348,252 @@ function isTransforming(_schema, _ctx) {
10370
10348
  }
10371
10349
 
10372
10350
  var jsonSchema = /*#__PURE__*/Object.freeze({
10373
- __proto__: null
10351
+ __proto__: null
10374
10352
  });
10375
10353
 
10376
10354
  var index = /*#__PURE__*/Object.freeze({
10377
- __proto__: null,
10378
- $ZodAny: $ZodAny,
10379
- $ZodArray: $ZodArray,
10380
- $ZodAsyncError: $ZodAsyncError,
10381
- $ZodBase64: $ZodBase64,
10382
- $ZodBase64URL: $ZodBase64URL,
10383
- $ZodBigInt: $ZodBigInt,
10384
- $ZodBigIntFormat: $ZodBigIntFormat,
10385
- $ZodBoolean: $ZodBoolean,
10386
- $ZodCIDRv4: $ZodCIDRv4,
10387
- $ZodCIDRv6: $ZodCIDRv6,
10388
- $ZodCUID: $ZodCUID,
10389
- $ZodCUID2: $ZodCUID2,
10390
- $ZodCatch: $ZodCatch,
10391
- $ZodCheck: $ZodCheck,
10392
- $ZodCheckBigIntFormat: $ZodCheckBigIntFormat,
10393
- $ZodCheckEndsWith: $ZodCheckEndsWith,
10394
- $ZodCheckGreaterThan: $ZodCheckGreaterThan,
10395
- $ZodCheckIncludes: $ZodCheckIncludes,
10396
- $ZodCheckLengthEquals: $ZodCheckLengthEquals,
10397
- $ZodCheckLessThan: $ZodCheckLessThan,
10398
- $ZodCheckLowerCase: $ZodCheckLowerCase,
10399
- $ZodCheckMaxLength: $ZodCheckMaxLength,
10400
- $ZodCheckMaxSize: $ZodCheckMaxSize,
10401
- $ZodCheckMimeType: $ZodCheckMimeType,
10402
- $ZodCheckMinLength: $ZodCheckMinLength,
10403
- $ZodCheckMinSize: $ZodCheckMinSize,
10404
- $ZodCheckMultipleOf: $ZodCheckMultipleOf,
10405
- $ZodCheckNumberFormat: $ZodCheckNumberFormat,
10406
- $ZodCheckOverwrite: $ZodCheckOverwrite,
10407
- $ZodCheckProperty: $ZodCheckProperty,
10408
- $ZodCheckRegex: $ZodCheckRegex,
10409
- $ZodCheckSizeEquals: $ZodCheckSizeEquals,
10410
- $ZodCheckStartsWith: $ZodCheckStartsWith,
10411
- $ZodCheckStringFormat: $ZodCheckStringFormat,
10412
- $ZodCheckUpperCase: $ZodCheckUpperCase,
10413
- $ZodCustom: $ZodCustom,
10414
- $ZodCustomStringFormat: $ZodCustomStringFormat,
10415
- $ZodDate: $ZodDate,
10416
- $ZodDefault: $ZodDefault,
10417
- $ZodDiscriminatedUnion: $ZodDiscriminatedUnion,
10418
- $ZodE164: $ZodE164,
10419
- $ZodEmail: $ZodEmail,
10420
- $ZodEmoji: $ZodEmoji,
10421
- $ZodEnum: $ZodEnum,
10422
- $ZodError: $ZodError,
10423
- $ZodFile: $ZodFile,
10424
- $ZodFunction: $ZodFunction,
10425
- $ZodGUID: $ZodGUID,
10426
- $ZodIPv4: $ZodIPv4,
10427
- $ZodIPv6: $ZodIPv6,
10428
- $ZodISODate: $ZodISODate,
10429
- $ZodISODateTime: $ZodISODateTime,
10430
- $ZodISODuration: $ZodISODuration,
10431
- $ZodISOTime: $ZodISOTime,
10432
- $ZodIntersection: $ZodIntersection,
10433
- $ZodJWT: $ZodJWT,
10434
- $ZodKSUID: $ZodKSUID,
10435
- $ZodLazy: $ZodLazy,
10436
- $ZodLiteral: $ZodLiteral,
10437
- $ZodMap: $ZodMap,
10438
- $ZodNaN: $ZodNaN,
10439
- $ZodNanoID: $ZodNanoID,
10440
- $ZodNever: $ZodNever,
10441
- $ZodNonOptional: $ZodNonOptional,
10442
- $ZodNull: $ZodNull,
10443
- $ZodNullable: $ZodNullable,
10444
- $ZodNumber: $ZodNumber,
10445
- $ZodNumberFormat: $ZodNumberFormat,
10446
- $ZodObject: $ZodObject,
10447
- $ZodOptional: $ZodOptional,
10448
- $ZodPipe: $ZodPipe,
10449
- $ZodPrefault: $ZodPrefault,
10450
- $ZodPromise: $ZodPromise,
10451
- $ZodReadonly: $ZodReadonly,
10452
- $ZodRealError: $ZodRealError,
10453
- $ZodRecord: $ZodRecord,
10454
- $ZodRegistry: $ZodRegistry,
10455
- $ZodSet: $ZodSet,
10456
- $ZodString: $ZodString,
10457
- $ZodStringFormat: $ZodStringFormat,
10458
- $ZodSuccess: $ZodSuccess,
10459
- $ZodSymbol: $ZodSymbol,
10460
- $ZodTemplateLiteral: $ZodTemplateLiteral,
10461
- $ZodTransform: $ZodTransform,
10462
- $ZodTuple: $ZodTuple,
10463
- $ZodType: $ZodType,
10464
- $ZodULID: $ZodULID,
10465
- $ZodURL: $ZodURL,
10466
- $ZodUUID: $ZodUUID,
10467
- $ZodUndefined: $ZodUndefined,
10468
- $ZodUnion: $ZodUnion,
10469
- $ZodUnknown: $ZodUnknown,
10470
- $ZodVoid: $ZodVoid,
10471
- $ZodXID: $ZodXID,
10472
- $brand: $brand,
10473
- $constructor: $constructor,
10474
- $input: $input,
10475
- $output: $output,
10476
- Doc: Doc,
10477
- JSONSchema: jsonSchema,
10478
- JSONSchemaGenerator: JSONSchemaGenerator,
10479
- NEVER: NEVER,
10480
- TimePrecision: TimePrecision,
10481
- _any: _any,
10482
- _array: _array,
10483
- _base64: _base64,
10484
- _base64url: _base64url,
10485
- _bigint: _bigint,
10486
- _boolean: _boolean,
10487
- _catch: _catch$1,
10488
- _check: _check,
10489
- _cidrv4: _cidrv4,
10490
- _cidrv6: _cidrv6,
10491
- _coercedBigint: _coercedBigint,
10492
- _coercedBoolean: _coercedBoolean,
10493
- _coercedDate: _coercedDate,
10494
- _coercedNumber: _coercedNumber,
10495
- _coercedString: _coercedString,
10496
- _cuid: _cuid,
10497
- _cuid2: _cuid2,
10498
- _custom: _custom,
10499
- _date: _date,
10500
- _default: _default$1,
10501
- _discriminatedUnion: _discriminatedUnion,
10502
- _e164: _e164,
10503
- _email: _email,
10504
- _emoji: _emoji,
10505
- _endsWith: _endsWith,
10506
- _enum: _enum$1,
10507
- _file: _file,
10508
- _float32: _float32,
10509
- _float64: _float64,
10510
- _gt: _gt,
10511
- _gte: _gte,
10512
- _guid: _guid,
10513
- _includes: _includes,
10514
- _int: _int,
10515
- _int32: _int32,
10516
- _int64: _int64,
10517
- _intersection: _intersection,
10518
- _ipv4: _ipv4,
10519
- _ipv6: _ipv6,
10520
- _isoDate: _isoDate,
10521
- _isoDateTime: _isoDateTime,
10522
- _isoDuration: _isoDuration,
10523
- _isoTime: _isoTime,
10524
- _jwt: _jwt,
10525
- _ksuid: _ksuid,
10526
- _lazy: _lazy,
10527
- _length: _length,
10528
- _literal: _literal,
10529
- _lowercase: _lowercase,
10530
- _lt: _lt,
10531
- _lte: _lte,
10532
- _map: _map,
10533
- _max: _lte,
10534
- _maxLength: _maxLength,
10535
- _maxSize: _maxSize,
10536
- _mime: _mime,
10537
- _min: _gte,
10538
- _minLength: _minLength,
10539
- _minSize: _minSize,
10540
- _multipleOf: _multipleOf,
10541
- _nan: _nan,
10542
- _nanoid: _nanoid,
10543
- _nativeEnum: _nativeEnum,
10544
- _negative: _negative,
10545
- _never: _never,
10546
- _nonnegative: _nonnegative,
10547
- _nonoptional: _nonoptional,
10548
- _nonpositive: _nonpositive,
10549
- _normalize: _normalize,
10550
- _null: _null$1,
10551
- _nullable: _nullable,
10552
- _number: _number,
10553
- _optional: _optional,
10554
- _overwrite: _overwrite,
10555
- _parse: _parse,
10556
- _parseAsync: _parseAsync,
10557
- _pipe: _pipe,
10558
- _positive: _positive,
10559
- _promise: _promise,
10560
- _property: _property,
10561
- _readonly: _readonly,
10562
- _record: _record,
10563
- _refine: _refine,
10564
- _regex: _regex,
10565
- _safeParse: _safeParse,
10566
- _safeParseAsync: _safeParseAsync,
10567
- _set: _set,
10568
- _size: _size,
10569
- _startsWith: _startsWith,
10570
- _string: _string,
10571
- _stringFormat: _stringFormat,
10572
- _stringbool: _stringbool,
10573
- _success: _success,
10574
- _superRefine: _superRefine,
10575
- _symbol: _symbol,
10576
- _templateLiteral: _templateLiteral,
10577
- _toLowerCase: _toLowerCase,
10578
- _toUpperCase: _toUpperCase,
10579
- _transform: _transform,
10580
- _trim: _trim,
10581
- _tuple: _tuple,
10582
- _uint32: _uint32,
10583
- _uint64: _uint64,
10584
- _ulid: _ulid,
10585
- _undefined: _undefined$1,
10586
- _union: _union,
10587
- _unknown: _unknown,
10588
- _uppercase: _uppercase,
10589
- _url: _url,
10590
- _uuid: _uuid,
10591
- _uuidv4: _uuidv4,
10592
- _uuidv6: _uuidv6,
10593
- _uuidv7: _uuidv7,
10594
- _void: _void$1,
10595
- _xid: _xid,
10596
- clone: clone,
10597
- config: config,
10598
- flattenError: flattenError,
10599
- formatError: formatError,
10600
- function: _function,
10601
- globalConfig: globalConfig,
10602
- globalRegistry: globalRegistry,
10603
- isValidBase64: isValidBase64,
10604
- isValidBase64URL: isValidBase64URL,
10605
- isValidJWT: isValidJWT,
10606
- locales: index$1,
10607
- parse: parse$1,
10608
- parseAsync: parseAsync$1,
10609
- prettifyError: prettifyError,
10610
- regexes: regexes,
10611
- registry: registry,
10612
- safeParse: safeParse$1,
10613
- safeParseAsync: safeParseAsync$1,
10614
- toDotPath: toDotPath,
10615
- toJSONSchema: toJSONSchema,
10616
- treeifyError: treeifyError,
10617
- util: util,
10618
- version: version
10355
+ __proto__: null,
10356
+ $ZodAny: $ZodAny,
10357
+ $ZodArray: $ZodArray,
10358
+ $ZodAsyncError: $ZodAsyncError,
10359
+ $ZodBase64: $ZodBase64,
10360
+ $ZodBase64URL: $ZodBase64URL,
10361
+ $ZodBigInt: $ZodBigInt,
10362
+ $ZodBigIntFormat: $ZodBigIntFormat,
10363
+ $ZodBoolean: $ZodBoolean,
10364
+ $ZodCIDRv4: $ZodCIDRv4,
10365
+ $ZodCIDRv6: $ZodCIDRv6,
10366
+ $ZodCUID: $ZodCUID,
10367
+ $ZodCUID2: $ZodCUID2,
10368
+ $ZodCatch: $ZodCatch,
10369
+ $ZodCheck: $ZodCheck,
10370
+ $ZodCheckBigIntFormat: $ZodCheckBigIntFormat,
10371
+ $ZodCheckEndsWith: $ZodCheckEndsWith,
10372
+ $ZodCheckGreaterThan: $ZodCheckGreaterThan,
10373
+ $ZodCheckIncludes: $ZodCheckIncludes,
10374
+ $ZodCheckLengthEquals: $ZodCheckLengthEquals,
10375
+ $ZodCheckLessThan: $ZodCheckLessThan,
10376
+ $ZodCheckLowerCase: $ZodCheckLowerCase,
10377
+ $ZodCheckMaxLength: $ZodCheckMaxLength,
10378
+ $ZodCheckMaxSize: $ZodCheckMaxSize,
10379
+ $ZodCheckMimeType: $ZodCheckMimeType,
10380
+ $ZodCheckMinLength: $ZodCheckMinLength,
10381
+ $ZodCheckMinSize: $ZodCheckMinSize,
10382
+ $ZodCheckMultipleOf: $ZodCheckMultipleOf,
10383
+ $ZodCheckNumberFormat: $ZodCheckNumberFormat,
10384
+ $ZodCheckOverwrite: $ZodCheckOverwrite,
10385
+ $ZodCheckProperty: $ZodCheckProperty,
10386
+ $ZodCheckRegex: $ZodCheckRegex,
10387
+ $ZodCheckSizeEquals: $ZodCheckSizeEquals,
10388
+ $ZodCheckStartsWith: $ZodCheckStartsWith,
10389
+ $ZodCheckStringFormat: $ZodCheckStringFormat,
10390
+ $ZodCheckUpperCase: $ZodCheckUpperCase,
10391
+ $ZodCustom: $ZodCustom,
10392
+ $ZodCustomStringFormat: $ZodCustomStringFormat,
10393
+ $ZodDate: $ZodDate,
10394
+ $ZodDefault: $ZodDefault,
10395
+ $ZodDiscriminatedUnion: $ZodDiscriminatedUnion,
10396
+ $ZodE164: $ZodE164,
10397
+ $ZodEmail: $ZodEmail,
10398
+ $ZodEmoji: $ZodEmoji,
10399
+ $ZodEnum: $ZodEnum,
10400
+ $ZodError: $ZodError,
10401
+ $ZodFile: $ZodFile,
10402
+ $ZodFunction: $ZodFunction,
10403
+ $ZodGUID: $ZodGUID,
10404
+ $ZodIPv4: $ZodIPv4,
10405
+ $ZodIPv6: $ZodIPv6,
10406
+ $ZodISODate: $ZodISODate,
10407
+ $ZodISODateTime: $ZodISODateTime,
10408
+ $ZodISODuration: $ZodISODuration,
10409
+ $ZodISOTime: $ZodISOTime,
10410
+ $ZodIntersection: $ZodIntersection,
10411
+ $ZodJWT: $ZodJWT,
10412
+ $ZodKSUID: $ZodKSUID,
10413
+ $ZodLazy: $ZodLazy,
10414
+ $ZodLiteral: $ZodLiteral,
10415
+ $ZodMap: $ZodMap,
10416
+ $ZodNaN: $ZodNaN,
10417
+ $ZodNanoID: $ZodNanoID,
10418
+ $ZodNever: $ZodNever,
10419
+ $ZodNonOptional: $ZodNonOptional,
10420
+ $ZodNull: $ZodNull,
10421
+ $ZodNullable: $ZodNullable,
10422
+ $ZodNumber: $ZodNumber,
10423
+ $ZodNumberFormat: $ZodNumberFormat,
10424
+ $ZodObject: $ZodObject,
10425
+ $ZodOptional: $ZodOptional,
10426
+ $ZodPipe: $ZodPipe,
10427
+ $ZodPrefault: $ZodPrefault,
10428
+ $ZodPromise: $ZodPromise,
10429
+ $ZodReadonly: $ZodReadonly,
10430
+ $ZodRealError: $ZodRealError,
10431
+ $ZodRecord: $ZodRecord,
10432
+ $ZodRegistry: $ZodRegistry,
10433
+ $ZodSet: $ZodSet,
10434
+ $ZodString: $ZodString,
10435
+ $ZodStringFormat: $ZodStringFormat,
10436
+ $ZodSuccess: $ZodSuccess,
10437
+ $ZodSymbol: $ZodSymbol,
10438
+ $ZodTemplateLiteral: $ZodTemplateLiteral,
10439
+ $ZodTransform: $ZodTransform,
10440
+ $ZodTuple: $ZodTuple,
10441
+ $ZodType: $ZodType,
10442
+ $ZodULID: $ZodULID,
10443
+ $ZodURL: $ZodURL,
10444
+ $ZodUUID: $ZodUUID,
10445
+ $ZodUndefined: $ZodUndefined,
10446
+ $ZodUnion: $ZodUnion,
10447
+ $ZodUnknown: $ZodUnknown,
10448
+ $ZodVoid: $ZodVoid,
10449
+ $ZodXID: $ZodXID,
10450
+ $brand: $brand,
10451
+ $constructor: $constructor,
10452
+ $input: $input,
10453
+ $output: $output,
10454
+ Doc: Doc,
10455
+ JSONSchema: jsonSchema,
10456
+ JSONSchemaGenerator: JSONSchemaGenerator,
10457
+ NEVER: NEVER,
10458
+ TimePrecision: TimePrecision,
10459
+ _any: _any,
10460
+ _array: _array,
10461
+ _base64: _base64,
10462
+ _base64url: _base64url,
10463
+ _bigint: _bigint,
10464
+ _boolean: _boolean,
10465
+ _catch: _catch$1,
10466
+ _check: _check,
10467
+ _cidrv4: _cidrv4,
10468
+ _cidrv6: _cidrv6,
10469
+ _coercedBigint: _coercedBigint,
10470
+ _coercedBoolean: _coercedBoolean,
10471
+ _coercedDate: _coercedDate,
10472
+ _coercedNumber: _coercedNumber,
10473
+ _coercedString: _coercedString,
10474
+ _cuid: _cuid,
10475
+ _cuid2: _cuid2,
10476
+ _custom: _custom,
10477
+ _date: _date,
10478
+ _default: _default$1,
10479
+ _discriminatedUnion: _discriminatedUnion,
10480
+ _e164: _e164,
10481
+ _email: _email,
10482
+ _emoji: _emoji,
10483
+ _endsWith: _endsWith,
10484
+ _enum: _enum$1,
10485
+ _file: _file,
10486
+ _float32: _float32,
10487
+ _float64: _float64,
10488
+ _gt: _gt,
10489
+ _gte: _gte,
10490
+ _guid: _guid,
10491
+ _includes: _includes,
10492
+ _int: _int,
10493
+ _int32: _int32,
10494
+ _int64: _int64,
10495
+ _intersection: _intersection,
10496
+ _ipv4: _ipv4,
10497
+ _ipv6: _ipv6,
10498
+ _isoDate: _isoDate,
10499
+ _isoDateTime: _isoDateTime,
10500
+ _isoDuration: _isoDuration,
10501
+ _isoTime: _isoTime,
10502
+ _jwt: _jwt,
10503
+ _ksuid: _ksuid,
10504
+ _lazy: _lazy,
10505
+ _length: _length,
10506
+ _literal: _literal,
10507
+ _lowercase: _lowercase,
10508
+ _lt: _lt,
10509
+ _lte: _lte,
10510
+ _map: _map,
10511
+ _max: _lte,
10512
+ _maxLength: _maxLength,
10513
+ _maxSize: _maxSize,
10514
+ _mime: _mime,
10515
+ _min: _gte,
10516
+ _minLength: _minLength,
10517
+ _minSize: _minSize,
10518
+ _multipleOf: _multipleOf,
10519
+ _nan: _nan,
10520
+ _nanoid: _nanoid,
10521
+ _nativeEnum: _nativeEnum,
10522
+ _negative: _negative,
10523
+ _never: _never,
10524
+ _nonnegative: _nonnegative,
10525
+ _nonoptional: _nonoptional,
10526
+ _nonpositive: _nonpositive,
10527
+ _normalize: _normalize,
10528
+ _null: _null$1,
10529
+ _nullable: _nullable,
10530
+ _number: _number,
10531
+ _optional: _optional,
10532
+ _overwrite: _overwrite,
10533
+ _parse: _parse,
10534
+ _parseAsync: _parseAsync,
10535
+ _pipe: _pipe,
10536
+ _positive: _positive,
10537
+ _promise: _promise,
10538
+ _property: _property,
10539
+ _readonly: _readonly,
10540
+ _record: _record,
10541
+ _refine: _refine,
10542
+ _regex: _regex,
10543
+ _safeParse: _safeParse,
10544
+ _safeParseAsync: _safeParseAsync,
10545
+ _set: _set,
10546
+ _size: _size,
10547
+ _startsWith: _startsWith,
10548
+ _string: _string,
10549
+ _stringFormat: _stringFormat,
10550
+ _stringbool: _stringbool,
10551
+ _success: _success,
10552
+ _superRefine: _superRefine,
10553
+ _symbol: _symbol,
10554
+ _templateLiteral: _templateLiteral,
10555
+ _toLowerCase: _toLowerCase,
10556
+ _toUpperCase: _toUpperCase,
10557
+ _transform: _transform,
10558
+ _trim: _trim,
10559
+ _tuple: _tuple,
10560
+ _uint32: _uint32,
10561
+ _uint64: _uint64,
10562
+ _ulid: _ulid,
10563
+ _undefined: _undefined$1,
10564
+ _union: _union,
10565
+ _unknown: _unknown,
10566
+ _uppercase: _uppercase,
10567
+ _url: _url,
10568
+ _uuid: _uuid,
10569
+ _uuidv4: _uuidv4,
10570
+ _uuidv6: _uuidv6,
10571
+ _uuidv7: _uuidv7,
10572
+ _void: _void$1,
10573
+ _xid: _xid,
10574
+ clone: clone,
10575
+ config: config,
10576
+ flattenError: flattenError,
10577
+ formatError: formatError,
10578
+ function: _function,
10579
+ globalConfig: globalConfig,
10580
+ globalRegistry: globalRegistry,
10581
+ isValidBase64: isValidBase64,
10582
+ isValidBase64URL: isValidBase64URL,
10583
+ isValidJWT: isValidJWT,
10584
+ locales: index$1,
10585
+ parse: parse$1,
10586
+ parseAsync: parseAsync$1,
10587
+ prettifyError: prettifyError,
10588
+ regexes: regexes,
10589
+ registry: registry,
10590
+ safeParse: safeParse$1,
10591
+ safeParseAsync: safeParseAsync$1,
10592
+ toDotPath: toDotPath,
10593
+ toJSONSchema: toJSONSchema,
10594
+ treeifyError: treeifyError,
10595
+ util: util,
10596
+ version: version
10619
10597
  });
10620
10598
 
10621
10599
  const ZodISODateTime = /*@__PURE__*/ $constructor("ZodISODateTime", (inst, def) => {
@@ -10648,15 +10626,15 @@ function duration(params) {
10648
10626
  }
10649
10627
 
10650
10628
  var iso = /*#__PURE__*/Object.freeze({
10651
- __proto__: null,
10652
- ZodISODate: ZodISODate,
10653
- ZodISODateTime: ZodISODateTime,
10654
- ZodISODuration: ZodISODuration,
10655
- ZodISOTime: ZodISOTime,
10656
- date: date$2,
10657
- datetime: datetime,
10658
- duration: duration,
10659
- time: time
10629
+ __proto__: null,
10630
+ ZodISODate: ZodISODate,
10631
+ ZodISODateTime: ZodISODateTime,
10632
+ ZodISODuration: ZodISODuration,
10633
+ ZodISOTime: ZodISOTime,
10634
+ date: date$2,
10635
+ datetime: datetime,
10636
+ duration: duration,
10637
+ time: time
10660
10638
  });
10661
10639
 
10662
10640
  const initializer = (inst, issues) => {
@@ -11739,227 +11717,227 @@ function date(params) {
11739
11717
  }
11740
11718
 
11741
11719
  var coerce = /*#__PURE__*/Object.freeze({
11742
- __proto__: null,
11743
- bigint: bigint,
11744
- boolean: boolean,
11745
- date: date,
11746
- number: number,
11747
- string: string
11720
+ __proto__: null,
11721
+ bigint: bigint,
11722
+ boolean: boolean,
11723
+ date: date,
11724
+ number: number,
11725
+ string: string
11748
11726
  });
11749
11727
 
11750
11728
  config(en());
11751
11729
 
11752
11730
  var z = /*#__PURE__*/Object.freeze({
11753
- __proto__: null,
11754
- $brand: $brand,
11755
- $input: $input,
11756
- $output: $output,
11757
- NEVER: NEVER,
11758
- TimePrecision: TimePrecision,
11759
- ZodAny: ZodAny,
11760
- ZodArray: ZodArray,
11761
- ZodBase64: ZodBase64,
11762
- ZodBase64URL: ZodBase64URL,
11763
- ZodBigInt: ZodBigInt,
11764
- ZodBigIntFormat: ZodBigIntFormat,
11765
- ZodBoolean: ZodBoolean,
11766
- ZodCIDRv4: ZodCIDRv4,
11767
- ZodCIDRv6: ZodCIDRv6,
11768
- ZodCUID: ZodCUID,
11769
- ZodCUID2: ZodCUID2,
11770
- ZodCatch: ZodCatch,
11771
- ZodCustom: ZodCustom,
11772
- ZodCustomStringFormat: ZodCustomStringFormat,
11773
- ZodDate: ZodDate,
11774
- ZodDefault: ZodDefault,
11775
- ZodDiscriminatedUnion: ZodDiscriminatedUnion,
11776
- ZodE164: ZodE164,
11777
- ZodEmail: ZodEmail,
11778
- ZodEmoji: ZodEmoji,
11779
- ZodEnum: ZodEnum,
11780
- ZodError: ZodError,
11781
- ZodFile: ZodFile,
11782
- get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },
11783
- ZodGUID: ZodGUID,
11784
- ZodIPv4: ZodIPv4,
11785
- ZodIPv6: ZodIPv6,
11786
- ZodISODate: ZodISODate,
11787
- ZodISODateTime: ZodISODateTime,
11788
- ZodISODuration: ZodISODuration,
11789
- ZodISOTime: ZodISOTime,
11790
- ZodIntersection: ZodIntersection,
11791
- ZodIssueCode: ZodIssueCode,
11792
- ZodJWT: ZodJWT,
11793
- ZodKSUID: ZodKSUID,
11794
- ZodLazy: ZodLazy,
11795
- ZodLiteral: ZodLiteral,
11796
- ZodMap: ZodMap,
11797
- ZodNaN: ZodNaN,
11798
- ZodNanoID: ZodNanoID,
11799
- ZodNever: ZodNever,
11800
- ZodNonOptional: ZodNonOptional,
11801
- ZodNull: ZodNull,
11802
- ZodNullable: ZodNullable,
11803
- ZodNumber: ZodNumber,
11804
- ZodNumberFormat: ZodNumberFormat,
11805
- ZodObject: ZodObject,
11806
- ZodOptional: ZodOptional,
11807
- ZodPipe: ZodPipe,
11808
- ZodPrefault: ZodPrefault,
11809
- ZodPromise: ZodPromise,
11810
- ZodReadonly: ZodReadonly,
11811
- ZodRealError: ZodRealError,
11812
- ZodRecord: ZodRecord,
11813
- ZodSet: ZodSet,
11814
- ZodString: ZodString,
11815
- ZodStringFormat: ZodStringFormat,
11816
- ZodSuccess: ZodSuccess,
11817
- ZodSymbol: ZodSymbol,
11818
- ZodTemplateLiteral: ZodTemplateLiteral,
11819
- ZodTransform: ZodTransform,
11820
- ZodTuple: ZodTuple,
11821
- ZodType: ZodType,
11822
- ZodULID: ZodULID,
11823
- ZodURL: ZodURL,
11824
- ZodUUID: ZodUUID,
11825
- ZodUndefined: ZodUndefined,
11826
- ZodUnion: ZodUnion,
11827
- ZodUnknown: ZodUnknown,
11828
- ZodVoid: ZodVoid,
11829
- ZodXID: ZodXID,
11830
- _ZodString: _ZodString,
11831
- _default: _default,
11832
- any: any,
11833
- array: array,
11834
- base64: base64,
11835
- base64url: base64url,
11836
- bigint: bigint$1,
11837
- boolean: boolean$1,
11838
- catch: _catch,
11839
- check: check,
11840
- cidrv4: cidrv4,
11841
- cidrv6: cidrv6,
11842
- clone: clone,
11843
- coerce: coerce,
11844
- config: config,
11845
- core: index,
11846
- cuid: cuid,
11847
- cuid2: cuid2,
11848
- custom: custom,
11849
- date: date$1,
11850
- discriminatedUnion: discriminatedUnion,
11851
- e164: e164,
11852
- email: email,
11853
- emoji: emoji,
11854
- endsWith: _endsWith,
11855
- enum: _enum,
11856
- file: file,
11857
- flattenError: flattenError,
11858
- float32: float32,
11859
- float64: float64,
11860
- formatError: formatError,
11861
- function: _function,
11862
- getErrorMap: getErrorMap,
11863
- globalRegistry: globalRegistry,
11864
- gt: _gt,
11865
- gte: _gte,
11866
- guid: guid,
11867
- hostname: hostname,
11868
- includes: _includes,
11869
- instanceof: _instanceof,
11870
- int: int,
11871
- int32: int32,
11872
- int64: int64,
11873
- intersection: intersection,
11874
- ipv4: ipv4,
11875
- ipv6: ipv6,
11876
- iso: iso,
11877
- json: json,
11878
- jwt: jwt,
11879
- keyof: keyof,
11880
- ksuid: ksuid,
11881
- lazy: lazy,
11882
- length: _length,
11883
- literal: literal,
11884
- locales: index$1,
11885
- looseObject: looseObject,
11886
- lowercase: _lowercase,
11887
- lt: _lt,
11888
- lte: _lte,
11889
- map: map,
11890
- maxLength: _maxLength,
11891
- maxSize: _maxSize,
11892
- mime: _mime,
11893
- minLength: _minLength,
11894
- minSize: _minSize,
11895
- multipleOf: _multipleOf,
11896
- nan: nan,
11897
- nanoid: nanoid,
11898
- nativeEnum: nativeEnum,
11899
- negative: _negative,
11900
- never: never,
11901
- nonnegative: _nonnegative,
11902
- nonoptional: nonoptional,
11903
- nonpositive: _nonpositive,
11904
- normalize: _normalize,
11905
- null: _null,
11906
- nullable: nullable,
11907
- nullish: nullish,
11908
- number: number$1,
11909
- object: object,
11910
- optional: optional,
11911
- overwrite: _overwrite,
11912
- parse: parse,
11913
- parseAsync: parseAsync,
11914
- partialRecord: partialRecord,
11915
- pipe: pipe,
11916
- positive: _positive,
11917
- prefault: prefault,
11918
- preprocess: preprocess,
11919
- prettifyError: prettifyError,
11920
- promise: promise,
11921
- property: _property,
11922
- readonly: readonly,
11923
- record: record,
11924
- refine: refine,
11925
- regex: _regex,
11926
- regexes: regexes,
11927
- registry: registry,
11928
- safeParse: safeParse,
11929
- safeParseAsync: safeParseAsync,
11930
- set: set,
11931
- setErrorMap: setErrorMap,
11932
- size: _size,
11933
- startsWith: _startsWith,
11934
- strictObject: strictObject,
11935
- string: string$1,
11936
- stringFormat: stringFormat,
11937
- stringbool: stringbool,
11938
- success: success,
11939
- superRefine: superRefine,
11940
- symbol: symbol,
11941
- templateLiteral: templateLiteral,
11942
- toJSONSchema: toJSONSchema,
11943
- toLowerCase: _toLowerCase,
11944
- toUpperCase: _toUpperCase,
11945
- transform: transform,
11946
- treeifyError: treeifyError,
11947
- trim: _trim,
11948
- tuple: tuple,
11949
- uint32: uint32,
11950
- uint64: uint64,
11951
- ulid: ulid,
11952
- undefined: _undefined,
11953
- union: union,
11954
- unknown: unknown,
11955
- uppercase: _uppercase,
11956
- url: url,
11957
- uuid: uuid,
11958
- uuidv4: uuidv4,
11959
- uuidv6: uuidv6,
11960
- uuidv7: uuidv7,
11961
- void: _void,
11962
- xid: xid
11731
+ __proto__: null,
11732
+ $brand: $brand,
11733
+ $input: $input,
11734
+ $output: $output,
11735
+ NEVER: NEVER,
11736
+ TimePrecision: TimePrecision,
11737
+ ZodAny: ZodAny,
11738
+ ZodArray: ZodArray,
11739
+ ZodBase64: ZodBase64,
11740
+ ZodBase64URL: ZodBase64URL,
11741
+ ZodBigInt: ZodBigInt,
11742
+ ZodBigIntFormat: ZodBigIntFormat,
11743
+ ZodBoolean: ZodBoolean,
11744
+ ZodCIDRv4: ZodCIDRv4,
11745
+ ZodCIDRv6: ZodCIDRv6,
11746
+ ZodCUID: ZodCUID,
11747
+ ZodCUID2: ZodCUID2,
11748
+ ZodCatch: ZodCatch,
11749
+ ZodCustom: ZodCustom,
11750
+ ZodCustomStringFormat: ZodCustomStringFormat,
11751
+ ZodDate: ZodDate,
11752
+ ZodDefault: ZodDefault,
11753
+ ZodDiscriminatedUnion: ZodDiscriminatedUnion,
11754
+ ZodE164: ZodE164,
11755
+ ZodEmail: ZodEmail,
11756
+ ZodEmoji: ZodEmoji,
11757
+ ZodEnum: ZodEnum,
11758
+ ZodError: ZodError,
11759
+ ZodFile: ZodFile,
11760
+ get ZodFirstPartyTypeKind () { return ZodFirstPartyTypeKind; },
11761
+ ZodGUID: ZodGUID,
11762
+ ZodIPv4: ZodIPv4,
11763
+ ZodIPv6: ZodIPv6,
11764
+ ZodISODate: ZodISODate,
11765
+ ZodISODateTime: ZodISODateTime,
11766
+ ZodISODuration: ZodISODuration,
11767
+ ZodISOTime: ZodISOTime,
11768
+ ZodIntersection: ZodIntersection,
11769
+ ZodIssueCode: ZodIssueCode,
11770
+ ZodJWT: ZodJWT,
11771
+ ZodKSUID: ZodKSUID,
11772
+ ZodLazy: ZodLazy,
11773
+ ZodLiteral: ZodLiteral,
11774
+ ZodMap: ZodMap,
11775
+ ZodNaN: ZodNaN,
11776
+ ZodNanoID: ZodNanoID,
11777
+ ZodNever: ZodNever,
11778
+ ZodNonOptional: ZodNonOptional,
11779
+ ZodNull: ZodNull,
11780
+ ZodNullable: ZodNullable,
11781
+ ZodNumber: ZodNumber,
11782
+ ZodNumberFormat: ZodNumberFormat,
11783
+ ZodObject: ZodObject,
11784
+ ZodOptional: ZodOptional,
11785
+ ZodPipe: ZodPipe,
11786
+ ZodPrefault: ZodPrefault,
11787
+ ZodPromise: ZodPromise,
11788
+ ZodReadonly: ZodReadonly,
11789
+ ZodRealError: ZodRealError,
11790
+ ZodRecord: ZodRecord,
11791
+ ZodSet: ZodSet,
11792
+ ZodString: ZodString,
11793
+ ZodStringFormat: ZodStringFormat,
11794
+ ZodSuccess: ZodSuccess,
11795
+ ZodSymbol: ZodSymbol,
11796
+ ZodTemplateLiteral: ZodTemplateLiteral,
11797
+ ZodTransform: ZodTransform,
11798
+ ZodTuple: ZodTuple,
11799
+ ZodType: ZodType,
11800
+ ZodULID: ZodULID,
11801
+ ZodURL: ZodURL,
11802
+ ZodUUID: ZodUUID,
11803
+ ZodUndefined: ZodUndefined,
11804
+ ZodUnion: ZodUnion,
11805
+ ZodUnknown: ZodUnknown,
11806
+ ZodVoid: ZodVoid,
11807
+ ZodXID: ZodXID,
11808
+ _ZodString: _ZodString,
11809
+ _default: _default,
11810
+ any: any,
11811
+ array: array,
11812
+ base64: base64,
11813
+ base64url: base64url,
11814
+ bigint: bigint$1,
11815
+ boolean: boolean$1,
11816
+ catch: _catch,
11817
+ check: check,
11818
+ cidrv4: cidrv4,
11819
+ cidrv6: cidrv6,
11820
+ clone: clone,
11821
+ coerce: coerce,
11822
+ config: config,
11823
+ core: index,
11824
+ cuid: cuid,
11825
+ cuid2: cuid2,
11826
+ custom: custom,
11827
+ date: date$1,
11828
+ discriminatedUnion: discriminatedUnion,
11829
+ e164: e164,
11830
+ email: email,
11831
+ emoji: emoji,
11832
+ endsWith: _endsWith,
11833
+ enum: _enum,
11834
+ file: file,
11835
+ flattenError: flattenError,
11836
+ float32: float32,
11837
+ float64: float64,
11838
+ formatError: formatError,
11839
+ function: _function,
11840
+ getErrorMap: getErrorMap,
11841
+ globalRegistry: globalRegistry,
11842
+ gt: _gt,
11843
+ gte: _gte,
11844
+ guid: guid,
11845
+ hostname: hostname,
11846
+ includes: _includes,
11847
+ instanceof: _instanceof,
11848
+ int: int,
11849
+ int32: int32,
11850
+ int64: int64,
11851
+ intersection: intersection,
11852
+ ipv4: ipv4,
11853
+ ipv6: ipv6,
11854
+ iso: iso,
11855
+ json: json,
11856
+ jwt: jwt,
11857
+ keyof: keyof,
11858
+ ksuid: ksuid,
11859
+ lazy: lazy,
11860
+ length: _length,
11861
+ literal: literal,
11862
+ locales: index$1,
11863
+ looseObject: looseObject,
11864
+ lowercase: _lowercase,
11865
+ lt: _lt,
11866
+ lte: _lte,
11867
+ map: map,
11868
+ maxLength: _maxLength,
11869
+ maxSize: _maxSize,
11870
+ mime: _mime,
11871
+ minLength: _minLength,
11872
+ minSize: _minSize,
11873
+ multipleOf: _multipleOf,
11874
+ nan: nan,
11875
+ nanoid: nanoid,
11876
+ nativeEnum: nativeEnum,
11877
+ negative: _negative,
11878
+ never: never,
11879
+ nonnegative: _nonnegative,
11880
+ nonoptional: nonoptional,
11881
+ nonpositive: _nonpositive,
11882
+ normalize: _normalize,
11883
+ null: _null,
11884
+ nullable: nullable,
11885
+ nullish: nullish,
11886
+ number: number$1,
11887
+ object: object,
11888
+ optional: optional,
11889
+ overwrite: _overwrite,
11890
+ parse: parse,
11891
+ parseAsync: parseAsync,
11892
+ partialRecord: partialRecord,
11893
+ pipe: pipe,
11894
+ positive: _positive,
11895
+ prefault: prefault,
11896
+ preprocess: preprocess,
11897
+ prettifyError: prettifyError,
11898
+ promise: promise,
11899
+ property: _property,
11900
+ readonly: readonly,
11901
+ record: record,
11902
+ refine: refine,
11903
+ regex: _regex,
11904
+ regexes: regexes,
11905
+ registry: registry,
11906
+ safeParse: safeParse,
11907
+ safeParseAsync: safeParseAsync,
11908
+ set: set,
11909
+ setErrorMap: setErrorMap,
11910
+ size: _size,
11911
+ startsWith: _startsWith,
11912
+ strictObject: strictObject,
11913
+ string: string$1,
11914
+ stringFormat: stringFormat,
11915
+ stringbool: stringbool,
11916
+ success: success,
11917
+ superRefine: superRefine,
11918
+ symbol: symbol,
11919
+ templateLiteral: templateLiteral,
11920
+ toJSONSchema: toJSONSchema,
11921
+ toLowerCase: _toLowerCase,
11922
+ toUpperCase: _toUpperCase,
11923
+ transform: transform,
11924
+ treeifyError: treeifyError,
11925
+ trim: _trim,
11926
+ tuple: tuple,
11927
+ uint32: uint32,
11928
+ uint64: uint64,
11929
+ ulid: ulid,
11930
+ undefined: _undefined,
11931
+ union: union,
11932
+ unknown: unknown,
11933
+ uppercase: _uppercase,
11934
+ url: url,
11935
+ uuid: uuid,
11936
+ uuidv4: uuidv4,
11937
+ uuidv6: uuidv6,
11938
+ uuidv7: uuidv7,
11939
+ void: _void,
11940
+ xid: xid
11963
11941
  });
11964
11942
 
11965
11943
  const stakeControlEIP712Domain = (chainId) => ({
@@ -12012,6 +11990,14 @@ const commitKickstarterEIP712Types = {
12012
11990
  { name: "deadline", type: "uint256" },
12013
11991
  ],
12014
11992
  };
11993
+ const payProtocolDepositUsingStakedControlEIP712Types = {
11994
+ PayProtocolDepositUsingStakedControl: [
11995
+ { name: "amount", type: "uint256" },
11996
+ { name: "applicationId", type: "string" },
11997
+ { name: "nonce", type: "uint256" },
11998
+ { name: "deadline", type: "uint256" },
11999
+ ],
12000
+ };
12015
12001
  // Separate request schemas for clarity between stake and unstake
12016
12002
  const stakeSignatureRequestSchema = z.object({
12017
12003
  wallet: z.string().regex(/^0x[a-fA-F0-9]{40}$/),
@@ -12055,6 +12041,14 @@ const commitKickstarterSignatureRequestSchema = z.object({
12055
12041
  kickstarterId: z.string(),
12056
12042
  deadline: z.string(),
12057
12043
  });
12044
+ const payProtocolDepositUsingStakedControlSignatureRequestSchema = z.object({
12045
+ wallet: z.string().regex(/^0x[a-fA-F0-9]{40}$/),
12046
+ signature: z.string().regex(/^0x[a-fA-F0-9]{130}$/),
12047
+ nonce: z.string(),
12048
+ amount: z.string(),
12049
+ applicationId: z.string(),
12050
+ deadline: z.string(),
12051
+ });
12058
12052
  function isDeadlineExpired(deadline) {
12059
12053
  const nowSeconds = BigInt(Math.floor(Date.now() / 1000));
12060
12054
  return deadline < nowSeconds;
@@ -12136,6 +12130,21 @@ function buildCommitKickstarterMessage(req) {
12136
12130
  throw new Error("kickstarterId must be non-empty");
12137
12131
  return { nonce, amount, kickstarterId, deadline };
12138
12132
  }
12133
+ function buildPayProtocolDepositUsingStakedControlMessage(req) {
12134
+ const amount = BigInt(req.amount);
12135
+ const nonce = BigInt(req.nonce);
12136
+ const deadline = BigInt(req.deadline);
12137
+ const applicationId = req.applicationId;
12138
+ if (amount < 0n)
12139
+ throw new Error("Amount must be non-negative");
12140
+ if (nonce < 0n)
12141
+ throw new Error("Nonce must be non-negative");
12142
+ if (deadline < 0n)
12143
+ throw new Error("Deadline must be non-negative");
12144
+ if (!applicationId)
12145
+ throw new Error("applicationId must be non-empty");
12146
+ return { amount, applicationId, nonce, deadline };
12147
+ }
12139
12148
  // Helper to validate the signature using viem
12140
12149
  async function validateStakeSignature(input, domain = stakeControlEIP712Domain(1)) {
12141
12150
  const message = buildStakeMessage({
@@ -12274,6 +12283,33 @@ async function validateCommitKickstarterSignature(input, domain = stakeControlEI
12274
12283
  return { valid: false, recovered: null, reason: "signature_failed" };
12275
12284
  }
12276
12285
  }
12286
+ async function validatePayProtocolDepositUsingStakedControlSignature(input, domain = stakeControlEIP712Domain(1)) {
12287
+ const message = buildPayProtocolDepositUsingStakedControlMessage({
12288
+ amount: input.amount,
12289
+ applicationId: input.applicationId,
12290
+ nonce: input.nonce,
12291
+ deadline: input.deadline,
12292
+ });
12293
+ if (isDeadlineExpired(message.deadline)) {
12294
+ return { valid: false, recovered: null, reason: "deadline_expired" };
12295
+ }
12296
+ try {
12297
+ const verified = await verifyTypedData({
12298
+ address: getAddress(input.wallet),
12299
+ domain,
12300
+ types: payProtocolDepositUsingStakedControlEIP712Types,
12301
+ primaryType: TRANSFER_TYPES.PayProtocolDepositUsingStakedControl,
12302
+ message,
12303
+ signature: input.signature,
12304
+ });
12305
+ return verified
12306
+ ? { valid: true, recovered: input.wallet, reason: null }
12307
+ : { valid: false, recovered: null, reason: "signer_mismatch" };
12308
+ }
12309
+ catch (_) {
12310
+ return { valid: false, recovered: null, reason: "signature_failed" };
12311
+ }
12312
+ }
12277
12313
 
12278
- export { OFF_CHAIN_PAYMENT_CURRENCIES, PAYMENT_CURRENCIES, TRANSFER_TYPES, buildCommitKickstarterMessage, buildRestakeMessage, buildStakeMessage, buildUnstakeMoveMessage, buildUnstakeUnlockMessage, commitKickstarterEIP712Types, commitKickstarterSignatureRequestSchema, restakeEIP712Types, restakeSignatureRequestSchema, stakeControlEIP712Domain, stakeEIP712Types, stakeSignatureRequestSchema, unstakeMoveEIP712Types, unstakeMoveSignatureRequestSchema, unstakeUnlockEIP712Types, unstakeUnlockSignatureRequestSchema, validateCommitKickstarterSignature, validateRestakeSignature, validateStakeSignature, validateUnstakeMoveSignature, validateUnstakeUnlockSignature };
12314
+ export { TRANSFER_TYPES, buildCommitKickstarterMessage, buildPayProtocolDepositUsingStakedControlMessage, buildRestakeMessage, buildStakeMessage, buildUnstakeMoveMessage, buildUnstakeUnlockMessage, commitKickstarterEIP712Types, commitKickstarterSignatureRequestSchema, payProtocolDepositUsingStakedControlEIP712Types, payProtocolDepositUsingStakedControlSignatureRequestSchema, restakeEIP712Types, restakeSignatureRequestSchema, stakeControlEIP712Domain, stakeEIP712Types, stakeSignatureRequestSchema, unstakeMoveEIP712Types, unstakeMoveSignatureRequestSchema, unstakeUnlockEIP712Types, unstakeUnlockSignatureRequestSchema, validateCommitKickstarterSignature, validatePayProtocolDepositUsingStakedControlSignature, validateRestakeSignature, validateStakeSignature, validateUnstakeMoveSignature, validateUnstakeUnlockSignature };
12279
12315
  //# sourceMappingURL=browser.js.map