windmill-components 1.22.42 → 1.28.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.
Files changed (248) hide show
  1. package/components/AppConnect.svelte +93 -47
  2. package/components/AppConnect.svelte.d.ts +2 -2
  3. package/components/ArgInfo.svelte +0 -5
  4. package/components/ArgInput.svelte +91 -64
  5. package/components/ArgInput.svelte.d.ts +8 -3
  6. package/components/Button.svelte +4 -4
  7. package/components/CenteredPage.svelte +1 -1
  8. package/components/CollapseLink.svelte +12 -0
  9. package/components/CollapseLink.svelte.d.ts +19 -0
  10. package/components/CronInput.svelte +84 -0
  11. package/components/CronInput.svelte.d.ts +18 -0
  12. package/components/DisplayResult.svelte +23 -7
  13. package/components/Editor.svelte +136 -66
  14. package/components/Editor.svelte.d.ts +2 -0
  15. package/components/EditorBar.svelte +56 -45
  16. package/components/FlowBuilder.svelte +150 -71
  17. package/components/FlowEditor.svelte +75 -200
  18. package/components/FlowEditor.svelte.d.ts +3 -2
  19. package/components/FlowJobResult.svelte +1 -1
  20. package/components/FlowPreview.svelte +18 -24
  21. package/components/FlowPreviewContent.svelte +68 -0
  22. package/components/FlowPreviewContent.svelte.d.ts +21 -0
  23. package/components/FlowStatusViewer.svelte +85 -37
  24. package/components/FlowStatusViewer.svelte.d.ts +3 -2
  25. package/components/FlowViewer.svelte +77 -45
  26. package/components/FlowViewer.svelte.d.ts +1 -1
  27. package/components/IconedResourceType.svelte +30 -5
  28. package/components/InputTransformForm.svelte +209 -0
  29. package/components/InputTransformForm.svelte.d.ts +26 -0
  30. package/components/InviteGlobalUser.svelte +2 -2
  31. package/components/InviteUser.svelte +2 -2
  32. package/components/JobStatus.svelte +32 -25
  33. package/components/Modal.svelte +44 -42
  34. package/components/ModuleStep.svelte +94 -79
  35. package/components/ObjectResourceInput.svelte +58 -38
  36. package/components/ObjectTypeNarrowing.svelte +4 -19
  37. package/components/Path.svelte +1 -0
  38. package/components/Path.svelte.d.ts +1 -1
  39. package/components/RadioButton.svelte +11 -96
  40. package/components/RadioButton.svelte.d.ts +4 -2
  41. package/components/ResourceEditor.svelte +4 -5
  42. package/components/ResourceEditor.svelte.d.ts +2 -2
  43. package/components/ResourcePicker.svelte +25 -2
  44. package/components/ResourcePicker.svelte.d.ts +3 -0
  45. package/components/ResourceTypePicker.svelte +17 -29
  46. package/components/ResourceTypePicker.svelte.d.ts +1 -0
  47. package/components/RunForm.svelte +14 -15
  48. package/components/RunForm.svelte.d.ts +1 -1
  49. package/components/SchemaEditor.svelte +87 -71
  50. package/components/SchemaEditor.svelte.d.ts +2 -0
  51. package/components/SchemaEditorProperty.svelte +11 -0
  52. package/components/SchemaEditorProperty.svelte.d.ts +17 -0
  53. package/components/SchemaForm.svelte +21 -127
  54. package/components/SchemaForm.svelte.d.ts +3 -4
  55. package/components/SchemaModal.svelte +20 -33
  56. package/components/SchemaModal.svelte.d.ts +1 -1
  57. package/components/SchemaViewer.svelte +4 -6
  58. package/components/ScriptBuilder.svelte +40 -43
  59. package/components/ScriptEditor.svelte +71 -66
  60. package/components/ScriptPicker.svelte +10 -12
  61. package/components/ScriptPicker.svelte.d.ts +1 -1
  62. package/components/ScriptSchema.svelte +0 -5
  63. package/components/ShareModal.svelte +1 -1
  64. package/components/SharedBadge.svelte +12 -10
  65. package/components/StringTypeNarrowing.svelte +8 -4
  66. package/components/StringTypeNarrowing.svelte.d.ts +1 -0
  67. package/components/TableCustom.svelte +7 -9
  68. package/components/TableSimple.svelte +1 -1
  69. package/components/Toggle.svelte +8 -10
  70. package/components/Toggle.svelte.d.ts +5 -11
  71. package/components/Tooltip.svelte +3 -2
  72. package/components/VariableEditor.svelte +21 -6
  73. package/components/flows/CopyFirstStepSchema.svelte +7 -5
  74. package/components/flows/DynamicInputHelpBox.svelte +1 -1
  75. package/components/flows/FlowBox.svelte +3 -0
  76. package/components/flows/FlowBox.svelte.d.ts +23 -0
  77. package/components/flows/FlowBoxHeader.svelte +9 -0
  78. package/components/flows/FlowBoxHeader.svelte.d.ts +18 -0
  79. package/components/flows/FlowInput.svelte +20 -0
  80. package/components/flows/FlowInput.svelte.d.ts +14 -0
  81. package/components/flows/FlowInputs.svelte +7 -3
  82. package/components/flows/FlowModuleHeader.svelte +42 -40
  83. package/components/flows/FlowModuleHeader.svelte.d.ts +1 -1
  84. package/components/flows/FlowSettings.svelte +174 -0
  85. package/components/flows/FlowSettings.svelte.d.ts +21 -0
  86. package/components/flows/flowStore.d.ts +5 -2
  87. package/components/flows/flowStore.js +65 -9
  88. package/components/flows/pickers/FlowScriptPicker.svelte +6 -1
  89. package/components/flows/pickers/FlowScriptPicker.svelte.d.ts +1 -0
  90. package/components/flows/utils.d.ts +11 -7
  91. package/components/flows/utils.js +104 -43
  92. package/components/icons/AirtableIcon.svelte +17 -0
  93. package/components/icons/AirtableIcon.svelte.d.ts +17 -0
  94. package/components/icons/GCloudIcon.svelte +16 -0
  95. package/components/icons/GCloudIcon.svelte.d.ts +17 -0
  96. package/components/icons/GItlabIcon.svelte +16 -0
  97. package/components/icons/GItlabIcon.svelte.d.ts +17 -0
  98. package/components/icons/GSheetsIcon.svelte +16 -0
  99. package/components/icons/GSheetsIcon.svelte.d.ts +17 -0
  100. package/components/icons/GcalIcon.svelte +16 -0
  101. package/components/icons/GcalIcon.svelte.d.ts +17 -0
  102. package/components/icons/GdriveIcon.svelte +16 -0
  103. package/components/icons/GdriveIcon.svelte.d.ts +17 -0
  104. package/components/icons/GmailIcon.svelte +16 -0
  105. package/components/icons/GmailIcon.svelte.d.ts +17 -0
  106. package/components/icons/PostgresIcon.svelte +8 -49
  107. package/components/icons/Slack.svelte +9 -18
  108. package/components/icons/TogglIcon.svelte +59 -0
  109. package/components/icons/TogglIcon.svelte.d.ts +17 -0
  110. package/components/propertyPicker/ObjectViewer.svelte +35 -37
  111. package/components/propertyPicker/ObjectViewer.svelte.d.ts +1 -0
  112. package/components/propertyPicker/OverlayPropertyPicker.svelte +53 -53
  113. package/components/propertyPicker/OverlayPropertyPicker.svelte.d.ts +5 -2
  114. package/components/propertyPicker/PropPicker.svelte +13 -15
  115. package/components/propertyPicker/PropPicker.svelte.d.ts +1 -1
  116. package/components/propertyPicker/WarningMessage.svelte +14 -41
  117. package/components/propertyPicker/WarningMessage.svelte.d.ts +11 -8
  118. package/components/propertyPicker/utils.d.ts +1 -0
  119. package/components/propertyPicker/utils.js +25 -0
  120. package/gen/core/OpenAPI.js +1 -1
  121. package/gen/index.d.ts +11 -2
  122. package/gen/index.js +1 -2
  123. package/gen/models/CompletedJob.d.ts +1 -1
  124. package/gen/models/Flow.d.ts +3 -13
  125. package/gen/models/FlowMetadata.d.ts +9 -0
  126. package/gen/models/FlowMetadata.js +4 -0
  127. package/gen/models/FlowModuleValue.d.ts +5 -22
  128. package/gen/models/FlowModuleValue.js +1 -15
  129. package/gen/models/ForloopFlow.d.ts +8 -0
  130. package/gen/models/ForloopFlow.js +4 -0
  131. package/gen/models/InputTransform.d.ts +3 -12
  132. package/gen/models/InputTransform.js +1 -8
  133. package/gen/models/JavascriptTransform.d.ts +4 -0
  134. package/gen/models/JavascriptTransform.js +4 -0
  135. package/gen/models/MainArgSignature.d.ts +1 -1
  136. package/gen/models/NewSchedule.d.ts +1 -0
  137. package/gen/models/OpenFlowWPath.d.ts +4 -0
  138. package/gen/models/OpenFlowWPath.js +4 -0
  139. package/gen/models/PathFlow.d.ts +4 -0
  140. package/gen/models/PathFlow.js +4 -0
  141. package/gen/models/PathScript.d.ts +4 -0
  142. package/gen/models/PathScript.js +4 -0
  143. package/gen/models/RawScript.d.ts +12 -0
  144. package/gen/models/RawScript.js +11 -0
  145. package/gen/models/Schedule.d.ts +1 -1
  146. package/gen/models/StaticTransform.d.ts +4 -0
  147. package/gen/models/StaticTransform.js +4 -0
  148. package/gen/models/TokenResponse.d.ts +3 -3
  149. package/gen/models/Usage.d.ts +5 -0
  150. package/gen/models/Usage.js +4 -0
  151. package/gen/models/User.d.ts +2 -0
  152. package/gen/schemas/$AuditLog.d.ts +32 -0
  153. package/gen/schemas/$AuditLog.js +35 -0
  154. package/gen/schemas/$CompletedJob.d.ts +98 -0
  155. package/gen/schemas/$CompletedJob.js +103 -0
  156. package/gen/schemas/$ContextualVariable.d.ts +16 -0
  157. package/gen/schemas/$ContextualVariable.js +19 -0
  158. package/gen/schemas/$CreateResource.d.ts +22 -0
  159. package/gen/schemas/$CreateResource.js +25 -0
  160. package/gen/schemas/$CreateVariable.d.ts +26 -0
  161. package/gen/schemas/$CreateVariable.js +29 -0
  162. package/gen/schemas/$CreateWorkspace.d.ts +20 -0
  163. package/gen/schemas/$CreateWorkspace.js +23 -0
  164. package/gen/schemas/$EditResource.d.ts +13 -0
  165. package/gen/schemas/$EditResource.js +16 -0
  166. package/gen/schemas/$EditResourceType.d.ts +10 -0
  167. package/gen/schemas/$EditResourceType.js +13 -0
  168. package/gen/schemas/$EditSchedule.d.ts +20 -0
  169. package/gen/schemas/$EditSchedule.js +23 -0
  170. package/gen/schemas/$EditVariable.d.ts +16 -0
  171. package/gen/schemas/$EditVariable.js +19 -0
  172. package/gen/schemas/$EditWorkspaceUser.d.ts +7 -0
  173. package/gen/schemas/$EditWorkspaceUser.js +10 -0
  174. package/gen/schemas/$Flow.d.ts +23 -0
  175. package/gen/schemas/$Flow.js +26 -0
  176. package/gen/schemas/$FlowMetadata.d.ts +31 -0
  177. package/gen/schemas/$FlowMetadata.js +34 -0
  178. package/gen/schemas/$FlowPreview.d.ts +80 -0
  179. package/gen/schemas/$FlowPreview.js +83 -0
  180. package/gen/schemas/$GlobalUserInfo.d.ts +26 -0
  181. package/gen/schemas/$GlobalUserInfo.js +29 -0
  182. package/gen/schemas/$Group.d.ts +23 -0
  183. package/gen/schemas/$Group.js +26 -0
  184. package/gen/schemas/$Job.d.ts +17 -0
  185. package/gen/schemas/$Job.js +20 -0
  186. package/gen/schemas/$ListableVariable.d.ts +35 -0
  187. package/gen/schemas/$ListableVariable.js +38 -0
  188. package/gen/schemas/$Login.d.ts +12 -0
  189. package/gen/schemas/$Login.js +15 -0
  190. package/gen/schemas/$MainArgSignature.d.ts +50 -0
  191. package/gen/schemas/$MainArgSignature.js +53 -0
  192. package/gen/schemas/$NewSchedule.d.ts +30 -0
  193. package/gen/schemas/$NewSchedule.js +33 -0
  194. package/gen/schemas/$NewToken.d.ts +11 -0
  195. package/gen/schemas/$NewToken.js +14 -0
  196. package/gen/schemas/$NewUser.d.ts +16 -0
  197. package/gen/schemas/$NewUser.js +19 -0
  198. package/gen/schemas/$Preview.d.ts +19 -0
  199. package/gen/schemas/$Preview.js +22 -0
  200. package/gen/schemas/$QueuedJob.d.ts +139 -0
  201. package/gen/schemas/$QueuedJob.js +144 -0
  202. package/gen/schemas/$Resource.d.ts +31 -0
  203. package/gen/schemas/$Resource.js +34 -0
  204. package/gen/schemas/$ResourceType.d.ts +17 -0
  205. package/gen/schemas/$ResourceType.js +20 -0
  206. package/gen/schemas/$Schedule.d.ts +47 -0
  207. package/gen/schemas/$Schedule.js +50 -0
  208. package/gen/schemas/$Script.d.ts +77 -0
  209. package/gen/schemas/$Script.js +80 -0
  210. package/gen/schemas/$ScriptArgs.d.ts +6 -0
  211. package/gen/schemas/$ScriptArgs.js +9 -0
  212. package/gen/schemas/$SlackToken.d.ts +24 -0
  213. package/gen/schemas/$SlackToken.js +27 -0
  214. package/gen/schemas/$TokenResponse.d.ts +23 -0
  215. package/gen/schemas/$TokenResponse.js +26 -0
  216. package/gen/schemas/$TruncatedToken.d.ts +25 -0
  217. package/gen/schemas/$TruncatedToken.js +28 -0
  218. package/gen/schemas/$Usage.d.ts +13 -0
  219. package/gen/schemas/$Usage.js +16 -0
  220. package/gen/schemas/$User.d.ts +42 -0
  221. package/gen/schemas/$User.js +45 -0
  222. package/gen/schemas/$UserWorkspaceList.d.ts +28 -0
  223. package/gen/schemas/$UserWorkspaceList.js +31 -0
  224. package/gen/schemas/$WorkerPing.d.ts +31 -0
  225. package/gen/schemas/$WorkerPing.js +34 -0
  226. package/gen/schemas/$Workspace.d.ts +19 -0
  227. package/gen/schemas/$Workspace.js +22 -0
  228. package/gen/schemas/$WorkspaceInvite.d.ts +16 -0
  229. package/gen/schemas/$WorkspaceInvite.js +19 -0
  230. package/gen/services/FlowService.d.ts +24 -23
  231. package/gen/services/FlowService.js +14 -0
  232. package/gen/services/JobService.d.ts +1 -1
  233. package/gen/services/ScriptService.d.ts +13 -19
  234. package/gen/services/ScriptService.js +0 -14
  235. package/gen/services/WorkspaceService.d.ts +1 -1
  236. package/gen/services/WorkspaceService.js +1 -1
  237. package/infer.js +8 -1
  238. package/package.json +83 -15
  239. package/script_helpers.d.ts +1 -1
  240. package/script_helpers.js +7 -6
  241. package/sql.d.ts +89 -0
  242. package/sql.js +817 -0
  243. package/stores.d.ts +0 -1
  244. package/stores.js +0 -6
  245. package/utils.d.ts +12 -5
  246. package/utils.js +55 -9
  247. package/components/RadioButtonV2.svelte +0 -33
  248. package/components/RadioButtonV2.svelte.d.ts +0 -20
