diff --git a/frontend/src/lib/components/Editor.svelte b/frontend/src/lib/components/Editor.svelte index 73d7f08197..ede5b76139 100644 --- a/frontend/src/lib/components/Editor.svelte +++ b/frontend/src/lib/components/Editor.svelte @@ -4,7 +4,6 @@ import '@codingame/monaco-vscode-standalone-languages' import '@codingame/monaco-vscode-standalone-typescript-language-features' import processStdContent from '$lib/process.d.ts.txt?raw' - import windmillFetchContent from '$lib/windmill_fetch.d.ts.txt?raw' languages.typescript.typescriptDefaults.addExtraLib(processStdContent, 'process.d.ts') @@ -1179,24 +1178,6 @@ if (lang === 'typescript' && scriptLang != 'deno') { const hostname = getHostname() - // const stdLib = { content: libStdContent, filePath: 'es6.d.ts' } - if (scriptLang == 'bun' || scriptLang == 'bunnative') { - // const processLib = { content: processStdContent, filePath: 'process.d.ts' } - // const domLib = { content: domContent, filePath: 'dom.d.ts' } - // languages.typescript.typescriptDefaults.setExtraLibs([stdLib, domLib, processLib]) - } else { - // const denoFetch = { content: denoFetchContent, filePath: 'deno_fetch.d.ts' } - // languages.typescript.typescriptDefaults.setExtraLibs([stdLib, denoFetch]) - let localContent = windmillFetchContent - let p = '/tmp/monaco/windmill.d.ts' - let nuri = mUri.parse(p) - let localModel = meditor.getModel(nuri) - if (localModel) { - localModel.setValue(localContent) - } else { - meditor.createModel(localContent, 'typescript', nuri) - } - } if (scriptLang == 'bun' && ata == undefined) { const addLibraryToRuntime = async (code: string, _path: string) => { const path = 'file://' + _path diff --git a/frontend/src/lib/components/apps/editor/componentsPanel/themeUtils.ts b/frontend/src/lib/components/apps/editor/componentsPanel/themeUtils.ts index b6dddcc25f..e310236800 100644 --- a/frontend/src/lib/components/apps/editor/componentsPanel/themeUtils.ts +++ b/frontend/src/lib/components/apps/editor/componentsPanel/themeUtils.ts @@ -83,12 +83,17 @@ export async function resolveTheme( if (theme?.type === 'inlined') { css = theme.css } else if (theme?.type === 'path' && theme.path && workspace) { - let loadedCss = await ResourceService.getResourceValue({ - workspace: workspace, - path: theme.path - }) + let loadedCss: any = { value: '' } + try { + loadedCss = await ResourceService.getResourceValue({ + workspace: workspace, + path: theme.path + }) + } catch (e) { + console.error('Error loading theme', e) + } - css = (loadedCss as any).value ?? '' + css = (loadedCss as any)?.['value'] ?? '' } return css } diff --git a/frontend/src/lib/windmill_fetch.d.ts.txt b/frontend/src/lib/windmill_fetch.d.ts.txt deleted file mode 100644 index 7140c89545..0000000000 --- a/frontend/src/lib/windmill_fetch.d.ts.txt +++ /dev/null @@ -1,16966 +0,0 @@ -// Generated by dts-bundle-generator v9.5.1 - -export type ApiRequestOptions = { - readonly method: "GET" | "PUT" | "POST" | "DELETE" | "OPTIONS" | "HEAD" | "PATCH"; - readonly url: string; - readonly path?: Record; - readonly cookies?: Record; - readonly headers?: Record; - readonly query?: Record; - readonly formData?: Record; - readonly body?: any; - readonly mediaType?: string; - readonly responseHeader?: string; - readonly errors?: Record; -}; -export type ApiResult = { - readonly body: TData; - readonly ok: boolean; - readonly status: number; - readonly statusText: string; - readonly url: string; -}; -export declare class ApiError extends Error { - readonly url: string; - readonly status: number; - readonly statusText: string; - readonly body: unknown; - readonly request: ApiRequestOptions; - constructor(request: ApiRequestOptions, response: ApiResult, message: string); -} -export declare class CancelError extends Error { - constructor(message: string); - get isCancelled(): boolean; -} -export interface OnCancel { - readonly isResolved: boolean; - readonly isRejected: boolean; - readonly isCancelled: boolean; - (cancelHandler: () => void): void; -} -export declare class CancelablePromise implements Promise { - private _isResolved; - private _isRejected; - private _isCancelled; - readonly cancelHandlers: (() => void)[]; - readonly promise: Promise; - private _resolve?; - private _reject?; - constructor(executor: (resolve: (value: T | PromiseLike) => void, reject: (reason?: unknown) => void, onCancel: OnCancel) => void); - get [Symbol.toStringTag](): string; - then(onFulfilled?: ((value: T) => TResult1 | PromiseLike) | null, onRejected?: ((reason: unknown) => TResult2 | PromiseLike) | null): Promise; - catch(onRejected?: ((reason: unknown) => TResult | PromiseLike) | null): Promise; - finally(onFinally?: (() => void) | null): Promise; - cancel(): void; - get isCancelled(): boolean; -} -type Headers$1 = Record; -export type Middleware = (value: T) => T | Promise; -export type Resolver = (options: ApiRequestOptions) => Promise; -declare class Interceptors { - _fns: Middleware[]; - constructor(); - eject(fn: Middleware): void; - use(fn: Middleware): void; -} -export type OpenAPIConfig = { - BASE: string; - CREDENTIALS: "include" | "omit" | "same-origin"; - ENCODE_PATH?: ((path: string) => string) | undefined; - HEADERS?: Headers$1 | Resolver | undefined; - PASSWORD?: string | Resolver | undefined; - TOKEN?: string | Resolver | undefined; - USERNAME?: string | Resolver | undefined; - VERSION: string; - WITH_CREDENTIALS: boolean; - interceptors: { - request: Interceptors; - response: Interceptors; - }; -}; -export declare const OpenAPI: OpenAPIConfig; -export declare const $Script: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly hash: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly parent_hashes: { - readonly type: "array"; - readonly description: "The first element is the direct parent of the script, the second is the parent of the first, etc\n"; - readonly items: { - readonly type: "string"; - }; - }; - readonly summary: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly content: { - readonly type: "string"; - }; - readonly created_by: { - readonly type: "string"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly archived: { - readonly type: "boolean"; - }; - readonly schema: { - readonly type: "object"; - }; - readonly deleted: { - readonly type: "boolean"; - }; - readonly is_template: { - readonly type: "boolean"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - readonly lock: { - readonly type: "string"; - }; - readonly lock_error_logs: { - readonly type: "string"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "python3", - "deno", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets", - "bun" - ]; - }; - readonly kind: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "failure", - "trigger", - "command", - "approval" - ]; - }; - readonly starred: { - readonly type: "boolean"; - }; - readonly tag: { - readonly type: "string"; - }; - readonly has_draft: { - readonly type: "boolean"; - }; - readonly draft_only: { - readonly type: "boolean"; - }; - readonly envs: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly concurrent_limit: { - readonly type: "integer"; - }; - readonly concurrency_time_window_s: { - readonly type: "integer"; - }; - readonly cache_ttl: { - readonly type: "number"; - }; - readonly dedicated_worker: { - readonly type: "boolean"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly priority: { - readonly type: "integer"; - }; - readonly restart_unless_cancelled: { - readonly type: "boolean"; - }; - readonly timeout: { - readonly type: "integer"; - }; - readonly delete_after_use: { - readonly type: "boolean"; - }; - readonly visible_to_runner_only: { - readonly type: "boolean"; - }; - readonly no_main_func: { - readonly type: "boolean"; - }; - readonly codebase: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "hash", - "path", - "summary", - "description", - "content", - "created_by", - "created_at", - "archived", - "deleted", - "is_template", - "extra_perms", - "language", - "kind", - "starred", - "no_main_func" - ]; -}; -export declare const $NewScript: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly parent_hash: { - readonly type: "string"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly content: { - readonly type: "string"; - }; - readonly schema: { - readonly type: "object"; - }; - readonly is_template: { - readonly type: "boolean"; - }; - readonly lock: { - readonly type: "string"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "python3", - "deno", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets", - "bun" - ]; - }; - readonly kind: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "failure", - "trigger", - "command", - "approval" - ]; - }; - readonly tag: { - readonly type: "string"; - }; - readonly draft_only: { - readonly type: "boolean"; - }; - readonly envs: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly concurrent_limit: { - readonly type: "integer"; - }; - readonly concurrency_time_window_s: { - readonly type: "integer"; - }; - readonly cache_ttl: { - readonly type: "number"; - }; - readonly dedicated_worker: { - readonly type: "boolean"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly priority: { - readonly type: "integer"; - }; - readonly restart_unless_cancelled: { - readonly type: "boolean"; - }; - readonly timeout: { - readonly type: "integer"; - }; - readonly delete_after_use: { - readonly type: "boolean"; - }; - readonly deployment_message: { - readonly type: "string"; - }; - readonly concurrency_key: { - readonly type: "string"; - }; - readonly visible_to_runner_only: { - readonly type: "boolean"; - }; - readonly no_main_func: { - readonly type: "boolean"; - }; - readonly codebase: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "path", - "summary", - "description", - "content", - "language" - ]; -}; -export declare const $NewScriptWithDraft: { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/NewScript"; - }, - { - readonly type: "object"; - readonly properties: { - readonly draft: { - readonly $ref: "#/components/schemas/NewScript"; - }; - readonly hash: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "hash" - ]; - } - ]; -}; -export declare const $ScriptHistory: { - readonly type: "object"; - readonly properties: { - readonly script_hash: { - readonly type: "string"; - }; - readonly deployment_msg: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "script_hash" - ]; -}; -export declare const $ScriptArgs: { - readonly type: "object"; - readonly additionalProperties: {}; -}; -export declare const $Input: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - readonly args: { - readonly type: "object"; - }; - readonly created_by: { - readonly type: "string"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly is_public: { - readonly type: "boolean"; - }; - readonly success: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "id", - "name", - "args", - "created_by", - "created_at", - "is_public" - ]; -}; -export declare const $CreateInput: { - readonly type: "object"; - readonly properties: { - readonly name: { - readonly type: "string"; - }; - readonly args: { - readonly type: "object"; - }; - }; - readonly required: readonly [ - "name", - "args", - "created_by" - ]; -}; -export declare const $UpdateInput: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - readonly is_public: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "id", - "name", - "is_public" - ]; -}; -export declare const $RunnableType: { - readonly type: "string"; - readonly enum: readonly [ - "ScriptHash", - "ScriptPath", - "FlowPath" - ]; -}; -export declare const $QueuedJob: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly id: { - readonly type: "string"; - readonly format: "uuid"; - }; - readonly parent_job: { - readonly type: "string"; - readonly format: "uuid"; - }; - readonly created_by: { - readonly type: "string"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly started_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly scheduled_for: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly running: { - readonly type: "boolean"; - }; - readonly script_path: { - readonly type: "string"; - }; - readonly script_hash: { - readonly type: "string"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly logs: { - readonly type: "string"; - }; - readonly raw_code: { - readonly type: "string"; - }; - readonly canceled: { - readonly type: "boolean"; - }; - readonly canceled_by: { - readonly type: "string"; - }; - readonly canceled_reason: { - readonly type: "string"; - }; - readonly last_ping: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly job_kind: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "preview", - "dependencies", - "flowdependencies", - "appdependencies", - "flow", - "flowpreview", - "script_hub", - "identity", - "deploymentcallback", - "singlescriptflow" - ]; - }; - readonly schedule_path: { - readonly type: "string"; - }; - readonly permissioned_as: { - readonly type: "string"; - readonly description: "The user (u/userfoo) or group (g/groupfoo) whom \nthe execution of this script will be permissioned_as and by extension its DT_TOKEN.\n"; - }; - readonly flow_status: { - readonly $ref: "#/components/schemas/FlowStatus"; - }; - readonly raw_flow: { - readonly $ref: "#/components/schemas/FlowValue"; - }; - readonly is_flow_step: { - readonly type: "boolean"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "python3", - "deno", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets", - "bun" - ]; - }; - readonly email: { - readonly type: "string"; - }; - readonly visible_to_owner: { - readonly type: "boolean"; - }; - readonly mem_peak: { - readonly type: "integer"; - }; - readonly tag: { - readonly type: "string"; - }; - readonly priority: { - readonly type: "integer"; - }; - }; - readonly required: readonly [ - "id", - "running", - "canceled", - "job_kind", - "permissioned_as", - "is_flow_step", - "email", - "visible_to_owner", - "tag" - ]; -}; -export declare const $CompletedJob: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly id: { - readonly type: "string"; - readonly format: "uuid"; - }; - readonly parent_job: { - readonly type: "string"; - readonly format: "uuid"; - }; - readonly created_by: { - readonly type: "string"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly started_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly duration_ms: { - readonly type: "integer"; - }; - readonly success: { - readonly type: "boolean"; - }; - readonly script_path: { - readonly type: "string"; - }; - readonly script_hash: { - readonly type: "string"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly result: {}; - readonly logs: { - readonly type: "string"; - }; - readonly deleted: { - readonly type: "boolean"; - }; - readonly raw_code: { - readonly type: "string"; - }; - readonly canceled: { - readonly type: "boolean"; - }; - readonly canceled_by: { - readonly type: "string"; - }; - readonly canceled_reason: { - readonly type: "string"; - }; - readonly job_kind: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "preview", - "dependencies", - "flow", - "flowdependencies", - "appdependencies", - "flowpreview", - "script_hub", - "identity", - "deploymentcallback", - "singlescriptflow" - ]; - }; - readonly schedule_path: { - readonly type: "string"; - }; - readonly permissioned_as: { - readonly type: "string"; - readonly description: "The user (u/userfoo) or group (g/groupfoo) whom \nthe execution of this script will be permissioned_as and by extension its DT_TOKEN.\n"; - }; - readonly flow_status: { - readonly $ref: "#/components/schemas/FlowStatus"; - }; - readonly raw_flow: { - readonly $ref: "#/components/schemas/FlowValue"; - }; - readonly is_flow_step: { - readonly type: "boolean"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "python3", - "deno", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets", - "bun" - ]; - }; - readonly is_skipped: { - readonly type: "boolean"; - }; - readonly email: { - readonly type: "string"; - }; - readonly visible_to_owner: { - readonly type: "boolean"; - }; - readonly mem_peak: { - readonly type: "integer"; - }; - readonly tag: { - readonly type: "string"; - }; - readonly priority: { - readonly type: "integer"; - }; - readonly labels: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; - readonly required: readonly [ - "id", - "created_by", - "duration_ms", - "created_at", - "started_at", - "success", - "canceled", - "job_kind", - "permissioned_as", - "is_flow_step", - "is_skipped", - "email", - "visible_to_owner", - "tag" - ]; -}; -export declare const $Job: { - readonly oneOf: readonly [ - { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/CompletedJob"; - }, - { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "CompletedJob" - ]; - }; - }; - } - ]; - }, - { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/QueuedJob"; - }, - { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "QueuedJob" - ]; - }; - }; - } - ]; - } - ]; - readonly discriminator: { - readonly propertyName: "type"; - }; -}; -export declare const $User: { - readonly type: "object"; - readonly properties: { - readonly email: { - readonly type: "string"; - }; - readonly username: { - readonly type: "string"; - }; - readonly is_admin: { - readonly type: "boolean"; - }; - readonly is_super_admin: { - readonly type: "boolean"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly operator: { - readonly type: "boolean"; - }; - readonly disabled: { - readonly type: "boolean"; - }; - readonly groups: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly folders: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly folders_owners: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; - readonly required: readonly [ - "email", - "username", - "is_admin", - "is_super_admin", - "created_at", - "operator", - "disabled", - "folders", - "folders_owners" - ]; -}; -export declare const $UserUsage: { - readonly type: "object"; - readonly properties: { - readonly email: { - readonly type: "string"; - }; - readonly executions: { - readonly type: "number"; - }; - }; -}; -export declare const $Login: { - readonly type: "object"; - readonly properties: { - readonly email: { - readonly type: "string"; - }; - readonly password: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "email", - "password" - ]; -}; -export declare const $EditWorkspaceUser: { - readonly type: "object"; - readonly properties: { - readonly is_admin: { - readonly type: "boolean"; - }; - readonly operator: { - readonly type: "boolean"; - }; - readonly disabled: { - readonly type: "boolean"; - }; - }; -}; -export declare const $TruncatedToken: { - readonly type: "object"; - readonly properties: { - readonly label: { - readonly type: "string"; - }; - readonly expiration: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly token_prefix: { - readonly type: "string"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly last_used_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly scopes: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; - readonly required: readonly [ - "token_prefix", - "created_at", - "last_used_at" - ]; -}; -export declare const $NewToken: { - readonly type: "object"; - readonly properties: { - readonly label: { - readonly type: "string"; - }; - readonly expiration: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly scopes: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; -}; -export declare const $NewTokenImpersonate: { - readonly type: "object"; - readonly properties: { - readonly label: { - readonly type: "string"; - }; - readonly expiration: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly impersonate_email: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "impersonate_email" - ]; -}; -export declare const $ListableVariable: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly value: { - readonly type: "string"; - }; - readonly is_secret: { - readonly type: "boolean"; - }; - readonly description: { - readonly type: "string"; - }; - readonly account: { - readonly type: "integer"; - }; - readonly is_oauth: { - readonly type: "boolean"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - readonly is_expired: { - readonly type: "boolean"; - }; - readonly refresh_error: { - readonly type: "string"; - }; - readonly is_linked: { - readonly type: "boolean"; - }; - readonly is_refreshed: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "workspace_id", - "path", - "is_secret", - "extra_perms" - ]; -}; -export declare const $ContextualVariable: { - readonly type: "object"; - readonly properties: { - readonly name: { - readonly type: "string"; - }; - readonly value: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly is_custom: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "name", - "value", - "description", - "is_custom" - ]; -}; -export declare const $CreateVariable: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly value: { - readonly type: "string"; - }; - readonly is_secret: { - readonly type: "boolean"; - }; - readonly description: { - readonly type: "string"; - }; - readonly account: { - readonly type: "integer"; - }; - readonly is_oauth: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "path", - "value", - "is_secret", - "description" - ]; -}; -export declare const $EditVariable: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly value: { - readonly type: "string"; - }; - readonly is_secret: { - readonly type: "boolean"; - }; - readonly description: { - readonly type: "string"; - }; - }; -}; -export declare const $AuditLog: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "integer"; - }; - readonly timestamp: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly username: { - readonly type: "string"; - }; - readonly operation: { - readonly type: "string"; - readonly enum: readonly [ - "jobs.run", - "jobs.run.script", - "jobs.run.preview", - "jobs.run.flow", - "jobs.run.flow_preview", - "jobs.run.script_hub", - "jobs.run.dependencies", - "jobs.run.identity", - "jobs.run.noop", - "jobs.flow_dependencies", - "jobs", - "jobs.cancel", - "jobs.force_cancel", - "jobs.disapproval", - "jobs.delete", - "account.delete", - "openai.request", - "resources.create", - "resources.update", - "resources.delete", - "resource_types.create", - "resource_types.update", - "resource_types.delete", - "schedule.create", - "schedule.setenabled", - "schedule.edit", - "schedule.delete", - "scripts.create", - "scripts.update", - "scripts.archive", - "scripts.delete", - "users.create", - "users.delete", - "users.update", - "users.login", - "users.logout", - "users.accept_invite", - "users.decline_invite", - "users.token.create", - "users.token.delete", - "users.add_to_workspace", - "users.add_global", - "users.setpassword", - "users.impersonate", - "users.leave_workspace", - "oauth.login", - "oauth.signup", - "variables.create", - "variables.delete", - "variables.update", - "flows.create", - "flows.update", - "flows.delete", - "flows.archive", - "apps.create", - "apps.update", - "apps.delete", - "folder.create", - "folder.update", - "folder.delete", - "folder.add_owner", - "folder.remove_owner", - "group.create", - "group.delete", - "group.edit", - "group.adduser", - "group.removeuser", - "igroup.create", - "igroup.delete", - "igroup.adduser", - "igroup.removeuser", - "variables.decrypt_secret", - "workspaces.edit_command_script", - "workspaces.edit_deploy_to", - "workspaces.edit_auto_invite_domain", - "workspaces.edit_webhook", - "workspaces.edit_copilot_config", - "workspaces.edit_error_handler", - "workspaces.create", - "workspaces.update", - "workspaces.archive", - "workspaces.unarchive", - "workspaces.delete" - ]; - }; - readonly action_kind: { - readonly type: "string"; - readonly enum: readonly [ - "Created", - "Updated", - "Delete", - "Execute" - ]; - }; - readonly resource: { - readonly type: "string"; - }; - readonly parameters: { - readonly type: "object"; - }; - }; - readonly required: readonly [ - "id", - "timestamp", - "username", - "operation", - "action_kind" - ]; -}; -export declare const $MainArgSignature: { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "Valid", - "Invalid" - ]; - }; - readonly error: { - readonly type: "string"; - }; - readonly star_args: { - readonly type: "boolean"; - }; - readonly star_kwargs: { - readonly type: "boolean"; - }; - readonly args: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly name: { - readonly type: "string"; - }; - readonly typ: { - readonly oneOf: readonly [ - { - readonly type: "string"; - readonly enum: readonly [ - "float", - "int", - "bool", - "email", - "unknown", - "bytes", - "dict", - "datetime", - "sql" - ]; - }, - { - readonly type: "object"; - readonly properties: { - readonly resource: { - readonly type: "string"; - readonly nullable: true; - }; - }; - readonly required: readonly [ - "resource" - ]; - }, - { - readonly type: "object"; - readonly properties: { - readonly str: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - readonly nullable: true; - }; - }; - readonly required: readonly [ - "str" - ]; - }, - { - readonly type: "object"; - readonly properties: { - readonly object: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly key: { - readonly type: "string"; - }; - readonly typ: { - readonly oneOf: readonly [ - { - readonly type: "string"; - readonly enum: readonly [ - "float", - "int", - "bool", - "email", - "unknown", - "bytes", - "dict", - "datetime", - "sql" - ]; - }, - { - readonly type: "object"; - readonly properties: { - readonly str: {}; - }; - readonly required: readonly [ - "str" - ]; - } - ]; - }; - }; - readonly required: readonly [ - "key", - "typ" - ]; - }; - }; - }; - readonly required: readonly [ - "object" - ]; - }, - { - readonly type: "object"; - readonly properties: { - readonly list: { - readonly oneOf: readonly [ - { - readonly type: "string"; - readonly enum: readonly [ - "float", - "int", - "bool", - "email", - "unknown", - "bytes", - "dict", - "datetime", - "sql" - ]; - }, - { - readonly type: "object"; - readonly properties: { - readonly str: {}; - }; - readonly required: readonly [ - "str" - ]; - } - ]; - readonly nullable: true; - }; - }; - readonly required: readonly [ - "list" - ]; - } - ]; - }; - readonly has_default: { - readonly type: "boolean"; - }; - readonly default: {}; - }; - readonly required: readonly [ - "name", - "typ" - ]; - }; - }; - }; - readonly required: readonly [ - "star_args", - "start_kwargs", - "args", - "type", - "error" - ]; -}; -export declare const $Preview: { - readonly type: "object"; - readonly properties: { - readonly content: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "python3", - "deno", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets", - "bun" - ]; - }; - readonly tag: { - readonly type: "string"; - }; - readonly kind: { - readonly type: "string"; - readonly enum: readonly [ - "code", - "identity", - "http" - ]; - }; - readonly dedicated_worker: { - readonly type: "boolean"; - }; - readonly lock: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "args" - ]; -}; -export declare const $WorkflowTask: { - readonly type: "object"; - readonly properties: { - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - }; - readonly required: readonly [ - "args" - ]; -}; -export declare const $WorkflowStatusRecord: { - readonly type: "object"; - readonly additionalProperties: { - readonly $ref: "#/components/schemas/WorkflowStatus"; - }; -}; -export declare const $WorkflowStatus: { - readonly type: "object"; - readonly properties: { - readonly scheduled_for: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly started_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly duration_ms: { - readonly type: "number"; - }; - readonly name: { - readonly type: "string"; - }; - }; -}; -export declare const $CreateResource: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly value: {}; - readonly description: { - readonly type: "string"; - }; - readonly resource_type: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "path", - "value", - "resource_type" - ]; -}; -export declare const $EditResource: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly value: {}; - }; -}; -export declare const $Resource: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly resource_type: { - readonly type: "string"; - }; - readonly value: {}; - readonly is_oauth: { - readonly type: "boolean"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - }; - readonly required: readonly [ - "path", - "resource_type", - "is_oauth" - ]; -}; -export declare const $ListableResource: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly resource_type: { - readonly type: "string"; - }; - readonly value: {}; - readonly is_oauth: { - readonly type: "boolean"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - readonly is_expired: { - readonly type: "boolean"; - }; - readonly refresh_error: { - readonly type: "string"; - }; - readonly is_linked: { - readonly type: "boolean"; - }; - readonly is_refreshed: { - readonly type: "boolean"; - }; - readonly account: { - readonly type: "number"; - }; - }; - readonly required: readonly [ - "path", - "resource_type", - "is_oauth", - "is_linked", - "is_refreshed" - ]; -}; -export declare const $ResourceType: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - readonly schema: {}; - readonly description: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "name" - ]; -}; -export declare const $EditResourceType: { - readonly type: "object"; - readonly properties: { - readonly schema: {}; - readonly description: { - readonly type: "string"; - }; - }; -}; -export declare const $Schedule: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly edited_by: { - readonly type: "string"; - }; - readonly edited_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly schedule: { - readonly type: "string"; - }; - readonly timezone: { - readonly type: "string"; - }; - readonly enabled: { - readonly type: "boolean"; - }; - readonly script_path: { - readonly type: "string"; - }; - readonly is_flow: { - readonly type: "boolean"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - readonly email: { - readonly type: "string"; - }; - readonly error: { - readonly type: "string"; - }; - readonly on_failure: { - readonly type: "string"; - }; - readonly on_failure_times: { - readonly type: "number"; - }; - readonly on_failure_exact: { - readonly type: "boolean"; - }; - readonly on_failure_extra_args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly on_recovery: { - readonly type: "string"; - }; - readonly on_recovery_times: { - readonly type: "number"; - }; - readonly on_recovery_extra_args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly retry: { - readonly $ref: "#/components/schemas/Retry"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly no_flow_overlap: { - readonly type: "boolean"; - }; - readonly tag: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "path", - "edited_by", - "edited_at", - "schedule", - "script_path", - "timezone", - "extra_perms", - "is_flow", - "enabled", - "email" - ]; -}; -export declare const $ScheduleWJobs: { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/Schedule"; - }, - { - readonly type: "object"; - readonly properties: { - readonly jobs: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly success: { - readonly type: "boolean"; - }; - readonly duration_ms: { - readonly type: "number"; - }; - }; - readonly required: readonly [ - "id", - "success", - "duration_ms" - ]; - }; - }; - }; - } - ]; -}; -export declare const $NewSchedule: { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly schedule: { - readonly type: "string"; - }; - readonly timezone: { - readonly type: "string"; - }; - readonly script_path: { - readonly type: "string"; - }; - readonly is_flow: { - readonly type: "boolean"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly enabled: { - readonly type: "boolean"; - }; - readonly on_failure: { - readonly type: "string"; - }; - readonly on_failure_times: { - readonly type: "number"; - }; - readonly on_failure_exact: { - readonly type: "boolean"; - }; - readonly on_failure_extra_args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly on_recovery: { - readonly type: "string"; - }; - readonly on_recovery_times: { - readonly type: "number"; - }; - readonly on_recovery_extra_args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly retry: { - readonly $ref: "#/components/schemas/Retry"; - }; - readonly no_flow_overlap: { - readonly type: "boolean"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly tag: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "path", - "schedule", - "timezone", - "script_path", - "is_flow", - "args" - ]; -}; -export declare const $EditSchedule: { - readonly type: "object"; - readonly properties: { - readonly schedule: { - readonly type: "string"; - }; - readonly timezone: { - readonly type: "string"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly on_failure: { - readonly type: "string"; - }; - readonly on_failure_times: { - readonly type: "number"; - }; - readonly on_failure_exact: { - readonly type: "boolean"; - }; - readonly on_failure_extra_args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly on_recovery: { - readonly type: "string"; - }; - readonly on_recovery_times: { - readonly type: "number"; - }; - readonly on_recovery_extra_args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly retry: { - readonly $ref: "#/components/schemas/Retry"; - }; - readonly no_flow_overlap: { - readonly type: "boolean"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly tag: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "schedule", - "timezone", - "script_path", - "is_flow", - "args" - ]; -}; -export declare const $Group: { - readonly type: "object"; - readonly properties: { - readonly name: { - readonly type: "string"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly members: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - }; - readonly required: readonly [ - "name" - ]; -}; -export declare const $InstanceGroup: { - readonly type: "object"; - readonly properties: { - readonly name: { - readonly type: "string"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly emails: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; - readonly required: readonly [ - "name" - ]; -}; -export declare const $Folder: { - readonly type: "object"; - readonly properties: { - readonly name: { - readonly type: "string"; - }; - readonly owners: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - }; - readonly required: readonly [ - "name", - "owners", - "extra_perms" - ]; -}; -export declare const $WorkerPing: { - readonly type: "object"; - readonly properties: { - readonly worker: { - readonly type: "string"; - }; - readonly worker_instance: { - readonly type: "string"; - }; - readonly last_ping: { - readonly type: "number"; - }; - readonly started_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly ip: { - readonly type: "string"; - }; - readonly jobs_executed: { - readonly type: "integer"; - }; - readonly custom_tags: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly worker_group: { - readonly type: "string"; - }; - readonly wm_version: { - readonly type: "string"; - }; - readonly current_job_id: { - readonly type: "string"; - }; - readonly current_job_workspace_id: { - readonly type: "string"; - }; - readonly occupancy_rate: { - readonly type: "number"; - }; - }; - readonly required: readonly [ - "worker", - "worker_instance", - "ping_at", - "started_at", - "ip", - "jobs_executed", - "worker_group", - "wm_version" - ]; -}; -export declare const $UserWorkspaceList: { - readonly type: "object"; - readonly properties: { - readonly email: { - readonly type: "string"; - }; - readonly workspaces: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - readonly username: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "id", - "name", - "username" - ]; - }; - }; - }; - readonly required: readonly [ - "email", - "workspaces" - ]; -}; -export declare const $CreateWorkspace: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - readonly username: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "id", - "name" - ]; -}; -export declare const $Workspace: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - readonly owner: { - readonly type: "string"; - }; - readonly domain: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "id", - "name", - "owner" - ]; -}; -export declare const $WorkspaceInvite: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly email: { - readonly type: "string"; - }; - readonly is_admin: { - readonly type: "boolean"; - }; - readonly operator: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "workspace_id", - "email", - "is_admin", - "operator" - ]; -}; -export declare const $GlobalUserInfo: { - readonly type: "object"; - readonly properties: { - readonly email: { - readonly type: "string"; - }; - readonly login_type: { - readonly type: "string"; - readonly enum: readonly [ - "password", - "github" - ]; - }; - readonly super_admin: { - readonly type: "boolean"; - }; - readonly verified: { - readonly type: "boolean"; - }; - readonly name: { - readonly type: "string"; - }; - readonly company: { - readonly type: "string"; - }; - readonly username: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "email", - "login_type", - "super_admin", - "verified" - ]; -}; -export declare const $Flow: { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/OpenFlow"; - }, - { - readonly $ref: "#/components/schemas/FlowMetadata"; - } - ]; -}; -export declare const $ExtraPerms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; -}; -export declare const $FlowMetadata: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly edited_by: { - readonly type: "string"; - }; - readonly edited_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly archived: { - readonly type: "boolean"; - }; - readonly extra_perms: { - readonly $ref: "#/components/schemas/ExtraPerms"; - }; - readonly starred: { - readonly type: "boolean"; - }; - readonly draft_only: { - readonly type: "boolean"; - }; - readonly tag: { - readonly type: "string"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly priority: { - readonly type: "integer"; - }; - readonly dedicated_worker: { - readonly type: "boolean"; - }; - readonly timeout: { - readonly type: "number"; - }; - readonly visible_to_runner_only: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "path", - "edited_by", - "edited_at", - "archived", - "extra_perms" - ]; -}; -export declare const $OpenFlowWPath: { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/OpenFlow"; - }, - { - readonly type: "object"; - readonly properties: { - readonly path: { - readonly type: "string"; - }; - readonly tag: { - readonly type: "string"; - }; - readonly ws_error_handler_muted: { - readonly type: "boolean"; - }; - readonly priority: { - readonly type: "integer"; - }; - readonly dedicated_worker: { - readonly type: "boolean"; - }; - readonly timeout: { - readonly type: "number"; - }; - readonly visible_to_runner_only: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "path" - ]; - } - ]; -}; -export declare const $FlowPreview: { - readonly type: "object"; - readonly properties: { - readonly value: { - readonly $ref: "#/components/schemas/FlowValue"; - }; - readonly path: { - readonly type: "string"; - }; - readonly args: { - readonly $ref: "#/components/schemas/ScriptArgs"; - }; - readonly tag: { - readonly type: "string"; - }; - readonly restarted_from: { - readonly $ref: "#/components/schemas/RestartedFrom"; - }; - }; - readonly required: readonly [ - "value", - "content", - "args" - ]; -}; -export declare const $RestartedFrom: { - readonly type: "object"; - readonly properties: { - readonly flow_job_id: { - readonly type: "string"; - readonly format: "uuid"; - }; - readonly step_id: { - readonly type: "string"; - }; - readonly branch_or_iteration_n: { - readonly type: "integer"; - }; - }; -}; -export declare const $Policy: { - readonly type: "object"; - readonly properties: { - readonly triggerables: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "object"; - }; - }; - readonly triggerables_v2: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "object"; - }; - }; - readonly execution_mode: { - readonly type: "string"; - readonly enum: readonly [ - "viewer", - "publisher", - "anonymous" - ]; - }; - readonly on_behalf_of: { - readonly type: "string"; - }; - readonly on_behalf_of_email: { - readonly type: "string"; - }; - }; -}; -export declare const $ListableApp: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "integer"; - }; - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly version: { - readonly type: "integer"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - readonly starred: { - readonly type: "boolean"; - }; - readonly edited_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly execution_mode: { - readonly type: "string"; - readonly enum: readonly [ - "viewer", - "publisher", - "anonymous" - ]; - }; - }; - readonly required: readonly [ - "id", - "workspace_id", - "path", - "summary", - "version", - "extra_perms", - "edited_at", - "execution_mode" - ]; -}; -export declare const $ListableRawApp: { - readonly type: "object"; - readonly properties: { - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - readonly starred: { - readonly type: "boolean"; - }; - readonly version: { - readonly type: "number"; - }; - readonly edited_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - }; - readonly required: readonly [ - "workspace_id", - "path", - "summary", - "extra_perms", - "version", - "edited_at" - ]; -}; -export declare const $AppWithLastVersion: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "integer"; - }; - readonly workspace_id: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly versions: { - readonly type: "array"; - readonly items: { - readonly type: "integer"; - }; - }; - readonly created_by: { - readonly type: "string"; - }; - readonly created_at: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly value: { - readonly type: "object"; - }; - readonly policy: { - readonly $ref: "#/components/schemas/Policy"; - }; - readonly execution_mode: { - readonly type: "string"; - readonly enum: readonly [ - "viewer", - "publisher", - "anonymous" - ]; - }; - readonly extra_perms: { - readonly type: "object"; - readonly additionalProperties: { - readonly type: "boolean"; - }; - }; - }; - readonly required: readonly [ - "id", - "workspace_id", - "path", - "summary", - "versions", - "created_by", - "created_at", - "value", - "policy", - "execution_mode", - "extra_perms" - ]; -}; -export declare const $AppWithLastVersionWDraft: { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/AppWithLastVersion"; - }, - { - readonly type: "object"; - readonly properties: { - readonly draft_only: { - readonly type: "boolean"; - }; - readonly draft: {}; - }; - } - ]; -}; -export declare const $AppHistory: { - readonly type: "object"; - readonly properties: { - readonly version: { - readonly type: "integer"; - }; - readonly deployment_msg: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "version" - ]; -}; -export declare const $SlackToken: { - readonly type: "object"; - readonly properties: { - readonly access_token: { - readonly type: "string"; - }; - readonly team_id: { - readonly type: "string"; - }; - readonly team_name: { - readonly type: "string"; - }; - readonly bot: { - readonly type: "object"; - readonly properties: { - readonly bot_access_token: { - readonly type: "string"; - }; - }; - }; - }; - readonly required: readonly [ - "access_token", - "team_id", - "team_name", - "bot" - ]; -}; -export declare const $TokenResponse: { - readonly type: "object"; - readonly properties: { - readonly access_token: { - readonly type: "string"; - }; - readonly expires_in: { - readonly type: "integer"; - }; - readonly refresh_token: { - readonly type: "string"; - }; - readonly scope: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; - readonly required: readonly [ - "access_token" - ]; -}; -export declare const $HubScriptKind: { - readonly name: "kind"; - readonly schema: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "failure", - "trigger", - "approval" - ]; - }; -}; -export declare const $PolarsClientKwargs: { - readonly type: "object"; - readonly properties: { - readonly region_name: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "region_name" - ]; -}; -export declare const $LargeFileStorage: { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "S3Storage", - "AzureBlobStorage", - "AzureWorkloadIdentity", - "S3AwsOidc" - ]; - }; - readonly s3_resource_path: { - readonly type: "string"; - }; - readonly azure_blob_resource_path: { - readonly type: "string"; - }; - readonly public_resource: { - readonly type: "boolean"; - }; - }; -}; -export declare const $WindmillLargeFile: { - readonly type: "object"; - readonly properties: { - readonly s3: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "s3" - ]; -}; -export declare const $WindmillFileMetadata: { - readonly type: "object"; - readonly properties: { - readonly mime_type: { - readonly type: "string"; - }; - readonly size_in_bytes: { - readonly type: "integer"; - }; - readonly last_modified: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly expires: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly version_id: { - readonly type: "string"; - }; - }; -}; -export declare const $WindmillFilePreview: { - readonly type: "object"; - readonly properties: { - readonly msg: { - readonly type: "string"; - }; - readonly content: { - readonly type: "string"; - }; - readonly content_type: { - readonly type: "string"; - readonly enum: readonly [ - "RawText", - "Csv", - "Parquet", - "Unknown" - ]; - }; - }; - readonly required: readonly [ - "content_type" - ]; -}; -export declare const $S3Resource: { - readonly type: "object"; - readonly properties: { - readonly bucket: { - readonly type: "string"; - }; - readonly region: { - readonly type: "string"; - }; - readonly endPoint: { - readonly type: "string"; - }; - readonly useSSL: { - readonly type: "boolean"; - }; - readonly accessKey: { - readonly type: "string"; - }; - readonly secretKey: { - readonly type: "string"; - }; - readonly pathStyle: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "bucket", - "region", - "endPoint", - "useSSL", - "pathStyle" - ]; -}; -export declare const $WorkspaceGitSyncSettings: { - readonly type: "object"; - readonly properties: { - readonly include_path: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly include_type: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "flow", - "app", - "folder", - "resource", - "variable", - "secret", - "resourcetype", - "schedule", - "user", - "group" - ]; - }; - }; - readonly repositories: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/GitRepositorySettings"; - }; - }; - }; -}; -export declare const $WorkspaceDefaultScripts: { - readonly type: "object"; - readonly properties: { - readonly order: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly hidden: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly default_script_content: { - readonly additionalProperties: { - readonly type: "string"; - }; - }; - }; -}; -export declare const $GitRepositorySettings: { - readonly type: "object"; - readonly properties: { - readonly script_path: { - readonly type: "string"; - }; - readonly git_repo_resource_path: { - readonly type: "string"; - }; - readonly use_individual_branch: { - readonly type: "boolean"; - }; - readonly group_by_folder: { - readonly type: "boolean"; - }; - readonly exclude_types_override: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - readonly enum: readonly [ - "script", - "flow", - "app", - "folder", - "resource", - "variable", - "secret", - "resourcetype", - "schedule", - "user", - "group" - ]; - }; - }; - }; - readonly required: readonly [ - "script_path", - "git_repo_resource_path" - ]; -}; -export declare const $UploadFilePart: { - readonly type: "object"; - readonly properties: { - readonly part_number: { - readonly type: "integer"; - }; - readonly tag: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "part_number", - "tag" - ]; -}; -export declare const $MetricMetadata: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly name: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "id" - ]; -}; -export declare const $ScalarMetric: { - readonly type: "object"; - readonly properties: { - readonly metric_id: { - readonly type: "string"; - }; - readonly value: { - readonly type: "number"; - }; - }; - readonly required: readonly [ - "id", - "value" - ]; -}; -export declare const $TimeseriesMetric: { - readonly type: "object"; - readonly properties: { - readonly metric_id: { - readonly type: "string"; - }; - readonly values: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/MetricDataPoint"; - }; - }; - }; - readonly required: readonly [ - "id", - "values" - ]; -}; -export declare const $MetricDataPoint: { - readonly type: "object"; - readonly properties: { - readonly timestamp: { - readonly type: "string"; - readonly format: "date-time"; - }; - readonly value: { - readonly type: "number"; - }; - }; - readonly required: readonly [ - "timestamp", - "value" - ]; -}; -export declare const $RawScriptForDependencies: { - readonly type: "object"; - readonly properties: { - readonly raw_code: { - readonly type: "string"; - }; - readonly path: { - readonly type: "string"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "python3", - "deno", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets", - "bun" - ]; - }; - }; - readonly required: readonly [ - "raw_code", - "path", - "language" - ]; -}; -export declare const $ConcurrencyGroup: { - readonly type: "object"; - readonly properties: { - readonly concurrency_id: { - readonly type: "string"; - }; - readonly job_uuids: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - }; - readonly required: readonly [ - "concurrency_id", - "job_uuids" - ]; -}; -export declare const $OpenFlow: { - readonly type: "object"; - readonly properties: { - readonly summary: { - readonly type: "string"; - }; - readonly description: { - readonly type: "string"; - }; - readonly value: { - readonly $ref: "#/components/schemas/FlowValue"; - }; - readonly schema: { - readonly type: "object"; - }; - }; - readonly required: readonly [ - "summary", - "value" - ]; -}; -export declare const $FlowValue: { - readonly type: "object"; - readonly properties: { - readonly modules: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - }; - readonly failure_module: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - readonly same_worker: { - readonly type: "boolean"; - }; - readonly concurrent_limit: { - readonly type: "number"; - }; - readonly concurrency_key: { - readonly type: "string"; - }; - readonly concurrency_time_window_s: { - readonly type: "number"; - }; - readonly skip_expr: { - readonly type: "string"; - }; - readonly cache_ttl: { - readonly type: "number"; - }; - readonly priority: { - readonly type: "number"; - }; - readonly early_return: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "modules" - ]; -}; -export declare const $Retry: { - readonly type: "object"; - readonly properties: { - readonly constant: { - readonly type: "object"; - readonly properties: { - readonly attempts: { - readonly type: "integer"; - }; - readonly seconds: { - readonly type: "integer"; - }; - }; - }; - readonly exponential: { - readonly type: "object"; - readonly properties: { - readonly attempts: { - readonly type: "integer"; - }; - readonly multiplier: { - readonly type: "integer"; - }; - readonly seconds: { - readonly type: "integer"; - }; - readonly random_factor: { - readonly type: "integer"; - readonly minimum: 0; - readonly maximum: 100; - }; - }; - }; - }; -}; -export declare const $FlowModule: { - readonly type: "object"; - readonly properties: { - readonly id: { - readonly type: "string"; - }; - readonly value: { - readonly $ref: "#/components/schemas/FlowModuleValue"; - }; - readonly stop_after_if: { - readonly type: "object"; - readonly properties: { - readonly skip_if_stopped: { - readonly type: "boolean"; - }; - readonly expr: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "expr" - ]; - }; - readonly sleep: { - readonly $ref: "#/components/schemas/InputTransform"; - }; - readonly cache_ttl: { - readonly type: "number"; - }; - readonly timeout: { - readonly type: "number"; - }; - readonly delete_after_use: { - readonly type: "boolean"; - }; - readonly summary: { - readonly type: "string"; - }; - readonly mock: { - readonly type: "object"; - readonly properties: { - readonly enabled: { - readonly type: "boolean"; - }; - readonly return_value: {}; - }; - }; - readonly suspend: { - readonly type: "object"; - readonly properties: { - readonly required_events: { - readonly type: "integer"; - }; - readonly timeout: { - readonly type: "integer"; - }; - readonly resume_form: { - readonly type: "object"; - readonly properties: { - readonly schema: { - readonly type: "object"; - }; - }; - }; - readonly user_auth_required: { - readonly type: "boolean"; - }; - readonly user_groups_required: { - readonly $ref: "#/components/schemas/InputTransform"; - }; - readonly self_approval_disabled: { - readonly type: "boolean"; - }; - readonly hide_cancel: { - readonly type: "boolean"; - }; - }; - }; - readonly priority: { - readonly type: "number"; - }; - readonly continue_on_error: { - readonly type: "boolean"; - }; - readonly retry: { - readonly $ref: "#/components/schemas/Retry"; - }; - }; - readonly required: readonly [ - "value", - "id" - ]; -}; -export declare const $InputTransform: { - readonly oneOf: readonly [ - { - readonly $ref: "#/components/schemas/StaticTransform"; - }, - { - readonly $ref: "#/components/schemas/JavascriptTransform"; - } - ]; - readonly discriminator: { - readonly propertyName: "type"; - readonly mapping: { - readonly static: "#/components/schemas/StaticTransform"; - readonly javascript: "#/components/schemas/JavascriptTransform"; - }; - }; -}; -export declare const $StaticTransform: { - readonly type: "object"; - readonly properties: { - readonly value: {}; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "javascript" - ]; - }; - }; - readonly required: readonly [ - "expr", - "type" - ]; -}; -export declare const $JavascriptTransform: { - readonly type: "object"; - readonly properties: { - readonly expr: { - readonly type: "string"; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "javascript" - ]; - }; - }; - readonly required: readonly [ - "expr", - "type" - ]; -}; -export declare const $FlowModuleValue: { - readonly oneOf: readonly [ - { - readonly $ref: "#/components/schemas/RawScript"; - }, - { - readonly $ref: "#/components/schemas/PathScript"; - }, - { - readonly $ref: "#/components/schemas/PathFlow"; - }, - { - readonly $ref: "#/components/schemas/ForloopFlow"; - }, - { - readonly $ref: "#/components/schemas/WhileloopFlow"; - }, - { - readonly $ref: "#/components/schemas/BranchOne"; - }, - { - readonly $ref: "#/components/schemas/BranchAll"; - }, - { - readonly $ref: "#/components/schemas/Identity"; - } - ]; - readonly discriminator: { - readonly propertyName: "type"; - readonly mapping: { - readonly rawscript: "#/components/schemas/RawScript"; - readonly script: "#/components/schemas/PathScript"; - readonly flow: "#/components/schemas/PathFlow"; - readonly forloopflow: "#/components/schemas/ForloopFlow"; - readonly whileloopflow: "#/components/schemas/WhileloopFlow"; - readonly branchone: "#/components/schemas/BranchOne"; - readonly branchall: "#/components/schemas/BranchAll"; - readonly identity: "#/components/schemas/Identity"; - }; - }; -}; -export declare const $RawScript: { - readonly type: "object"; - readonly properties: { - readonly input_transforms: { - readonly type: "object"; - readonly additionalProperties: { - readonly $ref: "#/components/schemas/InputTransform"; - }; - }; - readonly content: { - readonly type: "string"; - }; - readonly language: { - readonly type: "string"; - readonly enum: readonly [ - "deno", - "bun", - "python3", - "go", - "bash", - "powershell", - "postgresql", - "mysql", - "bigquery", - "snowflake", - "mssql", - "graphql", - "nativets" - ]; - }; - readonly path: { - readonly type: "string"; - }; - readonly lock: { - readonly type: "string"; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "rawscript" - ]; - }; - readonly tag: { - readonly type: "string"; - }; - readonly concurrent_limit: { - readonly type: "number"; - }; - readonly concurrency_time_window_s: { - readonly type: "number"; - }; - }; - readonly required: readonly [ - "type", - "content", - "language", - "input_transforms" - ]; -}; -export declare const $PathScript: { - readonly type: "object"; - readonly properties: { - readonly input_transforms: { - readonly type: "object"; - readonly additionalProperties: { - readonly $ref: "#/components/schemas/InputTransform"; - }; - }; - readonly path: { - readonly type: "string"; - }; - readonly hash: { - readonly type: "string"; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "script" - ]; - }; - }; - readonly required: readonly [ - "type", - "path", - "input_transforms" - ]; -}; -export declare const $PathFlow: { - readonly type: "object"; - readonly properties: { - readonly input_transforms: { - readonly type: "object"; - readonly additionalProperties: { - readonly $ref: "#/components/schemas/InputTransform"; - }; - }; - readonly path: { - readonly type: "string"; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "flow" - ]; - }; - }; - readonly required: readonly [ - "type", - "path", - "input_transforms" - ]; -}; -export declare const $ForloopFlow: { - readonly type: "object"; - readonly properties: { - readonly modules: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - }; - readonly iterator: { - readonly $ref: "#/components/schemas/InputTransform"; - }; - readonly skip_failures: { - readonly type: "boolean"; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "forloopflow" - ]; - }; - readonly parallel: { - readonly type: "boolean"; - }; - readonly parallelism: { - readonly type: "integer"; - }; - }; - readonly required: readonly [ - "modules", - "iterator", - "skip_failures", - "type" - ]; -}; -export declare const $WhileloopFlow: { - readonly type: "object"; - readonly properties: { - readonly modules: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - }; - readonly skip_failures: { - readonly type: "boolean"; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "forloopflow" - ]; - }; - readonly parallel: { - readonly type: "boolean"; - }; - readonly parallelism: { - readonly type: "integer"; - }; - }; - readonly required: readonly [ - "modules", - "skip_failures", - "type" - ]; -}; -export declare const $BranchOne: { - readonly type: "object"; - readonly properties: { - readonly branches: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly summary: { - readonly type: "string"; - }; - readonly expr: { - readonly type: "string"; - }; - readonly modules: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - }; - }; - readonly required: readonly [ - "modules", - "expr" - ]; - }; - }; - readonly default: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - readonly required: readonly [ - "modules" - ]; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "branchone" - ]; - }; - }; - readonly required: readonly [ - "branches", - "default", - "type" - ]; -}; -export declare const $BranchAll: { - readonly type: "object"; - readonly properties: { - readonly branches: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly summary: { - readonly type: "string"; - }; - readonly skip_failure: { - readonly type: "boolean"; - }; - readonly modules: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowModule"; - }; - }; - }; - readonly required: readonly [ - "modules", - "expr" - ]; - }; - }; - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "branchall" - ]; - }; - readonly parallel: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "branches", - "type" - ]; -}; -export declare const $Identity: { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "identity" - ]; - }; - readonly flow: { - readonly type: "boolean"; - }; - }; - readonly required: readonly [ - "type" - ]; -}; -export declare const $FlowStatus: { - readonly type: "object"; - readonly properties: { - readonly step: { - readonly type: "integer"; - }; - readonly modules: { - readonly type: "array"; - readonly items: { - readonly $ref: "#/components/schemas/FlowStatusModule"; - }; - }; - readonly user_states: { - readonly additionalProperties: true; - }; - readonly failure_module: { - readonly allOf: readonly [ - { - readonly $ref: "#/components/schemas/FlowStatusModule"; - }, - { - readonly type: "object"; - readonly properties: { - readonly parent_module: { - readonly type: "string"; - }; - }; - } - ]; - }; - readonly retry: { - readonly type: "object"; - readonly properties: { - readonly fail_count: { - readonly type: "integer"; - }; - readonly failed_jobs: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - readonly format: "uuid"; - }; - }; - }; - }; - }; - readonly required: readonly [ - "step", - "modules", - "failure_module" - ]; -}; -export declare const $FlowStatusModule: { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "WaitingForPriorSteps", - "WaitingForEvents", - "WaitingForExecutor", - "InProgress", - "Success", - "Failure" - ]; - }; - readonly id: { - readonly type: "string"; - }; - readonly job: { - readonly type: "string"; - readonly format: "uuid"; - }; - readonly count: { - readonly type: "integer"; - }; - readonly iterator: { - readonly type: "object"; - readonly properties: { - readonly index: { - readonly type: "integer"; - }; - readonly itered: { - readonly type: "array"; - readonly items: {}; - }; - readonly args: {}; - }; - }; - readonly flow_jobs: { - readonly type: "array"; - readonly items: { - readonly type: "string"; - }; - }; - readonly branch_chosen: { - readonly type: "object"; - readonly properties: { - readonly type: { - readonly type: "string"; - readonly enum: readonly [ - "branch", - "default" - ]; - }; - readonly branch: { - readonly type: "integer"; - }; - }; - readonly required: readonly [ - "type" - ]; - }; - readonly branchall: { - readonly type: "object"; - readonly properties: { - readonly branch: { - readonly type: "integer"; - }; - readonly len: { - readonly type: "integer"; - }; - }; - readonly required: readonly [ - "branch", - "len" - ]; - }; - readonly approvers: { - readonly type: "array"; - readonly items: { - readonly type: "object"; - readonly properties: { - readonly resume_id: { - readonly type: "integer"; - }; - readonly approver: { - readonly type: "string"; - }; - }; - readonly required: readonly [ - "resume_id", - "approver" - ]; - }; - }; - }; - readonly required: readonly [ - "type" - ]; -}; -export type Script = { - workspace_id?: string; - hash: string; - path: string; - /** - * The first element is the direct parent of the script, the second is the parent of the first, etc - * - */ - parent_hashes?: Array<(string)>; - summary: string; - description: string; - content: string; - created_by: string; - created_at: string; - archived: boolean; - schema?: { - [key: string]: unknown; - }; - deleted: boolean; - is_template: boolean; - extra_perms: { - [key: string]: (boolean); - }; - lock?: string; - lock_error_logs?: string; - language: "python3" | "deno" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets" | "bun"; - kind: "script" | "failure" | "trigger" | "command" | "approval"; - starred: boolean; - tag?: string; - has_draft?: boolean; - draft_only?: boolean; - envs?: Array<(string)>; - concurrent_limit?: number; - concurrency_time_window_s?: number; - cache_ttl?: number; - dedicated_worker?: boolean; - ws_error_handler_muted?: boolean; - priority?: number; - restart_unless_cancelled?: boolean; - timeout?: number; - delete_after_use?: boolean; - visible_to_runner_only?: boolean; - no_main_func: boolean; - codebase?: string; -}; -export type NewScript = { - path: string; - parent_hash?: string; - summary: string; - description: string; - content: string; - schema?: { - [key: string]: unknown; - }; - is_template?: boolean; - lock?: string; - language: "python3" | "deno" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets" | "bun"; - kind?: "script" | "failure" | "trigger" | "command" | "approval"; - tag?: string; - draft_only?: boolean; - envs?: Array<(string)>; - concurrent_limit?: number; - concurrency_time_window_s?: number; - cache_ttl?: number; - dedicated_worker?: boolean; - ws_error_handler_muted?: boolean; - priority?: number; - restart_unless_cancelled?: boolean; - timeout?: number; - delete_after_use?: boolean; - deployment_message?: string; - concurrency_key?: string; - visible_to_runner_only?: boolean; - no_main_func?: boolean; - codebase?: string; -}; -export type NewScriptWithDraft = NewScript & { - draft?: NewScript; - hash: string; -}; -export type ScriptHistory = { - script_hash: string; - deployment_msg?: string; -}; -export type ScriptArgs = { - [key: string]: unknown; -}; -export type Input = { - id: string; - name: string; - args: { - [key: string]: unknown; - }; - created_by: string; - created_at: string; - is_public: boolean; - success?: boolean; -}; -export type CreateInput = { - name: string; - args: { - [key: string]: unknown; - }; -}; -export type UpdateInput = { - id: string; - name: string; - is_public: boolean; -}; -export type RunnableType = "ScriptHash" | "ScriptPath" | "FlowPath"; -export type QueuedJob = { - workspace_id?: string; - id: string; - parent_job?: string; - created_by?: string; - created_at?: string; - started_at?: string; - scheduled_for?: string; - running: boolean; - script_path?: string; - script_hash?: string; - args?: ScriptArgs; - logs?: string; - raw_code?: string; - canceled: boolean; - canceled_by?: string; - canceled_reason?: string; - last_ping?: string; - job_kind: "script" | "preview" | "dependencies" | "flowdependencies" | "appdependencies" | "flow" | "flowpreview" | "script_hub" | "identity" | "deploymentcallback" | "singlescriptflow"; - schedule_path?: string; - /** - * The user (u/userfoo) or group (g/groupfoo) whom - * the execution of this script will be permissioned_as and by extension its DT_TOKEN. - * - */ - permissioned_as: string; - flow_status?: FlowStatus; - raw_flow?: FlowValue; - is_flow_step: boolean; - language?: "python3" | "deno" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets" | "bun"; - email: string; - visible_to_owner: boolean; - mem_peak?: number; - tag: string; - priority?: number; -}; -export type CompletedJob = { - workspace_id?: string; - id: string; - parent_job?: string; - created_by: string; - created_at: string; - started_at: string; - duration_ms: number; - success: boolean; - script_path?: string; - script_hash?: string; - args?: ScriptArgs; - result?: unknown; - logs?: string; - deleted?: boolean; - raw_code?: string; - canceled: boolean; - canceled_by?: string; - canceled_reason?: string; - job_kind: "script" | "preview" | "dependencies" | "flow" | "flowdependencies" | "appdependencies" | "flowpreview" | "script_hub" | "identity" | "deploymentcallback" | "singlescriptflow"; - schedule_path?: string; - /** - * The user (u/userfoo) or group (g/groupfoo) whom - * the execution of this script will be permissioned_as and by extension its DT_TOKEN. - * - */ - permissioned_as: string; - flow_status?: FlowStatus; - raw_flow?: FlowValue; - is_flow_step: boolean; - language?: "python3" | "deno" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets" | "bun"; - is_skipped: boolean; - email: string; - visible_to_owner: boolean; - mem_peak?: number; - tag: string; - priority?: number; - labels?: Array<(string)>; -}; -export type Job = CompletedJob & { - type?: "CompletedJob"; -} | QueuedJob & { - type?: "QueuedJob"; -}; -export type User = { - email: string; - username: string; - is_admin: boolean; - is_super_admin: boolean; - created_at: string; - operator: boolean; - disabled: boolean; - groups?: Array<(string)>; - folders: Array<(string)>; - folders_owners: Array<(string)>; -}; -export type UserUsage = { - email?: string; - executions?: number; -}; -export type Login = { - email: string; - password: string; -}; -export type EditWorkspaceUser = { - is_admin?: boolean; - operator?: boolean; - disabled?: boolean; -}; -export type TruncatedToken = { - label?: string; - expiration?: string; - token_prefix: string; - created_at: string; - last_used_at: string; - scopes?: Array<(string)>; -}; -export type NewToken = { - label?: string; - expiration?: string; - scopes?: Array<(string)>; -}; -export type NewTokenImpersonate = { - label?: string; - expiration?: string; - impersonate_email: string; -}; -export type ListableVariable = { - workspace_id: string; - path: string; - value?: string; - is_secret: boolean; - description?: string; - account?: number; - is_oauth?: boolean; - extra_perms: { - [key: string]: (boolean); - }; - is_expired?: boolean; - refresh_error?: string; - is_linked?: boolean; - is_refreshed?: boolean; -}; -export type ContextualVariable = { - name: string; - value: string; - description: string; - is_custom: boolean; -}; -export type CreateVariable = { - path: string; - value: string; - is_secret: boolean; - description: string; - account?: number; - is_oauth?: boolean; -}; -export type EditVariable = { - path?: string; - value?: string; - is_secret?: boolean; - description?: string; -}; -export type AuditLog = { - id: number; - timestamp: string; - username: string; - operation: "jobs.run" | "jobs.run.script" | "jobs.run.preview" | "jobs.run.flow" | "jobs.run.flow_preview" | "jobs.run.script_hub" | "jobs.run.dependencies" | "jobs.run.identity" | "jobs.run.noop" | "jobs.flow_dependencies" | "jobs" | "jobs.cancel" | "jobs.force_cancel" | "jobs.disapproval" | "jobs.delete" | "account.delete" | "openai.request" | "resources.create" | "resources.update" | "resources.delete" | "resource_types.create" | "resource_types.update" | "resource_types.delete" | "schedule.create" | "schedule.setenabled" | "schedule.edit" | "schedule.delete" | "scripts.create" | "scripts.update" | "scripts.archive" | "scripts.delete" | "users.create" | "users.delete" | "users.update" | "users.login" | "users.logout" | "users.accept_invite" | "users.decline_invite" | "users.token.create" | "users.token.delete" | "users.add_to_workspace" | "users.add_global" | "users.setpassword" | "users.impersonate" | "users.leave_workspace" | "oauth.login" | "oauth.signup" | "variables.create" | "variables.delete" | "variables.update" | "flows.create" | "flows.update" | "flows.delete" | "flows.archive" | "apps.create" | "apps.update" | "apps.delete" | "folder.create" | "folder.update" | "folder.delete" | "folder.add_owner" | "folder.remove_owner" | "group.create" | "group.delete" | "group.edit" | "group.adduser" | "group.removeuser" | "igroup.create" | "igroup.delete" | "igroup.adduser" | "igroup.removeuser" | "variables.decrypt_secret" | "workspaces.edit_command_script" | "workspaces.edit_deploy_to" | "workspaces.edit_auto_invite_domain" | "workspaces.edit_webhook" | "workspaces.edit_copilot_config" | "workspaces.edit_error_handler" | "workspaces.create" | "workspaces.update" | "workspaces.archive" | "workspaces.unarchive" | "workspaces.delete"; - action_kind: "Created" | "Updated" | "Delete" | "Execute"; - resource?: string; - parameters?: { - [key: string]: unknown; - }; -}; -export type MainArgSignature = { - type: "Valid" | "Invalid"; - error: string; - star_args: boolean; - star_kwargs?: boolean; - args: Array<{ - name: string; - typ: "float" | "int" | "bool" | "email" | "unknown" | "bytes" | "dict" | "datetime" | "sql" | { - resource: string | null; - } | { - str: Array<(string)> | null; - } | { - object: Array<{ - key: string; - typ: "float" | "int" | "bool" | "email" | "unknown" | "bytes" | "dict" | "datetime" | "sql" | { - str: unknown; - }; - }>; - } | { - list: "float" | "int" | "bool" | "email" | "unknown" | "bytes" | "dict" | "datetime" | "sql" | { - str: unknown; - } | null; - }; - has_default?: boolean; - default?: unknown; - }>; -}; -export type Preview = { - content?: string; - path?: string; - args: ScriptArgs; - language?: "python3" | "deno" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets" | "bun"; - tag?: string; - kind?: "code" | "identity" | "http"; - dedicated_worker?: boolean; - lock?: string; -}; -export type WorkflowTask = { - args: ScriptArgs; -}; -export type WorkflowStatusRecord = { - [key: string]: WorkflowStatus; -}; -export type WorkflowStatus = { - scheduled_for?: string; - started_at?: string; - duration_ms?: number; - name?: string; -}; -export type CreateResource = { - path: string; - value: unknown; - description?: string; - resource_type: string; -}; -export type EditResource = { - path?: string; - description?: string; - value?: unknown; -}; -export type Resource = { - workspace_id?: string; - path: string; - description?: string; - resource_type: string; - value?: unknown; - is_oauth: boolean; - extra_perms?: { - [key: string]: (boolean); - }; -}; -export type ListableResource = { - workspace_id?: string; - path: string; - description?: string; - resource_type: string; - value?: unknown; - is_oauth: boolean; - extra_perms?: { - [key: string]: (boolean); - }; - is_expired?: boolean; - refresh_error?: string; - is_linked: boolean; - is_refreshed: boolean; - account?: number; -}; -export type ResourceType = { - workspace_id?: string; - name: string; - schema?: unknown; - description?: string; -}; -export type EditResourceType = { - schema?: unknown; - description?: string; -}; -export type Schedule = { - path: string; - edited_by: string; - edited_at: string; - schedule: string; - timezone: string; - enabled: boolean; - script_path: string; - is_flow: boolean; - args?: ScriptArgs; - extra_perms: { - [key: string]: (boolean); - }; - email: string; - error?: string; - on_failure?: string; - on_failure_times?: number; - on_failure_exact?: boolean; - on_failure_extra_args?: ScriptArgs; - on_recovery?: string; - on_recovery_times?: number; - on_recovery_extra_args?: ScriptArgs; - ws_error_handler_muted?: boolean; - retry?: Retry; - summary?: string; - no_flow_overlap?: boolean; - tag?: string; -}; -export type ScheduleWJobs = Schedule & { - jobs?: Array<{ - id: string; - success: boolean; - duration_ms: number; - }>; -}; -export type NewSchedule = { - path: string; - schedule: string; - timezone: string; - script_path: string; - is_flow: boolean; - args: ScriptArgs; - enabled?: boolean; - on_failure?: string; - on_failure_times?: number; - on_failure_exact?: boolean; - on_failure_extra_args?: ScriptArgs; - on_recovery?: string; - on_recovery_times?: number; - on_recovery_extra_args?: ScriptArgs; - ws_error_handler_muted?: boolean; - retry?: Retry; - no_flow_overlap?: boolean; - summary?: string; - tag?: string; -}; -export type EditSchedule = { - schedule: string; - timezone: string; - args: ScriptArgs; - on_failure?: string; - on_failure_times?: number; - on_failure_exact?: boolean; - on_failure_extra_args?: ScriptArgs; - on_recovery?: string; - on_recovery_times?: number; - on_recovery_extra_args?: ScriptArgs; - ws_error_handler_muted?: boolean; - retry?: Retry; - no_flow_overlap?: boolean; - summary?: string; - tag?: string; -}; -export type Group = { - name: string; - summary?: string; - members?: Array<(string)>; - extra_perms?: { - [key: string]: (boolean); - }; -}; -export type InstanceGroup = { - name: string; - summary?: string; - emails?: Array<(string)>; -}; -export type Folder = { - name: string; - owners: Array<(string)>; - extra_perms: { - [key: string]: (boolean); - }; -}; -export type WorkerPing = { - worker: string; - worker_instance: string; - last_ping?: number; - started_at: string; - ip: string; - jobs_executed: number; - custom_tags?: Array<(string)>; - worker_group: string; - wm_version: string; - current_job_id?: string; - current_job_workspace_id?: string; - occupancy_rate?: number; -}; -export type UserWorkspaceList = { - email: string; - workspaces: Array<{ - id: string; - name: string; - username: string; - }>; -}; -export type CreateWorkspace = { - id: string; - name: string; - username?: string; -}; -export type Workspace = { - id: string; - name: string; - owner: string; - domain?: string; -}; -export type WorkspaceInvite = { - workspace_id: string; - email: string; - is_admin: boolean; - operator: boolean; -}; -export type GlobalUserInfo = { - email: string; - login_type: "password" | "github"; - super_admin: boolean; - verified: boolean; - name?: string; - company?: string; - username?: string; -}; -export type Flow = OpenFlow & FlowMetadata; -export type ExtraPerms = { - [key: string]: (boolean); -}; -export type FlowMetadata = { - workspace_id?: string; - path: string; - edited_by: string; - edited_at: string; - archived: boolean; - extra_perms: ExtraPerms; - starred?: boolean; - draft_only?: boolean; - tag?: string; - ws_error_handler_muted?: boolean; - priority?: number; - dedicated_worker?: boolean; - timeout?: number; - visible_to_runner_only?: boolean; -}; -export type OpenFlowWPath = OpenFlow & { - path: string; - tag?: string; - ws_error_handler_muted?: boolean; - priority?: number; - dedicated_worker?: boolean; - timeout?: number; - visible_to_runner_only?: boolean; -}; -export type FlowPreview = { - value: FlowValue; - path?: string; - args: ScriptArgs; - tag?: string; - restarted_from?: RestartedFrom; -}; -export type RestartedFrom = { - flow_job_id?: string; - step_id?: string; - branch_or_iteration_n?: number; -}; -export type Policy = { - triggerables?: { - [key: string]: { - [key: string]: unknown; - }; - }; - triggerables_v2?: { - [key: string]: { - [key: string]: unknown; - }; - }; - execution_mode?: "viewer" | "publisher" | "anonymous"; - on_behalf_of?: string; - on_behalf_of_email?: string; -}; -export type ListableApp = { - id: number; - workspace_id: string; - path: string; - summary: string; - version: number; - extra_perms: { - [key: string]: (boolean); - }; - starred?: boolean; - edited_at: string; - execution_mode: "viewer" | "publisher" | "anonymous"; -}; -export type ListableRawApp = { - workspace_id: string; - path: string; - summary: string; - extra_perms: { - [key: string]: (boolean); - }; - starred?: boolean; - version: number; - edited_at: string; -}; -export type AppWithLastVersion = { - id: number; - workspace_id: string; - path: string; - summary: string; - versions: Array<(number)>; - created_by: string; - created_at: string; - value: { - [key: string]: unknown; - }; - policy: Policy; - execution_mode: "viewer" | "publisher" | "anonymous"; - extra_perms: { - [key: string]: (boolean); - }; -}; -export type AppWithLastVersionWDraft = AppWithLastVersion & { - draft_only?: boolean; - draft?: unknown; -}; -export type AppHistory = { - version: number; - deployment_msg?: string; -}; -export type SlackToken = { - access_token: string; - team_id: string; - team_name: string; - bot: { - bot_access_token?: string; - }; -}; -export type TokenResponse = { - access_token: string; - expires_in?: number; - refresh_token?: string; - scope?: Array<(string)>; -}; -export type HubScriptKind = unknown; -export type PolarsClientKwargs = { - region_name: string; -}; -export type LargeFileStorage = { - type?: "S3Storage" | "AzureBlobStorage" | "AzureWorkloadIdentity" | "S3AwsOidc"; - s3_resource_path?: string; - azure_blob_resource_path?: string; - public_resource?: boolean; -}; -export type WindmillLargeFile = { - s3: string; -}; -export type WindmillFileMetadata = { - mime_type?: string; - size_in_bytes?: number; - last_modified?: string; - expires?: string; - version_id?: string; -}; -export type WindmillFilePreview = { - msg?: string; - content?: string; - content_type: "RawText" | "Csv" | "Parquet" | "Unknown"; -}; -export type S3Resource = { - bucket: string; - region: string; - endPoint: string; - useSSL: boolean; - accessKey?: string; - secretKey?: string; - pathStyle: boolean; -}; -export type WorkspaceGitSyncSettings = { - include_path?: Array<(string)>; - include_type?: Array<("script" | "flow" | "app" | "folder" | "resource" | "variable" | "secret" | "resourcetype" | "schedule" | "user" | "group")>; - repositories?: Array; -}; -export type WorkspaceDefaultScripts = { - order?: Array<(string)>; - hidden?: Array<(string)>; - default_script_content?: unknown; -}; -export type GitRepositorySettings = { - script_path: string; - git_repo_resource_path: string; - use_individual_branch?: boolean; - group_by_folder?: boolean; - exclude_types_override?: Array<("script" | "flow" | "app" | "folder" | "resource" | "variable" | "secret" | "resourcetype" | "schedule" | "user" | "group")>; -}; -export type UploadFilePart = { - part_number: number; - tag: string; -}; -export type MetricMetadata = { - id: string; - name?: string; -}; -export type ScalarMetric = { - metric_id?: string; - value: number; -}; -export type TimeseriesMetric = { - metric_id?: string; - values: Array; -}; -export type MetricDataPoint = { - timestamp: string; - value: number; -}; -export type RawScriptForDependencies = { - raw_code: string; - path: string; - language: "python3" | "deno" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets" | "bun"; -}; -export type ConcurrencyGroup = { - concurrency_id: string; - job_uuids: Array<(string)>; -}; -export type OpenFlow = { - summary: string; - description?: string; - value: FlowValue; - schema?: { - [key: string]: unknown; - }; -}; -export type FlowValue = { - modules: Array; - failure_module?: FlowModule; - same_worker?: boolean; - concurrent_limit?: number; - concurrency_key?: string; - concurrency_time_window_s?: number; - skip_expr?: string; - cache_ttl?: number; - priority?: number; - early_return?: string; -}; -export type Retry = { - constant?: { - attempts?: number; - seconds?: number; - }; - exponential?: { - attempts?: number; - multiplier?: number; - seconds?: number; - random_factor?: number; - }; -}; -export type FlowModule = { - id: string; - value: FlowModuleValue; - stop_after_if?: { - skip_if_stopped?: boolean; - expr: string; - }; - sleep?: InputTransform; - cache_ttl?: number; - timeout?: number; - delete_after_use?: boolean; - summary?: string; - mock?: { - enabled?: boolean; - return_value?: unknown; - }; - suspend?: { - required_events?: number; - timeout?: number; - resume_form?: { - schema?: { - [key: string]: unknown; - }; - }; - user_auth_required?: boolean; - user_groups_required?: InputTransform; - self_approval_disabled?: boolean; - hide_cancel?: boolean; - }; - priority?: number; - continue_on_error?: boolean; - retry?: Retry; -}; -export type InputTransform = StaticTransform | JavascriptTransform; -export type StaticTransform = { - value?: unknown; - type: "static"; -}; -export type JavascriptTransform = { - expr: string; - type: "javascript"; -}; -export type FlowModuleValue = RawScript | PathScript | PathFlow | ForloopFlow | WhileloopFlow | BranchOne | BranchAll | Identity; -export type RawScript = { - input_transforms: { - [key: string]: InputTransform; - }; - content: string; - language: "deno" | "bun" | "python3" | "go" | "bash" | "powershell" | "postgresql" | "mysql" | "bigquery" | "snowflake" | "mssql" | "graphql" | "nativets"; - path?: string; - lock?: string; - type: "rawscript"; - tag?: string; - concurrent_limit?: number; - concurrency_time_window_s?: number; -}; -export type PathScript = { - input_transforms: { - [key: string]: InputTransform; - }; - path: string; - hash?: string; - type: "script"; -}; -export type PathFlow = { - input_transforms: { - [key: string]: InputTransform; - }; - path: string; - type: "flow"; -}; -export type ForloopFlow = { - modules: Array; - iterator: InputTransform; - skip_failures: boolean; - type: "forloopflow"; - parallel?: boolean; - parallelism?: number; -}; -export type WhileloopFlow = { - modules: Array; - skip_failures: boolean; - type: "whileloopflow"; - parallel?: boolean; - parallelism?: number; -}; -export type BranchOne = { - branches: Array<{ - summary?: string; - expr: string; - modules: Array; - }>; - default: Array; - type: "branchone"; -}; -export type BranchAll = { - branches: Array<{ - summary?: string; - skip_failure?: boolean; - modules: Array; - }>; - type: "branchall"; - parallel?: boolean; -}; -export type Identity = { - type: "identity"; - flow?: boolean; -}; -export type FlowStatus = { - step: number; - modules: Array; - user_states?: unknown; - failure_module: FlowStatusModule & { - parent_module?: string; - }; - retry?: { - fail_count?: number; - failed_jobs?: Array<(string)>; - }; -}; -export type FlowStatusModule = { - type: "WaitingForPriorSteps" | "WaitingForEvents" | "WaitingForExecutor" | "InProgress" | "Success" | "Failure"; - id?: string; - job?: string; - count?: number; - iterator?: { - index?: number; - itered?: Array; - args?: unknown; - }; - flow_jobs?: Array<(string)>; - branch_chosen?: { - type: "branch" | "default"; - branch?: number; - }; - branchall?: { - branch: number; - len: number; - }; - approvers?: Array<{ - resume_id: number; - approver: string; - }>; -}; -export type ParameterKey = string; -export type ParameterWorkspaceId = string; -export type ParameterVersionId = number; -export type ParameterToken = string; -export type ParameterAccountId = number; -export type ParameterClientName = string; -export type ParameterScriptPath = string; -export type ParameterScriptHash = string; -export type ParameterJobId = string; -export type ParameterPath = string; -export type ParameterPathId = number; -export type ParameterPathVersion = number; -export type ParameterName = string; -/** - * which page to return (start at 1, default 1) - */ -export type ParameterPage = number; -/** - * number of items to return for a given page (default 30, max 100) - */ -export type ParameterPerPage = number; -/** - * order by desc order (default true) - */ -export type ParameterOrderDesc = boolean; -/** - * mask to filter exact matching user creator - */ -export type ParameterCreatedBy = string; -/** - * mask to filter exact matching job's label (job labels are completed jobs with as a result an object containing a string in the array at key 'wm_labels') - */ -export type ParameterLabel = string; -/** - * The parent job that is at the origin and responsible for the execution of this script if any - */ -export type ParameterParentJob = string; -/** - * Override the tag to use - */ -export type ParameterWorkerTag = string; -/** - * Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl - */ -export type ParameterCacheTtl = string; -/** - * The job id to assign to the created job. if missing, job is chosen randomly using the ULID scheme. If a job id already exists in the queue or as a completed job, the request to create one will fail (Bad Request) - */ -export type ParameterNewJobId = string; -/** - * List of headers's keys (separated with ',') whove value are added to the args - * Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key - * - */ -export type ParameterIncludeHeader = string; -/** - * The maximum size of the queue for which the request would get rejected if that job would push it above that limit - * - */ -export type ParameterQueueLimit = string; -/** - * The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent - * `encodeURIComponent(btoa(JSON.stringify({a: 2})))` - * - */ -export type ParameterPayload = string; -/** - * mask to filter matching starting path - */ -export type ParameterScriptStartPath = string; -/** - * mask to filter by schedule path - */ -export type ParameterSchedulePath = string; -/** - * mask to filter exact matching path - */ -export type ParameterScriptExactPath = string; -/** - * mask to filter exact matching path - */ -export type ParameterScriptExactHash = string; -/** - * filter on started before (inclusive) timestamp - */ -export type ParameterStartedBefore = string; -/** - * filter on started after (exclusive) timestamp - */ -export type ParameterStartedAfter = string; -/** - * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp - */ -export type ParameterCreatedOrStartedAfter = string; -/** - * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp - */ -export type ParameterCreatedOrStartedBefore = string; -/** - * filter on successful jobs - */ -export type ParameterSuccess = boolean; -/** - * filter on jobs scheduled_for before now (hence waitinf for a worker) - */ -export type ParameterScheduledForBeforeNow = boolean; -/** - * filter on suspended jobs - */ -export type ParameterSuspended = boolean; -/** - * filter on running jobs - */ -export type ParameterRunning = boolean; -/** - * filter on jobs containing those args as a json subset (@> in postgres) - */ -export type ParameterArgsFilter = string; -/** - * filter on jobs with a given tag/worker group - */ -export type ParameterTag = string; -/** - * filter on jobs containing those result as a json subset (@> in postgres) - */ -export type ParameterResultFilter = string; -/** - * filter on created after (exclusive) timestamp - */ -export type ParameterAfter = string; -/** - * filter on created before (exclusive) timestamp - */ -export type ParameterBefore = string; -/** - * filter on exact username of user - */ -export type ParameterUsername = string; -/** - * filter on exact or prefix name of operation - */ -export type ParameterOperation = string; -/** - * filter on exact or prefix name of resource - */ -export type ParameterResourceName = string; -/** - * filter on type of operation - */ -export type ParameterActionKind = "Create" | "Update" | "Delete" | "Execute"; -/** - * filter on job kind (values 'preview', 'script', 'dependencies', 'flow') separated by, - */ -export type ParameterJobKinds = string; -export type ParameterRunnableId = string; -export type ParameterRunnableTypeQuery = RunnableType; -export type ParameterInputId = string; -export type ParameterGetStarted = boolean; -export type ParameterConcurrencyId = string; -export type BackendVersionResponse = string; -export type BackendUptodateResponse = string; -export type GetLicenseIdResponse = string; -export type GetOpenApiYamlResponse = string; -export type GetAuditLogData = { - id: number; - workspace: string; -}; -export type GetAuditLogResponse = AuditLog; -export type ListAuditLogsData = { - /** - * filter on type of operation - */ - actionKind?: "Create" | "Update" | "Delete" | "Execute"; - /** - * filter on created after (exclusive) timestamp - */ - after?: string; - /** - * filter on created before (exclusive) timestamp - */ - before?: string; - /** - * filter on exact or prefix name of operation - */ - operation?: string; - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; - /** - * filter on exact or prefix name of resource - */ - resource?: string; - /** - * filter on exact username of user - */ - username?: string; - workspace: string; -}; -export type ListAuditLogsResponse = Array; -export type LoginData = { - /** - * credentials - */ - requestBody: Login; -}; -export type LoginResponse = string; -export type LogoutResponse = string; -export type GetUserData = { - username: string; - workspace: string; -}; -export type GetUserResponse = User; -export type UpdateUserData = { - /** - * new user - */ - requestBody: EditWorkspaceUser; - username: string; - workspace: string; -}; -export type UpdateUserResponse = string; -export type IsOwnerOfPathData = { - path: string; - workspace: string; -}; -export type IsOwnerOfPathResponse = boolean; -export type SetPasswordData = { - /** - * set password - */ - requestBody: { - password: string; - }; -}; -export type SetPasswordResponse = string; -export type CreateUserGloballyData = { - /** - * user info - */ - requestBody: { - email: string; - password: string; - super_admin: boolean; - name?: string; - company?: string; - }; -}; -export type CreateUserGloballyResponse = string; -export type GlobalUserUpdateData = { - email: string; - /** - * new user info - */ - requestBody: { - is_super_admin?: boolean; - }; -}; -export type GlobalUserUpdateResponse = string; -export type GlobalUsernameInfoData = { - email: string; -}; -export type GlobalUsernameInfoResponse = { - username: string; - workspace_usernames: Array<{ - workspace_id: string; - username: string; - }>; -}; -export type GlobalUserRenameData = { - email: string; - /** - * new username - */ - requestBody: { - new_username: string; - }; -}; -export type GlobalUserRenameResponse = string; -export type GlobalUserDeleteData = { - email: string; -}; -export type GlobalUserDeleteResponse = string; -export type DeleteUserData = { - username: string; - workspace: string; -}; -export type DeleteUserResponse = string; -export type GetCurrentEmailResponse = string; -export type RefreshUserTokenResponse = string; -export type GetTutorialProgressResponse = { - progress?: number; -}; -export type UpdateTutorialProgressData = { - /** - * progress update - */ - requestBody: { - progress?: number; - }; -}; -export type UpdateTutorialProgressResponse = string; -export type LeaveInstanceResponse = string; -export type GetUsageResponse = number; -export type GetRunnableResponse = { - workspace: string; - endpoint_async: string; - endpoint_sync: string; - endpoint_openai_sync: string; - summary: string; - description?: string; - kind: string; -}; -export type GlobalWhoamiResponse = GlobalUserInfo; -export type ListWorkspaceInvitesResponse = Array; -export type WhoamiData = { - workspace: string; -}; -export type WhoamiResponse = User; -export type AcceptInviteData = { - /** - * accept invite - */ - requestBody: { - workspace_id: string; - username?: string; - }; -}; -export type AcceptInviteResponse = string; -export type DeclineInviteData = { - /** - * decline invite - */ - requestBody: { - workspace_id: string; - }; -}; -export type DeclineInviteResponse = string; -export type WhoisData = { - username: string; - workspace: string; -}; -export type WhoisResponse = User; -export type ExistsEmailData = { - email: string; -}; -export type ExistsEmailResponse = boolean; -export type ListUsersAsSuperAdminData = { - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; -}; -export type ListUsersAsSuperAdminResponse = Array; -export type ListUsersData = { - workspace: string; -}; -export type ListUsersResponse = Array; -export type ListUsersUsageData = { - workspace: string; -}; -export type ListUsersUsageResponse = Array; -export type ListUsernamesData = { - workspace: string; -}; -export type ListUsernamesResponse = Array<(string)>; -export type CreateTokenData = { - /** - * new token - */ - requestBody: NewToken; -}; -export type CreateTokenResponse = string; -export type CreateTokenImpersonateData = { - /** - * new token - */ - requestBody: NewTokenImpersonate; -}; -export type CreateTokenImpersonateResponse = string; -export type DeleteTokenData = { - tokenPrefix: string; -}; -export type DeleteTokenResponse = string; -export type ListTokensData = { - excludeEphemeral?: boolean; -}; -export type ListTokensResponse = Array; -export type LoginWithOauthData = { - clientName: string; - /** - * Partially filled script - */ - requestBody: { - code?: string; - state?: string; - }; -}; -export type LoginWithOauthResponse = string; -export type ListWorkspacesResponse = Array; -export type IsDomainAllowedResponse = boolean; -export type ListUserWorkspacesResponse = UserWorkspaceList; -export type ListWorkspacesAsSuperAdminData = { - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; -}; -export type ListWorkspacesAsSuperAdminResponse = Array; -export type CreateWorkspaceData = { - /** - * new token - */ - requestBody: CreateWorkspace; -}; -export type CreateWorkspaceResponse = string; -export type ExistsWorkspaceData = { - /** - * id of workspace - */ - requestBody: { - id: string; - }; -}; -export type ExistsWorkspaceResponse = boolean; -export type ExistsUsernameData = { - requestBody: { - id: string; - username: string; - }; -}; -export type ExistsUsernameResponse = boolean; -export type InviteUserData = { - /** - * WorkspaceInvite - */ - requestBody: { - email: string; - is_admin: boolean; - operator: boolean; - }; - workspace: string; -}; -export type InviteUserResponse = string; -export type AddUserData = { - /** - * WorkspaceInvite - */ - requestBody: { - email: string; - is_admin: boolean; - username?: string; - operator: boolean; - }; - workspace: string; -}; -export type AddUserResponse = string; -export type DeleteInviteData = { - /** - * WorkspaceInvite - */ - requestBody: { - email: string; - is_admin: boolean; - operator: boolean; - }; - workspace: string; -}; -export type DeleteInviteResponse = string; -export type ArchiveWorkspaceData = { - workspace: string; -}; -export type ArchiveWorkspaceResponse = string; -export type UnarchiveWorkspaceData = { - workspace: string; -}; -export type UnarchiveWorkspaceResponse = string; -export type DeleteWorkspaceData = { - workspace: string; -}; -export type DeleteWorkspaceResponse = string; -export type LeaveWorkspaceData = { - workspace: string; -}; -export type LeaveWorkspaceResponse = string; -export type GetWorkspaceNameData = { - workspace: string; -}; -export type GetWorkspaceNameResponse = string; -export type ChangeWorkspaceNameData = { - requestBody?: { - new_name?: string; - }; - workspace: string; -}; -export type ChangeWorkspaceNameResponse = string; -export type ChangeWorkspaceIdData = { - requestBody?: { - new_id?: string; - new_name?: string; - }; - workspace: string; -}; -export type ChangeWorkspaceIdResponse = string; -export type ListPendingInvitesData = { - workspace: string; -}; -export type ListPendingInvitesResponse = Array; -export type GetSettingsData = { - workspace: string; -}; -export type GetSettingsResponse = { - workspace_id?: string; - slack_name?: string; - slack_team_id?: string; - slack_command_script?: string; - auto_invite_domain?: string; - auto_invite_operator?: boolean; - auto_add?: boolean; - plan?: string; - automatic_billing: boolean; - customer_id?: string; - webhook?: string; - deploy_to?: string; - openai_resource_path?: string; - code_completion_enabled: boolean; - error_handler?: string; - error_handler_extra_args?: ScriptArgs; - error_handler_muted_on_cancel: boolean; - large_file_storage?: LargeFileStorage; - git_sync?: WorkspaceGitSyncSettings; - default_app?: string; - default_scripts?: WorkspaceDefaultScripts; -}; -export type GetDeployToData = { - workspace: string; -}; -export type GetDeployToResponse = { - deploy_to?: string; -}; -export type GetIsPremiumData = { - workspace: string; -}; -export type GetIsPremiumResponse = boolean; -export type GetPremiumInfoData = { - workspace: string; -}; -export type GetPremiumInfoResponse = { - premium: boolean; - usage?: number; - seats?: number; - automatic_billing: boolean; -}; -export type SetAutomaticBillingData = { - /** - * automatic billing - */ - requestBody: { - automatic_billing: boolean; - seats?: number; - }; - workspace: string; -}; -export type SetAutomaticBillingResponse = string; -export type EditSlackCommandData = { - /** - * WorkspaceInvite - */ - requestBody: { - slack_command_script?: string; - }; - workspace: string; -}; -export type EditSlackCommandResponse = string; -export type RunSlackMessageTestJobData = { - /** - * path to hub script to run and its corresponding args - */ - requestBody: { - hub_script_path?: string; - channel?: string; - test_msg?: string; - }; - workspace: string; -}; -export type RunSlackMessageTestJobResponse = { - job_uuid?: string; -}; -export type EditDeployToData = { - requestBody: { - deploy_to?: string; - }; - workspace: string; -}; -export type EditDeployToResponse = string; -export type EditAutoInviteData = { - /** - * WorkspaceInvite - */ - requestBody: { - operator?: boolean; - invite_all?: boolean; - auto_add?: boolean; - }; - workspace: string; -}; -export type EditAutoInviteResponse = string; -export type EditWebhookData = { - /** - * WorkspaceWebhook - */ - requestBody: { - webhook?: string; - }; - workspace: string; -}; -export type EditWebhookResponse = string; -export type EditCopilotConfigData = { - /** - * WorkspaceCopilotConfig - */ - requestBody: { - openai_resource_path?: string; - code_completion_enabled: boolean; - }; - workspace: string; -}; -export type EditCopilotConfigResponse = string; -export type GetCopilotInfoData = { - workspace: string; -}; -export type GetCopilotInfoResponse = { - exists_openai_resource_path: boolean; - code_completion_enabled: boolean; -}; -export type EditErrorHandlerData = { - /** - * WorkspaceErrorHandler - */ - requestBody: { - error_handler?: string; - error_handler_extra_args?: ScriptArgs; - error_handler_muted_on_cancel?: boolean; - }; - workspace: string; -}; -export type EditErrorHandlerResponse = string; -export type EditLargeFileStorageConfigData = { - /** - * LargeFileStorage info - */ - requestBody: { - large_file_storage?: LargeFileStorage; - }; - workspace: string; -}; -export type EditLargeFileStorageConfigResponse = unknown; -export type EditWorkspaceGitSyncConfigData = { - /** - * Workspace Git sync settings - */ - requestBody: { - git_sync_settings?: WorkspaceGitSyncSettings; - }; - workspace: string; -}; -export type EditWorkspaceGitSyncConfigResponse = unknown; -export type EditWorkspaceDefaultAppData = { - /** - * Workspace default app - */ - requestBody: { - default_app_path?: string; - }; - workspace: string; -}; -export type EditWorkspaceDefaultAppResponse = string; -export type EditDefaultScriptsData = { - /** - * Workspace default app - */ - requestBody?: WorkspaceDefaultScripts; - workspace: string; -}; -export type EditDefaultScriptsResponse = string; -export type GetDefaultScriptsData = { - workspace: string; -}; -export type GetDefaultScriptsResponse = WorkspaceDefaultScripts; -export type SetEnvironmentVariableData = { - /** - * Workspace default app - */ - requestBody: { - name: string; - value?: string; - }; - workspace: string; -}; -export type SetEnvironmentVariableResponse = string; -export type GetWorkspaceEncryptionKeyData = { - workspace: string; -}; -export type GetWorkspaceEncryptionKeyResponse = { - key: string; -}; -export type SetWorkspaceEncryptionKeyData = { - /** - * New encryption key - */ - requestBody: { - new_key: string; - }; - workspace: string; -}; -export type SetWorkspaceEncryptionKeyResponse = string; -export type GetWorkspaceDefaultAppData = { - workspace: string; -}; -export type GetWorkspaceDefaultAppResponse = { - default_app_path?: string; -}; -export type GetLargeFileStorageConfigData = { - workspace: string; -}; -export type GetLargeFileStorageConfigResponse = LargeFileStorage; -export type GetWorkspaceUsageData = { - workspace: string; -}; -export type GetWorkspaceUsageResponse = number; -export type GetGlobalData = { - key: string; -}; -export type GetGlobalResponse = unknown; -export type SetGlobalData = { - key: string; - /** - * value set - */ - requestBody: { - value?: unknown; - }; -}; -export type SetGlobalResponse = string; -export type GetLocalResponse = unknown; -export type TestSmtpData = { - /** - * test smtp payload - */ - requestBody: { - to: string; - smtp: { - host: string; - username: string; - password: string; - port: number; - from: string; - tls_implicit: boolean; - }; - }; -}; -export type TestSmtpResponse = string; -export type TestLicenseKeyData = { - /** - * test license key - */ - requestBody: { - license_key: string; - }; -}; -export type TestLicenseKeyResponse = string; -export type TestObjectStorageConfigData = { - /** - * test object storage config - */ - requestBody: { - [key: string]: unknown; - }; -}; -export type TestObjectStorageConfigResponse = string; -export type SendStatsResponse = string; -export type TestMetadataData = { - /** - * test metadata - */ - requestBody: string; -}; -export type TestMetadataResponse = string; -export type GetOidcTokenData = { - audience: string; - workspace: string; -}; -export type GetOidcTokenResponse = string; -export type CreateVariableData = { - alreadyEncrypted?: boolean; - /** - * new variable - */ - requestBody: CreateVariable; - workspace: string; -}; -export type CreateVariableResponse = string; -export type EncryptValueData = { - /** - * new variable - */ - requestBody: string; - workspace: string; -}; -export type EncryptValueResponse = string; -export type DeleteVariableData = { - path: string; - workspace: string; -}; -export type DeleteVariableResponse = string; -export type UpdateVariableData = { - alreadyEncrypted?: boolean; - path: string; - /** - * updated variable - */ - requestBody: EditVariable; - workspace: string; -}; -export type UpdateVariableResponse = string; -export type GetVariableData = { - /** - * ask to decrypt secret if this variable is secret - * (if not secret no effect, default: true) - * - */ - decryptSecret?: boolean; - /** - * ask to include the encrypted value if secret and decrypt secret is not true (default: false) - * - */ - includeEncrypted?: boolean; - path: string; - workspace: string; -}; -export type GetVariableResponse = ListableVariable; -export type GetVariableValueData = { - path: string; - workspace: string; -}; -export type GetVariableValueResponse = string; -export type ExistsVariableData = { - path: string; - workspace: string; -}; -export type ExistsVariableResponse = boolean; -export type ListVariableData = { - workspace: string; -}; -export type ListVariableResponse = Array; -export type ListContextualVariablesData = { - workspace: string; -}; -export type ListContextualVariablesResponse = Array; -export type ConnectSlackCallbackData = { - /** - * code endpoint - */ - requestBody: { - code: string; - state: string; - }; - workspace: string; -}; -export type ConnectSlackCallbackResponse = string; -export type ConnectCallbackData = { - clientName: string; - /** - * code endpoint - */ - requestBody: { - code: string; - state: string; - }; -}; -export type ConnectCallbackResponse = TokenResponse; -export type CreateAccountData = { - /** - * code endpoint - */ - requestBody: { - refresh_token?: string; - expires_in: number; - client: string; - }; - workspace: string; -}; -export type CreateAccountResponse = string; -export type RefreshTokenData = { - id: number; - /** - * variable path - */ - requestBody: { - path: string; - }; - workspace: string; -}; -export type RefreshTokenResponse = string; -export type DisconnectAccountData = { - id: number; - workspace: string; -}; -export type DisconnectAccountResponse = string; -export type DisconnectSlackData = { - workspace: string; -}; -export type DisconnectSlackResponse = string; -export type ListOauthLoginsResponse = { - oauth: Array<(string)>; - saml?: string; -}; -export type ListOauthConnectsResponse = unknown; -export type CreateResourceData = { - /** - * new resource - */ - requestBody: CreateResource; - updateIfExists?: boolean; - workspace: string; -}; -export type CreateResourceResponse = string; -export type DeleteResourceData = { - path: string; - workspace: string; -}; -export type DeleteResourceResponse = string; -export type UpdateResourceData = { - path: string; - /** - * updated resource - */ - requestBody: EditResource; - workspace: string; -}; -export type UpdateResourceResponse = string; -export type UpdateResourceValueData = { - path: string; - /** - * updated resource - */ - requestBody: { - value?: unknown; - }; - workspace: string; -}; -export type UpdateResourceValueResponse = string; -export type GetResourceData = { - path: string; - workspace: string; -}; -export type GetResourceResponse = Resource; -export type GetResourceValueInterpolatedData = { - /** - * job id - */ - jobId?: string; - path: string; - workspace: string; -}; -export type GetResourceValueInterpolatedResponse = unknown; -export type GetResourceValueData = { - path: string; - workspace: string; -}; -export type GetResourceValueResponse = unknown; -export type ExistsResourceData = { - path: string; - workspace: string; -}; -export type ExistsResourceResponse = boolean; -export type ListResourceData = { - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; - /** - * resource_types to list from, separated by ',', - */ - resourceType?: string; - /** - * resource_types to not list from, separated by ',', - */ - resourceTypeExclude?: string; - workspace: string; -}; -export type ListResourceResponse = Array; -export type ListSearchResourceData = { - workspace: string; -}; -export type ListSearchResourceResponse = Array<{ - path: string; - value: unknown; -}>; -export type ListResourceNamesData = { - name: string; - workspace: string; -}; -export type ListResourceNamesResponse = Array<{ - name: string; - path: string; -}>; -export type CreateResourceTypeData = { - /** - * new resource_type - */ - requestBody: ResourceType; - workspace: string; -}; -export type CreateResourceTypeResponse = string; -export type DeleteResourceTypeData = { - path: string; - workspace: string; -}; -export type DeleteResourceTypeResponse = string; -export type UpdateResourceTypeData = { - path: string; - /** - * updated resource_type - */ - requestBody: EditResourceType; - workspace: string; -}; -export type UpdateResourceTypeResponse = string; -export type GetResourceTypeData = { - path: string; - workspace: string; -}; -export type GetResourceTypeResponse = ResourceType; -export type ExistsResourceTypeData = { - path: string; - workspace: string; -}; -export type ExistsResourceTypeResponse = boolean; -export type ListResourceTypeData = { - workspace: string; -}; -export type ListResourceTypeResponse = Array; -export type ListResourceTypeNamesData = { - workspace: string; -}; -export type ListResourceTypeNamesResponse = Array<(string)>; -export type QueryResourceTypesData = { - /** - * query limit - */ - limit?: number; - /** - * query text - */ - text: string; - workspace: string; -}; -export type QueryResourceTypesResponse = Array<{ - name: string; - score: number; - schema?: unknown; -}>; -export type ListHubIntegrationsData = { - /** - * query integrations kind - */ - kind?: string; -}; -export type ListHubIntegrationsResponse = Array<{ - name: string; -}>; -export type ListHubFlowsResponse = { - flows?: Array<{ - id: number; - flow_id: number; - summary: string; - apps: Array<(string)>; - approved: boolean; - votes: number; - }>; -}; -export type GetHubFlowByIdData = { - id: number; -}; -export type GetHubFlowByIdResponse = { - flow?: OpenFlow; -}; -export type ListFlowPathsData = { - workspace: string; -}; -export type ListFlowPathsResponse = Array<(string)>; -export type ListSearchFlowData = { - workspace: string; -}; -export type ListSearchFlowResponse = Array<{ - path: string; - value: unknown; -}>; -export type ListFlowsData = { - /** - * mask to filter exact matching user creator - */ - createdBy?: string; - /** - * order by desc order (default true) - */ - orderDesc?: boolean; - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * mask to filter exact matching path - */ - pathExact?: string; - /** - * mask to filter matching starting path - */ - pathStart?: string; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; - /** - * (default false) - * show also the archived files. - * when multiple archived hash share the same path, only the ones with the latest create_at - * are displayed. - * - */ - showArchived?: boolean; - /** - * (default false) - * show only the starred items - * - */ - starredOnly?: boolean; - workspace: string; -}; -export type ListFlowsResponse = Array<(Flow & { - has_draft?: boolean; - draft_only?: boolean; -})>; -export type GetFlowByPathData = { - path: string; - workspace: string; -}; -export type GetFlowByPathResponse = Flow; -export type ToggleWorkspaceErrorHandlerForFlowData = { - path: string; - /** - * Workspace error handler enabled - */ - requestBody: { - muted?: boolean; - }; - workspace: string; -}; -export type ToggleWorkspaceErrorHandlerForFlowResponse = string; -export type GetFlowByPathWithDraftData = { - path: string; - workspace: string; -}; -export type GetFlowByPathWithDraftResponse = Flow & { - draft?: Flow; -}; -export type ExistsFlowByPathData = { - path: string; - workspace: string; -}; -export type ExistsFlowByPathResponse = boolean; -export type CreateFlowData = { - /** - * Partially filled flow - */ - requestBody: OpenFlowWPath & { - draft_only?: boolean; - deployment_message?: string; - }; - workspace: string; -}; -export type CreateFlowResponse = string; -export type UpdateFlowData = { - path: string; - /** - * Partially filled flow - */ - requestBody: OpenFlowWPath & { - deployment_message?: string; - }; - workspace: string; -}; -export type UpdateFlowResponse = string; -export type ArchiveFlowByPathData = { - path: string; - /** - * archiveFlow - */ - requestBody: { - archived?: boolean; - }; - workspace: string; -}; -export type ArchiveFlowByPathResponse = string; -export type DeleteFlowByPathData = { - path: string; - workspace: string; -}; -export type DeleteFlowByPathResponse = string; -export type GetFlowInputHistoryByPathData = { - /** - * which page to return (start at 1, default 1) - */ - page?: number; - path: string; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; - workspace: string; -}; -export type GetFlowInputHistoryByPathResponse = Array; -export type ListHubAppsResponse = { - apps?: Array<{ - id: number; - app_id: number; - summary: string; - apps: Array<(string)>; - approved: boolean; - votes: number; - }>; -}; -export type GetHubAppByIdData = { - id: number; -}; -export type GetHubAppByIdResponse = { - app: { - summary: string; - value: unknown; - }; -}; -export type ListSearchAppData = { - workspace: string; -}; -export type ListSearchAppResponse = Array<{ - path: string; - value: unknown; -}>; -export type ListAppsData = { - /** - * mask to filter exact matching user creator - */ - createdBy?: string; - /** - * order by desc order (default true) - */ - orderDesc?: boolean; - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * mask to filter exact matching path - */ - pathExact?: string; - /** - * mask to filter matching starting path - */ - pathStart?: string; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; - /** - * (default false) - * show only the starred items - * - */ - starredOnly?: boolean; - workspace: string; -}; -export type ListAppsResponse = Array; -export type CreateAppData = { - /** - * new app - */ - requestBody: { - path: string; - value: unknown; - summary: string; - policy: Policy; - draft_only?: boolean; - deployment_message?: string; - }; - workspace: string; -}; -export type CreateAppResponse = string; -export type ExistsAppData = { - path: string; - workspace: string; -}; -export type ExistsAppResponse = boolean; -export type GetAppByPathData = { - path: string; - workspace: string; -}; -export type GetAppByPathResponse = AppWithLastVersion; -export type GetAppByPathWithDraftData = { - path: string; - workspace: string; -}; -export type GetAppByPathWithDraftResponse = AppWithLastVersionWDraft; -export type GetAppHistoryByPathData = { - path: string; - workspace: string; -}; -export type GetAppHistoryByPathResponse = Array; -export type UpdateAppHistoryData = { - id: number; - /** - * App deployment message - */ - requestBody: { - deployment_msg?: string; - }; - version: number; - workspace: string; -}; -export type UpdateAppHistoryResponse = string; -export type GetPublicAppBySecretData = { - path: string; - workspace: string; -}; -export type GetPublicAppBySecretResponse = AppWithLastVersion; -export type GetPublicResourceData = { - path: string; - workspace: string; -}; -export type GetPublicResourceResponse = unknown; -export type GetPublicSecretOfAppData = { - path: string; - workspace: string; -}; -export type GetPublicSecretOfAppResponse = string; -export type GetAppByVersionData = { - id: number; - workspace: string; -}; -export type GetAppByVersionResponse = AppWithLastVersion; -export type DeleteAppData = { - path: string; - workspace: string; -}; -export type DeleteAppResponse = string; -export type UpdateAppData = { - path: string; - /** - * update app - */ - requestBody: { - path?: string; - summary?: string; - value?: unknown; - policy?: Policy; - deployment_message?: string; - }; - workspace: string; -}; -export type UpdateAppResponse = string; -export type ExecuteComponentData = { - path: string; - /** - * update app - */ - requestBody: { - component: string; - path?: string; - args: unknown; - raw_code?: { - content: string; - language: string; - path?: string; - cache_ttl?: number; - }; - force_viewer_static_fields?: { - [key: string]: unknown; - }; - force_viewer_one_of_fields?: { - [key: string]: unknown; - }; - }; - workspace: string; -}; -export type ExecuteComponentResponse = string; -export type GetHubScriptContentByPathData = { - path: string; -}; -export type GetHubScriptContentByPathResponse = string; -export type GetHubScriptByPathData = { - path: string; -}; -export type GetHubScriptByPathResponse = { - content: string; - lockfile?: string; - schema?: unknown; - language: string; - summary?: string; -}; -export type GetTopHubScriptsData = { - /** - * query scripts app - */ - app?: string; - /** - * query scripts kind - */ - kind?: string; - /** - * query limit - */ - limit?: number; -}; -export type GetTopHubScriptsResponse = { - asks?: Array<{ - id: number; - ask_id: number; - summary: string; - app: string; - version_id: number; - kind: HubScriptKind; - votes: number; - views: number; - }>; -}; -export type QueryHubScriptsData = { - /** - * query scripts app - */ - app?: string; - /** - * query scripts kind - */ - kind?: string; - /** - * query limit - */ - limit?: number; - /** - * query text - */ - text: string; -}; -export type QueryHubScriptsResponse = Array<{ - ask_id: number; - id: number; - version_id: number; - summary: string; - app: string; - kind: HubScriptKind; - score: number; -}>; -export type ListSearchScriptData = { - workspace: string; -}; -export type ListSearchScriptResponse = Array<{ - path: string; - content: string; -}>; -export type ListScriptsData = { - /** - * mask to filter exact matching user creator - */ - createdBy?: string; - /** - * mask to filter scripts whom first direct parent has exact hash - */ - firstParentHash?: string; - /** - * (default false) - * include scripts without an exported main function - * - */ - includeWithoutMain?: boolean; - /** - * (default regardless) - * if true show only the templates - * if false show only the non templates - * if not defined, show all regardless of if the script is a template - * - */ - isTemplate?: boolean; - /** - * (default regardless) - * script kinds to filter, split by comma - * - */ - kinds?: string; - /** - * mask to filter scripts whom last parent in the chain has exact hash. - * Beware that each script stores only a limited number of parents. Hence - * the last parent hash for a script is not necessarily its top-most parent. - * To find the top-most parent you will have to jump from last to last hash - * until finding the parent - * - */ - lastParentHash?: string; - /** - * order by desc order (default true) - */ - orderDesc?: boolean; - /** - * which page to return (start at 1, default 1) - */ - page?: number; - /** - * is the hash present in the array of stored parent hashes for this script. - * The same warning applies than for last_parent_hash. A script only store a - * limited number of direct parent - * - */ - parentHash?: string; - /** - * mask to filter exact matching path - */ - pathExact?: string; - /** - * mask to filter matching starting path - */ - pathStart?: string; - /** - * number of items to return for a given page (default 30, max 100) - */ - perPage?: number; - /** - * (default false) - * show also the archived files. - * when multiple archived hash share the same path, only the ones with the latest create_at - * are - * ed. - * - */ - showArchived?: boolean; - /** - * (default false) - * show only the starred items - * - */ - starredOnly?: boolean; - workspace: string; -}; -export type ListScriptsResponse = Array