@cossistant/core 0.0.24 → 0.0.25

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.
package/checks.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"checks.d.ts","names":["core","errors","schemas","util","$ZodCheckDef","$ZodErrorMap","ParsePayload","$ZodCheckInternals","T","$ZodIssueBase","MaybeAsync","$ZodType","$ZodCheck","$constructor","$ZodCheckLessThanDef","Numeric","$ZodCheckLessThanInternals","$ZodIssueTooBig","$ZodCheckLessThan","$ZodCheckGreaterThanDef","$ZodCheckGreaterThanInternals","$ZodIssueTooSmall","$ZodCheckGreaterThan","$ZodCheckMultipleOfDef","$ZodCheckMultipleOfInternals","$ZodIssueNotMultipleOf","$ZodCheckMultipleOf","$ZodNumberFormats","$ZodCheckNumberFormatDef","$ZodCheckNumberFormatInternals","$ZodIssueInvalidType","$ZodCheckNumberFormat","$ZodBigIntFormats","$ZodCheckBigIntFormatDef","$ZodCheckBigIntFormatInternals","$ZodCheckBigIntFormat","$ZodCheckMaxSizeDef","$ZodCheckMaxSizeInternals","HasSize","$ZodCheckMaxSize","$ZodCheckMinSizeDef","$ZodCheckMinSizeInternals","$ZodCheckMinSize","$ZodCheckSizeEqualsDef","$ZodCheckSizeEqualsInternals","$ZodCheckSizeEquals","$ZodCheckMaxLengthDef","$ZodCheckMaxLengthInternals","HasLength","$ZodCheckMaxLength","$ZodCheckMinLengthDef","$ZodCheckMinLengthInternals","$ZodCheckMinLength","$ZodCheckLengthEqualsDef","$ZodCheckLengthEqualsInternals","$ZodCheckLengthEquals","$ZodStringFormats","$ZodCheckStringFormatDef","Format","RegExp","$ZodCheckStringFormatInternals","$ZodIssueInvalidStringFormat","$ZodCheckStringFormat","$ZodCheckRegexDef","$ZodCheckRegexInternals","$ZodCheckRegex","$ZodCheckLowerCaseDef","$ZodCheckLowerCaseInternals","$ZodCheckLowerCase","$ZodCheckUpperCaseDef","$ZodCheckUpperCaseInternals","$ZodCheckUpperCase","$ZodCheckIncludesDef","$ZodCheckIncludesInternals","$ZodCheckIncludes","$ZodCheckStartsWithDef","$ZodCheckStartsWithInternals","$ZodCheckStartsWith","$ZodCheckEndsWithDef","$ZodCheckEndsWithInternals","$ZodCheckEndsWith","$ZodCheckPropertyDef","$ZodCheckPropertyInternals","$ZodIssue","$ZodCheckProperty","$ZodCheckMimeTypeDef","MimeTypes","$ZodCheckMimeTypeInternals","File","$ZodIssueInvalidValue","$ZodCheckMimeType","$ZodCheckOverwriteDef","$ZodCheckOverwriteInternals","$ZodCheckOverwrite","$ZodChecks","$ZodStringFormatChecks","$ZodStringFormatTypes"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/checks.d.cts"],"sourcesContent":["import * as core from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nimport * as util from \"./util.cjs\";\nexport interface $ZodCheckDef {\n check: string;\n error?: errors.$ZodErrorMap<never> | undefined;\n /** If true, no later checks will be executed if this check fails. Default `false`. */\n abort?: boolean | undefined;\n /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */\n when?: ((payload: schemas.ParsePayload) => boolean) | undefined;\n}\nexport interface $ZodCheckInternals<T> {\n def: $ZodCheckDef;\n /** The set of issues this check might throw. */\n issc?: errors.$ZodIssueBase;\n check(payload: schemas.ParsePayload<T>): util.MaybeAsync<void>;\n onattach: ((schema: schemas.$ZodType) => void)[];\n}\nexport interface $ZodCheck<in T = never> {\n _zod: $ZodCheckInternals<T>;\n}\nexport declare const $ZodCheck: core.$constructor<$ZodCheck<any>>;\nexport interface $ZodCheckLessThanDef extends $ZodCheckDef {\n check: \"less_than\";\n value: util.Numeric;\n inclusive: boolean;\n}\nexport interface $ZodCheckLessThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {\n def: $ZodCheckLessThanDef;\n issc: errors.$ZodIssueTooBig<T>;\n}\nexport interface $ZodCheckLessThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {\n _zod: $ZodCheckLessThanInternals<T>;\n}\nexport declare const $ZodCheckLessThan: core.$constructor<$ZodCheckLessThan>;\nexport interface $ZodCheckGreaterThanDef extends $ZodCheckDef {\n check: \"greater_than\";\n value: util.Numeric;\n inclusive: boolean;\n}\nexport interface $ZodCheckGreaterThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {\n def: $ZodCheckGreaterThanDef;\n issc: errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckGreaterThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {\n _zod: $ZodCheckGreaterThanInternals<T>;\n}\nexport declare const $ZodCheckGreaterThan: core.$constructor<$ZodCheckGreaterThan>;\nexport interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {\n check: \"multiple_of\";\n value: T;\n}\nexport interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {\n def: $ZodCheckMultipleOfDef<T>;\n issc: errors.$ZodIssueNotMultipleOf;\n}\nexport interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {\n _zod: $ZodCheckMultipleOfInternals<T>;\n}\nexport declare const $ZodCheckMultipleOf: core.$constructor<$ZodCheckMultipleOf<number | bigint>>;\nexport type $ZodNumberFormats = \"int32\" | \"uint32\" | \"float32\" | \"float64\" | \"safeint\";\nexport interface $ZodCheckNumberFormatDef extends $ZodCheckDef {\n check: \"number_format\";\n format: $ZodNumberFormats;\n}\nexport interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {\n def: $ZodCheckNumberFormatDef;\n issc: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<\"number\"> | errors.$ZodIssueTooSmall<\"number\">;\n}\nexport interface $ZodCheckNumberFormat extends $ZodCheck<number> {\n _zod: $ZodCheckNumberFormatInternals;\n}\nexport declare const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat>;\nexport type $ZodBigIntFormats = \"int64\" | \"uint64\";\nexport interface $ZodCheckBigIntFormatDef extends $ZodCheckDef {\n check: \"bigint_format\";\n format: $ZodBigIntFormats | undefined;\n}\nexport interface $ZodCheckBigIntFormatInternals extends $ZodCheckInternals<bigint> {\n def: $ZodCheckBigIntFormatDef;\n issc: errors.$ZodIssueTooBig<\"bigint\"> | errors.$ZodIssueTooSmall<\"bigint\">;\n}\nexport interface $ZodCheckBigIntFormat extends $ZodCheck<bigint> {\n _zod: $ZodCheckBigIntFormatInternals;\n}\nexport declare const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat>;\nexport interface $ZodCheckMaxSizeDef extends $ZodCheckDef {\n check: \"max_size\";\n maximum: number;\n}\nexport interface $ZodCheckMaxSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {\n def: $ZodCheckMaxSizeDef;\n issc: errors.$ZodIssueTooBig<T>;\n}\nexport interface $ZodCheckMaxSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {\n _zod: $ZodCheckMaxSizeInternals<T>;\n}\nexport declare const $ZodCheckMaxSize: core.$constructor<$ZodCheckMaxSize>;\nexport interface $ZodCheckMinSizeDef extends $ZodCheckDef {\n check: \"min_size\";\n minimum: number;\n}\nexport interface $ZodCheckMinSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {\n def: $ZodCheckMinSizeDef;\n issc: errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckMinSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {\n _zod: $ZodCheckMinSizeInternals<T>;\n}\nexport declare const $ZodCheckMinSize: core.$constructor<$ZodCheckMinSize>;\nexport interface $ZodCheckSizeEqualsDef extends $ZodCheckDef {\n check: \"size_equals\";\n size: number;\n}\nexport interface $ZodCheckSizeEqualsInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {\n def: $ZodCheckSizeEqualsDef;\n issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckSizeEquals<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {\n _zod: $ZodCheckSizeEqualsInternals<T>;\n}\nexport declare const $ZodCheckSizeEquals: core.$constructor<$ZodCheckSizeEquals>;\nexport interface $ZodCheckMaxLengthDef extends $ZodCheckDef {\n check: \"max_length\";\n maximum: number;\n}\nexport interface $ZodCheckMaxLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {\n def: $ZodCheckMaxLengthDef;\n issc: errors.$ZodIssueTooBig<T>;\n}\nexport interface $ZodCheckMaxLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {\n _zod: $ZodCheckMaxLengthInternals<T>;\n}\nexport declare const $ZodCheckMaxLength: core.$constructor<$ZodCheckMaxLength>;\nexport interface $ZodCheckMinLengthDef extends $ZodCheckDef {\n check: \"min_length\";\n minimum: number;\n}\nexport interface $ZodCheckMinLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {\n def: $ZodCheckMinLengthDef;\n issc: errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckMinLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {\n _zod: $ZodCheckMinLengthInternals<T>;\n}\nexport declare const $ZodCheckMinLength: core.$constructor<$ZodCheckMinLength>;\nexport interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {\n check: \"length_equals\";\n length: number;\n}\nexport interface $ZodCheckLengthEqualsInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {\n def: $ZodCheckLengthEqualsDef;\n issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckLengthEquals<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {\n _zod: $ZodCheckLengthEqualsInternals<T>;\n}\nexport declare const $ZodCheckLengthEquals: core.$constructor<$ZodCheckLengthEquals>;\nexport type $ZodStringFormats = \"email\" | \"url\" | \"emoji\" | \"uuid\" | \"guid\" | \"nanoid\" | \"cuid\" | \"cuid2\" | \"ulid\" | \"xid\" | \"ksuid\" | \"datetime\" | \"date\" | \"time\" | \"duration\" | \"ipv4\" | \"ipv6\" | \"cidrv4\" | \"cidrv6\" | \"base64\" | \"base64url\" | \"json_string\" | \"e164\" | \"lowercase\" | \"uppercase\" | \"regex\" | \"jwt\" | \"starts_with\" | \"ends_with\" | \"includes\";\nexport interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {\n check: \"string_format\";\n format: Format;\n pattern?: RegExp | undefined;\n}\nexport interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckStringFormatDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckStringFormat extends $ZodCheck<string> {\n _zod: $ZodCheckStringFormatInternals;\n}\nexport declare const $ZodCheckStringFormat: core.$constructor<$ZodCheckStringFormat>;\nexport interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {\n format: \"regex\";\n pattern: RegExp;\n}\nexport interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckRegexDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckRegex extends $ZodCheck<string> {\n _zod: $ZodCheckRegexInternals;\n}\nexport declare const $ZodCheckRegex: core.$constructor<$ZodCheckRegex>;\nexport interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<\"lowercase\"> {\n}\nexport interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckLowerCaseDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckLowerCase extends $ZodCheck<string> {\n _zod: $ZodCheckLowerCaseInternals;\n}\nexport declare const $ZodCheckLowerCase: core.$constructor<$ZodCheckLowerCase>;\nexport interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<\"uppercase\"> {\n}\nexport interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckUpperCaseDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckUpperCase extends $ZodCheck<string> {\n _zod: $ZodCheckUpperCaseInternals;\n}\nexport declare const $ZodCheckUpperCase: core.$constructor<$ZodCheckUpperCase>;\nexport interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<\"includes\"> {\n includes: string;\n position?: number | undefined;\n}\nexport interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckIncludesDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckIncludes extends $ZodCheck<string> {\n _zod: $ZodCheckIncludesInternals;\n}\nexport declare const $ZodCheckIncludes: core.$constructor<$ZodCheckIncludes>;\nexport interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<\"starts_with\"> {\n prefix: string;\n}\nexport interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckStartsWithDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckStartsWith extends $ZodCheck<string> {\n _zod: $ZodCheckStartsWithInternals;\n}\nexport declare const $ZodCheckStartsWith: core.$constructor<$ZodCheckStartsWith>;\nexport interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<\"ends_with\"> {\n suffix: string;\n}\nexport interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckEndsWithDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {\n _zod: $ZodCheckEndsWithInternals;\n}\nexport declare const $ZodCheckEndsWith: core.$constructor<$ZodCheckEndsWith>;\nexport interface $ZodCheckPropertyDef extends $ZodCheckDef {\n check: \"property\";\n property: string;\n schema: schemas.$ZodType;\n}\nexport interface $ZodCheckPropertyInternals<T extends object = object> extends $ZodCheckInternals<T> {\n def: $ZodCheckPropertyDef;\n issc: errors.$ZodIssue;\n}\nexport interface $ZodCheckProperty<T extends object = object> extends $ZodCheck<T> {\n _zod: $ZodCheckPropertyInternals<T>;\n}\nexport declare const $ZodCheckProperty: core.$constructor<$ZodCheckProperty>;\nexport interface $ZodCheckMimeTypeDef extends $ZodCheckDef {\n check: \"mime_type\";\n mime: util.MimeTypes[];\n}\nexport interface $ZodCheckMimeTypeInternals<T extends schemas.File = schemas.File> extends $ZodCheckInternals<T> {\n def: $ZodCheckMimeTypeDef;\n issc: errors.$ZodIssueInvalidValue;\n}\nexport interface $ZodCheckMimeType<T extends schemas.File = schemas.File> extends $ZodCheck<T> {\n _zod: $ZodCheckMimeTypeInternals<T>;\n}\nexport declare const $ZodCheckMimeType: core.$constructor<$ZodCheckMimeType>;\nexport interface $ZodCheckOverwriteDef<T = unknown> extends $ZodCheckDef {\n check: \"overwrite\";\n tx(value: T): T;\n}\nexport interface $ZodCheckOverwriteInternals<T = unknown> extends $ZodCheckInternals<T> {\n def: $ZodCheckOverwriteDef<T>;\n issc: never;\n}\nexport interface $ZodCheckOverwrite<T = unknown> extends $ZodCheck<T> {\n _zod: $ZodCheckOverwriteInternals<T>;\n}\nexport declare const $ZodCheckOverwrite: core.$constructor<$ZodCheckOverwrite>;\nexport type $ZodChecks = $ZodCheckLessThan | $ZodCheckGreaterThan | $ZodCheckMultipleOf | $ZodCheckNumberFormat | $ZodCheckBigIntFormat | $ZodCheckMaxSize | $ZodCheckMinSize | $ZodCheckSizeEquals | $ZodCheckMaxLength | $ZodCheckMinLength | $ZodCheckLengthEquals | $ZodCheckStringFormat | $ZodCheckProperty | $ZodCheckMimeType | $ZodCheckOverwrite;\nexport type $ZodStringFormatChecks = $ZodCheckRegex | $ZodCheckLowerCase | $ZodCheckUpperCase | $ZodCheckIncludes | $ZodCheckStartsWith | $ZodCheckEndsWith | schemas.$ZodStringFormatTypes;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;UAIiBI,YAAAA;;EAAAA,KAAAA,CA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BAAmBhF,aAAkBgF"}
1
+ {"version":3,"file":"checks.d.ts","names":["core","errors","schemas","util","$ZodCheckDef","$ZodErrorMap","ParsePayload","$ZodCheckInternals","T","$ZodIssueBase","MaybeAsync","$ZodType","$ZodCheck","$constructor","$ZodCheckLessThanDef","Numeric","$ZodCheckLessThanInternals","$ZodIssueTooBig","$ZodCheckLessThan","$ZodCheckGreaterThanDef","$ZodCheckGreaterThanInternals","$ZodIssueTooSmall","$ZodCheckGreaterThan","$ZodCheckMultipleOfDef","$ZodCheckMultipleOfInternals","$ZodIssueNotMultipleOf","$ZodCheckMultipleOf","$ZodNumberFormats","$ZodCheckNumberFormatDef","$ZodCheckNumberFormatInternals","$ZodIssueInvalidType","$ZodCheckNumberFormat","$ZodBigIntFormats","$ZodCheckBigIntFormatDef","$ZodCheckBigIntFormatInternals","$ZodCheckBigIntFormat","$ZodCheckMaxSizeDef","$ZodCheckMaxSizeInternals","HasSize","$ZodCheckMaxSize","$ZodCheckMinSizeDef","$ZodCheckMinSizeInternals","$ZodCheckMinSize","$ZodCheckSizeEqualsDef","$ZodCheckSizeEqualsInternals","$ZodCheckSizeEquals","$ZodCheckMaxLengthDef","$ZodCheckMaxLengthInternals","HasLength","$ZodCheckMaxLength","$ZodCheckMinLengthDef","$ZodCheckMinLengthInternals","$ZodCheckMinLength","$ZodCheckLengthEqualsDef","$ZodCheckLengthEqualsInternals","$ZodCheckLengthEquals","$ZodStringFormats","$ZodCheckStringFormatDef","Format","RegExp","$ZodCheckStringFormatInternals","$ZodIssueInvalidStringFormat","$ZodCheckStringFormat","$ZodCheckRegexDef","$ZodCheckRegexInternals","$ZodCheckRegex","$ZodCheckLowerCaseDef","$ZodCheckLowerCaseInternals","$ZodCheckLowerCase","$ZodCheckUpperCaseDef","$ZodCheckUpperCaseInternals","$ZodCheckUpperCase","$ZodCheckIncludesDef","$ZodCheckIncludesInternals","$ZodCheckIncludes","$ZodCheckStartsWithDef","$ZodCheckStartsWithInternals","$ZodCheckStartsWith","$ZodCheckEndsWithDef","$ZodCheckEndsWithInternals","$ZodCheckEndsWith","$ZodCheckPropertyDef","$ZodCheckPropertyInternals","$ZodIssue","$ZodCheckProperty","$ZodCheckMimeTypeDef","MimeTypes","$ZodCheckMimeTypeInternals","File","$ZodIssueInvalidValue","$ZodCheckMimeType","$ZodCheckOverwriteDef","$ZodCheckOverwriteInternals","$ZodCheckOverwrite","$ZodChecks","$ZodStringFormatChecks","$ZodStringFormatTypes"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/checks.d.cts"],"sourcesContent":["import * as core from \"./core.cjs\";\nimport type * as errors from \"./errors.cjs\";\nimport type * as schemas from \"./schemas.cjs\";\nimport * as util from \"./util.cjs\";\nexport interface $ZodCheckDef {\n check: string;\n error?: errors.$ZodErrorMap<never> | undefined;\n /** If true, no later checks will be executed if this check fails. Default `false`. */\n abort?: boolean | undefined;\n /** If provided, this check will only be executed if the function returns `true`. Defaults to `payload => z.util.isAborted(payload)`. */\n when?: ((payload: schemas.ParsePayload) => boolean) | undefined;\n}\nexport interface $ZodCheckInternals<T> {\n def: $ZodCheckDef;\n /** The set of issues this check might throw. */\n issc?: errors.$ZodIssueBase;\n check(payload: schemas.ParsePayload<T>): util.MaybeAsync<void>;\n onattach: ((schema: schemas.$ZodType) => void)[];\n}\nexport interface $ZodCheck<in T = never> {\n _zod: $ZodCheckInternals<T>;\n}\nexport declare const $ZodCheck: core.$constructor<$ZodCheck<any>>;\nexport interface $ZodCheckLessThanDef extends $ZodCheckDef {\n check: \"less_than\";\n value: util.Numeric;\n inclusive: boolean;\n}\nexport interface $ZodCheckLessThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {\n def: $ZodCheckLessThanDef;\n issc: errors.$ZodIssueTooBig<T>;\n}\nexport interface $ZodCheckLessThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {\n _zod: $ZodCheckLessThanInternals<T>;\n}\nexport declare const $ZodCheckLessThan: core.$constructor<$ZodCheckLessThan>;\nexport interface $ZodCheckGreaterThanDef extends $ZodCheckDef {\n check: \"greater_than\";\n value: util.Numeric;\n inclusive: boolean;\n}\nexport interface $ZodCheckGreaterThanInternals<T extends util.Numeric = util.Numeric> extends $ZodCheckInternals<T> {\n def: $ZodCheckGreaterThanDef;\n issc: errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckGreaterThan<T extends util.Numeric = util.Numeric> extends $ZodCheck<T> {\n _zod: $ZodCheckGreaterThanInternals<T>;\n}\nexport declare const $ZodCheckGreaterThan: core.$constructor<$ZodCheckGreaterThan>;\nexport interface $ZodCheckMultipleOfDef<T extends number | bigint = number | bigint> extends $ZodCheckDef {\n check: \"multiple_of\";\n value: T;\n}\nexport interface $ZodCheckMultipleOfInternals<T extends number | bigint = number | bigint> extends $ZodCheckInternals<T> {\n def: $ZodCheckMultipleOfDef<T>;\n issc: errors.$ZodIssueNotMultipleOf;\n}\nexport interface $ZodCheckMultipleOf<T extends number | bigint = number | bigint> extends $ZodCheck<T> {\n _zod: $ZodCheckMultipleOfInternals<T>;\n}\nexport declare const $ZodCheckMultipleOf: core.$constructor<$ZodCheckMultipleOf<number | bigint>>;\nexport type $ZodNumberFormats = \"int32\" | \"uint32\" | \"float32\" | \"float64\" | \"safeint\";\nexport interface $ZodCheckNumberFormatDef extends $ZodCheckDef {\n check: \"number_format\";\n format: $ZodNumberFormats;\n}\nexport interface $ZodCheckNumberFormatInternals extends $ZodCheckInternals<number> {\n def: $ZodCheckNumberFormatDef;\n issc: errors.$ZodIssueInvalidType | errors.$ZodIssueTooBig<\"number\"> | errors.$ZodIssueTooSmall<\"number\">;\n}\nexport interface $ZodCheckNumberFormat extends $ZodCheck<number> {\n _zod: $ZodCheckNumberFormatInternals;\n}\nexport declare const $ZodCheckNumberFormat: core.$constructor<$ZodCheckNumberFormat>;\nexport type $ZodBigIntFormats = \"int64\" | \"uint64\";\nexport interface $ZodCheckBigIntFormatDef extends $ZodCheckDef {\n check: \"bigint_format\";\n format: $ZodBigIntFormats | undefined;\n}\nexport interface $ZodCheckBigIntFormatInternals extends $ZodCheckInternals<bigint> {\n def: $ZodCheckBigIntFormatDef;\n issc: errors.$ZodIssueTooBig<\"bigint\"> | errors.$ZodIssueTooSmall<\"bigint\">;\n}\nexport interface $ZodCheckBigIntFormat extends $ZodCheck<bigint> {\n _zod: $ZodCheckBigIntFormatInternals;\n}\nexport declare const $ZodCheckBigIntFormat: core.$constructor<$ZodCheckBigIntFormat>;\nexport interface $ZodCheckMaxSizeDef extends $ZodCheckDef {\n check: \"max_size\";\n maximum: number;\n}\nexport interface $ZodCheckMaxSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {\n def: $ZodCheckMaxSizeDef;\n issc: errors.$ZodIssueTooBig<T>;\n}\nexport interface $ZodCheckMaxSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {\n _zod: $ZodCheckMaxSizeInternals<T>;\n}\nexport declare const $ZodCheckMaxSize: core.$constructor<$ZodCheckMaxSize>;\nexport interface $ZodCheckMinSizeDef extends $ZodCheckDef {\n check: \"min_size\";\n minimum: number;\n}\nexport interface $ZodCheckMinSizeInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {\n def: $ZodCheckMinSizeDef;\n issc: errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckMinSize<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {\n _zod: $ZodCheckMinSizeInternals<T>;\n}\nexport declare const $ZodCheckMinSize: core.$constructor<$ZodCheckMinSize>;\nexport interface $ZodCheckSizeEqualsDef extends $ZodCheckDef {\n check: \"size_equals\";\n size: number;\n}\nexport interface $ZodCheckSizeEqualsInternals<T extends util.HasSize = util.HasSize> extends $ZodCheckInternals<T> {\n def: $ZodCheckSizeEqualsDef;\n issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckSizeEquals<T extends util.HasSize = util.HasSize> extends $ZodCheck<T> {\n _zod: $ZodCheckSizeEqualsInternals<T>;\n}\nexport declare const $ZodCheckSizeEquals: core.$constructor<$ZodCheckSizeEquals>;\nexport interface $ZodCheckMaxLengthDef extends $ZodCheckDef {\n check: \"max_length\";\n maximum: number;\n}\nexport interface $ZodCheckMaxLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {\n def: $ZodCheckMaxLengthDef;\n issc: errors.$ZodIssueTooBig<T>;\n}\nexport interface $ZodCheckMaxLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {\n _zod: $ZodCheckMaxLengthInternals<T>;\n}\nexport declare const $ZodCheckMaxLength: core.$constructor<$ZodCheckMaxLength>;\nexport interface $ZodCheckMinLengthDef extends $ZodCheckDef {\n check: \"min_length\";\n minimum: number;\n}\nexport interface $ZodCheckMinLengthInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {\n def: $ZodCheckMinLengthDef;\n issc: errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckMinLength<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {\n _zod: $ZodCheckMinLengthInternals<T>;\n}\nexport declare const $ZodCheckMinLength: core.$constructor<$ZodCheckMinLength>;\nexport interface $ZodCheckLengthEqualsDef extends $ZodCheckDef {\n check: \"length_equals\";\n length: number;\n}\nexport interface $ZodCheckLengthEqualsInternals<T extends util.HasLength = util.HasLength> extends $ZodCheckInternals<T> {\n def: $ZodCheckLengthEqualsDef;\n issc: errors.$ZodIssueTooBig<T> | errors.$ZodIssueTooSmall<T>;\n}\nexport interface $ZodCheckLengthEquals<T extends util.HasLength = util.HasLength> extends $ZodCheck<T> {\n _zod: $ZodCheckLengthEqualsInternals<T>;\n}\nexport declare const $ZodCheckLengthEquals: core.$constructor<$ZodCheckLengthEquals>;\nexport type $ZodStringFormats = \"email\" | \"url\" | \"emoji\" | \"uuid\" | \"guid\" | \"nanoid\" | \"cuid\" | \"cuid2\" | \"ulid\" | \"xid\" | \"ksuid\" | \"datetime\" | \"date\" | \"time\" | \"duration\" | \"ipv4\" | \"ipv6\" | \"cidrv4\" | \"cidrv6\" | \"base64\" | \"base64url\" | \"json_string\" | \"e164\" | \"lowercase\" | \"uppercase\" | \"regex\" | \"jwt\" | \"starts_with\" | \"ends_with\" | \"includes\";\nexport interface $ZodCheckStringFormatDef<Format extends string = string> extends $ZodCheckDef {\n check: \"string_format\";\n format: Format;\n pattern?: RegExp | undefined;\n}\nexport interface $ZodCheckStringFormatInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckStringFormatDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckStringFormat extends $ZodCheck<string> {\n _zod: $ZodCheckStringFormatInternals;\n}\nexport declare const $ZodCheckStringFormat: core.$constructor<$ZodCheckStringFormat>;\nexport interface $ZodCheckRegexDef extends $ZodCheckStringFormatDef {\n format: \"regex\";\n pattern: RegExp;\n}\nexport interface $ZodCheckRegexInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckRegexDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckRegex extends $ZodCheck<string> {\n _zod: $ZodCheckRegexInternals;\n}\nexport declare const $ZodCheckRegex: core.$constructor<$ZodCheckRegex>;\nexport interface $ZodCheckLowerCaseDef extends $ZodCheckStringFormatDef<\"lowercase\"> {\n}\nexport interface $ZodCheckLowerCaseInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckLowerCaseDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckLowerCase extends $ZodCheck<string> {\n _zod: $ZodCheckLowerCaseInternals;\n}\nexport declare const $ZodCheckLowerCase: core.$constructor<$ZodCheckLowerCase>;\nexport interface $ZodCheckUpperCaseDef extends $ZodCheckStringFormatDef<\"uppercase\"> {\n}\nexport interface $ZodCheckUpperCaseInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckUpperCaseDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckUpperCase extends $ZodCheck<string> {\n _zod: $ZodCheckUpperCaseInternals;\n}\nexport declare const $ZodCheckUpperCase: core.$constructor<$ZodCheckUpperCase>;\nexport interface $ZodCheckIncludesDef extends $ZodCheckStringFormatDef<\"includes\"> {\n includes: string;\n position?: number | undefined;\n}\nexport interface $ZodCheckIncludesInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckIncludesDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckIncludes extends $ZodCheck<string> {\n _zod: $ZodCheckIncludesInternals;\n}\nexport declare const $ZodCheckIncludes: core.$constructor<$ZodCheckIncludes>;\nexport interface $ZodCheckStartsWithDef extends $ZodCheckStringFormatDef<\"starts_with\"> {\n prefix: string;\n}\nexport interface $ZodCheckStartsWithInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckStartsWithDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckStartsWith extends $ZodCheck<string> {\n _zod: $ZodCheckStartsWithInternals;\n}\nexport declare const $ZodCheckStartsWith: core.$constructor<$ZodCheckStartsWith>;\nexport interface $ZodCheckEndsWithDef extends $ZodCheckStringFormatDef<\"ends_with\"> {\n suffix: string;\n}\nexport interface $ZodCheckEndsWithInternals extends $ZodCheckInternals<string> {\n def: $ZodCheckEndsWithDef;\n issc: errors.$ZodIssueInvalidStringFormat;\n}\nexport interface $ZodCheckEndsWith extends $ZodCheckInternals<string> {\n _zod: $ZodCheckEndsWithInternals;\n}\nexport declare const $ZodCheckEndsWith: core.$constructor<$ZodCheckEndsWith>;\nexport interface $ZodCheckPropertyDef extends $ZodCheckDef {\n check: \"property\";\n property: string;\n schema: schemas.$ZodType;\n}\nexport interface $ZodCheckPropertyInternals<T extends object = object> extends $ZodCheckInternals<T> {\n def: $ZodCheckPropertyDef;\n issc: errors.$ZodIssue;\n}\nexport interface $ZodCheckProperty<T extends object = object> extends $ZodCheck<T> {\n _zod: $ZodCheckPropertyInternals<T>;\n}\nexport declare const $ZodCheckProperty: core.$constructor<$ZodCheckProperty>;\nexport interface $ZodCheckMimeTypeDef extends $ZodCheckDef {\n check: \"mime_type\";\n mime: util.MimeTypes[];\n}\nexport interface $ZodCheckMimeTypeInternals<T extends schemas.File = schemas.File> extends $ZodCheckInternals<T> {\n def: $ZodCheckMimeTypeDef;\n issc: errors.$ZodIssueInvalidValue;\n}\nexport interface $ZodCheckMimeType<T extends schemas.File = schemas.File> extends $ZodCheck<T> {\n _zod: $ZodCheckMimeTypeInternals<T>;\n}\nexport declare const $ZodCheckMimeType: core.$constructor<$ZodCheckMimeType>;\nexport interface $ZodCheckOverwriteDef<T = unknown> extends $ZodCheckDef {\n check: \"overwrite\";\n tx(value: T): T;\n}\nexport interface $ZodCheckOverwriteInternals<T = unknown> extends $ZodCheckInternals<T> {\n def: $ZodCheckOverwriteDef<T>;\n issc: never;\n}\nexport interface $ZodCheckOverwrite<T = unknown> extends $ZodCheck<T> {\n _zod: $ZodCheckOverwriteInternals<T>;\n}\nexport declare const $ZodCheckOverwrite: core.$constructor<$ZodCheckOverwrite>;\nexport type $ZodChecks = $ZodCheckLessThan | $ZodCheckGreaterThan | $ZodCheckMultipleOf | $ZodCheckNumberFormat | $ZodCheckBigIntFormat | $ZodCheckMaxSize | $ZodCheckMinSize | $ZodCheckSizeEquals | $ZodCheckMaxLength | $ZodCheckMinLength | $ZodCheckLengthEquals | $ZodCheckStringFormat | $ZodCheckProperty | $ZodCheckMimeType | $ZodCheckOverwrite;\nexport type $ZodStringFormatChecks = $ZodCheckRegex | $ZodCheckLowerCase | $ZodCheckUpperCase | $ZodCheckIncludes | $ZodCheckStartsWith | $ZodCheckEndsWith | schemas.$ZodStringFormatTypes;\n"],"x_google_ignoreList":[0],"mappings":";;;;;;UAIiBI,YAAAA;;EAAAA,KAAAA,CAAAA,EAELH,YAFiB,CAAA,KAEjBA,CAAAA,GAAAA,SAIUC;EAELK;EACRH,KAAAA,CAAAA,EAAAA,OAAAA,GAAAA,SAAAA;EAEEH;EAC6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num<{
20
- event: "event";
21
20
  message: "message";
21
+ event: "event";
22
22
  identification: "identification";
23
23
  }>;