@@ -0,0 +1,27 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $SlackToken = {
5
+ properties: {
6
+ access_token: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ team_id: {
11
+ type: 'string',
12
+ isRequired: true,
13
+ },
14
+ team_name: {
15
+ type: 'string',
16
+ isRequired: true,
17
+ },
18
+ bot: {
19
+ properties: {
20
+ bot_access_token: {
21
+ type: 'string',
22
+ },
23
+ },
24
+ isRequired: true,
25
+ },
26
+ },
27
+ };
@@ -0,0 +1,23 @@
1
+ export declare const $TokenResponse: {
2
+ readonly properties: {
3
+ readonly access_token: {
4
+ readonly type: "string";
5
+ readonly isRequired: true;
6
+ };
7
+ readonly expires_in: {
8
+ readonly type: "number";
9
+ readonly isRequired: true;
10
+ };
11
+ readonly refresh_token: {
12
+ readonly type: "string";
13
+ readonly isRequired: true;
14
+ };
15
+ readonly scope: {
16
+ readonly type: "array";
17
+ readonly contains: {
18
+ readonly type: "string";
19
+ };
20
+ readonly isRequired: true;
21
+ };
22
+ };
23
+ };
@@ -0,0 +1,26 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $TokenResponse = {
5
+ properties: {
6
+ access_token: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ expires_in: {
11
+ type: 'number',
12
+ isRequired: true,
13
+ },
14
+ refresh_token: {
15
+ type: 'string',
16
+ isRequired: true,
17
+ },
18
+ scope: {
19
+ type: 'array',
20
+ contains: {
21
+ type: 'string',
22
+ },
23
+ isRequired: true,
24
+ },
25
+ },
26
+ };
@@ -0,0 +1,25 @@
1
+ export declare const $TruncatedToken: {
2
+ readonly properties: {
3
+ readonly label: {
4
+ readonly type: "string";
5
+ };
6
+ readonly expiration: {
7
+ readonly type: "string";
8
+ readonly format: "date-time";
9
+ };
10
+ readonly token_prefix: {
11
+ readonly type: "string";
12
+ readonly isRequired: true;
13
+ };
14
+ readonly created_at: {
15
+ readonly type: "string";
16
+ readonly isRequired: true;
17
+ readonly format: "date-time";
18
+ };
19
+ readonly last_used_at: {
20
+ readonly type: "string";
21
+ readonly isRequired: true;
22
+ readonly format: "date-time";
23
+ };
24
+ };
25
+ };
@@ -0,0 +1,28 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $TruncatedToken = {
5
+ properties: {
6
+ label: {
7
+ type: 'string',
8
+ },
9
+ expiration: {
10
+ type: 'string',
11
+ format: 'date-time',
12
+ },
13
+ token_prefix: {
14
+ type: 'string',
15
+ isRequired: true,
16
+ },
17
+ created_at: {
18
+ type: 'string',
19
+ isRequired: true,
20
+ format: 'date-time',
21
+ },
22
+ last_used_at: {
23
+ type: 'string',
24
+ isRequired: true,
25
+ format: 'date-time',
26
+ },
27
+ },
28
+ };
@@ -0,0 +1,13 @@
1
+ export declare const $Usage: {
2
+ readonly properties: {
3
+ readonly duration_ms: {
4
+ readonly type: "number";
5
+ };
6
+ readonly jobs: {
7
+ readonly type: "number";
8
+ };
9
+ readonly flows: {
10
+ readonly type: "number";
11
+ };
12
+ };
13
+ };
@@ -0,0 +1,16 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $Usage = {
5
+ properties: {
6
+ duration_ms: {
7
+ type: 'number',
8
+ },
9
+ jobs: {
10
+ type: 'number',
11
+ },
12
+ flows: {
13
+ type: 'number',
14
+ },
15
+ },
16
+ };
@@ -0,0 +1,42 @@
1
+ export declare const $User: {
2
+ readonly properties: {
3
+ readonly email: {
4
+ readonly type: "string";
5
+ readonly isRequired: true;
6
+ };
7
+ readonly username: {
8
+ readonly type: "string";
9
+ readonly isRequired: true;
10
+ };
11
+ readonly is_admin: {
12
+ readonly type: "boolean";
13
+ readonly isRequired: true;
14
+ };
15
+ readonly is_super_admin: {
16
+ readonly type: "boolean";
17
+ readonly isRequired: true;
18
+ };
19
+ readonly created_at: {
20
+ readonly type: "string";
21
+ readonly isRequired: true;
22
+ readonly format: "date-time";
23
+ };
24
+ readonly operator: {
25
+ readonly type: "boolean";
26
+ readonly isRequired: true;
27
+ };
28
+ readonly disabled: {
29
+ readonly type: "boolean";
30
+ readonly isRequired: true;
31
+ };
32
+ readonly groups: {
33
+ readonly type: "array";
34
+ readonly contains: {
35
+ readonly type: "string";
36
+ };
37
+ };
38
+ readonly job_duration_ms: {
39
+ readonly type: "Usage";
40
+ };
41
+ };
42
+ };
@@ -0,0 +1,45 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $User = {
5
+ properties: {
6
+ email: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ username: {
11
+ type: 'string',
12
+ isRequired: true,
13
+ },
14
+ is_admin: {
15
+ type: 'boolean',
16
+ isRequired: true,
17
+ },
18
+ is_super_admin: {
19
+ type: 'boolean',
20
+ isRequired: true,
21
+ },
22
+ created_at: {
23
+ type: 'string',
24
+ isRequired: true,
25
+ format: 'date-time',
26
+ },
27
+ operator: {
28
+ type: 'boolean',
29
+ isRequired: true,
30
+ },
31
+ disabled: {
32
+ type: 'boolean',
33
+ isRequired: true,
34
+ },
35
+ groups: {
36
+ type: 'array',
37
+ contains: {
38
+ type: 'string',
39
+ },
40
+ },
41
+ job_duration_ms: {
42
+ type: 'Usage',
43
+ },
44
+ },
45
+ };
@@ -0,0 +1,28 @@
1
+ export declare const $UserWorkspaceList: {
2
+ readonly properties: {
3
+ readonly email: {
4
+ readonly type: "string";
5
+ readonly isRequired: true;
6
+ };
7
+ readonly workspaces: {
8
+ readonly type: "array";
9
+ readonly contains: {
10
+ readonly properties: {
11
+ readonly id: {
12
+ readonly type: "string";
13
+ readonly isRequired: true;
14
+ };
15
+ readonly name: {
16
+ readonly type: "string";
17
+ readonly isRequired: true;
18
+ };
19
+ readonly username: {
20
+ readonly type: "string";
21
+ readonly isRequired: true;
22
+ };
23
+ };
24
+ };
25
+ readonly isRequired: true;
26
+ };
27
+ };
28
+ };
@@ -0,0 +1,31 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $UserWorkspaceList = {
5
+ properties: {
6
+ email: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ workspaces: {
11
+ type: 'array',
12
+ contains: {
13
+ properties: {
14
+ id: {
15
+ type: 'string',
16
+ isRequired: true,
17
+ },
18
+ name: {
19
+ type: 'string',
20
+ isRequired: true,
21
+ },
22
+ username: {
23
+ type: 'string',
24
+ isRequired: true,
25
+ },
26
+ },
27
+ },
28
+ isRequired: true,
29
+ },
30
+ },
31
+ };
@@ -0,0 +1,31 @@
1
+ export declare const $WorkerPing: {
2
+ readonly properties: {
3
+ readonly worker: {
4
+ readonly type: "string";
5
+ readonly isRequired: true;
6
+ };
7
+ readonly worker_instance: {
8
+ readonly type: "string";
9
+ readonly isRequired: true;
10
+ };
11
+ readonly ping_at: {
12
+ readonly type: "string";
13
+ readonly isRequired: true;
14
+ readonly format: "date-time";
15
+ };
16
+ readonly started_at: {
17
+ readonly type: "string";
18
+ readonly isRequired: true;
19
+ readonly format: "date-time";
20
+ };
21
+ readonly ip: {
22
+ readonly type: "string";
23
+ readonly isRequired: true;
24
+ };
25
+ readonly jobs_executed: {
26
+ readonly type: "number";
27
+ readonly isRequired: true;
28
+ readonly format: "int32";
29
+ };
30
+ };
31
+ };
@@ -0,0 +1,34 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $WorkerPing = {
5
+ properties: {
6
+ worker: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ worker_instance: {
11
+ type: 'string',
12
+ isRequired: true,
13
+ },
14
+ ping_at: {
15
+ type: 'string',
16
+ isRequired: true,
17
+ format: 'date-time',
18
+ },
19
+ started_at: {
20
+ type: 'string',
21
+ isRequired: true,
22
+ format: 'date-time',
23
+ },
24
+ ip: {
25
+ type: 'string',
26
+ isRequired: true,
27
+ },
28
+ jobs_executed: {
29
+ type: 'number',
30
+ isRequired: true,
31
+ format: 'int32',
32
+ },
33
+ },
34
+ };
@@ -0,0 +1,19 @@
1
+ export declare const $Workspace: {
2
+ readonly properties: {
3
+ readonly id: {
4
+ readonly type: "string";
5
+ readonly isRequired: true;
6
+ };
7
+ readonly name: {
8
+ readonly type: "string";
9
+ readonly isRequired: true;
10
+ };
11
+ readonly owner: {
12
+ readonly type: "string";
13
+ readonly isRequired: true;
14
+ };
15
+ readonly domain: {
16
+ readonly type: "string";
17
+ };
18
+ };
19
+ };
@@ -0,0 +1,22 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $Workspace = {
5
+ properties: {
6
+ id: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ name: {
11
+ type: 'string',
12
+ isRequired: true,
13
+ },
14
+ owner: {
15
+ type: 'string',
16
+ isRequired: true,
17
+ },
18
+ domain: {
19
+ type: 'string',
20
+ },
21
+ },
22
+ };
@@ -0,0 +1,16 @@
1
+ export declare const $WorkspaceInvite: {
2
+ readonly properties: {
3
+ readonly workspace_id: {
4
+ readonly type: "string";
5
+ readonly isRequired: true;
6
+ };
7
+ readonly email: {
8
+ readonly type: "string";
9
+ readonly isRequired: true;
10
+ };
11
+ readonly is_admin: {
12
+ readonly type: "boolean";
13
+ readonly isRequired: true;
14
+ };
15
+ };
16
+ };
@@ -0,0 +1,19 @@
1
+ /* istanbul ignore file */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export const $WorkspaceInvite = {
5
+ properties: {
6
+ workspace_id: {
7
+ type: 'string',
8
+ isRequired: true,
9
+ },
10
+ email: {
11
+ type: 'string',
12
+ isRequired: true,
13
+ },
14
+ is_admin: {
15
+ type: 'boolean',
16
+ isRequired: true,
17
+ },
18
+ },
19
+ };
@@ -1,5 +1,6 @@
1
1
  import type { Flow } from '../models/Flow';
