Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/mod.ts>ScriptService

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Go to Latest
class ScriptService
import { ScriptService } from "https://deno.land/x/windmill@v1.84.1/mod.ts";

Static Methods

archiveScriptByHash(unnamed 0: { workspace: string; hash: string; }): CancelablePromise<Script>

archive script by hash

archiveScriptByPath(unnamed 0: { workspace: string; path: string; }): CancelablePromise<string>

archive script by path

bashToJsonschema(unnamed 0: { requestBody: string; }): CancelablePromise<MainArgSignature>

inspect bash code to infer jsonschema of arguments

createScript(unnamed 0: { workspace: string; requestBody: { path: string; parent_hash?: string; summary: string; description: string; content: string; schema?: any; is_template?: boolean; lock?: Array<string>; language:
| "python3"
| "deno"
| "go"
| "bash"
; kind?:
| "script"
| "failure"
| "trigger"
| "command"
| "approval"
; }; }
): CancelablePromise<string>

create script

deleteScriptByHash(unnamed 0: { workspace: string; hash: string; }): CancelablePromise<Script>

delete script by hash (erase content but keep hash, require admin)

deleteScriptByPath(unnamed 0: { workspace: string; path: string; }): CancelablePromise<string>

delete all scripts at a given path (require admin)

denoToJsonschema(unnamed 0: { requestBody: string; }): CancelablePromise<MainArgSignature>

inspect deno code to infer jsonschema of arguments

existsScriptByPath(unnamed 0: { workspace: string; path: string; }): CancelablePromise<boolean>

exists script by path

getHubScriptByPath(unnamed 0: { path: string; }): CancelablePromise<{ content: string; lockfile?: string; schema?: any; language:
| "deno"
| "python3"
| "go"
| "bash"
; summary?: string; }>

get full hub script by path

getHubScriptContentByPath(unnamed 0: { path: string; }): CancelablePromise<string>

get hub script content by path

getScriptByHash(unnamed 0: { workspace: string; hash: string; }): CancelablePromise<Script>

get script by hash

getScriptByPath(unnamed 0: { workspace: string; path: string; }): CancelablePromise<Script>

get script by path

getScriptDeploymentStatus(unnamed 0: { workspace: string; hash: string; }): CancelablePromise<{ lock?: string; lock_error_logs?: string; }>

get script deployment status

goToJsonschema(unnamed 0: { requestBody: string; }): CancelablePromise<MainArgSignature>

inspect go code to infer jsonschema of arguments

listHubScripts(): CancelablePromise<{ asks?: Array<{ id: number; ask_id: number; summary: string; app: string; approved: boolean; kind:
| "script"
| "failure"
| "trigger"
| "command"
| "approval"
; votes: number; views: number; }>; }>

list all available hub scripts

listScriptPaths(unnamed 0: { workspace: string; }): CancelablePromise<Array<string>>

list all available scripts paths

listScripts(unnamed 0: { workspace: string; page?: number; perPage?: number; orderDesc?: boolean; createdBy?: string; pathStart?: string; pathExact?: string; firstParentHash?: string; lastParentHash?: string; parentHash?: string; showArchived?: boolean; isTemplate?: boolean; kind?: string; starredOnly?: boolean; }): CancelablePromise<Array<Script>>

list all available scripts

pythonToJsonschema(unnamed 0: { requestBody: string; }): CancelablePromise<MainArgSignature>

inspect python code to infer jsonschema of arguments

rawScriptByHash(unnamed 0: { workspace: string; path: string; }): CancelablePromise<string>

raw script by hash

rawScriptByPath(unnamed 0: { workspace: string; path: string; }): CancelablePromise<string>

raw script by path