windmill-client 0.1.0 → 0.2.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 (296) hide show
  1. package/dist/core/ApiError.d.ts +10 -0
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.d.ts +13 -0
  4. package/dist/core/ApiRequestOptions.js +2 -0
  5. package/dist/core/ApiResult.d.ts +7 -0
  6. package/dist/core/ApiResult.js +2 -0
  7. package/dist/core/CancelablePromise.d.ts +26 -0
  8. package/dist/core/CancelablePromise.js +94 -0
  9. package/dist/core/OpenAPI.d.ts +16 -0
  10. package/dist/core/OpenAPI.js +14 -0
  11. package/dist/core/request.d.ts +13 -0
  12. package/dist/core/request.js +269 -0
  13. package/dist/index.d.ts +95 -0
  14. package/dist/index.js +85 -0
  15. package/dist/models/AppWithLastVersion.d.ts +21 -0
  16. package/dist/models/AppWithLastVersion.js +15 -0
  17. package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
  18. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  19. package/dist/models/AuditLog.d.ts +32 -0
  20. package/dist/models/AuditLog.js +32 -0
  21. package/dist/models/BranchAll.d.ts +10 -0
  22. package/dist/models/BranchAll.js +5 -0
  23. package/dist/models/BranchOne.d.ts +10 -0
  24. package/dist/models/BranchOne.js +5 -0
  25. package/dist/models/CompletedJob.d.ts +57 -0
  26. package/dist/models/CompletedJob.js +26 -0
  27. package/dist/models/ContextualVariable.d.ts +5 -0
  28. package/dist/models/ContextualVariable.js +5 -0
  29. package/dist/models/CreateInput.d.ts +4 -0
  30. package/dist/models/CreateInput.js +5 -0
  31. package/dist/models/CreateResource.d.ts +6 -0
  32. package/dist/models/CreateResource.js +5 -0
  33. package/dist/models/CreateVariable.d.ts +8 -0
  34. package/dist/models/CreateVariable.js +5 -0
  35. package/dist/models/CreateWorkspace.d.ts +5 -0
  36. package/dist/models/CreateWorkspace.js +5 -0
  37. package/dist/models/EditResource.d.ts +5 -0
  38. package/dist/models/EditResource.js +5 -0
  39. package/dist/models/EditResourceType.d.ts +4 -0
  40. package/dist/models/EditResourceType.js +5 -0
  41. package/dist/models/EditSchedule.d.ts +6 -0
  42. package/dist/models/EditSchedule.js +5 -0
  43. package/dist/models/EditVariable.d.ts +6 -0
  44. package/dist/models/EditVariable.js +5 -0
  45. package/dist/models/EditWorkspaceUser.d.ts +5 -0
  46. package/dist/models/EditWorkspaceUser.js +5 -0
  47. package/dist/models/Flow.d.ts +3 -0
  48. package/dist/models/Flow.js +5 -0
  49. package/dist/models/FlowMetadata.d.ts +11 -0
  50. package/dist/models/FlowMetadata.js +5 -0
  51. package/dist/models/FlowModule.d.ts +18 -0
  52. package/dist/models/FlowModule.js +5 -0
  53. package/dist/models/FlowModuleValue.d.ts +8 -0
  54. package/dist/models/FlowModuleValue.js +5 -0
  55. package/dist/models/FlowPreview.d.ts +7 -0
  56. package/dist/models/FlowPreview.js +5 -0
  57. package/dist/models/FlowStatus.d.ts +12 -0
  58. package/dist/models/FlowStatus.js +5 -0
  59. package/dist/models/FlowStatusModule.d.ts +34 -0
  60. package/dist/models/FlowStatusModule.js +18 -0
  61. package/dist/models/FlowValue.d.ts +6 -0
  62. package/dist/models/FlowValue.js +5 -0
  63. package/dist/models/Folder.d.ts +5 -0
  64. package/dist/models/Folder.js +5 -0
  65. package/dist/models/ForloopFlow.d.ts +9 -0
  66. package/dist/models/ForloopFlow.js +5 -0
  67. package/dist/models/GlobalUserInfo.d.ts +14 -0
  68. package/dist/models/GlobalUserInfo.js +14 -0
  69. package/dist/models/Group.d.ts +6 -0
  70. package/dist/models/Group.js +5 -0
  71. package/dist/models/Identity.d.ts +4 -0
  72. package/dist/models/Identity.js +5 -0
  73. package/dist/models/Input.d.ts +8 -0
  74. package/dist/models/Input.js +5 -0
  75. package/dist/models/InputTransform.d.ts +3 -0
  76. package/dist/models/InputTransform.js +5 -0
  77. package/dist/models/JavascriptTransform.d.ts +4 -0
  78. package/dist/models/JavascriptTransform.js +5 -0
  79. package/dist/models/Job.d.ts +11 -0
  80. package/dist/models/Job.js +14 -0
  81. package/dist/models/ListableApp.d.ts +18 -0
  82. package/dist/models/ListableApp.js +15 -0
  83. package/dist/models/ListableResource.d.ts +14 -0
  84. package/dist/models/ListableResource.js +5 -0
  85. package/dist/models/ListableVariable.d.ts +14 -0
  86. package/dist/models/ListableVariable.js +5 -0
  87. package/dist/models/Login.d.ts +4 -0
  88. package/dist/models/Login.js +5 -0
  89. package/dist/models/MainArgSignature.d.ts +33 -0
  90. package/dist/models/MainArgSignature.js +14 -0
  91. package/dist/models/NewSchedule.d.ts +10 -0
  92. package/dist/models/NewSchedule.js +5 -0
  93. package/dist/models/NewScript.d.ts +29 -0
  94. package/dist/models/NewScript.js +24 -0
  95. package/dist/models/NewScriptWithDraft.d.ts +5 -0
  96. package/dist/models/NewScriptWithDraft.js +5 -0
  97. package/dist/models/NewToken.d.ts +4 -0
  98. package/dist/models/NewToken.js +5 -0
  99. package/dist/models/NewTokenImpersonate.d.ts +5 -0
  100. package/dist/models/NewTokenImpersonate.js +5 -0
  101. package/dist/models/NewUser.d.ts +5 -0
  102. package/dist/models/NewUser.js +5 -0
  103. package/dist/models/OpenFlow.d.ts +7 -0
  104. package/dist/models/OpenFlow.js +5 -0
  105. package/dist/models/OpenFlowWPath.d.ts +4 -0
  106. package/dist/models/OpenFlowWPath.js +5 -0
  107. package/dist/models/PathFlow.d.ts +6 -0
  108. package/dist/models/PathFlow.js +5 -0
  109. package/dist/models/PathScript.d.ts +7 -0
  110. package/dist/models/PathScript.js +5 -0
  111. package/dist/models/Policy.d.ts +13 -0
  112. package/dist/models/Policy.js +15 -0
  113. package/dist/models/Preview.d.ts +16 -0
  114. package/dist/models/Preview.js +16 -0
  115. package/dist/models/QueuedJob.d.ts +55 -0
  116. package/dist/models/QueuedJob.js +26 -0
  117. package/dist/models/RawScript.d.ts +18 -0
  118. package/dist/models/RawScript.js +16 -0
  119. package/dist/models/Resource.d.ts +9 -0
  120. package/dist/models/Resource.js +5 -0
  121. package/dist/models/ResourceType.d.ts +6 -0
  122. package/dist/models/ResourceType.js +5 -0
  123. package/dist/models/Retry.d.ts +11 -0
  124. package/dist/models/Retry.js +5 -0
  125. package/dist/models/RunnableType.d.ts +5 -0
  126. package/dist/models/RunnableType.js +12 -0
  127. package/dist/models/Schedule.d.ts +15 -0
  128. package/dist/models/Schedule.js +5 -0
  129. package/dist/models/Script.d.ts +43 -0
  130. package/dist/models/Script.js +24 -0
  131. package/dist/models/ScriptArgs.d.ts +1 -0
  132. package/dist/models/ScriptArgs.js +5 -0
  133. package/dist/models/SlackToken.d.ts +8 -0
  134. package/dist/models/SlackToken.js +5 -0
  135. package/dist/models/StaticTransform.d.ts +4 -0
  136. package/dist/models/StaticTransform.js +5 -0
  137. package/dist/models/TokenResponse.d.ts +6 -0
  138. package/dist/models/TokenResponse.js +5 -0
  139. package/dist/models/TruncatedToken.d.ts +7 -0
  140. package/dist/models/TruncatedToken.js +5 -0
  141. package/dist/models/UpdateInput.d.ts +5 -0
  142. package/dist/models/UpdateInput.js +5 -0
  143. package/dist/models/Usage.d.ts +3 -0
  144. package/dist/models/Usage.js +5 -0
  145. package/dist/models/User.d.ts +14 -0
  146. package/dist/models/User.js +5 -0
  147. package/dist/models/UserWorkspaceList.d.ts +8 -0
  148. package/dist/models/UserWorkspaceList.js +5 -0
  149. package/dist/models/WorkerPing.d.ts +8 -0
  150. package/dist/models/WorkerPing.js +5 -0
  151. package/dist/models/Workspace.d.ts +6 -0
  152. package/dist/models/Workspace.js +5 -0
  153. package/dist/models/WorkspaceInvite.d.ts +6 -0
  154. package/dist/models/WorkspaceInvite.js +5 -0
  155. package/dist/services/AdminService.d.ts +39 -0
  156. package/dist/services/AdminService.js +56 -0
  157. package/dist/services/AppService.d.ts +194 -0
  158. package/dist/services/AppService.js +211 -0
  159. package/dist/services/AuditService.d.ts +53 -0
  160. package/dist/services/AuditService.js +47 -0
  161. package/dist/services/CaptureService.d.ts +30 -0
  162. package/dist/services/CaptureService.js +56 -0
  163. package/dist/services/DraftService.d.ts +16 -0
  164. package/dist/services/DraftService.js +24 -0
  165. package/dist/services/FavoriteService.d.ts +27 -0
  166. package/dist/services/FavoriteService.js +40 -0
  167. package/dist/services/FlowService.d.ts +186 -0
  168. package/dist/services/FlowService.js +200 -0
  169. package/dist/services/FolderService.d.ts +128 -0
  170. package/dist/services/FolderService.js +155 -0
  171. package/dist/services/GranularAclService.d.ts +46 -0
  172. package/dist/services/GranularAclService.js +60 -0
  173. package/dist/services/GroupService.d.ts +110 -0
  174. package/dist/services/GroupService.js +140 -0
  175. package/dist/services/InputService.d.ts +78 -0
  176. package/dist/services/InputService.js +99 -0
  177. package/dist/services/JobService.d.ts +636 -0
  178. package/dist/services/JobService.js +564 -0
  179. package/dist/services/OauthService.d.ts +95 -0
  180. package/dist/services/OauthService.js +124 -0
  181. package/dist/services/ResourceService.d.ts +177 -0
  182. package/dist/services/ResourceService.js +244 -0
  183. package/dist/services/ScheduleService.d.ts +103 -0
  184. package/dist/services/ScheduleService.js +134 -0
  185. package/dist/services/ScriptService.d.ts +303 -0
  186. package/dist/services/ScriptService.js +339 -0
  187. package/dist/services/SettingsService.d.ts +15 -0
  188. package/dist/services/SettingsService.js +30 -0
  189. package/dist/services/UserService.d.ts +284 -0
  190. package/dist/services/UserService.js +376 -0
  191. package/dist/services/VariableService.d.ts +83 -0
  192. package/dist/services/VariableService.js +123 -0
  193. package/dist/services/WorkerService.d.ts +25 -0
  194. package/dist/services/WorkerService.js +34 -0
  195. package/dist/services/WorkspaceService.d.ts +227 -0
  196. package/dist/services/WorkspaceService.js +275 -0
  197. package/package.json +7 -2
  198. package/src/core/ApiError.d.ts +10 -0
  199. package/src/core/ApiRequestOptions.d.ts +13 -0
  200. package/src/core/ApiResult.d.ts +7 -0
  201. package/src/core/CancelablePromise.d.ts +26 -0
  202. package/src/core/OpenAPI.d.ts +16 -0
  203. package/src/core/request.d.ts +13 -0
  204. package/src/index.d.ts +95 -0
  205. package/src/models/AppWithLastVersion.d.ts +21 -0
  206. package/src/models/AppWithLastVersionWDraft.d.ts +5 -0
  207. package/src/models/AuditLog.d.ts +32 -0
  208. package/src/models/BranchAll.d.ts +10 -0
  209. package/src/models/BranchOne.d.ts +10 -0
  210. package/src/models/CompletedJob.d.ts +57 -0
  211. package/src/models/ContextualVariable.d.ts +5 -0
  212. package/src/models/CreateInput.d.ts +4 -0
  213. package/src/models/CreateResource.d.ts +6 -0
  214. package/src/models/CreateVariable.d.ts +8 -0
  215. package/src/models/CreateWorkspace.d.ts +5 -0
  216. package/src/models/EditResource.d.ts +5 -0
  217. package/src/models/EditResourceType.d.ts +4 -0
  218. package/src/models/EditSchedule.d.ts +6 -0
  219. package/src/models/EditVariable.d.ts +6 -0
  220. package/src/models/EditWorkspaceUser.d.ts +5 -0
  221. package/src/models/Flow.d.ts +3 -0
  222. package/src/models/FlowMetadata.d.ts +11 -0
  223. package/src/models/FlowModule.d.ts +18 -0
  224. package/src/models/FlowModuleValue.d.ts +8 -0
  225. package/src/models/FlowPreview.d.ts +7 -0
  226. package/src/models/FlowStatus.d.ts +12 -0
  227. package/src/models/FlowStatusModule.d.ts +34 -0
  228. package/src/models/FlowValue.d.ts +6 -0
  229. package/src/models/Folder.d.ts +5 -0
  230. package/src/models/ForloopFlow.d.ts +9 -0
  231. package/src/models/GlobalUserInfo.d.ts +14 -0
  232. package/src/models/Group.d.ts +6 -0
  233. package/src/models/Identity.d.ts +4 -0
  234. package/src/models/Input.d.ts +8 -0
  235. package/src/models/InputTransform.d.ts +3 -0
  236. package/src/models/JavascriptTransform.d.ts +4 -0
  237. package/src/models/Job.d.ts +11 -0
  238. package/src/models/ListableApp.d.ts +18 -0
  239. package/src/models/ListableResource.d.ts +14 -0
  240. package/src/models/ListableVariable.d.ts +14 -0
  241. package/src/models/Login.d.ts +4 -0
  242. package/src/models/MainArgSignature.d.ts +33 -0
  243. package/src/models/NewSchedule.d.ts +10 -0
  244. package/src/models/NewScript.d.ts +29 -0
  245. package/src/models/NewScriptWithDraft.d.ts +5 -0
  246. package/src/models/NewToken.d.ts +4 -0
  247. package/src/models/NewTokenImpersonate.d.ts +5 -0
  248. package/src/models/NewUser.d.ts +5 -0
  249. package/src/models/OpenFlow.d.ts +7 -0
  250. package/src/models/OpenFlowWPath.d.ts +4 -0
  251. package/src/models/PathFlow.d.ts +6 -0
  252. package/src/models/PathScript.d.ts +7 -0
  253. package/src/models/Policy.d.ts +13 -0
  254. package/src/models/Preview.d.ts +16 -0
  255. package/src/models/QueuedJob.d.ts +55 -0
  256. package/src/models/RawScript.d.ts +18 -0
  257. package/src/models/Resource.d.ts +9 -0
  258. package/src/models/ResourceType.d.ts +6 -0
  259. package/src/models/Retry.d.ts +11 -0
  260. package/src/models/RunnableType.d.ts +5 -0
  261. package/src/models/Schedule.d.ts +15 -0
  262. package/src/models/Script.d.ts +43 -0
  263. package/src/models/ScriptArgs.d.ts +1 -0
  264. package/src/models/SlackToken.d.ts +8 -0
  265. package/src/models/StaticTransform.d.ts +4 -0
  266. package/src/models/TokenResponse.d.ts +6 -0
  267. package/src/models/TruncatedToken.d.ts +7 -0
  268. package/src/models/UpdateInput.d.ts +5 -0
  269. package/src/models/Usage.d.ts +3 -0
  270. package/src/models/User.d.ts +14 -0
  271. package/src/models/UserWorkspaceList.d.ts +8 -0
  272. package/src/models/WorkerPing.d.ts +8 -0
  273. package/src/models/Workspace.d.ts +6 -0
  274. package/src/models/WorkspaceInvite.d.ts +6 -0
  275. package/src/services/AdminService.d.ts +39 -0
  276. package/src/services/AppService.d.ts +194 -0
  277. package/src/services/AuditService.d.ts +53 -0
  278. package/src/services/CaptureService.d.ts +30 -0
  279. package/src/services/DraftService.d.ts +16 -0
  280. package/src/services/FavoriteService.d.ts +27 -0
  281. package/src/services/FlowService.d.ts +186 -0
  282. package/src/services/FolderService.d.ts +128 -0
  283. package/src/services/GranularAclService.d.ts +46 -0
  284. package/src/services/GroupService.d.ts +110 -0
  285. package/src/services/InputService.d.ts +78 -0
  286. package/src/services/JobService.d.ts +636 -0
  287. package/src/services/OauthService.d.ts +95 -0
  288. package/src/services/ResourceService.d.ts +177 -0
  289. package/src/services/ScheduleService.d.ts +103 -0
  290. package/src/services/ScriptService.d.ts +303 -0
  291. package/src/services/SettingsService.d.ts +15 -0
  292. package/src/services/UserService.d.ts +284 -0
  293. package/src/services/VariableService.d.ts +83 -0
  294. package/src/services/WorkerService.d.ts +25 -0
  295. package/src/services/WorkspaceService.d.ts +227 -0
  296. package/tsconfig.json +111 -0
