windmill-components 1.13.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 (184) hide show
  1. package/LICENSE +661 -0
  2. package/common.d.ts +29 -0
  3. package/components/ArgInfo.svelte +48 -0
  4. package/components/ArgInput.svelte +277 -0
  5. package/components/AutosizedTextarea.svelte +34 -0
  6. package/components/Badge.svelte +12 -0
  7. package/components/Button.svelte +82 -0
  8. package/components/ButtonAndDropdown.svelte +25 -0
  9. package/components/CenteredPage.svelte +5 -0
  10. package/components/ChevronButton.svelte +21 -0
  11. package/components/DisplayResult.svelte +101 -0
  12. package/components/Dropdown.svelte +108 -0
  13. package/components/Editor.svelte +370 -0
  14. package/components/FieldHeader.svelte +21 -0
  15. package/components/FlowBuilder.svelte +202 -0
  16. package/components/FlowEditor.svelte +95 -0
  17. package/components/FlowPreview.svelte +141 -0
  18. package/components/FlowStatusViewer.svelte +137 -0
  19. package/components/GroupModal.svelte +90 -0
  20. package/components/IconedResourceType.svelte +32 -0
  21. package/components/InviteGlobalUser.svelte +56 -0
  22. package/components/InviteUser.svelte +48 -0
  23. package/components/ItemPicker.svelte +58 -0
  24. package/components/JobStatus.svelte +38 -0
  25. package/components/Modal.svelte +94 -0
  26. package/components/ModuleStep.svelte +64 -0
  27. package/components/Multiselect.svelte +327 -0
  28. package/components/ObjectResourceInput.svelte +62 -0
  29. package/components/ObjectTypeNarrowing.svelte +25 -0
  30. package/components/PageHeader.svelte +29 -0
  31. package/components/Password.svelte +45 -0
  32. package/components/Path.svelte +129 -0
  33. package/components/RadioButton.svelte +117 -0
  34. package/components/Required.svelte +11 -0
  35. package/components/ResourceEditor.svelte +260 -0
  36. package/components/ResourcePicker.svelte +21 -0
  37. package/components/ResourceTypePicker.svelte +71 -0
  38. package/components/RunForm.svelte +127 -0
  39. package/components/SchemaEditor.svelte +221 -0
  40. package/components/SchemaForm.svelte +166 -0
  41. package/components/SchemaModal.svelte +160 -0
  42. package/components/SchemaViewer.svelte +76 -0
  43. package/components/ScriptBuilder.svelte +293 -0
  44. package/components/ScriptEditor.svelte +669 -0
  45. package/components/ScriptPicker.svelte +110 -0
  46. package/components/ScriptSchema.svelte +71 -0
  47. package/components/ShareModal.svelte +135 -0
  48. package/components/SharedBadge.svelte +54 -0
  49. package/components/StringTypeNarrowing.svelte +101 -0
  50. package/components/Switch.svelte +61 -0
  51. package/components/TableCustom.svelte +39 -0
  52. package/components/TableSimple.svelte +66 -0
  53. package/components/Tabs.svelte +21 -0
  54. package/components/Tooltip.svelte +93 -0
  55. package/components/VariableEditor.svelte +159 -0
  56. package/components/icons/DbIcon.svelte +12 -0
  57. package/components/icons/Mail.svelte +62 -0
  58. package/components/icons/Mysql.svelte +77 -0
  59. package/components/icons/PostgresIcon.svelte +57 -0
  60. package/components/icons/Slack.svelte +26 -0
  61. package/gen/core/ApiError.d.ts +8 -0
  62. package/gen/core/ApiRequestOptions.d.ts +13 -0
  63. package/gen/core/ApiResult.d.ts +7 -0
  64. package/gen/core/CancelablePromise.d.ts +26 -0
  65. package/gen/core/OpenAPI.d.ts +16 -0
  66. package/gen/core/request.d.ts +13 -0
  67. package/gen/index.d.ts +59 -0
  68. package/gen/models/AuditLog.d.ts +32 -0
  69. package/gen/models/CompletedJob.d.ts +48 -0
  70. package/gen/models/ContextualVariable.d.ts +5 -0
  71. package/gen/models/CreateResource.d.ts +6 -0
  72. package/gen/models/CreateVariable.d.ts +6 -0
  73. package/gen/models/CreateWorkspace.d.ts +6 -0
  74. package/gen/models/EditResource.d.ts +5 -0
  75. package/gen/models/EditResourceType.d.ts +4 -0
  76. package/gen/models/EditSchedule.d.ts +7 -0
  77. package/gen/models/EditVariable.d.ts +6 -0
  78. package/gen/models/EditWorkspaceUser.d.ts +3 -0
  79. package/gen/models/Flow.d.ts +13 -0
  80. package/gen/models/FlowModule.d.ts +6 -0
  81. package/gen/models/FlowModuleValue.d.ts +10 -0
  82. package/gen/models/FlowPreview.d.ts +7 -0
  83. package/gen/models/FlowStatus.d.ts +6 -0
  84. package/gen/models/FlowStatusModule.d.ts +15 -0
  85. package/gen/models/FlowValue.d.ts +5 -0
  86. package/gen/models/GlobalUserInfo.d.ts +14 -0
  87. package/gen/models/Group.d.ts +6 -0
  88. package/gen/models/InputTransform.d.ts +12 -0
  89. package/gen/models/Job.d.ts +11 -0
  90. package/gen/models/ListableVariable.d.ts +8 -0
  91. package/gen/models/Login.d.ts +4 -0
  92. package/gen/models/MainArgSignature.d.ts +14 -0
  93. package/gen/models/NewSchedule.d.ts +9 -0
  94. package/gen/models/NewToken.d.ts +4 -0
  95. package/gen/models/NewUser.d.ts +5 -0
  96. package/gen/models/Preview.d.ts +13 -0
  97. package/gen/models/QueuedJob.d.ts +47 -0
  98. package/gen/models/Resource.d.ts +8 -0
  99. package/gen/models/ResourceType.d.ts +6 -0
  100. package/gen/models/Schedule.d.ts +13 -0
  101. package/gen/models/Script.d.ts +29 -0
  102. package/gen/models/ScriptArgs.d.ts +1 -0
  103. package/gen/models/TruncatedToken.d.ts +7 -0
  104. package/gen/models/User.d.ts +10 -0
  105. package/gen/models/UserWorkspaceList.d.ts +8 -0
  106. package/gen/models/WorkerPing.d.ts +8 -0
  107. package/gen/models/Workspace.d.ts +6 -0
  108. package/gen/models/WorkspaceInvite.d.ts +5 -0
  109. package/gen/services/AdminService.d.ts +35 -0
  110. package/gen/services/AuditService.d.ts +37 -0
  111. package/gen/services/FlowService.d.ts +82 -0
  112. package/gen/services/GranularAclService.d.ts +42 -0
  113. package/gen/services/GroupService.d.ts +94 -0
  114. package/gen/services/JobService.d.ts +217 -0
  115. package/gen/services/ResourceService.d.ts +116 -0
  116. package/gen/services/ScheduleService.d.ts +73 -0
  117. package/gen/services/ScriptService.d.ts +165 -0
  118. package/gen/services/SettingsService.d.ts +15 -0
  119. package/gen/services/UserService.d.ts +211 -0
  120. package/gen/services/VariableService.d.ts +66 -0
  121. package/gen/services/WorkerService.d.ts +15 -0
  122. package/gen/services/WorkspaceService.d.ts +137 -0
  123. package/infer.d.ts +2 -0
  124. package/lib/components/ArgInfo.svelte.d.ts +16 -0
  125. package/lib/components/ArgInput.svelte.d.ts +37 -0
  126. package/lib/components/AutosizedTextarea.svelte.d.ts +19 -0
  127. package/lib/components/Badge.svelte.d.ts +20 -0
  128. package/lib/components/Button.svelte.d.ts +23 -0
  129. package/lib/components/ButtonAndDropdown.svelte.d.ts +23 -0
  130. package/lib/components/CenteredPage.svelte.d.ts +23 -0
  131. package/lib/components/ChevronButton.svelte.d.ts +19 -0
  132. package/lib/components/DisplayResult.svelte.d.ts +16 -0
  133. package/lib/components/Dropdown.svelte.d.ts +22 -0
  134. package/lib/components/Editor.svelte.d.ts +38 -0
  135. package/lib/components/FieldHeader.svelte.d.ts +23 -0
  136. package/lib/components/FlowBuilder.svelte.d.ts +18 -0
  137. package/lib/components/FlowEditor.svelte.d.ts +19 -0
  138. package/lib/components/FlowPreview.svelte.d.ts +21 -0
  139. package/lib/components/FlowStatusViewer.svelte.d.ts +18 -0
  140. package/lib/components/GroupModal.svelte.d.ts +17 -0
  141. package/lib/components/IconedResourceType.svelte.d.ts +19 -0
  142. package/lib/components/InviteGlobalUser.svelte.d.ts +19 -0
  143. package/lib/components/InviteUser.svelte.d.ts +19 -0
  144. package/lib/components/ItemPicker.svelte.d.ts +24 -0
  145. package/lib/components/JobStatus.svelte.d.ts +17 -0
  146. package/lib/components/Modal.svelte.d.ts +28 -0
  147. package/lib/components/ModuleStep.svelte.d.ts +26 -0
  148. package/lib/components/Multiselect.svelte.d.ts +33 -0
  149. package/lib/components/ObjectResourceInput.svelte.d.ts +17 -0
  150. package/lib/components/ObjectTypeNarrowing.svelte.d.ts +16 -0
  151. package/lib/components/PageHeader.svelte.d.ts +20 -0
  152. package/lib/components/Password.svelte.d.ts +18 -0
  153. package/lib/components/Path.svelte.d.ts +26 -0
  154. package/lib/components/RadioButton.svelte.d.ts +21 -0
  155. package/lib/components/Required.svelte.d.ts +17 -0
  156. package/lib/components/ResourceEditor.svelte.d.ts +22 -0
  157. package/lib/components/ResourcePicker.svelte.d.ts +17 -0
  158. package/lib/components/ResourceTypePicker.svelte.d.ts +19 -0
  159. package/lib/components/RunForm.svelte.d.ts +22 -0
  160. package/lib/components/SchemaEditor.svelte.d.ts +22 -0
  161. package/lib/components/SchemaForm.svelte.d.ts +23 -0
  162. package/lib/components/SchemaModal.svelte.d.ts +44 -0
  163. package/lib/components/SchemaViewer.svelte.d.ts +17 -0
  164. package/lib/components/ScriptBuilder.svelte.d.ts +20 -0
  165. package/lib/components/ScriptEditor.svelte.d.ts +28 -0
  166. package/lib/components/ScriptPicker.svelte.d.ts +21 -0
  167. package/lib/components/ScriptSchema.svelte.d.ts +22 -0
  168. package/lib/components/ShareModal.svelte.d.ts +21 -0
  169. package/lib/components/SharedBadge.svelte.d.ts +17 -0
  170. package/lib/components/StringTypeNarrowing.svelte.d.ts +18 -0
  171. package/lib/components/Switch.svelte.d.ts +31 -0
  172. package/lib/components/TableCustom.svelte.d.ts +25 -0
  173. package/lib/components/TableSimple.svelte.d.ts +24 -0
  174. package/lib/components/Tabs.svelte.d.ts +20 -0
  175. package/lib/components/Tooltip.svelte.d.ts +20 -0
  176. package/lib/components/VariableEditor.svelte.d.ts +21 -0
  177. package/lib/components/icons/DbIcon.svelte.d.ts +17 -0
  178. package/lib/components/icons/Mail.svelte.d.ts +17 -0
  179. package/lib/components/icons/Mysql.svelte.d.ts +17 -0
  180. package/lib/components/icons/PostgresIcon.svelte.d.ts +17 -0
  181. package/lib/components/icons/Slack.svelte.d.ts +17 -0
  182. package/package.json +110 -0
  183. package/stores.d.ts +19 -0
  184. package/utils.d.ts +60 -0