2
- import type { FlowValue } from '../models/FlowValue';
2
+ import type { OpenFlow } from '../models/OpenFlow';
3
+ import type { OpenFlowWPath } from '../models/OpenFlowWPath';
3
4
  import type { CancelablePromise } from '../core/CancelablePromise';
4
5
  export declare class FlowService {
5
6
  /**
@@ -7,14 +8,26 @@ export declare class FlowService {
7
8
  * @returns any hub flows list
8
9
  * @throws ApiError
9
10
  */
10
- static listHubFlows(): CancelablePromise<Array<{
11
+ static listHubFlows(): CancelablePromise<{
12
+ flows?: Array<{
13
+ id: number;
14
+ flow_id: number;
15
+ summary: string;
16
+ apps: Array<string>;
17
+ approved: boolean;
18
+ votes: number;
19
+ }>;
20
+ }>;
21
+ /**
22
+ * get hub flow by id
23
+ * @returns any flow
24
+ * @throws ApiError
25
+ */
26
+ static getHubFlowById({ id, }: {
11
27
  id: number;
12
- flow_id: number;
13
- summary: string;
14
- apps: Array<string>;
15
- approved: boolean;
16
- votes: number;
17
- }>>;
28
+ }): CancelablePromise<{
29
+ flow?: OpenFlow;
30
+ }>;
18
31
  /**
19
32
  * list all available flows
20
33
  * @returns Flow All available flow
@@ -39,7 +52,7 @@ export declare class FlowService {
39
52
  */
40
53
  createdBy?: string;
41
54
  /**
42
- * mask to filter matching starting parh
55
+ * mask to filter matching starting path
43
56
  */
44
57
  pathStart?: string;
45
58
  /**
@@ -83,13 +96,7 @@ export declare class FlowService {
83
96
  /**
84
97
  * Partially filled flow
85
98
  */
86
- requestBody: {
87
- path: string;
88
- summary: string;
89
- description: string;
90
- value: FlowValue;
91
- schema?: any;
92
- };
99
+ requestBody: OpenFlowWPath;
93
100
  }): CancelablePromise<string>;
