import "../../shared/workspace-name.mjs"; import "../../shared/client.mjs"; import { WorkspaceInfo } from "./transform.mjs"; import { z } from "zod"; //#region src/cli/commands/workspace/create.d.ts /** * Schema for workspace creation options * - name: 3-63 chars, lowercase alphanumeric and hyphens, cannot start/end with hyphen * - organizationId, folderId: optional UUIDs */ declare const createWorkspaceOptionsSchema: z.ZodObject<{ name: z.ZodString; region: z.ZodString; deleteProtection: z.ZodOptional; organizationId: z.ZodOptional; folderId: z.ZodOptional; ttl: z.ZodOptional; profile: z.ZodOptional; }, z.core.$strip>; export type CreateWorkspaceOptions = z.input; /** A created workspace, plus how recording its prune expiry went when one was requested. */ export type CreatedWorkspaceInfo = WorkspaceInfo & { ttl?: TtlWriteResult; }; /** * Create a new workspace with the given options. * @param options - Workspace creation options * @returns Created workspace info */ export declare function createWorkspace(options: CreateWorkspaceOptions): Promise; /** Outcome of recording a created workspace's prune expiry. */ export type TtlWriteResult = { state: "written"; expiresAt: Date; } | { state: "unconfirmed"; expiresAt: Date; requested: string; message: string; }; //#endregion