windmill-components 1.36.2 → 1.46.1
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/common.d.ts +1 -0
- package/components/AppConnect.svelte +45 -49
- package/components/ArgInfo.svelte +37 -15
- package/components/ArgInput.svelte +33 -34
- package/components/ArgInput.svelte.d.ts +3 -1
- package/components/ButtonAndDropdown.svelte +1 -1
- package/components/CenteredPage.svelte +2 -2
- package/components/CronInput.svelte +24 -20
- package/components/CronInput.svelte.d.ts +1 -0
- package/components/DisplayResult.svelte +4 -4
- package/components/Dropdown.svelte +10 -13
- package/components/Dropdown.svelte.d.ts +4 -1
- package/components/Editor.svelte +39 -6
- package/components/Editor.svelte.d.ts +4 -1
- package/components/EditorBar.svelte +81 -37
- package/components/EditorBar.svelte.d.ts +4 -1
- package/components/FieldHeader.svelte +6 -5
- package/components/FlowBuilder.svelte +52 -55
- package/components/FlowBuilder.svelte.d.ts +2 -0
- package/components/FlowJobResult.svelte +11 -18
- package/components/FlowJobResult.svelte.d.ts +2 -2
- package/components/FlowMetadata.svelte +65 -0
- package/components/FlowMetadata.svelte.d.ts +17 -0
- package/components/FlowModulesViewer.svelte +18 -6
- package/components/FlowPreviewContent.svelte +88 -51
- package/components/FlowPreviewContent.svelte.d.ts +1 -0
- package/components/FlowStatusViewer.svelte +129 -52
- package/components/FlowStatusViewer.svelte.d.ts +8 -3
- package/components/FlowViewer.svelte +84 -9
- package/components/FlowViewer.svelte.d.ts +1 -0
- package/components/GroupModal.svelte +43 -44
- package/components/GroupModal.svelte.d.ts +2 -2
- package/components/HighlightCode.svelte +4 -1
- package/components/HighlightCode.svelte.d.ts +1 -1
- package/components/IconedResourceType.svelte +6 -4
- package/components/IconedResourceType.svelte.d.ts +1 -0
- package/components/InputTransformForm.svelte +50 -40
- package/components/InputTransformForm.svelte.d.ts +3 -3
- package/components/InputTransformsViewer.svelte +2 -1
- package/components/InviteGlobalUser.svelte +6 -10
- package/components/InviteGlobalUser.svelte.d.ts +1 -4
- package/components/InviteUser.svelte +4 -8
- package/components/InviteUser.svelte.d.ts +1 -4
- package/components/ItemPicker.svelte +50 -43
- package/components/ItemPicker.svelte.d.ts +2 -2
- package/components/JobArgs.svelte +33 -0
- package/components/JobArgs.svelte.d.ts +16 -0
- package/components/JobStatus.svelte +21 -17
- package/components/LogViewer.svelte +11 -6
- package/components/Modal.svelte +5 -5
- package/components/Modal.svelte.d.ts +4 -4
- package/components/ModulePreview.svelte +47 -63
- package/components/ModulePreview.svelte.d.ts +0 -1
- package/components/PageHeader.svelte +8 -8
- package/components/Password.svelte +1 -1
- package/components/Path.svelte +28 -7
- package/components/Path.svelte.d.ts +4 -4
- package/components/Popover.svelte +61 -0
- package/components/Popover.svelte.d.ts +17 -0
- package/components/Required.svelte +4 -4
- package/components/Required.svelte.d.ts +1 -0
- package/components/ResourceEditor.svelte +105 -116
- package/components/ResourceEditor.svelte.d.ts +0 -1
- package/components/ResourcePicker.svelte +9 -6
- package/components/ResourceTypePicker.svelte +3 -1
- package/components/RunChart.svelte +102 -0
- package/components/RunChart.svelte.d.ts +20 -0
- package/components/RunForm.svelte +58 -41
- package/components/RunForm.svelte.d.ts +13 -0
- package/components/SchemaEditor.svelte +5 -5
- package/components/SchemaEditorProperty.svelte +1 -1
- package/components/SchemaForm.svelte +5 -3
- package/components/SchemaForm.svelte.d.ts +1 -0
- package/components/SchemaModal.svelte +113 -105
- package/components/SchemaModal.svelte.d.ts +4 -4
- package/components/SchemaViewer.svelte +7 -4
- package/components/ScriptBuilder.svelte +143 -163
- package/components/ScriptBuilder.svelte.d.ts +1 -0
- package/components/ScriptEditor.svelte +119 -131
- package/components/ScriptEditor.svelte.d.ts +1 -0
- package/components/ScriptPicker.svelte +16 -24
- package/components/ScriptPicker.svelte.d.ts +1 -1
- package/components/ScriptSchema.svelte +33 -32
- package/components/ShareModal.svelte +74 -68
- package/components/ShareModal.svelte.d.ts +2 -2
- package/components/SharedBadge.svelte +4 -0
- package/components/SimpleEditor.svelte +4 -2
- package/components/SuperadminSettings.svelte +134 -0
- package/components/SuperadminSettings.svelte.d.ts +19 -0
- package/components/TableCustom.svelte +1 -1
- package/components/TableSimple.svelte +1 -1
- package/components/TestJobLoader.svelte +16 -9
- package/components/TestJobLoader.svelte.d.ts +4 -2
- package/components/Toggle.svelte +5 -3
- package/components/Toggle.svelte.d.ts +2 -0
- package/components/Tooltip.svelte +9 -64
- package/components/UserSettings.svelte +241 -0
- package/components/UserSettings.svelte.d.ts +19 -0
- package/components/VariableEditor.svelte +80 -74
- package/components/common/actionRow/ActionRow.svelte +5 -4
- package/components/common/alert/Alert.svelte +1 -1
- package/components/common/alert/Alert.svelte.d.ts +1 -0
- package/components/common/badge/Badge.svelte +4 -9
- package/components/common/breadcrumb/Breadcrumb.svelte +24 -0
- package/components/common/breadcrumb/Breadcrumb.svelte.d.ts +22 -0
- package/components/common/button/Button.svelte +23 -8
- package/components/common/button/Button.svelte.d.ts +1 -0
- package/components/common/button/ButtonPopup.svelte +1 -0
- package/components/common/button/model.d.ts +1 -1
- package/components/common/confirmationModal/ConfirmationModal.svelte +1 -0
- package/components/common/confirmationModal/UnsavedConfirmationModal.svelte +2 -1
- package/components/common/drawer/Drawer.svelte +38 -7
- package/components/common/drawer/Drawer.svelte.d.ts +6 -0
- package/components/common/drawer/DrawerContent.svelte +21 -7
- package/components/common/drawer/DrawerContent.svelte.d.ts +4 -0
- package/components/common/index.d.ts +5 -0
- package/components/common/index.js +5 -0
- package/components/common/kbd/Kbd.svelte +1 -1
- package/components/common/languageIcons/Bash.svelte +18 -0
- package/components/common/languageIcons/Bash.svelte.d.ts +27 -0
- package/components/common/languageIcons/Go.svelte +34 -0
- package/components/common/languageIcons/Go.svelte.d.ts +27 -0
- package/components/common/languageIcons/LanguageIcon.svelte +19 -0
- package/components/common/languageIcons/LanguageIcon.svelte.d.ts +21 -0
- package/components/common/languageIcons/Python.svelte +51 -0
- package/components/common/languageIcons/Python.svelte.d.ts +27 -0
- package/components/common/languageIcons/TypeScript.svelte +31 -0
- package/components/common/languageIcons/TypeScript.svelte.d.ts +27 -0
- package/components/common/languageIcons/index.d.ts +5 -0
- package/components/common/languageIcons/index.js +5 -0
- package/components/common/menu/Menu.svelte +15 -19
- package/components/common/skeleton/Skeleton.svelte +37 -0
- package/components/common/skeleton/Skeleton.svelte.d.ts +20 -0
- package/components/common/skeleton/SkeletonElement.svelte +8 -0
- package/components/common/skeleton/SkeletonElement.svelte.d.ts +17 -0
- package/components/common/skeleton/model.d.ts +21 -0
- package/components/common/skeleton/model.js +1 -0
- package/components/common/tabs/TabContent.svelte +2 -1
- package/components/common/tabs/TabContent.svelte.d.ts +1 -0
- package/components/common/tabs/Tabs.svelte +8 -6
- package/components/common/tabs/Tabs.svelte.d.ts +1 -0
- package/components/flows/FlowEditor.svelte +11 -20
- package/components/flows/FlowProgressBar.svelte +55 -0
- package/components/flows/FlowProgressBar.svelte.d.ts +21 -0
- package/components/flows/common/FlowCardHeader.svelte +5 -6
- package/components/flows/content/CapturePayload.svelte +112 -0
- package/components/flows/content/CapturePayload.svelte.d.ts +17 -0
- package/components/flows/content/DynamicInputHelpBox.svelte +6 -10
- package/components/flows/content/FlowBranchAllWrapper.svelte +21 -0
- package/components/flows/content/FlowBranchAllWrapper.svelte.d.ts +21 -0
- package/components/flows/content/FlowBranchOneWrapper.svelte +49 -0
- package/components/flows/content/FlowBranchOneWrapper.svelte.d.ts +23 -0
- package/components/flows/content/FlowBranchesWrapper.svelte +140 -0
- package/components/flows/content/FlowBranchesWrapper.svelte.d.ts +19 -0
- package/components/flows/content/FlowEditorPanel.svelte +8 -6
- package/components/flows/content/FlowFailureModule.svelte +4 -6
- package/components/flows/content/FlowInput.svelte +31 -6
- package/components/flows/content/FlowInputs.svelte +119 -50
- package/components/flows/content/FlowInputs.svelte.d.ts +5 -4
- package/components/flows/content/FlowLoop.svelte +85 -142
- package/components/flows/content/FlowLoop.svelte.d.ts +2 -1
- package/components/flows/content/FlowModuleComponent.svelte +231 -0
- package/components/flows/content/FlowModuleComponent.svelte.d.ts +20 -0
- package/components/flows/content/FlowModuleEarlyStop.svelte +45 -48
- package/components/flows/content/FlowModuleEarlyStop.svelte.d.ts +1 -0
- package/components/flows/content/FlowModuleHeader.svelte +11 -40
- package/components/flows/content/FlowModuleHeader.svelte.d.ts +0 -1
- package/components/flows/content/FlowModuleScript.svelte +7 -12
- package/components/flows/content/FlowModuleScript.svelte.d.ts +1 -2
- package/components/flows/content/FlowModuleSuspend.svelte +84 -6
- package/components/flows/content/FlowModuleSuspend.svelte.d.ts +1 -0
- package/components/flows/content/FlowModuleWrapper.svelte +138 -38
- package/components/flows/content/FlowModuleWrapper.svelte.d.ts +6 -1
- package/components/flows/content/FlowRetries.svelte +13 -2
- package/components/flows/content/FlowRetries.svelte.d.ts +1 -0
- package/components/flows/content/FlowSchedules.svelte +0 -2
- package/components/flows/content/FlowSettings.svelte +103 -72
- package/components/flows/content/RemoveStepConfirmationModal.svelte +0 -1
- package/components/flows/flowState.d.ts +8 -8
- package/components/flows/flowState.js +32 -17
- package/components/flows/flowStateUtils.d.ts +21 -38
- package/components/flows/flowStateUtils.js +87 -159
- package/components/flows/flowStore.d.ts +3 -2
- package/components/flows/flowStore.js +60 -7
- package/components/flows/header/FlowImportExportMenu.svelte +11 -21
- package/components/flows/header/FlowPreviewButtons.svelte +13 -12
- package/components/flows/map/FlowBranchAllMap.svelte +90 -0
- package/components/flows/map/FlowBranchAllMap.svelte.d.ts +17 -0
- package/components/flows/map/FlowBranchOneMap.svelte +116 -0
- package/components/flows/map/FlowBranchOneMap.svelte.d.ts +17 -0
- package/components/flows/map/FlowErrorHandlerItem.svelte +14 -11
- package/components/flows/map/FlowInputsItem.svelte +19 -0
- package/components/flows/map/FlowInputsItem.svelte.d.ts +14 -0
- package/components/flows/map/FlowModuleSchemaItem.svelte +53 -36
- package/components/flows/map/FlowModuleSchemaItem.svelte.d.ts +5 -5
- package/components/flows/map/FlowModuleSchemaMap.svelte +73 -144
- package/components/flows/map/FlowModuleSchemaMap.svelte.d.ts +2 -3
- package/components/flows/map/FlowSettingsItem.svelte +29 -0
- package/components/flows/map/FlowSettingsItem.svelte.d.ts +14 -0
- package/components/flows/map/InsertModuleButton.svelte +11 -0
- package/components/flows/map/InsertModuleButton.svelte.d.ts +16 -0
- package/components/flows/map/MapItem.svelte +105 -0
- package/components/flows/map/MapItem.svelte.d.ts +22 -0
- package/components/flows/pickers/FlowScriptPicker.svelte +14 -4
- package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +1 -1
- package/components/flows/pickers/PickHubScript.svelte +5 -4
- package/components/flows/pickers/PickHubScript.svelte.d.ts +1 -0
- package/components/flows/pickers/PickScript.svelte +6 -5
- package/components/flows/pickers/PickScript.svelte.d.ts +1 -0
- package/components/flows/previousResults.d.ts +14 -0
- package/components/flows/previousResults.js +118 -0
- package/components/flows/propPicker/PropPickerWrapper.svelte +24 -15
- package/components/flows/propPicker/PropPickerWrapper.svelte.d.ts +7 -2
- package/components/flows/utils.d.ts +8 -3
- package/components/flows/utils.js +86 -46
- package/components/graph/FlowGraph.svelte +259 -0
- package/components/graph/FlowGraph.svelte.d.ts +20 -0
- package/components/graph/index.d.ts +3 -0
- package/components/graph/index.js +3 -0
- package/components/graph/model.d.ts +20 -0
- package/components/graph/model.js +9 -0
- package/components/graph/util.d.ts +9 -0
- package/components/graph/util.js +14 -0
- package/components/icons/WindmillIcon.svelte +85 -52
- package/components/icons/WindmillIcon.svelte.d.ts +2 -0
- package/components/jobs/JobDetail.svelte +40 -30
- package/components/landing/FlowGettingStarted.svelte +4 -3
- package/components/landing/FlowLandingBox.svelte +23 -53
- package/components/landing/RessourceGettingStarted.svelte +1 -1
- package/components/landing/ScriptBox.svelte +25 -27
- package/components/landing/ScriptGettingStarted.svelte +4 -3
- package/components/preview/FlowPreviewStatus.svelte +1 -1
- package/components/progressBar/ProgressBar.svelte +89 -0
- package/components/{ProgressBar.svelte.d.ts → progressBar/ProgressBar.svelte.d.ts} +5 -2
- package/components/progressBar/ProgressBarGeneralPart.svelte +22 -0
- package/components/progressBar/ProgressBarGeneralPart.svelte.d.ts +19 -0
- package/components/progressBar/ProgressBarLoopAccessor.svelte +14 -0
- package/components/progressBar/ProgressBarLoopAccessor.svelte.d.ts +19 -0
- package/components/progressBar/ProgressBarLoopPart.svelte +34 -0
- package/components/progressBar/ProgressBarLoopPart.svelte.d.ts +19 -0
- package/components/progressBar/index.d.ts +2 -0
- package/components/progressBar/index.js +2 -0
- package/components/progressBar/model.d.ts +32 -0
- package/components/progressBar/model.js +14 -0
- package/components/propertyPicker/ObjectViewer.svelte +18 -13
- package/components/propertyPicker/ObjectViewer.svelte.d.ts +1 -0
- package/components/propertyPicker/PropPicker.svelte +133 -84
- package/components/propertyPicker/PropPicker.svelte.d.ts +5 -1
- package/components/propertyPicker/PropPickerResult.svelte +12 -0
- package/components/propertyPicker/PropPickerResult.svelte.d.ts +18 -0
- package/components/propertyPicker/utils.d.ts +1 -1
- package/components/propertyPicker/utils.js +4 -1
- package/components/{script_editor → scriptEditor}/LogPanel.svelte +30 -20
- package/components/{script_editor → scriptEditor}/LogPanel.svelte.d.ts +0 -0
- package/components/scripts/CreateActions.svelte +2 -2
- package/components/sidebar/SidebarContent.svelte +1 -1
- package/components/sidebar/UserMenu.svelte +17 -1
- package/components/sidebar/UserMenu.svelte.d.ts +3 -0
- package/components/sidebar/WorkspaceMenu.svelte +16 -14
- package/components/splitPanes/SplitPanesWrapper.svelte +34 -0
- package/components/splitPanes/SplitPanesWrapper.svelte.d.ts +20 -0
- package/editorUtils.js +4 -0
- package/gen/core/OpenAPI.js +1 -1
- package/gen/index.d.ts +8 -1
- package/gen/index.js +5 -0
- package/gen/models/AppWithLastVersion.d.ts +21 -0
- package/gen/models/AppWithLastVersion.js +12 -0
- package/gen/models/BranchAll.d.ts +10 -0
- package/gen/models/{PathFlow.js → BranchAll.js} +0 -0
- package/gen/models/BranchOne.d.ts +10 -0
- package/gen/models/BranchOne.js +4 -0
- package/gen/models/CompletedJob.d.ts +4 -2
- package/gen/models/CompletedJob.js +2 -0
- package/gen/models/FlowModule.d.ts +7 -2
- package/gen/models/FlowModuleValue.d.ts +4 -2
- package/gen/models/FlowStatus.d.ts +1 -0
- package/gen/models/FlowStatusModule.d.ts +14 -1
- package/gen/models/ForloopFlow.d.ts +1 -0
- package/gen/models/Identity.d.ts +3 -0
- package/gen/models/Identity.js +4 -0
- package/gen/models/ListableApp.d.ts +16 -0
- package/gen/models/ListableApp.js +12 -0
- package/gen/models/ListableVariable.d.ts +1 -1
- package/gen/models/PathScript.d.ts +2 -0
- package/gen/models/Policy.d.ts +12 -0
- package/gen/models/Policy.js +12 -0
- package/gen/models/Preview.d.ts +2 -1
- package/gen/models/Preview.js +1 -0
- package/gen/models/QueuedJob.d.ts +4 -2
- package/gen/models/QueuedJob.js +2 -0
- package/gen/models/RawScript.d.ts +4 -1
- package/gen/models/RawScript.js +1 -0
- package/gen/models/Script.d.ts +4 -2
- package/gen/models/Script.js +2 -0
- package/gen/services/AppService.d.ts +31 -0
- package/gen/services/AppService.js +49 -0
- package/gen/services/CaptureService.d.ts +30 -0
- package/gen/services/CaptureService.js +52 -0
- package/gen/services/FlowService.d.ts +90 -0
- package/gen/services/FlowService.js +72 -0
- package/gen/services/JobService.d.ts +69 -16
- package/gen/services/JobService.js +86 -14
- package/gen/services/OauthService.d.ts +6 -15
- package/gen/services/OauthService.js +6 -19
- package/gen/services/ResourceService.d.ts +10 -1
- package/gen/services/ResourceService.js +16 -1
- package/gen/services/ScriptService.d.ts +28 -3
- package/gen/services/ScriptService.js +27 -0
- package/gen/services/UserService.d.ts +14 -6
- package/gen/services/UserService.js +25 -11
- package/infer.d.ts +1 -1
- package/infer.js +35 -18
- package/logout.d.ts +1 -1
- package/logout.js +7 -9
- package/package.json +80 -72
- package/script_helpers.d.ts +6 -4
- package/script_helpers.js +48 -14
- package/scripts.js +9 -4
- package/utils.d.ts +8 -9
- package/utils.js +42 -81
- package/components/AutosizedTextarea.svelte +0 -34
- package/components/AutosizedTextarea.svelte.d.ts +0 -19
- package/components/ProgressBar.svelte +0 -31
- package/components/ProgressBarPart.svelte +0 -20
- package/components/ProgressBarPart.svelte.d.ts +0 -20
- package/components/Switch.svelte +0 -61
- package/components/Switch.svelte.d.ts +0 -31
- package/components/Tabs.svelte +0 -21
- package/components/Tabs.svelte.d.ts +0 -20
- package/components/flows/content/CopyFirstStepSchema.svelte +0 -13
- package/components/flows/content/CopyFirstStepSchema.svelte.d.ts +0 -14
- package/components/flows/content/FlowLoopWrapper.svelte +0 -9
- package/components/flows/content/FlowLoopWrapper.svelte.d.ts +0 -14
- package/components/flows/content/FlowModule.svelte +0 -211
- package/components/flows/content/FlowModule.svelte.d.ts +0 -29
- package/gen/models/PathFlow.d.ts +0 -4
- package/gen/schemas/$AuditLog.d.ts +0 -32
- package/gen/schemas/$AuditLog.js +0 -35
- package/gen/schemas/$CompletedJob.d.ts +0 -98
- package/gen/schemas/$CompletedJob.js +0 -103
- package/gen/schemas/$ContextualVariable.d.ts +0 -16
- package/gen/schemas/$ContextualVariable.js +0 -19
- package/gen/schemas/$CreateResource.d.ts +0 -22
- package/gen/schemas/$CreateResource.js +0 -25
- package/gen/schemas/$CreateVariable.d.ts +0 -26
- package/gen/schemas/$CreateVariable.js +0 -29
- package/gen/schemas/$CreateWorkspace.d.ts +0 -20
- package/gen/schemas/$CreateWorkspace.js +0 -23
- package/gen/schemas/$EditResource.d.ts +0 -13
- package/gen/schemas/$EditResource.js +0 -16
- package/gen/schemas/$EditResourceType.d.ts +0 -10
- package/gen/schemas/$EditResourceType.js +0 -13
- package/gen/schemas/$EditSchedule.d.ts +0 -20
- package/gen/schemas/$EditSchedule.js +0 -23
- package/gen/schemas/$EditVariable.d.ts +0 -16
- package/gen/schemas/$EditVariable.js +0 -19
- package/gen/schemas/$EditWorkspaceUser.d.ts +0 -7
- package/gen/schemas/$EditWorkspaceUser.js +0 -10
- package/gen/schemas/$Flow.d.ts +0 -23
- package/gen/schemas/$Flow.js +0 -26
- package/gen/schemas/$FlowMetadata.d.ts +0 -31
- package/gen/schemas/$FlowMetadata.js +0 -34
- package/gen/schemas/$FlowPreview.d.ts +0 -80
- package/gen/schemas/$FlowPreview.js +0 -83
- package/gen/schemas/$GlobalUserInfo.d.ts +0 -26
- package/gen/schemas/$GlobalUserInfo.js +0 -29
- package/gen/schemas/$Group.d.ts +0 -23
- package/gen/schemas/$Group.js +0 -26
- package/gen/schemas/$Job.d.ts +0 -17
- package/gen/schemas/$Job.js +0 -20
- package/gen/schemas/$ListableVariable.d.ts +0 -35
- package/gen/schemas/$ListableVariable.js +0 -38
- package/gen/schemas/$Login.d.ts +0 -12
- package/gen/schemas/$Login.js +0 -15
- package/gen/schemas/$MainArgSignature.d.ts +0 -50
- package/gen/schemas/$MainArgSignature.js +0 -53
- package/gen/schemas/$NewSchedule.d.ts +0 -30
- package/gen/schemas/$NewSchedule.js +0 -33
- package/gen/schemas/$NewToken.d.ts +0 -11
- package/gen/schemas/$NewToken.js +0 -14
- package/gen/schemas/$NewUser.d.ts +0 -16
- package/gen/schemas/$NewUser.js +0 -19
- package/gen/schemas/$Preview.d.ts +0 -19
- package/gen/schemas/$Preview.js +0 -22
- package/gen/schemas/$QueuedJob.d.ts +0 -139
- package/gen/schemas/$QueuedJob.js +0 -144
- package/gen/schemas/$Resource.d.ts +0 -31
- package/gen/schemas/$Resource.js +0 -34
- package/gen/schemas/$ResourceType.d.ts +0 -17
- package/gen/schemas/$ResourceType.js +0 -20
- package/gen/schemas/$Schedule.d.ts +0 -47
- package/gen/schemas/$Schedule.js +0 -50
- package/gen/schemas/$Script.d.ts +0 -77
- package/gen/schemas/$Script.js +0 -80
- package/gen/schemas/$ScriptArgs.d.ts +0 -6
- package/gen/schemas/$ScriptArgs.js +0 -9
- package/gen/schemas/$SlackToken.d.ts +0 -24
- package/gen/schemas/$SlackToken.js +0 -27
- package/gen/schemas/$TokenResponse.d.ts +0 -23
- package/gen/schemas/$TokenResponse.js +0 -26
- package/gen/schemas/$TruncatedToken.d.ts +0 -25
- package/gen/schemas/$TruncatedToken.js +0 -28
- package/gen/schemas/$Usage.d.ts +0 -13
- package/gen/schemas/$Usage.js +0 -16
- package/gen/schemas/$User.d.ts +0 -42
- package/gen/schemas/$User.js +0 -45
- package/gen/schemas/$UserWorkspaceList.d.ts +0 -28
- package/gen/schemas/$UserWorkspaceList.js +0 -31
- package/gen/schemas/$WorkerPing.d.ts +0 -31
- package/gen/schemas/$WorkerPing.js +0 -34
- package/gen/schemas/$Workspace.d.ts +0 -19
- package/gen/schemas/$Workspace.js +0 -22
- package/gen/schemas/$WorkspaceInvite.d.ts +0 -16
- package/gen/schemas/$WorkspaceInvite.js +0 -19
|
@@ -45,6 +45,25 @@ export class JobService {
|
|
|
45
45
|
mediaType: 'application/json',
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
* get job result by id
|
|
50
|
+
* @returns any job result
|
|
51
|
+
* @throws ApiError
|
|
52
|
+
*/
|
|
53
|
+
static resultById({ workspace, flowJobId, nodeId, skipDirect, }) {
|
|
54
|
+
return __request(OpenAPI, {
|
|
55
|
+
method: 'GET',
|
|
56
|
+
url: '/w/{workspace}/jobs/result_by_id/{flow_job_id}/{node_id}',
|
|
57
|
+
path: {
|
|
58
|
+
'workspace': workspace,
|
|
59
|
+
'flow_job_id': flowJobId,
|
|
60
|
+
'node_id': nodeId,
|
|
61
|
+
},
|
|
62
|
+
query: {
|
|
63
|
+
'skip_direct': skipDirect,
|
|
64
|
+
},
|
|
65
|
+
});
|
|
66
|
+
}
|
|
48
67
|
/**
|
|
49
68
|
* run flow by path
|
|
50
69
|
* @returns string job created
|
|
@@ -283,36 +302,62 @@ export class JobService {
|
|
|
283
302
|
mediaType: 'application/json',
|
|
284
303
|
});
|
|
285
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* create an HMac signature given a job id and a resume id
|
|
307
|
+
* @returns string job signature
|
|
308
|
+
* @throws ApiError
|
|
309
|
+
*/
|
|
310
|
+
static createJobSignature({ workspace, id, resumeId, approver, }) {
|
|
311
|
+
return __request(OpenAPI, {
|
|
312
|
+
method: 'GET',
|
|
313
|
+
url: '/w/{workspace}/jobs/job_signature/{id}/{resume_id}',
|
|
314
|
+
path: {
|
|
315
|
+
'workspace': workspace,
|
|
316
|
+
'id': id,
|
|
317
|
+
'resume_id': resumeId,
|
|
318
|
+
},
|
|
319
|
+
query: {
|
|
320
|
+
'approver': approver,
|
|
321
|
+
},
|
|
322
|
+
});
|
|
323
|
+
}
|
|
286
324
|
/**
|
|
287
325
|
* resume a job for a suspended flow
|
|
288
|
-
* @returns
|
|
326
|
+
* @returns string job resumed
|
|
289
327
|
* @throws ApiError
|
|
290
328
|
*/
|
|
291
|
-
static
|
|
329
|
+
static resumeSuspendedJobGet({ workspace, id, resumeId, signature, approver, }) {
|
|
292
330
|
return __request(OpenAPI, {
|
|
293
331
|
method: 'GET',
|
|
294
|
-
url: '/w/{workspace}/jobs/resume/{id}',
|
|
332
|
+
url: '/w/{workspace}/jobs/resume/{id}/{resume_id}/{signature}',
|
|
295
333
|
path: {
|
|
296
334
|
'workspace': workspace,
|
|
297
335
|
'id': id,
|
|
336
|
+
'resume_id': resumeId,
|
|
337
|
+
'signature': signature,
|
|
298
338
|
},
|
|
299
339
|
query: {
|
|
300
|
-
'
|
|
340
|
+
'approver': approver,
|
|
301
341
|
},
|
|
302
342
|
});
|
|
303
343
|
}
|
|
304
344
|
/**
|
|
305
345
|
* resume a job for a suspended flow
|
|
306
|
-
* @returns
|
|
346
|
+
* @returns string job resumed
|
|
307
347
|
* @throws ApiError
|
|
308
348
|
*/
|
|
309
|
-
static
|
|
349
|
+
static resumeSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }) {
|
|
310
350
|
return __request(OpenAPI, {
|
|
311
351
|
method: 'POST',
|
|
312
|
-
url: '/w/{workspace}/jobs/resume/{id}',
|
|
352
|
+
url: '/w/{workspace}/jobs/resume/{id}/{resume_id}/{signature}',
|
|
313
353
|
path: {
|
|
314
354
|
'workspace': workspace,
|
|
315
355
|
'id': id,
|
|
356
|
+
'resume_id': resumeId,
|
|
357
|
+
'signature': signature,
|
|
358
|
+
},
|
|
359
|
+
query: {
|
|
360
|
+
'approver': approver,
|
|
316
361
|
},
|
|
317
362
|
body: requestBody,
|
|
318
363
|
mediaType: 'application/json',
|
|
@@ -320,37 +365,64 @@ export class JobService {
|
|
|
320
365
|
}
|
|
321
366
|
/**
|
|
322
367
|
* cancel a job for a suspended flow
|
|
323
|
-
* @returns
|
|
368
|
+
* @returns string job resumed
|
|
324
369
|
* @throws ApiError
|
|
325
370
|
*/
|
|
326
|
-
static
|
|
371
|
+
static cancelSuspendedJobGet({ workspace, id, resumeId, signature, approver, }) {
|
|
327
372
|
return __request(OpenAPI, {
|
|
328
373
|
method: 'GET',
|
|
329
|
-
url: '/w/{workspace}/jobs/cancel/{id}',
|
|
374
|
+
url: '/w/{workspace}/jobs/cancel/{id}/{resume_id}/{signature}',
|
|
330
375
|
path: {
|
|
331
376
|
'workspace': workspace,
|
|
332
377
|
'id': id,
|
|
378
|
+
'resume_id': resumeId,
|
|
379
|
+
'signature': signature,
|
|
333
380
|
},
|
|
334
381
|
query: {
|
|
335
|
-
'
|
|
382
|
+
'approver': approver,
|
|
336
383
|
},
|
|
337
384
|
});
|
|
338
385
|
}
|
|
339
386
|
/**
|
|
340
387
|
* cancel a job for a suspended flow
|
|
341
|
-
* @returns
|
|
388
|
+
* @returns string job resumed
|
|
342
389
|
* @throws ApiError
|
|
343
390
|
*/
|
|
344
|
-
static
|
|
391
|
+
static cancelSuspendedJobPost({ workspace, id, resumeId, signature, requestBody, approver, }) {
|
|
345
392
|
return __request(OpenAPI, {
|
|
346
393
|
method: 'POST',
|
|
347
|
-
url: '/w/{workspace}/jobs/cancel/{id}',
|
|
394
|
+
url: '/w/{workspace}/jobs/cancel/{id}/{resume_id}/{signature}',
|
|
348
395
|
path: {
|
|
349
396
|
'workspace': workspace,
|
|
350
397
|
'id': id,
|
|
398
|
+
'resume_id': resumeId,
|
|
399
|
+
'signature': signature,
|
|
400
|
+
},
|
|
401
|
+
query: {
|
|
402
|
+
'approver': approver,
|
|
351
403
|
},
|
|
352
404
|
body: requestBody,
|
|
353
405
|
mediaType: 'application/json',
|
|
354
406
|
});
|
|
355
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* get parent flow job of suspended job
|
|
410
|
+
* @returns any parent flow details
|
|
411
|
+
* @throws ApiError
|
|
412
|
+
*/
|
|
413
|
+
static getSuspendedJobFlow({ workspace, id, resumeId, signature, approver, }) {
|
|
414
|
+
return __request(OpenAPI, {
|
|
415
|
+
method: 'GET',
|
|
416
|
+
url: '/w/{workspace}/jobs/get_flow/{id}/{resume_id}/{signature}',
|
|
417
|
+
path: {
|
|
418
|
+
'workspace': workspace,
|
|
419
|
+
'id': id,
|
|
420
|
+
'resume_id': resumeId,
|
|
421
|
+
'signature': signature,
|
|
422
|
+
},
|
|
423
|
+
query: {
|
|
424
|
+
'approver': approver,
|
|
425
|
+
},
|
|
426
|
+
});
|
|
427
|
+
}
|
|
356
428
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { SlackToken } from '../models/SlackToken';
|
|
2
1
|
import type { TokenResponse } from '../models/TokenResponse';
|
|
3
2
|
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
4
3
|
export declare class OauthService {
|
|
5
4
|
/**
|
|
6
5
|
* connect slack callback
|
|
7
|
-
* @returns
|
|
6
|
+
* @returns string slack token
|
|
8
7
|
* @throws ApiError
|
|
9
8
|
*/
|
|
10
|
-
static connectSlackCallback({ requestBody, }: {
|
|
9
|
+
static connectSlackCallback({ workspace, requestBody, }: {
|
|
10
|
+
workspace: string;
|
|
11
11
|
/**
|
|
12
12
|
* code endpoint
|
|
13
13
|
*/
|
|
@@ -15,7 +15,7 @@ export declare class OauthService {
|
|
|
15
15
|
code: string;
|
|
16
16
|
state: string;
|
|
17
17
|
};
|
|
18
|
-
}): CancelablePromise<
|
|
18
|
+
}): CancelablePromise<string>;
|
|
19
19
|
/**
|
|
20
20
|
* connect callback
|
|
21
21
|
* @returns TokenResponse oauth token
|
|
@@ -55,7 +55,7 @@ export declare class OauthService {
|
|
|
55
55
|
*/
|
|
56
56
|
static refreshToken({ workspace, id, requestBody, }: {
|
|
57
57
|
workspace: string;
|
|
58
|
-
id:
|
|
58
|
+
id: number;
|
|
59
59
|
/**
|
|
60
60
|
* variable path
|
|
61
61
|
*/
|
|
@@ -70,7 +70,7 @@ export declare class OauthService {
|
|
|
70
70
|
*/
|
|
71
71
|
static disconnectAccount({ workspace, id, }: {
|
|
72
72
|
workspace: string;
|
|
73
|
-
id:
|
|
73
|
+
id: number;
|
|
74
74
|
}): CancelablePromise<string>;
|
|
75
75
|
/**
|
|
76
76
|
* disconnect slack
|
|
@@ -80,15 +80,6 @@ export declare class OauthService {
|
|
|
80
80
|
static disconnectSlack({ workspace, }: {
|
|
81
81
|
workspace: string;
|
|
82
82
|
}): CancelablePromise<string>;
|
|
83
|
-
/**
|
|
84
|
-
* set workspace's slack
|
|
85
|
-
* @returns string workspace slack is set
|
|
86
|
-
* @throws ApiError
|
|
87
|
-
*/
|
|
88
|
-
static setWorkspaceSlack({ workspace, requestBody, }: {
|
|
89
|
-
workspace: string;
|
|
90
|
-
requestBody: SlackToken;
|
|
91
|
-
}): CancelablePromise<string>;
|
|
92
83
|
/**
|
|
93
84
|
* list oauth logins
|
|
94
85
|
* @returns string list of oauth login clients
|
|
@@ -3,13 +3,16 @@ import { request as __request } from '../core/request';
|
|
|
3
3
|
export class OauthService {
|
|
4
4
|
/**
|
|
5
5
|
* connect slack callback
|
|
6
|
-
* @returns
|
|
6
|
+
* @returns string slack token
|
|
7
7
|
* @throws ApiError
|
|
8
8
|
*/
|
|
9
|
-
static connectSlackCallback({ requestBody, }) {
|
|
9
|
+
static connectSlackCallback({ workspace, requestBody, }) {
|
|
10
10
|
return __request(OpenAPI, {
|
|
11
11
|
method: 'POST',
|
|
12
|
-
url: '/oauth/connect_slack_callback',
|
|
12
|
+
url: '/w/{workspace}/oauth/connect_slack_callback',
|
|
13
|
+
path: {
|
|
14
|
+
'workspace': workspace,
|
|
15
|
+
},
|
|
13
16
|
body: requestBody,
|
|
14
17
|
mediaType: 'application/json',
|
|
15
18
|
});
|
|
@@ -92,22 +95,6 @@ export class OauthService {
|
|
|
92
95
|
},
|
|
93
96
|
});
|
|
94
97
|
}
|
|
95
|
-
/**
|
|
96
|
-
* set workspace's slack
|
|
97
|
-
* @returns string workspace slack is set
|
|
98
|
-
* @throws ApiError
|
|
99
|
-
*/
|
|
100
|
-
static setWorkspaceSlack({ workspace, requestBody, }) {
|
|
101
|
-
return __request(OpenAPI, {
|
|
102
|
-
method: 'POST',
|
|
103
|
-
url: '/w/{workspace}/oauth/set_workspace_slack',
|
|
104
|
-
path: {
|
|
105
|
-
'workspace': workspace,
|
|
106
|
-
},
|
|
107
|
-
body: requestBody,
|
|
108
|
-
mediaType: 'application/json',
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
98
|
/**
|
|
112
99
|
* list oauth logins
|
|
113
100
|
* @returns string list of oauth login clients
|
|
@@ -41,13 +41,22 @@ export declare class ResourceService {
|
|
|
41
41
|
}): CancelablePromise<string>;
|
|
42
42
|
/**
|
|
43
43
|
* get resource
|
|
44
|
-
* @returns Resource resource
|
|
44
|
+
* @returns Resource resource
|
|
45
45
|
* @throws ApiError
|
|
46
46
|
*/
|
|
47
47
|
static getResource({ workspace, path, }: {
|
|
48
48
|
workspace: string;
|
|
49
49
|
path: string;
|
|
50
50
|
}): CancelablePromise<Resource>;
|
|
51
|
+
/**
|
|
52
|
+
* get resource value
|
|
53
|
+
* @returns any resource value
|
|
54
|
+
* @throws ApiError
|
|
55
|
+
*/
|
|
56
|
+
static getResourceValue({ workspace, path, }: {
|
|
57
|
+
workspace: string;
|
|
58
|
+
path: string;
|
|
59
|
+
}): CancelablePromise<any>;
|
|
51
60
|
/**
|
|
52
61
|
* does resource exists
|
|
53
62
|
* @returns boolean does resource exists
|
|
@@ -51,7 +51,7 @@ export class ResourceService {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* get resource
|
|
54
|
-
* @returns Resource resource
|
|
54
|
+
* @returns Resource resource
|
|
55
55
|
* @throws ApiError
|
|
56
56
|
*/
|
|
57
57
|
static getResource({ workspace, path, }) {
|
|
@@ -64,6 +64,21 @@ export class ResourceService {
|
|
|
64
64
|
},
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* get resource value
|
|
69
|
+
* @returns any resource value
|
|
70
|
+
* @throws ApiError
|
|
71
|
+
*/
|
|
72
|
+
static getResourceValue({ workspace, path, }) {
|
|
73
|
+
return __request(OpenAPI, {
|
|
74
|
+
method: 'GET',
|
|
75
|
+
url: '/w/{workspace}/resources/get_value/{path}',
|
|
76
|
+
path: {
|
|
77
|
+
'workspace': workspace,
|
|
78
|
+
'path': path,
|
|
79
|
+
},
|
|
80
|
+
});
|
|
81
|
+
}
|
|
67
82
|
/**
|
|
68
83
|
* does resource exists
|
|
69
84
|
* @returns boolean does resource exists
|
|
@@ -14,7 +14,7 @@ export declare class ScriptService {
|
|
|
14
14
|
summary: string;
|
|
15
15
|
app: string;
|
|
16
16
|
approved: boolean;
|
|
17
|
-
kind: 'script' | 'failure' | 'trigger' | 'command';
|
|
17
|
+
kind: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
|
|
18
18
|
votes: number;
|
|
19
19
|
views: number;
|
|
20
20
|
}>;
|
|
@@ -27,6 +27,20 @@ export declare class ScriptService {
|
|
|
27
27
|
static getHubScriptContentByPath({ path, }: {
|
|
28
28
|
path: string;
|
|
29
29
|
}): CancelablePromise<string>;
|
|
30
|
+
/**
|
|
31
|
+
* get full hub script by path
|
|
32
|
+
* @returns any script details
|
|
33
|
+
* @throws ApiError
|
|
34
|
+
*/
|
|
35
|
+
static getHubScriptByPath({ path, }: {
|
|
36
|
+
path: string;
|
|
37
|
+
}): CancelablePromise<{
|
|
38
|
+
content: string;
|
|
39
|
+
lockfile?: string;
|
|
40
|
+
schema?: any;
|
|
41
|
+
language: 'deno' | 'python3' | 'go' | 'bash';
|
|
42
|
+
summary?: string;
|
|
43
|
+
}>;
|
|
30
44
|
/**
|
|
31
45
|
* list all available scripts
|
|
32
46
|
* @returns Script All available scripts
|
|
@@ -120,8 +134,8 @@ export declare class ScriptService {
|
|
|
120
134
|
schema?: any;
|
|
121
135
|
is_template?: boolean;
|
|
122
136
|
lock?: Array<string>;
|
|
123
|
-
language: 'python3' | 'deno' | 'go';
|
|
124
|
-
kind?: 'script' | 'failure' | 'trigger' | 'command';
|
|
137
|
+
language: 'python3' | 'deno' | 'go' | 'bash';
|
|
138
|
+
kind?: 'script' | 'failure' | 'trigger' | 'command' | 'approval';
|
|
125
139
|
};
|
|
126
140
|
}): CancelablePromise<string>;
|
|
127
141
|
/**
|
|
@@ -146,6 +160,17 @@ export declare class ScriptService {
|
|
|
146
160
|
*/
|
|
147
161
|
requestBody: string;
|
|
148
162
|
}): CancelablePromise<MainArgSignature>;
|
|
163
|
+
/**
|
|
164
|
+
* inspect bash code to infer jsonschema of arguments
|
|
165
|
+
* @returns MainArgSignature parsed args
|
|
166
|
+
* @throws ApiError
|
|
167
|
+
*/
|
|
168
|
+
static bashToJsonschema({ requestBody, }: {
|
|
169
|
+
/**
|
|
170
|
+
* bash code with the main function
|
|
171
|
+
*/
|
|
172
|
+
requestBody: string;
|
|
173
|
+
}): CancelablePromise<MainArgSignature>;
|
|
149
174
|
/**
|
|
150
175
|
* inspect go code to infer jsonschema of arguments
|
|
151
176
|
* @returns MainArgSignature parsed args
|
|
@@ -26,6 +26,20 @@ export class ScriptService {
|
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* get full hub script by path
|
|
31
|
+
* @returns any script details
|
|
32
|
+
* @throws ApiError
|
|
33
|
+
*/
|
|
34
|
+
static getHubScriptByPath({ path, }) {
|
|
35
|
+
return __request(OpenAPI, {
|
|
36
|
+
method: 'GET',
|
|
37
|
+
url: '/scripts/hub/get_full/{path}',
|
|
38
|
+
path: {
|
|
39
|
+
'path': path,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
}
|
|
29
43
|
/**
|
|
30
44
|
* list all available scripts
|
|
31
45
|
* @returns Script All available scripts
|
|
@@ -96,6 +110,19 @@ export class ScriptService {
|
|
|
96
110
|
mediaType: 'application/json',
|
|
97
111
|
});
|
|
98
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* inspect bash code to infer jsonschema of arguments
|
|
115
|
+
* @returns MainArgSignature parsed args
|
|
116
|
+
* @throws ApiError
|
|
117
|
+
*/
|
|
118
|
+
static bashToJsonschema({ requestBody, }) {
|
|
119
|
+
return __request(OpenAPI, {
|
|
120
|
+
method: 'POST',
|
|
121
|
+
url: '/scripts/bash/tojsonschema',
|
|
122
|
+
body: requestBody,
|
|
123
|
+
mediaType: 'application/json',
|
|
124
|
+
});
|
|
125
|
+
}
|
|
99
126
|
/**
|
|
100
127
|
* inspect go code to infer jsonschema of arguments
|
|
101
128
|
* @returns MainArgSignature parsed args
|
|
@@ -20,6 +20,12 @@ export declare class UserService {
|
|
|
20
20
|
*/
|
|
21
21
|
requestBody: Login;
|
|
22
22
|
}): CancelablePromise<string>;
|
|
23
|
+
/**
|
|
24
|
+
* logout
|
|
25
|
+
* @returns string clear cookies and clear token (if applicable)
|
|
26
|
+
* @throws ApiError
|
|
27
|
+
*/
|
|
28
|
+
static logout(): CancelablePromise<string>;
|
|
23
29
|
/**
|
|
24
30
|
* create user (require admin privilege)
|
|
25
31
|
* @returns string user created
|
|
@@ -89,6 +95,14 @@ export declare class UserService {
|
|
|
89
95
|
is_super_admin?: boolean;
|
|
90
96
|
};
|
|
91
97
|
}): CancelablePromise<string>;
|
|
98
|
+
/**
|
|
99
|
+
* global delete user (require super admin)
|
|
100
|
+
* @returns string user deleted
|
|
101
|
+
* @throws ApiError
|
|
102
|
+
*/
|
|
103
|
+
static globalUserDelete({ email, }: {
|
|
104
|
+
email: string;
|
|
105
|
+
}): CancelablePromise<string>;
|
|
92
106
|
/**
|
|
93
107
|
* delete user (require admin privilege)
|
|
94
108
|
* @returns string delete user
|
|
@@ -98,12 +112,6 @@ export declare class UserService {
|
|
|
98
112
|
workspace: string;
|
|
99
113
|
username: string;
|
|
100
114
|
}): CancelablePromise<string>;
|
|
101
|
-
/**
|
|
102
|
-
* logout
|
|
103
|
-
* @returns string logout
|
|
104
|
-
* @throws ApiError
|
|
105
|
-
*/
|
|
106
|
-
static logout(): CancelablePromise<string>;
|
|
107
115
|
/**
|
|
108
116
|
* get current user email (if logged in)
|
|
109
117
|
* @returns string user email
|
|
@@ -15,6 +15,17 @@ export class UserService {
|
|
|
15
15
|
mediaType: 'application/json',
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* logout
|
|
20
|
+
* @returns string clear cookies and clear token (if applicable)
|
|
21
|
+
* @throws ApiError
|
|
22
|
+
*/
|
|
23
|
+
static logout() {
|
|
24
|
+
return __request(OpenAPI, {
|
|
25
|
+
method: 'POST',
|
|
26
|
+
url: '/auth/logout',
|
|
27
|
+
});
|
|
28
|
+
}
|
|
18
29
|
/**
|
|
19
30
|
* create user (require admin privilege)
|
|
20
31
|
* @returns string user created
|
|
@@ -91,29 +102,32 @@ export class UserService {
|
|
|
91
102
|
});
|
|
92
103
|
}
|
|
93
104
|
/**
|
|
94
|
-
* delete user (require admin
|
|
95
|
-
* @returns string
|
|
105
|
+
* global delete user (require super admin)
|
|
106
|
+
* @returns string user deleted
|
|
96
107
|
* @throws ApiError
|
|
97
108
|
*/
|
|
98
|
-
static
|
|
109
|
+
static globalUserDelete({ email, }) {
|
|
99
110
|
return __request(OpenAPI, {
|
|
100
111
|
method: 'DELETE',
|
|
101
|
-
url: '/
|
|
112
|
+
url: '/users/delete/{email}',
|
|
102
113
|
path: {
|
|
103
|
-
'
|
|
104
|
-
'username': username,
|
|
114
|
+
'email': email,
|
|
105
115
|
},
|
|
106
116
|
});
|
|
107
117
|
}
|
|
108
118
|
/**
|
|
109
|
-
*
|
|
110
|
-
* @returns string
|
|
119
|
+
* delete user (require admin privilege)
|
|
120
|
+
* @returns string delete user
|
|
111
121
|
* @throws ApiError
|
|
112
122
|
*/
|
|
113
|
-
static
|
|
123
|
+
static deleteUser({ workspace, username, }) {
|
|
114
124
|
return __request(OpenAPI, {
|
|
115
|
-
method: '
|
|
116
|
-
url: '/users/
|
|
125
|
+
method: 'DELETE',
|
|
126
|
+
url: '/w/{workspace}/users/delete/{username}',
|
|
127
|
+
path: {
|
|
128
|
+
'workspace': workspace,
|
|
129
|
+
'username': username,
|
|
130
|
+
},
|
|
117
131
|
});
|
|
118
132
|
}
|
|
119
133
|
/**
|
package/infer.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Schema } from './common.js';
|
|
2
|
-
export declare function inferArgs(language: 'python3' | 'deno' | 'go', code: string, schema: Schema): Promise<void>;
|
|
2
|
+
export declare function inferArgs(language: 'python3' | 'deno' | 'go' | 'bash', code: string, schema: Schema): Promise<void>;
|
package/infer.js
CHANGED
|
@@ -1,26 +1,40 @@
|
|
|
1
1
|
import { ScriptService } from './gen';
|
|
2
|
+
import { get, writable } from 'svelte/store';
|
|
3
|
+
const loadSchemaLastRun = writable(undefined);
|
|
2
4
|
export async function inferArgs(language, code, schema) {
|
|
5
|
+
let lastRun = get(loadSchemaLastRun);
|
|
3
6
|
let inferedSchema;
|
|
4
|
-
if (code ==
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
if (language == 'python3') {
|
|
8
|
-
inferedSchema = await ScriptService.pythonToJsonschema({
|
|
9
|
-
requestBody: code
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
else if (language == 'deno') {
|
|
13
|
-
inferedSchema = await ScriptService.denoToJsonschema({
|
|
14
|
-
requestBody: code
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
else if (language == 'go') {
|
|
18
|
-
inferedSchema = await ScriptService.goToJsonschema({
|
|
19
|
-
requestBody: code
|
|
20
|
-
});
|
|
7
|
+
if (lastRun && code == lastRun[0] && lastRun[1]) {
|
|
8
|
+
inferedSchema = lastRun[1];
|
|
21
9
|
}
|
|
22
10
|
else {
|
|
23
|
-
|
|
11
|
+
if (code == '') {
|
|
12
|
+
code = ' ';
|
|
13
|
+
}
|
|
14
|
+
if (language == 'python3') {
|
|
15
|
+
inferedSchema = await ScriptService.pythonToJsonschema({
|
|
16
|
+
requestBody: code
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
else if (language == 'deno') {
|
|
20
|
+
inferedSchema = await ScriptService.denoToJsonschema({
|
|
21
|
+
requestBody: code
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
else if (language == 'go') {
|
|
25
|
+
inferedSchema = await ScriptService.goToJsonschema({
|
|
26
|
+
requestBody: code
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
else if (language == 'bash') {
|
|
30
|
+
inferedSchema = await ScriptService.bashToJsonschema({
|
|
31
|
+
requestBody: code
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
loadSchemaLastRun.set([code, inferedSchema]);
|
|
24
38
|
}
|
|
25
39
|
schema.required = [];
|
|
26
40
|
const oldProperties = Object.assign({}, schema.properties);
|
|
@@ -99,6 +113,9 @@ function argSigToJsonSchemaType(t, oldS) {
|
|
|
99
113
|
newS.items = { type: 'string' };
|
|
100
114
|
}
|
|
101
115
|
}
|
|
116
|
+
else {
|
|
117
|
+
newS.type = 'object';
|
|
118
|
+
}
|
|
102
119
|
if (oldS.type != newS.type) {
|
|
103
120
|
for (const prop of Object.getOwnPropertyNames(newS)) {
|
|
104
121
|
if (prop != "description") {
|
package/logout.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function logoutWithRedirect(rd?: string): void
|
|
1
|
+
export declare function logoutWithRedirect(rd?: string): Promise<void>;
|
|
2
2
|
export declare function logout(): Promise<void>;
|
package/logout.js
CHANGED
|
@@ -2,28 +2,26 @@ import { goto } from '$app/navigation';
|
|
|
2
2
|
import { UserService } from './gen';
|
|
3
3
|
import { clearStores } from './stores.js';
|
|
4
4
|
import { sendUserToast } from './utils.js';
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
export function logoutWithRedirect(rd) {
|
|
5
|
+
export async function logoutWithRedirect(rd) {
|
|
6
|
+
await clearUser();
|
|
9
7
|
if (rd?.split('?')[0] != '/user/login') {
|
|
10
8
|
const error = document.cookie.includes('token')
|
|
11
9
|
? `error=${encodeURIComponent('You have been logged out because your session has expired.')}&`
|
|
12
10
|
: '';
|
|
13
|
-
clearCookies();
|
|
14
11
|
goto(`/user/login?${error}${rd ? 'rd=' + encodeURIComponent(rd) : ''}`, { replaceState: true });
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
14
|
export async function logout() {
|
|
15
|
+
await clearUser();
|
|
16
|
+
goto(`/user/login`);
|
|
17
|
+
sendUserToast('you have been logged out');
|
|
18
|
+
}
|
|
19
|
+
async function clearUser() {
|
|
18
20
|
try {
|
|
19
21
|
clearStores();
|
|
20
22
|
await UserService.logout();
|
|
21
|
-
clearCookies();
|
|
22
23
|
}
|
|
23
24
|
catch (error) {
|
|
24
25
|
console.error(error);
|
|
25
|
-
clearCookies();
|
|
26
26
|
}
|
|
27
|
-
goto(`/user/login`);
|
|
28
|
-
sendUserToast('you have been logged out');
|
|
29
27
|
}
|