// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually. import type { Environment, Folder, GrpcRequest, HttpRequest, WebsocketRequest, Workspace } from "./gen_models"; export type BatchUpsertResult = { workspaces: Array, environments: Array, folders: Array, httpRequests: Array, grpcRequests: Array, websocketRequests: Array, }; /** * Where a staged import will be committed. * * The destination workspace and optional folder IDs are captured in the plan so the preview describes * the exact destination that confirmation will use. */ export type ImportDestination = { "type": "new_workspace" } | { "type": "existing_workspace", workspaceId: string, folderId?: string, }; export type ImportPlan = { importer: string, destination: ImportDestination, resources: BatchUpsertResult, warnings: Array, /** * Stable source key for every model in `resources`, keyed by its freshly minted ID. * * Committing the plan can persist these so a later import of the same document recognizes * which models it already created, instead of duplicating them. */ sourceKeys: { [key in string]?: string }, }; export type ImportPlanWarning = { title: string, detail: string, };