import { ScriptService } from "https://deno.land/x/windmill@v1.49.1/windmill-api/index.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: ; kind?: ; }; }): CancelablePromise<string>
| "python3"
| "deno"
| "go"
| "bash"
| "script"
| "failure"
| "trigger"
| "command"
| "approval"
create script
deleteScriptByHash(unnamed 0: { workspace: string; hash: string; }): CancelablePromise<Script>
delete script by hash (erase content but keep hash)
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: ; summary?: string; }>
| "deno"
| "python3"
| "go"
| "bash"
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: ; votes: number; views: number; }>; }>
| "script"
| "failure"
| "trigger"
| "command"
| "approval"
list all available hub scripts
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; }): 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