/** * The services every app in a workspace shares, in the order first-run * "Choose your setup" and Settings › Organization › Infrastructure list them. * First-run reads them through the app profile (`getOnboardingAppProfile`) * and Infrastructure renders one Services row per entry, so a service added * here shows up in both. * * Client-safe: no server imports. */ import type { OnboardingCapability, WorkspaceBuilderIncludedServiceId, WorkspaceBuilderOnlyServiceId, WorkspaceProviderServiceId } from "./types.js"; export type { WorkspaceBuilderIncludedServiceId, WorkspaceBuilderOnlyServiceId, WorkspaceProviderServiceId, WorkspaceServiceId, } from "./types.js"; export type WorkspaceService = WorkspaceServiceFields & (/** Settings › Model owns the providers. */ { kind: "model"; id: "model"; } | /** The shared S3-compatible storage form (`manage-file-storage`). */ { kind: "storage"; id: "storage"; } | /** A provider picked per service (`manage-service-providers`). */ { kind: "provider"; id: WorkspaceProviderServiceId; } | /** Builder.io only; there is no bring-your-own path. */ { kind: "builder-only"; id: WorkspaceBuilderOnlyServiceId; } | /** Builder.io includes it, and a bring-your-own path is also available. */ { kind: "builder-included"; id: WorkspaceBuilderIncludedServiceId; }); export type WorkspaceServiceKind = WorkspaceService["kind"]; interface WorkspaceServiceFields { /** * Profile capability ids that stand for this service. An app profile that * declares one of them tailors the service's copy and can raise its setup * tag; otherwise `capability` is used. */ capabilityIds: readonly string[]; /** * Whether every app's first-run lists it. When false, only apps whose * profile declares it do; Infrastructure lists every service either way. */ everyApp: boolean; capability: OnboardingCapability; } export declare const LLM_CAPABILITY: OnboardingCapability; export declare const FILE_UPLOAD_STORAGE_CAPABILITY: OnboardingCapability; export declare const VOICE_INPUT_CAPABILITY: OnboardingCapability; export declare const IMAGE_GENERATION_CAPABILITY: OnboardingCapability; export declare const EMBEDDINGS_CAPABILITY: OnboardingCapability; export declare const DESIGN_SYSTEM_INTELLIGENCE_CAPABILITY: OnboardingCapability; export declare const BACKGROUND_AGENTS_CAPABILITY: OnboardingCapability; export declare const BROWSER_AUTOMATION_CAPABILITY: OnboardingCapability; export declare const WEB_SEARCH_CAPABILITY: OnboardingCapability; export declare const WORKSPACE_SERVICES: readonly WorkspaceService[]; /** The shared service a profile capability stands for, if any. */ export declare function workspaceServiceForCapability(capabilityId: string): WorkspaceService | undefined;