# 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

- ##### `Optional` cache_ttl?: number

- ##### `Optional` codebase?: string

- ##### `Optional` concurrency_key?: string

- ##### `Optional` concurrency_time_window_s?: number

- ##### `Optional` concurrent_limit?: number

- ##### content: string

- ##### created_at: string

- ##### created_by: string

- ##### `Optional` dedicated_worker?: boolean

- ##### `Optional` delete_after_use?: boolean

- ##### deleted: boolean

- ##### description: string

- ##### `Optional` draft_only?: boolean

- ##### `Optional` envs?: string[]

- ##### extra_perms: {
  [key: string]: boolean;
  }

  - ##### [key: string]: boolean

- ##### `Optional` 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"

- ##### `Optional` lock?: string

- ##### `Optional` lock_error_logs?: string

- ##### no_main_func: boolean

- ##### `Optional` parent_hashes?: string[]

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

- ##### path: string

- ##### `Optional` priority?: number

- ##### `Optional` restart_unless_cancelled?: boolean

- ##### `Optional` schema?: {
  [key: string]: unknown;
  }

  - ##### [key: string]: unknown

- ##### starred: boolean

- ##### summary: string

- ##### `Optional` tag?: string

- ##### `Optional` timeout?: number

- ##### `Optional` visible_to_runner_only?: boolean

- ##### `Optional` workspace_id?: string

- ##### `Optional` ws_error_handler_muted?: boolean

- Defined in src/types.gen.ts:3