94
101
  /**
95
102
  * update flow
@@ -102,13 +109,7 @@ export declare class FlowService {
102
109
  /**
103
110
  * Partially filled flow
104
111
  */
105
- requestBody: {
106
- path: string;
107
- summary: string;
108
- description: string;
109
- value: FlowValue;
110
- schema?: any;
111
- };
112
+ requestBody: OpenFlowWPath;
112
113
  }): CancelablePromise<string>;
113
114
  /**
114
115
  * archive flow by path
@@ -12,6 +12,20 @@ export class FlowService {
12
12
  url: '/flows/hub/list',
13
13
  });
14
14
  }
15
+ /**
16
+ * get hub flow by id
17
+ * @returns any flow
18
+ * @throws ApiError
19
+ */
20
+ static getHubFlowById({ id, }) {
21
+ return __request(OpenAPI, {
22
+ method: 'GET',
23
+ url: '/flows/hub/get/{id}',
24
+ path: {
25
+ 'id': id,
26
+ },
27
+ });
28
+ }
15
29
  /**
16
30
  * list all available flows
17
31
  * @returns Flow All available flow
@@ -114,7 +114,7 @@ export declare class JobService {
114
114
  static runScriptPreview({ workspace, requestBody, }: {
115
115
  workspace: string;
116
116
  /**
117
- * previw
117
+ * preview
118
118
  */