@@ -0,0 +1,32 @@
1
+ export declare type AuditLog = {
2
+ id: number;
3
+ timestamp: string;
4
+ username: string;
5
+ operation: AuditLog.operation;
6
+ action_kind: AuditLog.action_kind;
7
+ resource?: string;
8
+ parameters?: any;
9
+ };
10
+ export declare namespace AuditLog {
11
+ enum operation {
12
+ JOBS_RUN = "jobs.run",
13
+ SCRIPTS_CREATE = "scripts.create",
14
+ SCRIPTS_UPDATE = "scripts.update",
15
+ USERS_CREATE = "users.create",
16
+ USERS_DELETE = "users.delete",
17
+ USERS_SETPASSWORD = "users.setpassword",
18
+ USERS_UPDATE = "users.update",
19
+ USERS_LOGIN = "users.login",
20
+ USERS_TOKEN_CREATE = "users.token.create",
21
+ USERS_TOKEN_DELETE = "users.token.delete",
22
+ VARIABLES_CREATE = "variables.create",
23
+ VARIABLES_DELETE = "variables.delete",
24
+ VARIABLES_UPDATE = "variables.update"
25
+ }
26
+ enum action_kind {
27
+ CREATED = "Created",
28
+ UPDATED = "Updated",
29
+ DELETE = "Delete",
30
+ EXECUTE = "Execute"
31
+ }
32
+ }
@@ -0,0 +1,48 @@
1
+ import type { FlowStatus } from './FlowStatus';
2
+ import type { FlowValue } from './FlowValue';
3
+ import type { ScriptArgs } from './ScriptArgs';
4
+ export declare type CompletedJob = {
5
+ workspace_id?: string;
6
+ id: string;
7
+ parent_job?: string;
8
+ created_by: string;
9
+ created_at: string;
10
+ started_at: string;
11
+ duration: number;
12
+ success: boolean;
13
+ script_path?: string;
14
+ script_hash?: string;
15
+ args?: ScriptArgs;
16
+ result?: any;
17
+ logs?: string;
18
+ deleted?: boolean;
19
+ raw_code?: string;
20
+ canceled: boolean;
21
+ canceled_by?: string;
22
+ canceled_reason?: string;
23
+ job_kind: CompletedJob.job_kind;
24
+ schedule_path?: string;
25
+ /**
26
+ * The user (u/userfoo) or group (g/groupfoo) whom
27
+ * the execution of this script will be permissioned_as and by extension its DT_TOKEN.
28
+ *
29
+ */
30
+ permissioned_as: string;
31
+ flow_status?: FlowStatus;
32
+ raw_flow?: FlowValue;
33
+ is_flow_step: boolean;
34
+ language?: CompletedJob.language;
35
+ };
36
+ export declare namespace CompletedJob {
37
+ enum job_kind {
38
+ SCRIPT = "script",
39
+ PREVIEW = "preview",
40
+ DEPENDENCIES = "dependencies",
41
+ FLOW = "flow",
42
+ FLOWPREVIEW = "flowpreview"
43
+ }
44
+ enum language {
45
+ PYTHON3 = "python3",
46
+ DENO = "deno"
47
+ }
48
+ }
@@ -0,0 +1,5 @@
1
+ export declare type ContextualVariable = {
2
+ name: string;
3
+ value: string;
4
+ description: string;
5
+ };
@@ -0,0 +1,6 @@
1
+ export declare type CreateResource = {
2
+ path: string;
3
+ value: any;
4
+ description?: string;
5
+ resource_type: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export declare type CreateVariable = {
2
+ path: string;
3
+ value: string;
4
+ is_secret: boolean;
5
+ description: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export declare type CreateWorkspace = {
2
+ id: string;
3
+ name: string;
4
+ username: string;
5
+ domain: string;
6
+ };
@@ -0,0 +1,5 @@
1
+ export declare type EditResource = {
2
+ path?: string;
3
+ description?: string;
4
+ value?: any;
5
+ };
@@ -0,0 +1,4 @@
1
+ export declare type EditResourceType = {
2
+ schema?: string;
3
+ description?: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export declare type EditSchedule = {
3
+ schedule: string;
4
+ script_path: string;
5
+ is_flow: boolean;
6
+ args: ScriptArgs;
7
+ };
@@ -0,0 +1,6 @@
1
+ export declare type EditVariable = {
2
+ path?: string;
3
+ value?: string;
4
+ is_secret?: boolean;
5
+ description?: string;
6
+ };
@@ -0,0 +1,3 @@
1
+ export declare type EditWorkspaceUser = {
2
+ is_admin?: boolean;
3
+ };
@@ -0,0 +1,13 @@
1
+ import type { FlowValue } from './FlowValue';
2
+ export declare type Flow = {
3
+ workspace_id?: string;
4
+ path: string;
5
+ summary: string;
6
+ description?: string;
7
+ value: FlowValue;
8
+ edited_by: string;
9
+ edited_at: string;
10
+ archived: boolean;
11
+ schema?: any;
12
+ extra_perms: Record<string, boolean>;
13
+ };
@@ -0,0 +1,6 @@
1
+ import type { FlowModuleValue } from './FlowModuleValue';
2
+ import type { InputTransform } from './InputTransform';
3
+ export declare type FlowModule = {
4
+ input_transform: Record<string, InputTransform>;
5
+ value: FlowModuleValue;
6
+ };
@@ -0,0 +1,10 @@
1
+ export declare type FlowModuleValue = {
2
+ path: string;
3
+ type: FlowModuleValue.type;
4
+ };
5
+ export declare namespace FlowModuleValue {
6
+ enum type {
7
+ SCRIPT = "script",
8
+ FLOW = "flow"
9
+ }
10
+ }
@@ -0,0 +1,7 @@
1
+ import type { FlowValue } from './FlowValue';
2
+ import type { ScriptArgs } from './ScriptArgs';
3
+ export declare type FlowPreview = {
4
+ value: FlowValue;
5
+ path?: string;
6
+ args: ScriptArgs;
7
+ };
@@ -0,0 +1,6 @@
1
+ import type { FlowStatusModule } from './FlowStatusModule';
2
+ export declare type FlowStatus = {
3
+ step: number;
4
+ modules: Array<FlowStatusModule>;
5
+ failure_module: FlowStatusModule;
6
+ };
@@ -0,0 +1,15 @@
1
+ export declare type FlowStatusModule = {
2
+ type: FlowStatusModule.type;
3
+ job?: string;
4
+ event?: string;
5
+ };
6
+ export declare namespace FlowStatusModule {
7
+ enum type {
8
+ WAITING_FOR_PRIOR_STEPS = "WaitingForPriorSteps",
9
+ WAITING_FOR_EVENT = "WaitingForEvent",
10
+ WAITING_FOR_EXECUTOR = "WaitingForExecutor",
11
+ IN_PROGRESS = "InProgress",
12
+ SUCCESS = "Success",
13
+ FAILURE = "Failure"
14
+ }
15
+ }
@@ -0,0 +1,5 @@
1
+ import type { FlowModule } from './FlowModule';
2
+ export declare type FlowValue = {
3
+ modules: Array<FlowModule>;
4
+ failure_module?: FlowModule;
5
+ };
@@ -0,0 +1,14 @@
1
+ export declare type GlobalUserInfo = {
2
+ email: string;
3
+ login_type: GlobalUserInfo.login_type;
4
+ super_admin: boolean;
5
+ verified: boolean;
6
+ name?: string;
7
+ company?: string;
8
+ };
9
+ export declare namespace GlobalUserInfo {
10
+ enum login_type {
11
+ PASSWORD = "password",
12
+ GITHUB = "github"
13
+ }
14
+ }
@@ -0,0 +1,6 @@
1
+ export declare type Group = {
2
+ name: string;
3
+ summary?: string;
4
+ members?: Array<string>;
5
+ extra_perms?: Record<string, boolean>;
6
+ };
@@ -0,0 +1,12 @@
1
+ export declare type InputTransform = {
2
+ type?: InputTransform.type;
3
+ step?: number;
4
+ value?: any;
5
+ expr?: string;
6
+ };
7
+ export declare namespace InputTransform {
8
+ enum type {
9
+ STATIC = "static",
10
+ JAVASCRIPT = "javascript"
11
+ }
12
+ }
@@ -0,0 +1,11 @@
1
+ import type { CompletedJob } from './CompletedJob';
2
+ import type { QueuedJob } from './QueuedJob';
3
+ export declare type Job = ((CompletedJob | QueuedJob) & {
4
+ type?: Job.type;
5
+ });
6
+ export declare namespace Job {
7
+ enum type {
8
+ COMPLETED_JOB = "CompletedJob",
9
+ QUEUED_JOB = "QueuedJob"
10
+ }
11
+ }
@@ -0,0 +1,8 @@
1
+ export declare type ListableVariable = {
2
+ workspace_id: string;
3
+ path: string;
4
+ value?: string;
5
+ is_secret: boolean;
6
+ description?: string;
7
+ extra_perms: Record<string, boolean>;
8
+ };
@@ -0,0 +1,4 @@
1
+ export declare type Login = {
2
+ email: string;
3
+ password: string;
4
+ };
@@ -0,0 +1,14 @@
1
+ export declare type MainArgSignature = {
2
+ star_args: boolean;
3
+ star_kwargs?: boolean;
4
+ args: Array<{
5
+ name: string;
6
+ typ: ('str' | 'float' | 'int' | 'bool' | 'email' | 'unknown' | {
7
+ resource: string;
8
+ } | {
9
+ list: 'str' | 'float' | 'int' | 'email';
10
+ });
11
+ has_default?: boolean;
12
+ default?: any;
13
+ }>;
14
+ };
@@ -0,0 +1,9 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export declare type NewSchedule = {
3
+ path: string;
4
+ schedule: string;
5
+ offset?: number;
6
+ script_path: string;
7
+ is_flow: boolean;
8
+ args: ScriptArgs;
9
+ };
@@ -0,0 +1,4 @@
1
+ export declare type NewToken = {
2
+ label?: string;
3
+ expiration?: string;
4
+ };
@@ -0,0 +1,5 @@
1
+ export declare type NewUser = {
2
+ email: string;
3
+ username: string;
4
+ is_admin: boolean;
5
+ };
@@ -0,0 +1,13 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export declare type Preview = {
3
+ content: string;
4
+ path?: string;
5
+ args: ScriptArgs;
6
+ language: Preview.language;
7
+ };
8
+ export declare namespace Preview {
9
+ enum language {
10
+ PYTHON3 = "python3",
11
+ DENO = "deno"
12
+ }
13
+ }
@@ -0,0 +1,47 @@
1
+ import type { FlowStatus } from './FlowStatus';
2
+ import type { FlowValue } from './FlowValue';
3
+ import type { ScriptArgs } from './ScriptArgs';
4
+ export declare type QueuedJob = {
5
+ workspace_id?: string;
6
+ id: string;
7
+ parent_job?: string;
8
+ created_by?: string;
9
+ created_at?: string;
10
+ started_at?: string;
11
+ scheduled_for?: string;
12
+ running: boolean;
13
+ script_path?: string;
14
+ script_hash?: string;
15
+ args?: ScriptArgs;
16
+ logs?: string;
17
+ raw_code?: string;
18
+ canceled: boolean;
19
+ canceled_by?: string;
20
+ canceled_reason?: string;
21
+ last_ping?: string;
22
+ job_kind: QueuedJob.job_kind;
23
+ schedule_path?: string;
24
+ /**
25
+ * The user (u/userfoo) or group (g/groupfoo) whom
26
+ * the execution of this script will be permissioned_as and by extension its DT_TOKEN.
27
+ *
28
+ */
29
+ permissioned_as: string;
30
+ flow_status?: FlowStatus;
31
+ raw_flow?: FlowValue;
32
+ is_flow_step: boolean;
33
+ language?: QueuedJob.language;
34
+ };
35
+ export declare namespace QueuedJob {
36
+ enum job_kind {
37
+ SCRIPT = "script",
38
+ PREVIEW = "preview",
39
+ DEPENDENCIES = "dependencies",
40
+ FLOW = "flow",
41
+ FLOWPREVIEW = "flowpreview"
42
+ }
43
+ enum language {
44
+ PYTHON3 = "python3",
45
+ DENO = "deno"
46
+ }
47
+ }
@@ -0,0 +1,8 @@
1
+ export declare type Resource = {
2
+ workspace_id?: string;
3
+ path: string;
4
+ description?: string;
5
+ resource_type: string;
6
+ value?: any;
7
+ extra_perms?: Record<string, boolean>;
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare type ResourceType = {
2
+ workspace_id?: string;
3
+ name: string;
4
+ schema?: any;
5
+ description?: string;
6
+ };
@@ -0,0 +1,13 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export declare type Schedule = {
3
+ path: string;
4
+ edited_by: string;
5
+ edited_at: string;
6
+ schedule: string;
7
+ offset_: number;
8
+ enabled?: boolean;
9
+ script_path: string;
10
+ is_flow: boolean;
11
+ args?: ScriptArgs;
12
+ extra_perms: Record<string, boolean>;
13
+ };
@@ -0,0 +1,29 @@
1
+ export declare type Script = {
2
+ workspace_id?: string;
3
+ hash: string;
4
+ path: string;
5
+ /**
6
+ * The first element is the direct parent of the script, the second is the parent of the first, etc
7
+ *
8
+ */
9
+ parent_hashes?: Array<string>;
10
+ summary: string;
11
+ description?: string;
12
+ content: string;
13
+ created_by: string;
14
+ created_at: string;
15
+ archived: boolean;
16
+ schema?: any;
17
+ deleted: boolean;
18
+ is_template: boolean;
19
+ extra_perms: Record<string, boolean>;
20
+ lock?: string;
21
+ lock_error_logs?: string;
22
+ language: Script.language;
23
+ };
24
+ export declare namespace Script {
25
+ enum language {
26
+ PYTHON3 = "python3",
27
+ DENO = "deno"
28
+ }
29
+ }
@@ -0,0 +1 @@
1
+ export declare type ScriptArgs = Record<string, any>;
@@ -0,0 +1,7 @@
1
+ export declare type TruncatedToken = {
2
+ label?: string;
3
+ expiration?: string;
4
+ token_prefix: string;
5
+ created_at: string;
6
+ last_used_at: string;
7
+ };
@@ -0,0 +1,10 @@
1
+ export declare type User = {
2
+ email: string;
3
+ username: string;
4
+ is_admin: boolean;
5
+ is_super_admin: boolean;
6
+ created_at: string;
7
+ operator: boolean;
8
+ disabled: boolean;
9
+ groups?: Array<string>;
10
+ };
@@ -0,0 +1,8 @@
1
+ export declare type UserWorkspaceList = {
2
+ email: string;
3
+ workspaces: Array<{
4
+ id: string;
5
+ name: string;
6
+ username: string;
7
+ }>;
8
+ };
@@ -0,0 +1,8 @@
1
+ export declare type WorkerPing = {
2
+ worker: string;
3
+ worker_instance: string;
4
+ ping_at: string;
5
+ started_at: string;
6
+ ip: string;
7
+ jobs_executed: number;
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare type Workspace = {
2
+ id: string;
3
+ name: string;
4
+ owner: string;
5
+ domain?: string;
6
+ };
@@ -0,0 +1,5 @@
1
+ export declare type WorkspaceInvite = {
2
+ workspace_id: string;
3
+ email: string;
4
+ is_admin: boolean;
5
+ };
@@ -0,0 +1,35 @@
1
+ import type { EditWorkspaceUser } from '../models/EditWorkspaceUser';
2
+ import type { NewUser } from '../models/NewUser';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class AdminService {
5
+ /**
6
+ * create user (require admin privilege)
7
+ * @returns string user created
8
+ * @throws ApiError
9
+ */
10
+ static createUser({ workspace, requestBody, }: {
11
+ workspace: string;
12
+ /** new user **/
13
+ requestBody: NewUser;
14
+ }): CancelablePromise<string>;
15
+ /**
16
+ * update user (require admin privilege)
17
+ * @returns string edited user
18
+ * @throws ApiError
19
+ */
20
+ static updateUser({ workspace, username, requestBody, }: {
21
+ workspace: string;
22
+ username: string;
23
+ /** new user **/
24
+ requestBody: EditWorkspaceUser;
25
+ }): CancelablePromise<string>;
26
+ /**
27
+ * delete user (require admin privilege)
28
+ * @returns string delete user
29
+ * @throws ApiError
30
+ */
31
+ static deleteUser({ workspace, username, }: {
32
+ workspace: string;
33
+ username: string;
34
+ }): CancelablePromise<string>;
35
+ }
@@ -0,0 +1,37 @@
1
+ import type { AuditLog } from '../models/AuditLog';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class AuditService {
4
+ /**
5
+ * get audit log (requires admin privilege)
6
+ * @returns AuditLog an audit log
7
+ * @throws ApiError
8
+ */
9
+ static getAuditLog({ workspace, id, }: {
10
+ workspace: string;
11
+ id: number;
12
+ }): CancelablePromise<AuditLog>;
13
+ /**
14
+ * list audit logs (requires admin privilege)
15
+ * @returns AuditLog a list of audit logs
16
+ * @throws ApiError
17
+ */
18
+ static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }: {
19
+ workspace: string;
20
+ /** which page to return (start at 1, default 1) **/
21
+ page?: number;
22
+ /** number of items to return for a given page (default 30, max 100) **/
23
+ perPage?: number;
24
+ /** filter on created before (exclusive) timestamp **/
25
+ before?: string;
26
+ /** filter on created after (exclusive) timestamp **/
27
+ after?: string;
28
+ /** filter on exact username of user **/
29
+ username?: string;
30
+ /** filter on exact or prefix name of operation **/
31
+ operation?: string;
32
+ /** filter on exact or prefix name of resource **/
33
+ resource?: string;
34
+ /** filter on type of operation **/
35
+ actionKind?: 'Create' | 'Update' | 'Delete' | 'Execute';
36
+ }): CancelablePromise<Array<AuditLog>>;
37
+ }
@@ -0,0 +1,82 @@
1
+ import type { Flow } from '../models/Flow';
2
+ import type { FlowValue } from '../models/FlowValue';
3
+ import type { CancelablePromise } from '../core/CancelablePromise';
4
+ export declare class FlowService {
5
+ /**
6
+ * list all available flows
7
+ * @returns Flow All available flow
8
+ * @throws ApiError
9
+ */
10
+ static listFlows({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, showArchived, }: {
11
+ workspace: string;
12
+ /** which page to return (start at 1, default 1) **/
13
+ page?: number;
14
+ /** number of items to return for a given page (default 30, max 100) **/
15
+ perPage?: number;
16
+ /** order by desc order (default true) **/
17
+ orderDesc?: boolean;
18
+ /** mask to filter exact matching user creator **/
19
+ createdBy?: string;
20
+ /** mask to filter matching starting parh **/
21
+ pathStart?: string;
22
+ /** mask to filter exact matching path **/
23
+ pathExact?: string;
24
+ /** (default false)
25
+ * show also the archived files.
26
+ * when multiple archived hash share the same path, only the ones with the latest create_at
27
+ * are displayed.
28
+ * **/
29
+ showArchived?: boolean;
30
+ }): CancelablePromise<Array<Flow>>;
31
+ /**
32
+ * get flow by path
33
+ * @returns Flow flow details
34
+ * @throws ApiError
35
+ */
36
+ static getFlowByPath({ workspace, path, }: {
37
+ workspace: string;
38
+ path: string;
39
+ }): CancelablePromise<Flow>;
40
+ /**
41
+ * create flow
42
+ * @returns string flow created
43
+ * @throws ApiError
44
+ */
45
+ static createFlow({ workspace, requestBody, }: {
46
+ workspace: string;
47
+ /** Partially filled flow **/
48
+ requestBody: {
49
+ path: string;
50
+ summary: string;
51
+ description: string;
52
+ value: FlowValue;
53
+ schema?: any;
54
+ };
55
+ }): CancelablePromise<string>;
56
+ /**
57
+ * update flow
58
+ * @returns string flow updated
59
+ * @throws ApiError
60
+ */
61
+ static updateFlow({ workspace, path, requestBody, }: {
62
+ workspace: string;
63
+ path: string;
64
+ /** Partially filled flow **/
65
+ requestBody: {
66
+ path: string;
67
+ summary: string;
68
+ description: string;
69
+ value: FlowValue;
70
+ schema?: any;
71
+ };
72
+ }): CancelablePromise<string>;
73
+ /**
74
+ * archive flow by path
75
+ * @returns string flow archived
76
+ * @throws ApiError
77
+ */
78
+ static archiveFlowByPath({ workspace, path, }: {
79
+ workspace: string;
80
+ path: string;
81
+ }): CancelablePromise<string>;
82
+ }