windmill-components 1.550.0 → 1.555.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/aiStore.d.ts +13 -0
- package/package/aiStore.js +70 -0
- package/package/common.d.ts +2 -1
- package/package/components/AIProviderPicker.svelte +25 -8
- package/package/components/ArgEnum.svelte +3 -2
- package/package/components/ArgEnum.svelte.d.ts +1 -0
- package/package/components/ArgInput.svelte +235 -174
- package/package/components/ArgInput.svelte.d.ts +4 -1
- package/package/components/ArrayTypeNarrowing.svelte +38 -32
- package/package/components/AutoscalingEvents.svelte +21 -5
- package/package/components/AutoscalingEvents.svelte.d.ts +4 -18
- package/package/components/DateTimeInput.svelte +8 -6
- package/package/components/DeployButton.svelte +1 -1
- package/package/components/Dev.svelte +6 -4
- package/package/components/EditableSchemaForm.svelte +7 -6
- package/package/components/Editor.svelte +2 -1
- package/package/components/EditorSettings.svelte +5 -5
- package/package/components/EditorSettings.svelte.d.ts +4 -18
- package/package/components/FakeMonacoPlaceHolder.svelte +4 -2
- package/package/components/FakeMonacoPlaceHolder.svelte.d.ts +1 -0
- package/package/components/FieldHeader.svelte +5 -7
- package/package/components/FirstStepInputs.svelte +1 -1
- package/package/components/FlowLoopIterationPreview.svelte.d.ts +1 -1
- package/package/components/FlowPlugConnect.svelte +8 -2
- package/package/components/FlowPlugConnect.svelte.d.ts +1 -0
- package/package/components/FlowPreviewContent.svelte +113 -92
- package/package/components/FlowPreviewContent.svelte.d.ts +3 -3
- package/package/components/FlowStatusViewer.svelte +3 -2
- package/package/components/FlowStatusViewerInner.svelte +1 -1
- package/package/components/FolderEditor.svelte +6 -7
- package/package/components/GroupEditor.svelte +148 -141
- package/package/components/GroupEditor.svelte.d.ts +5 -4
- package/package/components/InputTransformForm.svelte +88 -82
- package/package/components/InputTransformSchemaForm.svelte +5 -4
- package/package/components/InstanceSetting.svelte +17 -9
- package/package/components/JsonEditor.svelte +18 -9
- package/package/components/JsonEditor.svelte.d.ts +1 -1
- package/package/components/JsonInputs.svelte +1 -1
- package/package/components/ModulePreviewForm.svelte +23 -19
- package/package/components/NumberTypeNarrowing.svelte +32 -16
- package/package/components/ObjectStoreConfigSettings.svelte +27 -19
- package/package/components/Path.svelte +2 -8
- package/package/components/Path.svelte.d.ts +1 -1
- package/package/components/ResourceEditor.svelte +3 -10
- package/package/components/ResourcePicker.svelte +85 -72
- package/package/components/ResourcePicker.svelte.d.ts +2 -0
- package/package/components/RunChart.svelte +1 -1
- package/package/components/RunForm.svelte +11 -7
- package/package/components/S3ArrayHelperButton.svelte +12 -6
- package/package/components/S3ArrayHelperButton.svelte.d.ts +1 -0
- package/package/components/S3FilePicker.svelte +1 -1
- package/package/components/SchemaForm.svelte +18 -10
- package/package/components/SchemaForm.svelte.d.ts +7 -1
- package/package/components/SchemaFormWithArgPicker.svelte +1 -1
- package/package/components/ScriptBuilder.svelte +2 -2
- package/package/components/ScriptEditor.svelte +4 -3
- package/package/components/ScriptEditor.svelte.d.ts +1 -1
- package/package/components/ShareModal.svelte +4 -4
- package/package/components/SimpleEditor.svelte +6 -2
- package/package/components/SimpleEditor.svelte.d.ts +3 -0
- package/package/components/StringTypeNarrowing.svelte +5 -1
- package/package/components/SuperadminSettingsInner.svelte +3 -3
- package/package/components/TemplateEditor.svelte +18 -9
- package/package/components/Toast.svelte +2 -7
- package/package/components/Toast.svelte.d.ts +4 -18
- package/package/components/Toggle.svelte +17 -7
- package/package/components/ToggleHubWorkspaceQuick.svelte +3 -3
- package/package/components/WorkerGroup.svelte +2 -14
- package/package/components/apps/components/buttons/AppButton.svelte +57 -39
- package/package/components/apps/components/display/dbtable/InsertRow.svelte +32 -2
- package/package/components/apps/components/display/dbtable/queries/insert.js +2 -1
- package/package/components/apps/components/display/dbtable/utils.d.ts +8 -8
- package/package/components/apps/components/display/table/utils.js +13 -3
- package/package/components/apps/components/helpers/RunnableComponent.svelte +3 -3
- package/package/components/apps/components/inputs/currency/CurrencyInput.svelte +2 -1
- package/package/components/apps/editor/AppEditorHeader.svelte +33 -271
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte +233 -0
- package/package/components/apps/editor/AppEditorHeaderDeploy.svelte.d.ts +18 -0
- package/package/components/apps/editor/AppEditorHeaderDeployInitialDraft.svelte +47 -0
- package/package/components/apps/editor/AppEditorHeaderDeployInitialDraft.svelte.d.ts +8 -0
- package/package/components/apps/editor/GridEditor.svelte +7 -2
- package/package/components/apps/editor/appDeploy.svelte.d.ts +1 -0
- package/package/components/apps/editor/appDeploy.svelte.js +6 -0
- package/package/components/apps/editor/appUtils.d.ts +1 -0
- package/package/components/apps/editor/appUtils.js +30 -1
- package/package/components/apps/editor/component/ComponentNavigation.svelte +3 -1
- package/package/components/apps/editor/component/components.d.ts +3 -3
- package/package/components/apps/editor/component/components.js +1 -1
- package/package/components/apps/editor/contextPanel/ComponentOutputViewer.svelte +1 -1
- package/package/components/apps/editor/inlineScriptsPanel/EmptyInlineScript.svelte +6 -4
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptEditor.svelte.d.ts +1 -1
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptEditorDrawer.svelte.d.ts +1 -1
- package/package/components/apps/editor/inlineScriptsPanel/InlineScriptRunnableByPath.svelte.d.ts +1 -1
- package/package/components/apps/editor/settingsPanel/InputsSpecEditor.svelte +58 -8
- package/package/components/auditLogs/AuditLogsFilters.svelte +1 -1
- package/package/components/common/ResizeTransitionWrapper.svelte +39 -0
- package/package/components/common/ResizeTransitionWrapper.svelte.d.ts +12 -0
- package/package/components/common/badge/CountBadge.svelte +29 -0
- package/package/components/common/badge/CountBadge.svelte.d.ts +8 -0
- package/package/components/common/button/Button.svelte +1 -0
- package/package/components/common/button/ConnectionButton.svelte +6 -1
- package/package/components/common/button/ConnectionButton.svelte.d.ts +2 -0
- package/package/components/common/button/RefreshButton.svelte +8 -4
- package/package/components/common/button/RefreshButton.svelte.d.ts +3 -0
- package/package/components/common/calendarPicker/CalendarPicker.svelte +1 -1
- package/package/components/common/fileInput/FileInput.svelte +7 -6
- package/package/components/common/fileUpload/S3ArgInput.svelte +11 -9
- package/package/components/common/fileUpload/S3ArgInput.svelte.d.ts +1 -0
- package/package/components/common/popup/PopupV2.svelte +6 -0
- package/package/components/common/toggleButton-v2/ToggleButton.svelte +17 -26
- package/package/components/common/toggleButton-v2/ToggleButton.svelte.d.ts +16 -30
- package/package/components/common/toggleButton-v2/ToggleButtonGroup.svelte +1 -1
- package/package/components/common/toggleButton-v2/ToggleButtonMore.svelte +3 -3
- package/package/components/common/toggleButton-v2/ToggleButtonMore.svelte.d.ts +1 -0
- package/package/components/copilot/CodeCompletionStatus.svelte +2 -1
- package/package/components/copilot/CronGen.svelte +1 -1
- package/package/components/copilot/FlowInlineScriptAIButton.svelte +2 -2
- package/package/components/copilot/IteratorGen.svelte +30 -25
- package/package/components/copilot/IteratorGen.svelte.d.ts +8 -7
- package/package/components/copilot/MetadataGen.svelte +4 -3
- package/package/components/copilot/PredicateGen.svelte +15 -12
- package/package/components/copilot/PredicateGen.svelte.d.ts +5 -4
- package/package/components/copilot/RegexGen.svelte +1 -1
- package/package/components/copilot/ScriptFix.svelte +1 -1
- package/package/components/copilot/ScriptGen.svelte +2 -1
- package/package/components/copilot/StepGenQuick.svelte +15 -16
- package/package/components/copilot/StepGenQuick.svelte.d.ts +14 -13
- package/package/components/copilot/StepInputGen.svelte +50 -36
- package/package/components/copilot/StepInputGen.svelte.d.ts +13 -10
- package/package/components/copilot/StepInputsGen.svelte +18 -19
- package/package/components/copilot/StepInputsGen.svelte.d.ts +4 -18
- package/package/components/copilot/autocomplete/Autocompletor.js +1 -1
- package/package/components/copilot/autocomplete/request.js +1 -1
- package/package/components/copilot/chat/AIChat.svelte +2 -1
- package/package/components/copilot/chat/AIChatManager.svelte.js +2 -1
- package/package/components/copilot/chat/AiChatLayout.svelte +2 -1
- package/package/components/copilot/chat/ProviderModelSelector.svelte +10 -9
- package/package/components/copilot/chat/ProviderModelSelector.svelte.d.ts +2 -17
- package/package/components/copilot/chat/flow/FlowAIButton.svelte +1 -1
- package/package/components/copilot/chat/script/core.js +2 -1
- package/package/components/copilot/chat/shared.js +2 -1
- package/package/components/copilot/lib.js +2 -1
- package/package/components/details/DetailPageLayout.svelte +3 -2
- package/package/components/details/DetailPageLayout.svelte.d.ts +1 -0
- package/package/components/flows/CreateActionsFlow.svelte +1 -1
- package/package/components/flows/FlowChatInterface.svelte +404 -0
- package/package/components/flows/FlowChatInterface.svelte.d.ts +19 -0
- package/package/components/flows/FlowChatMessage.svelte +41 -0
- package/package/components/flows/FlowChatMessage.svelte.d.ts +9 -0
- package/package/components/flows/FlowConversationsSidebar.svelte +213 -0
- package/package/components/flows/FlowConversationsSidebar.svelte.d.ts +15 -0
- package/package/components/flows/FlowEditor.svelte.d.ts +1 -1
- package/package/components/flows/FlowModuleIcon.svelte +10 -10
- package/package/components/flows/common/FlowCard.svelte +10 -2
- package/package/components/flows/common/FlowCard.svelte.d.ts +1 -0
- package/package/components/flows/common/FlowCardHeader.svelte +2 -1
- package/package/components/flows/common/FlowCardHeader.svelte.d.ts +1 -0
- package/package/components/flows/content/DynamicInputHelpBox.svelte +4 -4
- package/package/components/flows/content/FlowEditorPanel.svelte.d.ts +1 -1
- package/package/components/flows/content/FlowInput.svelte +381 -259
- package/package/components/flows/content/FlowInput.svelte.d.ts +1 -1
- package/package/components/flows/content/FlowInputsQuick.svelte +55 -34
- package/package/components/flows/content/FlowInputsQuick.svelte.d.ts +2 -2
- package/package/components/flows/content/FlowModuleComponent.svelte +5 -10
- package/package/components/flows/flowInfers.d.ts +60 -0
- package/package/components/flows/flowInfers.js +72 -66
- package/package/components/flows/{flowStore.d.ts → flowStore.svelte.d.ts} +1 -0
- package/package/components/flows/header/FlowPreviewButtons.svelte +1 -1
- package/package/components/flows/map/FlowErrorHandlerItem.svelte +4 -2
- package/package/components/flows/map/FlowErrorHandlerItem.svelte.d.ts +1 -0
- package/package/components/flows/map/FlowModuleSchemaItem.svelte +1 -1
- package/package/components/flows/map/FlowModuleSchemaMap.svelte +5 -2
- package/package/components/flows/map/FlowStickyNode.svelte +2 -2
- package/package/components/flows/map/FlowStickyNode.svelte.d.ts +1 -0
- package/package/components/flows/map/InsertModuleButton.svelte +5 -2
- package/package/components/flows/map/InsertModuleButton.svelte.d.ts +4 -3
- package/package/components/flows/map/InsertModuleInner.svelte +3 -1
- package/package/components/flows/map/InsertModuleInner.svelte.d.ts +2 -2
- package/package/components/flows/map/VirtualItem.svelte +1 -2
- package/package/components/flows/pickers/PickHubScriptQuick.svelte +8 -3
- package/package/components/flows/pickers/PickHubScriptQuick.svelte.d.ts +1 -1
- package/package/components/flows/pickers/WorkspaceScriptPickerQuick.svelte +15 -12
- package/package/components/flows/propPicker/PropPickerWrapper.svelte +1 -15
- package/package/components/graph/FlowGraphV2.svelte +2 -1
- package/package/components/graph/FlowGraphV2.svelte.d.ts +1 -0
- package/package/components/graph/graphBuilder.svelte.d.ts +2 -0
- package/package/components/graph/graphBuilder.svelte.js +1 -0
- package/package/components/graph/renderers/edges/BaseEdge.svelte +1 -0
- package/package/components/graph/renderers/nodes/InputNode.svelte +13 -2
- package/package/components/graph/renderers/triggers/TriggersBadge.svelte +2 -27
- package/package/components/instanceSettings.js +17 -0
- package/package/components/progressBar/ProgressBar.svelte +1 -1
- package/package/components/raw_apps/FileEditorIcon.svelte +1 -1
- package/package/components/raw_apps/FileEditorIcon.svelte.d.ts +4 -18
- package/package/components/raw_apps/RawAppBackgroundRunner.svelte +2 -8
- package/package/components/raw_apps/RawAppBackgroundRunner.svelte.d.ts +4 -18
- package/package/components/raw_apps/RawAppEditor.svelte +6 -7
- package/package/components/raw_apps/RawAppEditorHeader.svelte +48 -301
- package/package/components/raw_apps/RawAppEditorHeader.svelte.d.ts +18 -19
- package/package/components/raw_apps/RawAppInlineScriptEditor.svelte +10 -16
- package/package/components/raw_apps/RawAppInlineScriptEditor.svelte.d.ts +13 -13
- package/package/components/raw_apps/RawAppInlineScriptPanelList.svelte +8 -11
- package/package/components/raw_apps/RawAppInlineScriptPanelList.svelte.d.ts +1 -2
- package/package/components/raw_apps/RawAppInlineScriptRunnable.svelte +0 -1
- package/package/components/raw_apps/RawAppInlineScriptsPanel.svelte +7 -13
- package/package/components/raw_apps/RawAppInlineScriptsPanel.svelte.d.ts +8 -8
- package/package/components/raw_apps/RawAppPreview.svelte +3 -7
- package/package/components/raw_apps/RawAppPreview.svelte.d.ts +5 -19
- package/package/components/raw_apps/utils.d.ts +1 -1
- package/package/components/raw_apps/utils.js +3 -3
- package/package/components/runs/RunOption.svelte +2 -2
- package/package/components/runs/RunsFilter.svelte +15 -12
- package/package/components/runs/RunsFilter.svelte.d.ts +1 -1
- package/package/components/schema/EditableSchemaDrawer.svelte +19 -18
- package/package/components/schema/FlowPropertyEditor.svelte +9 -2
- package/package/components/schema/FlowPropertyEditor.svelte.d.ts +1 -1
- package/package/components/schema/PropertyEditor.svelte +22 -26
- package/package/components/schema/SchemaFormDND.svelte +3 -2
- package/package/components/schema/SchemaFormDND.svelte.d.ts +1 -0
- package/package/components/select/DraggableTags.svelte +2 -2
- package/package/components/select/MultiSelect.svelte +14 -8
- package/package/components/select/Select.svelte +12 -5
- package/package/components/select/Select.svelte.d.ts +11 -0
- package/package/components/select/SelectDropdown.svelte +98 -46
- package/package/components/select/SelectDropdown.svelte.d.ts +10 -0
- package/package/components/select/utils.svelte.js +2 -0
- package/package/components/settings/CreateToken.svelte +76 -49
- package/package/components/settings/WorkspaceUserSettings.svelte +20 -17
- package/package/components/sidebar/CriticalAlertTable.svelte +2 -1
- package/package/components/sidebar/Linkify.svelte +14 -0
- package/package/components/sidebar/Linkify.svelte.d.ts +5 -0
- package/package/components/sidebar/WorkspaceMenu.svelte +8 -3
- package/package/components/table/tableUtils.js +1 -1
- package/package/components/text_input/TextInput.svelte +30 -0
- package/package/components/text_input/TextInput.svelte.d.ts +17 -0
- package/package/components/triggers/TriggersEditor.svelte +11 -1
- package/package/components/triggers/triggers.svelte.d.ts +1 -1
- package/package/components/triggers/triggers.svelte.js +8 -4
- package/package/components/tutorials/FlowBuilderTutorialErrorHandler.svelte +2 -2
- package/package/components/tutorials/FlowBuilderTutorialForLoop.svelte +3 -0
- package/package/components/tutorials/FlowBuilderTutorialSimpleFlow.svelte +49 -17
- package/package/components/tutorials/Tutorial.svelte +9 -0
- package/package/components/tutorials/Tutorial.svelte.d.ts +1 -0
- package/package/components/tutorials/app/AppTutorial.svelte +41 -57
- package/package/components/tutorials/app/BackgroundRunnablesTutorial.svelte +3 -5
- package/package/components/tutorials/app/ConnectionTutorial.svelte +2 -2
- package/package/components/tutorials/utils.js +2 -154
- package/package/components/vscode.js +16 -8
- package/package/components/workspaceSettings/AISettings.svelte +4 -3
- package/package/components/workspaceSettings/CreateWorkspace.svelte +2 -2
- package/package/components/workspaceSettings/DucklakeSettings.svelte +64 -7
- package/package/components/workspaceSettings/StorageSettings.svelte +24 -26
- package/package/editorUtils.d.ts +1 -1
- package/package/gen/core/OpenAPI.js +1 -1
- package/package/gen/schemas.gen.d.ts +82 -1
- package/package/gen/schemas.gen.js +82 -1
- package/package/gen/services.gen.d.ts +175 -1
- package/package/gen/services.gen.js +345 -2
- package/package/gen/types.gen.d.ts +1324 -549
- package/package/script_helpers.js +5 -5
- package/package/services/JobManager.js +4 -2
- package/package/stores.d.ts +4 -13
- package/package/stores.js +5 -68
- package/package/toast.js +2 -1
- package/package/utils.d.ts +1 -0
- package/package/utils.js +3 -0
- package/package.json +3 -3
- /package/package/components/flows/{flowStore.js → flowStore.svelte.js} +0 -0
|
@@ -4015,6 +4015,24 @@ export class AppService {
|
|
|
4015
4015
|
}
|
|
4016
4016
|
});
|
|
4017
4017
|
}
|
|
4018
|
+
/**
|
|
4019
|
+
* get public secret of latest version of an app bundle
|
|
4020
|
+
* @param data The data for the request.
|
|
4021
|
+
* @param data.workspace
|
|
4022
|
+
* @param data.path
|
|
4023
|
+
* @returns string app secret
|
|
4024
|
+
* @throws ApiError
|
|
4025
|
+
*/
|
|
4026
|
+
static getPublicSecretOfLatestVersionOfApp(data) {
|
|
4027
|
+
return __request(OpenAPI, {
|
|
4028
|
+
method: 'GET',
|
|
4029
|
+
url: '/w/{workspace}/apps/secret_of_latest_version/{path}',
|
|
4030
|
+
path: {
|
|
4031
|
+
workspace: data.workspace,
|
|
4032
|
+
path: data.path
|
|
4033
|
+
}
|
|
4034
|
+
});
|
|
4035
|
+
}
|
|
4018
4036
|
/**
|
|
4019
4037
|
* get app by version
|
|
4020
4038
|
* @param data The data for the request.
|
|
@@ -5107,6 +5125,7 @@ export class JobService {
|
|
|
5107
5125
|
*
|
|
5108
5126
|
* @param data.jobId 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)
|
|
5109
5127
|
* @param data.skipPreprocessor skip the preprocessor
|
|
5128
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5110
5129
|
* @returns unknown job result
|
|
5111
5130
|
* @throws ApiError
|
|
5112
5131
|
*/
|
|
@@ -5122,12 +5141,260 @@ export class JobService {
|
|
|
5122
5141
|
include_header: data.includeHeader,
|
|
5123
5142
|
queue_limit: data.queueLimit,
|
|
5124
5143
|
job_id: data.jobId,
|
|
5125
|
-
skip_preprocessor: data.skipPreprocessor
|
|
5144
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5145
|
+
memory_id: data.memoryId
|
|
5146
|
+
},
|
|
5147
|
+
body: data.requestBody,
|
|
5148
|
+
mediaType: 'application/json'
|
|
5149
|
+
});
|
|
5150
|
+
}
|
|
5151
|
+
/**
|
|
5152
|
+
* run flow by path and stream updates via SSE
|
|
5153
|
+
* @param data The data for the request.
|
|
5154
|
+
* @param data.workspace
|
|
5155
|
+
* @param data.path
|
|
5156
|
+
* @param data.requestBody flow args
|
|
5157
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5158
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5159
|
+
*
|
|
5160
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5161
|
+
*
|
|
5162
|
+
* @param data.jobId 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)
|
|
5163
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5164
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5165
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5166
|
+
* @returns string server-sent events stream of job updates
|
|
5167
|
+
* @throws ApiError
|
|
5168
|
+
*/
|
|
5169
|
+
static runAndStreamFlowByPath(data) {
|
|
5170
|
+
return __request(OpenAPI, {
|
|
5171
|
+
method: 'POST',
|
|
5172
|
+
url: '/w/{workspace}/jobs/run_and_stream/f/{path}',
|
|
5173
|
+
path: {
|
|
5174
|
+
workspace: data.workspace,
|
|
5175
|
+
path: data.path
|
|
5176
|
+
},
|
|
5177
|
+
query: {
|
|
5178
|
+
include_header: data.includeHeader,
|
|
5179
|
+
queue_limit: data.queueLimit,
|
|
5180
|
+
job_id: data.jobId,
|
|
5181
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5182
|
+
memory_id: data.memoryId,
|
|
5183
|
+
poll_delay_ms: data.pollDelayMs
|
|
5184
|
+
},
|
|
5185
|
+
body: data.requestBody,
|
|
5186
|
+
mediaType: 'application/json'
|
|
5187
|
+
});
|
|
5188
|
+
}
|
|
5189
|
+
/**
|
|
5190
|
+
* run flow by path with GET and stream updates via SSE
|
|
5191
|
+
* @param data The data for the request.
|
|
5192
|
+
* @param data.workspace
|
|
5193
|
+
* @param data.path
|
|
5194
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5195
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5196
|
+
*
|
|
5197
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5198
|
+
*
|
|
5199
|
+
* @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5200
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5201
|
+
*
|
|
5202
|
+
* @param data.jobId 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)
|
|
5203
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5204
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5205
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5206
|
+
* @returns string server-sent events stream of job updates
|
|
5207
|
+
* @throws ApiError
|
|
5208
|
+
*/
|
|
5209
|
+
static runAndStreamFlowByPathGet(data) {
|
|
5210
|
+
return __request(OpenAPI, {
|
|
5211
|
+
method: 'GET',
|
|
5212
|
+
url: '/w/{workspace}/jobs/run_and_stream/f/{path}',
|
|
5213
|
+
path: {
|
|
5214
|
+
workspace: data.workspace,
|
|
5215
|
+
path: data.path
|
|
5216
|
+
},
|
|
5217
|
+
query: {
|
|
5218
|
+
include_header: data.includeHeader,
|
|
5219
|
+
queue_limit: data.queueLimit,
|
|
5220
|
+
payload: data.payload,
|
|
5221
|
+
job_id: data.jobId,
|
|
5222
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5223
|
+
memory_id: data.memoryId,
|
|
5224
|
+
poll_delay_ms: data.pollDelayMs
|
|
5225
|
+
}
|
|
5226
|
+
});
|
|
5227
|
+
}
|
|
5228
|
+
/**
|
|
5229
|
+
* run script by path and stream updates via SSE
|
|
5230
|
+
* @param data The data for the request.
|
|
5231
|
+
* @param data.workspace
|
|
5232
|
+
* @param data.path
|
|
5233
|
+
* @param data.requestBody script args
|
|
5234
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5235
|
+
* @param data.tag Override the tag to use
|
|
5236
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5237
|
+
* @param data.jobId 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)
|
|
5238
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5239
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5240
|
+
*
|
|
5241
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5242
|
+
*
|
|
5243
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5244
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5245
|
+
* @returns string server-sent events stream of job updates
|
|
5246
|
+
* @throws ApiError
|
|
5247
|
+
*/
|
|
5248
|
+
static runAndStreamScriptByPath(data) {
|
|
5249
|
+
return __request(OpenAPI, {
|
|
5250
|
+
method: 'POST',
|
|
5251
|
+
url: '/w/{workspace}/jobs/run_and_stream/p/{path}',
|
|
5252
|
+
path: {
|
|
5253
|
+
workspace: data.workspace,
|
|
5254
|
+
path: data.path
|
|
5255
|
+
},
|
|
5256
|
+
query: {
|
|
5257
|
+
parent_job: data.parentJob,
|
|
5258
|
+
tag: data.tag,
|
|
5259
|
+
cache_ttl: data.cacheTtl,
|
|
5260
|
+
job_id: data.jobId,
|
|
5261
|
+
include_header: data.includeHeader,
|
|
5262
|
+
queue_limit: data.queueLimit,
|
|
5263
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5264
|
+
poll_delay_ms: data.pollDelayMs
|
|
5126
5265
|
},
|
|
5127
5266
|
body: data.requestBody,
|
|
5128
5267
|
mediaType: 'application/json'
|
|
5129
5268
|
});
|
|
5130
5269
|
}
|
|
5270
|
+
/**
|
|
5271
|
+
* run script by path with GET and stream updates via SSE
|
|
5272
|
+
* @param data The data for the request.
|
|
5273
|
+
* @param data.workspace
|
|
5274
|
+
* @param data.path
|
|
5275
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5276
|
+
* @param data.tag Override the tag to use
|
|
5277
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5278
|
+
* @param data.jobId 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)
|
|
5279
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5280
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5281
|
+
*
|
|
5282
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5283
|
+
*
|
|
5284
|
+
* @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5285
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5286
|
+
*
|
|
5287
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5288
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5289
|
+
* @returns string server-sent events stream of job updates
|
|
5290
|
+
* @throws ApiError
|
|
5291
|
+
*/
|
|
5292
|
+
static runAndStreamScriptByPathGet(data) {
|
|
5293
|
+
return __request(OpenAPI, {
|
|
5294
|
+
method: 'GET',
|
|
5295
|
+
url: '/w/{workspace}/jobs/run_and_stream/p/{path}',
|
|
5296
|
+
path: {
|
|
5297
|
+
workspace: data.workspace,
|
|
5298
|
+
path: data.path
|
|
5299
|
+
},
|
|
5300
|
+
query: {
|
|
5301
|
+
parent_job: data.parentJob,
|
|
5302
|
+
tag: data.tag,
|
|
5303
|
+
cache_ttl: data.cacheTtl,
|
|
5304
|
+
job_id: data.jobId,
|
|
5305
|
+
include_header: data.includeHeader,
|
|
5306
|
+
queue_limit: data.queueLimit,
|
|
5307
|
+
payload: data.payload,
|
|
5308
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5309
|
+
poll_delay_ms: data.pollDelayMs
|
|
5310
|
+
}
|
|
5311
|
+
});
|
|
5312
|
+
}
|
|
5313
|
+
/**
|
|
5314
|
+
* run script by hash and stream updates via SSE
|
|
5315
|
+
* @param data The data for the request.
|
|
5316
|
+
* @param data.workspace
|
|
5317
|
+
* @param data.hash
|
|
5318
|
+
* @param data.requestBody script args
|
|
5319
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5320
|
+
* @param data.tag Override the tag to use
|
|
5321
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5322
|
+
* @param data.jobId 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)
|
|
5323
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5324
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5325
|
+
*
|
|
5326
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5327
|
+
*
|
|
5328
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5329
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5330
|
+
* @returns string server-sent events stream of job updates
|
|
5331
|
+
* @throws ApiError
|
|
5332
|
+
*/
|
|
5333
|
+
static runAndStreamScriptByHash(data) {
|
|
5334
|
+
return __request(OpenAPI, {
|
|
5335
|
+
method: 'POST',
|
|
5336
|
+
url: '/w/{workspace}/jobs/run_and_stream/h/{hash}',
|
|
5337
|
+
path: {
|
|
5338
|
+
workspace: data.workspace,
|
|
5339
|
+
hash: data.hash
|
|
5340
|
+
},
|
|
5341
|
+
query: {
|
|
5342
|
+
parent_job: data.parentJob,
|
|
5343
|
+
tag: data.tag,
|
|
5344
|
+
cache_ttl: data.cacheTtl,
|
|
5345
|
+
job_id: data.jobId,
|
|
5346
|
+
include_header: data.includeHeader,
|
|
5347
|
+
queue_limit: data.queueLimit,
|
|
5348
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5349
|
+
poll_delay_ms: data.pollDelayMs
|
|
5350
|
+
},
|
|
5351
|
+
body: data.requestBody,
|
|
5352
|
+
mediaType: 'application/json'
|
|
5353
|
+
});
|
|
5354
|
+
}
|
|
5355
|
+
/**
|
|
5356
|
+
* run script by hash with GET and stream updates via SSE
|
|
5357
|
+
* @param data The data for the request.
|
|
5358
|
+
* @param data.workspace
|
|
5359
|
+
* @param data.hash
|
|
5360
|
+
* @param data.parentJob The parent job that is at the origin and responsible for the execution of this script if any
|
|
5361
|
+
* @param data.tag Override the tag to use
|
|
5362
|
+
* @param data.cacheTtl Override the cache time to live (in seconds). Can not be used to disable caching, only override with a new cache ttl
|
|
5363
|
+
* @param data.jobId 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)
|
|
5364
|
+
* @param data.includeHeader List of headers's keys (separated with ',') whove value are added to the args
|
|
5365
|
+
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5366
|
+
*
|
|
5367
|
+
* @param data.queueLimit The maximum size of the queue for which the request would get rejected if that job would push it above that limit
|
|
5368
|
+
*
|
|
5369
|
+
* @param data.payload The base64 encoded payload that has been encoded as a JSON. e.g how to encode such payload encodeURIComponent
|
|
5370
|
+
* `encodeURIComponent(btoa(JSON.stringify({a: 2})))`
|
|
5371
|
+
*
|
|
5372
|
+
* @param data.skipPreprocessor skip the preprocessor
|
|
5373
|
+
* @param data.pollDelayMs delay between polling for job updates in milliseconds
|
|
5374
|
+
* @returns string server-sent events stream of job updates
|
|
5375
|
+
* @throws ApiError
|
|
5376
|
+
*/
|
|
5377
|
+
static runAndStreamScriptByHashGet(data) {
|
|
5378
|
+
return __request(OpenAPI, {
|
|
5379
|
+
method: 'GET',
|
|
5380
|
+
url: '/w/{workspace}/jobs/run_and_stream/h/{hash}',
|
|
5381
|
+
path: {
|
|
5382
|
+
workspace: data.workspace,
|
|
5383
|
+
hash: data.hash
|
|
5384
|
+
},
|
|
5385
|
+
query: {
|
|
5386
|
+
parent_job: data.parentJob,
|
|
5387
|
+
tag: data.tag,
|
|
5388
|
+
cache_ttl: data.cacheTtl,
|
|
5389
|
+
job_id: data.jobId,
|
|
5390
|
+
include_header: data.includeHeader,
|
|
5391
|
+
queue_limit: data.queueLimit,
|
|
5392
|
+
payload: data.payload,
|
|
5393
|
+
skip_preprocessor: data.skipPreprocessor,
|
|
5394
|
+
poll_delay_ms: data.pollDelayMs
|
|
5395
|
+
}
|
|
5396
|
+
});
|
|
5397
|
+
}
|
|
5131
5398
|
/**
|
|
5132
5399
|
* get job result by id
|
|
5133
5400
|
* @param data The data for the request.
|
|
@@ -5164,6 +5431,7 @@ export class JobService {
|
|
|
5164
5431
|
* Header's key lowercased and '-'' replaced to '_' such that 'Content-Type' becomes the 'content_type' arg key
|
|
5165
5432
|
*
|
|
5166
5433
|
* @param data.invisibleToOwner make the run invisible to the the flow owner (default false)
|
|
5434
|
+
* @param data.memoryId memory ID for chat-enabled flows
|
|
5167
5435
|
* @returns string job created
|
|
5168
5436
|
* @throws ApiError
|
|
5169
5437
|
*/
|
|
@@ -5183,7 +5451,8 @@ export class JobService {
|
|
|
5183
5451
|
tag: data.tag,
|
|
5184
5452
|
job_id: data.jobId,
|
|
5185
5453
|
include_header: data.includeHeader,
|
|
5186
|
-
invisible_to_owner: data.invisibleToOwner
|
|
5454
|
+
invisible_to_owner: data.invisibleToOwner,
|
|
5455
|
+
memory_id: data.memoryId
|
|
5187
5456
|
},
|
|
5188
5457
|
body: data.requestBody,
|
|
5189
5458
|
mediaType: 'application/json'
|
|
@@ -6714,6 +6983,74 @@ export class JobService {
|
|
|
6714
6983
|
});
|
|
6715
6984
|
}
|
|
6716
6985
|
}
|
|
6986
|
+
export class FlowConversationService {
|
|
6987
|
+
/**
|
|
6988
|
+
* list flow conversations
|
|
6989
|
+
* @param data The data for the request.
|
|
6990
|
+
* @param data.workspace
|
|
6991
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
6992
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
6993
|
+
* @param data.flowPath filter conversations by flow path
|
|
6994
|
+
* @returns FlowConversation flow conversations list
|
|
6995
|
+
* @throws ApiError
|
|
6996
|
+
*/
|
|
6997
|
+
static listFlowConversations(data) {
|
|
6998
|
+
return __request(OpenAPI, {
|
|
6999
|
+
method: 'GET',
|
|
7000
|
+
url: '/w/{workspace}/flow_conversations/list',
|
|
7001
|
+
path: {
|
|
7002
|
+
workspace: data.workspace
|
|
7003
|
+
},
|
|
7004
|
+
query: {
|
|
7005
|
+
page: data.page,
|
|
7006
|
+
per_page: data.perPage,
|
|
7007
|
+
flow_path: data.flowPath
|
|
7008
|
+
}
|
|
7009
|
+
});
|
|
7010
|
+
}
|
|
7011
|
+
/**
|
|
7012
|
+
* delete flow conversation
|
|
7013
|
+
* @param data The data for the request.
|
|
7014
|
+
* @param data.workspace
|
|
7015
|
+
* @param data.conversationId conversation id
|
|
7016
|
+
* @returns string flow conversation deleted
|
|
7017
|
+
* @throws ApiError
|
|
7018
|
+
*/
|
|
7019
|
+
static deleteFlowConversation(data) {
|
|
7020
|
+
return __request(OpenAPI, {
|
|
7021
|
+
method: 'DELETE',
|
|
7022
|
+
url: '/w/{workspace}/flow_conversations/delete/{conversation_id}',
|
|
7023
|
+
path: {
|
|
7024
|
+
workspace: data.workspace,
|
|
7025
|
+
conversation_id: data.conversationId
|
|
7026
|
+
}
|
|
7027
|
+
});
|
|
7028
|
+
}
|
|
7029
|
+
/**
|
|
7030
|
+
* list conversation messages
|
|
7031
|
+
* @param data The data for the request.
|
|
7032
|
+
* @param data.workspace
|
|
7033
|
+
* @param data.conversationId conversation id
|
|
7034
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
7035
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
7036
|
+
* @returns FlowConversationMessage conversation messages
|
|
7037
|
+
* @throws ApiError
|
|
7038
|
+
*/
|
|
7039
|
+
static listConversationMessages(data) {
|
|
7040
|
+
return __request(OpenAPI, {
|
|
7041
|
+
method: 'GET',
|
|
7042
|
+
url: '/w/{workspace}/flow_conversations/{conversation_id}/messages',
|
|
7043
|
+
path: {
|
|
7044
|
+
workspace: data.workspace,
|
|
7045
|
+
conversation_id: data.conversationId
|
|
7046
|
+
},
|
|
7047
|
+
query: {
|
|
7048
|
+
page: data.page,
|
|
7049
|
+
per_page: data.perPage
|
|
7050
|
+
}
|
|
7051
|
+
});
|
|
7052
|
+
}
|
|
7053
|
+
}
|
|
6717
7054
|
export class RawAppService {
|
|
6718
7055
|
/**
|
|
6719
7056
|
* list all raw apps
|
|
@@ -9429,6 +9766,8 @@ export class ConfigService {
|
|
|
9429
9766
|
* List autoscaling events
|
|
9430
9767
|
* @param data The data for the request.
|
|
9431
9768
|
* @param data.workerGroup
|
|
9769
|
+
* @param data.page which page to return (start at 1, default 1)
|
|
9770
|
+
* @param data.perPage number of items to return for a given page (default 30, max 100)
|
|
9432
9771
|
* @returns AutoscalingEvent List of autoscaling events
|
|
9433
9772
|
* @throws ApiError
|
|
9434
9773
|
*/
|
|
@@ -9438,6 +9777,10 @@ export class ConfigService {
|
|
|
9438
9777
|
url: '/configs/list_autoscaling_events/{worker_group}',
|
|
9439
9778
|
path: {
|
|
9440
9779
|
worker_group: data.workerGroup
|
|
9780
|
+
},
|
|
9781
|
+
query: {
|
|
9782
|
+
page: data.page,
|
|
9783
|
+
per_page: data.perPage
|
|
9441
9784
|
}
|
|
9442
9785
|
});
|
|
9443
9786
|
}
|