windmill-client 0.3.11 → 0.3.13

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 (320) hide show
  1. package/dist/client.js +120 -155
  2. package/dist/core/CancelablePromise.js +3 -6
  3. package/dist/core/request.d.ts +0 -4
  4. package/dist/core/request.js +47 -43
  5. package/dist/index.js +42 -42
  6. package/dist/services/AdminService.js +2 -2
  7. package/dist/services/AppService.js +2 -2
  8. package/dist/services/AuditService.js +2 -2
  9. package/dist/services/CaptureService.js +2 -2
  10. package/dist/services/DraftService.js +2 -2
  11. package/dist/services/FavoriteService.js +2 -2
  12. package/dist/services/FlowService.js +2 -2
  13. package/dist/services/FolderService.js +2 -2
  14. package/dist/services/GranularAclService.js +2 -2
  15. package/dist/services/GroupService.js +2 -2
  16. package/dist/services/InputService.js +2 -2
  17. package/dist/services/JobService.js +2 -2
  18. package/dist/services/OauthService.js +2 -2
  19. package/dist/services/RawAppService.js +2 -2
  20. package/dist/services/ResourceService.js +2 -2
  21. package/dist/services/ScheduleService.js +2 -2
  22. package/dist/services/ScriptService.js +2 -2
  23. package/dist/services/SettingsService.js +2 -2
  24. package/dist/services/UserService.js +2 -2
  25. package/dist/services/VariableService.js +2 -2
  26. package/dist/services/WorkerService.js +2 -2
  27. package/dist/services/WorkspaceService.js +2 -2
  28. package/dist/src/client.d.ts +77 -0
  29. package/dist/src/client.js +301 -0
  30. package/dist/src/core/ApiError.d.ts +10 -0
  31. package/dist/src/core/ApiError.js +11 -0
  32. package/dist/src/core/ApiRequestOptions.d.ts +13 -0
  33. package/dist/src/core/ApiRequestOptions.js +1 -0
  34. package/dist/src/core/ApiResult.d.ts +7 -0
  35. package/dist/src/core/ApiResult.js +1 -0
  36. package/dist/src/core/CancelablePromise.d.ts +20 -0
  37. package/dist/src/core/CancelablePromise.js +108 -0
  38. package/dist/src/core/OpenAPI.d.ts +16 -0
  39. package/dist/src/core/OpenAPI.js +11 -0
  40. package/dist/src/core/request.d.ts +30 -0
  41. package/dist/src/core/request.js +274 -0
  42. package/dist/src/index.d.ts +143 -0
  43. package/dist/src/index.js +46 -0
  44. package/dist/src/models/AccountId.d.ts +1 -0
  45. package/dist/src/models/AccountId.js +5 -0
  46. package/dist/src/models/ActionKind.d.ts +9 -0
  47. package/dist/src/models/ActionKind.js +14 -0
  48. package/dist/src/models/After.d.ts +4 -0
  49. package/dist/src/models/After.js +5 -0
  50. package/dist/src/models/AppWithLastVersion.d.ts +21 -0
  51. package/dist/src/models/AppWithLastVersion.js +13 -0
  52. package/dist/src/models/AppWithLastVersionWDraft.d.ts +5 -0
  53. package/dist/src/models/AppWithLastVersionWDraft.js +5 -0
  54. package/dist/src/models/ArgsFilter.d.ts +4 -0
  55. package/dist/src/models/ArgsFilter.js +5 -0
  56. package/dist/src/models/AuditLog.d.ts +32 -0
  57. package/dist/src/models/AuditLog.js +30 -0
  58. package/dist/src/models/Before.d.ts +4 -0
  59. package/dist/src/models/Before.js +5 -0
  60. package/dist/src/models/BranchAll.d.ts +10 -0
  61. package/dist/src/models/BranchAll.js +5 -0
  62. package/dist/src/models/BranchOne.d.ts +10 -0
  63. package/dist/src/models/BranchOne.js +5 -0
  64. package/dist/src/models/ClientName.d.ts +1 -0
  65. package/dist/src/models/ClientName.js +5 -0
  66. package/dist/src/models/CompletedJob.d.ts +61 -0
  67. package/dist/src/models/CompletedJob.js +28 -0
  68. package/dist/src/models/ContextualVariable.d.ts +5 -0
  69. package/dist/src/models/ContextualVariable.js +5 -0
  70. package/dist/src/models/CreateInput.d.ts +4 -0
  71. package/dist/src/models/CreateInput.js +5 -0
  72. package/dist/src/models/CreateResource.d.ts +6 -0
  73. package/dist/src/models/CreateResource.js +5 -0
  74. package/dist/src/models/CreateVariable.d.ts +8 -0
  75. package/dist/src/models/CreateVariable.js +5 -0
  76. package/dist/src/models/CreateWorkspace.d.ts +5 -0
  77. package/dist/src/models/CreateWorkspace.js +5 -0
  78. package/dist/src/models/CreatedBy.d.ts +4 -0
  79. package/dist/src/models/CreatedBy.js +5 -0
  80. package/dist/src/models/EditResource.d.ts +5 -0
  81. package/dist/src/models/EditResource.js +5 -0
  82. package/dist/src/models/EditResourceType.d.ts +4 -0
  83. package/dist/src/models/EditResourceType.js +5 -0
  84. package/dist/src/models/EditSchedule.d.ts +7 -0
  85. package/dist/src/models/EditSchedule.js +5 -0
  86. package/dist/src/models/EditVariable.d.ts +6 -0
  87. package/dist/src/models/EditVariable.js +5 -0
  88. package/dist/src/models/EditWorkspaceUser.d.ts +5 -0
  89. package/dist/src/models/EditWorkspaceUser.js +5 -0
  90. package/dist/src/models/Flow.d.ts +3 -0
  91. package/dist/src/models/Flow.js +5 -0
  92. package/dist/src/models/FlowMetadata.d.ts +11 -0
  93. package/dist/src/models/FlowMetadata.js +5 -0
  94. package/dist/src/models/FlowModule.d.ts +26 -0
  95. package/dist/src/models/FlowModule.js +5 -0
  96. package/dist/src/models/FlowModuleValue.d.ts +10 -0
  97. package/dist/src/models/FlowModuleValue.js +5 -0
  98. package/dist/src/models/FlowPreview.d.ts +7 -0
  99. package/dist/src/models/FlowPreview.js +5 -0
  100. package/dist/src/models/FlowStatus.d.ts +12 -0
  101. package/dist/src/models/FlowStatus.js +5 -0
  102. package/dist/src/models/FlowStatusModule.d.ts +34 -0
  103. package/dist/src/models/FlowStatusModule.js +16 -0
  104. package/dist/src/models/FlowValue.d.ts +6 -0
  105. package/dist/src/models/FlowValue.js +5 -0
  106. package/dist/src/models/Folder.d.ts +5 -0
  107. package/dist/src/models/Folder.js +5 -0
  108. package/dist/src/models/ForloopFlow.d.ts +9 -0
  109. package/dist/src/models/ForloopFlow.js +5 -0
  110. package/dist/src/models/GlobalUserInfo.d.ts +14 -0
  111. package/dist/src/models/GlobalUserInfo.js +12 -0
  112. package/dist/src/models/Graphql.d.ts +3 -0
  113. package/dist/src/models/Graphql.js +5 -0
  114. package/dist/src/models/Group.d.ts +6 -0
  115. package/dist/src/models/Group.js +5 -0
  116. package/dist/src/models/Http.d.ts +3 -0
  117. package/dist/src/models/Http.js +5 -0
  118. package/dist/src/models/Identity.d.ts +4 -0
  119. package/dist/src/models/Identity.js +5 -0
  120. package/dist/src/models/IncludeHeader.d.ts +6 -0
  121. package/dist/src/models/IncludeHeader.js +5 -0
  122. package/dist/src/models/Input.d.ts +8 -0
  123. package/dist/src/models/Input.js +5 -0
  124. package/dist/src/models/InputId.d.ts +1 -0
  125. package/dist/src/models/InputId.js +5 -0
  126. package/dist/src/models/InputTransform.d.ts +3 -0
  127. package/dist/src/models/InputTransform.js +5 -0
  128. package/dist/src/models/JavascriptTransform.d.ts +4 -0
  129. package/dist/src/models/JavascriptTransform.js +5 -0
  130. package/dist/src/models/Job.d.ts +11 -0
  131. package/dist/src/models/Job.js +12 -0
  132. package/dist/src/models/JobId.d.ts +1 -0
  133. package/dist/src/models/JobId.js +5 -0
  134. package/dist/src/models/JobKinds.d.ts +4 -0
  135. package/dist/src/models/JobKinds.js +5 -0
  136. package/dist/src/models/ListableApp.d.ts +18 -0
  137. package/dist/src/models/ListableApp.js +13 -0
  138. package/dist/src/models/ListableRawApp.d.ts +9 -0
  139. package/dist/src/models/ListableRawApp.js +5 -0
  140. package/dist/src/models/ListableResource.d.ts +14 -0
  141. package/dist/src/models/ListableResource.js +5 -0
  142. package/dist/src/models/ListableVariable.d.ts +14 -0
  143. package/dist/src/models/ListableVariable.js +5 -0
  144. package/dist/src/models/Login.d.ts +4 -0
  145. package/dist/src/models/Login.js +5 -0
  146. package/dist/src/models/MainArgSignature.d.ts +33 -0
  147. package/dist/src/models/MainArgSignature.js +12 -0
  148. package/dist/src/models/Name.d.ts +1 -0
  149. package/dist/src/models/Name.js +5 -0
  150. package/dist/src/models/NewJobId.d.ts +4 -0
  151. package/dist/src/models/NewJobId.js +5 -0
  152. package/dist/src/models/NewSchedule.d.ts +11 -0
  153. package/dist/src/models/NewSchedule.js +5 -0
  154. package/dist/src/models/NewScript.d.ts +33 -0
  155. package/dist/src/models/NewScript.js +25 -0
  156. package/dist/src/models/NewScriptWithDraft.d.ts +5 -0
  157. package/dist/src/models/NewScriptWithDraft.js +5 -0
  158. package/dist/src/models/NewToken.d.ts +5 -0
  159. package/dist/src/models/NewToken.js +5 -0
  160. package/dist/src/models/NewTokenImpersonate.d.ts +5 -0
  161. package/dist/src/models/NewTokenImpersonate.js +5 -0
  162. package/dist/src/models/NewUser.d.ts +5 -0
  163. package/dist/src/models/NewUser.js +5 -0
  164. package/dist/src/models/OpenFlow.d.ts +7 -0
  165. package/dist/src/models/OpenFlow.js +5 -0
  166. package/dist/src/models/OpenFlowWPath.d.ts +4 -0
  167. package/dist/src/models/OpenFlowWPath.js +5 -0
  168. package/dist/src/models/Operation.d.ts +4 -0
  169. package/dist/src/models/Operation.js +5 -0
  170. package/dist/src/models/OrderDesc.d.ts +4 -0
  171. package/dist/src/models/OrderDesc.js +5 -0
  172. package/dist/src/models/Page.d.ts +4 -0
  173. package/dist/src/models/Page.js +5 -0
  174. package/dist/src/models/ParentJob.d.ts +4 -0
  175. package/dist/src/models/ParentJob.js +5 -0
  176. package/dist/src/models/Path.d.ts +1 -0
  177. package/dist/src/models/Path.js +5 -0
  178. package/dist/src/models/PathFlow.d.ts +6 -0
  179. package/dist/src/models/PathFlow.js +5 -0
  180. package/dist/src/models/PathId.d.ts +1 -0
  181. package/dist/src/models/PathId.js +5 -0
  182. package/dist/src/models/PathScript.d.ts +7 -0
  183. package/dist/src/models/PathScript.js +5 -0
  184. package/dist/src/models/Payload.d.ts +6 -0
  185. package/dist/src/models/Payload.js +5 -0
  186. package/dist/src/models/PerPage.d.ts +4 -0
  187. package/dist/src/models/PerPage.js +5 -0
  188. package/dist/src/models/Policy.d.ts +13 -0
  189. package/dist/src/models/Policy.js +13 -0
  190. package/dist/src/models/Preview.d.ts +25 -0
  191. package/dist/src/models/Preview.js +23 -0
  192. package/dist/src/models/QueueLimit.d.ts +5 -0
  193. package/dist/src/models/QueueLimit.js +5 -0
  194. package/dist/src/models/QueuedJob.d.ts +59 -0
  195. package/dist/src/models/QueuedJob.js +28 -0
  196. package/dist/src/models/RawScript.d.ts +20 -0
  197. package/dist/src/models/RawScript.js +16 -0
  198. package/dist/src/models/Resource.d.ts +9 -0
  199. package/dist/src/models/Resource.js +5 -0
  200. package/dist/src/models/ResourceName.d.ts +4 -0
  201. package/dist/src/models/ResourceName.js +5 -0
  202. package/dist/src/models/ResourceType.d.ts +6 -0
  203. package/dist/src/models/ResourceType.js +5 -0
  204. package/dist/src/models/ResultFilter.d.ts +4 -0
  205. package/dist/src/models/ResultFilter.js +5 -0
  206. package/dist/src/models/Retry.d.ts +11 -0
  207. package/dist/src/models/Retry.js +5 -0
  208. package/dist/src/models/RunnableId.d.ts +1 -0
  209. package/dist/src/models/RunnableId.js +5 -0
  210. package/dist/src/models/RunnableType.d.ts +5 -0
  211. package/dist/src/models/RunnableType.js +10 -0
  212. package/dist/src/models/RunnableTypeQuery.d.ts +2 -0
  213. package/dist/src/models/RunnableTypeQuery.js +5 -0
  214. package/dist/src/models/Running.d.ts +4 -0
  215. package/dist/src/models/Running.js +5 -0
  216. package/dist/src/models/Schedule.d.ts +16 -0
  217. package/dist/src/models/Schedule.js +5 -0
  218. package/dist/src/models/SchedulePath.d.ts +4 -0
  219. package/dist/src/models/SchedulePath.js +5 -0
  220. package/dist/src/models/ScheduleWJobs.d.ts +8 -0
  221. package/dist/src/models/ScheduleWJobs.js +5 -0
  222. package/dist/src/models/Script.d.ts +47 -0
  223. package/dist/src/models/Script.js +25 -0
  224. package/dist/src/models/ScriptArgs.d.ts +1 -0
  225. package/dist/src/models/ScriptArgs.js +5 -0
  226. package/dist/src/models/ScriptExactHash.d.ts +4 -0
  227. package/dist/src/models/ScriptExactHash.js +5 -0
  228. package/dist/src/models/ScriptExactPath.d.ts +4 -0
  229. package/dist/src/models/ScriptExactPath.js +5 -0
  230. package/dist/src/models/ScriptHash.d.ts +1 -0
  231. package/dist/src/models/ScriptHash.js +5 -0
  232. package/dist/src/models/ScriptPath.d.ts +1 -0
  233. package/dist/src/models/ScriptPath.js +5 -0
  234. package/dist/src/models/ScriptStartPath.d.ts +4 -0
  235. package/dist/src/models/ScriptStartPath.js +5 -0
  236. package/dist/src/models/SlackToken.d.ts +8 -0
  237. package/dist/src/models/SlackToken.js +5 -0
  238. package/dist/src/models/StartedAfter.d.ts +4 -0
  239. package/dist/src/models/StartedAfter.js +5 -0
  240. package/dist/src/models/StartedBefore.d.ts +4 -0
  241. package/dist/src/models/StartedBefore.js +5 -0
  242. package/dist/src/models/StaticTransform.d.ts +4 -0
  243. package/dist/src/models/StaticTransform.js +5 -0
  244. package/dist/src/models/Success.d.ts +4 -0
  245. package/dist/src/models/Success.js +5 -0
  246. package/dist/src/models/Suspended.d.ts +4 -0
  247. package/dist/src/models/Suspended.js +5 -0
  248. package/dist/src/models/Tag.d.ts +4 -0
  249. package/dist/src/models/Tag.js +5 -0
  250. package/dist/src/models/Token.d.ts +1 -0
  251. package/dist/src/models/Token.js +5 -0
  252. package/dist/src/models/TokenResponse.d.ts +6 -0
  253. package/dist/src/models/TokenResponse.js +5 -0
  254. package/dist/src/models/TruncatedToken.d.ts +8 -0
  255. package/dist/src/models/TruncatedToken.js +5 -0
  256. package/dist/src/models/UpdateInput.d.ts +5 -0
  257. package/dist/src/models/UpdateInput.js +5 -0
  258. package/dist/src/models/Usage.d.ts +3 -0
  259. package/dist/src/models/Usage.js +5 -0
  260. package/dist/src/models/User.d.ts +14 -0
  261. package/dist/src/models/User.js +5 -0
  262. package/dist/src/models/UserWorkspaceList.d.ts +8 -0
  263. package/dist/src/models/UserWorkspaceList.js +5 -0
  264. package/dist/src/models/Username.d.ts +4 -0
  265. package/dist/src/models/Username.js +5 -0
  266. package/dist/src/models/VersionId.d.ts +1 -0
  267. package/dist/src/models/VersionId.js +5 -0
  268. package/dist/src/models/WorkerPing.d.ts +8 -0
  269. package/dist/src/models/WorkerPing.js +5 -0
  270. package/dist/src/models/Workspace.d.ts +6 -0
  271. package/dist/src/models/Workspace.js +5 -0
  272. package/dist/src/models/WorkspaceId.d.ts +1 -0
  273. package/dist/src/models/WorkspaceId.js +5 -0
  274. package/dist/src/models/WorkspaceInvite.d.ts +6 -0
  275. package/dist/src/models/WorkspaceInvite.js +5 -0
  276. package/dist/src/services/AdminService.d.ts +39 -0
  277. package/dist/src/services/AdminService.js +52 -0
  278. package/dist/src/services/AppService.d.ts +195 -0
  279. package/dist/src/services/AppService.js +207 -0
  280. package/dist/src/services/AuditService.d.ts +53 -0
  281. package/dist/src/services/AuditService.js +43 -0
  282. package/dist/src/services/CaptureService.d.ts +30 -0
  283. package/dist/src/services/CaptureService.js +52 -0
  284. package/dist/src/services/DraftService.d.ts +26 -0
  285. package/dist/src/services/DraftService.js +36 -0
  286. package/dist/src/services/FavoriteService.d.ts +27 -0
  287. package/dist/src/services/FavoriteService.js +36 -0
  288. package/dist/src/services/FlowService.d.ts +186 -0
  289. package/dist/src/services/FlowService.js +196 -0
  290. package/dist/src/services/FolderService.d.ts +128 -0
  291. package/dist/src/services/FolderService.js +151 -0
  292. package/dist/src/services/GranularAclService.d.ts +46 -0
  293. package/dist/src/services/GranularAclService.js +56 -0
  294. package/dist/src/services/GroupService.d.ts +110 -0
  295. package/dist/src/services/GroupService.js +136 -0
  296. package/dist/src/services/InputService.d.ts +78 -0
  297. package/dist/src/services/InputService.js +95 -0
  298. package/dist/src/services/JobService.d.ts +761 -0
  299. package/dist/src/services/JobService.js +646 -0
  300. package/dist/src/services/OauthService.d.ts +95 -0
  301. package/dist/src/services/OauthService.js +120 -0
  302. package/dist/src/services/RawAppService.d.ts +103 -0
  303. package/dist/src/services/RawAppService.js +106 -0
  304. package/dist/src/services/ResourceService.d.ts +178 -0
  305. package/dist/src/services/ResourceService.js +243 -0
  306. package/dist/src/services/ScheduleService.d.ts +120 -0
  307. package/dist/src/services/ScheduleService.js +148 -0
  308. package/dist/src/services/ScriptService.d.ts +258 -0
  309. package/dist/src/services/ScriptService.js +283 -0
  310. package/dist/src/services/SettingsService.d.ts +27 -0
  311. package/dist/src/services/SettingsService.js +48 -0
  312. package/dist/src/services/UserService.d.ts +306 -0
  313. package/dist/src/services/UserService.js +397 -0
  314. package/dist/src/services/VariableService.d.ts +95 -0
  315. package/dist/src/services/VariableService.js +135 -0
  316. package/dist/src/services/WorkerService.d.ts +25 -0
  317. package/dist/src/services/WorkerService.js +30 -0
  318. package/dist/src/services/WorkspaceService.d.ts +249 -0
  319. package/dist/src/services/WorkspaceService.js +301 -0
  320. package/package.json +2 -3
