Cotal TypeScript packages
    Preparing search index...

    Interface ServiceDefinitionInput

    The imported local definition, before files, references and an adapter are resolved. Parsing authorizes no launch and opens no referenced path. The controller must check those separately.

    interface ServiceDefinitionInput {
        credentialRef?: { kind: "file"; path: string };
        envRefs?: Readonly<Record<string, string>>;
        launch:
            | {
                args: readonly string[];
                cwd: string;
                executable: string;
                type: "process";
            }
            | {
                adapter: string;
                options: Readonly<Record<string, unknown>>;
                type: "adapter";
            };
        readiness: | { timeoutMs: number; type: "process" }
        | { expectedStatus: number; timeoutMs: number; type: "http"; url: string }
        | { timeoutMs: number; type: "adapter" };
        root?: string;
        schemaVersion: 1;
        space: string;
    }
    Index
    credentialRef?: { kind: "file"; path: string }
    envRefs?: Readonly<Record<string, string>>
    launch:
        | {
            args: readonly string[];
            cwd: string;
            executable: string;
            type: "process";
        }
        | {
            adapter: string;
            options: Readonly<Record<string, unknown>>;
            type: "adapter";
        }
    readiness:
        | { timeoutMs: number; type: "process" }
        | { expectedStatus: number; timeoutMs: number; type: "http"; url: string }
        | { timeoutMs: number; type: "adapter" }
    root?: string

    The space root service add saved the definition in. A definition an earlier release saved has none.

    schemaVersion: 1
    space: string