import { z } from 'zod'; /** * Project slugs are used as filenames under the OwnMail state directory and * as parts of Cloudflare resource names. Keep that boundary deliberately * narrower than an arbitrary string so CLI flags can never escape the state * directory. `__login__` is an in-memory internal sentinel and is never * persisted as a project. */ export declare const ProjectSlugSchema: z.ZodString; export declare const DEFAULT_SITE_NAME = "ownmail"; export declare const SiteNameSchema: z.ZodPipe>, z.ZodString>; /** * Persistent CLI state. Two files under ~/.config/ownmail (0600): * - auth.json: dashboard session + DPoP private key * - projects/.json: one deployed project * * Durable secrets (API key, session secret) live only as Cloudflare Worker * secrets. `pendingSecrets` tracks one-time setup secrets between minting and * deploy. New writes use the OS credential store when available; legacy or * fallback string values are scrubbed once setup verification succeeds. */ export declare const AuthStateSchema: z.ZodObject<{ userToken: z.ZodString; orgToken: z.ZodOptional; userPublicId: z.ZodOptional; orgPublicId: z.ZodOptional; dpopPrivateJwk: z.ZodRecord; updatedAt: z.ZodNumber; }, z.core.$strip>; export type AuthState = z.infer; export declare const StepIdSchema: z.ZodEnum<{ "api-key": "api-key"; app: "app"; "cf-auth": "cf-auth"; "cf-resources": "cf-resources"; connector: "connector"; "dashboard-auth": "dashboard-auth"; deploy: "deploy"; domain: "domain"; "domain-plan": "domain-plan"; grant: "grant"; hosting: "hosting"; org: "org"; "plan-confirmed": "plan-confirmed"; "redirect-uris": "redirect-uris"; "site-name": "site-name"; verify: "verify"; webhook: "webhook"; }>; export type StepId = z.infer; export declare const PendingSecretReferenceSchema: z.ZodObject<{ storage: z.ZodLiteral<"keyring">; service: z.ZodString; account: z.ZodString; }, z.core.$strip>; export type PendingSecretReference = z.infer; export declare const PendingSecretValueSchema: z.ZodUnion; service: z.ZodString; account: z.ZodString; }, z.core.$strip>]>; export type PendingSecretValue = z.infer; export declare const PendingSecretNameSchema: z.ZodEnum<{ apiKey: "apiKey"; appPassword: "appPassword"; clientSecret: "clientSecret"; sessionSecret: "sessionSecret"; }>; export type PendingSecretName = z.infer; export declare const ProjectStateSchema: z.ZodObject<{ slug: z.ZodString; siteName: z.ZodOptional>, z.ZodString>>; createdAt: z.ZodNumber; updatedAt: z.ZodNumber; region: z.ZodDefault>; orgPublicId: z.ZodOptional; hostingProvider: z.ZodOptional>; applicationId: z.ZodOptional; apiKeyId: z.ZodOptional; pendingApiKeyRotation: z.ZodOptional>; domainId: z.ZodOptional; domainAddress: z.ZodOptional; domainBranded: z.ZodOptional; domainVerified: z.ZodOptional; plannedDomainAddress: z.ZodOptional; plannedDomainBranded: z.ZodOptional; grantId: z.ZodOptional; inboxEmail: z.ZodOptional; workerName: z.ZodOptional; workersDevUrl: z.ZodOptional; providerAppUrl: z.ZodOptional; vercelProjectId: z.ZodOptional; vercelOrgId: z.ZodOptional; netlifySiteId: z.ZodOptional; localAppUrl: z.ZodOptional; localPort: z.ZodOptional; localDeployDir: z.ZodOptional; manualDeployDir: z.ZodOptional; manualAppUrl: z.ZodOptional; kvNamespaceId: z.ZodOptional; appDomain: z.ZodOptional; appDomains: z.ZodDefault>; pendingAppDomain: z.ZodOptional>; realtimeWebhookId: z.ZodOptional; templateVersion: z.ZodOptional; ejected: z.ZodDefault; completedSteps: z.ZodDefault>>; pendingSecrets: z.ZodDefault; service: z.ZodString; account: z.ZodString; }, z.core.$strip>]>>; clientSecret: z.ZodOptional; service: z.ZodString; account: z.ZodString; }, z.core.$strip>]>>; appPassword: z.ZodOptional; service: z.ZodString; account: z.ZodString; }, z.core.$strip>]>>; sessionSecret: z.ZodOptional; service: z.ZodString; account: z.ZodString; }, z.core.$strip>]>>; }, z.core.$strip>>; }, z.core.$strip>; export type ProjectState = z.infer; //# sourceMappingURL=schema.d.ts.map