24
24
  text: ZodNullable<ZodString>;
@@ -90,8 +90,8 @@ declare const createConversationResponseSchema: ZodObject<{
90
90
  private: "private";
91
91
  }>;
92
92
  type: ZodEnum<{
93
- event: "event";
94
93
  message: "message";
94
+ event: "event";
95
95
  identification: "identification";
96
96
  }>;
97
97
  text: ZodNullable<ZodString>;
@@ -172,8 +172,8 @@ declare const createConversationResponseSchema: ZodObject<{
172
172
  private: "private";
173
173
  }>;
174
174
  type: ZodEnum<{
175
- event: "event";
176
175
  message: "message";
176
+ event: "event";
177
177
  identification: "identification";
178
178
  }>;
179
179
  text: ZodNullable<ZodString>;
@@ -276,8 +276,8 @@ declare const listConversationsResponseSchema: ZodObject<{
276
276
  private: "private";
277
277
  }>;
278
278
  type: ZodEnum<{
279
- event: "event";
280
279
  message: "message";
280
+ event: "event";
281
281
  identification: "identification";
282
282
  }>;
283
283
  text: ZodNullable<ZodString>;
@@ -373,8 +373,8 @@ declare const getConversationResponseSchema: ZodObject<{
373
373
  private: "private";
374
374
  }>;
