//#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts type Primitive = string | number | symbol | bigint | boolean | null | undefined; //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts declare namespace util { type AssertEqual = (() => V extends T ? 1 : 2) extends (() => V extends U ? 1 : 2) ? true : false; export type isAny = 0 extends 1 & T ? true : false; export const assertEqual: (_: AssertEqual) => void; 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 type Exactly = T & Record, never>; export type InexactPartial = { [k in keyof T]?: T[k] | undefined; }; 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 = objectUtil.identity; export type flatten = objectUtil.flatten; 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 namespace objectUtil { export type MergeShapes = keyof U & keyof V extends never ? U & V : { [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 = { [K in requiredKeys]: T[K]; } & { [K in optionalKeys]?: T[K]; } & { [k in keyof T]?: unknown; }; 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 type extendShape = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K]; } & { [K in keyof B]: B[K]; }; export {}; } declare const ZodParsedType: { string: "string"; nan: "nan"; number: "number"; integer: "integer"; float: "float"; boolean: "boolean"; date: "date"; bigint: "bigint"; symbol: "symbol"; function: "function"; undefined: "undefined"; null: "null"; array: "array"; object: "object"; unknown: "unknown"; promise: "promise"; void: "void"; never: "never"; map: "map"; set: "set"; }; type ZodParsedType = keyof typeof ZodParsedType; //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts type allKeys = T extends any ? keyof T : never; 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"; }; type ZodIssueCode = keyof typeof ZodIssueCode; type ZodIssueBase = { path: (string | number)[]; message?: string | undefined; }; interface ZodInvalidTypeIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_type; expected: ZodParsedType; received: ZodParsedType; } interface ZodInvalidLiteralIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_literal; expected: unknown; received: 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; } type StringValidation = "email" | "url" | "emoji" | "uuid" | "nanoid" | "regex" | "cuid" | "cuid2" | "ulid" | "datetime" | "date" | "time" | "duration" | "ip" | "cidr" | "base64" | "jwt" | "base64url" | { includes: string; position?: number | undefined; } | { 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 | bigint; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date" | "bigint"; } interface ZodTooBigIssue extends ZodIssueBase { code: typeof ZodIssueCode.too_big; maximum: number | bigint; inclusive: boolean; exact?: boolean; type: "array" | "string" | "number" | "set" | "date" | "bigint"; } interface ZodInvalidIntersectionTypesIssue extends ZodIssueBase { code: typeof ZodIssueCode.invalid_intersection_types; } interface ZodNotMultipleOfIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_multiple_of; multipleOf: number | bigint; } interface ZodNotFiniteIssue extends ZodIssueBase { code: typeof ZodIssueCode.not_finite; } interface ZodCustomIssue extends ZodIssueBase { code: typeof ZodIssueCode.custom; params?: { [k: string]: any; }; } type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue; type ZodIssue = ZodIssueOptionalMessage & { fatal?: boolean | undefined; message: string; }; type recursiveZodFormattedError = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError; } : T extends any[] ? { [k: number]: ZodFormattedError; } : T extends object ? { [K in keyof T]?: ZodFormattedError; } : unknown; type ZodFormattedError = { _errors: U[]; } & recursiveZodFormattedError>; 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; static assert(value: unknown): asserts value is 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; } type stripPath = T extends any ? util.OmitKeys : never; type IssueData = stripPath & { path?: (string | number)[]; fatal?: boolean | undefined; }; type ErrorMapCtx = { defaultError: string; data: any; }; type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => { message: string; }; //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts type ParseParams = { path: (string | number)[]; errorMap: ZodErrorMap; async: boolean; }; type ParsePathComponent = string | number; type ParsePath = ParsePathComponent[]; interface ParseContext { readonly common: { readonly issues: ZodIssue[]; readonly contextualErrorMap?: ZodErrorMap | undefined; readonly async: boolean; }; readonly path: ParsePath; readonly schemaErrorMap?: ZodErrorMap | undefined; readonly parent: ParseContext | null; readonly data: any; readonly parsedType: ZodParsedType; } 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; } type INVALID = { status: "aborted"; }; declare const INVALID: INVALID; type DIRTY = { status: "dirty"; value: T; }; declare const DIRTY: (value: T) => DIRTY; type OK = { status: "valid"; value: T; }; declare const OK: (value: T) => OK; type SyncParseReturnType = OK | DIRTY | INVALID; type AsyncParseReturnType = Promise>; type ParseReturnType = SyncParseReturnType | AsyncParseReturnType; //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts 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 {}; } //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/errorUtil.d.cts declare namespace errorUtil { type ErrMessage = string | { message?: string | undefined; }; const errToObj: (message?: ErrMessage) => { message?: string | undefined; }; const toString: (message?: ErrMessage) => string | undefined; } //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts declare namespace partialUtil { type DeepPartial = T extends ZodObject ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional>; }, T["_def"]["unknownKeys"], T["_def"]["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; } //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts /** * The Standard Schema interface. */ type StandardSchemaV1 = { /** * The Standard Schema properties. */ readonly "~standard": StandardSchemaV1.Props; }; declare namespace StandardSchemaV1 { /** * The Standard Schema properties interface. */ export interface Props { /** * The version number of the standard. */ readonly version: 1; /** * The vendor name of the schema library. */ readonly vendor: string; /** * Validates unknown input values. */ readonly validate: (value: unknown) => Result | Promise>; /** * Inferred types associated with the schema. */ readonly types?: Types | undefined; } /** * The result interface of the validate function. */ export type Result = SuccessResult | FailureResult; /** * The result interface if validation succeeds. */ export interface SuccessResult { /** * The typed output value. */ readonly value: Output; /** * The non-existent issues. */ readonly issues?: undefined; } /** * The result interface if validation fails. */ export interface FailureResult { /** * The issues of failed validation. */ readonly issues: ReadonlyArray; } /** * The issue interface of the failure output. */ export interface Issue { /** * The error message of the issue. */ readonly message: string; /** * The path of the issue, if any. */ readonly path?: ReadonlyArray | undefined; } /** * The path segment interface of the issue. */ export interface PathSegment { /** * The key representing a path segment. */ readonly key: PropertyKey; } /** * The Standard Schema types interface. */ export interface Types { /** * The input type of the schema. */ readonly input: Input; /** * The output type of the schema. */ readonly output: Output; } /** * Infers the input type of a Standard Schema. */ export type InferInput = NonNullable["input"]; /** * Infers the output type of a Standard Schema. */ export type InferOutput = NonNullable["output"]; export {}; } //#endregion //#region ../../../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/types.d.cts interface RefinementCtx { addIssue: (arg: IssueData) => void; path: (string | number)[]; } type ZodRawShape = { [k: string]: ZodTypeAny; }; type ZodTypeAny = ZodType; type TypeOf> = T["_output"]; type input> = T["_input"]; type output> = T["_output"]; type CustomErrorParams = Partial>; interface ZodTypeDef { errorMap?: ZodErrorMap | undefined; description?: string | undefined; } type RawCreateParams = { errorMap?: ZodErrorMap | undefined; invalid_type_error?: string | undefined; required_error?: string | undefined; message?: string | undefined; description?: string | undefined; } | undefined; type SafeParseSuccess = { success: true; data: Output; error?: never; }; type SafeParseError = { success: false; error: ZodError; data?: never; }; type SafeParseReturnType = SafeParseSuccess | SafeParseError; declare abstract class ZodType { readonly _type: Output; readonly _output: Output; readonly _input: Input; readonly _def: Def; get description(): string | undefined; "~standard": StandardSchemaV1.Props; 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?: util.InexactPartial): Output; safeParse(data: unknown, params?: util.InexactPartial): SafeParseReturnType; "~validate"(data: unknown): StandardSchemaV1.Result | Promise>; parseAsync(data: unknown, params?: util.InexactPartial): Promise; safeParseAsync(data: unknown, params?: util.InexactPartial): Promise>; /** Alias of safeParseAsync */ spa: (data: unknown, params?: util.InexactPartial) => 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; superRefine(refinement: (arg: Output, ctx: RefinementCtx) => Promise): ZodEffects; constructor(def: Def); optional(): ZodOptional; nullable(): ZodNullable; nullish(): ZodOptional>; 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: Output): ZodCatch; catch(def: (ctx: { error: ZodError; input: Input; }) => Output): ZodCatch; describe(description: string): this; pipe(target: T): ZodPipeline; readonly(): ZodReadonly; isOptional(): boolean; isNullable(): boolean; } type IpVersion = "v4" | "v6"; type ZodStringCheck = { kind: "min"; value: number; message?: string | undefined; } | { kind: "max"; value: number; message?: string | undefined; } | { kind: "length"; value: number; message?: string | undefined; } | { kind: "email"; message?: string | undefined; } | { kind: "url"; message?: string | undefined; } | { kind: "emoji"; message?: string | undefined; } | { kind: "uuid"; message?: string | undefined; } | { kind: "nanoid"; message?: string | undefined; } | { kind: "cuid"; message?: string | undefined; } | { kind: "includes"; value: string; position?: number | undefined; message?: string | undefined; } | { kind: "cuid2"; message?: string | undefined; } | { kind: "ulid"; message?: string | undefined; } | { kind: "startsWith"; value: string; message?: string | undefined; } | { kind: "endsWith"; value: string; message?: string | undefined; } | { kind: "regex"; regex: RegExp; message?: string | undefined; } | { kind: "trim"; message?: string | undefined; } | { kind: "toLowerCase"; message?: string | undefined; } | { kind: "toUpperCase"; message?: string | undefined; } | { kind: "jwt"; alg?: string; message?: string | undefined; } | { kind: "datetime"; offset: boolean; local: boolean; precision: number | null; message?: string | undefined; } | { kind: "date"; message?: string | undefined; } | { kind: "time"; precision: number | null; message?: string | undefined; } | { kind: "duration"; message?: string | undefined; } | { kind: "ip"; version?: IpVersion | undefined; message?: string | undefined; } | { kind: "cidr"; version?: IpVersion | undefined; message?: string | undefined; } | { kind: "base64"; message?: string | undefined; } | { kind: "base64url"; message?: string | undefined; }; 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): ZodEffects; _addCheck(check: ZodStringCheck): ZodString; email(message?: errorUtil.ErrMessage): ZodString; url(message?: errorUtil.ErrMessage): ZodString; emoji(message?: errorUtil.ErrMessage): ZodString; uuid(message?: errorUtil.ErrMessage): ZodString; nanoid(message?: errorUtil.ErrMessage): ZodString; cuid(message?: errorUtil.ErrMessage): ZodString; cuid2(message?: errorUtil.ErrMessage): ZodString; ulid(message?: errorUtil.ErrMessage): ZodString; base64(message?: errorUtil.ErrMessage): ZodString; base64url(message?: errorUtil.ErrMessage): ZodString; jwt(options?: { alg?: string; message?: string | undefined; }): ZodString; ip(options?: string | { version?: IpVersion; message?: string | undefined; }): ZodString; cidr(options?: string | { version?: IpVersion; message?: string | undefined; }): ZodString; datetime(options?: string | { message?: string | undefined; precision?: number | null; offset?: boolean; local?: boolean; }): ZodString; date(message?: string): ZodString; time(options?: string | { message?: string | undefined; precision?: number | null; }): ZodString; duration(message?: errorUtil.ErrMessage): ZodString; regex(regex: RegExp, message?: errorUtil.ErrMessage): ZodString; includes(value: string, options?: { message?: string; position?: number; }): 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; /** * Equivalent to `.min(1)` */ nonempty(message?: errorUtil.ErrMessage): ZodString; trim(): ZodString; toLowerCase(): ZodString; toUpperCase(): ZodString; get isDatetime(): boolean; get isDate(): boolean; get isTime(): boolean; get isDuration(): boolean; get isEmail(): boolean; get isURL(): boolean; get isEmoji(): boolean; get isUUID(): boolean; get isNANOID(): boolean; get isCUID(): boolean; get isCUID2(): boolean; get isULID(): boolean; get isIP(): boolean; get isCIDR(): boolean; get isBase64(): boolean; get isBase64url(): boolean; get minLength(): number | null; get maxLength(): number | null; static create: (params?: RawCreateParams & { coerce?: true; }) => ZodString; } type ZodNumberCheck = { kind: "min"; value: number; inclusive: boolean; message?: string | undefined; } | { kind: "max"; value: number; inclusive: boolean; message?: string | undefined; } | { kind: "int"; message?: string | undefined; } | { kind: "multipleOf"; value: number; message?: string | undefined; } | { kind: "finite"; message?: string | undefined; }; interface ZodNumberDef extends ZodTypeDef { checks: ZodNumberCheck[]; typeName: ZodFirstPartyTypeKind.ZodNumber; coerce: boolean; } declare class ZodNumber extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams & { coerce?: boolean; }) => ZodNumber; gte(value: number, message?: errorUtil.ErrMessage): ZodNumber; min: (value: number, message?: errorUtil.ErrMessage) => ZodNumber; gt(value: number, message?: errorUtil.ErrMessage): ZodNumber; lte(value: number, message?: errorUtil.ErrMessage): ZodNumber; max: (value: number, message?: errorUtil.ErrMessage) => 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; step: (value: number, message?: errorUtil.ErrMessage) => ZodNumber; finite(message?: errorUtil.ErrMessage): ZodNumber; safe(message?: errorUtil.ErrMessage): ZodNumber; get minValue(): number | null; get maxValue(): number | null; get isInt(): boolean; get isFinite(): boolean; } interface ZodBooleanDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodBoolean; coerce: boolean; } declare class ZodBoolean extends ZodType { _parse(input: ParseInput): ParseReturnType; static create: (params?: RawCreateParams & { coerce?: boolean; }) => ZodBoolean; } interface ZodUndefinedDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodUndefined; } declare class ZodUndefined extends ZodType { _parse(input: ParseInput): ParseReturnType; params?: RawCreateParams; static create: (params?: RawCreateParams) => ZodUndefined; } interface ZodArrayDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodArray; exactLength: { value: number; message?: string | undefined; } | null; minLength: { value: number; message?: string | undefined; } | null; maxLength: { value: number; message?: string | undefined; } | null; } type ArrayCardinality = "many" | "atleastone"; 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: El, params?: RawCreateParams) => ZodArray; } type UnknownKeysParam = "passthrough" | "strict" | "strip"; interface ZodObjectDef extends ZodTypeDef { typeName: ZodFirstPartyTypeKind.ZodObject; shape: () => T; catchall: Catchall; unknownKeys: UnknownKeys; } type objectOutputType = objectUtil.flatten>> & CatchallOutput & PassthroughType; type baseObjectOutputType = { [k in keyof Shape]: Shape[k]["_output"]; }; type objectInputType = objectUtil.flatten> & CatchallInput & PassthroughType; type baseObjectInputType = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"]; }>; type CatchallOutput = ZodType extends T ? unknown : { [k: string]: T["_output"]; }; type CatchallInput = ZodType extends T ? unknown : { [k: string]: T["_input"]; }; type PassthroughType = T extends "passthrough" ? { [k: string]: unknown; } : unknown; 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; extend(augmentation: Augmentation): ZodObject, UnknownKeys, Catchall>; /** * @deprecated Use `.extend` instead * */ augment: (augmentation: Augmentation) => ZodObject, UnknownKeys, Catchall>; /** * 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"]>; setKey(key: Key, schema: Schema): ZodObject; catchall(index: Index): ZodObject; pick>(mask: Mask): ZodObject>, UnknownKeys, Catchall>; omit>(mask: Mask): ZodObject, UnknownKeys, Catchall>; /** * @deprecated */ 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: Shape, params?: RawCreateParams) => ZodObject, objectInputType>; static strictCreate: (shape: Shape, params?: RawCreateParams) => ZodObject; static lazycreate: (shape: () => Shape, params?: RawCreateParams) => ZodObject; } type AnyZodObject = ZodObject; 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: Options, params?: RawCreateParams) => ZodUnion; } type ZodDiscriminatedUnionOption = ZodObject<{ [key in Discriminator]: ZodTypeAny; } & ZodRawShape, UnknownKeysParam, ZodTypeAny>; 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: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection; } type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]]; type AssertArray = T extends any[] ? T : never; type OutputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodType ? T[k]["_output"] : never; }>; type OutputTypeOfTupleWithRest = Rest extends ZodTypeAny ? [...OutputTypeOfTuple, ...Rest["_output"][]] : OutputTypeOfTuple; type InputTypeOfTuple = AssertArray<{ [k in keyof T]: T[k] extends ZodType ? T[k]["_input"] : never; }>; 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: RestSchema): ZodTuple; static create: (schemas: Items, params?: RawCreateParams) => ZodTuple; } interface ZodRecordDef extends ZodTypeDef { valueType: Value; keyType: Key; typeName: ZodFirstPartyTypeKind.ZodRecord; } type KeySchema = ZodType; type RecordType = [string] extends [K] ? Record : [number] extends [K] ? Record : [symbol] extends [K] ? Record : [BRAND] 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, T> { _parse(input: ParseInput): ParseReturnType; get value(): T; static create: (value: Value, params?: RawCreateParams) => ZodLiteral; } type EnumValues = readonly [T, ...T[]]; type Values = { [k in T[number]]: k; }; interface ZodEnumDef extends ZodTypeDef { values: T; typeName: ZodFirstPartyTypeKind.ZodEnum; } type Writeable = { -readonly [P in keyof T]: T[P]; }; type FilterEnum = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum : [Head, ...FilterEnum] : never; type typecast = A extends T ? A : never; declare function createZodEnum>(values: T, params?: RawCreateParams): ZodEnum>; declare function createZodEnum(values: T, params?: RawCreateParams): ZodEnum; declare class ZodEnum extends ZodType, T[number]> { _cache: Set | undefined; _parse(input: ParseInput): ParseReturnType; get options(): T; get enum(): Values; get Values(): Values; get Enum(): Values; extract(values: ToExtract, newDef?: RawCreateParams): ZodEnum>; exclude(values: ToExclude, newDef?: RawCreateParams): ZodEnum>, [string, ...string[]]>>; static create: typeof createZodEnum; } interface ZodPromiseDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodPromise; } declare class ZodPromise extends ZodType, ZodPromiseDef, Promise> { unwrap(): T; _parse(input: ParseInput): ParseReturnType; static create: (schema: Inner, params?: RawCreateParams) => ZodPromise; } type RefinementEffect = { type: "refinement"; refinement: (arg: T, ctx: RefinementCtx) => any; }; type TransformEffect = { type: "transform"; transform: (arg: T, ctx: RefinementCtx) => any; }; type PreprocessEffect = { type: "preprocess"; transform: (arg: T, ctx: RefinementCtx) => any; }; 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, ctx: RefinementCtx) => 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: Inner, 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: Inner, 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: Inner, params: RawCreateParams & { default: Inner["_input"] | (() => util.noUndefined); }) => ZodDefault; } interface ZodCatchDef extends ZodTypeDef { innerType: T; catchValue: (ctx: { error: ZodError; input: unknown; }) => T["_input"]; typeName: ZodFirstPartyTypeKind.ZodCatch; } declare class ZodCatch extends ZodType, unknown> { _parse(input: ParseInput): ParseReturnType; removeCatch(): T; static create: (type: Inner, params: RawCreateParams & { catch: Inner["_output"] | (() => Inner["_output"]); }) => ZodCatch; } interface ZodBrandedDef extends ZodTypeDef { type: T; typeName: ZodFirstPartyTypeKind.ZodBranded; } declare const BRAND: unique symbol; 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: ASchema, b: BSchema): ZodPipeline; } type BuiltIn = (((...args: any[]) => any) | (new (...args: any[]) => any)) | { readonly [Symbol.toStringTag]: string; } | Date | Error | Generator | Promise | RegExp; type MakeReadonly = T extends Map ? ReadonlyMap : T extends Set ? ReadonlySet : T extends [infer Head, ...infer Tail] ? readonly [Head, ...Tail] : T extends Array ? ReadonlyArray : T extends BuiltIn ? T : Readonly; interface ZodReadonlyDef extends ZodTypeDef { innerType: T; typeName: ZodFirstPartyTypeKind.ZodReadonly; } declare class ZodReadonly extends ZodType, ZodReadonlyDef, MakeReadonly> { _parse(input: ParseInput): ParseReturnType; static create: (type: Inner, params?: RawCreateParams) => ZodReadonly; unwrap(): T; } 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", ZodReadonly = "ZodReadonly" } //#endregion //#region ../api-types/dist/dto/promotions/promotion-apply-check.dto.d.ts declare const promotionMissingProjectSchema: ZodObject<{ id: ZodString; name: ZodString; } & { icon: ZodOptional; value: ZodString; }, "strip", ZodTypeAny, { type: "emoji" | "icon"; value: string; }, { type: "emoji" | "icon"; value: string; }>>; description: ZodOptional; customTelemetryTags: ZodOptional, "many">>; }, "strip", ZodTypeAny, { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }, { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }>; type PromotionCredentialExpressionValue = string | boolean | PromotionCredentialExpressionValue[] | { [key: string]: PromotionCredentialExpressionValue; }; type PromotionMissingProject = TypeOf; //#endregion //#region ../api-types/dist/zod-class.d.ts interface ZodClass { new (data: T): T; schema: ZodObject; safeParse(data: unknown): SafeParseReturnType; parse(data: unknown): T; extend(shape: U): ZodClass>, Shape & U>; } //#endregion //#region ../api-types/dist/dto/packages/export-package-request.dto.d.ts declare const ExportPackageRequestDto_base: ZodClass<{ agentIds?: string[] | undefined; workflowIds?: string[] | undefined; folderIds?: string[] | undefined; projectIds?: string[] | undefined; includeVariableValues: boolean; includeTags: boolean; dependencyPolicy: "fail" | "include-in-package" | "reference-only"; versionPolicy: "ignore-unpublished" | "latest" | "prefer-published" | "published-strict"; credentialExportPolicy: "expression-values-only" | "no-values"; includeArchived: boolean; }, { agentIds: ZodOptional>; workflowIds: ZodOptional>; folderIds: ZodOptional>; projectIds: ZodOptional>; includeVariableValues: ZodDefault; includeTags: ZodDefault; dependencyPolicy: ZodDefault>>; versionPolicy: ZodDefault>>; credentialExportPolicy: ZodDefault>>; includeArchived: ZodDefault; }>; declare class ExportPackageRequestDto extends ExportPackageRequestDto_base {} //#endregion //#region ../api-types/dist/dto/packages/import-package-request.dto.d.ts declare const ImportPackageRequestDto_base: ZodClass<{ package: { fieldname: string; originalname: string; mimetype: string; size: number; buffer: Uint8Array; }; projectId?: string | undefined; folderId?: string | undefined; credentialMatchingMode: "id-only" | "name-and-type" | "type-only"; credentialMissingMode: "create-stub" | "create-with-values" | "must-preexist"; credentialConflictPolicy: "fail" | "keep-existing" | "overwrite"; bindings: { credentials?: Record | undefined; }; conflictPolicy: "fail" | "new-version" | "skip"; publishingPolicy: "match-source" | "preserve-published-state" | "publish-all" | "unpublish-all"; idPolicy: "source"; missingNodeTypeMode: "fail" | "import-anyway"; projectConflictPolicy: "fail" | "merge" | "overwrite"; folderConflictPolicy?: "fail" | "merge" | "overwrite" | undefined; overwriteDeletionPolicy: "archive" | "hard-delete"; dataTableMatchingMode: "by-id"; dataTableMissingMode: "create" | "do-nothing" | "must-preexist"; dataTableSchemaConflictPolicy: "fail" | "keep-existing" | "overwrite" | "overwrite-non-destructive"; variableMissingMode: "create-stub" | "create-with-value" | "do-nothing" | "must-preexist"; variableConflictPolicy: "fail" | "keep-existing" | "overwrite"; variableParentPolicy?: "global" | "project" | undefined; tagMissingMode: "create" | "do-nothing"; tagConflictPolicy: "fail" | "rename" | "skip"; }, { package: ZodObject<{ fieldname: ZodString; originalname: ZodString; mimetype: ZodString; size: ZodNumber; buffer: ZodType, ZodTypeDef, Uint8Array>; }, "strip", ZodTypeAny, { fieldname: string; originalname: string; mimetype: string; size: number; buffer: Uint8Array; }, { fieldname: string; originalname: string; mimetype: string; size: number; buffer: Uint8Array; }>; projectId: ZodEffects, string | undefined, string | undefined>; folderId: ZodEffects, string | undefined, string | undefined>; credentialMatchingMode: ZodEffects>>, "id-only" | "name-and-type" | "type-only", unknown>; credentialMissingMode: ZodEffects>>, "create-stub" | "create-with-values" | "must-preexist", unknown>; credentialConflictPolicy: ZodEffects>>, "fail" | "keep-existing" | "overwrite", unknown>; bindings: ZodEffects, { credentials?: Record | undefined; }, string | undefined>; conflictPolicy: ZodEnum<["new-version", "fail", "skip"]>; publishingPolicy: ZodEffects>>, "match-source" | "preserve-published-state" | "publish-all" | "unpublish-all", unknown>; idPolicy: ZodEffects>>, "source", unknown>; missingNodeTypeMode: ZodEffects>>, "fail" | "import-anyway", unknown>; projectConflictPolicy: ZodEffects>>, "fail" | "merge" | "overwrite", unknown>; folderConflictPolicy: ZodEffects>, "fail" | "merge" | "overwrite" | undefined, unknown>; overwriteDeletionPolicy: ZodEffects>>, "archive" | "hard-delete", unknown>; dataTableMatchingMode: ZodEffects>>, "by-id", unknown>; dataTableMissingMode: ZodEffects>>, "create" | "do-nothing" | "must-preexist", unknown>; dataTableSchemaConflictPolicy: ZodEffects>>, "fail" | "keep-existing" | "overwrite" | "overwrite-non-destructive", unknown>; variableMissingMode: ZodEffects>>, "create-stub" | "create-with-value" | "do-nothing" | "must-preexist", unknown>; variableConflictPolicy: ZodEffects>>, "fail" | "keep-existing" | "overwrite", unknown>; variableParentPolicy: ZodEffects>, "global" | "project" | undefined, unknown>; tagMissingMode: ZodEffects>>, "create" | "do-nothing", unknown>; tagConflictPolicy: ZodEffects>>, "fail" | "rename" | "skip", unknown>; }>; declare class ImportPackageRequestDto extends ImportPackageRequestDto_base {} declare const ImportPackageSelectionRequestDto_base: ZodClass<{ package: { fieldname: string; originalname: string; mimetype: string; size: number; buffer: Uint8Array; }; selectedProjectId: string; selectedWorkflowIds: string[]; deletedWorkflowIds?: string[] | undefined; conflictPolicy: "fail" | "new-version" | "skip"; idPolicy: "source"; overwriteDeletionPolicy: "archive" | "hard-delete"; }, { package: ZodObject<{ fieldname: ZodString; originalname: ZodString; mimetype: ZodString; size: ZodNumber; buffer: ZodType, ZodTypeDef, Uint8Array>; }, "strip", ZodTypeAny, { fieldname: string; originalname: string; mimetype: string; size: number; buffer: Uint8Array; }, { fieldname: string; originalname: string; mimetype: string; size: number; buffer: Uint8Array; }>; selectedProjectId: ZodString; selectedWorkflowIds: ZodEffects; deletedWorkflowIds: ZodEffects, string[] | undefined, string | undefined>; conflictPolicy: ZodEffects>>, "fail" | "new-version" | "skip", unknown>; idPolicy: ZodEffects>>, "source", unknown>; overwriteDeletionPolicy: ZodEffects>>, "archive" | "hard-delete", unknown>; }>; declare class ImportPackageSelectionRequestDto extends ImportPackageSelectionRequestDto_base {} //#endregion //#region ../api-types/dist/dto/packages/import-result.dto.d.ts declare const ImportResultDto_base: ZodClass<{ package: { sourceN8nVersion: string; sourceId: string; }; agents: { sourceAgentId: string; localId: string; name: string; projectId: string; activeVersionId: string | null; status: "created" | "skipped" | "updated"; publishing: { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }; channels: ({ type: string; status: "reused"; } | { type: string; status: "setup-required"; reason: "destination-draft" | "new-channel"; setupUrl: string; })[]; }[]; counts: { agents: { created: number; updated: number; skipped: number; }; }; workflows: { sourceWorkflowId: string; localId: string; name: string; projectId: string; parentFolderId: string | null; activeVersionId: string | null; isArchived: boolean; publishing: { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }; status: "created" | "skipped" | "updated"; }[]; removedWorkflows: { workflowId: string; name: string; projectId: string; parentFolderId: string | null; deletion: "archived" | "deleted"; }[]; removedFolders: { folderId: string; name: string; projectId: string; parentFolderId: string | null; }[]; folders: { sourceFolderId: string; localId: string; name: string; parentFolderId: string | null; status: "created" | "skipped"; }[]; projects: { sourceProjectId: string; localId: string; name: string; status: "created" | "skipped" | "updated"; }[]; bindings: { agents: Record; workflows: Record; credentials: Record; }; credentials: { matched: string[]; stubbed: string[]; seeded: string[]; incomplete: string[]; updated: string[]; }; dataTables: { matched: number; created: number; updated: number; }; variables: { matched: string[]; missing: string[]; created: string[]; stubbed: string[]; updated: string[]; }; tags: { matched: string[]; created: string[]; renamed: string[]; reconciled: string[]; skipped: string[]; }; }, { package: ZodObject<{ sourceN8nVersion: ZodString; sourceId: ZodString; }, "strip", ZodTypeAny, { sourceN8nVersion: string; sourceId: string; }, { sourceN8nVersion: string; sourceId: string; }>; agents: ZodArray; status: ZodEnum<["created", "updated", "skipped"]>; publishing: ZodObject<{ state: ZodEnum<["published", "unpublished", "unchanged", "blocked", "failed"]>; error: ZodOptional; blockedReason: ZodOptional>; skippedPublishReason: ZodOptional>; }, "strip", ZodTypeAny, { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }, { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }>; channels: ZodArray; }, "strip", ZodTypeAny, { type: string; status: "reused"; }, { type: string; status: "reused"; }>, ZodObject<{ type: ZodString; status: ZodLiteral<"setup-required">; reason: ZodEnum<["new-channel", "destination-draft"]>; setupUrl: ZodString; }, "strip", ZodTypeAny, { type: string; status: "setup-required"; reason: "destination-draft" | "new-channel"; setupUrl: string; }, { type: string; status: "setup-required"; reason: "destination-draft" | "new-channel"; setupUrl: string; }>]>, "many">; }, "strip", ZodTypeAny, { sourceAgentId: string; localId: string; name: string; projectId: string; activeVersionId: string | null; status: "created" | "skipped" | "updated"; publishing: { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }; channels: ({ type: string; status: "reused"; } | { type: string; status: "setup-required"; reason: "destination-draft" | "new-channel"; setupUrl: string; })[]; }, { sourceAgentId: string; localId: string; name: string; projectId: string; activeVersionId: string | null; status: "created" | "skipped" | "updated"; publishing: { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }; channels: ({ type: string; status: "reused"; } | { type: string; status: "setup-required"; reason: "destination-draft" | "new-channel"; setupUrl: string; })[]; }>, "many">; counts: ZodObject<{ agents: ZodObject<{ created: ZodNumber; updated: ZodNumber; skipped: ZodNumber; }, "strip", ZodTypeAny, { created: number; updated: number; skipped: number; }, { created: number; updated: number; skipped: number; }>; }, "strip", ZodTypeAny, { agents: { created: number; updated: number; skipped: number; }; }, { agents: { created: number; updated: number; skipped: number; }; }>; workflows: ZodArray; activeVersionId: ZodNullable; isArchived: ZodBoolean; publishing: ZodObject<{ state: ZodEnum<["published", "unpublished", "unchanged", "blocked", "failed"]>; error: ZodOptional; blockedReason: ZodOptional>; skippedPublishReason: ZodOptional>; }, "strip", ZodTypeAny, { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }, { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }>; status: ZodEnum<["created", "updated", "skipped"]>; }, "strip", ZodTypeAny, { sourceWorkflowId: string; localId: string; name: string; projectId: string; parentFolderId: string | null; activeVersionId: string | null; isArchived: boolean; publishing: { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }; status: "created" | "skipped" | "updated"; }, { sourceWorkflowId: string; localId: string; name: string; projectId: string; parentFolderId: string | null; activeVersionId: string | null; isArchived: boolean; publishing: { state: "blocked" | "failed" | "published" | "unchanged" | "unpublished"; error?: string | undefined; blockedReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; skippedPublishReason?: "channel-setup-required" | "incomplete-credential" | "missing-node-type" | "stub-credential" | undefined; }; status: "created" | "skipped" | "updated"; }>, "many">; removedWorkflows: ZodArray; deletion: ZodEnum<["archived", "deleted"]>; }, "strip", ZodTypeAny, { workflowId: string; name: string; projectId: string; parentFolderId: string | null; deletion: "archived" | "deleted"; }, { workflowId: string; name: string; projectId: string; parentFolderId: string | null; deletion: "archived" | "deleted"; }>, "many">; removedFolders: ZodArray; }, "strip", ZodTypeAny, { folderId: string; name: string; projectId: string; parentFolderId: string | null; }, { folderId: string; name: string; projectId: string; parentFolderId: string | null; }>, "many">; folders: ZodArray; status: ZodEnum<["created", "skipped"]>; }, "strip", ZodTypeAny, { sourceFolderId: string; localId: string; name: string; parentFolderId: string | null; status: "created" | "skipped"; }, { sourceFolderId: string; localId: string; name: string; parentFolderId: string | null; status: "created" | "skipped"; }>, "many">; projects: ZodArray; }, "strip", ZodTypeAny, { sourceProjectId: string; localId: string; name: string; status: "created" | "skipped" | "updated"; }, { sourceProjectId: string; localId: string; name: string; status: "created" | "skipped" | "updated"; }>, "many">; bindings: ZodObject<{ agents: ZodRecord; workflows: ZodRecord; credentials: ZodRecord; }, "strip", ZodTypeAny, { agents: Record; workflows: Record; credentials: Record; }, { agents: Record; workflows: Record; credentials: Record; }>; credentials: ZodObject<{ matched: ZodArray; stubbed: ZodArray; seeded: ZodArray; incomplete: ZodArray; updated: ZodArray; }, "strip", ZodTypeAny, { matched: string[]; stubbed: string[]; seeded: string[]; incomplete: string[]; updated: string[]; }, { matched: string[]; stubbed: string[]; seeded: string[]; incomplete: string[]; updated: string[]; }>; dataTables: ZodObject<{ matched: ZodNumber; created: ZodNumber; updated: ZodNumber; }, "strip", ZodTypeAny, { matched: number; created: number; updated: number; }, { matched: number; created: number; updated: number; }>; variables: ZodObject<{ matched: ZodArray; missing: ZodArray; created: ZodArray; stubbed: ZodArray; updated: ZodArray; }, "strip", ZodTypeAny, { matched: string[]; missing: string[]; created: string[]; stubbed: string[]; updated: string[]; }, { matched: string[]; missing: string[]; created: string[]; stubbed: string[]; updated: string[]; }>; tags: ZodObject<{ matched: ZodArray; created: ZodArray; renamed: ZodArray; reconciled: ZodArray; skipped: ZodArray; }, "strip", ZodTypeAny, { matched: string[]; created: string[]; renamed: string[]; reconciled: string[]; skipped: string[]; }, { matched: string[]; created: string[]; renamed: string[]; reconciled: string[]; skipped: string[]; }>; }>; declare class ImportResultDto extends ImportResultDto_base {} //#endregion //#region ../api-types/dist/dto/promotions/promotion-preview.dto.d.ts declare const promotionPreviewSchema: ZodObject<{ commitSha: ZodNullable; source: ZodObject<{ environmentId: ZodString; branchName: ZodString; }, "strip", ZodTypeAny, { environmentId: string; branchName: string; }, { environmentId: string; branchName: string; }>; resources: ZodArray; id: ZodString; name: ZodString; previousName: ZodOptional; previousId: ZodOptional; parentKey: ZodNullable; previousParentKey: ZodOptional>; change: ZodEnum<["added", "modified", "archived", "deleted", "unchanged"]>; selectable: ZodBoolean; movedToProject: ZodOptional; }, "strip", ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>>; movedFromProject: ZodOptional>; revision: ZodObject<{ before: ZodNullable; after: ZodNullable; }, "strip", ZodTypeAny, { before: string | null; after: string | null; }, { before: string | null; after: string | null; }>; }, "strip", ZodTypeAny, { key: string; type: "credential" | "dataTable" | "folder" | "project" | "tag" | "variable" | "workflow"; id: string; name: string; previousName?: string | undefined; previousId?: string | undefined; parentKey: string | null; previousParentKey?: string | null | undefined; change: "added" | "archived" | "deleted" | "modified" | "unchanged"; selectable: boolean; movedToProject?: { id: string; name?: string | undefined; } | undefined; movedFromProject?: { id: string; name: string; } | undefined; revision: { before: string | null; after: string | null; }; }, { key: string; type: "credential" | "dataTable" | "folder" | "project" | "tag" | "variable" | "workflow"; id: string; name: string; previousName?: string | undefined; previousId?: string | undefined; parentKey: string | null; previousParentKey?: string | null | undefined; change: "added" | "archived" | "deleted" | "modified" | "unchanged"; selectable: boolean; movedToProject?: { id: string; name?: string | undefined; } | undefined; movedFromProject?: { id: string; name: string; } | undefined; revision: { before: string | null; after: string | null; }; }>, "many">; dependencies: ZodArray, "many">; blocker: ZodOptional; reviewId: ZodString; }, "strip", ZodTypeAny, { code: "reviewOpen"; reviewId: string; }, { code: "reviewOpen"; reviewId: string; }>>; check: ZodOptional; value: ZodString; }, "strip", ZodTypeAny, { type: "emoji" | "icon"; value: string; }, { type: "emoji" | "icon"; value: string; }>>; description: ZodOptional; customTelemetryTags: ZodOptional, "many">>; }, "strip", ZodTypeAny, { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }, { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }>, "many">; missingBindings: ZodArray; sourceId: ZodString; name: ZodString; credentialType: ZodString; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { ownerProject: ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; expressionData: ZodOptional>>; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; }, { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; }>, ZodObject<{ kind: ZodLiteral<"variable">; name: ZodString; variableType: ZodDefault>; scope: ZodDiscriminatedUnion<"kind", [ZodObject<{ kind: ZodLiteral<"global">; }, "strip", ZodTypeAny, { kind: "global"; }, { kind: "global"; }>, ZodObject<{ kind: ZodLiteral<"project">; project: ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; }, "strip", ZodTypeAny, { kind: "project"; project: { id: string; name: string; }; }, { kind: "project"; project: { id: string; name: string; }; }>]>; sourceValue: ZodOptional; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; }, "strip", ZodTypeAny, { kind: "variable"; name: string; variableType: "string"; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }, { kind: "variable"; name: string; variableType?: "string" | undefined; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }>]>, "many">; accessRequirements: ZodArray; sourceId: ZodString; name: ZodString; credentialType: ZodString; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"access-required">; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }, { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }>, "many">; conflicts: ZodArray; sourceId: ZodNullable; name: ZodString; expectedTypes: ZodArray; filePath: ZodOptional; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"missing-id">; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; }, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; }>, ZodObject<{ kind: ZodLiteral<"credential">; sourceId: ZodNullable; name: ZodString; expectedTypes: ZodArray; filePath: ZodOptional; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"conflicting-types">; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; }, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; }>, ZodObject<{ kind: ZodLiteral<"credential">; sourceId: ZodNullable; name: ZodString; expectedTypes: ZodArray; filePath: ZodOptional; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"unknown-type">; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; }, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; }>, ZodObject<{ kind: ZodLiteral<"credential">; sourceId: ZodNullable; name: ZodString; expectedTypes: ZodArray; filePath: ZodOptional; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"unknown-owner">; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; }, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; }>, ZodObject<{ kind: ZodLiteral<"credential">; sourceId: ZodNullable; name: ZodString; expectedTypes: ZodArray; filePath: ZodOptional; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"type-mismatch">; targetType: ZodString; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; }, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; }>, ZodObject<{ kind: ZodLiteral<"credential">; sourceId: ZodNullable; name: ZodString; expectedTypes: ZodArray; filePath: ZodOptional; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; } & { code: ZodLiteral<"incompatible-usage-scope">; usageScope: ZodString; }, "strip", ZodTypeAny, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; }, { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; }>, ZodObject<{ kind: ZodLiteral<"variable">; code: ZodLiteral<"missing-definition">; name: ZodString; referenceFiles: ZodArray; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; }, "strip", ZodTypeAny, { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }, { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }>, ZodObject<{ kind: ZodLiteral<"project">; code: ZodLiteral<"project-not-team">; project: ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; filePath: ZodString; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; }, { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; }>, ZodObject<{ kind: ZodLiteral<"project">; code: ZodLiteral<"project-deletion">; project: ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; }, "strip", ZodTypeAny, { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; }, { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; }>, ZodObject<{ kind: ZodLiteral<"data-table">; code: ZodLiteral<"destructive-change">; id: ZodString; name: ZodString; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; changes: ZodArray; column: ZodString; type: ZodEnum<["string", "number", "boolean", "date"]>; destructive: ZodLiteral; }, "strip", ZodTypeAny, { kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; }, { kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; }>, ZodObject<{ kind: ZodLiteral<"remove-column">; column: ZodString; type: ZodEnum<["string", "number", "boolean", "date"]>; destructive: ZodLiteral; }, "strip", ZodTypeAny, { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; }, { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; }>, ZodObject<{ kind: ZodLiteral<"change-column-type">; column: ZodString; from: ZodEnum<["string", "number", "boolean", "date"]>; to: ZodEnum<["string", "number", "boolean", "date"]>; destructive: ZodLiteral; }, "strip", ZodTypeAny, { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; }, { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; }>, ZodObject<{ kind: ZodLiteral<"rename-column">; from: ZodString; to: ZodString; destructive: ZodLiteral; }, "strip", ZodTypeAny, { kind: "rename-column"; from: string; to: string; destructive: false; }, { kind: "rename-column"; from: string; to: string; destructive: false; }>, ZodObject<{ kind: ZodLiteral<"reorder-columns">; destructive: ZodLiteral; }, "strip", ZodTypeAny, { kind: "reorder-columns"; destructive: false; }, { kind: "reorder-columns"; destructive: false; }>, ZodObject<{ kind: ZodLiteral<"rename-table">; from: ZodString; to: ZodString; destructive: ZodLiteral; }, "strip", ZodTypeAny, { kind: "rename-table"; from: string; to: string; destructive: false; }, { kind: "rename-table"; from: string; to: string; destructive: false; }>]>, "many">; }, "strip", ZodTypeAny, { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; }, { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; }>, ZodObject<{ kind: ZodLiteral<"workflow">; code: ZodEnum<["workflow-id-conflict", "lineage-conflict", "policy-violation", "missing-node-type", "workflow-forbidden"]>; reason: ZodOptional; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; }, "strip", ZodTypeAny, { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }, { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }>, ZodObject<{ kind: ZodLiteral<"data-table">; code: ZodLiteral<"data-table-conflict">; id: ZodOptional; name: ZodOptional; reason: ZodEnum<["missing", "id-conflict", "name-conflict", "schema-incompatible", "module-disabled", "permission-denied", "column-id-conflict"]>; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; }, "strip", ZodTypeAny, { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }, { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }>, ZodObject<{ kind: ZodLiteral<"tag">; code: ZodLiteral<"tag-conflict">; id: ZodOptional; name: ZodOptional; reason: ZodEnum<["rename-drift", "name-collision", "invalid-name", "invalid-id", "permission-denied"]>; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; }, "strip", ZodTypeAny, { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }, { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }>, ZodObject<{ kind: ZodLiteral<"project">; code: ZodEnum<["project-conflict", "check-not-run", "import-blocked", "project-not-on-branch"]>; project: ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; reason: ZodOptional; }, "strip", ZodTypeAny, { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; }, { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; }>, ZodObject<{ id: ZodString; name: ZodString; project: ZodObject<{ id: ZodString; name: ZodString; }, "strip", ZodTypeAny, { id: string; name: string; }, { id: string; name: string; }>; projectExists: ZodBoolean; instanceProject: ZodObject<{ id: ZodString; name: ZodOptional; }, "strip", ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>; } & { kind: ZodEnum<["workflow", "folder"]>; code: ZodLiteral<"moved">; }, "strip", ZodTypeAny, { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; }, { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; }>]>, "many">; warnings: ZodArray; code: ZodLiteral<"variable-shadowed">; name: ZodString; scope: ZodObject<{ kind: ZodLiteral<"global">; }, "strip", ZodTypeAny, { kind: "global"; }, { kind: "global"; }>; consumers: ZodArray; workflows: ZodArray, "many">; }, "strip", ZodTypeAny, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }, { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }>, "many">; }, "strip", ZodTypeAny, { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }, { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }>, "many">; } & { movedWorkflows: ZodArray; projectExists: ZodBoolean; instanceProject: ZodObject<{ id: ZodString; name: ZodOptional; }, "strip", ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>; }, "strip", ZodTypeAny, { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }, { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }>, "many">; movedFolders: ZodArray; projectExists: ZodBoolean; instanceProject: ZodObject<{ id: ZodString; name: ZodOptional; }, "strip", ZodTypeAny, { id: string; name?: string | undefined; }, { id: string; name?: string | undefined; }>; }, "strip", ZodTypeAny, { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }, { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }>, "many">; }, "strip", ZodTypeAny, { missingProjects: { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }[]; missingBindings: ({ kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; } | { kind: "variable"; name: string; variableType: "string"; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; })[]; accessRequirements: { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }[]; conflicts: ({ kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; } | { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; } | { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; } | { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; } | { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; } | { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; })[]; warnings: { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }[]; movedWorkflows: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; movedFolders: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; }, { missingProjects: { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }[]; missingBindings: ({ kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; } | { kind: "variable"; name: string; variableType?: "string" | undefined; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; })[]; accessRequirements: { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }[]; conflicts: ({ kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; } | { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; } | { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; } | { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; } | { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; } | { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; })[]; warnings: { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }[]; movedWorkflows: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; movedFolders: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; }>>; revision: ZodOptional; }, "strip", ZodTypeAny, { commitSha: string | null; source: { environmentId: string; branchName: string; }; resources: { key: string; type: "credential" | "dataTable" | "folder" | "project" | "tag" | "variable" | "workflow"; id: string; name: string; previousName?: string | undefined; previousId?: string | undefined; parentKey: string | null; previousParentKey?: string | null | undefined; change: "added" | "archived" | "deleted" | "modified" | "unchanged"; selectable: boolean; movedToProject?: { id: string; name?: string | undefined; } | undefined; movedFromProject?: { id: string; name: string; } | undefined; revision: { before: string | null; after: string | null; }; }[]; dependencies: { workflowKey: string; resourceKey: string; included: boolean; }[]; blocker?: { code: "reviewOpen"; reviewId: string; } | undefined; check?: { missingProjects: { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }[]; missingBindings: ({ kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; } | { kind: "variable"; name: string; variableType: "string"; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; })[]; accessRequirements: { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }[]; conflicts: ({ kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; } | { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; } | { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; } | { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; } | { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; } | { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; })[]; warnings: { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }[]; movedWorkflows: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; movedFolders: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; } | undefined; revision?: string | undefined; }, { commitSha: string | null; source: { environmentId: string; branchName: string; }; resources: { key: string; type: "credential" | "dataTable" | "folder" | "project" | "tag" | "variable" | "workflow"; id: string; name: string; previousName?: string | undefined; previousId?: string | undefined; parentKey: string | null; previousParentKey?: string | null | undefined; change: "added" | "archived" | "deleted" | "modified" | "unchanged"; selectable: boolean; movedToProject?: { id: string; name?: string | undefined; } | undefined; movedFromProject?: { id: string; name: string; } | undefined; revision: { before: string | null; after: string | null; }; }[]; dependencies: { workflowKey: string; resourceKey: string; included: boolean; }[]; blocker?: { code: "reviewOpen"; reviewId: string; } | undefined; check?: { missingProjects: { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }[]; missingBindings: ({ kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; } | { kind: "variable"; name: string; variableType?: "string" | undefined; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; })[]; accessRequirements: { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }[]; conflicts: ({ kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; } | { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; } | { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; } | { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; } | { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; } | { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; })[]; warnings: { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }[]; movedWorkflows: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; movedFolders: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; } | undefined; revision?: string | undefined; }>; type PromotionPreview = TypeOf; //#endregion //#region ../api-types/dist/dto/project/project-public.dto.d.ts declare const CreateProjectPublicDto_base: ZodClass<{ name: string; id?: string | undefined; icon?: { type: "emoji" | "icon"; value: string; color?: string | undefined; } | null | undefined; description?: string | null | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; type?: undefined; }, { name: ZodString; id: ZodOptional; icon: ZodOptional; value: ZodString; color: ZodOptional; }, "strip", ZodTypeAny, { type: "emoji" | "icon"; value: string; color?: string | undefined; }, { type: "emoji" | "icon"; value: string; color?: string | undefined; }>>>; description: ZodOptional>; customTelemetryTags: ZodOptional; value: ZodString; }, "strip", ZodTypeAny, { key: string; value: string; }, { key: string; value: string; }>, "many">, { key: string; value: string; }[], { key: string; value: string; }[]>>; type: ZodUndefined; }>; declare class CreateProjectPublicDto extends CreateProjectPublicDto_base {} //#endregion //#region src/client.d.ts interface PaginatedResponse { data: T[]; nextCursor?: string; } interface ClientOptions { baseUrl: string; apiKey: string; debug?: (message: string) => void; } type ImportPackageFields = Pick & Partial> & { bindings?: string; }; type ImportPackageSelectionFields = Pick & Partial>; type ExportPackageFields = Partial; interface ExportPackageCounts { agents?: number; projects?: number; workflows: number; folders: number; credentials: number; dataTables: number; variables: number; tags?: number; } interface ExportPackageResult { archive: Buffer; counts?: ExportPackageCounts; } interface ImportPackageCounts { projects: { created: number; updated: number; skipped: number; deleted: number; }; folders: { created: number; updated: number; skipped: number; moved: number; renamed: number; removed: number; }; workflows: { created: number; updated: number; skipped: number; moved: number; archived: number; deleted: number; publishing: { published: number; unpublished: number; unchanged: number; blocked: number; failed: number; }; }; credentials: { matched: number; stubbed: number; }; dataTables: { matched: number; created: number; updated: number; }; variables: { matched: number; created: number; updated: number; stubbed: number; missing: number; }; tags: { matched: number; created: number; renamed: number; reconciled: number; skipped: number; }; } type PromotionDirection = 'apply' | 'promote'; interface PromotionGitResult { commitSha: string; branchName: string; } type PromotePackageResult = { environmentId: string; counts: ExportPackageCounts; git: PromotionGitResult; }; interface PromotionExpectedSource { environmentId: string; branchName: string; commitSha: string; } interface PromotionSelection { workflowIds?: string[]; folderIds?: string[]; } interface PromotionApplyCheck { missingProjects: Array>; missingBindings: Array>; accessRequirements: Array>; conflicts: Array>; warnings: Array>; } type PromotionProjectDeletion = { kind: 'project'; code: 'project-deletion'; project: { id: string; name: string; }; }; type ApplyPackageIdentity = { environmentId: string; git: PromotionGitResult; }; type ApplyPackageResult = (ApplyPackageIdentity & { status: 'applied'; counts: ImportPackageCounts; warnings: Array>; }) | (ApplyPackageIdentity & { status: 'blocked'; check: PromotionApplyCheck; }) | (ApplyPackageIdentity & { status: 'source-changed'; }) | (ApplyPackageIdentity & { status: 'preview-changed'; }); interface PromotionRepository { id: string; name: string; fullPath: string; remoteUrl: string; defaultBranch: string | null; } interface PromotionBranch { name: string; isDefault: boolean; } type PromotionCheckoutResult = { environmentId: string; direction: PromotionDirection; branchName: string; hasCheckout: boolean; }; type PromotionMissingProjectList = { environmentId: string; git: { commitSha: string; branchName: string; } | null; data: PromotionMissingProject[]; }; type PromotionProviderCreatedResult = { provider: Record; publicKey: string | null; }; declare class ApiError extends Error { readonly statusCode: number; readonly hint?: string | undefined; readonly details?: unknown; constructor(statusCode: number, message: string, hint?: string | undefined, details?: unknown); } declare class N8nClient { private readonly baseUrl; private readonly headers; private readonly debug?; constructor(options: ClientOptions); private request; private readBody; private get; private post; private put; private patch; private del; paginate(path: string, query?: Record, limit?: number): Promise; listPromotionProviders(limit?: number): Promise[]>; getPromotionProvider(id: string): Promise>; createPromotionProvider(body: unknown): Promise; updatePromotionProvider(id: string, body: unknown): Promise>; deletePromotionProvider(id: string): Promise; listPromotionProviderRepositories(id: string, search?: string, limit?: number): Promise; listPromotionProviderBranches(id: string, repositoryId: string, search?: string, limit?: number): Promise; listPromotionEnvironments(query?: Record, limit?: number): Promise[]>; getPromotionEnvironment(id: string): Promise>; createPromotionEnvironment(body: unknown): Promise>; updatePromotionEnvironment(id: string, body: unknown): Promise>; deletePromotionEnvironment(id: string): Promise; connectPromotionCheckout(id: string): Promise; disconnectPromotionCheckout(id: string): Promise; listPromotionEnvironmentProjects(id: string): Promise<{ projectIds: string[]; }>; listMissingPromotionProjects(id: string): Promise; addProjectToPromotionEnvironment(id: string, projectId: string): Promise<{ environmentId: string; projectId: string; }>; removeProjectFromPromotionEnvironment(id: string, projectId: string): Promise; promotePackage(id: string, body: { commitMessage?: string; force?: boolean; }): Promise; applyPackage(id: string, expectedSource?: PromotionExpectedSource): Promise; continueApplyPackage(id: string, expectedSource: PromotionExpectedSource, confirmDestructiveChanges?: boolean): Promise; listProjectPromotionChanges(projectId: string, direction: PromotionDirection): Promise<{ commitSha: string | null; source: { environmentId: string; branchName: string; }; resources: { key: string; type: "credential" | "dataTable" | "folder" | "project" | "tag" | "variable" | "workflow"; id: string; name: string; previousName?: string | undefined; previousId?: string | undefined; parentKey: string | null; previousParentKey?: string | null | undefined; change: "added" | "archived" | "deleted" | "modified" | "unchanged"; selectable: boolean; movedToProject?: { id: string; name?: string | undefined; } | undefined; movedFromProject?: { id: string; name: string; } | undefined; revision: { before: string | null; after: string | null; }; }[]; dependencies: { workflowKey: string; resourceKey: string; included: boolean; }[]; blocker?: { code: "reviewOpen"; reviewId: string; } | undefined; check?: { missingProjects: { id: string; name: string; icon?: { type: "emoji" | "icon"; value: string; } | undefined; description?: string | undefined; customTelemetryTags?: { key: string; value: string; }[] | undefined; }[]; missingBindings: ({ kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; ownerProject: { id: string; name: string; }; expressionData?: Record | undefined; } | { kind: "variable"; name: string; variableType: "string"; scope: { kind: "global"; } | { kind: "project"; project: { id: string; name: string; }; }; sourceValue?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; })[]; accessRequirements: { kind: "credential"; sourceId: string; name: string; credentialType: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "access-required"; }[]; conflicts: ({ kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "missing-id"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "conflicting-types"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-type"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "unknown-owner"; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "type-mismatch"; targetType: string; } | { kind: "credential"; sourceId: string | null; name: string; expectedTypes: string[]; filePath?: string | undefined; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; code: "incompatible-usage-scope"; usageScope: string; } | { kind: "variable"; code: "missing-definition"; name: string; referenceFiles: string[]; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "project-not-team"; project: { id: string; name: string; }; filePath: string; workflows: { id: string; name: string; }[]; } | { kind: "project"; code: "project-deletion"; project: { id: string; name: string; }; } | { kind: "data-table"; code: "destructive-change"; id: string; name: string; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; changes: ({ kind: "add-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: false; } | { kind: "remove-column"; column: string; type: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "change-column-type"; column: string; from: "boolean" | "date" | "number" | "string"; to: "boolean" | "date" | "number" | "string"; destructive: true; } | { kind: "rename-column"; from: string; to: string; destructive: false; } | { kind: "reorder-columns"; destructive: false; } | { kind: "rename-table"; from: string; to: string; destructive: false; })[]; } | { kind: "workflow"; code: "lineage-conflict" | "missing-node-type" | "policy-violation" | "workflow-forbidden" | "workflow-id-conflict"; reason?: string | undefined; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "data-table"; code: "data-table-conflict"; id?: string | undefined; name?: string | undefined; reason: "column-id-conflict" | "id-conflict" | "missing" | "module-disabled" | "name-conflict" | "permission-denied" | "schema-incompatible"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "tag"; code: "tag-conflict"; id?: string | undefined; name?: string | undefined; reason: "invalid-id" | "invalid-name" | "name-collision" | "permission-denied" | "rename-drift"; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; } | { kind: "project"; code: "check-not-run" | "import-blocked" | "project-conflict" | "project-not-on-branch"; project: { id: string; name: string; }; reason?: string | undefined; } | { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; kind: "folder" | "workflow"; code: "moved"; })[]; warnings: { kind: "variable"; code: "variable-shadowed"; name: string; scope: { kind: "global"; }; consumers: { project: { id: string; name: string; }; workflows: { id: string; name: string; }[]; }[]; }[]; movedWorkflows: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; movedFolders: { id: string; name: string; project: { id: string; name: string; }; projectExists: boolean; instanceProject: { id: string; name?: string | undefined; }; }[]; } | undefined; revision?: string | undefined; }>; promoteProjectSelection(projectId: string, selection: PromotionSelection, commitMessage?: string): Promise; applyProjectSelection(projectId: string, selection: PromotionSelection, expectedSource?: PromotionExpectedSource, expectedPreviewRevision?: string): Promise; continueApplyProjectSelection(projectId: string, selection: PromotionSelection, expectedSource: PromotionExpectedSource, confirmDestructiveChanges?: boolean, expectedPreviewRevision?: string): Promise; listWorkflows(query?: Record, limit?: number): Promise[]>; getWorkflow(id: string): Promise>; createWorkflow(body: unknown): Promise>; updateWorkflow(id: string, body: unknown): Promise>; deleteWorkflow(id: string): Promise>; activateWorkflow(id: string): Promise>; deactivateWorkflow(id: string): Promise>; getWorkflowTags(id: string): Promise[]>; updateWorkflowTags(id: string, tagIds: string[]): Promise[]>; transferWorkflow(id: string, projectId: string): Promise; listExecutions(query?: Record, limit?: number): Promise[]>; getExecution(id: string, includeData?: boolean): Promise>; retryExecution(id: string): Promise>; stopExecution(id: string): Promise>; deleteExecution(id: string): Promise>; listCredentials(query?: Record, limit?: number): Promise[]>; getCredential(id: string): Promise>; getCredentialSchema(typeName: string): Promise>; createCredential(body: unknown): Promise>; deleteCredential(id: string): Promise>; transferCredential(id: string, projectId: string): Promise; listTags(query?: Record, limit?: number): Promise[]>; createTag(name: string): Promise>; updateTag(id: string, name: string): Promise>; deleteTag(id: string): Promise>; listProjects(query?: Record, limit?: number): Promise[]>; getProject(id: string): Promise>; createProject(project: CreateProjectPublicDto): Promise>; updateProject(id: string, name: string): Promise; deleteProject(id: string): Promise; listProjectMembers(projectId: string, limit?: number): Promise[]>; addProjectMember(projectId: string, userId: string, role: string): Promise; updateProjectMemberRole(projectId: string, userId: string, role: string): Promise; removeProjectMember(projectId: string, userId: string): Promise; listVariables(query?: Record, limit?: number): Promise[]>; createVariable(key: string, value: string): Promise>; updateVariable(id: string, key: string, value: string): Promise; deleteVariable(id: string): Promise; listDataTables(query?: Record, limit?: number): Promise[]>; getDataTable(id: string): Promise>; createDataTable(body: unknown): Promise>; deleteDataTable(id: string): Promise; listDataTableRows(tableId: string, query?: Record, limit?: number): Promise[]>; addDataTableRows(tableId: string, data: unknown[]): Promise>; updateDataTableRows(tableId: string, filter: unknown, data: unknown): Promise; upsertDataTableRows(tableId: string, filter: unknown, data: unknown): Promise; deleteDataTableRows(tableId: string, filter: string): Promise; listUsers(query?: Record, limit?: number): Promise[]>; getUser(id: string): Promise>; sourceControlPull(options?: { force?: boolean; }): Promise>; exportPackage(fields: ExportPackageFields): Promise; private parseExportCounts; importPackage(file: { buffer: Buffer; filename: string; }, fields: ImportPackageFields): Promise; importPackageSelection(file: { buffer: Buffer; filename: string; }, fields: ImportPackageSelectionFields): Promise; audit(categories?: string[]): Promise>; } //#endregion export { ApiError, ApplyPackageResult, ClientOptions, ExportPackageCounts, ExportPackageFields, ExportPackageResult, ImportPackageCounts, ImportPackageFields, ImportPackageSelectionFields, N8nClient, PaginatedResponse, PromotePackageResult, PromotionApplyCheck, PromotionBranch, PromotionCheckoutResult, PromotionDirection, PromotionExpectedSource, PromotionGitResult, PromotionMissingProjectList, type PromotionPreview, PromotionProjectDeletion, PromotionProviderCreatedResult, PromotionRepository, PromotionSelection };