Type Alias Script

Script: {
    archived: boolean;
    cache_ttl?: number;
    codebase?: string;
    concurrency_key?: string;
    concurrency_time_window_s?: number;
    concurrent_limit?: number;
    content: string;
    created_at: string;
    created_by: string;
    dedicated_worker?: boolean;
    delete_after_use?: boolean;
    deleted: boolean;
    description: string;
    draft_only?: boolean;
    envs?: string[];
    extra_perms: {
        [key: string]: boolean;
    };
    has_draft?: boolean;
    hash: string;
    is_template: boolean;
    kind:
        | "script"
        | "failure"
        | "trigger"
        | "command"
        | "approval";
    language:
        | "python3"
        | "deno"
        | "go"
        | "bash"
        | "powershell"
        | "postgresql"
        | "mysql"
        | "bigquery"
        | "snowflake"
        | "mssql"
        | "graphql"
        | "nativets"
        | "bun"
        | "php";
    lock?: string;
    lock_error_logs?: string;
    no_main_func: boolean;
    parent_hashes?: string[];
    path: string;
    priority?: number;
    restart_unless_cancelled?: boolean;
    schema?: {
        [key: string]: unknown;
    };
    starred: boolean;
    summary: string;
    tag?: string;
    timeout?: number;
    visible_to_runner_only?: boolean;
    workspace_id?: string;
    ws_error_handler_muted?: boolean;
}

Type declaration

  • archived: boolean
  • Optionalcache_ttl?: number
  • Optionalcodebase?: string
  • Optionalconcurrency_key?: string
  • Optionalconcurrency_time_window_s?: number
  • Optionalconcurrent_limit?: number
  • content: string
  • created_at: string
  • created_by: string
  • Optionaldedicated_worker?: boolean
  • Optionaldelete_after_use?: boolean
  • deleted: boolean
  • description: string
  • Optionaldraft_only?: boolean
  • Optionalenvs?: string[]
  • extra_perms: {
        [key: string]: boolean;
    }
    • [key: string]: boolean
  • Optionalhas_draft?: boolean
  • hash: string
  • is_template: boolean
  • kind:
        | "script"
        | "failure"
        | "trigger"
        | "command"
        | "approval"
  • language:
        | "python3"
        | "deno"
        | "go"
        | "bash"
        | "powershell"
        | "postgresql"
        | "mysql"
        | "bigquery"
        | "snowflake"
        | "mssql"
        | "graphql"
        | "nativets"
        | "bun"
        | "php"
  • Optionallock?: string
  • Optionallock_error_logs?: string
  • no_main_func: boolean
  • Optionalparent_hashes?: string[]

    The first element is the direct parent of the script, the second is the parent of the first, etc

  • path: string
  • Optionalpriority?: number
  • Optionalrestart_unless_cancelled?: boolean
  • Optionalschema?: {
        [key: string]: unknown;
    }
    • [key: string]: unknown
  • starred: boolean
  • summary: string
  • Optionaltag?: string
  • Optionaltimeout?: number
  • Optionalvisible_to_runner_only?: boolean
  • Optionalworkspace_id?: string
  • Optionalws_error_handler_muted?: boolean