Variable appConfigSchemaConst
appConfigSchema: ZodObject<
{
hooks: ZodObject<
{
"on-conflict": ZodOptional<ZodNullable<ZodString>>;
"post-sync": ZodOptional<ZodNullable<ZodString>>;
"pre-sync": ZodOptional<ZodNullable<ZodString>>;
},
"strict",
ZodTypeAny,
{
"on-conflict"?: string
| null;
"post-sync"?: string | null;
"pre-sync"?: string | null;
},
{
"on-conflict"?: string
| null;
"post-sync"?: string | null;
"pre-sync"?: string | null;
},
>;
ignoreGlobal: ZodArray<ZodString, "many">;
mappings: ZodArray<
ZodObject<
{
conflict: ZodOptional<ZodEnum<["local", "remote", "ask", "backup"]>>;
deployMode: ZodOptional<ZodEnum<["inherit", "link", "copy"]>>;
ignore: ZodOptional<ZodArray<ZodString, "many">>;
local: ZodString;
name: ZodString;
postSync: ZodOptional<ZodNullable<ZodString>>;
preSync: ZodOptional<ZodNullable<ZodString>>;
profile: ZodOptional<ZodString>;
remotePath: ZodString;
respectGitignore: ZodOptional<ZodBoolean>;
sourcePath: ZodOptional<ZodString>;
sourceType: ZodOptional<ZodEnum<["inherit", "auto", "git", "file"]>>;
},
"strict",
ZodTypeAny,
{
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy" | "inherit";
ignore?: string[];
local: string;
name: string;
postSync?: string | null;
preSync?: string | null;
profile?: string;
remotePath: string;
respectGitignore?: boolean;
sourcePath?: string;
sourceType?: "auto" | "git" | "file" | "inherit";
},
{
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy" | "inherit";
ignore?: string[];
local: string;
name: string;
postSync?: string | null;
preSync?: string | null;
profile?: string;
remotePath: string;
respectGitignore?: boolean;
sourcePath?: string;
sourceType?: "auto" | "git" | "file" | "inherit";
},
>,
"many",
>;
profiles: ZodRecord<
ZodString,
ZodObject<
{
backupCount: ZodOptional<ZodNumber>;
conflict: ZodOptional<ZodEnum<["local", "remote", "ask", "backup"]>>;
deployMode: ZodOptional<ZodEnum<["link", "copy"]>>;
inherit: ZodOptional<ZodBoolean>;
sourceType: ZodOptional<ZodEnum<["auto", "git", "file"]>>;
strategy: ZodOptional<ZodEnum<["two-way", "push-only", "pull-only"]>>;
syncId: ZodOptional<ZodNullable<ZodString>>;
webdav: ZodOptional<
ZodObject<
{
auth: ZodOptional<
ZodObject<
{
account: ...;
password: ...;
saveToKeychain: ...;
service: ...;
type: ...;
username: ...;
},
"strip",
ZodTypeAny,
{
account?: ...;
password?: ...;
saveToKeychain?: ...;
service?: ...;
type: ...;
username?: ...;
},
{
account?: ...;
password?: ...;
saveToKeychain?: ...;
service?: ...;
type: ...;
username?: ...;
},
>,
>;
endpoint: ZodOptional<ZodString>;
options: ZodOptional<
ZodObject<
{
caCert: ...;
concurrency: ...;
depth: ...;
maxRetries: ...;
timeout: ...;
verifySsl: ...;
},
"strip",
ZodTypeAny,
{
caCert?: ...;
concurrency: ...;
depth: ...;
maxRetries: ...;
timeout: ...;
verifySsl: ...;
},
{
caCert?: ...;
concurrency: ...;
depth: ...;
maxRetries: ...;
timeout: ...;
verifySsl: ...;
},
>,
>;
remoteRoot: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
auth?: {
account?: (...)
| (...);
password?: (...) | (...) | (...);
saveToKeychain?: (...) | (...) | (...);
service?: (...) | (...);
type: (...) | (...) | (...) | (...);
username?: (...) | (...);
};
endpoint?: string;
options?: {
caCert?: (...)
| (...);
concurrency: number;
depth: (...) | (...) | (...);
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot?: string;
},
{
auth?: {
account?: (...)
| (...);
password?: (...) | (...) | (...);
saveToKeychain?: (...) | (...) | (...);
service?: (...) | (...);
type: (...) | (...) | (...) | (...);
username?: (...) | (...);
};
endpoint?: string;
options?: {
caCert?: (...)
| (...);
concurrency: number;
depth: (...) | (...) | (...);
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot?: string;
},
>,
>;
},
"strict",
ZodTypeAny,
{
backupCount?: number;
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy";
inherit?: boolean;
sourceType?: "auto" | "git" | "file";
strategy?: "two-way" | "push-only" | "pull-only";
syncId?: string | null;
webdav?: {
auth?: {
account?: string;
password?: string | null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint?: string;
options?: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot?: string;
};
},
{
backupCount?: number;
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy";
inherit?: boolean;
sourceType?: "auto" | "git" | "file";
strategy?: "two-way" | "push-only" | "pull-only";
syncId?: string | null;
webdav?: {
auth?: {
account?: string;
password?: string | null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint?: string;
options?: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot?: string;
};
},
>,
>;
syncId: ZodString;
version: ZodString;
webdav: ZodObject<
{
auth: ZodObject<
{
account: ZodOptional<ZodString>;
password: ZodOptional<ZodNullable<ZodString>>;
saveToKeychain: ZodOptional<ZodBoolean>;
service: ZodOptional<ZodString>;
type: ZodEnum<["env", "file", "keychain", "prompt"]>;
username: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
account?: string;
password?: string
| null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
},
{
account?: string;
password?: string
| null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
},
>;
endpoint: ZodString;
options: ZodObject<
{
caCert: ZodOptional<ZodString>;
concurrency: ZodNumber;
depth: ZodEnum<["infinity", "1", "0"]>;
maxRetries: ZodNumber;
timeout: ZodNumber;
verifySsl: ZodBoolean;
},
"strip",
ZodTypeAny,
{
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
},
{
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
},
>;
remoteRoot: ZodString;
},
"strip",
ZodTypeAny,
{
auth: {
account?: string;
password?: string
| null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint: string;
options: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot: string;
},
{
auth: {
account?: string;
password?: string
| null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint: string;
options: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot: string;
},
>;
},
"strip",
ZodTypeAny,
{
hooks: {
"on-conflict"?: string
| null;
"post-sync"?: string | null;
"pre-sync"?: string | null;
};
ignoreGlobal: string[];
mappings: {
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy" | "inherit";
ignore?: string[];
local: string;
name: string;
postSync?: string | null;
preSync?: string | null;
profile?: string;
remotePath: string;
respectGitignore?: boolean;
sourcePath?: string;
sourceType?: "auto" | "git" | "file" | "inherit";
}[];
profiles: Record<
string,
{
backupCount?: number;
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy";
inherit?: boolean;
sourceType?: "auto" | "git" | "file";
strategy?: "two-way" | "push-only" | "pull-only";
syncId?: string | null;
webdav?: {
auth?: {
account?: string;
password?: string | null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint?: string;
options?: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot?: string;
};
},
>;
syncId: string;
version: string;
webdav: {
auth: {
account?: string;
password?: string
| null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint: string;
options: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot: string;
};
},
{
hooks: {
"on-conflict"?: string
| null;
"post-sync"?: string | null;
"pre-sync"?: string | null;
};
ignoreGlobal: string[];
mappings: {
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy" | "inherit";
ignore?: string[];
local: string;
name: string;
postSync?: string | null;
preSync?: string | null;
profile?: string;
remotePath: string;
respectGitignore?: boolean;
sourcePath?: string;
sourceType?: "auto" | "git" | "file" | "inherit";
}[];
profiles: Record<
string,
{
backupCount?: number;
conflict?: "local"
| "remote"
| "ask"
| "backup";
deployMode?: "link" | "copy";
inherit?: boolean;
sourceType?: "auto" | "git" | "file";
strategy?: "two-way" | "push-only" | "pull-only";
syncId?: string | null;
webdav?: {
auth?: {
account?: string;
password?: string | null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint?: string;
options?: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot?: string;
};
},
>;
syncId: string;
version: string;
webdav: {
auth: {
account?: string;
password?: string
| null;
saveToKeychain?: boolean;
service?: string;
type: "file" | "env" | "keychain" | "prompt";
username?: string;
};
endpoint: string;
options: {
caCert?: string;
concurrency: number;
depth: "0"
| "infinity"
| "1";
maxRetries: number;
timeout: number;
verifySsl: boolean;
};
remoteRoot: string;
};
},
> = ...
Root configuration schema for the application.