@@ -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,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -0,0 +1,4 @@
1
+ /**
2
+ * filter on exact username of user
3
+ */
4
+ export type Username = string;
@@ -0,0 +1,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -0,0 +1 @@
1
+ export type VersionId = number;
@@ -0,0 +1,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -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,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -0,0 +1,6 @@
1
+ export type Workspace = {
2
+ id: string;
3
+ name: string;
4
+ owner: string;
5
+ domain?: string;
6
+ };
@@ -0,0 +1,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -0,0 +1 @@
1
+ export type WorkspaceId = string;
@@ -0,0 +1,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -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,5 @@
1
+ /* generated using openapi-typescript-codegen -- do no edit */
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ export {};
@@ -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,52 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class AdminService {
4
+ /**
5
+ * create user (require admin privilege)
6
+ * @returns string user created
7
+ * @throws ApiError
8
+ */
9
+ static createUser({ workspace, requestBody, }) {
10
+ return __request(OpenAPI, {
11
+ method: 'POST',
12
+ url: '/w/{workspace}/users/add',
13
+ path: {
14
+ 'workspace': workspace,
15
+ },
16
+ body: requestBody,
17
+ mediaType: 'application/json',
18
+ });
19
+ }
20
+ /**
21
+ * update user (require admin privilege)
22
+ * @returns string edited user
23
+ * @throws ApiError
24
+ */
25
+ static updateUser({ workspace, username, requestBody, }) {
26
+ return __request(OpenAPI, {
27
+ method: 'POST',
28
+ url: '/w/{workspace}/users/update/{username}',
29
+ path: {
30
+ 'workspace': workspace,
31
+ 'username': username,
32
+ },
33
+ body: requestBody,
34
+ mediaType: 'application/json',
35
+ });
36
+ }
37
+ /**
38
+ * delete user (require admin privilege)
39
+ * @returns string delete user
40
+ * @throws ApiError
41
+ */
42
+ static deleteUser({ workspace, username, }) {
43
+ return __request(OpenAPI, {
44
+ method: 'DELETE',
45
+ url: '/w/{workspace}/users/delete/{username}',
46
+ path: {
47
+ 'workspace': workspace,
48
+ 'username': username,
49
+ },
50
+ });
51
+ }
52
+ }
@@ -0,0 +1,195 @@
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
+ * create app
75
+ * @returns string app created
76
+ * @throws ApiError
77
+ */
78
+ static createApp({ workspace, requestBody, }: {
79
+ workspace: string;
80
+ /**
81
+ * new app
82
+ */
83
+ requestBody: {
84
+ path: string;
85
+ value: any;
86
+ summary: string;
87
+ policy: Policy;
88
+ draft_only?: boolean;
89
+ };
90
+ }): CancelablePromise<string>;
91
+ /**
92
+ * does an app exisst at path
93
+ * @returns boolean app exists
94
+ * @throws ApiError
95
+ */
96
+ static existsApp({ workspace, path, }: {
97
+ workspace: string;
98
+ path: string;
99
+ }): CancelablePromise<boolean>;
100
+ /**
101
+ * get app by path
102
+ * @returns AppWithLastVersion app details
103
+ * @throws ApiError
104
+ */
105
+ static getAppByPath({ workspace, path, }: {
106
+ workspace: string;
107
+ path: string;
108
+ }): CancelablePromise<AppWithLastVersion>;
109
+ /**
110
+ * get app by path with draft
111
+ * @returns AppWithLastVersionWDraft app details with draft
112
+ * @throws ApiError
113
+ */
114
+ static getAppByPathWithDraft({ workspace, path, }: {
115
+ workspace: string;
116
+ path: string;
117
+ }): CancelablePromise<AppWithLastVersionWDraft>;
118
+ /**
119
+ * get public app by secret
120
+ * @returns AppWithLastVersion app details
121
+ * @throws ApiError
122
+ */
123
+ static getPublicAppBySecret({ workspace, path, }: {
124
+ workspace: string;
125
+ path: string;
126
+ }): CancelablePromise<AppWithLastVersion>;
127
+ /**
128
+ * get public secret of app
129
+ * @returns string app secret
130
+ * @throws ApiError
131
+ */
132
+ static getPublicSecretOfApp({ workspace, path, }: {
133
+ workspace: string;
134
+ path: string;
135
+ }): CancelablePromise<string>;
136
+ /**
137
+ * get app by version
138
+ * @returns AppWithLastVersion app details
139
+ * @throws ApiError
140
+ */
141
+ static getAppByVersion({ workspace, id, }: {
142
+ workspace: string;
143
+ id: number;
144
+ }): CancelablePromise<AppWithLastVersion>;
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
+ component: string;
185
+ path?: string;
186
+ args: any;
187
+ raw_code?: {
188
+ content: string;
189
+ language: string;
190
+ path?: string;
191
+ };
192
+ force_viewer_static_fields?: Record<string, any>;
193
+ };
194
+ }): CancelablePromise<string>;
195
+ }
@@ -0,0 +1,207 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export class AppService {
4
+ /**
5
+ * list all available hub apps
6
+ * @returns any hub apps list
7
+ * @throws ApiError
8
+ */
9
+ static listHubApps() {
10
+ return __request(OpenAPI, {
11
+ method: 'GET',
12
+ url: '/apps/hub/list',
13
+ });
14
+ }
15
+ /**
16
+ * get hub app by id
17
+ * @returns any app
18
+ * @throws ApiError
19
+ */
20
+ static getHubAppById({ id, }) {
21
+ return __request(OpenAPI, {
22
+ method: 'GET',
23
+ url: '/apps/hub/get/{id}',
24
+ path: {
25
+ 'id': id,
26
+ },
27
+ });
28
+ }
29
+ /**
30
+ * list all available apps
31
+ * @returns ListableApp All available apps
32
+ * @throws ApiError
33
+ */
34
+ static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
35
+ return __request(OpenAPI, {
36
+ method: 'GET',
37
+ url: '/w/{workspace}/apps/list',
38
+ path: {
39
+ 'workspace': workspace,
40
+ },
41
+ query: {
42
+ 'page': page,
43
+ 'per_page': perPage,
44
+ 'order_desc': orderDesc,
45
+ 'created_by': createdBy,
46
+ 'path_start': pathStart,
47
+ 'path_exact': pathExact,
48
+ 'starred_only': starredOnly,
49
+ },
50
+ });
51
+ }
52
+ /**
53
+ * create app
54
+ * @returns string app created
55
+ * @throws ApiError
56
+ */
57
+ static createApp({ workspace, requestBody, }) {
58
+ return __request(OpenAPI, {
59
+ method: 'POST',
60
+ url: '/w/{workspace}/apps/create',
61
+ path: {
62
+ 'workspace': workspace,
63
+ },
64
+ body: requestBody,
65
+ mediaType: 'application/json',
66
+ });
67
+ }
68
+ /**
69
+ * does an app exisst at path
70
+ * @returns boolean app exists
71
+ * @throws ApiError
72
+ */
73
+ static existsApp({ workspace, path, }) {
74
+ return __request(OpenAPI, {
75
+ method: 'GET',
76
+ url: '/w/{workspace}/apps/exists/{path}',
77
+ path: {
78
+ 'workspace': workspace,
79
+ 'path': path,
80
+ },
81
+ });
82
+ }
83
+ /**
84
+ * get app by path
85
+ * @returns AppWithLastVersion app details
86
+ * @throws ApiError
87
+ */
88
+ static getAppByPath({ workspace, path, }) {
89
+ return __request(OpenAPI, {
90
+ method: 'GET',
91
+ url: '/w/{workspace}/apps/get/p/{path}',
92
+ path: {
93
+ 'workspace': workspace,
94
+ 'path': path,
95
+ },
96
+ });
97
+ }
98
+ /**
99
+ * get app by path with draft
100
+ * @returns AppWithLastVersionWDraft app details with draft
101
+ * @throws ApiError
102
+ */
103
+ static getAppByPathWithDraft({ workspace, path, }) {
104
+ return __request(OpenAPI, {
105
+ method: 'GET',
106
+ url: '/w/{workspace}/apps/get/draft/{path}',
107
+ path: {
108
+ 'workspace': workspace,
109
+ 'path': path,
110
+ },
111
+ });
112
+ }
113
+ /**
114
+ * get public app by secret
115
+ * @returns AppWithLastVersion app details
116
+ * @throws ApiError
117
+ */
118
+ static getPublicAppBySecret({ workspace, path, }) {
119
+ return __request(OpenAPI, {
120
+ method: 'GET',
121
+ url: '/w/{workspace}/apps_u/public_app/{path}',
122
+ path: {
123
+ 'workspace': workspace,
124
+ 'path': path,
125
+ },
126
+ });
127
+ }
128
+ /**
129
+ * get public secret of app
130
+ * @returns string app secret
131
+ * @throws ApiError
132
+ */
133
+ static getPublicSecretOfApp({ workspace, path, }) {
134
+ return __request(OpenAPI, {
135
+ method: 'GET',
136
+ url: '/w/{workspace}/apps/secret_of/{path}',
137
+ path: {
138
+ 'workspace': workspace,
139
+ 'path': path,
140
+ },
141
+ });
142
+ }
143
+ /**
144
+ * get app by version
145
+ * @returns AppWithLastVersion app details
146
+ * @throws ApiError
147
+ */
148
+ static getAppByVersion({ workspace, id, }) {
149
+ return __request(OpenAPI, {
150
+ method: 'GET',
151
+ url: '/w/{workspace}/apps/get/v/{id}',
152
+ path: {
153
+ 'workspace': workspace,
154
+ 'id': id,
155
+ },
156
+ });
157
+ }
158
+ /**
159
+ * delete app
160
+ * @returns string app deleted
161
+ * @throws ApiError
162
+ */
163
+ static deleteApp({ workspace, path, }) {
164
+ return __request(OpenAPI, {
165
+ method: 'DELETE',
166
+ url: '/w/{workspace}/apps/delete/{path}',
167
+ path: {
168
+ 'workspace': workspace,
169
+ 'path': path,
170
+ },
171
+ });
172
+ }
173
+ /**
174
+ * update app
175
+ * @returns string app updated
176
+ * @throws ApiError
177
+ */
178
+ static updateApp({ workspace, path, requestBody, }) {
179
+ return __request(OpenAPI, {
180
+ method: 'POST',
181
+ url: '/w/{workspace}/apps/update/{path}',
182
+ path: {
183
+ 'workspace': workspace,
184
+ 'path': path,
185
+ },
186
+ body: requestBody,
187
+ mediaType: 'application/json',
188
+ });
189
+ }
190
+ /**
191
+ * executeComponent
192
+ * @returns string job uuid
193
+ * @throws ApiError
194
+ */
195
+ static executeComponent({ workspace, path, requestBody, }) {
196
+ return __request(OpenAPI, {
197
+ method: 'POST',
198
+ url: '/w/{workspace}/apps_u/execute_component/{path}',
199
+ path: {
200
+ 'workspace': workspace,
201
+ 'path': path,
202
+ },
203
+ body: requestBody,
204
+ mediaType: 'application/json',
205
+ });
206
+ }
207
+ }
@@ -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,43 @@
1
+ import { OpenAPI } from '../core/OpenAPI.js';
2
+ import { request as __request } from '../core/request.js';
3
+ export 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
+ return __request(OpenAPI, {
11
+ method: 'GET',
12
+ url: '/w/{workspace}/audit/get/{id}',
13
+ path: {
14
+ 'workspace': workspace,
15
+ 'id': id,
16
+ },
17
+ });
18
+ }
19
+ /**
20
+ * list audit logs (requires admin privilege)
21
+ * @returns AuditLog a list of audit logs
22
+ * @throws ApiError
23
+ */
24
+ static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }) {
25
+ return __request(OpenAPI, {
26
+ method: 'GET',
27
+ url: '/w/{workspace}/audit/list',
28
+ path: {
29
+ 'workspace': workspace,
30
+ },
31
+ query: {
32
+ 'page': page,
33
+ 'per_page': perPage,
34
+ 'before': before,
35
+ 'after': after,
36
+ 'username': username,
37
+ 'operation': operation,
38
+ 'resource': resource,
39
+ 'action_kind': actionKind,
40
+ },
41
+ });
42
+ }
43
+ }