windmill-components 1.352.9 → 1.362.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.
Files changed (208) hide show
  1. package/package/assets/app.css +8 -45
  2. package/package/components/ApiConnectForm.svelte +1 -0
  3. package/package/components/ArgInput.svelte +5 -1
  4. package/package/components/ChangeInstanceUsername.svelte +20 -12
  5. package/package/components/ContentSearchInner.svelte +359 -0
  6. package/package/components/{ContentSearch.svelte.d.ts → ContentSearchInner.svelte.d.ts} +9 -5
  7. package/package/components/CustomPopover.svelte +73 -0
  8. package/package/components/CustomPopover.svelte.d.ts +29 -0
  9. package/package/components/DateTimeInput.svelte +29 -3
  10. package/package/components/DateTimeInput.svelte.d.ts +4 -0
  11. package/package/components/Dev.svelte +8 -3
  12. package/package/components/DurationMs.svelte +2 -2
  13. package/package/components/FlowBuilder.svelte +122 -24
  14. package/package/components/FlowBuilder.svelte.d.ts +1 -0
  15. package/package/components/FlowGraphViewerStep.svelte +2 -2
  16. package/package/components/FlowJobResult.svelte +5 -3
  17. package/package/components/FlowStatusViewer.svelte +4 -3
  18. package/package/components/FlowStatusViewerInner.svelte +265 -160
  19. package/package/components/FlowStatusViewerInner.svelte.d.ts +15 -2
  20. package/package/components/HighlightTheme.svelte +75 -77
  21. package/package/components/InputTransformForm.svelte +2 -0
  22. package/package/components/JobArgs.svelte +59 -44
  23. package/package/components/JobArgs.svelte.d.ts +2 -0
  24. package/package/components/LightweightArgInput.svelte +27 -2
  25. package/package/components/Path.svelte +3 -8
  26. package/package/components/Popover.svelte +1 -1
  27. package/package/components/ResourceEditor.svelte +3 -2
  28. package/package/components/ResourceEditorDrawer.svelte +4 -1
  29. package/package/components/ResourcePicker.svelte +1 -0
  30. package/package/components/RunChart.svelte +6 -3
  31. package/package/components/RunChart.svelte.d.ts +1 -0
  32. package/package/components/RunForm.svelte +24 -23
  33. package/package/components/RunForm.svelte.d.ts +0 -2
  34. package/package/components/SavedInputs.svelte +50 -39
  35. package/package/components/ScheduleEditorInner.svelte +26 -4
  36. package/package/components/ScriptBuilder.svelte +47 -22
  37. package/package/components/ScriptBuilder.svelte.d.ts +1 -0
  38. package/package/components/SearchItems.svelte +5 -4
  39. package/package/components/Summary.svelte +74 -0
  40. package/package/components/Summary.svelte.d.ts +16 -0
  41. package/package/components/apps/components/display/AppMarkdown.svelte +3 -2
  42. package/package/components/apps/components/display/AppMenu.svelte +2 -2
  43. package/package/components/apps/components/display/AppNavbar.svelte +94 -0
  44. package/package/components/apps/components/display/AppNavbar.svelte.d.ts +24 -0
  45. package/package/components/apps/components/display/AppNavbarItem.svelte +146 -0
  46. package/package/components/apps/components/display/AppNavbarItem.svelte.d.ts +27 -0
  47. package/package/components/apps/components/display/ResolveNavbarItemPath.svelte +21 -0
  48. package/package/components/apps/components/display/ResolveNavbarItemPath.svelte.d.ts +20 -0
  49. package/package/components/apps/components/display/dbtable/AppDbExplorer.svelte +16 -0
  50. package/package/components/apps/components/display/table/AppAggridExplorerTable.svelte +12 -16
  51. package/package/components/apps/components/display/table/AppAggridExplorerTable.svelte.d.ts +1 -0
  52. package/package/components/apps/components/display/table/AppAggridInfiniteTable.svelte +5 -0
  53. package/package/components/apps/components/display/table/AppAggridTable.svelte +28 -6
  54. package/package/components/apps/components/display/table/AppAggridTableActions.svelte +68 -43
  55. package/package/components/apps/components/inputs/AppDateSelect.svelte +284 -0
  56. package/package/components/apps/components/inputs/AppDateSelect.svelte.d.ts +21 -0
  57. package/package/components/apps/components/inputs/AppDateTimeInput.svelte +2 -0
  58. package/package/components/apps/components/inputs/AppFileInput.svelte +22 -27
  59. package/package/components/apps/components/inputs/AppFileInput.svelte.d.ts +1 -0
  60. package/package/components/apps/components/inputs/AppTextInput.svelte +1 -1
  61. package/package/components/apps/components/layout/AppDecisionTree.svelte +32 -30
  62. package/package/components/apps/components/layout/AppModal.svelte +17 -6
  63. package/package/components/apps/editor/AppDeploymentHistory.svelte +2 -3
  64. package/package/components/apps/editor/AppDeploymentHistory.svelte.d.ts +3 -2
  65. package/package/components/apps/editor/AppEditor.svelte +9 -2
  66. package/package/components/apps/editor/AppEditorHeader.svelte +7 -10
  67. package/package/components/apps/editor/AppPreview.svelte +12 -3
  68. package/package/components/apps/editor/AppPreview.svelte.d.ts +2 -0
  69. package/package/components/apps/editor/DecisionTreeDebug.svelte +92 -68
  70. package/package/components/apps/editor/DeploymentHistory.svelte +0 -2
  71. package/package/components/apps/editor/appUtils.d.ts +1 -0
  72. package/package/components/apps/editor/appUtils.js +17 -0
  73. package/package/components/apps/editor/component/Component.svelte +23 -0
  74. package/package/components/apps/editor/component/components.d.ts +205 -3
  75. package/package/components/apps/editor/component/components.js +160 -1
  76. package/package/components/apps/editor/component/default-codes.js +13 -13
  77. package/package/components/apps/editor/component/sets.js +4 -2
  78. package/package/components/apps/editor/componentsPanel/ComponentList.svelte +12 -12
  79. package/package/components/apps/editor/componentsPanel/cssUtils.js +39 -3
  80. package/package/components/apps/editor/componentsPanel/quickStyleProperties.js +6 -0
  81. package/package/components/apps/editor/contextPanel/ComponentOutput.svelte +2 -2
  82. package/package/components/apps/editor/contextPanel/ContextPanel.svelte +6 -0
  83. package/package/components/apps/editor/contextPanel/components/OutputHeader.svelte +11 -0
  84. package/package/components/apps/editor/inlineScriptsPanel/InlineScriptsPanelList.svelte +4 -0
  85. package/package/components/apps/editor/settingsPanel/ArrayStaticInputEditor.svelte +21 -8
  86. package/package/components/apps/editor/settingsPanel/ComponentPanel.svelte +64 -20
  87. package/package/components/apps/editor/settingsPanel/ContextVariables.svelte +48 -15
  88. package/package/components/apps/editor/settingsPanel/ContextVariables.svelte.d.ts +1 -0
  89. package/package/components/apps/editor/settingsPanel/DecisionTreeGraphEditor.svelte +25 -5
  90. package/package/components/apps/editor/settingsPanel/DecisionTreeGraphNode.svelte +2 -1
  91. package/package/components/apps/editor/settingsPanel/DecisionTreeGraphNode.svelte.d.ts +1 -0
  92. package/package/components/apps/editor/settingsPanel/DocLink.svelte +33 -0
  93. package/package/components/apps/editor/settingsPanel/DocLink.svelte.d.ts +19 -0
  94. package/package/components/apps/editor/settingsPanel/GridNavbar.svelte +192 -0
  95. package/package/components/apps/editor/settingsPanel/GridNavbar.svelte.d.ts +18 -0
  96. package/package/components/apps/editor/settingsPanel/GridTab.svelte +2 -2
  97. package/package/components/apps/editor/settingsPanel/RefreshDatabaseStudioTable.svelte +17 -0
  98. package/package/components/apps/editor/settingsPanel/RefreshDatabaseStudioTable.svelte.d.ts +16 -0
  99. package/package/components/apps/editor/settingsPanel/TableActions.svelte +81 -38
  100. package/package/components/apps/editor/settingsPanel/decisionTree/DecisionTreePreview.svelte +12 -5
  101. package/package/components/apps/editor/settingsPanel/inputEditor/IconSelectInput.svelte +11 -12
  102. package/package/components/apps/editor/settingsPanel/inputEditor/IconSelectInput.svelte.d.ts +4 -2
  103. package/package/components/apps/editor/settingsPanel/inputEditor/StaticInputEditor.svelte +4 -1
  104. package/package/components/apps/editor/settingsPanel/secondaryMenu/SecondaryMenu.svelte +7 -1
  105. package/package/components/apps/inputType.d.ts +2 -2
  106. package/package/components/apps/svelte-select/lib/Select.svelte +2 -3
  107. package/package/components/apps/types.d.ts +3 -0
  108. package/package/components/auditLogs/AuditLogsTable.svelte +2 -2
  109. package/package/components/common/CloseButton.svelte +10 -10
  110. package/package/components/common/CloseButton.svelte.d.ts +6 -14
  111. package/package/components/common/calendarPicker/CalendarPicker.svelte +5 -0
  112. package/package/components/common/calendarPicker/CalendarPicker.svelte.d.ts +2 -0
  113. package/package/components/common/confirmationModal/UnsavedConfirmationModal.svelte +7 -1
  114. package/package/components/common/fileInput/FileInput.svelte +2 -0
  115. package/package/components/common/fileInput/FileInput.svelte.d.ts +1 -0
  116. package/package/components/common/popup/Popup.svelte +4 -3
  117. package/package/components/common/popup/Popup.svelte.d.ts +1 -0
  118. package/package/components/common/table/AppRow.svelte +3 -10
  119. package/package/components/common/table/FlowRow.svelte +12 -1
  120. package/package/components/copilot/IteratorGen.svelte +1 -1
  121. package/package/components/copilot/PredicateGen.svelte +1 -1
  122. package/package/components/copilot/StepInputGen.svelte +8 -3
  123. package/package/components/copilot/StepInputsGen.svelte +5 -2
  124. package/package/components/details/WebhooksPanel.svelte +32 -1
  125. package/package/components/details/WebhooksPanel.svelte.d.ts +2 -11
  126. package/package/components/flows/FlowHistory.svelte +208 -0
  127. package/package/components/flows/FlowHistory.svelte.d.ts +21 -0
  128. package/package/components/flows/content/FlowBranchesAllWrapper.svelte +1 -1
  129. package/package/components/flows/content/FlowBranchesOneWrapper.svelte +1 -1
  130. package/package/components/flows/content/FlowEditorPanel.svelte +1 -1
  131. package/package/components/flows/content/FlowLoop.svelte +23 -26
  132. package/package/components/flows/content/FlowModuleComponent.svelte +2 -18
  133. package/package/components/flows/content/FlowModuleEarlyStop.svelte +10 -4
  134. package/package/components/flows/content/FlowModuleHeader.svelte +3 -4
  135. package/package/components/flows/content/FlowModuleScript.svelte +1 -1
  136. package/package/components/flows/content/FlowModuleSleep.svelte +1 -0
  137. package/package/components/flows/content/FlowModuleSuspend.svelte +1 -1
  138. package/package/components/flows/content/SuspendDrawer.svelte +7 -7
  139. package/package/components/flows/flowStateUtils.js +2 -1
  140. package/package/components/flows/flowStore.js +1 -1
  141. package/package/components/flows/header/FlowImportExportMenu.svelte +3 -16
  142. package/package/components/flows/header/FlowImportExportMenu.svelte.d.ts +4 -1
  143. package/package/components/flows/map/FlowJobsMenu.svelte +69 -0
  144. package/package/components/flows/map/FlowJobsMenu.svelte.d.ts +22 -0
  145. package/package/components/flows/map/FlowModuleSchemaItem.svelte +7 -4
  146. package/package/components/flows/map/FlowModuleSchemaItem.svelte.d.ts +1 -0
  147. package/package/components/flows/map/MapItem.svelte +20 -0
  148. package/package/components/flows/map/MapItem.svelte.d.ts +9 -0
  149. package/package/components/flows/map/VirtualItem.svelte +4 -2
  150. package/package/components/flows/map/VirtualItem.svelte.d.ts +1 -0
  151. package/package/components/flows/previousResults.d.ts +9 -0
  152. package/package/components/flows/previousResults.js +42 -8
  153. package/package/components/flows/propPicker/PropPickerWrapper.svelte +2 -0
  154. package/package/components/flows/propPicker/PropPickerWrapper.svelte.d.ts +1 -0
  155. package/package/components/flows/types.d.ts +1 -1
  156. package/package/components/graph/FlowGraph.svelte +80 -42
  157. package/package/components/graph/FlowGraph.svelte.d.ts +1 -0
  158. package/package/components/graph/model.d.ts +6 -1
  159. package/package/components/graph/svelvet/container/controllers/middleware.js +4 -4
  160. package/package/components/graph/svelvet/container/views/GraphView.svelte +2 -0
  161. package/package/components/graph/svelvet/edges/views/Edges/EdgeText.svelte +24 -25
  162. package/package/components/graph/util.d.ts +1 -1
  163. package/package/components/graph/util.js +1 -2
  164. package/package/components/home/ItemsList.svelte +22 -19
  165. package/package/components/jobs/JobPreview.svelte +11 -2
  166. package/package/components/propertyPicker/PropPicker.svelte +30 -0
  167. package/package/components/propertyPicker/PropPickerResult.svelte +14 -1
  168. package/package/components/propertyPicker/PropPickerResult.svelte.d.ts +1 -0
  169. package/package/components/runs/JobLoader.svelte +21 -8
  170. package/package/components/runs/JobLoader.svelte.d.ts +2 -0
  171. package/package/components/runs/JobPreview.svelte +5 -1
  172. package/package/components/runs/RunRow.svelte +12 -8
  173. package/package/components/runs/RunsFilter.svelte +2 -4
  174. package/package/components/runs/RunsFilter.svelte.d.ts +0 -1
  175. package/package/components/runs/RunsTable.svelte +63 -29
  176. package/package/components/runs/RunsTable.svelte.d.ts +1 -0
  177. package/package/components/schema/EditableSchemaWrapper.svelte +9 -1
  178. package/package/components/schema/PropertyEditor.svelte +1 -1
  179. package/package/components/search/GlobalSearchModal.svelte +559 -0
  180. package/package/components/search/GlobalSearchModal.svelte.d.ts +17 -0
  181. package/package/components/search/QuickMenuItem.svelte +76 -0
  182. package/package/components/search/QuickMenuItem.svelte.d.ts +27 -0
  183. package/package/components/sidebar/MenuButton.svelte +11 -0
  184. package/package/components/sidebar/MenuButton.svelte.d.ts +4 -0
  185. package/package/components/sidebar/changelogs.js +35 -0
  186. package/package/components/wizards/AppPicker.svelte +68 -0
  187. package/package/components/wizards/AppPicker.svelte.d.ts +17 -0
  188. package/package/components/wizards/NavbarWizard.svelte +131 -0
  189. package/package/components/wizards/NavbarWizard.svelte.d.ts +19 -0
  190. package/package/defaults.d.ts +1 -1
  191. package/package/defaults.js +1 -1
  192. package/package/es6.d.ts.txt +370 -1
  193. package/package/gen/core/OpenAPI.js +1 -1
  194. package/package/gen/schemas.gen.d.ts +42 -3
  195. package/package/gen/schemas.gen.js +42 -3
  196. package/package/gen/services.gen.d.ts +80 -5
  197. package/package/gen/services.gen.js +149 -8
  198. package/package/gen/types.gen.d.ts +265 -11
  199. package/package/inferArgSig.js +4 -0
  200. package/package/script_helpers.d.ts +3 -3
  201. package/package/script_helpers.js +46 -22
  202. package/package/stores.d.ts +1 -1
  203. package/package/stores.js +1 -1
  204. package/package/utils.d.ts +7 -23
  205. package/package/utils.js +54 -33
  206. package/package/windmill_fetch.d.ts.txt +6 -6
  207. package/package.json +3 -11
  208. package/package/components/ContentSearch.svelte +0 -355