375
375
  type: ZodEnum<{
376
- event: "event";
377
376
  message: "message";
377
+ event: "event";
378
378
  identification: "identification";
379
379
  }>;
380
380
  text: ZodNullable<ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","names":[],"sources":["../../types/src/api/conversation.ts"],"sourcesContent":[],"mappings":";;;;;;;cAIa,iCAA+B;;;;;;IAA/B,cAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsBD,6BAAA,GAAgC,cACpC;cAGK,kCAAgC;;;;;;;;;;MA1BD,KAAA,EAAA,OAAA;MAAA,OAAA,EAAA,SAAA;MAsBhC,cAAA,EAAA,gBAA6B;IAI5B,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,CAAA;QAAA,OAAA,EAAA,SAAA;QAU7B,KAAA,EAAA,OAAsB;QAIrB,cAAA,EAAA,gBAMV;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAES,uBAAA,GAA0B,cAC9B;cAGK,mCAAiC;;;KAYlC,+BAAA,GAAkC,cACtC;cAGK,oCAAkC;;;;KAcnC,gCAAA,GAAmC,cACvC;cA0BK,qCAAmC;;;;;;KAoBpC,iCAAA,GAAoC,cACxC;cAGK,uCAAqC;;;;IA7FR,MAAA,aAAA,UAAA,CAAA;IAAA,SAAA,aAAA,UAAA,CAAA;IAQ9B,SAAA,aAAuB,UAC3B,CAAA;IAGK,UAAA,WAAA;;;;EAAiC,CAAA,QAAA,CAAA,CAAA;CAAA,QAAA,CAAA;AAYlC,KA4GA,+BAAA,GAAkC,MA3GtC,CAAA,OA4GA,qCA7G6C,CAAA"}
