windmill-client 0.2.0 → 0.3.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 (212) hide show
  1. package/build.sh +0 -1
  2. package/dist/core/ApiError.js +15 -0
  3. package/dist/core/ApiRequestOptions.js +2 -0
  4. package/dist/core/ApiResult.js +2 -0
  5. package/dist/core/CancelablePromise.js +94 -0
  6. package/dist/core/OpenAPI.js +14 -0
  7. package/dist/core/request.js +269 -0
  8. package/dist/index.d.ts +97 -0
  9. package/dist/index.js +87 -0
  10. package/dist/models/AppWithLastVersion.js +15 -0
  11. package/dist/models/AppWithLastVersionWDraft.js +5 -0
  12. package/dist/models/AuditLog.js +32 -0
  13. package/dist/models/BranchAll.js +5 -0
  14. package/dist/models/BranchOne.js +5 -0
  15. package/dist/models/CompletedJob.js +26 -0
  16. package/dist/models/ContextualVariable.js +5 -0
  17. package/dist/models/CreateInput.js +5 -0
  18. package/dist/models/CreateResource.js +5 -0
  19. package/dist/models/CreateVariable.js +5 -0
  20. package/dist/models/CreateWorkspace.js +5 -0
  21. package/dist/models/EditResource.js +5 -0
  22. package/dist/models/EditResourceType.js +5 -0
  23. package/dist/models/EditSchedule.js +5 -0
  24. package/dist/models/EditVariable.js +5 -0
  25. package/dist/models/EditWorkspaceUser.js +5 -0
  26. package/dist/models/Flow.js +5 -0
  27. package/dist/models/FlowMetadata.js +5 -0
  28. package/dist/models/FlowModule.js +5 -0
  29. package/dist/models/FlowModuleValue.js +5 -0
  30. package/dist/models/FlowPreview.js +5 -0
  31. package/dist/models/FlowStatus.js +5 -0
  32. package/dist/models/FlowStatusModule.js +18 -0
  33. package/dist/models/FlowValue.js +5 -0
  34. package/dist/models/Folder.js +5 -0
  35. package/dist/models/ForloopFlow.js +5 -0
  36. package/dist/models/GlobalUserInfo.js +14 -0
  37. package/dist/models/Group.js +5 -0
  38. package/dist/models/Identity.js +5 -0
  39. package/dist/models/Input.js +5 -0
  40. package/dist/models/InputTransform.js +5 -0
  41. package/dist/models/JavascriptTransform.js +5 -0
  42. package/dist/models/Job.js +14 -0
  43. package/dist/models/ListableApp.js +15 -0
  44. package/dist/models/ListableRawApp.d.ts +9 -0
  45. package/dist/models/ListableRawApp.js +5 -0
  46. package/dist/models/ListableResource.js +5 -0
  47. package/dist/models/ListableVariable.js +5 -0
  48. package/dist/models/Login.js +5 -0
  49. package/dist/models/MainArgSignature.js +14 -0
  50. package/dist/models/NewSchedule.js +5 -0
  51. package/dist/models/NewScript.js +24 -0
  52. package/dist/models/NewScriptWithDraft.js +5 -0
  53. package/dist/models/NewToken.js +5 -0
  54. package/dist/models/NewTokenImpersonate.js +5 -0
  55. package/dist/models/NewUser.js +5 -0
  56. package/dist/models/OpenFlow.js +5 -0
  57. package/dist/models/OpenFlowWPath.js +5 -0
  58. package/dist/models/PathFlow.js +5 -0
  59. package/dist/models/PathScript.js +5 -0
  60. package/dist/models/Policy.js +15 -0
  61. package/dist/models/Preview.js +16 -0
  62. package/dist/models/QueuedJob.js +26 -0
  63. package/dist/models/RawScript.js +16 -0
  64. package/dist/models/Resource.js +5 -0
  65. package/dist/models/ResourceType.js +5 -0
  66. package/dist/models/Retry.js +5 -0
  67. package/dist/models/RunnableType.js +12 -0
  68. package/dist/models/Schedule.js +5 -0
  69. package/dist/models/Script.js +24 -0
  70. package/dist/models/ScriptArgs.js +5 -0
  71. package/dist/models/SlackToken.js +5 -0
  72. package/dist/models/StaticTransform.js +5 -0
  73. package/dist/models/TokenResponse.js +5 -0
  74. package/dist/models/TruncatedToken.js +5 -0
  75. package/dist/models/UpdateInput.js +5 -0
  76. package/dist/models/Usage.js +5 -0
  77. package/dist/models/User.js +5 -0
  78. package/dist/models/UserWorkspaceList.js +5 -0
  79. package/dist/models/WorkerPing.js +5 -0
  80. package/dist/models/Workspace.js +5 -0
  81. package/dist/models/WorkspaceInvite.js +5 -0
  82. package/dist/services/AdminService.js +56 -0
  83. package/{src → dist}/services/AppService.d.ts +19 -18
  84. package/dist/services/AppService.js +211 -0
  85. package/dist/services/AuditService.js +47 -0
  86. package/dist/services/CaptureService.js +56 -0
  87. package/dist/services/DraftService.js +24 -0
  88. package/{src → dist}/services/FavoriteService.d.ts +2 -2
  89. package/dist/services/FavoriteService.js +40 -0
  90. package/dist/services/FlowService.js +200 -0
  91. package/dist/services/FolderService.js +155 -0
  92. package/{src → dist}/services/GranularAclService.d.ts +3 -3
  93. package/dist/services/GranularAclService.js +60 -0
  94. package/dist/services/GroupService.js +140 -0
  95. package/dist/services/InputService.js +99 -0
  96. package/{src → dist}/services/JobService.d.ts +12 -0
  97. package/dist/services/JobService.js +579 -0
  98. package/dist/services/OauthService.js +124 -0
  99. package/dist/services/RawAppService.d.ts +103 -0
  100. package/dist/services/RawAppService.js +110 -0
  101. package/dist/services/ResourceService.js +244 -0
  102. package/dist/services/ScheduleService.js +134 -0
  103. package/dist/services/ScriptService.js +339 -0
  104. package/dist/services/SettingsService.js +30 -0
  105. package/dist/services/UserService.js +376 -0
  106. package/dist/services/VariableService.js +123 -0
  107. package/dist/services/WorkerService.js +34 -0
  108. package/dist/services/WorkspaceService.js +275 -0
  109. package/package.json +1 -1
  110. package/publish.sh +3 -0
  111. package/src/core/OpenAPI.ts +1 -1
  112. package/src/index.ts +2 -0
  113. package/src/models/ListableRawApp.ts +14 -0
  114. package/src/services/AppService.ts +33 -32
  115. package/src/services/FavoriteService.ts +2 -2
  116. package/src/services/GranularAclService.ts +3 -3
  117. package/src/services/JobService.ts +25 -0
  118. package/src/services/RawAppService.ts +209 -0
  119. package/tsconfig.json +1 -1
  120. /package/{src → dist}/core/ApiError.d.ts +0 -0
  121. /package/{src → dist}/core/ApiRequestOptions.d.ts +0 -0
  122. /package/{src → dist}/core/ApiResult.d.ts +0 -0
  123. /package/{src → dist}/core/CancelablePromise.d.ts +0 -0
  124. /package/{src → dist}/core/OpenAPI.d.ts +0 -0
  125. /package/{src → dist}/core/request.d.ts +0 -0
  126. /package/{src → dist}/models/AppWithLastVersion.d.ts +0 -0
  127. /package/{src → dist}/models/AppWithLastVersionWDraft.d.ts +0 -0
  128. /package/{src → dist}/models/AuditLog.d.ts +0 -0
  129. /package/{src → dist}/models/BranchAll.d.ts +0 -0
  130. /package/{src → dist}/models/BranchOne.d.ts +0 -0
  131. /package/{src → dist}/models/CompletedJob.d.ts +0 -0
  132. /package/{src → dist}/models/ContextualVariable.d.ts +0 -0
  133. /package/{src → dist}/models/CreateInput.d.ts +0 -0
  134. /package/{src → dist}/models/CreateResource.d.ts +0 -0
  135. /package/{src → dist}/models/CreateVariable.d.ts +0 -0
  136. /package/{src → dist}/models/CreateWorkspace.d.ts +0 -0
  137. /package/{src → dist}/models/EditResource.d.ts +0 -0
  138. /package/{src → dist}/models/EditResourceType.d.ts +0 -0
  139. /package/{src → dist}/models/EditSchedule.d.ts +0 -0
  140. /package/{src → dist}/models/EditVariable.d.ts +0 -0
  141. /package/{src → dist}/models/EditWorkspaceUser.d.ts +0 -0
  142. /package/{src → dist}/models/Flow.d.ts +0 -0
  143. /package/{src → dist}/models/FlowMetadata.d.ts +0 -0
  144. /package/{src → dist}/models/FlowModule.d.ts +0 -0
  145. /package/{src → dist}/models/FlowModuleValue.d.ts +0 -0
  146. /package/{src → dist}/models/FlowPreview.d.ts +0 -0
  147. /package/{src → dist}/models/FlowStatus.d.ts +0 -0
  148. /package/{src → dist}/models/FlowStatusModule.d.ts +0 -0
  149. /package/{src → dist}/models/FlowValue.d.ts +0 -0
  150. /package/{src → dist}/models/Folder.d.ts +0 -0
  151. /package/{src → dist}/models/ForloopFlow.d.ts +0 -0
  152. /package/{src → dist}/models/GlobalUserInfo.d.ts +0 -0
  153. /package/{src → dist}/models/Group.d.ts +0 -0
  154. /package/{src → dist}/models/Identity.d.ts +0 -0
  155. /package/{src → dist}/models/Input.d.ts +0 -0
  156. /package/{src → dist}/models/InputTransform.d.ts +0 -0
  157. /package/{src → dist}/models/JavascriptTransform.d.ts +0 -0
  158. /package/{src → dist}/models/Job.d.ts +0 -0
  159. /package/{src → dist}/models/ListableApp.d.ts +0 -0
  160. /package/{src → dist}/models/ListableResource.d.ts +0 -0
  161. /package/{src → dist}/models/ListableVariable.d.ts +0 -0
  162. /package/{src → dist}/models/Login.d.ts +0 -0
  163. /package/{src → dist}/models/MainArgSignature.d.ts +0 -0
  164. /package/{src → dist}/models/NewSchedule.d.ts +0 -0
  165. /package/{src → dist}/models/NewScript.d.ts +0 -0
  166. /package/{src → dist}/models/NewScriptWithDraft.d.ts +0 -0
  167. /package/{src → dist}/models/NewToken.d.ts +0 -0
  168. /package/{src → dist}/models/NewTokenImpersonate.d.ts +0 -0
  169. /package/{src → dist}/models/NewUser.d.ts +0 -0
  170. /package/{src → dist}/models/OpenFlow.d.ts +0 -0
  171. /package/{src → dist}/models/OpenFlowWPath.d.ts +0 -0
  172. /package/{src → dist}/models/PathFlow.d.ts +0 -0
  173. /package/{src → dist}/models/PathScript.d.ts +0 -0
  174. /package/{src → dist}/models/Policy.d.ts +0 -0
  175. /package/{src → dist}/models/Preview.d.ts +0 -0
  176. /package/{src → dist}/models/QueuedJob.d.ts +0 -0
  177. /package/{src → dist}/models/RawScript.d.ts +0 -0
  178. /package/{src → dist}/models/Resource.d.ts +0 -0
  179. /package/{src → dist}/models/ResourceType.d.ts +0 -0
  180. /package/{src → dist}/models/Retry.d.ts +0 -0
  181. /package/{src → dist}/models/RunnableType.d.ts +0 -0
  182. /package/{src → dist}/models/Schedule.d.ts +0 -0
  183. /package/{src → dist}/models/Script.d.ts +0 -0
  184. /package/{src → dist}/models/ScriptArgs.d.ts +0 -0
  185. /package/{src → dist}/models/SlackToken.d.ts +0 -0
  186. /package/{src → dist}/models/StaticTransform.d.ts +0 -0
  187. /package/{src → dist}/models/TokenResponse.d.ts +0 -0
  188. /package/{src → dist}/models/TruncatedToken.d.ts +0 -0
  189. /package/{src → dist}/models/UpdateInput.d.ts +0 -0
  190. /package/{src → dist}/models/Usage.d.ts +0 -0
  191. /package/{src → dist}/models/User.d.ts +0 -0
  192. /package/{src → dist}/models/UserWorkspaceList.d.ts +0 -0
  193. /package/{src → dist}/models/WorkerPing.d.ts +0 -0
  194. /package/{src → dist}/models/Workspace.d.ts +0 -0
  195. /package/{src → dist}/models/WorkspaceInvite.d.ts +0 -0
  196. /package/{src → dist}/services/AdminService.d.ts +0 -0
  197. /package/{src → dist}/services/AuditService.d.ts +0 -0
  198. /package/{src → dist}/services/CaptureService.d.ts +0 -0
  199. /package/{src → dist}/services/DraftService.d.ts +0 -0
  200. /package/{src → dist}/services/FlowService.d.ts +0 -0
  201. /package/{src → dist}/services/FolderService.d.ts +0 -0
  202. /package/{src → dist}/services/GroupService.d.ts +0 -0
  203. /package/{src → dist}/services/InputService.d.ts +0 -0
  204. /package/{src → dist}/services/OauthService.d.ts +0 -0
  205. /package/{src → dist}/services/ResourceService.d.ts +0 -0
  206. /package/{src → dist}/services/ScheduleService.d.ts +0 -0
  207. /package/{src → dist}/services/ScriptService.d.ts +0 -0
  208. /package/{src → dist}/services/SettingsService.d.ts +0 -0
  209. /package/{src → dist}/services/UserService.d.ts +0 -0
  210. /package/{src → dist}/services/VariableService.d.ts +0 -0
  211. /package/{src → dist}/services/WorkerService.d.ts +0 -0
  212. /package/{src → dist}/services/WorkspaceService.d.ts +0 -0
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /* istanbul ignore file */
3
+ /* tslint:disable */
4
+ /* eslint-disable */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AdminService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AdminService {
7
+ /**
8
+ * create user (require admin privilege)
9
+ * @returns string user created
10
+ * @throws ApiError
11
+ */
12
+ static createUser({ workspace, requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/users/add',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * update user (require admin privilege)
25
+ * @returns string edited user
26
+ * @throws ApiError
27
+ */
28
+ static updateUser({ workspace, username, requestBody, }) {
29
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
30
+ method: 'POST',
31
+ url: '/w/{workspace}/users/update/{username}',
32
+ path: {
33
+ 'workspace': workspace,
34
+ 'username': username,
35
+ },
36
+ body: requestBody,
37
+ mediaType: 'application/json',
38
+ });
39
+ }
40
+ /**
41
+ * delete user (require admin privilege)
42
+ * @returns string delete user
43
+ * @throws ApiError
44
+ */
45
+ static deleteUser({ workspace, username, }) {
46
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
47
+ method: 'DELETE',
48
+ url: '/w/{workspace}/users/delete/{username}',
49
+ path: {
50
+ 'workspace': workspace,
51
+ 'username': username,
52
+ },
53
+ });
54
+ }
55
+ }
56
+ exports.AdminService = AdminService;
@@ -70,6 +70,24 @@ export declare class AppService {
70
70
  */
71
71
  starredOnly?: boolean;
72
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>;
73
91
  /**
74
92
  * does an app exisst at path
75
93
  * @returns boolean app exists
@@ -124,24 +142,6 @@ export declare class AppService {
124
142
  workspace: string;
125
143
  id: number;
126
144
  }): 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
145
  /**
146
146
  * delete app
147
147
  * @returns string app deleted
@@ -181,6 +181,7 @@ export declare class AppService {
181
181
  * update app
182
182
  */
183
183
  requestBody: {
184
+ component: string;
184
185
  path?: string;
185
186
  args: any;
186
187
  raw_code?: {
@@ -0,0 +1,211 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AppService {
7
+ /**
8
+ * list all available hub apps
9
+ * @returns any hub apps list
10
+ * @throws ApiError
11
+ */
12
+ static listHubApps() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/apps/hub/list',
16
+ });
17
+ }
18
+ /**
19
+ * get hub app by id
20
+ * @returns any app
21
+ * @throws ApiError
22
+ */
23
+ static getHubAppById({ id, }) {
24
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
25
+ method: 'GET',
26
+ url: '/apps/hub/get/{id}',
27
+ path: {
28
+ 'id': id,
29
+ },
30
+ });
31
+ }
32
+ /**
33
+ * list all available apps
34
+ * @returns ListableApp All available apps
35
+ * @throws ApiError
36
+ */
37
+ static listApps({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, starredOnly, }) {
38
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
39
+ method: 'GET',
40
+ url: '/w/{workspace}/apps/list',
41
+ path: {
42
+ 'workspace': workspace,
43
+ },
44
+ query: {
45
+ 'page': page,
46
+ 'per_page': perPage,
47
+ 'order_desc': orderDesc,
48
+ 'created_by': createdBy,
49
+ 'path_start': pathStart,
50
+ 'path_exact': pathExact,
51
+ 'starred_only': starredOnly,
52
+ },
53
+ });
54
+ }
55
+ /**
56
+ * create app
57
+ * @returns string app created
58
+ * @throws ApiError
59
+ */
60
+ static createApp({ workspace, requestBody, }) {
61
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
62
+ method: 'POST',
63
+ url: '/w/{workspace}/apps/create',
64
+ path: {
65
+ 'workspace': workspace,
66
+ },
67
+ body: requestBody,
68
+ mediaType: 'application/json',
69
+ });
70
+ }
71
+ /**
72
+ * does an app exisst at path
73
+ * @returns boolean app exists
74
+ * @throws ApiError
75
+ */
76
+ static existsApp({ workspace, path, }) {
77
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
78
+ method: 'GET',
79
+ url: '/w/{workspace}/apps/exists/{path}',
80
+ path: {
81
+ 'workspace': workspace,
82
+ 'path': path,
83
+ },
84
+ });
85
+ }
86
+ /**
87
+ * get app by path
88
+ * @returns AppWithLastVersion app details
89
+ * @throws ApiError
90
+ */
91
+ static getAppByPath({ workspace, path, }) {
92
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
93
+ method: 'GET',
94
+ url: '/w/{workspace}/apps/get/p/{path}',
95
+ path: {
96
+ 'workspace': workspace,
97
+ 'path': path,
98
+ },
99
+ });
100
+ }
101
+ /**
102
+ * get app by path with draft
103
+ * @returns AppWithLastVersionWDraft app details with draft
104
+ * @throws ApiError
105
+ */
106
+ static getAppByPathWithDraft({ workspace, path, }) {
107
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
108
+ method: 'GET',
109
+ url: '/w/{workspace}/apps/get/draft/{path}',
110
+ path: {
111
+ 'workspace': workspace,
112
+ 'path': path,
113
+ },
114
+ });
115
+ }
116
+ /**
117
+ * get public app by secret
118
+ * @returns AppWithLastVersion app details
119
+ * @throws ApiError
120
+ */
121
+ static getPublicAppBySecret({ workspace, path, }) {
122
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
123
+ method: 'GET',
124
+ url: '/w/{workspace}/apps_u/public_app/{path}',
125
+ path: {
126
+ 'workspace': workspace,
127
+ 'path': path,
128
+ },
129
+ });
130
+ }
131
+ /**
132
+ * get public secret of app
133
+ * @returns string app secret
134
+ * @throws ApiError
135
+ */
136
+ static getPublicSecretOfApp({ workspace, path, }) {
137
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
138
+ method: 'GET',
139
+ url: '/w/{workspace}/apps/secret_of/{path}',
140
+ path: {
141
+ 'workspace': workspace,
142
+ 'path': path,
143
+ },
144
+ });
145
+ }
146
+ /**
147
+ * get app by version
148
+ * @returns AppWithLastVersion app details
149
+ * @throws ApiError
150
+ */
151
+ static getAppByVersion({ workspace, id, }) {
152
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
153
+ method: 'GET',
154
+ url: '/w/{workspace}/apps/get/v/{id}',
155
+ path: {
156
+ 'workspace': workspace,
157
+ 'id': id,
158
+ },
159
+ });
160
+ }
161
+ /**
162
+ * delete app
163
+ * @returns string app deleted
164
+ * @throws ApiError
165
+ */
166
+ static deleteApp({ workspace, path, }) {
167
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
168
+ method: 'DELETE',
169
+ url: '/w/{workspace}/apps/delete/{path}',
170
+ path: {
171
+ 'workspace': workspace,
172
+ 'path': path,
173
+ },
174
+ });
175
+ }
176
+ /**
177
+ * update app
178
+ * @returns string app updated
179
+ * @throws ApiError
180
+ */
181
+ static updateApp({ workspace, path, requestBody, }) {
182
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
183
+ method: 'POST',
184
+ url: '/w/{workspace}/apps/update/{path}',
185
+ path: {
186
+ 'workspace': workspace,
187
+ 'path': path,
188
+ },
189
+ body: requestBody,
190
+ mediaType: 'application/json',
191
+ });
192
+ }
193
+ /**
194
+ * executeComponent
195
+ * @returns string job uuid
196
+ * @throws ApiError
197
+ */
198
+ static executeComponent({ workspace, path, requestBody, }) {
199
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
200
+ method: 'POST',
201
+ url: '/w/{workspace}/apps_u/execute_component/{path}',
202
+ path: {
203
+ 'workspace': workspace,
204
+ 'path': path,
205
+ },
206
+ body: requestBody,
207
+ mediaType: 'application/json',
208
+ });
209
+ }
210
+ }
211
+ exports.AppService = AppService;
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AuditService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class AuditService {
7
+ /**
8
+ * get audit log (requires admin privilege)
9
+ * @returns AuditLog an audit log
10
+ * @throws ApiError
11
+ */
12
+ static getAuditLog({ workspace, id, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/w/{workspace}/audit/get/{id}',
16
+ path: {
17
+ 'workspace': workspace,
18
+ 'id': id,
19
+ },
20
+ });
21
+ }
22
+ /**
23
+ * list audit logs (requires admin privilege)
24
+ * @returns AuditLog a list of audit logs
25
+ * @throws ApiError
26
+ */
27
+ static listAuditLogs({ workspace, page, perPage, before, after, username, operation, resource, actionKind, }) {
28
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
29
+ method: 'GET',
30
+ url: '/w/{workspace}/audit/list',
31
+ path: {
32
+ 'workspace': workspace,
33
+ },
34
+ query: {
35
+ 'page': page,
36
+ 'per_page': perPage,
37
+ 'before': before,
38
+ 'after': after,
39
+ 'username': username,
40
+ 'operation': operation,
41
+ 'resource': resource,
42
+ 'action_kind': actionKind,
43
+ },
44
+ });
45
+ }
46
+ }
47
+ exports.AuditService = AuditService;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CaptureService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class CaptureService {
7
+ /**
8
+ * update flow preview capture
9
+ * @returns void
10
+ * @throws ApiError
11
+ */
12
+ static updateCapture({ workspace, path, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/capture_u/{path}',
16
+ path: {
17
+ 'workspace': workspace,
18
+ 'path': path,
19
+ },
20
+ });
21
+ }
22
+ /**
23
+ * create flow preview capture
24
+ * @returns any flow preview capture created
25
+ * @throws ApiError
26
+ */
27
+ static createCapture({ workspace, path, }) {
28
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
29
+ method: 'PUT',
30
+ url: '/w/{workspace}/capture/{path}',
31
+ path: {
32
+ 'workspace': workspace,
33
+ 'path': path,
34
+ },
35
+ });
36
+ }
37
+ /**
38
+ * get flow preview capture
39
+ * @returns any captured flow preview
40
+ * @throws ApiError
41
+ */
42
+ static getCapture({ workspace, path, }) {
43
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
44
+ method: 'GET',
45
+ url: '/w/{workspace}/capture/{path}',
46
+ path: {
47
+ 'workspace': workspace,
48
+ 'path': path,
49
+ },
50
+ errors: {
51
+ 404: `capture does not exist for this flow`,
52
+ },
53
+ });
54
+ }
55
+ }
56
+ exports.CaptureService = CaptureService;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DraftService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class DraftService {
7
+ /**
8
+ * create draft
9
+ * @returns string draft created
10
+ * @throws ApiError
11
+ */
12
+ static createDraft({ workspace, requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/drafts/create',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ }
24
+ exports.DraftService = DraftService;
@@ -9,7 +9,7 @@ export declare class FavoriteService {
9
9
  workspace: string;
10
10
  requestBody?: {
11
11
  path?: string;
12
- favorite_kind?: 'flow' | 'app' | 'script';
12
+ favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
13
13
  };
14
14
  }): CancelablePromise<any>;
15
15
  /**
@@ -21,7 +21,7 @@ export declare class FavoriteService {
21
21
  workspace: string;
22
22
  requestBody?: {
23
23
  path?: string;
24
- favorite_kind?: 'flow' | 'app' | 'script';
24
+ favorite_kind?: 'flow' | 'app' | 'script' | 'raw_app';
25
25
  };
26
26
  }): CancelablePromise<any>;
27
27
  }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FavoriteService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class FavoriteService {
7
+ /**
8
+ * star item
9
+ * @returns any star item
10
+ * @throws ApiError
11
+ */
12
+ static star({ workspace, requestBody, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/favorites/star',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ body: requestBody,
20
+ mediaType: 'application/json',
21
+ });
22
+ }
23
+ /**
24
+ * unstar item
25
+ * @returns any unstar item
26
+ * @throws ApiError
27
+ */
28
+ static unstar({ workspace, requestBody, }) {
29
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
30
+ method: 'POST',
31
+ url: '/w/{workspace}/favorites/unstar',
32
+ path: {
33
+ 'workspace': workspace,
34
+ },
35
+ body: requestBody,
36
+ mediaType: 'application/json',
37
+ });
38
+ }
39
+ }
40
+ exports.FavoriteService = FavoriteService;