@@ -89,9 +89,6 @@ export type ScriptArgs = {
89
89
  export type Input = {
90
90
  id: string;
91
91
  name: string;
92
- args: {
93
- [key: string]: unknown;
94
- };
95
92
  created_by: string;
96
93
  created_at: string;
97
94
  is_public: boolean;
@@ -419,6 +416,7 @@ export type Schedule = {
419
416
  summary?: string;
420
417
  no_flow_overlap?: boolean;
421
418
  tag?: string;
419
+ paused_until?: string;
422
420
  };
423
421
  export type ScheduleWJobs = Schedule & {
424
422
  jobs?: Array<{
@@ -447,6 +445,7 @@ export type NewSchedule = {
447
445
  no_flow_overlap?: boolean;
448
446
  summary?: string;
449
447
  tag?: string;
448
+ paused_until?: string;
450
449
  };
451
450
  export type EditSchedule = {
452
451
  schedule: string;
@@ -464,6 +463,7 @@ export type EditSchedule = {
464
463
  no_flow_overlap?: boolean;
465
464
  summary?: string;
466
465
  tag?: string;
466
+ paused_until?: string;
467
467
  };
468
468
  export type Group = {
469
469
  name: string;
@@ -645,6 +645,11 @@ export type AppHistory = {
645
645
  version: number;
646
646
  deployment_msg?: string;
647
647
  };
648
+ export type FlowVersion = {
649
+ id: number;
650
+ created_at: string;
651
+ deployment_msg?: string;
652
+ };
648
653
  export type SlackToken = {
649
654
  access_token: string;
650
655
  team_id: string;
@@ -755,6 +760,9 @@ export type ExtendedJobs = {
755
760
  */
756
761
  omitted_obscured_jobs?: boolean;
757
762
  };
763
+ export type JobSearchHit = {
764
+ dancer?: string;
765
+ };
758
766
  export type OpenFlow = {
759
767
  summary: string;
760
768
  description?: string;
@@ -919,6 +927,7 @@ export type FlowStatusModule = {
919
927
  args?: unknown;
920
928
  };
921
929
  flow_jobs?: Array<(string)>;
930
+ flow_jobs_success?: Array<(boolean)>;
922
931
  branch_chosen?: {
923
932
  type: 'branch' | 'default';
924
933
  branch?: number;
@@ -1027,6 +1036,10 @@ export type ParameterStartedAfter = string;
1027
1036
  * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
1028
1037
  */
1029
1038
  export type ParameterCreatedOrStartedAfter = string;
1039
+ /**
1040
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
1041
+ */
1042
+ export type ParameterCreatedOrStartedAfterCompletedJob = string;
1030
1043
  /**
1031
1044
  * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
1032
1045
  */
@@ -1114,10 +1127,18 @@ export type ListAuditLogsData = {
1114
1127
  * filter on created before (exclusive) timestamp
1115
1128
  */
1116
1129
  before?: string;
1130
+ /**
1131
+ * comma separated list of operations to exclude
1132
+ */
1133
+ excludeOperations?: string;
1117
1134
  /**
1118
1135
  * filter on exact or prefix name of operation
1119
1136
  */
1120
1137
  operation?: string;
1138
+ /**
1139
+ * comma separated list of exact operations to include
1140
+ */
1141
+ operations?: string;
1121
1142
  /**
1122
1143
  * which page to return (start at 1, default 1)
1123
1144
  */
@@ -2086,6 +2107,12 @@ export type ListFlowsData = {
2086
2107
  * mask to filter exact matching user creator
2087
2108
  */
2088
2109
  createdBy?: string;
2110
+ /**
2111
+ * (default false)
2112
+ * include items that have no deployed version
2113
+ *
2114
+ */
2115
+ includeDraftOnly?: boolean;
2089
2116
  /**
2090
2117
  * order by desc order (default true)
2091
2118
  */
@@ -2108,7 +2135,7 @@ export type ListFlowsData = {
2108
2135
  perPage?: number;
2109
2136
  /**
2110
2137
  * (default false)
2111
- * show also the archived files.
2138
+ * show only the archived files.
2112
2139
  * when multiple archived hash share the same path, only the ones with the latest create_at
2113
2140
  * are displayed.
2114
2141
  *
@@ -2120,12 +2147,41 @@ export type ListFlowsData = {
2120
2147
  *
2121
2148
  */
2122
2149
  starredOnly?: boolean;
2150
+ /**
2151
+ * (default false)
2152
+ * include deployment message
2153
+ *
2154
+ */
2155
+ withDeploymentMsg?: boolean;
2123
2156
  workspace: string;
2124
2157
  };
2125
2158
  export type ListFlowsResponse = Array<(Flow & {
2126
2159
  has_draft?: boolean;
2127
2160
  draft_only?: boolean;
2128
2161
  })>;
2162
+ export type GetFlowHistoryData = {
2163
+ path: string;
2164
+ workspace: string;
2165
+ };
2166
+ export type GetFlowHistoryResponse = Array<FlowVersion>;
2167
+ export type GetFlowVersionData = {
2168
+ path: string;
2169
+ version: number;
2170
+ workspace: string;
2171
+ };
2172
+ export type GetFlowVersionResponse = Flow;
2173
+ export type UpdateFlowHistoryData = {
2174
+ path: string;
2175
+ /**
2176
+ * Flow deployment message
2177
+ */
2178
+ requestBody: {
2179
+ deployment_msg: string;
2180
+ };
2181
+ version: number;
2182
+ workspace: string;
2183
+ };
2184
+ export type UpdateFlowHistoryResponse = string;
2129
2185
  export type GetFlowByPathData = {
2130
2186
  path: string;
2131
2187
  workspace: string;
@@ -2236,6 +2292,12 @@ export type ListAppsData = {
2236
2292
  * mask to filter exact matching user creator
2237
2293
  */
2238
2294
  createdBy?: string;
2295
+ /**
2296
+ * (default false)
2297
+ * include items that have no deployed version
2298
+ *
2299
+ */
2300
+ includeDraftOnly?: boolean;
2239
2301
  /**
2240
2302
  * order by desc order (default true)
2241
2303
  */
@@ -2262,6 +2324,12 @@ export type ListAppsData = {
2262
2324
  *
2263
2325
  */
2264
2326
  starredOnly?: boolean;
2327
+ /**
2328
+ * (default false)
2329
+ * include deployment message
2330
+ *
2331
+ */
2332
+ withDeploymentMsg?: boolean;
2265
2333
  workspace: string;
2266
2334
  };
2267
2335
  export type ListAppsResponse = Array<ListableApp>;
@@ -2464,10 +2532,16 @@ export type ListScriptsData = {
2464
2532
  firstParentHash?: string;
2465
2533
  /**
2466
2534
  * (default false)
2467
- * hide the scripts without an exported main function
2535
+ * include scripts that have no deployed version
2468
2536
  *
2469
2537
  */
2470
- hideWithoutMain?: boolean;
2538
+ includeDraftOnly?: boolean;
2539
+ /**
2540
+ * (default false)
2541
+ * include scripts without an exported main function
2542
+ *
2543
+ */
2544
+ includeWithoutMain?: boolean;
2471
2545
  /**
2472
2546
  * (default regardless)
2473
2547
  * if true show only the templates
@@ -2520,7 +2594,7 @@ export type ListScriptsData = {
2520
2594
  perPage?: number;
2521
2595
  /**
2522
2596
  * (default false)
2523
- * show also the archived files.
2597
+ * show only the archived files.
2524
2598
  * when multiple archived hash share the same path, only the ones with the latest create_at
2525
2599
  * are
2526
2600
  * ed.
@@ -2533,6 +2607,12 @@ export type ListScriptsData = {
2533
2607
  *
2534
2608
  */
2535
2609
  starredOnly?: boolean;
2610
+ /**
2611
+ * (default false)
2612
+ * include deployment message
2613
+ *
2614
+ */
2615
+ withDeploymentMsg?: boolean;
2536
2616
  workspace: string;
2537
2617
  };
2538
2618
  export type ListScriptsResponse = Array<Script>;
@@ -3381,6 +3461,10 @@ export type ListJobsData = {
3381
3461
  * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
3382
3462
  */
3383
3463
  createdOrStartedAfter?: string;
3464
+ /**
3465
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
3466
+ */
3467
+ createdOrStartedAfterCompletedJobs?: string;
3384
3468
  /**
3385
3469
  * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
3386
3470
  */
@@ -3485,6 +3569,11 @@ export type GetJobLogsData = {
3485
3569
  workspace: string;
3486
3570
  };
3487
3571
  export type GetJobLogsResponse = string;
3572
+ export type GetJobArgsData = {
3573
+ id: string;
3574
+ workspace: string;
3575
+ };
3576
+ export type GetJobArgsResponse = unknown;
3488
3577
  export type GetJobUpdatesData = {
3489
3578
  id: string;
3490
3579
  logOffset?: number;
@@ -3690,6 +3779,10 @@ export type ListExtendedJobsData = {
3690
3779
  * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
3691
3780
  */
3692
3781
  createdOrStartedAfter?: string;
3782
+ /**
3783
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
3784
+ */
3785
+ createdOrStartedAfterCompletedJobs?: string;
3693
3786
  /**
3694
3787
  * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
3695
3788
  */
@@ -4271,6 +4364,8 @@ export type GetInputHistoryData = {
4271
4364
  };
4272
4365
  export type GetInputHistoryResponse = Array<Input>;
4273
4366
  export type GetArgsFromHistoryOrSavedInputData = {
4367
+ allowLarge?: boolean;
4368
+ input?: boolean;
4274
4369
  jobOrInputId: string;
4275
4370
  workspace: string;
4276
4371
  };
@@ -4518,6 +4613,22 @@ export type GetConcurrencyKeyData = {
4518
4613
  id: string;
4519
4614
  };
4520
4615
  export type GetConcurrencyKeyResponse = string;
4616
+ export type SearchJobsIndexData = {
4617
+ searchQuery: string;
4618
+ workspace: string;
4619
+ };
4620
+ export type SearchJobsIndexResponse = {
4621
+ /**
4622
+ * a list of the terms that couldn't be parsed (and thus ignored)
4623
+ */
4624
+ query_parse_errors?: Array<{
4625
+ dancer?: string;
4626
+ }>;
4627
+ /**
4628
+ * the jobs that matched the query
4629
+ */
4630
+ hits?: Array<JobSearchHit>;
4631
+ };
4521
4632
  export type $OpenApiTs = {
4522
4633
  '/version': {
4523
4634
  get: {
@@ -4588,10 +4699,18 @@ export type $OpenApiTs = {
4588
4699
  * filter on created before (exclusive) timestamp
4589
4700
  */
4590
4701
  before?: string;
4702
+ /**
4703
+ * comma separated list of operations to exclude
4704
+ */
4705
+ excludeOperations?: string;
4591
4706
  /**
4592
4707
  * filter on exact or prefix name of operation
4593
4708
  */
4594
4709
  operation?: string;
4710
+ /**
4711
+ * comma separated list of exact operations to include
4712
+ */
4713
+ operations?: string;
4595
4714
  /**
4596
4715
  * which page to return (start at 1, default 1)
4597
4716
  */
@@ -6751,6 +6870,12 @@ export type $OpenApiTs = {
6751
6870
  * mask to filter exact matching user creator
6752
6871
  */
6753
6872
  createdBy?: string;
6873
+ /**
6874
+ * (default false)
6875
+ * include items that have no deployed version
6876
+ *
6877
+ */
6878
+ includeDraftOnly?: boolean;
6754
6879
  /**
6755
6880
  * order by desc order (default true)
6756
6881
  */
@@ -6773,7 +6898,7 @@ export type $OpenApiTs = {
6773
6898
  perPage?: number;
6774
6899
  /**
6775
6900
  * (default false)
6776
- * show also the archived files.
6901
+ * show only the archived files.
6777
6902
  * when multiple archived hash share the same path, only the ones with the latest create_at
6778
6903
  * are displayed.
6779
6904
  *
@@ -6785,6 +6910,12 @@ export type $OpenApiTs = {
6785
6910
  *
6786
6911
  */
6787
6912
  starredOnly?: boolean;
6913
+ /**
6914
+ * (default false)
6915
+ * include deployment message
6916
+ *
6917
+ */
6918
+ withDeploymentMsg?: boolean;
6788
6919
  workspace: string;
6789
6920
  };
6790
6921
  res: {
@@ -6798,6 +6929,56 @@ export type $OpenApiTs = {
6798
6929
  };
6799
6930
  };
6800
6931
  };
6932
+ '/w/{workspace}/flows/history/p/{path}': {
6933
+ get: {
6934
+ req: {
6935
+ path: string;
6936
+ workspace: string;
6937
+ };
6938
+ res: {
6939
+ /**
6940
+ * Flow history
6941
+ */
6942
+ 200: Array<FlowVersion>;
6943
+ };
6944
+ };
6945
+ };
6946
+ '/w/{workspace}/flows/get/v/{version}/p/{path}': {
6947
+ get: {
6948
+ req: {
6949
+ path: string;
6950
+ version: number;
6951
+ workspace: string;
6952
+ };
6953
+ res: {
6954
+ /**
6955
+ * flow details
6956
+ */
6957
+ 200: Flow;
6958
+ };
6959
+ };
6960
+ };
6961
+ '/w/{workspace}/flows/history_update/v/{version}/p/{path}': {
6962
+ post: {
6963
+ req: {
6964
+ path: string;
6965
+ /**
6966
+ * Flow deployment message
6967
+ */
6968
+ requestBody: {
6969
+ deployment_msg: string;
6970
+ };
6971
+ version: number;
6972
+ workspace: string;
6973
+ };
6974
+ res: {
6975
+ /**
6976
+ * success
6977
+ */
6978
+ 200: string;
6979
+ };
6980
+ };
6981
+ };
6801
6982
  '/w/{workspace}/flows/get/{path}': {
6802
6983
  get: {
6803
6984
  req: {
@@ -7018,6 +7199,12 @@ export type $OpenApiTs = {
7018
7199
  * mask to filter exact matching user creator
7019
7200
  */
7020
7201
  createdBy?: string;
7202
+ /**
7203
+ * (default false)
7204
+ * include items that have no deployed version
7205
+ *
7206
+ */
7207
+ includeDraftOnly?: boolean;
7021
7208
  /**
7022
7209
  * order by desc order (default true)
7023
7210
  */
@@ -7044,6 +7231,12 @@ export type $OpenApiTs = {
7044
7231
  *
7045
7232
  */
7046
7233
  starredOnly?: boolean;
7234
+ /**
7235
+ * (default false)
7236
+ * include deployment message
7237
+ *
7238
+ */
7239
+ withDeploymentMsg?: boolean;
7047
7240
  workspace: string;
7048
7241
  };
7049
7242
  res: {
@@ -7417,10 +7610,16 @@ export type $OpenApiTs = {
7417
7610
  firstParentHash?: string;
7418
7611
  /**
7419
7612
  * (default false)
7420
- * hide the scripts without an exported main function
7613
+ * include scripts that have no deployed version
7421
7614
  *
7422
7615
  */
7423
- hideWithoutMain?: boolean;
7616
+ includeDraftOnly?: boolean;
7617
+ /**
7618
+ * (default false)
7619
+ * include scripts without an exported main function
7620
+ *
7621
+ */
7622
+ includeWithoutMain?: boolean;
7424
7623
  /**
7425
7624
  * (default regardless)
7426
7625
  * if true show only the templates
@@ -7473,7 +7672,7 @@ export type $OpenApiTs = {
7473
7672
  perPage?: number;
7474
7673
  /**
7475
7674
  * (default false)
7476
- * show also the archived files.
7675
+ * show only the archived files.
7477
7676
  * when multiple archived hash share the same path, only the ones with the latest create_at
7478
7677
  * are
7479
7678
  * ed.
@@ -7486,6 +7685,12 @@ export type $OpenApiTs = {
7486
7685
  *
7487
7686
  */
7488
7687
  starredOnly?: boolean;
7688
+ /**
7689
+ * (default false)
7690
+ * include deployment message
7691
+ *
7692
+ */
7693
+ withDeploymentMsg?: boolean;
7489
7694
  workspace: string;
7490
7695
  };
7491
7696
  res: {
@@ -8746,6 +8951,10 @@ export type $OpenApiTs = {
8746
8951
  * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
8747
8952
  */
8748
8953
  createdOrStartedAfter?: string;
8954
+ /**
8955
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
8956
+ */
8957
+ createdOrStartedAfterCompletedJobs?: string;
8749
8958
  /**
8750
8959
  * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
8751
8960
  */
@@ -8893,6 +9102,20 @@ export type $OpenApiTs = {
8893
9102
  };
8894
9103
  };
8895
9104
  };
9105
+ '/w/{workspace}/jobs_u/get_args/{id}': {
9106
+ get: {
9107
+ req: {
9108
+ id: string;
9109
+ workspace: string;
9110
+ };
9111
+ res: {
9112
+ /**
9113
+ * job args
9114
+ */
9115
+ 200: unknown;
9116
+ };
9117
+ };
9118
+ };
8896
9119
  '/w/{workspace}/jobs_u/getupdate/{id}': {
8897
9120
  get: {
8898
9121
  req: {
@@ -9274,6 +9497,10 @@ export type $OpenApiTs = {
9274
9497
  * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp
9275
9498
  */
9276
9499
  createdOrStartedAfter?: string;
9500
+ /**
9501
+ * filter on created_at for non non started job and started_at otherwise after (exclusive) timestamp but only for the completed jobs
9502
+ */
9503
+ createdOrStartedAfterCompletedJobs?: string;
9277
9504
  /**
9278
9505
  * filter on created_at for non non started job and started_at otherwise before (inclusive) timestamp
9279
9506
  */
@@ -10341,6 +10568,8 @@ export type $OpenApiTs = {
10341
10568
  '/w/{workspace}/inputs/{jobOrInputId}/args': {
10342
10569
  get: {
10343
10570
  req: {
10571
+ allowLarge?: boolean;
10572
+ input?: boolean;
10344
10573
  jobOrInputId: string;
10345
10574
  workspace: string;
10346
10575
  };
@@ -10811,4 +11040,29 @@ export type $OpenApiTs = {
10811
11040
  };
10812
11041
  };
10813
11042
  };
11043
+ '/srch/w/{workspace}/index/search/job': {
11044
+ get: {
11045
+ req: {
11046
+ searchQuery: string;
11047
+ workspace: string;
11048
+ };
11049
+ res: {
11050
+ /**
11051
+ * search results
11052
+ */
11053
+ 200: {
11054
+ /**
11055
+ * a list of the terms that couldn't be parsed (and thus ignored)
11056
+ */
11057
+ query_parse_errors?: Array<{
11058
+ dancer?: string;
11059
+ }>;
11060
+ /**
11061
+ * the jobs that matched the query
11062
+ */
11063
+ hits?: Array<JobSearchHit>;
11064
+ };
11065
+ };
11066
+ };
11067
+ };
10814
11068
  };
@@ -76,6 +76,10 @@ export function argSigToJsonSchemaType(t, oldS) {
76
76
  newS.originalType = 'enum';
77
77
  newS.enum = t.str;
78
78
  }
79
+ else if (oldS.originalType == 'string' && oldS.enum) {
80
+ newS.originalType = 'string';
81
+ newS.enum = oldS.enum;
82
+ }
79
83
  else {
80
84
  newS.originalType = 'string';
81
85
  newS.enum = undefined;
@@ -26,9 +26,9 @@ export declare const FETCH_INIT_CODE = "export async function main(\n\turl: stri
26
26
  export declare const BASH_INIT_CODE = "# shellcheck shell=bash\n# arguments of the form X=\"$I\" are parsed as parameters X of type string\nmsg=\"$1\"\ndflt=\"${2:-default value}\"\n\n# the last line of the stdout is the return value\n# unless you write json to './result.json' or a string to './result.out'\necho \"Hello $msg\"\n";
27
27
  export declare const DENO_INIT_CODE_TRIGGER: string;
28
28
  export declare const GO_INIT_CODE_TRIGGER = "package inner\n\nimport (\n\twmill \"github.com/windmill-labs/windmill-go-client\"\n)\n\nfunc main() (interface{}, error) {\n\n\t// A common trigger script would follow this pattern:\n\t// 1. Get the last saved state\n\tstate, _ := wmill.GetState()\n\t// 2. Get the actual state from the external service\n\t// newState := ...\n\t// 3. Compare the two states and update the internal state\n\twmill.SetState(4)\n\t// 4. Return the new rows\n\n\treturn state, nil\n\n\t// In subsequent scripts, you may refer to each row/value returned by the trigger script using\n\t// 'flow_input.iter.value'\n}\n";
29
- export declare const DENO_INIT_CODE_APPROVAL = "import * as wmill from \"npm:windmill-client@^1.158.2\"\n\nexport async function main(approver?: string) {\n const urls = await wmill.getResumeUrls(approver)\n // send the urls to their intended recipients\n\n\n // if the resumeUrls are part of the response, they will be available to any persons having access\n // to the run page and allowed to be approved from there, even from non owners of the flow\n // self-approval is disablable in the suspend options\n return {\n\t ...urls,\n\t default_args: {},\n\t enums: {},\n\t description: undefined\n }\n}";
30
- export declare const BUN_INIT_CODE_APPROVAL = "import * as wmill from \"windmill-client@^1.158.2\"\n\nexport async function main(approver?: string) {\n const urls = await wmill.getResumeUrls(approver)\n // send the urls to their intended recipients\n\n\n // if the resumeUrls are part of the response, they will be available to any persons having access\n // to the run page and allowed to be approved from there, even from non owners of the flow\n // self-approval is disablable in the suspend options\n return {\n \t...urls,\n\t\tdefault_args: {},\n\t\tenums: {},\n\t\tdescription: undefined\n\t\t// supports all formats from rich display rendering such as simple strings,\n\t\t// but also markdown, html, images, tables, maps, render_all, etc...\n\t\t// https://www.windmill.dev/docs/core_concepts/rich_display_rendering\n }\n}";
31
- export declare const PYTHON_INIT_CODE_APPROVAL = "import wmill\n\ndef main():\n urls = wmill.get_resume_urls()\n # send the urls to their intended recipients\n\n # if the get_resume_urls are part of the response, they will be available to any persons having access\n # to the run page and allowed to be approved from there, even from non owners of the flow\n # self-approval is disablable in the suspend options\n return { \n **urls, \n \"default_args\": {}, \n \"enums\": {}, \n \"description\": None,\n # supports all formats from rich display rendering such as simple strings,\n # but also markdown, html, images, tables, maps, render_all, etc...\n # https://www.windmill.dev/docs/core_concepts/rich_display_rendering\n }\n";
29
+ export declare const DENO_INIT_CODE_APPROVAL = "import * as wmill from \"npm:windmill-client@^1.158.2\"\n\nexport async function main(approver?: string) {\n const urls = await wmill.getResumeUrls(approver)\n // send the urls to their intended recipients\n\n return {\n // if the resumeUrls are part of the response, they will be available to any persons having access\n // to the run page and allowed to be approved from there, even from non owners of the flow\n // self-approval is disableable in the suspend options\n \t...urls,\n\n // to have prompts (self-approvable steps), clude instead the resume url in the returned payload of the step\n // the UX will automatically adapt and show the prompt to the operator when running the flow. e.g:\n // resume: urls['resume'],\n\n\t\tdefault_args: {},\n\t\tenums: {},\n\t\tdescription: undefined\n\t\t// supports all formats from rich display rendering such as simple strings,\n\t\t// but also markdown, html, images, tables, maps, render_all, etc...\n\t\t// https://www.windmill.dev/docs/core_concepts/rich_display_rendering\n }\n}\n\n// add a form in Advanced - Suspend\n// all on approval steps: https://www.windmill.dev/docs/flows/flow_approval";
30
+ export declare const BUN_INIT_CODE_APPROVAL = "import * as wmill from \"windmill-client@^1.158.2\"\n\nexport async function main(approver?: string) {\n const urls = await wmill.getResumeUrls(approver)\n // send the urls to their intended recipients\n\n return {\n // if the resumeUrls are part of the response, they will be available to any persons having access\n // to the run page and allowed to be approved from there, even from non owners of the flow\n // self-approval is disableable in the suspend options\n \t...urls,\n\n // to have prompts (self-approvable steps), clude instead the resume url in the returned payload of the step\n // the UX will automatically adapt and show the prompt to the operator when running the flow. e.g:\n // resume: urls['resume'],\n\n\t\tdefault_args: {},\n\t\tenums: {},\n\t\tdescription: undefined\n\t\t// supports all formats from rich display rendering such as simple strings,\n\t\t// but also markdown, html, images, tables, maps, render_all, etc...\n\t\t// https://www.windmill.dev/docs/core_concepts/rich_display_rendering\n }\n}\n\n// add a form in Advanced - Suspend\n// all on approval steps: https://www.windmill.dev/docs/flows/flow_approval";
31
+ export declare const PYTHON_INIT_CODE_APPROVAL = "import wmill\n\ndef main():\n urls = wmill.get_resume_urls()\n # send the urls to their intended recipients\n\n return {\n # if the get_resume_urls are part of the response, they will be available to any persons having access\n # to the run page and allowed to be approved from there, even from non owners of the flow\n # self-approval is disableable in the suspend options\n **urls,\n\n # to have prompts (self-approvable steps), clude instead the resume url in the returned payload of the step\n # the UX will automatically adapt and show the prompt to the operator when running the flow. e.g:\n # \"resume\": urls[\"resume\"],\n\n \"default_args\": {},\n \"enums\": {},\n \"description\": None,\n # supports all formats from rich display rendering such as simple strings,\n # but also markdown, html, images, tables, maps, render_all, etc...\n # https://www.windmill.dev/docs/core_concepts/rich_display_rendering\n }\n\n# add a form in Advanced - Suspend\n# all on approval steps: https://www.windmill.dev/docs/flows/flow_approval";
32
32
  export declare const DOCKER_INIT_CODE = "# shellcheck shell=bash\n# Bash script that calls docker as a client to the host daemon\n# See documentation: https://www.windmill.dev/docs/advanced/docker\nmsg=\"${1:-world}\"\n\nIMAGE=\"alpine:latest\"\nCOMMAND=\"/bin/echo Hello $msg\"\n\n# ensure that the image is up-to-date\ndocker pull $IMAGE\ndocker run --rm $IMAGE $COMMAND\n";
33
33
  export declare const POWERSHELL_INIT_CODE = "param($Msg, $Dflt = \"default value\", [int]$Nb = 3)\n\n# Import-Module MyModule\n\n# Import-Module WindmillClient\n# Connect-Windmill\n# Get-WindmillVariable -Path 'u/user/foo'\n\n# the last line of the stdout is the return value\nWrite-Output \"Hello $Msg\"";
34
34
  export declare function isInitialCode(content: string): boolean;
@@ -272,29 +272,43 @@ export async function main(approver?: string) {
272
272
  const urls = await wmill.getResumeUrls(approver)
273
273
  // send the urls to their intended recipients
274
274
 
275
-
276
- // if the resumeUrls are part of the response, they will be available to any persons having access
277
- // to the run page and allowed to be approved from there, even from non owners of the flow
278
- // self-approval is disablable in the suspend options
279
275
  return {
280
- ...urls,
281
- default_args: {},
282
- enums: {},
283
- description: undefined
276
+ // if the resumeUrls are part of the response, they will be available to any persons having access
277
+ // to the run page and allowed to be approved from there, even from non owners of the flow
278
+ // self-approval is disableable in the suspend options
279
+ ...urls,
280
+
281
+ // to have prompts (self-approvable steps), clude instead the resume url in the returned payload of the step
282
+ // the UX will automatically adapt and show the prompt to the operator when running the flow. e.g:
283
+ // resume: urls['resume'],
284
+
285
+ default_args: {},
286
+ enums: {},
287
+ description: undefined
288
+ // supports all formats from rich display rendering such as simple strings,
289
+ // but also markdown, html, images, tables, maps, render_all, etc...
290
+ // https://www.windmill.dev/docs/core_concepts/rich_display_rendering
284
291
  }
285
- }`;
292
+ }
293
+
294
+ // add a form in Advanced - Suspend
295
+ // all on approval steps: https://www.windmill.dev/docs/flows/flow_approval`;
286
296
  export const BUN_INIT_CODE_APPROVAL = `import * as wmill from "windmill-client@^1.158.2"
287
297
 
288
298
  export async function main(approver?: string) {
289
299
  const urls = await wmill.getResumeUrls(approver)
290
300
  // send the urls to their intended recipients
291
301
 
292
-
293
- // if the resumeUrls are part of the response, they will be available to any persons having access
294
- // to the run page and allowed to be approved from there, even from non owners of the flow
295
- // self-approval is disablable in the suspend options
296
302
  return {
303
+ // if the resumeUrls are part of the response, they will be available to any persons having access
304
+ // to the run page and allowed to be approved from there, even from non owners of the flow
305
+ // self-approval is disableable in the suspend options
297
306
  ...urls,
307
+
308
+ // to have prompts (self-approvable steps), clude instead the resume url in the returned payload of the step
309
+ // the UX will automatically adapt and show the prompt to the operator when running the flow. e.g:
310
+ // resume: urls['resume'],
311
+
298
312
  default_args: {},
299
313
  enums: {},
300
314
  description: undefined
@@ -302,26 +316,36 @@ export async function main(approver?: string) {
302
316
  // but also markdown, html, images, tables, maps, render_all, etc...
303
317
  // https://www.windmill.dev/docs/core_concepts/rich_display_rendering
304
318
  }
305
- }`;
319
+ }
320
+
321
+ // add a form in Advanced - Suspend
322
+ // all on approval steps: https://www.windmill.dev/docs/flows/flow_approval`;
306
323
  export const PYTHON_INIT_CODE_APPROVAL = `import wmill
307
324
 
308
325
  def main():
309
326
  urls = wmill.get_resume_urls()
310
327
  # send the urls to their intended recipients
311
328
 
312
- # if the get_resume_urls are part of the response, they will be available to any persons having access
313
- # to the run page and allowed to be approved from there, even from non owners of the flow
314
- # self-approval is disablable in the suspend options
315
- return {
316
- **urls,
317
- "default_args": {},
318
- "enums": {},
329
+ return {
330
+ # if the get_resume_urls are part of the response, they will be available to any persons having access
331
+ # to the run page and allowed to be approved from there, even from non owners of the flow
332
+ # self-approval is disableable in the suspend options
333
+ **urls,
334
+
335
+ # to have prompts (self-approvable steps), clude instead the resume url in the returned payload of the step
336
+ # the UX will automatically adapt and show the prompt to the operator when running the flow. e.g:
337
+ # "resume": urls["resume"],
338
+
339
+ "default_args": {},
340
+ "enums": {},
319
341
  "description": None,
320
342
  # supports all formats from rich display rendering such as simple strings,
321
343
  # but also markdown, html, images, tables, maps, render_all, etc...
322
344
  # https://www.windmill.dev/docs/core_concepts/rich_display_rendering
323
345
  }
324
- `;
346
+
347
+ # add a form in Advanced - Suspend
348
+ # all on approval steps: https://www.windmill.dev/docs/flows/flow_approval`;
325
349
  export const DOCKER_INIT_CODE = `# shellcheck shell=bash
326
350
  # Bash script that calls docker as a client to the host daemon
327
351
  # See documentation: https://www.windmill.dev/docs/advanced/docker
@@ -21,7 +21,7 @@ export declare const enterpriseLicense: import("svelte/store").Writable<string |
21
21
  export declare const workerTags: import("svelte/store").Writable<string[] | undefined>;
22
22
  export declare const usageStore: import("svelte/store").Writable<number>;
23
23
  export declare const workspaceUsageStore: import("svelte/store").Writable<number>;
24
- export declare const runFormStore: import("svelte/store").Writable<any>;
24
+ export declare const initialArgsStore: import("svelte/store").Writable<any>;
25
25
  export declare const oauthStore: import("svelte/store").Writable<TokenResponse | undefined>;
26
26
  export declare const userStore: import("svelte/store").Writable<UserExt | undefined>;
27
27
  export declare const workspaceStore: import("svelte/store").Writable<string | undefined>;