package/errors.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","names":["$ZodCheck","$ZodStringFormats","$constructor","$ZodType","StandardSchemaV1","util","$ZodIssueBase","PropertyKey","$ZodIssueInvalidType","Input","$ZodIssueTooBig","$ZodIssueTooSmall","$ZodIssueInvalidStringFormat","$ZodIssueNotMultipleOf","$ZodIssueUnrecognizedKeys","Record","$ZodIssueInvalidUnion","$ZodIssue","$ZodIssueInvalidKey","$ZodIssueInvalidElement","$ZodIssueInvalidValue","Primitive","$ZodIssueCustom","$ZodIssueStringCommonFormats","Exclude","$ZodIssueStringInvalidRegex","$ZodIssueStringInvalidJWT","$ZodIssueStringStartsWith","$ZodIssueStringEndsWith","$ZodIssueStringIncludes","$ZodStringFormatIssues","$ZodIssueCode","$ZodInternalIssue","T","RawIssue","MakePartial","Flatten","$ZodRawIssue","$ZodErrorMap","$ZodError","Error","$ZodRealError","$ZodFlattenedError","U","_FlattenedError","flattenError","_ZodFormattedError","K","$ZodFormattedError","formatError","$ZodErrorTree","Array","treeifyError","toDotPath","PathSegment","prettifyError","FailureResult"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/errors.d.cts"],"sourcesContent":["import type { $ZodCheck, $ZodStringFormats } from \"./checks.cjs\";\nimport { $constructor } from \"./core.cjs\";\nimport type { $ZodType } from \"./schemas.cjs\";\nimport type { StandardSchemaV1 } from \"./standard-schema.cjs\";\nimport * as util from \"./util.cjs\";\nexport interface $ZodIssueBase {\n readonly code?: string;\n readonly input?: unknown;\n readonly path: PropertyKey[];\n readonly message: string;\n}\nexport interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_type\";\n readonly expected: $ZodType[\"_zod\"][\"def\"][\"type\"];\n readonly input?: Input;\n}\nexport interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {\n readonly code: \"too_big\";\n readonly origin: \"number\" | \"int\" | \"bigint\" | \"date\" | \"string\" | \"array\" | \"set\" | \"file\" | (string & {});\n readonly maximum: number | bigint;\n readonly inclusive?: boolean;\n readonly exact?: boolean;\n readonly input?: Input;\n}\nexport interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {\n readonly code: \"too_small\";\n readonly origin: \"number\" | \"int\" | \"bigint\" | \"date\" | \"string\" | \"array\" | \"set\" | \"file\" | (string & {});\n readonly minimum: number | bigint;\n /** True if the allowable range includes the minimum */\n readonly inclusive?: boolean;\n /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */\n readonly exact?: boolean;\n readonly input?: Input;\n}\nexport interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {\n readonly code: \"invalid_format\";\n readonly format: $ZodStringFormats | (string & {});\n readonly pattern?: string;\n readonly input?: string;\n}\nexport interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {\n readonly code: \"not_multiple_of\";\n readonly divisor: number;\n readonly input?: Input;\n}\nexport interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {\n readonly code: \"unrecognized_keys\";\n readonly keys: string[];\n readonly input?: Record<string, unknown>;\n}\nexport interface $ZodIssueInvalidUnion extends $ZodIssueBase {\n readonly code: \"invalid_union\";\n readonly errors: $ZodIssue[][];\n readonly input?: unknown;\n readonly discriminator?: string | undefined;\n}\nexport interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_key\";\n readonly origin: \"map\" | \"record\";\n readonly issues: $ZodIssue[];\n readonly input?: Input;\n}\nexport interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_element\";\n readonly origin: \"map\" | \"set\";\n readonly key: unknown;\n readonly issues: $ZodIssue[];\n readonly input?: Input;\n}\nexport interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_value\";\n readonly values: util.Primitive[];\n readonly input?: Input;\n}\nexport interface $ZodIssueCustom extends $ZodIssueBase {\n readonly code: \"custom\";\n readonly params?: Record<string, any> | undefined;\n readonly input?: unknown;\n}\nexport interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat {\n format: Exclude<$ZodStringFormats, \"regex\" | \"jwt\" | \"starts_with\" | \"ends_with\" | \"includes\">;\n}\nexport interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat {\n format: \"regex\";\n pattern: string;\n}\nexport interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat {\n format: \"jwt\";\n algorithm?: string;\n}\nexport interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat {\n format: \"starts_with\";\n prefix: string;\n}\nexport interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat {\n format: \"ends_with\";\n suffix: string;\n}\nexport interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat {\n format: \"includes\";\n includes: string;\n}\nexport type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringIncludes;\nexport type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;\nexport type $ZodIssueCode = $ZodIssue[\"code\"];\nexport type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;\ntype RawIssue<T extends $ZodIssueBase> = T extends any ? util.Flatten<util.MakePartial<T, \"message\" | \"path\"> & {\n /** The input data */\n readonly input: unknown;\n /** The schema or check that originated this issue. */\n readonly inst?: $ZodType | $ZodCheck;\n /** If `true`, Zod will continue executing checks/refinements after this issue. */\n readonly continue?: boolean | undefined;\n} & Record<string, unknown>> : never;\nexport type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;\nexport interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {\n (issue: $ZodRawIssue<T>): {\n message: string;\n } | string | undefined | null;\n}\nexport interface $ZodError<T = unknown> extends Error {\n type: T;\n issues: $ZodIssue[];\n _zod: {\n output: T;\n def: $ZodIssue[];\n };\n stack?: string;\n name: string;\n}\nexport declare const $ZodError: $constructor<$ZodError>;\ninterface $ZodRealError<T = any> extends $ZodError<T> {\n}\nexport declare const $ZodRealError: $constructor<$ZodRealError>;\nexport type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;\ntype _FlattenedError<T, U = string> = {\n formErrors: U[];\n fieldErrors: {\n [P in keyof T]?: U[];\n };\n};\nexport declare function flattenError<T>(error: $ZodError<T>): _FlattenedError<T>;\nexport declare function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U>;\ntype _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? {\n [K in keyof T]?: $ZodFormattedError<T[K], U>;\n} : T extends any[] ? {\n [k: number]: $ZodFormattedError<T[number], U>;\n} : T extends object ? util.Flatten<{\n [K in keyof T]?: $ZodFormattedError<T[K], U>;\n}> : any;\nexport type $ZodFormattedError<T, U = string> = {\n _errors: U[];\n} & util.Flatten<_ZodFormattedError<T, U>>;\nexport declare function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T>;\nexport declare function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;\nexport type $ZodErrorTree<T, U = string> = T extends util.Primitive ? {\n errors: U[];\n} : T extends [any, ...any[]] ? {\n errors: U[];\n items?: {\n [K in keyof T]?: $ZodErrorTree<T[K], U>;\n };\n} : T extends any[] ? {\n errors: U[];\n items?: Array<$ZodErrorTree<T[number], U>>;\n} : T extends object ? {\n errors: U[];\n properties?: {\n [K in keyof T]?: $ZodErrorTree<T[K], U>;\n };\n} : {\n errors: U[];\n};\nexport declare function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T>;\nexport declare function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U>;\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport declare function toDotPath(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[]): string;\nexport declare function prettifyError(error: StandardSchemaV1.FailureResult): string;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;UAKiBM,aAAAA;EAAAA,SAAAA,IAAAA,CAAAA,EAAa,MAAA;EAMbE,S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b,GAAGU"}
1
+ {"version":3,"file":"errors.d.ts","names":["$ZodCheck","$ZodStringFormats","$constructor","$ZodType","StandardSchemaV1","util","$ZodIssueBase","PropertyKey","$ZodIssueInvalidType","Input","$ZodIssueTooBig","$ZodIssueTooSmall","$ZodIssueInvalidStringFormat","$ZodIssueNotMultipleOf","$ZodIssueUnrecognizedKeys","Record","$ZodIssueInvalidUnion","$ZodIssue","$ZodIssueInvalidKey","$ZodIssueInvalidElement","$ZodIssueInvalidValue","Primitive","$ZodIssueCustom","$ZodIssueStringCommonFormats","Exclude","$ZodIssueStringInvalidRegex","$ZodIssueStringInvalidJWT","$ZodIssueStringStartsWith","$ZodIssueStringEndsWith","$ZodIssueStringIncludes","$ZodStringFormatIssues","$ZodIssueCode","$ZodInternalIssue","T","RawIssue","MakePartial","Flatten","$ZodRawIssue","$ZodErrorMap","$ZodError","Error","$ZodRealError","$ZodFlattenedError","U","_FlattenedError","flattenError","_ZodFormattedError","K","$ZodFormattedError","formatError","$ZodErrorTree","Array","treeifyError","toDotPath","PathSegment","prettifyError","FailureResult"],"sources":["../../../node_modules/.bun/zod@4.1.12/node_modules/zod/v4/core/errors.d.cts"],"sourcesContent":["import type { $ZodCheck, $ZodStringFormats } from \"./checks.cjs\";\nimport { $constructor } from \"./core.cjs\";\nimport type { $ZodType } from \"./schemas.cjs\";\nimport type { StandardSchemaV1 } from \"./standard-schema.cjs\";\nimport * as util from \"./util.cjs\";\nexport interface $ZodIssueBase {\n readonly code?: string;\n readonly input?: unknown;\n readonly path: PropertyKey[];\n readonly message: string;\n}\nexport interface $ZodIssueInvalidType<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_type\";\n readonly expected: $ZodType[\"_zod\"][\"def\"][\"type\"];\n readonly input?: Input;\n}\nexport interface $ZodIssueTooBig<Input = unknown> extends $ZodIssueBase {\n readonly code: \"too_big\";\n readonly origin: \"number\" | \"int\" | \"bigint\" | \"date\" | \"string\" | \"array\" | \"set\" | \"file\" | (string & {});\n readonly maximum: number | bigint;\n readonly inclusive?: boolean;\n readonly exact?: boolean;\n readonly input?: Input;\n}\nexport interface $ZodIssueTooSmall<Input = unknown> extends $ZodIssueBase {\n readonly code: \"too_small\";\n readonly origin: \"number\" | \"int\" | \"bigint\" | \"date\" | \"string\" | \"array\" | \"set\" | \"file\" | (string & {});\n readonly minimum: number | bigint;\n /** True if the allowable range includes the minimum */\n readonly inclusive?: boolean;\n /** True if the allowed value is fixed (e.g.` z.length(5)`), not a range (`z.minLength(5)`) */\n readonly exact?: boolean;\n readonly input?: Input;\n}\nexport interface $ZodIssueInvalidStringFormat extends $ZodIssueBase {\n readonly code: \"invalid_format\";\n readonly format: $ZodStringFormats | (string & {});\n readonly pattern?: string;\n readonly input?: string;\n}\nexport interface $ZodIssueNotMultipleOf<Input extends number | bigint = number | bigint> extends $ZodIssueBase {\n readonly code: \"not_multiple_of\";\n readonly divisor: number;\n readonly input?: Input;\n}\nexport interface $ZodIssueUnrecognizedKeys extends $ZodIssueBase {\n readonly code: \"unrecognized_keys\";\n readonly keys: string[];\n readonly input?: Record<string, unknown>;\n}\nexport interface $ZodIssueInvalidUnion extends $ZodIssueBase {\n readonly code: \"invalid_union\";\n readonly errors: $ZodIssue[][];\n readonly input?: unknown;\n readonly discriminator?: string | undefined;\n}\nexport interface $ZodIssueInvalidKey<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_key\";\n readonly origin: \"map\" | \"record\";\n readonly issues: $ZodIssue[];\n readonly input?: Input;\n}\nexport interface $ZodIssueInvalidElement<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_element\";\n readonly origin: \"map\" | \"set\";\n readonly key: unknown;\n readonly issues: $ZodIssue[];\n readonly input?: Input;\n}\nexport interface $ZodIssueInvalidValue<Input = unknown> extends $ZodIssueBase {\n readonly code: \"invalid_value\";\n readonly values: util.Primitive[];\n readonly input?: Input;\n}\nexport interface $ZodIssueCustom extends $ZodIssueBase {\n readonly code: \"custom\";\n readonly params?: Record<string, any> | undefined;\n readonly input?: unknown;\n}\nexport interface $ZodIssueStringCommonFormats extends $ZodIssueInvalidStringFormat {\n format: Exclude<$ZodStringFormats, \"regex\" | \"jwt\" | \"starts_with\" | \"ends_with\" | \"includes\">;\n}\nexport interface $ZodIssueStringInvalidRegex extends $ZodIssueInvalidStringFormat {\n format: \"regex\";\n pattern: string;\n}\nexport interface $ZodIssueStringInvalidJWT extends $ZodIssueInvalidStringFormat {\n format: \"jwt\";\n algorithm?: string;\n}\nexport interface $ZodIssueStringStartsWith extends $ZodIssueInvalidStringFormat {\n format: \"starts_with\";\n prefix: string;\n}\nexport interface $ZodIssueStringEndsWith extends $ZodIssueInvalidStringFormat {\n format: \"ends_with\";\n suffix: string;\n}\nexport interface $ZodIssueStringIncludes extends $ZodIssueInvalidStringFormat {\n format: \"includes\";\n includes: string;\n}\nexport type $ZodStringFormatIssues = $ZodIssueStringCommonFormats | $ZodIssueStringInvalidRegex | $ZodIssueStringInvalidJWT | $ZodIssueStringStartsWith | $ZodIssueStringEndsWith | $ZodIssueStringIncludes;\nexport type $ZodIssue = $ZodIssueInvalidType | $ZodIssueTooBig | $ZodIssueTooSmall | $ZodIssueInvalidStringFormat | $ZodIssueNotMultipleOf | $ZodIssueUnrecognizedKeys | $ZodIssueInvalidUnion | $ZodIssueInvalidKey | $ZodIssueInvalidElement | $ZodIssueInvalidValue | $ZodIssueCustom;\nexport type $ZodIssueCode = $ZodIssue[\"code\"];\nexport type $ZodInternalIssue<T extends $ZodIssueBase = $ZodIssue> = T extends any ? RawIssue<T> : never;\ntype RawIssue<T extends $ZodIssueBase> = T extends any ? util.Flatten<util.MakePartial<T, \"message\" | \"path\"> & {\n /** The input data */\n readonly input: unknown;\n /** The schema or check that originated this issue. */\n readonly inst?: $ZodType | $ZodCheck;\n /** If `true`, Zod will continue executing checks/refinements after this issue. */\n readonly continue?: boolean | undefined;\n} & Record<string, unknown>> : never;\nexport type $ZodRawIssue<T extends $ZodIssueBase = $ZodIssue> = $ZodInternalIssue<T>;\nexport interface $ZodErrorMap<T extends $ZodIssueBase = $ZodIssue> {\n (issue: $ZodRawIssue<T>): {\n message: string;\n } | string | undefined | null;\n}\nexport interface $ZodError<T = unknown> extends Error {\n type: T;\n issues: $ZodIssue[];\n _zod: {\n output: T;\n def: $ZodIssue[];\n };\n stack?: string;\n name: string;\n}\nexport declare const $ZodError: $constructor<$ZodError>;\ninterface $ZodRealError<T = any> extends $ZodError<T> {\n}\nexport declare const $ZodRealError: $constructor<$ZodRealError>;\nexport type $ZodFlattenedError<T, U = string> = _FlattenedError<T, U>;\ntype _FlattenedError<T, U = string> = {\n formErrors: U[];\n fieldErrors: {\n [P in keyof T]?: U[];\n };\n};\nexport declare function flattenError<T>(error: $ZodError<T>): _FlattenedError<T>;\nexport declare function flattenError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): _FlattenedError<T, U>;\ntype _ZodFormattedError<T, U = string> = T extends [any, ...any[]] ? {\n [K in keyof T]?: $ZodFormattedError<T[K], U>;\n} : T extends any[] ? {\n [k: number]: $ZodFormattedError<T[number], U>;\n} : T extends object ? util.Flatten<{\n [K in keyof T]?: $ZodFormattedError<T[K], U>;\n}> : any;\nexport type $ZodFormattedError<T, U = string> = {\n _errors: U[];\n} & util.Flatten<_ZodFormattedError<T, U>>;\nexport declare function formatError<T>(error: $ZodError<T>): $ZodFormattedError<T>;\nexport declare function formatError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodFormattedError<T, U>;\nexport type $ZodErrorTree<T, U = string> = T extends util.Primitive ? {\n errors: U[];\n} : T extends [any, ...any[]] ? {\n errors: U[];\n items?: {\n [K in keyof T]?: $ZodErrorTree<T[K], U>;\n };\n} : T extends any[] ? {\n errors: U[];\n items?: Array<$ZodErrorTree<T[number], U>>;\n} : T extends object ? {\n errors: U[];\n properties?: {\n [K in keyof T]?: $ZodErrorTree<T[K], U>;\n };\n} : {\n errors: U[];\n};\nexport declare function treeifyError<T>(error: $ZodError<T>): $ZodErrorTree<T>;\nexport declare function treeifyError<T, U>(error: $ZodError<T>, mapper?: (issue: $ZodIssue) => U): $ZodErrorTree<T, U>;\n/** Format a ZodError as a human-readable string in the following form.\n *\n * From\n *\n * ```ts\n * ZodError {\n * issues: [\n * {\n * expected: 'string',\n * code: 'invalid_type',\n * path: [ 'username' ],\n * message: 'Invalid input: expected string'\n * },\n * {\n * expected: 'number',\n * code: 'invalid_type',\n * path: [ 'favoriteNumbers', 1 ],\n * message: 'Invalid input: expected number'\n * }\n * ];\n * }\n * ```\n *\n * to\n *\n * ```\n * username\n * ✖ Expected number, received string at \"username\n * favoriteNumbers[0]\n * ✖ Invalid input: expected number\n * ```\n */\nexport declare function toDotPath(_path: readonly (string | number | symbol | StandardSchemaV1.PathSegment)[]): string;\nexport declare function prettifyError(error: StandardSchemaV1.FailureResult): string;\nexport {};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;UAKiBM,aAAAA;EAAAA,SAAAA,IAAAA,CAAAA,EAAa,MAAA;EAMbE,SAAAA,KAAAA,CAAAA,EAAAA,OAAoB;EAEdL,SAAAA,IAAAA,EALJI,WAKIJ,EAAAA;EACFM,SAAAA,OAAAA,EAAAA,MAAAA;;AAHuD,UAA3DD,oBAA2D,CAAA,QAAA,OAAA,CAAA,SAAbF,aAAa,CAAA;EAK3DI,SAAAA,IAAAA,EAAAA,cAAeD;EAQfE,SAAAA,QAAAA,EAXMR,QAWW,CAAAM,MAAAA,CAAAA,CAAAA,KAQbA,CAAAA,CAAAA,MARuCH,CAAAA;EAU3CM,SAAAA,KAAAA,CAAAA,EApBIH,KAoBJG;AAMjB;AAKiBE,UA7BAJ,eA6ByB,CAAA,QAAA,OAGrBK,CAAAA,SAhCqCT,aA6BM,CAAA;EAK/CU,SAAAA,IAAAA,EAAAA,SAAqB;EAMrBE,SAAAA,MAAAA,EAAAA,QAAmB,GAAA,KAAAT,GAAAA,QAAA,GAAA,MAAA,GAAA,QAAA,GAAA,OAAA,GAAA,KAAA,G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AA,GArCmDX,iBAqCnDW,CArCqEV,CAqCrEU,CAAAA;AACuBV,UArCnBK,YAqCmBL,CAAAA,UArCI3B,aAqCJ2B,GArCoBhB,SAqCpBgB,CAAAA,CAAAA;EAAGU,CAAAA,KAAAA,EApC3BN,YAoC2BM,CApCdV,CAoCcU,CAAAA,CAAAA,EAAAA;IAAtBG,OAAAA,EAAAA,MAAAA;EAAbzC,CAAAA,GAAAA,MAAAA,GAAAA,SAAAA,GAAAA,IAAAA;;UAhCakC,+BAA+BC;QACtCP;UACEhB;;YAEIgB;SACHhB;;;;;cAKQsB,WAAWrC,aAAaqC;KAIjCG,oCAAoCE,gBAAgBX,GAAGU;KAC9DC;cACWD;6BAEIV,KAAKU;;KAKpBG,oCAAoCb,0CACzBA,KAAKe,mBAAmBf,EAAEc,IAAIJ,OAC1CV;eACae,mBAAmBf,WAAWU;IAC3CV,mBAAmB5B,sBACP4B,KAAKe,mBAAmBf,EAAEc,IAAIJ;KAElCK;WACCL;IACTtC,QAAayC,mBAAmBb,GAAGU"}
package/index.d.ts CHANGED
@@ -10,6 +10,7 @@ import { DefaultRoutes, NavigationState, RouteRegistry, SUPPORT_PAGES, SupportCo
10
10
  import { ConversationTypingState, TypingActorType, TypingEntry, TypingState, TypingStore, TypingStoreDependencies, applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, createTypingStore, getConversationTyping, setTypingState } from "./store/typing-store.js";
11
11
  import { generateConversationId, generateMessageId } from "./utils.js";
12
12
  import { VisitorData, collectVisitorData } from "./visitor-data.js";
13
+ import { generateVisitorName, getVisitorNameWithFallback } from "./visitor-name.js";
13
14
  import { clearAllVisitorIds, clearVisitorId, getVisitorId, setVisitorId } from "./visitor-tracker.js";
14
15
  import { CossistantConfig, CossistantError } from "@cossistant/types";
15
- export { type ConversationPagination, type ConversationSeenState, type ConversationTimelineItemsState, type ConversationTypingState, type ConversationsState, type ConversationsStore, CossistantAPIError, CossistantClient, type CossistantConfig, type CossistantError, CossistantRestClient, type DefaultRoutes, type NavigationState, type RouteRegistry, type SUPPORT_PAGES, type SeenActorType, type SeenEntry, type SeenState, type SeenStore, type SupportConfig, type SupportNavigation, type SupportPage, type SupportStore, type SupportStoreActions, type SupportStoreOptions, type SupportStoreState, type SupportStoreStorage, type TimelineItemsState, type TimelineItemsStore, type TypingActorType, type TypingEntry, type TypingState, type TypingStore, type TypingStoreDependencies, type VisitorData, type WebsiteError, type WebsiteState, type WebsiteStatus, type WebsiteStore, applyConversationSeenEvent, applyConversationTypingEvent, clearAllVisitorIds, clearTypingFromTimelineItem, clearTypingState, clearVisitorId, collectVisitorData, createConversationsStore, createSeenStore, createSupportStore, createTimelineItemsStore, createTypingStore, createWebsiteStore, CossistantClient as default, generateConversationId, generateMessageId, getConversationById, getConversationPagination, getConversationTimelineItems, getConversationTyping, getConversations, getVisitorId, getWebsiteState, hydrateConversationSeen, normalizeLocale, setTypingState, setVisitorId, upsertConversationSeen };
16
+ export { type ConversationPagination, type ConversationSeenState, type ConversationTimelineItemsState, type ConversationTypingState, type ConversationsState, type ConversationsStore, CossistantAPIError, CossistantClient, type CossistantConfig, type CossistantError, CossistantRestClient, type DefaultRoutes, type NavigationState, type RouteRegistry, type SUPPORT_PAGES, type SeenActorType, type SeenEntry, type SeenState, type SeenStore, type SupportConfig, type SupportNavigation, type SupportPage, type SupportStore, type SupportStoreActions, type SupportStoreOptions, type SupportStoreState, type SupportStoreStorage, type TimelineItemsState, type TimelineItemsStore, type TypingActorType, type TypingEntry, type TypingState, type TypingStore, type TypingStoreDependencies, type VisitorData, type WebsiteError, type WebsiteState, type WebsiteStatus, type WebsiteStore, applyConversationSeenEvent, applyConversationTypingEvent, clearAllVisitorIds, clearTypingFromTimelineItem, clearTypingState, clearVisitorId, collectVisitorData, createConversationsStore, createSeenStore, createSupportStore, createTimelineItemsStore, createTypingStore, createWebsiteStore, CossistantClient as default, generateConversationId, generateMessageId, generateVisitorName, getConversationById, getConversationPagination, getConversationTimelineItems, getConversationTyping, getConversations, getVisitorId, getVisitorNameWithFallback, getWebsiteState, hydrateConversationSeen, normalizeLocale, setTypingState, setVisitorId, upsertConversationSeen };
package/index.js CHANGED
@@ -11,5 +11,6 @@ import { normalizeLocale } from "./locale-utils.js";
11
11
  import { applyConversationSeenEvent, createSeenStore, hydrateConversationSeen, upsertConversationSeen } from "./store/seen-store.js";
12
12
  import { createSupportStore } from "./store/support-store.js";
13
13
  import { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, createTypingStore, getConversationTyping, setTypingState } from "./store/typing-store.js";
14
+ import { generateVisitorName, getVisitorNameWithFallback } from "./visitor-name.js";
14
15
 
15
- export { CossistantAPIError, CossistantClient, CossistantRestClient, applyConversationSeenEvent, applyConversationTypingEvent, clearAllVisitorIds, clearTypingFromTimelineItem, clearTypingState, clearVisitorId, collectVisitorData, createConversationsStore, createSeenStore, createSupportStore, createTimelineItemsStore, createTypingStore, createWebsiteStore, CossistantClient as default, generateConversationId, generateMessageId, getConversationById, getConversationPagination, getConversationTimelineItems, getConversationTyping, getConversations, getVisitorId, getWebsiteState, hydrateConversationSeen, normalizeLocale, setTypingState, setVisitorId, upsertConversationSeen };
16
+ export { CossistantAPIError, CossistantClient, CossistantRestClient, applyConversationSeenEvent, applyConversationTypingEvent, clearAllVisitorIds, clearTypingFromTimelineItem, clearTypingState, clearVisitorId, collectVisitorData, createConversationsStore, createSeenStore, createSupportStore, createTimelineItemsStore, createTypingStore, createWebsiteStore, CossistantClient as default, generateConversationId, generateMessageId, generateVisitorName, getConversationById, getConversationPagination, getConversationTimelineItems, getConversationTyping, getConversations, getVisitorId, getVisitorNameWithFallback, getWebsiteState, hydrateConversationSeen, normalizeLocale, setTypingState, setVisitorId, upsertConversationSeen };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cossistant/core",
3
3
  "type": "module",
4
- "version": "0.0.24",
4
+ "version": "0.0.25",
5
5
  "private": false,
6
6
  "author": "Cossistant Team",
7
7
  "description": "Core library for connecting to Cossistant API and managing data fetching",
@@ -83,8 +83,8 @@ declare const realtimeSchema: {
83
83
  private: "private";
84
84
  }>;
85
85
  type: ZodEnum<{
86
- event: "event";
87
86
  message: "message";
87
+ event: "event";
88
88
  identification: "identification";
89
89
  }>;
90
90
  text: ZodNullable<ZodString>;
@@ -125,8 +125,8 @@ declare const realtimeSchema: {
125
125
  private: "private";
126
126
  }>;
127
127
  type: ZodEnum<{
128
- event: "event";
129
128
  message: "message";
129
+ event: "event";
130
130
  identification: "identification";
131
131
  }>;
132
132
  text: ZodNullable<ZodString>;
@@ -238,8 +238,8 @@ declare const realtimeSchema: {
238
238
  private: "private";
239
239
  }>;
240
240
  type: ZodEnum<{
241
- event: "event";
242
241
  message: "message";
242
+ event: "event";
243
243
  identification: "identification";
244
244
  }>;
245
245
  text: ZodNullable<ZodString>;
@@ -307,8 +307,8 @@ declare const realtimeSchema: {
307
307
  private: "private";
308
308
  }>;
309
309
  type: ZodEnum<{
310
- event: "event";
311
310
  message: "message";
311
+ event: "event";
312
312
  identification: "identification";
313
313
  }>;
314
314
  text: ZodNullable<ZodString>;
package/schemas3.d.ts CHANGED
@@ -26,8 +26,8 @@ declare const conversationSchema: ZodObject<{
26
26
  private: "private";
27
27
  }>;
28
28
  type: ZodEnum<{
29
- event: "event";
30
29
  message: "message";
30
+ event: "event";
31
31
  identification: "identification";
32
32
  }>;
33
33
  text: ZodNullable<ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-store.d.ts","names":[],"sources":["../../src/store/create-store.ts"],"sourcesContent":[],"mappings":";KAAY,gCAAgC;AAAhC,KAEA,gBAAA,GAFa,GAAA,GAAA,IAAmB;AAEhC,KAEA,YAFgB,CAAA,MAAA,CAAA,GAAA,CAAA,KAAA,EAEe,MAFf,EAAA,GAE0B,MAF1B;AAEhB,KAEA,KAFA,CAAA,MAAY,CAAA,GAAA;EAEZ,QAAK,EAAA,EACJ,MADI;EACJ,QAAA,CAAA,OAAA,EACM,YADN,CACmB,MADnB,CAAA,CAAA,EAAA,IAAA;EACmB,SAAA,CAAA,QAAA,EACX,aADW,CACG,MADH,CAAA,CAAA,EACa,gBADb;EAAb,KAAA,CAAA,EAAA,EAAA,GAAA,GAAA,IAAA,CAAA,EAAA,IAAA;CACgB;AAAd,iBAIL,WAJK,CAAA,MAAA,CAAA,CAAA,YAAA,EAI6B,MAJ7B,CAAA,EAIsC,KAJtC,CAI4C,MAJ5C,CAAA"}
1
+ {"version":3,"file":"create-store.d.ts","names":[],"sources":["../../src/store/create-store.ts"],"sourcesContent":[],"mappings":";KAAY,gCAAgC;AAAhC,KAEA,gBAAA,GAFa,GAAA,GAAmB,IAAA;AAEhC,KAEA,YAFgB,CAAA,MAAA,CAAA,GAAA,CAAA,KAAA,EAEe,MAFf,EAAA,GAE0B,MAF1B;AAEhB,KAEA,KAFA,CAAA,MAAY,CAAA,GAAA;EAEZ,QAAK,EAAA,EACJ,MADI;EACJ,QAAA,CAAA,OAAA,EACM,YADN,CACmB,MADnB,CAAA,CAAA,EAAA,IAAA;EACmB,SAAA,CAAA,QAAA,EACX,aADW,CACG,MADH,CAAA,CAAA,EACa,gBADb;EAAb,KAAA,CAAA,EAAA,EAAA,GAAA,GAAA,IAAA,CAAA,EAAA,IAAA;CACgB;AAAd,iBAIL,WAJK,CAAA,MAAA,CAAA,CAAA,YAAA,EAI6B,MAJ7B,CAAA,EAIsC,KAJtC,CAI4C,MAJ5C,CAAA"}
@@ -15,8 +15,8 @@ declare const timelineItemSchema: ZodObject<{
15
15
  private: "private";
16
16
  }>;
17
17
  type: ZodEnum<{
18
- event: "event";
19
18
  message: "message";
19
+ event: "event";
20
20
  identification: "identification";
21
21
  }>;
22
22
  text: ZodNullable<ZodString>;
@@ -92,8 +92,8 @@ declare const getConversationTimelineItemsResponseSchema: ZodObject<{
92
92
  private: "private";
93
93
  }>;
94
94
  type: ZodEnum<{
95
- event: "event";
96
95
  message: "message";
96
+ event: "event";
97
97
  identification: "identification";
98
98
  }>;
99
99
  text: ZodNullable<ZodString>;
@@ -161,8 +161,8 @@ declare const sendTimelineItemRequestSchema: ZodObject<{
161
161
  item: ZodObject<{
162
162
  id: ZodOptional<ZodString>;
163
163
  type: ZodDefault<ZodEnum<{
164
- event: "event";
165
164
  message: "message";
165
+ event: "event";
166
166
  }>>;
167
167
  text: ZodString;
168
168
  parts: ZodOptional<ZodArray<ZodUnion<readonly [ZodObject<{
@@ -235,8 +235,8 @@ declare const sendTimelineItemResponseSchema: ZodObject<{
235
235
  private: "private";
236
236
  }>;
237
237
  type: ZodEnum<{
238
- event: "event";
239
238
  message: "message";
239
+ event: "event";
240
240
  identification: "identification";
241
241
  }>;
242
242
  text: ZodNullable<ZodString>;
@@ -0,0 +1,36 @@
1
+ //#region src/visitor-name.d.ts
2
+ /**
3
+ * Visitor Name Generator
4
+ *
5
+ * Generates consistent, deterministic names for anonymous visitors
6
+ * based on their visitor ID. The same ID will always produce the same name.
7
+ *
8
+ * This module is shared between frontend and backend to ensure consistency.
9
+ */
10
+ /**
11
+ * Generate a deterministic visitor name from a seed (typically visitor ID)
12
+ * The same seed will always produce the same name.
13
+ *
14
+ * @param seed - A string to use as seed (typically visitor ID)
15
+ * @returns A name like "Happy Panda" or "Cosmic Eagle"
16
+ */
17
+ declare function generateVisitorName(seed: string): string;
18
+ /**
19
+ * Get a display name for a visitor, with fallbacks:
20
+ * 1. Contact name (if available)
21
+ * 2. Email username (if available)
22
+ * 3. Generated name from visitor ID
23
+ *
24
+ * @param visitor - Visitor object with optional contact info and required ID
25
+ * @returns A display name for the visitor
26
+ */
27
+ declare function getVisitorNameWithFallback(visitor: {
28
+ contact?: {
29
+ name?: string | null;
30
+ email?: string | null;
31
+ } | null;
32
+ id: string;
33
+ }): string;
34
+ //#endregion
35
+ export { generateVisitorName, getVisitorNameWithFallback };
36
+ //# sourceMappingURL=visitor-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visitor-name.d.ts","names":[],"sources":["../src/visitor-name.ts"],"sourcesContent":[],"mappings":";;AAgQA;AAsBA;;;;;;;;;;;;;iBAtBgB,mBAAA;;;;;;;;;;iBAsBA,0BAAA"}
@@ -0,0 +1,271 @@
1
+ //#region src/visitor-name.ts
2
+ /**
3
+ * Visitor Name Generator
4
+ *
5
+ * Generates consistent, deterministic names for anonymous visitors
6
+ * based on their visitor ID. The same ID will always produce the same name.
7
+ *
8
+ * This module is shared between frontend and backend to ensure consistency.
9
+ */
10
+ const ADJECTIVES = [
11
+ "happy",
12
+ "sunny",
13
+ "cosmic",
14
+ "stellar",
15
+ "swift",
16
+ "mighty",
17
+ "clever",
18
+ "brave",
19
+ "gentle",
20
+ "noble",
21
+ "quick",
22
+ "bright",
23
+ "silver",
24
+ "golden",
25
+ "crystal",
26
+ "mystic",
27
+ "ancient",
28
+ "modern",
29
+ "electric",
30
+ "magnetic",
31
+ "dynamic",
32
+ "static",
33
+ "flying",
34
+ "dancing",
35
+ "singing",
36
+ "laughing",
37
+ "smiling",
38
+ "glowing",
39
+ "shining",
40
+ "sparkling",
41
+ "dazzling",
42
+ "radiant",
43
+ "peaceful",
44
+ "serene",
45
+ "tranquil",
46
+ "vibrant",
47
+ "energetic",
48
+ "lively",
49
+ "spirited",
50
+ "bold",
51
+ "fearless",
52
+ "curious",
53
+ "wise",
54
+ "witty",
55
+ "charming",
56
+ "elegant",
57
+ "graceful",
58
+ "agile",
59
+ "nimble",
60
+ "speedy",
61
+ "zippy",
62
+ "bouncy",
63
+ "jolly",
64
+ "merry",
65
+ "cheerful",
66
+ "playful",
67
+ "friendly",
68
+ "loyal",
69
+ "honest",
70
+ "kind",
71
+ "warm",
72
+ "cool",
73
+ "chill",
74
+ "awesome",
75
+ "amazing",
76
+ "wonderful",
77
+ "fantastic",
78
+ "magnificent",
79
+ "marvelous",
80
+ "splendid",
81
+ "brilliant",
82
+ "genius",
83
+ "super",
84
+ "mega",
85
+ "ultra",
86
+ "hyper",
87
+ "turbo",
88
+ "quantum",
89
+ "nano",
90
+ "micro",
91
+ "macro",
92
+ "epic",
93
+ "legendary",
94
+ "mythic",
95
+ "heroic",
96
+ "royal",
97
+ "imperial",
98
+ "majestic"
99
+ ];
100
+ const NOUNS = [
101
+ "panda",
102
+ "dolphin",
103
+ "eagle",
104
+ "falcon",
105
+ "hawk",
106
+ "owl",
107
+ "raven",
108
+ "phoenix",
109
+ "dragon",
110
+ "unicorn",
111
+ "griffin",
112
+ "pegasus",
113
+ "lion",
114
+ "tiger",
115
+ "leopard",
116
+ "cheetah",
117
+ "panther",
118
+ "wolf",
119
+ "fox",
120
+ "bear",
121
+ "koala",
122
+ "kangaroo",
123
+ "rabbit",
124
+ "squirrel",
125
+ "hedgehog",
126
+ "otter",
127
+ "seal",
128
+ "whale",
129
+ "shark",
130
+ "octopus",
131
+ "jellyfish",
132
+ "starfish",
133
+ "butterfly",
134
+ "dragonfly",
135
+ "firefly",
136
+ "bee",
137
+ "hummingbird",
138
+ "peacock",
139
+ "flamingo",
140
+ "penguin",
141
+ "mountain",
142
+ "valley",
143
+ "river",
144
+ "ocean",
145
+ "forest",
146
+ "desert",
147
+ "glacier",
148
+ "volcano",
149
+ "canyon",
150
+ "meadow",
151
+ "prairie",
152
+ "savanna",
153
+ "tundra",
154
+ "rainforest",
155
+ "waterfall",
156
+ "geyser",
157
+ "aurora",
158
+ "comet",
159
+ "meteor",
160
+ "planet",
161
+ "galaxy",
162
+ "nebula",
163
+ "constellation",
164
+ "star",
165
+ "moon",
166
+ "sun",
167
+ "eclipse",
168
+ "horizon",
169
+ "sunrise",
170
+ "sunset",
171
+ "rainbow",
172
+ "thunder",
173
+ "lightning",
174
+ "storm",
175
+ "breeze",
176
+ "wind",
177
+ "tornado",
178
+ "hurricane",
179
+ "blizzard",
180
+ "avalanche",
181
+ "rocket",
182
+ "satellite",
183
+ "spaceship",
184
+ "explorer",
185
+ "pioneer",
186
+ "voyager",
187
+ "wanderer",
188
+ "nomad",
189
+ "knight",
190
+ "samurai",
191
+ "ninja",
192
+ "wizard",
193
+ "sage",
194
+ "oracle",
195
+ "prophet",
196
+ "champion",
197
+ "guardian",
198
+ "sentinel",
199
+ "watcher",
200
+ "keeper",
201
+ "protector",
202
+ "defender",
203
+ "warrior",
204
+ "hero",
205
+ "artist",
206
+ "painter",
207
+ "sculptor",
208
+ "musician",
209
+ "composer",
210
+ "poet",
211
+ "writer",
212
+ "dreamer",
213
+ "thinker",
214
+ "scholar",
215
+ "scientist",
216
+ "inventor",
217
+ "creator",
218
+ "builder",
219
+ "architect",
220
+ "engineer"
221
+ ];
222
+ /**
223
+ * Simple hash function to convert string to number
224
+ * Used for deterministic visitor name generation
225
+ */
226
+ function hashString(str) {
227
+ let hash = 0;
228
+ for (let i = 0; i < str.length; i++) {
229
+ const char = str.charCodeAt(i);
230
+ hash = (hash << 5) - hash + char;
231
+ hash &= hash;
232
+ }
233
+ return Math.abs(hash);
234
+ }
235
+ /**
236
+ * Capitalize the first letter of a string
237
+ */
238
+ function capitalize(str) {
239
+ return str.charAt(0).toUpperCase() + str.slice(1);
240
+ }
241
+ /**
242
+ * Generate a deterministic visitor name from a seed (typically visitor ID)
243
+ * The same seed will always produce the same name.
244
+ *
245
+ * @param seed - A string to use as seed (typically visitor ID)
246
+ * @returns A name like "Happy Panda" or "Cosmic Eagle"
247
+ */
248
+ function generateVisitorName(seed) {
249
+ const hash = hashString(seed);
250
+ const adjectiveIndex = hash % ADJECTIVES.length;
251
+ const nounIndex = (hash >> 8) % NOUNS.length;
252
+ const adjective = ADJECTIVES[adjectiveIndex] ?? "anonymous";
253
+ const noun = NOUNS[nounIndex] ?? "visitor";
254
+ return `${capitalize(adjective)} ${capitalize(noun)}`;
255
+ }
256
+ /**
257
+ * Get a display name for a visitor, with fallbacks:
258
+ * 1. Contact name (if available)
259
+ * 2. Email username (if available)
260
+ * 3. Generated name from visitor ID
261
+ *
262
+ * @param visitor - Visitor object with optional contact info and required ID
263
+ * @returns A display name for the visitor
264
+ */
265
+ function getVisitorNameWithFallback(visitor) {
266
+ return visitor?.contact?.name || visitor?.contact?.email?.split("@")[0] || generateVisitorName(visitor.id);
267
+ }
268
+
269
+ //#endregion
270
+ export { generateVisitorName, getVisitorNameWithFallback };
271
+ //# sourceMappingURL=visitor-name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visitor-name.js","names":[],"sources":["../src/visitor-name.ts"],"sourcesContent":["/**\n * Visitor Name Generator\n *\n * Generates consistent, deterministic names for anonymous visitors\n * based on their visitor ID. The same ID will always produce the same name.\n *\n * This module is shared between frontend and backend to ensure consistency.\n */\n\n// Adjectives - descriptors for the visitor name\nconst ADJECTIVES = [\n\t\"happy\",\n\t\"sunny\",\n\t\"cosmic\",\n\t\"stellar\",\n\t\"swift\",\n\t\"mighty\",\n\t\"clever\",\n\t\"brave\",\n\t\"gentle\",\n\t\"noble\",\n\t\"quick\",\n\t\"bright\",\n\t\"silver\",\n\t\"golden\",\n\t\"crystal\",\n\t\"mystic\",\n\t\"ancient\",\n\t\"modern\",\n\t\"electric\",\n\t\"magnetic\",\n\t\"dynamic\",\n\t\"static\",\n\t\"flying\",\n\t\"dancing\",\n\t\"singing\",\n\t\"laughing\",\n\t\"smiling\",\n\t\"glowing\",\n\t\"shining\",\n\t\"sparkling\",\n\t\"dazzling\",\n\t\"radiant\",\n\t\"peaceful\",\n\t\"serene\",\n\t\"tranquil\",\n\t\"vibrant\",\n\t\"energetic\",\n\t\"lively\",\n\t\"spirited\",\n\t\"bold\",\n\t\"fearless\",\n\t\"curious\",\n\t\"wise\",\n\t\"witty\",\n\t\"charming\",\n\t\"elegant\",\n\t\"graceful\",\n\t\"agile\",\n\t\"nimble\",\n\t\"speedy\",\n\t\"zippy\",\n\t\"bouncy\",\n\t\"jolly\",\n\t\"merry\",\n\t\"cheerful\",\n\t\"playful\",\n\t\"friendly\",\n\t\"loyal\",\n\t\"honest\",\n\t\"kind\",\n\t\"warm\",\n\t\"cool\",\n\t\"chill\",\n\t\"awesome\",\n\t\"amazing\",\n\t\"wonderful\",\n\t\"fantastic\",\n\t\"magnificent\",\n\t\"marvelous\",\n\t\"splendid\",\n\t\"brilliant\",\n\t\"genius\",\n\t\"super\",\n\t\"mega\",\n\t\"ultra\",\n\t\"hyper\",\n\t\"turbo\",\n\t\"quantum\",\n\t\"nano\",\n\t\"micro\",\n\t\"macro\",\n\t\"epic\",\n\t\"legendary\",\n\t\"mythic\",\n\t\"heroic\",\n\t\"royal\",\n\t\"imperial\",\n\t\"majestic\",\n] as const;\n\n// Nouns - animals, objects, nature elements\nconst NOUNS = [\n\t// Animals\n\t\"panda\",\n\t\"dolphin\",\n\t\"eagle\",\n\t\"falcon\",\n\t\"hawk\",\n\t\"owl\",\n\t\"raven\",\n\t\"phoenix\",\n\t\"dragon\",\n\t\"unicorn\",\n\t\"griffin\",\n\t\"pegasus\",\n\t\"lion\",\n\t\"tiger\",\n\t\"leopard\",\n\t\"cheetah\",\n\t\"panther\",\n\t\"wolf\",\n\t\"fox\",\n\t\"bear\",\n\t\"koala\",\n\t\"kangaroo\",\n\t\"rabbit\",\n\t\"squirrel\",\n\t\"hedgehog\",\n\t\"otter\",\n\t\"seal\",\n\t\"whale\",\n\t\"shark\",\n\t\"octopus\",\n\t\"jellyfish\",\n\t\"starfish\",\n\t\"butterfly\",\n\t\"dragonfly\",\n\t\"firefly\",\n\t\"bee\",\n\t\"hummingbird\",\n\t\"peacock\",\n\t\"flamingo\",\n\t\"penguin\",\n\t// Nature elements\n\t\"mountain\",\n\t\"valley\",\n\t\"river\",\n\t\"ocean\",\n\t\"forest\",\n\t\"desert\",\n\t\"glacier\",\n\t\"volcano\",\n\t\"canyon\",\n\t\"meadow\",\n\t\"prairie\",\n\t\"savanna\",\n\t\"tundra\",\n\t\"rainforest\",\n\t\"waterfall\",\n\t\"geyser\",\n\t\"aurora\",\n\t\"comet\",\n\t\"meteor\",\n\t\"planet\",\n\t\"galaxy\",\n\t\"nebula\",\n\t\"constellation\",\n\t\"star\",\n\t\"moon\",\n\t\"sun\",\n\t\"eclipse\",\n\t\"horizon\",\n\t\"sunrise\",\n\t\"sunset\",\n\t\"rainbow\",\n\t\"thunder\",\n\t\"lightning\",\n\t\"storm\",\n\t\"breeze\",\n\t\"wind\",\n\t\"tornado\",\n\t\"hurricane\",\n\t\"blizzard\",\n\t\"avalanche\",\n\t// Cool objects and concepts\n\t\"rocket\",\n\t\"satellite\",\n\t\"spaceship\",\n\t\"explorer\",\n\t\"pioneer\",\n\t\"voyager\",\n\t\"wanderer\",\n\t\"nomad\",\n\t\"knight\",\n\t\"samurai\",\n\t\"ninja\",\n\t\"wizard\",\n\t\"sage\",\n\t\"oracle\",\n\t\"prophet\",\n\t\"champion\",\n\t\"guardian\",\n\t\"sentinel\",\n\t\"watcher\",\n\t\"keeper\",\n\t\"protector\",\n\t\"defender\",\n\t\"warrior\",\n\t\"hero\",\n\t\"artist\",\n\t\"painter\",\n\t\"sculptor\",\n\t\"musician\",\n\t\"composer\",\n\t\"poet\",\n\t\"writer\",\n\t\"dreamer\",\n\t\"thinker\",\n\t\"scholar\",\n\t\"scientist\",\n\t\"inventor\",\n\t\"creator\",\n\t\"builder\",\n\t\"architect\",\n\t\"engineer\",\n] as const;\n\n/**\n * Simple hash function to convert string to number\n * Used for deterministic visitor name generation\n */\nfunction hashString(str: string): number {\n\tlet hash = 0;\n\tfor (let i = 0; i < str.length; i++) {\n\t\tconst char = str.charCodeAt(i);\n\t\thash = (hash << 5) - hash + char;\n\t\thash &= hash; // Convert to 32-bit integer\n\t}\n\treturn Math.abs(hash);\n}\n\n/**\n * Capitalize the first letter of a string\n */\nfunction capitalize(str: string): string {\n\treturn str.charAt(0).toUpperCase() + str.slice(1);\n}\n\n/**\n * Generate a deterministic visitor name from a seed (typically visitor ID)\n * The same seed will always produce the same name.\n *\n * @param seed - A string to use as seed (typically visitor ID)\n * @returns A name like \"Happy Panda\" or \"Cosmic Eagle\"\n */\nexport function generateVisitorName(seed: string): string {\n\tconst hash = hashString(seed);\n\n\t// Use different parts of the hash for each word selection\n\tconst adjectiveIndex = hash % ADJECTIVES.length;\n\tconst nounIndex = (hash >> 8) % NOUNS.length;\n\n\tconst adjective = ADJECTIVES[adjectiveIndex] ?? \"anonymous\";\n\tconst noun = NOUNS[nounIndex] ?? \"visitor\";\n\n\treturn `${capitalize(adjective)} ${capitalize(noun)}`;\n}\n\n/**\n * Get a display name for a visitor, with fallbacks:\n * 1. Contact name (if available)\n * 2. Email username (if available)\n * 3. Generated name from visitor ID\n *\n * @param visitor - Visitor object with optional contact info and required ID\n * @returns A display name for the visitor\n */\nexport function getVisitorNameWithFallback(visitor: {\n\tcontact?: {\n\t\tname?: string | null;\n\t\temail?: string | null;\n\t} | null;\n\tid: string;\n}): string {\n\treturn (\n\t\tvisitor?.contact?.name ||\n\t\tvisitor?.contact?.email?.split(\"@\")[0] ||\n\t\tgenerateVisitorName(visitor.id)\n\t);\n}\n"],"mappings":";;;;;;;;;AAUA,MAAM,aAAa;CAClB;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AAGD,MAAM,QAAQ;CAEb;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CAEA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;;;;;AAMD,SAAS,WAAW,KAAqB;CACxC,IAAI,OAAO;AACX,MAAK,IAAI,IAAI,GAAG,IAAI,IAAI,QAAQ,KAAK;EACpC,MAAM,OAAO,IAAI,WAAW,EAAE;AAC9B,UAAQ,QAAQ,KAAK,OAAO;AAC5B,UAAQ;;AAET,QAAO,KAAK,IAAI,KAAK;;;;;AAMtB,SAAS,WAAW,KAAqB;AACxC,QAAO,IAAI,OAAO,EAAE,CAAC,aAAa,GAAG,IAAI,MAAM,EAAE;;;;;;;;;AAUlD,SAAgB,oBAAoB,MAAsB;CACzD,MAAM,OAAO,WAAW,KAAK;CAG7B,MAAM,iBAAiB,OAAO,WAAW;CACzC,MAAM,aAAa,QAAQ,KAAK,MAAM;CAEtC,MAAM,YAAY,WAAW,mBAAmB;CAChD,MAAM,OAAO,MAAM,cAAc;AAEjC,QAAO,GAAG,WAAW,UAAU,CAAC,GAAG,WAAW,KAAK;;;;;;;;;;;AAYpD,SAAgB,2BAA2B,SAMhC;AACV,QACC,SAAS,SAAS,QAClB,SAAS,SAAS,OAAO,MAAM,IAAI,CAAC,MACpC,oBAAoB,QAAQ,GAAG"}