119
119
  requestBody: Preview;
120
120
  }): CancelablePromise<string>;
@@ -7,24 +7,18 @@ export declare class ScriptService {
7
7
  * @returns any hub scripts list
8
8
  * @throws ApiError
9
9
  */
10
- static listHubScripts(): CancelablePromise<Array<{
11
- id: number;
12
- ask_id: number;
13
- summary: string;
14
- app: string;
15
- approved: boolean;
16
- is_trigger: boolean;
17
- votes: number;
18
- views: number;
19
- }>>;
20
- /**
21
- * get hub flow by id
22
- * @returns string flow
23
- * @throws ApiError
24
- */
25
- static getHubFlowById({ id, }: {
26
- id: number;
27
- }): CancelablePromise<string>;
10
+ static listHubScripts(): CancelablePromise<{
11
+ asks?: Array<{
12
+ id: number;
13
+ ask_id: number;
14
+ summary: string;
15
+ app: string;
16
+ approved: boolean;
17
+ is_trigger: boolean;
18
+ votes: number;
19
+ views: number;
20
+ }>;
21
+ }>;
28
22
  /**
29
23
  * get hub script content by path
30
24
  * @returns string script details
@@ -57,7 +51,7 @@ export declare class ScriptService {
57
51
  */
58
52
  createdBy?: string;
59
53
  /**
60
- * mask to filter matching starting parh
54
+ * mask to filter matching starting path
61
55
  */
62
56
  pathStart?: string;
63
57
  /**
@@ -12,20 +12,6 @@ export class ScriptService {
12
12
  url: '/scripts/hub/list',
13
13
  });
14
14
  }
15
- /**
16
- * get hub flow by id
17
- * @returns string flow
18
- * @throws ApiError
19
- */
20
- static getHubFlowById({ id, }) {
21
- return __request(OpenAPI, {
22
- method: 'GET',
23
- url: '/flows/hub/get/{id}',
24
- path: {
25
- 'id': id,
26
- },
27
- });
28
- }
29
15
  /**
30
16
  * get hub script content by path
31
17
  * @returns string script details
@@ -17,7 +17,7 @@ export declare class WorkspaceService {
17
17
  */
18
18
  static listUserWorkspaces(): CancelablePromise<UserWorkspaceList>;
19
19
  /**
20
- * list all workspaces as super admin (require to be super amdin)
20
+ * list all workspaces as super admin (require to be super admin)
21
21
  * @returns Workspace workspaces
22
22
  * @throws ApiError
23
23
  */
@@ -24,7 +24,7 @@ export class WorkspaceService {
24
24
  });
25
25
  }
26
26
  /**
27
- * list all workspaces as super admin (require to be super amdin)
27
+ * list all workspaces as super admin (require to be super admin)
28
28
  * @returns Workspace workspaces
29
29
  * @throws ApiError
30
30
  */
package/infer.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ScriptService } from './gen';
2
- import { sendUserToast } from './utils.js';
3
2
  export async function inferArgs(language, code, schema) {
4
3
  let inferedSchema;
5
4
  if (language == 'python3') {
@@ -45,6 +44,14 @@ function argSigToJsonSchemaType(t, s) {
45
44
  else if (t === 'str') {
46
45
  s.type = 'string';
47
46
  }
47
+ else if (t === 'email') {
48
+ s.type = 'string';
49
+ s.format = 'email';
50
+ }
51
+ else if (t === 'sql') {
52
+ s.type = 'string';
53
+ s.format = 'sql';
54
+ }
48
55
  else if (t === 'dict') {
49
56
  s.type = 'object';
50
57
  }