windmill-client
Advanced tools
Comparing version 1.183.0 to 1.184.0
@@ -6,3 +6,3 @@ "use strict"; | ||
BASE: '/api', | ||
VERSION: '1.183.0', | ||
VERSION: '1.184.0', | ||
WITH_CREDENTIALS: false, | ||
@@ -9,0 +9,0 @@ CREDENTIALS: 'include', |
@@ -12,2 +12,3 @@ export type FlowMetadata = { | ||
tag?: string; | ||
ws_error_handler_muted?: boolean; | ||
}; |
@@ -19,2 +19,3 @@ export type NewScript = { | ||
dedicated_worker?: boolean; | ||
ws_error_handler_muted?: boolean; | ||
}; | ||
@@ -21,0 +22,0 @@ export declare namespace NewScript { |
@@ -5,2 +5,3 @@ import type { OpenFlow } from './OpenFlow'; | ||
tag?: string; | ||
ws_error_handler_muted?: boolean; | ||
}); |
@@ -33,2 +33,3 @@ export type Script = { | ||
dedicated_worker?: boolean; | ||
ws_error_handler_muted?: boolean; | ||
}; | ||
@@ -35,0 +36,0 @@ export declare namespace Script { |
@@ -110,2 +110,17 @@ import type { Flow } from '../models/Flow'; | ||
/** | ||
* Toggle ON and OFF the workspace error handler for a given flow | ||
* @returns string error handler toggled | ||
* @throws ApiError | ||
*/ | ||
static toggleWorkspaceErrorHandlerForFlow({ workspace, path, requestBody, }: { | ||
workspace: string; | ||
path: string; | ||
/** | ||
* Workspace error handler enabled | ||
*/ | ||
requestBody: { | ||
muted?: boolean; | ||
}; | ||
}): CancelablePromise<string>; | ||
/** | ||
* get flow by path with draft | ||
@@ -112,0 +127,0 @@ * @returns any flow details with draft |
@@ -100,2 +100,19 @@ "use strict"; | ||
/** | ||
* Toggle ON and OFF the workspace error handler for a given flow | ||
* @returns string error handler toggled | ||
* @throws ApiError | ||
*/ | ||
static toggleWorkspaceErrorHandlerForFlow({ workspace, path, requestBody, }) { | ||
return (0, request_1.request)(OpenAPI_1.OpenAPI, { | ||
method: 'POST', | ||
url: '/w/{workspace}/flows/toggle_workspace_error_handler/{path}', | ||
path: { | ||
'workspace': workspace, | ||
'path': path, | ||
}, | ||
body: requestBody, | ||
mediaType: 'application/json', | ||
}); | ||
} | ||
/** | ||
* get flow by path with draft | ||
@@ -102,0 +119,0 @@ * @returns any flow details with draft |
@@ -214,2 +214,29 @@ import type { CreateResource } from '../models/CreateResource'; | ||
}): CancelablePromise<Array<string>>; | ||
/** | ||
* list hub resource types | ||
* @returns any resource type details | ||
* @throws ApiError | ||
*/ | ||
static listHubResourceTypes(): CancelablePromise<Array<{ | ||
id: string; | ||
name: string; | ||
schema?: any; | ||
}>>; | ||
/** | ||
* query hub resource types by similarity | ||
* @returns any resource type details | ||
* @throws ApiError | ||
*/ | ||
static queryHubResourceTypes({ text, limit, }: { | ||
/** | ||
* query text | ||
*/ | ||
text: string; | ||
/** | ||
* query limit | ||
*/ | ||
limit?: number; | ||
}): CancelablePromise<Array<{ | ||
id: string; | ||
}>>; | ||
} |
@@ -293,3 +293,29 @@ "use strict"; | ||
} | ||
/** | ||
* list hub resource types | ||
* @returns any resource type details | ||
* @throws ApiError | ||
*/ | ||
static listHubResourceTypes() { | ||
return (0, request_1.request)(OpenAPI_1.OpenAPI, { | ||
method: 'GET', | ||
url: '/resources/type/hub/list', | ||
}); | ||
} | ||
/** | ||
* query hub resource types by similarity | ||
* @returns any resource type details | ||
* @throws ApiError | ||
*/ | ||
static queryHubResourceTypes({ text, limit, }) { | ||
return (0, request_1.request)(OpenAPI_1.OpenAPI, { | ||
method: 'GET', | ||
url: '/resources/type/hub/query', | ||
query: { | ||
'text': text, | ||
'limit': limit, | ||
}, | ||
}); | ||
} | ||
} | ||
exports.ResourceService = ResourceService; |
@@ -82,3 +82,3 @@ import type { NewScript } from '../models/NewScript'; | ||
*/ | ||
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }: { | ||
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }: { | ||
workspace: string; | ||
@@ -148,6 +148,6 @@ /** | ||
* (default regardless) | ||
* script kind | ||
* script kinds to filter, split by comma | ||
* | ||
*/ | ||
kind?: string; | ||
kinds?: string; | ||
/** | ||
@@ -181,2 +181,17 @@ * (default false) | ||
/** | ||
* Toggle ON and OFF the workspace error handler for a given script | ||
* @returns string error handler toggled | ||
* @throws ApiError | ||
*/ | ||
static toggleWorkspaceErrorHandlerForScript({ workspace, path, requestBody, }: { | ||
workspace: string; | ||
path: string; | ||
/** | ||
* Workspace error handler enabled | ||
*/ | ||
requestBody: { | ||
muted?: boolean; | ||
}; | ||
}): CancelablePromise<string>; | ||
/** | ||
* archive script by path | ||
@@ -183,0 +198,0 @@ * @returns string script archived |
@@ -81,3 +81,3 @@ "use strict"; | ||
*/ | ||
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }) { | ||
static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kinds, starredOnly, }) { | ||
return (0, request_1.request)(OpenAPI_1.OpenAPI, { | ||
@@ -101,3 +101,3 @@ method: 'GET', | ||
'is_template': isTemplate, | ||
'kind': kind, | ||
'kinds': kinds, | ||
'starred_only': starredOnly, | ||
@@ -138,2 +138,19 @@ }, | ||
/** | ||
* Toggle ON and OFF the workspace error handler for a given script | ||
* @returns string error handler toggled | ||
* @throws ApiError | ||
*/ | ||
static toggleWorkspaceErrorHandlerForScript({ workspace, path, requestBody, }) { | ||
return (0, request_1.request)(OpenAPI_1.OpenAPI, { | ||
method: 'POST', | ||
url: '/w/{workspace}/scripts/toggle_workspace_error_handler/p/{path}', | ||
path: { | ||
'workspace': workspace, | ||
'path': path, | ||
}, | ||
body: requestBody, | ||
mediaType: 'application/json', | ||
}); | ||
} | ||
/** | ||
* archive script by path | ||
@@ -140,0 +157,0 @@ * @returns string script archived |
import type { CreateWorkspace } from '../models/CreateWorkspace'; | ||
import type { ScriptArgs } from '../models/ScriptArgs'; | ||
import type { UserWorkspaceList } from '../models/UserWorkspaceList'; | ||
@@ -177,2 +178,3 @@ import type { Workspace } from '../models/Workspace'; | ||
error_handler?: string; | ||
error_handler_extra_args?: ScriptArgs; | ||
}>; | ||
@@ -215,2 +217,20 @@ /** | ||
/** | ||
* run a job that sends a message to Slack | ||
* @returns any status | ||
* @throws ApiError | ||
*/ | ||
static runSlackMessageTestJob({ workspace, requestBody, }: { | ||
workspace: string; | ||
/** | ||
* path to hub script to run and its corresponding args | ||
*/ | ||
requestBody: { | ||
hub_script_path?: string; | ||
channel?: string; | ||
test_msg?: string; | ||
}; | ||
}): CancelablePromise<{ | ||
job_uuid?: string; | ||
}>; | ||
/** | ||
* edit deploy to | ||
@@ -292,4 +312,5 @@ * @returns string status | ||
error_handler?: string; | ||
error_handler_extra_args?: ScriptArgs; | ||
}; | ||
}): CancelablePromise<string>; | ||
} |
@@ -257,2 +257,18 @@ "use strict"; | ||
/** | ||
* run a job that sends a message to Slack | ||
* @returns any status | ||
* @throws ApiError | ||
*/ | ||
static runSlackMessageTestJob({ workspace, requestBody, }) { | ||
return (0, request_1.request)(OpenAPI_1.OpenAPI, { | ||
method: 'POST', | ||
url: '/w/{workspace}/workspaces/run_slack_message_test_job', | ||
path: { | ||
'workspace': workspace, | ||
}, | ||
body: requestBody, | ||
mediaType: 'application/json', | ||
}); | ||
} | ||
/** | ||
* edit deploy to | ||
@@ -259,0 +275,0 @@ * @returns string status |
{ | ||
"name": "windmill-client", | ||
"description": "Windmill SDK client for browsers and Node.js", | ||
"version": "1.183.0", | ||
"version": "1.184.0", | ||
"author": "Ruben Fiszel", | ||
@@ -6,0 +6,0 @@ "license": "Apache 2.0", |
359104
11121