windmill-components 1.542.4 → 1.550.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package/common.d.ts +4 -1
- package/package/components/AIAgentLogViewer.svelte +1 -1
- package/package/components/ArgEnum.svelte +14 -5
- package/package/components/ArgInput.svelte +23 -15
- package/package/components/ArgInput.svelte.d.ts +1 -1
- package/package/components/ChannelSelector.svelte +92 -18
- package/package/components/ChannelSelector.svelte.d.ts +2 -0
- package/package/components/ConnectionSection.svelte +12 -1
- package/package/components/Dev.svelte +18 -5
- package/package/components/Dev.svelte.d.ts +23 -1
- package/package/components/DisplayResult.svelte +36 -23
- package/package/components/DropdownV2.svelte +8 -2
- package/package/components/DropdownV2.svelte.d.ts +1 -0
- package/package/components/DynamicInput.svelte +10 -10
- package/package/components/EditableSchemaForm.svelte +21 -7
- package/package/components/EditorSettings.svelte +11 -9
- package/package/components/ErrorOrRecoveryHandler.svelte +14 -20
- package/package/components/FlowHistoryJobPicker.svelte +3 -0
- package/package/components/FlowHistoryJobPicker.svelte.d.ts +1 -0
- package/package/components/FlowJobResult.svelte +5 -5
- package/package/components/FlowLogRow.svelte +2 -2
- package/package/components/FlowLogViewer.svelte +228 -57
- package/package/components/FlowLogViewer.svelte.d.ts +16 -5
- package/package/components/FlowLogViewerWrapper.svelte +56 -3
- package/package/components/FlowLogViewerWrapper.svelte.d.ts +4 -3
- package/package/components/FlowLoopIterationPreview.svelte +4 -4
- package/package/components/FlowMetadata.svelte +3 -4
- package/package/components/FlowMetadata.svelte.d.ts +4 -18
- package/package/components/FlowPreviewContent.svelte +9 -3
- package/package/components/FlowPreviewContent.svelte.d.ts +1 -1
- package/package/components/FlowStatusViewer.svelte +62 -59
- package/package/components/FlowStatusViewer.svelte.d.ts +2 -2
- package/package/components/FlowStatusViewerInner.svelte +186 -94
- package/package/components/FlowStatusViewerInner.svelte.d.ts +10 -3
- package/package/components/FlowTimeline.svelte +110 -131
- package/package/components/FlowTimeline.svelte.d.ts +13 -4
- package/package/components/FlowTimelineBar.svelte +227 -0
- package/package/components/FlowTimelineBar.svelte.d.ts +24 -0
- package/package/components/InputTransformForm.svelte +119 -3
- package/package/components/InputTransformForm.svelte.d.ts +3 -0
- package/package/components/InputTransformSchemaForm.svelte +5 -1
- package/package/components/InputTransformSchemaForm.svelte.d.ts +2 -0
- package/package/components/InstanceSetting.svelte +17 -42
- package/package/components/InstanceSettings.svelte +12 -21
- package/package/components/JobArgs.svelte +15 -16
- package/package/components/JobArgs.svelte.d.ts +4 -18
- package/package/components/JobLoader.svelte +23 -42
- package/package/components/JobLoader.svelte.d.ts +2 -0
- package/package/components/JobStatus.svelte +1 -1
- package/package/components/JobStatus.svelte.d.ts +4 -18
- package/package/components/ModulePreviewResultViewer.svelte +1 -7
- package/package/components/NextcloudSetting.svelte +6 -1
- package/package/components/Password.svelte +7 -11
- package/package/components/Password.svelte.d.ts +5 -20
- package/package/components/PasswordArgInput.svelte +35 -15
- package/package/components/PasswordArgInput.svelte.d.ts +4 -18
- package/package/components/QueuePosition.svelte +6 -2
- package/package/components/RunForm.svelte +5 -14
- package/package/components/S3ArrayHelperButton.svelte +12 -0
- package/package/components/S3ArrayHelperButton.svelte.d.ts +8 -0
- package/package/components/ScriptEditor.svelte +5 -6
- package/package/components/StringTypeNarrowing.svelte +39 -24
- package/package/components/StringTypeNarrowing.svelte.d.ts +1 -1
- package/package/components/TeamSelector.svelte +83 -37
- package/package/components/TeamSelector.svelte.d.ts +0 -1
- package/package/components/apps/components/buttons/AppButton.svelte +11 -1
- package/package/components/apps/components/display/table/AppAggridInfiniteTable.svelte +13 -4
- package/package/components/apps/components/display/table/SyncColumnDefs.svelte +2 -2
- package/package/components/apps/components/display/table/utils.js +1 -1
- package/package/components/apps/components/helpers/RefreshButton.svelte +5 -1
- package/package/components/apps/components/helpers/RunnableComponent.svelte +0 -2
- package/package/components/apps/components/helpers/RunnableWrapper.svelte.d.ts +1 -0
- package/package/components/apps/components/layout/AppTabs.svelte +116 -71
- package/package/components/apps/components/layout/AppTabs.svelte.d.ts +1 -0
- package/package/components/apps/editor/component/ComponentInner.svelte +1 -0
- package/package/components/apps/editor/component/components.d.ts +16 -1
- package/package/components/apps/editor/component/components.js +22 -2
- package/package/components/apps/editor/settingsPanel/ComponentPanel.svelte +2 -0
- package/package/components/apps/editor/settingsPanel/GridTab.svelte +19 -1
- package/package/components/apps/editor/settingsPanel/GridTab.svelte.d.ts +3 -1
- package/package/components/apps/editor/settingsPanel/GridTabHidden.svelte +52 -0
- package/package/components/apps/editor/settingsPanel/GridTabHidden.svelte.d.ts +9 -0
- package/package/components/auditLogs/AuditLogsFilters.svelte +6 -0
- package/package/components/auditLogs/AuditLogsTable.svelte +17 -7
- package/package/components/auditLogs/AuditLogsTable.svelte.d.ts +1 -0
- package/package/components/common/CloseButton.svelte +2 -2
- package/package/components/common/CloseButton.svelte.d.ts +1 -0
- package/package/components/common/layout/List.svelte +3 -7
- package/package/components/common/layout/List.svelte.d.ts +7 -29
- package/package/components/common/popup/PopupV2.svelte +8 -25
- package/package/components/common/popup/PopupV2.svelte.d.ts +4 -2
- package/package/components/common/table/ScriptRow.svelte +22 -2
- package/package/components/copilot/FlowCopilotInputsModal.svelte +26 -23
- package/package/components/copilot/chat/AIChatManager.svelte.js +3 -2
- package/package/components/copilot/chat/ProviderModelSelector.svelte +1 -1
- package/package/components/copilot/chat/flow/FlowAIChat.svelte +4 -2
- package/package/components/copilot/chat/script/core.d.ts +4 -4
- package/package/components/copilot/chat/script/core.js +93 -34
- package/package/components/copilot/lib.d.ts +1 -0
- package/package/components/copilot/lib.js +6 -3
- package/package/components/custom_ui.d.ts +2 -0
- package/package/components/flows/FlowProgressBar.svelte +16 -16
- package/package/components/flows/FlowProgressBar.svelte.d.ts +7 -22
- package/package/components/flows/content/FlowInputsQuick.svelte +3 -2
- package/package/components/flows/content/FlowInputsQuick.svelte.d.ts +1 -0
- package/package/components/flows/content/FlowModuleComponent.svelte +24 -1
- package/package/components/flows/flowInfers.js +34 -8
- package/package/components/flows/flowStore.d.ts +4 -1
- package/package/components/flows/map/FlowJobsMenu.svelte +3 -3
- package/package/components/flows/map/FlowJobsMenu.svelte.d.ts +1 -1
- package/package/components/flows/map/InsertModuleButton.svelte +4 -14
- package/package/components/flows/map/InsertModuleButton.svelte.d.ts +0 -1
- package/package/components/flows/map/InsertModuleInner.svelte +17 -20
- package/package/components/flows/map/MapItem.svelte +1 -1
- package/package/components/flows/pickers/PickHubScriptQuick.svelte +38 -52
- package/package/components/flows/pickers/PickHubScriptQuick.svelte.d.ts +1 -0
- package/package/components/flows/pickers/WorkspaceScriptPickerQuick.svelte +27 -15
- package/package/components/flows/pickers/WorkspaceScriptPickerQuick.svelte.d.ts +1 -0
- package/package/components/flows/propPicker/OutputPicker.svelte +2 -0
- package/package/components/git_sync/DetectionFlow.svelte +33 -44
- package/package/components/git_sync/DetectionFlow.svelte.d.ts +1 -0
- package/package/components/git_sync/GitSyncContext.svelte.d.ts +22 -0
- package/package/components/git_sync/GitSyncContext.svelte.js +145 -5
- package/package/components/git_sync/GitSyncModeDisplay.svelte +14 -0
- package/package/components/git_sync/GitSyncModeDisplay.svelte.d.ts +9 -0
- package/package/components/git_sync/GitSyncRepositoryCard.svelte +365 -253
- package/package/components/git_sync/GitSyncRepositoryCard.svelte.d.ts +10 -1
- package/package/components/git_sync/GitSyncSection.svelte +134 -14
- package/package/components/git_sync/PullWorkspaceModal.svelte +24 -32
- package/package/components/git_sync/PushWorkspaceModal.svelte +24 -32
- package/package/components/graph/model.d.ts +5 -5
- package/package/components/graph/renderers/edges/EmptyEdge.svelte +3 -10
- package/package/components/graph/renderers/edges/EmptyEdge.svelte.d.ts +4 -18
- package/package/components/graph/renderers/nodes/AIToolNode.svelte +2 -2
- package/package/components/graph/renderers/nodes/NewAIToolNode.svelte +5 -10
- package/package/components/home/ItemsList.svelte +1 -1
- package/package/components/jobs/JobProgressBar.svelte +27 -21
- package/package/components/jobs/JobProgressBar.svelte.d.ts +9 -24
- package/package/components/meltComponents/MenuSingleItem.svelte +3 -8
- package/package/components/meltComponents/MenuSingleItem.svelte.d.ts +0 -3
- package/package/components/meltComponents/Popover.svelte +3 -2
- package/package/components/meltComponents/Popover.svelte.d.ts +1 -0
- package/package/components/meltComponents/Tooltip.svelte +1 -1
- package/package/components/progressBar/ProgressBar.svelte +39 -53
- package/package/components/progressBar/ProgressBar.svelte.d.ts +11 -26
- package/package/components/runs/JobsLoader.svelte +1 -1
- package/package/components/runs/NoWorkerWithTagWarning.svelte +3 -3
- package/package/components/runs/NoWorkerWithTagWarning.svelte.d.ts +1 -1
- package/package/components/schema/AddPropertyV2.svelte +7 -4
- package/package/components/schema/PropertyEditor.svelte.d.ts +1 -1
- package/package/components/select/MultiSelect.svelte +2 -2
- package/package/components/select/MultiSelect.svelte.d.ts +1 -0
- package/package/components/settings/WorkspaceUserSettings.svelte +92 -1
- package/package/components/sidebar/MenuLink.svelte +2 -1
- package/package/components/sidebar/MenuLink.svelte.d.ts +1 -0
- package/package/components/sidebar/SidebarContent.svelte +27 -27
- package/package/components/table/Cell.svelte +7 -14
- package/package/components/table/Cell.svelte.d.ts +13 -35
- package/package/components/triggers/AddTriggersButton.svelte +1 -0
- package/package/components/triggers/gcp/GcpTriggerEditorConfigSection.svelte +1 -1
- package/package/components/triggers/gcp/GcpTriggerEditorConfigSection.svelte.d.ts +2 -1
- package/package/components/triggers/gcp/GcpTriggerEditorInner.svelte +28 -5
- package/package/components/triggers/gcp/utils.js +1 -0
- package/package/components/triggers/schedules/ScheduleEditorInner.svelte +1 -0
- package/package/components/triggers/webhook/WebhooksConfigSection.svelte +143 -63
- package/package/components/triggers/websocket/WebsocketTriggerEditorInner.svelte +22 -0
- package/package/components/triggers/websocket/utils.js +1 -0
- package/package/components/workspaceSettings/AISettings.svelte +8 -2
- package/package/components/workspaceSettings/AISettings.svelte.d.ts +2 -1
- package/package/components/workspaceSettings/ModelTokenLimits.svelte +165 -0
- package/package/components/workspaceSettings/ModelTokenLimits.svelte.d.ts +8 -0
- package/package/components/workspaceSettings/StorageSettings.svelte +123 -51
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +141 -16
- package/package/gen/schemas.gen.js +144 -16
- package/package/gen/services.gen.d.ts +62 -42
- package/package/gen/services.gen.js +131 -82
- package/package/gen/types.gen.d.ts +218 -144
- package/package/hubPaths.json +2 -1
- package/package/services/JobManager.js +10 -7
- package/package/stores.d.ts +1 -0
- package/package/stores.js +6 -3
- package/package/timelineCompute.svelte.d.ts +21 -0
- package/package/timelineCompute.svelte.js +113 -0
- package/package/utils.d.ts +15 -8
- package/package/utils.js +62 -12
- package/package/workspace_settings.d.ts +13 -8
- package/package/workspace_settings.js +46 -11
- package/package.json +2 -2
|
@@ -193,6 +193,10 @@ export type FlowStatusModule = {
|
|
|
193
193
|
};
|
|
194
194
|
flow_jobs?: Array<(string)>;
|
|
195
195
|
flow_jobs_success?: Array<(boolean)>;
|
|
196
|
+
flow_jobs_duration?: {
|
|
197
|
+
started_at?: Array<(string)>;
|
|
198
|
+
duration_ms?: Array<(number)>;
|
|
199
|
+
};
|
|
196
200
|
branch_chosen?: {
|
|
197
201
|
type: 'branch' | 'default';
|
|
198
202
|
branch?: number;
|
|
@@ -276,6 +280,9 @@ export type AIConfig = {
|
|
|
276
280
|
custom_prompts?: {
|
|
277
281
|
[key: string]: (string);
|
|
278
282
|
};
|
|
283
|
+
max_tokens_per_model?: {
|
|
284
|
+
[key: string]: (number);
|
|
285
|
+
};
|
|
279
286
|
};
|
|
280
287
|
export type Alert = {
|
|
281
288
|
name: string;
|
|
@@ -638,6 +645,7 @@ export type EditVariable = {
|
|
|
638
645
|
description?: string;
|
|
639
646
|
};
|
|
640
647
|
export type AuditLog = {
|
|
648
|
+
workspace_id: string;
|
|
641
649
|
id: number;
|
|
642
650
|
timestamp: string;
|
|
643
651
|
username: string;
|
|
@@ -1158,6 +1166,7 @@ export type WebsocketTrigger = TriggerExtraProperty & {
|
|
|
1158
1166
|
initial_messages?: Array<WebsocketTriggerInitialMessage>;
|
|
1159
1167
|
url_runnable_args?: ScriptArgs;
|
|
1160
1168
|
can_return_message: boolean;
|
|
1169
|
+
can_return_error_result: boolean;
|
|
1161
1170
|
error_handler_path?: string;
|
|
1162
1171
|
error_handler_args?: ScriptArgs;
|
|
1163
1172
|
retry?: Retry;
|
|
@@ -1175,6 +1184,7 @@ export type NewWebsocketTrigger = {
|
|
|
1175
1184
|
initial_messages?: Array<WebsocketTriggerInitialMessage>;
|
|
1176
1185
|
url_runnable_args?: ScriptArgs;
|
|
1177
1186
|
can_return_message: boolean;
|
|
1187
|
+
can_return_error_result: boolean;
|
|
1178
1188
|
error_handler_path?: string;
|
|
1179
1189
|
error_handler_args?: ScriptArgs;
|
|
1180
1190
|
retry?: Retry;
|
|
@@ -1191,6 +1201,7 @@ export type EditWebsocketTrigger = {
|
|
|
1191
1201
|
initial_messages?: Array<WebsocketTriggerInitialMessage>;
|
|
1192
1202
|
url_runnable_args?: ScriptArgs;
|
|
1193
1203
|
can_return_message: boolean;
|
|
1204
|
+
can_return_error_result: boolean;
|
|
1194
1205
|
error_handler_path?: string;
|
|
1195
1206
|
error_handler_args?: ScriptArgs;
|
|
1196
1207
|
retry?: Retry;
|
|
@@ -1300,6 +1311,10 @@ export type GcpTriggerData = {
|
|
|
1300
1311
|
is_flow: boolean;
|
|
1301
1312
|
enabled?: boolean;
|
|
1302
1313
|
auto_acknowledge_msg?: boolean;
|
|
1314
|
+
/**
|
|
1315
|
+
* Time in seconds within which the message must be acknowledged. If not provided, defaults to the subscription's acknowledgment deadline (600 seconds).
|
|
1316
|
+
*/
|
|
1317
|
+
ack_deadline?: number;
|
|
1303
1318
|
error_handler_path?: string;
|
|
1304
1319
|
error_handler_args?: ScriptArgs;
|
|
1305
1320
|
retry?: Retry;
|
|
@@ -1605,6 +1620,13 @@ export type Workspace = {
|
|
|
1605
1620
|
color?: string;
|
|
1606
1621
|
parent_workspace_id?: string | null;
|
|
1607
1622
|
};
|
|
1623
|
+
export type DependencyMap = {
|
|
1624
|
+
workspace_id?: string | null;
|
|
1625
|
+
importer_path?: string | null;
|
|
1626
|
+
importer_kind?: string | null;
|
|
1627
|
+
imported_path?: string | null;
|
|
1628
|
+
importer_node_id?: string | null;
|
|
1629
|
+
};
|
|
1608
1630
|
export type WorkspaceInvite = {
|
|
1609
1631
|
workspace_id: string;
|
|
1610
1632
|
email: string;
|
|
@@ -1782,6 +1804,7 @@ export type LargeFileStorage = {
|
|
|
1782
1804
|
azure_blob_resource_path?: string;
|
|
1783
1805
|
gcs_resource_path?: string;
|
|
1784
1806
|
public_resource?: boolean;
|
|
1807
|
+
advanced_permissions?: Array<S3PermissionRule>;
|
|
1785
1808
|
secondary_storage?: {
|
|
1786
1809
|
[key: string]: {
|
|
1787
1810
|
type?: 'S3Storage' | 'AzureBlobStorage' | 'AzureWorkloadIdentity' | 'S3AwsOidc' | 'GoogleCloudStorage';
|
|
@@ -1806,6 +1829,33 @@ export type DucklakeSettings = {
|
|
|
1806
1829
|
};
|
|
1807
1830
|
};
|
|
1808
1831
|
};
|
|
1832
|
+
export type DynamicInputData = {
|
|
1833
|
+
/**
|
|
1834
|
+
* Name of the function to execute for dynamic select
|
|
1835
|
+
*/
|
|
1836
|
+
entrypoint_function: string;
|
|
1837
|
+
/**
|
|
1838
|
+
* Arguments to pass to the function
|
|
1839
|
+
*/
|
|
1840
|
+
args?: {
|
|
1841
|
+
[key: string]: unknown;
|
|
1842
|
+
};
|
|
1843
|
+
runnable_ref: {
|
|
1844
|
+
source: 'deployed';
|
|
1845
|
+
/**
|
|
1846
|
+
* Path to the deployed script or flow
|
|
1847
|
+
*/
|
|
1848
|
+
path: string;
|
|
1849
|
+
runnable_kind: RunnableKind;
|
|
1850
|
+
} | {
|
|
1851
|
+
source: 'inline';
|
|
1852
|
+
/**
|
|
1853
|
+
* Code content for inline execution
|
|
1854
|
+
*/
|
|
1855
|
+
code: string;
|
|
1856
|
+
language?: ScriptLang;
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1809
1859
|
export type WindmillLargeFile = {
|
|
1810
1860
|
s3: string;
|
|
1811
1861
|
};
|
|
@@ -1842,6 +1892,10 @@ export type WorkspaceDefaultScripts = {
|
|
|
1842
1892
|
hidden?: Array<(string)>;
|
|
1843
1893
|
default_script_content?: unknown;
|
|
1844
1894
|
};
|
|
1895
|
+
export type S3PermissionRule = {
|
|
1896
|
+
pattern: string;
|
|
1897
|
+
allow: string;
|
|
1898
|
+
};
|
|
1845
1899
|
export type GitRepositorySettings = {
|
|
1846
1900
|
script_path: string;
|
|
1847
1901
|
git_repo_resource_path: string;
|
|
@@ -1856,10 +1910,6 @@ export type GitRepositorySettings = {
|
|
|
1856
1910
|
};
|
|
1857
1911
|
exclude_types_override?: Array<GitSyncObjectType>;
|
|
1858
1912
|
};
|
|
1859
|
-
export type UploadFilePart = {
|
|
1860
|
-
part_number: number;
|
|
1861
|
-
tag: string;
|
|
1862
|
-
};
|
|
1863
1913
|
export type MetricMetadata = {
|
|
1864
1914
|
id: string;
|
|
1865
1915
|
name?: string;
|
|
@@ -2165,6 +2215,10 @@ export type ParameterIncludeHeader = string;
|
|
|
2165
2215
|
*
|
|
2166
2216
|
*/
|
|
2167
2217
|
export type ParameterQueueLimit = string;
|
|
2218
|
+
/**
|
|
2219
|
+
* skip the preprocessor
|
|
2220
|
+
*/
|
|
2221
|
+
export type ParameterSkipPreprocessor = boolean;
|
|
2168
2222
|
/**
|
|
2169
2223
|
* The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
2170
2224
|
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
@@ -2460,6 +2514,11 @@ export type DeleteUserData = {
|
|
|
2460
2514
|
workspace: string;
|
|
2461
2515
|
};
|
|
2462
2516
|
export type DeleteUserResponse = string;
|
|
2517
|
+
export type ConvertUserToGroupData = {
|
|
2518
|
+
username: string;
|
|
2519
|
+
workspace: string;
|
|
2520
|
+
};
|
|
2521
|
+
export type ConvertUserToGroupResponse = string;
|
|
2463
2522
|
export type GetCurrentEmailResponse = string;
|
|
2464
2523
|
export type RefreshUserTokenData = {
|
|
2465
2524
|
ifExpiringInLessThanS?: number;
|
|
@@ -2483,7 +2542,6 @@ export type GetRunnableResponse = {
|
|
|
2483
2542
|
workspace: string;
|
|
2484
2543
|
endpoint_async: string;
|
|
2485
2544
|
endpoint_sync: string;
|
|
2486
|
-
endpoint_openai_sync: string;
|
|
2487
2545
|
summary: string;
|
|
2488
2546
|
description?: string;
|
|
2489
2547
|
kind: string;
|
|
@@ -2855,6 +2913,14 @@ export type SetThresholdAlertData = {
|
|
|
2855
2913
|
workspace: string;
|
|
2856
2914
|
};
|
|
2857
2915
|
export type SetThresholdAlertResponse = string;
|
|
2916
|
+
export type RebuildDependencyMapData = {
|
|
2917
|
+
workspace: string;
|
|
2918
|
+
};
|
|
2919
|
+
export type RebuildDependencyMapResponse = string;
|
|
2920
|
+
export type GetDependencyMapData = {
|
|
2921
|
+
workspace: string;
|
|
2922
|
+
};
|
|
2923
|
+
export type GetDependencyMapResponse = Array<DependencyMap>;
|
|
2858
2924
|
export type EditSlackCommandData = {
|
|
2859
2925
|
/**
|
|
2860
2926
|
* WorkspaceInvite
|
|
@@ -2876,6 +2942,10 @@ export type EditTeamsCommandData = {
|
|
|
2876
2942
|
};
|
|
2877
2943
|
export type EditTeamsCommandResponse = string;
|
|
2878
2944
|
export type ListAvailableTeamsIdsData = {
|
|
2945
|
+
/**
|
|
2946
|
+
* Search teams by name
|
|
2947
|
+
*/
|
|
2948
|
+
search?: string;
|
|
2879
2949
|
workspace: string;
|
|
2880
2950
|
};
|
|
2881
2951
|
export type ListAvailableTeamsIdsResponse = Array<{
|
|
@@ -2883,13 +2953,19 @@ export type ListAvailableTeamsIdsResponse = Array<{
|
|
|
2883
2953
|
team_id?: string;
|
|
2884
2954
|
}>;
|
|
2885
2955
|
export type ListAvailableTeamsChannelsData = {
|
|
2956
|
+
/**
|
|
2957
|
+
* Search channels by name
|
|
2958
|
+
*/
|
|
2959
|
+
search?: string;
|
|
2960
|
+
/**
|
|
2961
|
+
* Microsoft Teams team ID
|
|
2962
|
+
*/
|
|
2963
|
+
teamId: string;
|
|
2886
2964
|
workspace: string;
|
|
2887
2965
|
};
|
|
2888
2966
|
export type ListAvailableTeamsChannelsResponse = Array<{
|
|
2889
2967
|
channel_name?: string;
|
|
2890
2968
|
channel_id?: string;
|
|
2891
|
-
service_url?: string;
|
|
2892
|
-
tenant_id?: string;
|
|
2893
2969
|
}>;
|
|
2894
2970
|
export type ConnectTeamsData = {
|
|
2895
2971
|
/**
|
|
@@ -3450,7 +3526,10 @@ export type CreateAccountData = {
|
|
|
3450
3526
|
* code endpoint
|
|
3451
3527
|
*/
|
|
3452
3528
|
requestBody: {
|
|
3453
|
-
|
|
3529
|
+
/**
|
|
3530
|
+
* OAuth refresh token. For authorization_code flow, this contains the actual refresh token. For client_credentials flow, this must be set to an empty string.
|
|
3531
|
+
*/
|
|
3532
|
+
refresh_token: string;
|
|
3454
3533
|
expires_in: number;
|
|
3455
3534
|
client: string;
|
|
3456
3535
|
grant_type?: string;
|
|
@@ -3540,7 +3619,6 @@ export type GetOauthConnectResponse = {
|
|
|
3540
3619
|
scopes?: Array<(string)>;
|
|
3541
3620
|
grant_types?: Array<(string)>;
|
|
3542
3621
|
};
|
|
3543
|
-
export type SyncTeamsResponse = Array<TeamInfo>;
|
|
3544
3622
|
export type SendMessageToConversationData = {
|
|
3545
3623
|
requestBody: {
|
|
3546
3624
|
/**
|
|
@@ -4683,34 +4761,6 @@ export type RunScriptByPathData = {
|
|
|
4683
4761
|
workspace: string;
|
|
4684
4762
|
};
|
|
4685
4763
|
export type RunScriptByPathResponse = string;
|
|
4686
|
-
export type OpenaiSyncScriptByPathData = {
|
|
4687
|
-
/**
|
|
4688
|
-
* List of headers's keys (separated with ',') whove value are added to the args
|
|
4689
|
-
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
4690
|
-
*
|
|
4691
|
-
*/
|
|
4692
|
-
includeHeader?: string;
|
|
4693
|
-
/**
|
|
4694
|
-
* 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)
|
|
4695
|
-
*/
|
|
4696
|
-
jobId?: string;
|
|
4697
|
-
/**
|
|
4698
|
-
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
4699
|
-
*/
|
|
4700
|
-
parentJob?: string;
|
|
4701
|
-
path: string;
|
|
4702
|
-
/**
|
|
4703
|
-
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4704
|
-
*
|
|
4705
|
-
*/
|
|
4706
|
-
queueLimit?: string;
|
|
4707
|
-
/**
|
|
4708
|
-
* script args
|
|
4709
|
-
*/
|
|
4710
|
-
requestBody: ScriptArgs;
|
|
4711
|
-
workspace: string;
|
|
4712
|
-
};
|
|
4713
|
-
export type OpenaiSyncScriptByPathResponse = unknown;
|
|
4714
4764
|
export type RunWaitResultScriptByPathData = {
|
|
4715
4765
|
/**
|
|
4716
4766
|
* Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
@@ -4740,6 +4790,10 @@ export type RunWaitResultScriptByPathData = {
|
|
|
4740
4790
|
* script args
|
|
4741
4791
|
*/
|
|
4742
4792
|
requestBody: ScriptArgs;
|
|
4793
|
+
/**
|
|
4794
|
+
* skip the preprocessor
|
|
4795
|
+
*/
|
|
4796
|
+
skipPreprocessor?: boolean;
|
|
4743
4797
|
/**
|
|
4744
4798
|
* Override the tag to use
|
|
4745
4799
|
*/
|
|
@@ -4778,6 +4832,10 @@ export type RunWaitResultScriptByPathGetData = {
|
|
|
4778
4832
|
*
|
|
4779
4833
|
*/
|
|
4780
4834
|
queueLimit?: string;
|
|
4835
|
+
/**
|
|
4836
|
+
* skip the preprocessor
|
|
4837
|
+
*/
|
|
4838
|
+
skipPreprocessor?: boolean;
|
|
4781
4839
|
/**
|
|
4782
4840
|
* Override the tag to use
|
|
4783
4841
|
*/
|
|
@@ -4785,7 +4843,7 @@ export type RunWaitResultScriptByPathGetData = {
|
|
|
4785
4843
|
workspace: string;
|
|
4786
4844
|
};
|
|
4787
4845
|
export type RunWaitResultScriptByPathGetResponse = unknown;
|
|
4788
|
-
export type
|
|
4846
|
+
export type RunWaitResultFlowByPathData = {
|
|
4789
4847
|
/**
|
|
4790
4848
|
* List of headers's keys (separated with ',') whove value are added to the args
|
|
4791
4849
|
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
@@ -4806,30 +4864,10 @@ export type OpenaiSyncFlowByPathData = {
|
|
|
4806
4864
|
* script args
|
|
4807
4865
|
*/
|
|
4808
4866
|
requestBody: ScriptArgs;
|
|
4809
|
-
workspace: string;
|
|
4810
|
-
};
|
|
4811
|
-
export type OpenaiSyncFlowByPathResponse = unknown;
|
|
4812
|
-
export type RunWaitResultFlowByPathData = {
|
|
4813
4867
|
/**
|
|
4814
|
-
*
|
|
4815
|
-
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
4816
|
-
*
|
|
4817
|
-
*/
|
|
4818
|
-
includeHeader?: string;
|
|
4819
|
-
/**
|
|
4820
|
-
* 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)
|
|
4821
|
-
*/
|
|
4822
|
-
jobId?: string;
|
|
4823
|
-
path: string;
|
|
4824
|
-
/**
|
|
4825
|
-
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
4826
|
-
*
|
|
4827
|
-
*/
|
|
4828
|
-
queueLimit?: string;
|
|
4829
|
-
/**
|
|
4830
|
-
* script args
|
|
4868
|
+
* skip the preprocessor
|
|
4831
4869
|
*/
|
|
4832
|
-
|
|
4870
|
+
skipPreprocessor?: boolean;
|
|
4833
4871
|
workspace: string;
|
|
4834
4872
|
};
|
|
4835
4873
|
export type RunWaitResultFlowByPathResponse = unknown;
|
|
@@ -5087,6 +5125,14 @@ export type RunFlowPreviewAndWaitResultData = {
|
|
|
5087
5125
|
workspace: string;
|
|
5088
5126
|
};
|
|
5089
5127
|
export type RunFlowPreviewAndWaitResultResponse = unknown;
|
|
5128
|
+
export type RunDynamicSelectData = {
|
|
5129
|
+
/**
|
|
5130
|
+
* dynamic select request
|
|
5131
|
+
*/
|
|
5132
|
+
requestBody: DynamicInputData;
|
|
5133
|
+
workspace: string;
|
|
5134
|
+
};
|
|
5135
|
+
export type RunDynamicSelectResponse = string;
|
|
5090
5136
|
export type ListQueueData = {
|
|
5091
5137
|
/**
|
|
5092
5138
|
* allow wildcards (*) in the filter of label, tag, worker
|
|
@@ -5426,6 +5472,7 @@ export type ListFilteredQueueUuidsData = {
|
|
|
5426
5472
|
};
|
|
5427
5473
|
export type ListFilteredQueueUuidsResponse = Array<(string)>;
|
|
5428
5474
|
export type CancelSelectionData = {
|
|
5475
|
+
forceCancel?: boolean;
|
|
5429
5476
|
/**
|
|
5430
5477
|
* uuids of the jobs to cancel
|
|
5431
5478
|
*/
|
|
@@ -5700,6 +5747,14 @@ export type GetJobArgsData = {
|
|
|
5700
5747
|
workspace: string;
|
|
5701
5748
|
};
|
|
5702
5749
|
export type GetJobArgsResponse = unknown;
|
|
5750
|
+
export type GetStartedAtByIdsData = {
|
|
5751
|
+
/**
|
|
5752
|
+
* ids
|
|
5753
|
+
*/
|
|
5754
|
+
requestBody: Array<(string)>;
|
|
5755
|
+
workspace: string;
|
|
5756
|
+
};
|
|
5757
|
+
export type GetStartedAtByIdsResponse = Array<(string)>;
|
|
5703
5758
|
export type GetJobUpdatesData = {
|
|
5704
5759
|
getProgress?: boolean;
|
|
5705
5760
|
id: string;
|
|
@@ -8265,6 +8320,20 @@ export type $OpenApiTs = {
|
|
|
8265
8320
|
};
|
|
8266
8321
|
};
|
|
8267
8322
|
};
|
|
8323
|
+
'/w/{workspace}/users/convert_to_group/{username}': {
|
|
8324
|
+
post: {
|
|
8325
|
+
req: {
|
|
8326
|
+
username: string;
|
|
8327
|
+
workspace: string;
|
|
8328
|
+
};
|
|
8329
|
+
res: {
|
|
8330
|
+
/**
|
|
8331
|
+
* convert user to group user
|
|
8332
|
+
*/
|
|
8333
|
+
200: string;
|
|
8334
|
+
};
|
|
8335
|
+
};
|
|
8336
|
+
};
|
|
8268
8337
|
'/users/email': {
|
|
8269
8338
|
get: {
|
|
8270
8339
|
res: {
|
|
@@ -8346,7 +8415,6 @@ export type $OpenApiTs = {
|
|
|
8346
8415
|
workspace: string;
|
|
8347
8416
|
endpoint_async: string;
|
|
8348
8417
|
endpoint_sync: string;
|
|
8349
|
-
endpoint_openai_sync: string;
|
|
8350
8418
|
summary: string;
|
|
8351
8419
|
description?: string;
|
|
8352
8420
|
kind: string;
|
|
@@ -9170,6 +9238,32 @@ export type $OpenApiTs = {
|
|
|
9170
9238
|
};
|
|
9171
9239
|
};
|
|
9172
9240
|
};
|
|
9241
|
+
'/w/{workspace}/workspaces/rebuild_dependency_map': {
|
|
9242
|
+
post: {
|
|
9243
|
+
req: {
|
|
9244
|
+
workspace: string;
|
|
9245
|
+
};
|
|
9246
|
+
res: {
|
|
9247
|
+
/**
|
|
9248
|
+
* status
|
|
9249
|
+
*/
|
|
9250
|
+
200: string;
|
|
9251
|
+
};
|
|
9252
|
+
};
|
|
9253
|
+
};
|
|
9254
|
+
'/w/{workspace}/workspaces/get_dependency_map': {
|
|
9255
|
+
get: {
|
|
9256
|
+
req: {
|
|
9257
|
+
workspace: string;
|
|
9258
|
+
};
|
|
9259
|
+
res: {
|
|
9260
|
+
/**
|
|
9261
|
+
* dmap
|
|
9262
|
+
*/
|
|
9263
|
+
200: Array<DependencyMap>;
|
|
9264
|
+
};
|
|
9265
|
+
};
|
|
9266
|
+
};
|
|
9173
9267
|
'/w/{workspace}/workspaces/edit_slack_command': {
|
|
9174
9268
|
post: {
|
|
9175
9269
|
req: {
|
|
@@ -9211,6 +9305,10 @@ export type $OpenApiTs = {
|
|
|
9211
9305
|
'/w/{workspace}/workspaces/available_teams_ids': {
|
|
9212
9306
|
get: {
|
|
9213
9307
|
req: {
|
|
9308
|
+
/**
|
|
9309
|
+
* Search teams by name
|
|
9310
|
+
*/
|
|
9311
|
+
search?: string;
|
|
9214
9312
|
workspace: string;
|
|
9215
9313
|
};
|
|
9216
9314
|
res: {
|
|
@@ -9227,17 +9325,23 @@ export type $OpenApiTs = {
|
|
|
9227
9325
|
'/w/{workspace}/workspaces/available_teams_channels': {
|
|
9228
9326
|
get: {
|
|
9229
9327
|
req: {
|
|
9328
|
+
/**
|
|
9329
|
+
* Search channels by name
|
|
9330
|
+
*/
|
|
9331
|
+
search?: string;
|
|
9332
|
+
/**
|
|
9333
|
+
* Microsoft Teams team ID
|
|
9334
|
+
*/
|
|
9335
|
+
teamId: string;
|
|
9230
9336
|
workspace: string;
|
|
9231
9337
|
};
|
|
9232
9338
|
res: {
|
|
9233
9339
|
/**
|
|
9234
|
-
*
|
|
9340
|
+
* List of channels for the specified team
|
|
9235
9341
|
*/
|
|
9236
9342
|
200: Array<{
|
|
9237
9343
|
channel_name?: string;
|
|
9238
9344
|
channel_id?: string;
|
|
9239
|
-
service_url?: string;
|
|
9240
|
-
tenant_id?: string;
|
|
9241
9345
|
}>;
|
|
9242
9346
|
};
|
|
9243
9347
|
};
|
|
@@ -10382,7 +10486,10 @@ export type $OpenApiTs = {
|
|
|
10382
10486
|
* code endpoint
|
|
10383
10487
|
*/
|
|
10384
10488
|
requestBody: {
|
|
10385
|
-
|
|
10489
|
+
/**
|
|
10490
|
+
* OAuth refresh token. For authorization_code flow, this contains the actual refresh token. For client_credentials flow, this must be set to an empty string.
|
|
10491
|
+
*/
|
|
10492
|
+
refresh_token: string;
|
|
10386
10493
|
expires_in: number;
|
|
10387
10494
|
client: string;
|
|
10388
10495
|
grant_type?: string;
|
|
@@ -10551,16 +10658,6 @@ export type $OpenApiTs = {
|
|
|
10551
10658
|
};
|
|
10552
10659
|
};
|
|
10553
10660
|
};
|
|
10554
|
-
'/teams/sync': {
|
|
10555
|
-
post: {
|
|
10556
|
-
res: {
|
|
10557
|
-
/**
|
|
10558
|
-
* Teams information successfully synchronized
|
|
10559
|
-
*/
|
|
10560
|
-
200: Array<TeamInfo>;
|
|
10561
|
-
};
|
|
10562
|
-
};
|
|
10563
|
-
};
|
|
10564
10661
|
'/teams/activities': {
|
|
10565
10662
|
post: {
|
|
10566
10663
|
req: {
|
|
@@ -12702,43 +12799,6 @@ export type $OpenApiTs = {
|
|
|
12702
12799
|
};
|
|
12703
12800
|
};
|
|
12704
12801
|
};
|
|
12705
|
-
'/w/{workspace}/jobs/openai_sync/p/{path}': {
|
|
12706
|
-
post: {
|
|
12707
|
-
req: {
|
|
12708
|
-
/**
|
|
12709
|
-
* List of headers's keys (separated with ',') whove value are added to the args
|
|
12710
|
-
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
12711
|
-
*
|
|
12712
|
-
*/
|
|
12713
|
-
includeHeader?: string;
|
|
12714
|
-
/**
|
|
12715
|
-
* 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)
|
|
12716
|
-
*/
|
|
12717
|
-
jobId?: string;
|
|
12718
|
-
/**
|
|
12719
|
-
* The parent job that is at the origin and responsible for the execution of this script if any
|
|
12720
|
-
*/
|
|
12721
|
-
parentJob?: string;
|
|
12722
|
-
path: string;
|
|
12723
|
-
/**
|
|
12724
|
-
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
12725
|
-
*
|
|
12726
|
-
*/
|
|
12727
|
-
queueLimit?: string;
|
|
12728
|
-
/**
|
|
12729
|
-
* script args
|
|
12730
|
-
*/
|
|
12731
|
-
requestBody: ScriptArgs;
|
|
12732
|
-
workspace: string;
|
|
12733
|
-
};
|
|
12734
|
-
res: {
|
|
12735
|
-
/**
|
|
12736
|
-
* job result
|
|
12737
|
-
*/
|
|
12738
|
-
200: unknown;
|
|
12739
|
-
};
|
|
12740
|
-
};
|
|
12741
|
-
};
|
|
12742
12802
|
'/w/{workspace}/jobs/run_wait_result/p/{path}': {
|
|
12743
12803
|
post: {
|
|
12744
12804
|
req: {
|
|
@@ -12770,6 +12830,10 @@ export type $OpenApiTs = {
|
|
|
12770
12830
|
* script args
|
|
12771
12831
|
*/
|
|
12772
12832
|
requestBody: ScriptArgs;
|
|
12833
|
+
/**
|
|
12834
|
+
* skip the preprocessor
|
|
12835
|
+
*/
|
|
12836
|
+
skipPreprocessor?: boolean;
|
|
12773
12837
|
/**
|
|
12774
12838
|
* Override the tag to use
|
|
12775
12839
|
*/
|
|
@@ -12815,6 +12879,10 @@ export type $OpenApiTs = {
|
|
|
12815
12879
|
*
|
|
12816
12880
|
*/
|
|
12817
12881
|
queueLimit?: string;
|
|
12882
|
+
/**
|
|
12883
|
+
* skip the preprocessor
|
|
12884
|
+
*/
|
|
12885
|
+
skipPreprocessor?: boolean;
|
|
12818
12886
|
/**
|
|
12819
12887
|
* Override the tag to use
|
|
12820
12888
|
*/
|
|
@@ -12829,7 +12897,7 @@ export type $OpenApiTs = {
|
|
|
12829
12897
|
};
|
|
12830
12898
|
};
|
|
12831
12899
|
};
|
|
12832
|
-
'/w/{workspace}/jobs/
|
|
12900
|
+
'/w/{workspace}/jobs/run_wait_result/f/{path}': {
|
|
12833
12901
|
post: {
|
|
12834
12902
|
req: {
|
|
12835
12903
|
/**
|
|
@@ -12852,39 +12920,10 @@ export type $OpenApiTs = {
|
|
|
12852
12920
|
* script args
|
|
12853
12921
|
*/
|
|
12854
12922
|
requestBody: ScriptArgs;
|
|
12855
|
-
workspace: string;
|
|
12856
|
-
};
|
|
12857
|
-
res: {
|
|
12858
|
-
/**
|
|
12859
|
-
* job result
|
|
12860
|
-
*/
|
|
12861
|
-
200: unknown;
|
|
12862
|
-
};
|
|
12863
|
-
};
|
|
12864
|
-
};
|
|
12865
|
-
'/w/{workspace}/jobs/run_wait_result/f/{path}': {
|
|
12866
|
-
post: {
|
|
12867
|
-
req: {
|
|
12868
|
-
/**
|
|
12869
|
-
* List of headers's keys (separated with ',') whove value are added to the args
|
|
12870
|
-
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
12871
|
-
*
|
|
12872
|
-
*/
|
|
12873
|
-
includeHeader?: string;
|
|
12874
|
-
/**
|
|
12875
|
-
* 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)
|
|
12876
|
-
*/
|
|
12877
|
-
jobId?: string;
|
|
12878
|
-
path: string;
|
|
12879
|
-
/**
|
|
12880
|
-
* The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
12881
|
-
*
|
|
12882
|
-
*/
|
|
12883
|
-
queueLimit?: string;
|
|
12884
12923
|
/**
|
|
12885
|
-
*
|
|
12924
|
+
* skip the preprocessor
|
|
12886
12925
|
*/
|
|
12887
|
-
|
|
12926
|
+
skipPreprocessor?: boolean;
|
|
12888
12927
|
workspace: string;
|
|
12889
12928
|
};
|
|
12890
12929
|
res: {
|
|
@@ -13248,6 +13287,23 @@ export type $OpenApiTs = {
|
|
|
13248
13287
|
};
|
|
13249
13288
|
};
|
|
13250
13289
|
};
|
|
13290
|
+
'/w/{workspace}/jobs/run/dynamic_select': {
|
|
13291
|
+
post: {
|
|
13292
|
+
req: {
|
|
13293
|
+
/**
|
|
13294
|
+
* dynamic select request
|
|
13295
|
+
*/
|
|
13296
|
+
requestBody: DynamicInputData;
|
|
13297
|
+
workspace: string;
|
|
13298
|
+
};
|
|
13299
|
+
res: {
|
|
13300
|
+
/**
|
|
13301
|
+
* dynamic select job created
|
|
13302
|
+
*/
|
|
13303
|
+
201: string;
|
|
13304
|
+
};
|
|
13305
|
+
};
|
|
13306
|
+
};
|
|
13251
13307
|
'/w/{workspace}/jobs/queue/list': {
|
|
13252
13308
|
get: {
|
|
13253
13309
|
req: {
|
|
@@ -13643,6 +13699,7 @@ export type $OpenApiTs = {
|
|
|
13643
13699
|
'/w/{workspace}/jobs/queue/cancel_selection': {
|
|
13644
13700
|
post: {
|
|
13645
13701
|
req: {
|
|
13702
|
+
forceCancel?: boolean;
|
|
13646
13703
|
/**
|
|
13647
13704
|
* uuids of the jobs to cancel
|
|
13648
13705
|
*/
|
|
@@ -14005,6 +14062,23 @@ export type $OpenApiTs = {
|
|
|
14005
14062
|
};
|
|
14006
14063
|
};
|
|
14007
14064
|
};
|
|
14065
|
+
'/w/{workspace}/jobs_u/queue/get_started_at_by_ids': {
|
|
14066
|
+
post: {
|
|
14067
|
+
req: {
|
|
14068
|
+
/**
|
|
14069
|
+
* ids
|
|
14070
|
+
*/
|
|
14071
|
+
requestBody: Array<(string)>;
|
|
14072
|
+
workspace: string;
|
|
14073
|
+
};
|
|
14074
|
+
res: {
|
|
14075
|
+
/**
|
|
14076
|
+
* started at by ids
|
|
14077
|
+
*/
|
|
14078
|
+
200: Array<(string)>;
|
|
14079
|
+
};
|
|
14080
|
+
};
|
|
14081
|
+
};
|
|
14008
14082
|
'/w/{workspace}/jobs_u/getupdate/{id}': {
|
|
14009
14083
|
get: {
|
|
14010
14084
|
req: {
|
package/package/hubPaths.json
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"gitSync_12": "hub/19798/sync-script-to-git-repo-windmill",
|
|
15
15
|
"gitSync_13": "hub/19801/sync-script-to-git-repo-windmill",
|
|
16
16
|
"gitSync_14": "hub/19803/sync-script-to-git-repo-windmill",
|
|
17
|
-
"
|
|
17
|
+
"gitSync_15": "hub/19816/sync-script-to-git-repo-windmill",
|
|
18
|
+
"gitSync": "hub/19818/sync-script-to-git-repo-windmill",
|
|
18
19
|
"gitSyncTest_0": "hub/9073/git-repo-test-read-write-windmill",
|
|
19
20
|
"gitSyncTest_1": "hub/11499/git-repo-test-read-write-windmill",
|
|
20
21
|
"gitSyncTest_2": "hub/11667/git-repo-test-read-write-windmill",
|
|
@@ -46,10 +46,16 @@ export class JobManager {
|
|
|
46
46
|
if (controller.signal.aborted) {
|
|
47
47
|
throw new Error('Job was cancelled');
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
49
|
+
let jobResult;
|
|
50
|
+
try {
|
|
51
|
+
jobResult = await JobService.getCompletedJob({
|
|
52
|
+
workspace,
|
|
53
|
+
id: jobId
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
catch (error) {
|
|
57
|
+
throw error;
|
|
58
|
+
}
|
|
53
59
|
const success = !!jobResult.success;
|
|
54
60
|
const status = {
|
|
55
61
|
status: success ? 'success' : 'failure',
|
|
@@ -57,9 +63,6 @@ export class JobManager {
|
|
|
57
63
|
error: success ? undefined : jobResult.result?.error?.message || 'Job failed'
|
|
58
64
|
};
|
|
59
65
|
onProgress?.(status);
|
|
60
|
-
if (!success) {
|
|
61
|
-
throw new Error(status.error);
|
|
62
|
-
}
|
|
63
66
|
return jobResult.result;
|
|
64
67
|
},
|
|
65
68
|
timeoutCode: async () => {
|