declare type Primitive = string | number | symbol | bigint | boolean | null | undefined; declare namespace util { type AssertEqual = (() => V extends T ? 1 : 2) extends () => V extends U ? 1 : 2 ? true : false; export const assertEqual: (val: AssertEqual) => AssertEqual; export function assertIs(_arg: T): void; export function assertNever(_x: never): never; export type Omit = Pick>; export type OmitKeys = Pick>; export type MakePartial = Omit & Partial>; export const arrayToEnum: (items: U) => { [k in U[number]]: k; }; export const getValidEnumValues: (obj: any) => any[]; export const objectValues: (obj: any) => any[]; export const objectKeys: ObjectConstructor["keys"]; export const find: (arr: T[], checker: (arg: T) => any) => T | undefined; export type identity = T; export type flatten = identity<{ [k in keyof T]: T[k]; }>; export type noUndefined = T extends undefined ? never : T; export const isInteger: NumberConstructor["isInteger"]; export function joinValues(array: T, separator?: string): string; export const jsonStringifyReplacer: (_: string, value: any) => any; export {}; } declare const ZodParsedType: { function: "function"; number: "number"; string: "string"; nan: "nan"; integer: "integer"; float: "float"; boolean: "boolean"; date: "date"; bigint: "bigint"; symbol: "symbol"; undefined: "undefined"; null: "null"; array: "array"; object: "object"; unknown: "unknown"; promise: "promise"; void: "void"; never: "never"; map: "map"; set: "set"; }; declare type ZodParsedType = keyof typeof ZodParsedType; declare type allKeys = T extends any ? keyof T : never; declare type typeToFlattenedError = { formErrors: U[]; fieldErrors: { [P in allKeys]?: U[]; }; }; declare const ZodIssueCode: { invalid_type: "invalid_type"; invalid_literal: "invalid_literal"; custom: "custom"; invalid_union: "invalid_union"; invalid_union_discriminator: "invalid_union_discriminator"; invalid_enum_value: "invalid_enum_value"; unrecognized_keys: "unrecognized_keys"; invalid_arguments: "invalid_arguments"; invalid_return_type: "invalid_return_type"; invalid_date: "invalid_date"; invalid_string: "invalid_string"; too_small: "too_small"; too_big: "too_big"; invalid_intersection_types: "invalid_intersection_types"; not_multiple_of: "not_multiple_of"; not_finite: "not_finite"; }; declare type ZodIssueCode = keyof typeof ZodIssueCode; declare type ZodIssueBase = { path: (string | number)[]; message?: string; }; interface ZodInvalidTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_type; expected: ZodParsedType; received: ZodParsedType; } interface ZodInvalidLiteralIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_literal; expected: unknown; } interface ZodUnrecognizedKeysIssue extends ZodIssueBase { code: typeof ZodIssueCode.unrecognized_keys; keys: string[]; } interface ZodInvalidUnionIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_union; unionErrors: ZodError[]; } interface ZodInvalidUnionDiscriminatorIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_union_discriminator; options: Primitive[]; } interface ZodInvalidEnumValueIssue extends ZodIssueBase { received: string | number; code: typeof ZodIssueCode.invalid_enum_value; options: (string | number)[]; } interface ZodInvalidArgumentsIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_arguments; argumentsError: ZodError; } interface ZodInvalidReturnTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_return_type; returnTypeError: ZodError; } interface ZodInvalidDateIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_date; } declare type StringValidation = "email" | "url" | "uuid" | "regex" | "cuid" | "datetime" | { startsWith: string; } | { endsWith: string; }; interface ZodInvalidStringIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_string; validation: StringValidation; } interface ZodTooSmallIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_small; minimum: number; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date"; } interface ZodTooBigIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_big; maximum: number; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date"; } interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_intersection_types; } interface ZodNotMultipleOfIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_multiple_of; multipleOf: number; } interface ZodNotFiniteIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_finite; } interface ZodCustomIssue extends ZodIssueBase { code: typeof ZodIssueCode.custom; params?: { [k: string]: any; }; } declare type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue; declare type ZodIssue = ZodIssueOptionalMessage & { fatal?: boolean; message: string; }; declare type ZodFormattedError = { _errors: U[]; } & (NonNullable extends [any, ...any[]] ? { [K in keyof NonNullable]?: ZodFormattedError[K]>; } : NonNullable extends any[] ? { [k: number]: ZodFormattedError[number]>; } : NonNullable extends object ? { [K in keyof NonNullable]?: ZodFormattedError[K]>; } : unknown); declare class ZodError extends Error { issues: ZodIssue[]; get errors(): ZodIssue[]; constructor(issues: ZodIssue[]); format(): ZodFormattedError; format(mapper: (issue: ZodIssue) => U): ZodFormattedError; static create: (issues: ZodIssue[]) => ZodError; toString(): string; get message(): string; get isEmpty(): boolean; addIssue: (sub: ZodIssue) => void; addIssues: (subs?: ZodIssue[]) => void; flatten(): typeToFlattenedError; flatten(mapper?: (issue: ZodIssue) => U): typeToFlattenedError; get formErrors(): typeToFlattenedError; } declare type stripPath = T extends any ? util.OmitKeys : never; declare type IssueData = stripPath & { path?: (string | number)[]; fatal?: boolean; }; declare type ErrorMapCtx = { defaultError: string; data: any; }; declare type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => { message: string; }; declare type ParseParams = { path: (string | number)[]; errorMap: ZodErrorMap; async: boolean; }; declare type ParsePathComponent = string | number; declare type ParsePath = ParsePathComponent[]; interface ParseContext { readonly common: { readonly issues: ZodIssue[]; readonly contextualErrorMap?: ZodErrorMap; readonly async: boolean; }; readonly path: ParsePath; readonly schemaErrorMap?: ZodErrorMap; readonly parent: ParseContext | null; readonly data: any; readonly parsedType: ZodParsedType; } declare type ParseInput = { data: any; path: (string | number)[]; parent: ParseContext; }; declare class ParseStatus { value: "aborted" | "dirty" | "valid"; dirty(): void; abort(): void; static mergeArray(status: ParseStatus, results: SyncParseReturnType[]): SyncParseReturnType; static mergeObjectAsync(status: ParseStatus, pairs: { key: ParseReturnType; value: ParseReturnType; }[]): Promise>; static mergeObjectSync(status: ParseStatus, pairs: { key: SyncParseReturnType; value: SyncParseReturnType; alwaysSet?: boolean; }[]): SyncParseReturnType; } declare type INVALID = { status: "aborted"; }; declare const INVALID: INVALID; declare type DIRTY = { status: "dirty"; value: T; }; declare const DIRTY: (value: T) => DIRTY; declare type OK = { status: "valid"; value: T; }; declare const OK: (value: T) => OK; declare type SyncParseReturnType = OK | DIRTY | INVALID; declare type AsyncParseReturnType = Promise>; declare type ParseReturnType = SyncParseReturnType | AsyncParseReturnType; declare namespace enumUtil { type UnionToIntersectionFn = (T extends unknown ? (k: () => T) => void : never) extends (k: infer Intersection) => void ? Intersection : never; type GetUnionLast = UnionToIntersectionFn extends () => infer Last ? Last : never; type UnionToTuple = [T] extends [never] ? Tuple : UnionToTuple>, [GetUnionLast, ...Tuple]>; type CastToStringTuple = T extends [string, ...string[]] ? T : never; export type UnionToTupleString = CastToStringTuple>; export {}; } declare namespace errorUtil { type ErrMessage = string | { message?: string; }; const errToObj: (message?: ErrMessage | undefined) => { message?: string | undefined; }; const toString: (message?: ErrMessage | undefined) => string | undefined; } declare namespace partialUtil { type DeepPartial = T extends ZodObject ? ZodObject<{ [k in keyof Shape]: ZodOptional>; }, Params, Catchall> : T extends ZodArray ? ZodArray, Card> : T extends ZodOptional ? ZodOptional> : T extends ZodNullable ? ZodNullable> : T extends ZodTuple ? { [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial : never; } extends infer PI ? PI extends ZodTupleItems ? ZodTuple : never : never : T; } declare type RefinementCtx = { addIssue: (arg: IssueData) => void; path: (string | number)[]; }; declare type ZodRawShape = { [k: string]: ZodTypeAny; }; declare type ZodTypeAny = ZodType; declare type TypeOf> = T["_output"]; declare type input> = T["_input"]; declare type output> = T["_output"]; declare type CustomErrorParams = Partial>; interface ZodTypeDef { errorMap?: ZodErrorMap; description?: string; } declare type RawCreateParams = { errorMap?: ZodErrorMap; invalid_type_error?: string; required_error?: string; description?: string; } | undefined; declare type SafeParseSuccess = { success: true; data: Output; }; declare type SafeParseError = { success: false; error: ZodError; }; declare type SafeParseReturnType = SafeParseSuccess | SafeParseError; declare abstract class ZodType { readonly _type: Output; readonly _output: Output; readonly _input: Input; readonly _def: Def; get description(): string | undefined; abstract _parse(input: ParseInput): ParseReturnType; _getType(input: ParseInput): string; _getOrReturnCtx(input: ParseInput, ctx?: ParseContext | undefined): ParseContext; _processInputParams(input: ParseInput): { status: ParseStatus; ctx: ParseContext; }; _parseSync(input: ParseInput): SyncParseReturnType; _parseAsync(input: ParseInput): AsyncParseReturnType; parse(data: unknown, params?: Partial): Output; safeParse(data: unknown, params?: Partial): SafeParseReturnType; parseAsync(data: unknown, params?: Partial): Promise; safeParseAsync(data: unknown, params?: Partial): Promise>; /** Alias of safeParseAsync */ spa: (data: unknown, params?: Partial | undefined) => Promise>; refine(check: (arg: Output) => arg is RefinedOutput, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects; refine(check: (arg: Output) => unknown | Promise, message?: string | CustomErrorParams | ((arg: Output) => CustomErrorParams)): ZodEffects; refinement(check: (arg: Output) => arg is RefinedOutput, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects; refinement(check: (arg: Output) => boolean, refinementData: IssueData | ((arg: Output, ctx: RefinementCtx) => IssueData)): ZodEffects; _refinement(refinement: RefinementEffect["refinement"]): ZodEffects; superRefine(refinement: (arg: Output, ctx: RefinementCtx) => arg is RefinedOutput): ZodEffects; superRefine(refinement: (arg: Output, ctx: RefinementCtx) => void): ZodEffects; constructor(def: Def); optional(): ZodOptional; nullable(): ZodNullable; nullish(): ZodNullable>; array(): ZodArray; promise(): ZodPromise; or(option: T): ZodUnion<[this, T]>; and(incoming: T): ZodIntersection; transform(transform: (arg: Output, ctx: RefinementCtx) => NewOut | Promise): ZodEffects; default(def: util.noUndefined): ZodDefault; default(def: () => util.noUndefined): ZodDefault; brand(brand?: B): ZodBranded; catch(def: Input): ZodCatch; catch(def: () => Input): ZodCatch; describe(description: string): this; pipe(target: T): ZodPipeline; isOptional(): boolean; isNullable(): boolean; } declare type ZodStringCheck = { kind: "min"; value: number; message?: string; } | { kind: "max"; value: number; message?: string; } | { kind: "length"; value: number; message?: string; } | { kind: "email"; message?: string; } | { kind: "url"; message?: string; } | { kind: "uuid"; message?: string; } | { kind: "cuid"; message?: string; } | { kind: "startsWith"; value: string; message?: string; } | { kind: "endsWith"; value: string; message?: string; } | { kind: "regex"; regex: RegExp; message?: string; } | { kind: "trim"; message?: string; } | { kind: "datetime"; offset: boolean; precision: number | null; message?: string; }; interface ZodStringDef extends ZodTypeDef { checks: ZodStringCheck[]; typeName: ZodFirstPartyTypeKind.ZodString; coerce: boolean; } declare class ZodString extends ZodType { _parse(input: ParseInput): ParseReturnType; protected _regex: (regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage | undefined) => ZodEffects; _addCheck(check: ZodStringCheck): ZodString; email(message?: errorUtil.ErrMessage): ZodString; url(message?: errorUtil.ErrMessage): ZodString; uuid(message?: errorUtil.ErrMessage): ZodString; cuid(message?: errorUtil.ErrMessage): ZodString; datetime(options?: string | { message?: string | undefined; precision?: number | null; offset?: boolean; }): ZodString; regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString; startsWith(value: string, message?: errorUtil.ErrMessage): ZodString; endsWith(value: string, message?: errorUtil.ErrMessage): ZodString; min(minLength: number, message?: errorUtil.ErrMessage): ZodString; max(maxLength: number, message?: errorUtil.ErrMessage): ZodString; length(len: number, message?: errorUtil.ErrMessage): ZodString; /** * @deprecated Use z.string().min(1) instead. * @see {@link ZodString.min} */ nonempty: (message?: errorUtil.ErrMessage | undefined) => ZodString; trim: () => ZodString; get isDatetime(): boolean; get isEmail(): boolean; get isURL(): boolean; get isUUID(): boolean; get isCUID(): boolean; get minLength(): number | null; get maxLength(): number | null; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: true | undefined; }) | undefined) => ZodString; } declare type ZodNumberCheck = { kind: "min"; value: number; inclusive: boolean; message?: string; } | { kind: "max"; value: number; inclusive: boolean; message?: string; } | { kind: "int"; message?: string; } | { kind: "multipleOf"; value: number; message?: string; } | { kind: "finite"; message?: string; }; interface ZodNumberDef extends ZodTypeDef { checks: ZodNumberCheck[]; typeName: ZodFirstPartyTypeKind.ZodNumber; coerce: boolean; } declare class ZodNumber extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodNumber; gte(value: number, message?: errorUtil.ErrMessage): ZodNumber; min: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber; gt(value: number, message?: errorUtil.ErrMessage): ZodNumber; lte(value: number, message?: errorUtil.ErrMessage): ZodNumber; max: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber; lt(value: number, message?: errorUtil.ErrMessage): ZodNumber; protected setLimit(kind: "min" | "max", value: number, inclusive: boolean, message?: string): ZodNumber; _addCheck(check: ZodNumberCheck): ZodNumber; int(message?: errorUtil.ErrMessage): ZodNumber; positive(message?: errorUtil.ErrMessage): ZodNumber; negative(message?: errorUtil.ErrMessage): ZodNumber; nonpositive(message?: errorUtil.ErrMessage): ZodNumber; nonnegative(message?: errorUtil.ErrMessage): ZodNumber; multipleOf(value: number, message?: errorUtil.ErrMessage): ZodNumber; finite(message?: errorUtil.ErrMessage): ZodNumber; step: (value: number, message?: errorUtil.ErrMessage | undefined) => ZodNumber; get minValue(): number | null; get maxValue(): number | null; get isInt(): boolean; } interface ZodBooleanDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodBoolean; coerce: boolean; } declare class ZodBoolean extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: ({ errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { coerce?: boolean | undefined; }) | undefined) => ZodBoolean; } interface ZodNullDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodNull; } declare class ZodNull extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams) => ZodNull; } interface ZodArrayDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodArray; exactLength: { value: number; message?: string; } | null; minLength: { value: number; message?: string; } | null; maxLength: { value: number; message?: string; } | null; } declare type ArrayCardinality = "many" | "atleastone"; declare type arrayOutputType = Cardinality extends "atleastone" ? [T["_output"], ...T["_output"][]] : T["_output"][]; declare class ZodArray extends ZodType, ZodArrayDef, Cardinality extends "atleastone" ? [T["_input"], ...T["_input"][]] : T["_input"][]> { _parse(input: ParseInput): ParseReturnType; get element(): T; min(minLength: number, message?: errorUtil.ErrMessage): this; max(maxLength: number, message?: errorUtil.ErrMessage): this; length(len: number, message?: errorUtil.ErrMessage): this; nonempty(message?: errorUtil.ErrMessage): ZodArray; static create: (schema: T_1, params?: RawCreateParams) => ZodArray; } declare namespace objectUtil { export type MergeShapes = { [k in Exclude]: U[k]; } & V; type optionalKeys = { [k in keyof T]: undefined extends T[k] ? k : never; }[keyof T]; type requiredKeys = { [k in keyof T]: undefined extends T[k] ? never : k; }[keyof T]; export type addQuestionMarks = Partial>> & Pick>; export type identity = T; export type flatten = identity<{ [k in keyof T]: T[k]; }>; export type noNeverKeys = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T]; export type noNever = identity<{ [k in noNeverKeys]: k extends keyof T ? T[k] : never; }>; export const mergeShapes: (first: U, second: T) => T & U; export {}; } declare type extendShape = Omit & B; declare type UnknownKeysParam = "passthrough" | "strict" | "strip"; interface ZodObjectDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodObject; shape: () => T; catchall: Catchall; unknownKeys: UnknownKeys; } declare type baseObjectOutputType = objectUtil.flatten>; declare type objectOutputType = ZodTypeAny extends Catchall ? baseObjectOutputType : objectUtil.flatten & { [k: string]: Catchall["_output"]; }>; declare type baseObjectInputType = objectUtil.flatten>; declare type objectInputType = ZodTypeAny extends Catchall ? baseObjectInputType : objectUtil.flatten & { [k: string]: Catchall["_input"]; }>; declare type deoptional = T extends ZodOptional ? deoptional : T extends ZodNullable ? ZodNullable> : T; declare class ZodObject, Input = objectInputType> extends ZodType, Input> { private _cached; _getCached(): { shape: T; keys: string[]; }; _parse(input: ParseInput): ParseReturnType; get shape(): T; strict(message?: errorUtil.ErrMessage): ZodObject; strip(): ZodObject; passthrough(): ZodObject; /** * @deprecated In most cases, this is no longer needed - unknown properties are now silently stripped. * If you want to pass through unknown properties, use `.passthrough()` instead. */ nonstrict: () => ZodObject; augment: (augmentation: Augmentation) => ZodObject, UnknownKeys, Catchall, objectOutputType, Catchall>, objectInputType, Catchall>>; extend: (augmentation: Augmentation) => ZodObject, UnknownKeys, Catchall, objectOutputType, Catchall>, objectInputType, Catchall>>; setKey(key: Key, schema: Schema): ZodObject; /** * Prior to zod@1.0.12 there was a bug in the * inferred type of merged objects. Please * upgrade if you are experiencing issues. */ merge(merging: Incoming): ZodObject>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>; catchall(index: Index): ZodObject; pick(mask: Mask): ZodObject>, UnknownKeys, Catchall>; omit(mask: Mask): ZodObject, UnknownKeys, Catchall>; deepPartial(): partialUtil.DeepPartial; partial(): ZodObject<{ [k in keyof T]: ZodOptional; }, UnknownKeys, Catchall>; partial(mask: Mask): ZodObject : T[k]; }>, UnknownKeys, Catchall>; required(): ZodObject<{ [k in keyof T]: deoptional; }, UnknownKeys, Catchall>; required(mask: Mask): ZodObject : T[k]; }>, UnknownKeys, Catchall>; keyof(): ZodEnum>; static create: (shape: T_1, params?: RawCreateParams) => ZodObject]: objectUtil.addQuestionMarks<{ [k in keyof T_1]: T_1[k]["_output"]; }>[k_1]; }, { [k_3 in keyof objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>[k_3]; }>; static strictCreate: (shape: T_1, params?: RawCreateParams) => ZodObject]: objectUtil.addQuestionMarks<{ [k in keyof T_1]: T_1[k]["_output"]; }>[k_1]; }, { [k_3 in keyof objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>[k_3]; }>; static lazycreate: (shape: () => T_1, params?: RawCreateParams) => ZodObject]: objectUtil.addQuestionMarks<{ [k in keyof T_1]: T_1[k]["_output"]; }>[k_1]; }, { [k_3 in keyof objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>]: objectUtil.addQuestionMarks<{ [k_2 in keyof T_1]: T_1[k_2]["_input"]; }>[k_3]; }>; } declare type AnyZodObject = ZodObject; declare type ZodUnionOptions = Readonly<[ZodTypeAny, ...ZodTypeAny[]]>; interface ZodUnionDef> extends ZodTypeDef { options: T; typeName: ZodFirstPartyTypeKind.ZodUnion; } declare class ZodUnion extends ZodType, T[number]["_input"]> { _parse(input: ParseInput): ParseReturnType; get options(): T; static create: (types: T_1, params?: RawCreateParams) => ZodUnion; } declare type ZodDiscriminatedUnionOption = ZodObject<{ [key in Discriminator]: ZodTypeAny; } & ZodRawShape, any, any>; interface ZodDiscriminatedUnionDef[] = ZodDiscriminatedUnionOption[]> extends ZodTypeDef { discriminator: Discriminator; options: Options; optionsMap: Map>; typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion; } declare class ZodDiscriminatedUnion[]> extends ZodType, ZodDiscriminatedUnionDef, input> { _parse(input: ParseInput): ParseReturnType; get discriminator(): Discriminator; get options(): Options; get optionsMap(): Map>; /** * The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor. * However, it only allows a union of objects, all of which need to share a discriminator property. This property must * have a different value for each object in the union. * @param discriminator the name of the discriminator property * @param types an array of object schemas * @param params */ static create, ...ZodDiscriminatedUnionOption[] ]>(discriminator: Discriminator, options: Types, params?: RawCreateParams): ZodDiscriminatedUnion; } interface ZodIntersectionDef extends ZodTypeDef { left: T; right: U; typeName: ZodFirstPartyTypeKind.ZodIntersection; } declare class ZodIntersection extends ZodType, T["_input"] & U["_input"]> { _parse(input: ParseInput): ParseReturnType; static create: (left: T_1, right: U_1, params?: RawCreateParams) => ZodIntersection; } declare type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]]; declare type AssertArray = T extends any[] ? T : never; declare type OutputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodType ? T[k]["_output"] : never; }>; declare type OutputTypeOfTupleWithRest = Rest extends ZodTypeAny ? [...OutputTypeOfTuple, ...Rest["_output"][]] : OutputTypeOfTuple; declare type InputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodType ? T[k]["_input"] : never; }>; declare type InputTypeOfTupleWithRest = Rest extends ZodTypeAny ? [...InputTypeOfTuple, ...Rest["_input"][]] : InputTypeOfTuple; interface ZodTupleDef extends ZodTypeDef { items: T; rest: Rest; typeName: ZodFirstPartyTypeKind.ZodTuple; } declare class ZodTuple extends ZodType, ZodTupleDef, InputTypeOfTupleWithRest> { _parse(input: ParseInput): ParseReturnType; get items(): T; rest(rest: Rest): ZodTuple; static create: (schemas: T_1, params?: RawCreateParams) => ZodTuple; } interface ZodRecordDef extends ZodTypeDef { valueType: Value; keyType: Key; typeName: ZodFirstPartyTypeKind.ZodRecord; } declare type KeySchema = ZodType; declare type RecordType = [ string ] extends [K] ? Record : [number] extends [K] ? Record : [symbol] extends [K] ? Record : Partial>; declare class ZodRecord extends ZodType, ZodRecordDef, RecordType> { get keySchema(): Key; get valueSchema(): Value; _parse(input: ParseInput): ParseReturnType; get element(): Value; static create(valueType: Value, params?: RawCreateParams): ZodRecord; static create(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord; } interface ZodLiteralDef extends ZodTypeDef { value: T; typeName: ZodFirstPartyTypeKind.ZodLiteral; } declare class ZodLiteral extends ZodType> { _parse(input: ParseInput): ParseReturnType; get value(): T; static create: (value: T_1, params?: RawCreateParams) => ZodLiteral; } declare type EnumValues = [string, ...string[]]; declare type Values = { [k in T[number]]: k; }; interface ZodEnumDef extends ZodTypeDef { values: T; typeName: ZodFirstPartyTypeKind.ZodEnum; } declare type Writeable = { -readonly [P in keyof T]: T[P]; }; declare function createZodEnum>(values: T, params?: RawCreateParams): ZodEnum>; declare function createZodEnum(values: T, params?: RawCreateParams): ZodEnum; declare class ZodEnum extends ZodType> { _parse(input: ParseInput): ParseReturnType; get options(): T; get enum(): Values; get Values(): Values; get Enum(): Values; static create: typeof createZodEnum; } interface ZodPromiseDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodPromise; } declare class ZodPromise extends ZodType, ZodPromiseDef, Promise> { _parse(input: ParseInput): ParseReturnType; static create: (schema: T_1, params?: RawCreateParams) => ZodPromise; } declare type RefinementEffect = { type: "refinement"; refinement: (arg: T, ctx: RefinementCtx) => any; }; declare type TransformEffect = { type: "transform"; transform: (arg: T, ctx: RefinementCtx) => any; }; declare type PreprocessEffect = { type: "preprocess"; transform: (arg: T) => any; }; declare type Effect = RefinementEffect | TransformEffect | PreprocessEffect; interface ZodEffectsDef extends ZodTypeDef { schema: T; typeName: ZodFirstPartyTypeKind.ZodEffects; effect: Effect; } declare class ZodEffects, Input = input> extends ZodType, Input> { innerType(): T; sourceType(): T; _parse(input: ParseInput): ParseReturnType; static create: (schema: I, effect: Effect, params?: RawCreateParams) => ZodEffects>; static createWithPreprocess: (preprocess: (arg: unknown) => unknown, schema: I, params?: RawCreateParams) => ZodEffects; } interface ZodOptionalDef extends ZodTypeDef { innerType: T; typeName: ZodFirstPartyTypeKind.ZodOptional; } declare class ZodOptional extends ZodType, T["_input"] | undefined> { _parse(input: ParseInput): ParseReturnType; unwrap(): T; static create: (type: T_1, params?: RawCreateParams) => ZodOptional; } interface ZodNullableDef extends ZodTypeDef { innerType: T; typeName: ZodFirstPartyTypeKind.ZodNullable; } declare class ZodNullable extends ZodType, T["_input"] | null> { _parse(input: ParseInput): ParseReturnType; unwrap(): T; static create: (type: T_1, params?: RawCreateParams) => ZodNullable; } interface ZodDefaultDef extends ZodTypeDef { innerType: T; defaultValue: () => util.noUndefined; typeName: ZodFirstPartyTypeKind.ZodDefault; } declare class ZodDefault extends ZodType, ZodDefaultDef, T["_input"] | undefined> { _parse(input: ParseInput): ParseReturnType; removeDefault(): T; static create: (type: T_1, params: { errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { default: T_1["_input"] | (() => util.noUndefined); }) => ZodDefault; } interface ZodCatchDef extends ZodTypeDef { innerType: T; defaultValue: () => T["_input"]; typeName: ZodFirstPartyTypeKind.ZodCatch; } declare class ZodCatch extends ZodType, ZodCatchDef, T["_input"] | undefined> { _parse(input: ParseInput): ParseReturnType; removeDefault(): T; static create: (type: T_1, params: { errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; description?: string | undefined; } & { default: T_1["_input"] | (() => T_1["_input"]); }) => ZodCatch; } interface ZodBrandedDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodBranded; } declare const BRAND: unique symbol; declare type BRAND = { [BRAND]: { [k in T]: true; }; }; declare class ZodBranded extends ZodType, ZodBrandedDef, T["_input"]> { _parse(input: ParseInput): ParseReturnType; unwrap(): T; } interface ZodPipelineDef extends ZodTypeDef { in: A; out: B; typeName: ZodFirstPartyTypeKind.ZodPipeline; } declare class ZodPipeline extends ZodType, A["_input"]> { _parse(input: ParseInput): ParseReturnType; static create(a: A, b: B): ZodPipeline; } declare enum ZodFirstPartyTypeKind { ZodString = "ZodString", ZodNumber = "ZodNumber", ZodNaN = "ZodNaN", ZodBigInt = "ZodBigInt", ZodBoolean = "ZodBoolean", ZodDate = "ZodDate", ZodSymbol = "ZodSymbol", ZodUndefined = "ZodUndefined", ZodNull = "ZodNull", ZodAny = "ZodAny", ZodUnknown = "ZodUnknown", ZodNever = "ZodNever", ZodVoid = "ZodVoid", ZodArray = "ZodArray", ZodObject = "ZodObject", ZodUnion = "ZodUnion", ZodDiscriminatedUnion = "ZodDiscriminatedUnion", ZodIntersection = "ZodIntersection", ZodTuple = "ZodTuple", ZodRecord = "ZodRecord", ZodMap = "ZodMap", ZodSet = "ZodSet", ZodFunction = "ZodFunction", ZodLazy = "ZodLazy", ZodLiteral = "ZodLiteral", ZodEnum = "ZodEnum", ZodEffects = "ZodEffects", ZodNativeEnum = "ZodNativeEnum", ZodOptional = "ZodOptional", ZodNullable = "ZodNullable", ZodDefault = "ZodDefault", ZodCatch = "ZodCatch", ZodPromise = "ZodPromise", ZodBranded = "ZodBranded", ZodPipeline = "ZodPipeline" } declare const literalSchema: ZodUnion<[ZodString, ZodNumber, ZodBoolean, ZodNull]>; type Literal = TypeOf; type Json = Literal | { [key: string]: Json; } | Json[]; declare const ItemRequestSchema: ZodObject, ZodLiteral<"sha-256">, ZodLiteral<"sha-384">, ZodLiteral<"sha-512">]>; people: ZodOptional; surname: ZodOptional; organizationName: ZodOptional; roles: ZodOptional>; email: ZodOptional; uri: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; }, "strip", ZodTypeAny, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }>, "many">>; description: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; location: ZodOptional; longitude: ZodEffects; }, "strip", ZodTypeAny, { latitude: string; longitude: string; }, { latitude: string; longitude: string; }>; altitude: ZodOptional; ellipsoidalAltitude: ZodOptional; floor: ZodOptional; horizontalAccuracy: ZodOptional; verticalAccuracy: ZodOptional; timestamp: ZodOptional>; speed: ZodOptional; speedAccuracy: ZodOptional; course: ZodOptional; courseAccuracy: ZodOptional; magneticHeading: ZodOptional; headingAccuracy: ZodOptional; trueHeading: ZodOptional; }, "strip", ZodTypeAny, { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; }, { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; }>>; timestamp: ZodOptional>; extra: ZodOptional>; }, "strip", ZodTypeAny, { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }, { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }>, "many">; itemSignals: ZodOptional>>; colo: ZodOptional>; country: ZodOptional>; city: ZodOptional>; continent: ZodOptional>; latitude: ZodOptional>; longitude: ZodOptional>; postalCode: ZodOptional>; metroCode: ZodOptional>; region: ZodOptional>; regionCode: ZodOptional>; timezone: ZodOptional>; }, "strip", ZodTypeAny, { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; }, { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; }>>; observableEntropy: ZodOptional; submittedAt: ZodEffects; }, "strip", ZodTypeAny, { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; }, { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; }>>; itemDataSignatures: ZodOptional; signature: ZodEffects; signatureType: ZodLiteral<"ed25519">; signer: ZodOptional; surname: ZodOptional; organizationName: ZodOptional; roles: ZodOptional>; email: ZodOptional; uri: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; }, "strip", ZodTypeAny, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }>>; }, "strip", ZodTypeAny, { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }, { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }>, "many">>; }, "itemData" | "itemDataSignatures">, "strip", ZodTypeAny, { itemDataSignatures?: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[] | undefined; itemData: { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }[]; }, { itemDataSignatures?: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[] | undefined; itemData: { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }[]; }>; type ItemRequest = TypeOf; declare const ItemResponseSchema: ZodObject<{ id: ZodEffects; }, "strip", ZodTypeAny, { id: string; }, { id: string; }>; type ItemResponse = TypeOf; declare const HealthResponseSchema: ZodObject<{ status: ZodUnion<[ZodLiteral<"pass">, ZodLiteral<"fail">]>; description: ZodOptional; checks: ZodOptional; componentType: ZodString; time: ZodString; }, "strip", ZodTypeAny, { status: "pass"; componentType: string; time: string; }, { status: "pass"; componentType: string; time: string; }>, "many">>; }, "strip", ZodTypeAny, { uptime?: { status: "pass"; componentType: string; time: string; }[] | undefined; }, { uptime?: { status: "pass"; componentType: string; time: string; }[] | undefined; }>>; links: ZodOptional>; }, "strip", ZodTypeAny, { description?: string | undefined; checks?: { uptime?: { status: "pass"; componentType: string; time: string; }[] | undefined; } | undefined; links?: string[] | undefined; status: "pass" | "fail"; }, { description?: string | undefined; checks?: { uptime?: { status: "pass"; componentType: string; time: string; }[] | undefined; } | undefined; links?: string[] | undefined; status: "pass" | "fail"; }>; type HealthResponse = TypeOf; declare const ApiKeyBodySchema: ZodObject<{ refreshToken: ZodString; description: ZodOptional; ttl: ZodOptional; }, "strip", ZodTypeAny, { description?: string | undefined; ttl?: number | undefined; refreshToken: string; }, { description?: string | undefined; ttl?: number | undefined; refreshToken: string; }>; type ApiKeyBody = TypeOf; declare const ApiKeyResponseSchema: ZodObject<{ apiKey: ZodString; expiration: ZodString; description: ZodString; }, "strip", ZodTypeAny, { description: string; apiKey: string; expiration: string; }, { description: string; apiKey: string; expiration: string; }>; type ApiKeyResponse = TypeOf; declare const Commitment: ZodObject<{ commitmentData: ZodObject<{ id: ZodEffects; itemData: ZodArray, ZodLiteral<"sha-256">, ZodLiteral<"sha-384">, ZodLiteral<"sha-512">]>; people: ZodOptional; surname: ZodOptional; organizationName: ZodOptional; roles: ZodOptional>; email: ZodOptional; uri: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; }, "strip", ZodTypeAny, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }>, "many">>; description: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; location: ZodOptional; longitude: ZodEffects; }, "strip", ZodTypeAny, { latitude: string; longitude: string; }, { latitude: string; longitude: string; }>; altitude: ZodOptional; ellipsoidalAltitude: ZodOptional; floor: ZodOptional; horizontalAccuracy: ZodOptional; verticalAccuracy: ZodOptional; timestamp: ZodOptional>; speed: ZodOptional; speedAccuracy: ZodOptional; course: ZodOptional; courseAccuracy: ZodOptional; magneticHeading: ZodOptional; headingAccuracy: ZodOptional; trueHeading: ZodOptional; }, "strip", ZodTypeAny, { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; }, { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; }>>; timestamp: ZodOptional>; extra: ZodOptional>; }, "strip", ZodTypeAny, { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }, { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }>, "many">; itemDataSignatures: ZodOptional; signature: ZodEffects; signatureType: ZodLiteral<"ed25519">; signer: ZodOptional; surname: ZodOptional; organizationName: ZodOptional; roles: ZodOptional>; email: ZodOptional; uri: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; }, "strip", ZodTypeAny, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }>>; }, "strip", ZodTypeAny, { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }, { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }>, "many">>; itemSignals: ZodOptional>>; colo: ZodOptional>; country: ZodOptional>; city: ZodOptional>; continent: ZodOptional>; latitude: ZodOptional>; longitude: ZodOptional>; postalCode: ZodOptional>; metroCode: ZodOptional>; region: ZodOptional>; regionCode: ZodOptional>; timezone: ZodOptional>; }, "strip", ZodTypeAny, { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; }, { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; }>>; observableEntropy: ZodOptional; submittedAt: ZodEffects; }, "strip", ZodTypeAny, { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; }, { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; }>>; proofs: ZodArray, ZodLiteral<"sha256">, ZodLiteral<"sha384">, ZodLiteral<"sha512">, ZodLiteral<"sha512_256">, ZodLiteral<"sha3_224">, ZodLiteral<"sha3_256">, ZodLiteral<"sha3_384">, ZodLiteral<"sha3_512">]>; p: ZodArray, "many">; }, "strip", ZodTypeAny, { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }, { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }>; merkleRoot: ZodString; }, "strip", ZodTypeAny, { inputHash: string; inclusionProof: { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }; merkleRoot: string; }, { inputHash: string; inclusionProof: { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }; merkleRoot: string; }>, "many">; transactions: ZodRecord; hash: ZodString; }>, "strict", ZodTypeAny, { hash: string; inputHash: string; intent: "bitcoin"; }, { hash: string; inputHash: string; intent: "bitcoin"; }>, ZodObject; hash: ZodString; }>, "strict", ZodTypeAny, { hash: string; inputHash: string; intent: "ethereum"; }, { hash: string; inputHash: string; intent: "ethereum"; }>, ZodObject; hash: ZodString; ledger: ZodNumber; }>, "strict", ZodTypeAny, { hash: string; inputHash: string; intent: "stellar"; ledger: number; }, { hash: string; inputHash: string; intent: "stellar"; ledger: number; }>]>, "many">>; }, "strip", ZodTypeAny, { itemSignals?: { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; } | undefined; itemDataSignatures?: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[] | undefined; itemData: { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }[]; id: string; proofs: { inputHash: string; inclusionProof: { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }; merkleRoot: string; }[]; transactions: Record; }, { itemSignals?: { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; } | undefined; itemDataSignatures?: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[] | undefined; itemData: { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }[]; id: string; proofs: { inputHash: string; inclusionProof: { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }; merkleRoot: string; }[]; transactions: Record; }>; commitmentDataSignatures: ZodArray; signature: ZodEffects; signatureType: ZodLiteral<"ed25519">; signer: ZodOptional; surname: ZodOptional; organizationName: ZodOptional; roles: ZodOptional>; email: ZodOptional; uri: ZodOptional; address: ZodOptional; streetName: ZodOptional; streetType: ZodOptional; floor: ZodOptional; town: ZodOptional; region: ZodOptional; postcode: ZodOptional; countryCode: ZodOptional>; }, "strip", ZodTypeAny, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }, { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; }>>; }, "strip", ZodTypeAny, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }, { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }>>; }, "strip", ZodTypeAny, { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }, { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }>, "many">; }, "strip", ZodTypeAny, { commitmentData: { itemSignals?: { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; } | undefined; itemDataSignatures?: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[] | undefined; itemData: { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }[]; id: string; proofs: { inputHash: string; inclusionProof: { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }; merkleRoot: string; }[]; transactions: Record; }; commitmentDataSignatures: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[]; }, { commitmentData: { itemSignals?: { cf?: { region?: string | null | undefined; latitude?: string | null | undefined; longitude?: string | null | undefined; asn?: string | number | null | undefined; colo?: string | null | undefined; country?: string | null | undefined; city?: string | null | undefined; continent?: string | null | undefined; postalCode?: string | null | undefined; metroCode?: string | null | undefined; regionCode?: string | null | undefined; timezone?: string | null | undefined; } | undefined; observableEntropy?: string | undefined; submittedAt: string; } | undefined; itemDataSignatures?: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[] | undefined; itemData: { timestamp?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; people?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; }[] | undefined; description?: string | undefined; location?: { floor?: number | undefined; altitude?: number | undefined; ellipsoidalAltitude?: number | undefined; horizontalAccuracy?: number | undefined; verticalAccuracy?: number | undefined; timestamp?: string | undefined; speed?: number | undefined; speedAccuracy?: number | undefined; course?: number | undefined; courseAccuracy?: number | undefined; magneticHeading?: number | undefined; headingAccuracy?: number | undefined; trueHeading?: number | undefined; coordinate: { latitude: string; longitude: string; }; } | undefined; extra?: Json | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }[]; id: string; proofs: { inputHash: string; inclusionProof: { v: number; h: "sha224" | "sha256" | "sha384" | "sha512" | "sha512_256" | "sha3_224" | "sha3_256" | "sha3_384" | "sha3_512"; p: [number, string][]; }; merkleRoot: string; }[]; transactions: Record; }; commitmentDataSignatures: { signer?: { givenName?: string | undefined; surname?: string | undefined; organizationName?: string | undefined; roles?: string[] | undefined; email?: string | undefined; uri?: string | undefined; address?: { streetNo?: string | undefined; streetName?: string | undefined; streetType?: string | undefined; floor?: string | undefined; town?: string | undefined; region?: string | undefined; postcode?: string | undefined; countryCode?: string | undefined; } | undefined; } | undefined; publicKey: string; signature: string; signatureType: "ed25519"; }[]; }>; type Commitment = TypeOf; declare const CommitmentVerification: ZodObject<{ verified: ZodBoolean; id: ZodOptional>; idData: ZodOptional>; itemData: ZodOptional, ZodLiteral<"sha-256">, ZodLiteral<"sha-384">, ZodLiteral<"sha-512">]>; signaturesCount: ZodOptional; }, "strip", ZodTypeAny, { signaturesCount?: number | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }, { signaturesCount?: number | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; }>>; item: ZodOptional; }, "strip", ZodTypeAny, { hash: string; hashType: "sha-256"; }, { hash: string; hashType: "sha-256"; }>>; commitmentData: ZodOptional; signaturesCount: ZodOptional; }, "strip", ZodTypeAny, { signaturesCount?: number | undefined; hash: string; hashType: "sha-256"; }, { signaturesCount?: number | undefined; hash: string; hashType: "sha-256"; }>>; proofs: ZodOptional, "many">>; transactions: ZodOptional, ZodLiteral<"ethereum">, ZodLiteral<"stellar">]>; verified: ZodBoolean; transaction: ZodDiscriminatedUnion<"intent", [ZodObject; hash: ZodString; }>, "strict", ZodTypeAny, { hash: string; inputHash: string; intent: "bitcoin"; }, { hash: string; inputHash: string; intent: "bitcoin"; }>, ZodObject; hash: ZodString; }>, "strict", ZodTypeAny, { hash: string; inputHash: string; intent: "ethereum"; }, { hash: string; inputHash: string; intent: "ethereum"; }>, ZodObject; hash: ZodString; ledger: ZodNumber; }>, "strict", ZodTypeAny, { hash: string; inputHash: string; intent: "stellar"; ledger: number; }, { hash: string; inputHash: string; intent: "stellar"; ledger: number; }>]>; timestamp: ZodOptional>; urls: ZodOptional>; human: ZodOptional>; }, "strip", ZodTypeAny, { machine?: string[] | undefined; human?: string[] | undefined; }, { machine?: string[] | undefined; human?: string[] | undefined; }>>; error: ZodOptional; }, "strict", ZodTypeAny, { error?: string | undefined; timestamp?: string | undefined; urls?: { machine?: string[] | undefined; human?: string[] | undefined; } | undefined; intent: "bitcoin" | "ethereum" | "stellar"; verified: boolean; transaction: { hash: string; inputHash: string; intent: "bitcoin"; } | { hash: string; inputHash: string; intent: "ethereum"; } | { hash: string; inputHash: string; intent: "stellar"; ledger: number; }; }, { error?: string | undefined; timestamp?: string | undefined; urls?: { machine?: string[] | undefined; human?: string[] | undefined; } | undefined; intent: "bitcoin" | "ethereum" | "stellar"; verified: boolean; transaction: { hash: string; inputHash: string; intent: "bitcoin"; } | { hash: string; inputHash: string; intent: "ethereum"; } | { hash: string; inputHash: string; intent: "stellar"; ledger: number; }; }>, "many">>; commitsTo: ZodOptional, "many">; observableEntropy: ZodOptional; timestamps: ZodObject<{ submittedAfter: ZodOptional>; submittedAt: ZodEffects; submittedBefore: ZodOptional>; submitWindowMilliseconds: ZodOptional; }, "strip", ZodTypeAny, { submittedAfter?: string | undefined; submittedBefore?: string[] | undefined; submitWindowMilliseconds?: number | undefined; submittedAt: string; }, { submittedAfter?: string | undefined; submittedBefore?: string[] | undefined; submitWindowMilliseconds?: number | undefined; submittedAt: string; }>; }, "strip", ZodTypeAny, { observableEntropy?: string | undefined; hashes: { hash: string; hashType: string; }[]; timestamps: { submittedAfter?: string | undefined; submittedBefore?: string[] | undefined; submitWindowMilliseconds?: number | undefined; submittedAt: string; }; }, { observableEntropy?: string | undefined; hashes: { hash: string; hashType: string; }[]; timestamps: { submittedAfter?: string | undefined; submittedBefore?: string[] | undefined; submitWindowMilliseconds?: number | undefined; submittedAt: string; }; }>>; error: ZodOptional; }, "strict", ZodTypeAny, { error?: string | undefined; itemData?: { signaturesCount?: number | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; } | undefined; id?: string | undefined; item?: { hash: string; hashType: "sha-256"; } | undefined; proofs?: { inputHash: string; merkleRoot: string; }[] | undefined; transactions?: { error?: string | undefined; timestamp?: string | undefined; urls?: { machine?: string[] | undefined; human?: string[] | undefined; } | undefined; intent: "bitcoin" | "ethereum" | "stellar"; verified: boolean; transaction: { hash: string; inputHash: string; intent: "bitcoin"; } | { hash: string; inputHash: string; intent: "ethereum"; } | { hash: string; inputHash: string; intent: "stellar"; ledger: number; }; }[] | undefined; commitmentData?: { signaturesCount?: number | undefined; hash: string; hashType: "sha-256"; } | undefined; idData?: { timestamp: string; ulid: string; test: boolean; } | undefined; commitsTo?: { observableEntropy?: string | undefined; hashes: { hash: string; hashType: string; }[]; timestamps: { submittedAfter?: string | undefined; submittedBefore?: string[] | undefined; submitWindowMilliseconds?: number | undefined; submittedAt: string; }; } | undefined; verified: boolean; }, { error?: string | undefined; itemData?: { signaturesCount?: number | undefined; hash: string; hashType: "sha1" | "sha-256" | "sha-384" | "sha-512"; } | undefined; id?: string | undefined; item?: { hash: string; hashType: "sha-256"; } | undefined; proofs?: { inputHash: string; merkleRoot: string; }[] | undefined; transactions?: { error?: string | undefined; timestamp?: string | undefined; urls?: { machine?: string[] | undefined; human?: string[] | undefined; } | undefined; intent: "bitcoin" | "ethereum" | "stellar"; verified: boolean; transaction: { hash: string; inputHash: string; intent: "bitcoin"; } | { hash: string; inputHash: string; intent: "ethereum"; } | { hash: string; inputHash: string; intent: "stellar"; ledger: number; }; }[] | undefined; commitmentData?: { signaturesCount?: number | undefined; hash: string; hashType: "sha-256"; } | undefined; idData?: { timestamp: string; ulid: string; test: boolean; } | undefined; commitsTo?: { observableEntropy?: string | undefined; hashes: { hash: string; hashType: string; }[]; timestamps: { submittedAfter?: string | undefined; submittedBefore?: string[] | undefined; submitWindowMilliseconds?: number | undefined; submittedAt: string; }; } | undefined; verified: boolean; }>; type CommitmentVerification = TypeOf; declare const ClientConfigSchema: ZodObject<{ apiBaseUrl: ZodOptional; apiKey: ZodString; }, "strip", ZodTypeAny, { apiBaseUrl?: string | undefined; apiKey: string; }, { apiBaseUrl?: string | undefined; apiKey: string; }>; type ClientConfig = TypeOf; declare class TruestampClient { private readonly API_KEY; private readonly API_VERSION; private readonly BASE_URL; private readonly BASE_URL_W_VERSION; private readonly COMMON_HEADERS; constructor(config: ClientConfig); /** * Retrieve the current health of the API. * @return An object reflecting the current health of the API. */ getHealth(): Promise; /** * Create a new API key for an account. * @param body The body of the request including a refresh token to be used for key generation. * @return The new API key along with its description and expiration date. */ createApiKey(body: ApiKeyBody): Promise; /** * Get the current commitment for an Item ID. * @param id The Item ID that the commitment is for. * @return A commitment object. */ getCommitment(id: string): Promise; /** * Get the verification result for a commitment associated with an Item ID. * @param id The Item ID for the commitment that should be verified. * @return A commitment verification object. */ getCommitmentVerification(id: string): Promise; /** * Create a new Item. * @param body The Item body. * @param args An object with additional arguments for the API. * @param args.skipCF A boolean indicating whether to skip adding Cloudflare request data to the Item. * @param args.skipOE A boolean indicating whether to skip adding Observable Entropy hash to the Item. * @return An object containing the ID of the new Item. */ createItem(body: ItemRequest, args?: { skipCF?: boolean; skipOE?: boolean; }): Promise; /** * Update an existing Item specified by an Item ID. * @param body The updated Item body. * @param args An object with additional arguments for the API. * @param args.skipCF A boolean indicating whether to skip adding Cloudflare request data to the Item. * @param args.skipOE A boolean indicating whether to skip adding Observable Entropy hash to the Item. * @return An object containing the ID of the updated Item. */ updateItem(id: string, body: ItemRequest, args?: { skipCF?: boolean; skipOE?: boolean; }): Promise; } export { ClientConfig, TruestampClient };