@@ -0,0 +1,5 @@
1
+ export type NewUser = {
2
+ email: string;
3
+ username: string;
4
+ is_admin: boolean;
5
+ };
@@ -0,0 +1,7 @@
1
+ import type { FlowValue } from './FlowValue';
2
+ export type OpenFlow = {
3
+ summary: string;
4
+ description?: string;
5
+ value: FlowValue;
6
+ schema?: any;
7
+ };
@@ -0,0 +1,4 @@
1
+ import type { OpenFlow } from './OpenFlow';
2
+ export type OpenFlowWPath = (OpenFlow & {
3
+ path: string;
4
+ });
@@ -0,0 +1,6 @@
1
+ import type { InputTransform } from './InputTransform';
2
+ export type PathFlow = {
3
+ input_transforms: Record<string, InputTransform>;
4
+ path: string;
5
+ type: 'flow';
6
+ };
@@ -0,0 +1,7 @@
1
+ import type { InputTransform } from './InputTransform';
2
+ export type PathScript = {
3
+ input_transforms: Record<string, InputTransform>;
4
+ path: string;
5
+ hash?: string;
6
+ type: 'script';
7
+ };
@@ -0,0 +1,13 @@
1
+ export type Policy = {
2
+ triggerables?: Record<string, any>;
3
+ execution_mode?: Policy.execution_mode;
4
+ on_behalf_of?: string;
5
+ on_behalf_of_email?: string;
6
+ };
7
+ export declare namespace Policy {
8
+ enum execution_mode {
9
+ VIEWER = "viewer",
10
+ PUBLISHER = "publisher",
11
+ ANONYMOUS = "anonymous"
12
+ }
13
+ }
@@ -0,0 +1,16 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export type Preview = {
3
+ content: string;
4
+ path?: string;
5
+ args: ScriptArgs;
6
+ language: Preview.language;
7
+ tag?: string;
8
+ };
9
+ export declare namespace Preview {
10
+ enum language {
11
+ PYTHON3 = "python3",
12
+ DENO = "deno",
13
+ GO = "go",
14
+ BASH = "bash"
15
+ }
16
+ }
@@ -0,0 +1,55 @@
1
+ import type { FlowStatus } from './FlowStatus';
2
+ import type { FlowValue } from './FlowValue';
3
+ import type { ScriptArgs } from './ScriptArgs';
4
+ export 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
+ email: string;
35
+ visible_to_owner: boolean;
36
+ mem_peak?: number;
37
+ tag: string;
38
+ };
39
+ export declare namespace QueuedJob {
40
+ enum job_kind {
41
+ SCRIPT = "script",
42
+ PREVIEW = "preview",
43
+ DEPENDENCIES = "dependencies",
44
+ FLOW = "flow",
45
+ FLOWPREVIEW = "flowpreview",
46
+ SCRIPT_HUB = "script_hub",
47
+ IDENTITY = "identity"
48
+ }
49
+ enum language {
50
+ PYTHON3 = "python3",
51
+ DENO = "deno",
52
+ GO = "go",
53
+ BASH = "bash"
54
+ }
55
+ }
@@ -0,0 +1,18 @@
1
+ import type { InputTransform } from './InputTransform';
2
+ export type RawScript = {
3
+ input_transforms: Record<string, InputTransform>;
4
+ content: string;
5
+ language: RawScript.language;
6
+ path?: string;
7
+ lock?: string;
8
+ type: 'rawscript';
9
+ tag?: string;
10
+ };
11
+ export declare namespace RawScript {
12
+ enum language {
13
+ DENO = "deno",
14
+ PYTHON3 = "python3",
15
+ GO = "go",
16
+ BASH = "bash"
17
+ }
18
+ }
@@ -0,0 +1,9 @@
1
+ export type Resource = {
2
+ workspace_id?: string;
3
+ path: string;
4
+ description?: string;
5
+ resource_type: string;
6
+ value?: any;
7
+ is_oauth: boolean;
8
+ extra_perms?: Record<string, boolean>;
9
+ };
@@ -0,0 +1,6 @@
1
+ export type ResourceType = {
2
+ workspace_id?: string;
3
+ name: string;
4
+ schema?: any;
5
+ description?: string;
6
+ };
@@ -0,0 +1,11 @@
1
+ export type Retry = {
2
+ constant?: {
3
+ attempts?: number;
4
+ seconds?: number;
5
+ };
6
+ exponential?: {
7
+ attempts?: number;
8
+ multiplier?: number;
9
+ seconds?: number;
10
+ };
11
+ };
@@ -0,0 +1,5 @@
1
+ export declare enum RunnableType {
2
+ SCRIPT_HASH = "ScriptHash",
3
+ SCRIPT_PATH = "ScriptPath",
4
+ FLOW_PATH = "FlowPath"
5
+ }
@@ -0,0 +1,15 @@
1
+ import type { ScriptArgs } from './ScriptArgs';
2
+ export type Schedule = {
3
+ path: string;
4
+ edited_by: string;
5
+ edited_at: string;
6
+ schedule: string;
7
+ timezone: string;
8
+ enabled: boolean;
9
+ script_path: string;
10
+ is_flow: boolean;
11
+ args?: ScriptArgs;
12
+ extra_perms: Record<string, boolean>;
13
+ email: string;
14
+ error?: string;
15
+ };
@@ -0,0 +1,43 @@
1
+ export 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
+ kind: Script.kind;
24
+ starred: boolean;
25
+ tag?: string;
26
+ has_draft?: boolean;
27
+ draft_only?: boolean;
28
+ };
29
+ export declare namespace Script {
30
+ enum language {
31
+ PYTHON3 = "python3",
32
+ DENO = "deno",
33
+ GO = "go",
34
+ BASH = "bash"
35
+ }
36
+ enum kind {
37
+ SCRIPT = "script",
38
+ FAILURE = "failure",
39
+ TRIGGER = "trigger",
40
+ COMMAND = "command",
41
+ APPROVAL = "approval"
42
+ }
43
+ }
@@ -0,0 +1 @@
1
+ export type ScriptArgs = Record<string, any>;
@@ -0,0 +1,8 @@
1
+ export type SlackToken = {
2
+ access_token: string;
3
+ team_id: string;
4
+ team_name: string;
5
+ bot: {
6
+ bot_access_token?: string;
7
+ };
8
+ };
@@ -0,0 +1,4 @@
1
+ export type StaticTransform = {
2
+ value?: any;
3
+ type: 'static';
4
+ };
@@ -0,0 +1,6 @@
1
+ export type TokenResponse = {
2
+ access_token: string;
3
+ expires_in?: number;
4
+ refresh_token?: string;
5
+ scope?: Array<string>;
6
+ };
@@ -0,0 +1,7 @@
1
+ export 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,5 @@
1
+ export type UpdateInput = {
2
+ id: string;
3
+ name: string;
4
+ is_public: boolean;
5
+ };
@@ -0,0 +1,3 @@
1
+ export type Usage = {
2
+ executions?: number;
3
+ };
@@ -0,0 +1,14 @@
1
+ import type { Usage } from './Usage';
2
+ export type User = {
3
+ email: string;
4
+ username: string;
5
+ is_admin: boolean;
6
+ is_super_admin: boolean;
7
+ created_at: string;
8
+ operator: boolean;
9
+ disabled: boolean;
10
+ groups?: Array<string>;
11
+ folders: Array<string>;
12
+ folders_owners: Array<string>;
13
+ usage?: Usage;
14
+ };
@@ -0,0 +1,8 @@
1
+ export 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 type WorkerPing = {
2
+ worker: string;
3
+ worker_instance: string;
4
+ last_ping?: number;
5
+ started_at: string;
6
+ ip: string;
7
+ jobs_executed: number;
8
+ };
@@ -0,0 +1,6 @@
1
+ export type Workspace = {
2
+ id: string;
3
+ name: string;
4
+ owner: string;
5
+ domain?: string;
6
+ };
@@ -0,0 +1,6 @@
1
+ export type WorkspaceInvite = {
2
+ workspace_id: string;
3
+ email: string;
4
+ is_admin: boolean;
5
+ operator: boolean;
6
+ };
@@ -0,0 +1,39 @@
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
+ /**
13
+ * new user
14
+ */
15
+ requestBody: NewUser;
16
+ }): CancelablePromise<string>;
17
+ /**
18
+ * update user (require admin privilege)
19
+ * @returns string edited user
20
+ * @throws ApiError
21
+ */
22
+ static updateUser({ workspace, username, requestBody, }: {
23
+ workspace: string;
24
+ username: string;
25
+ /**
26
+ * new user
27
+ */
28
+ requestBody: EditWorkspaceUser;
29
+ }): CancelablePromise<string>;
30
+ /**
31
+ * delete user (require admin privilege)
32
+ * @returns string delete user
33
+ * @throws ApiError
34
+ */
35
+ static deleteUser({ workspace, username, }: {
36
+ workspace: string;
37
+ username: string;
38
+ }): CancelablePromise<string>;
39
+ }
@@ -0,0 +1,194 @@
1
+ import type { AppWithLastVersion } from '../models/AppWithLastVersion';
2
+ import type { AppWithLastVersionWDraft } from '../models/AppWithLastVersionWDraft';
3
+ import type { ListableApp } from '../models/ListableApp';
4
+ import type { Policy } from '../models/Policy';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class AppService {
7
+ /**
8
+ * list all available hub apps
9
+ * @returns any hub apps list
10
+ * @throws ApiError
11
+ */
12
+ static listHubApps(): CancelablePromise<{
13
+ apps?: Array<{
14
+ id: number;
15
+ app_id: number;
16
+ summary: string;
17
+ apps: Array<string>;
18
+ approved: boolean;
19
+ votes: number;
20
+ }>;
21
+ }>;
22
+ /**
23
+ * get hub app by id
24
+ * @returns any app
25
+ * @throws ApiError
26
+ */
27
+ static getHubAppById({ id, }: {
28
+ id: number;
29
+ }): CancelablePromise<{
30
+ app: {
31
+ summary: string;
32
+ value: any;
33
+ };
34
+ }>;
35
+ /**
36
+ * list all available apps
37
+ * @returns ListableApp All available apps
38
+ * @throws ApiError
39
+ */
40
+ static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }: {
41
+ workspace: string;
42
+ /**
43
+ * which page to return (start at 1, default 1)
44
+ */
45
+ page?: number;
46
+ /**
47
+ * number of items to return for a given page (default 30, max 100)
48
+ */
49
+ perPage?: number;
50
+ /**
51
+ * order by desc order (default true)
52
+ */
53
+ orderDesc?: boolean;
54
+ /**
55
+ * mask to filter exact matching user creator
56
+ */
57
+ createdBy?: string;
58
+ /**
59
+ * mask to filter matching starting path
60
+ */
61
+ pathStart?: string;
62
+ /**
63
+ * mask to filter exact matching path
64
+ */
65
+ pathExact?: string;
66
+ /**
67
+ * (default false)
68
+ * show only the starred items
69
+ *
70
+ */
71
+ starredOnly?: boolean;
72
+ }): CancelablePromise<Array<ListableApp>>;
73
+ /**
74
+ * does an app exisst at path
75
+ * @returns boolean app exists
76
+ * @throws ApiError
77
+ */
78
+ static existsApp({ workspace, path, }: {
79
+ workspace: string;
80
+ path: string;
81
+ }): CancelablePromise<boolean>;
82
+ /**
83
+ * get app by path
84
+ * @returns AppWithLastVersion app details
85
+ * @throws ApiError
86
+ */
87
+ static getAppByPath({ workspace, path, }: {
88
+ workspace: string;
89
+ path: string;
90
+ }): CancelablePromise<AppWithLastVersion>;
91
+ /**
92
+ * get app by path with draft
93
+ * @returns AppWithLastVersionWDraft app details with draft
94
+ * @throws ApiError
95
+ */
96
+ static getAppByPathWithDraft({ workspace, path, }: {
97
+ workspace: string;
98
+ path: string;
99
+ }): CancelablePromise<AppWithLastVersionWDraft>;
100
+ /**
101
+ * get public app by secret
102
+ * @returns AppWithLastVersion app details
103
+ * @throws ApiError
104
+ */
105
+ static getPublicAppBySecret({ workspace, path, }: {
106
+ workspace: string;
107
+ path: string;
108
+ }): CancelablePromise<AppWithLastVersion>;
109
+ /**
110
+ * get public secret of app
111
+ * @returns string app secret
112
+ * @throws ApiError
113
+ */
114
+ static getPublicSecretOfApp({ workspace, path, }: {
115
+ workspace: string;
116
+ path: string;
117
+ }): CancelablePromise<string>;
118
+ /**
119
+ * get app by version
120
+ * @returns AppWithLastVersion app details
121
+ * @throws ApiError
122
+ */
123
+ static getAppByVersion({ workspace, id, }: {
124
+ workspace: string;
125
+ id: number;
126
+ }): CancelablePromise<AppWithLastVersion>;
127
+ /**
128
+ * create app
129
+ * @returns string app created
130
+ * @throws ApiError
131
+ */
132
+ static createApp({ workspace, requestBody, }: {
133
+ workspace: string;
134
+ /**
135
+ * new app
136
+ */
137
+ requestBody: {
138
+ path: string;
139
+ value: any;
140
+ summary: string;
141
+ policy: Policy;
142
+ draft_only?: boolean;
143
+ };
144
+ }): CancelablePromise<string>;
145
+ /**
146
+ * delete app
147
+ * @returns string app deleted
148
+ * @throws ApiError
149
+ */
150
+ static deleteApp({ workspace, path, }: {
151
+ workspace: string;
152
+ path: string;
153
+ }): CancelablePromise<string>;
154
+ /**
155
+ * update app
156
+ * @returns string app updated
157
+ * @throws ApiError
158
+ */
159
+ static updateApp({ workspace, path, requestBody, }: {
160
+ workspace: string;
161
+ path: string;
162
+ /**
163
+ * update app
164
+ */
165
+ requestBody: {
166
+ path?: string;
167
+ summary?: string;
168
+ value?: any;
169
+ policy?: Policy;
170
+ };
171
+ }): CancelablePromise<string>;
172
+ /**
173
+ * executeComponent
174
+ * @returns string job uuid
175
+ * @throws ApiError
176
+ */
177
+ static executeComponent({ workspace, path, requestBody, }: {
178
+ workspace: string;
179
+ path: string;
180
+ /**
181
+ * update app
182
+ */
183
+ requestBody: {
184
+ path?: string;
185
+ args: any;
186
+ raw_code?: {
187
+ content: string;
188
+ language: string;
189
+ path?: string;
190
+ };
191
+ force_viewer_static_fields?: any;
192
+ };
193
+ }): CancelablePromise<string>;
194
+ }
@@ -0,0 +1,53 @@
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
+ /**
21
+ * which page to return (start at 1, default 1)
22
+ */
23
+ page?: number;
24
+ /**
25
+ * number of items to return for a given page (default 30, max 100)
26
+ */
27
+ perPage?: number;
28
+ /**
29
+ * filter on created before (exclusive) timestamp
30
+ */
31
+ before?: string;
32
+ /**
33
+ * filter on created after (exclusive) timestamp
34
+ */
35
+ after?: string;
36
+ /**
37
+ * filter on exact username of user
38
+ */
39
+ username?: string;
40
+ /**
41
+ * filter on exact or prefix name of operation
42
+ */
43
+ operation?: string;
44
+ /**
45
+ * filter on exact or prefix name of resource
46
+ */
47
+ resource?: string;
48
+ /**
49
+ * filter on type of operation
50
+ */
51
+ actionKind?: 'Create' | 'Update' | 'Delete' | 'Execute';
52
+ }): CancelablePromise<Array<AuditLog>>;
53
+ }
@@ -0,0 +1,30 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class CaptureService {
3
+ /**
4
+ * update flow preview capture
5
+ * @returns void
6
+ * @throws ApiError
7
+ */
8
+ static updateCapture({ workspace, path, }: {
9
+ workspace: string;
10
+ path: string;
11
+ }): CancelablePromise<void>;
12
+ /**
13
+ * create flow preview capture
14
+ * @returns any flow preview capture created
15
+ * @throws ApiError
16
+ */
17
+ static createCapture({ workspace, path, }: {
18
+ workspace: string;
19
+ path: string;
20
+ }): CancelablePromise<any>;
21
+ /**
22
+ * get flow preview capture
23
+ * @returns any captured flow preview
24
+ * @throws ApiError
25
+ */
26
+ static getCapture({ workspace, path, }: {
27
+ workspace: string;
28
+ path: string;
29
+ }): CancelablePromise<any>;
30
+ }
@@ -0,0 +1,16 @@
1
+ import type { CancelablePromise } from '../core/CancelablePromise';
2
+ export declare class DraftService {
3
+ /**
4
+ * create draft
5
+ * @returns string draft created
6
+ * @throws ApiError
7
+ */
8
+ static createDraft({ workspace, requestBody, }: {
9
+ workspace: string;
10
+ requestBody: {
11
+ path: string;
12
+ typ: 'flow' | 'script' | 'app';
13
+ value?: any;
14
+ };
15
+ }): CancelablePromise<string>;
16
+ }