windmill-client 1.145.2 → 1.146.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 (295) hide show
  1. package/dist/client.d.ts +77 -0
  2. package/dist/client.js +368 -0
  3. package/dist/core/ApiError.d.ts +10 -0
  4. package/dist/core/ApiError.js +15 -0
  5. package/dist/core/ApiRequestOptions.d.ts +13 -0
  6. package/dist/core/ApiRequestOptions.js +2 -0
  7. package/dist/core/ApiResult.d.ts +7 -0
  8. package/dist/core/ApiResult.js +2 -0
  9. package/dist/core/CancelablePromise.d.ts +20 -0
  10. package/dist/core/CancelablePromise.js +116 -0
  11. package/dist/core/OpenAPI.d.ts +16 -0
  12. package/dist/core/OpenAPI.js +14 -0
  13. package/dist/core/request.d.ts +30 -0
  14. package/dist/core/request.js +289 -0
  15. package/dist/index.d.ts +144 -0
  16. package/dist/index.js +98 -0
  17. package/dist/models/AccountId.d.ts +1 -0
  18. package/dist/models/AccountId.js +6 -0
  19. package/dist/models/ActionKind.d.ts +9 -0
  20. package/dist/models/ActionKind.js +17 -0
  21. package/dist/models/After.d.ts +4 -0
  22. package/dist/models/After.js +6 -0
  23. package/dist/models/AppWithLastVersion.d.ts +21 -0
  24. package/dist/models/AppWithLastVersion.js +16 -0
  25. package/dist/models/AppWithLastVersionWDraft.d.ts +5 -0
  26. package/dist/models/AppWithLastVersionWDraft.js +6 -0
  27. package/dist/models/ArgsFilter.d.ts +4 -0
  28. package/dist/models/ArgsFilter.js +6 -0
  29. package/dist/models/AuditLog.d.ts +102 -0
  30. package/dist/models/AuditLog.js +103 -0
  31. package/dist/models/Before.d.ts +4 -0
  32. package/dist/models/Before.js +6 -0
  33. package/dist/models/BranchAll.d.ts +10 -0
  34. package/dist/models/BranchAll.js +6 -0
  35. package/dist/models/BranchOne.d.ts +10 -0
  36. package/dist/models/BranchOne.js +6 -0
  37. package/dist/models/ClientName.d.ts +1 -0
  38. package/dist/models/ClientName.js +6 -0
  39. package/dist/models/CompletedJob.d.ts +65 -0
  40. package/dist/models/CompletedJob.js +35 -0
  41. package/dist/models/ContextualVariable.d.ts +5 -0
  42. package/dist/models/ContextualVariable.js +6 -0
  43. package/dist/models/CreateInput.d.ts +4 -0
  44. package/dist/models/CreateInput.js +6 -0
  45. package/dist/models/CreateResource.d.ts +6 -0
  46. package/dist/models/CreateResource.js +6 -0
  47. package/dist/models/CreateVariable.d.ts +8 -0
  48. package/dist/models/CreateVariable.js +6 -0
  49. package/dist/models/CreateWorkspace.d.ts +5 -0
  50. package/dist/models/CreateWorkspace.js +6 -0
  51. package/dist/models/CreatedBy.d.ts +4 -0
  52. package/dist/models/CreatedBy.js +6 -0
  53. package/dist/models/EditResource.d.ts +5 -0
  54. package/dist/models/EditResource.js +6 -0
  55. package/dist/models/EditResourceType.d.ts +4 -0
  56. package/dist/models/EditResourceType.js +6 -0
  57. package/dist/models/EditSchedule.d.ts +7 -0
  58. package/dist/models/EditSchedule.js +6 -0
  59. package/dist/models/EditVariable.d.ts +6 -0
  60. package/dist/models/EditVariable.js +6 -0
  61. package/dist/models/EditWorkspaceUser.d.ts +5 -0
  62. package/dist/models/EditWorkspaceUser.js +6 -0
  63. package/dist/models/Flow.d.ts +3 -0
  64. package/dist/models/Flow.js +6 -0
  65. package/dist/models/FlowMetadata.d.ts +12 -0
  66. package/dist/models/FlowMetadata.js +6 -0
  67. package/dist/models/FlowModule.d.ts +27 -0
  68. package/dist/models/FlowModule.js +6 -0
  69. package/dist/models/FlowModuleValue.d.ts +9 -0
  70. package/dist/models/FlowModuleValue.js +6 -0
  71. package/dist/models/FlowPreview.d.ts +8 -0
  72. package/dist/models/FlowPreview.js +6 -0
  73. package/dist/models/FlowStatus.d.ts +12 -0
  74. package/dist/models/FlowStatus.js +6 -0
  75. package/dist/models/FlowStatusModule.d.ts +34 -0
  76. package/dist/models/FlowStatusModule.js +19 -0
  77. package/dist/models/FlowValue.d.ts +6 -0
  78. package/dist/models/FlowValue.js +6 -0
  79. package/dist/models/Folder.d.ts +5 -0
  80. package/dist/models/Folder.js +6 -0
  81. package/dist/models/ForloopFlow.d.ts +9 -0
  82. package/dist/models/ForloopFlow.js +6 -0
  83. package/dist/models/GlobalUserInfo.d.ts +14 -0
  84. package/dist/models/GlobalUserInfo.js +15 -0
  85. package/dist/models/Graphql.d.ts +3 -0
  86. package/dist/models/Graphql.js +6 -0
  87. package/dist/models/Group.d.ts +6 -0
  88. package/dist/models/Group.js +6 -0
  89. package/dist/models/Http.d.ts +8 -0
  90. package/dist/models/Http.js +14 -0
  91. package/dist/models/Identity.d.ts +4 -0
  92. package/dist/models/Identity.js +6 -0
  93. package/dist/models/IncludeHeader.d.ts +6 -0
  94. package/dist/models/IncludeHeader.js +6 -0
  95. package/dist/models/Input.d.ts +9 -0
  96. package/dist/models/Input.js +6 -0
  97. package/dist/models/InputId.d.ts +1 -0
  98. package/dist/models/InputId.js +6 -0
  99. package/dist/models/InputTransform.d.ts +3 -0
  100. package/dist/models/InputTransform.js +6 -0
  101. package/dist/models/InstanceGroup.d.ts +4 -0
  102. package/dist/models/InstanceGroup.js +6 -0
  103. package/dist/models/JavascriptTransform.d.ts +4 -0
  104. package/dist/models/JavascriptTransform.js +6 -0
  105. package/dist/models/Job.d.ts +11 -0
  106. package/dist/models/Job.js +15 -0
  107. package/dist/models/JobId.d.ts +1 -0
  108. package/dist/models/JobId.js +6 -0
  109. package/dist/models/JobKinds.d.ts +4 -0
  110. package/dist/models/JobKinds.js +6 -0
  111. package/dist/models/ListableApp.d.ts +18 -0
  112. package/dist/models/ListableApp.js +16 -0
  113. package/dist/models/ListableRawApp.d.ts +9 -0
  114. package/dist/models/ListableRawApp.js +6 -0
  115. package/dist/models/ListableResource.d.ts +14 -0
  116. package/dist/models/ListableResource.js +6 -0
  117. package/dist/models/ListableVariable.d.ts +14 -0
  118. package/dist/models/ListableVariable.js +6 -0
  119. package/dist/models/Login.d.ts +4 -0
  120. package/dist/models/Login.js +6 -0
  121. package/dist/models/MainArgSignature.d.ts +33 -0
  122. package/dist/models/MainArgSignature.js +15 -0
  123. package/dist/models/Name.d.ts +1 -0
  124. package/dist/models/Name.js +6 -0
  125. package/dist/models/NewJobId.d.ts +4 -0
  126. package/dist/models/NewJobId.js +6 -0
  127. package/dist/models/NewSchedule.d.ts +11 -0
  128. package/dist/models/NewSchedule.js +6 -0
  129. package/dist/models/NewScript.d.ts +40 -0
  130. package/dist/models/NewScript.js +33 -0
  131. package/dist/models/NewScriptWithDraft.d.ts +5 -0
  132. package/dist/models/NewScriptWithDraft.js +6 -0
  133. package/dist/models/NewToken.d.ts +5 -0
  134. package/dist/models/NewToken.js +6 -0
  135. package/dist/models/NewTokenImpersonate.d.ts +5 -0
  136. package/dist/models/NewTokenImpersonate.js +6 -0
  137. package/dist/models/NewUser.d.ts +5 -0
  138. package/dist/models/NewUser.js +6 -0
  139. package/dist/models/OpenFlow.d.ts +7 -0
  140. package/dist/models/OpenFlow.js +6 -0
  141. package/dist/models/OpenFlowWPath.d.ts +5 -0
  142. package/dist/models/OpenFlowWPath.js +6 -0
  143. package/dist/models/Operation.d.ts +4 -0
  144. package/dist/models/Operation.js +6 -0
  145. package/dist/models/OrderDesc.d.ts +4 -0
  146. package/dist/models/OrderDesc.js +6 -0
  147. package/dist/models/Page.d.ts +4 -0
  148. package/dist/models/Page.js +6 -0
  149. package/dist/models/ParentJob.d.ts +4 -0
  150. package/dist/models/ParentJob.js +6 -0
  151. package/dist/models/Path.d.ts +1 -0
  152. package/dist/models/Path.js +6 -0
  153. package/dist/models/PathFlow.d.ts +6 -0
  154. package/dist/models/PathFlow.js +6 -0
  155. package/dist/models/PathId.d.ts +1 -0
  156. package/dist/models/PathId.js +6 -0
  157. package/dist/models/PathScript.d.ts +7 -0
  158. package/dist/models/PathScript.js +6 -0
  159. package/dist/models/Payload.d.ts +6 -0
  160. package/dist/models/Payload.js +6 -0
  161. package/dist/models/PerPage.d.ts +4 -0
  162. package/dist/models/PerPage.js +6 -0
  163. package/dist/models/Policy.d.ts +13 -0
  164. package/dist/models/Policy.js +16 -0
  165. package/dist/models/Preview.d.ts +30 -0
  166. package/dist/models/Preview.js +31 -0
  167. package/dist/models/QueueLimit.d.ts +5 -0
  168. package/dist/models/QueueLimit.js +6 -0
  169. package/dist/models/QueuedJob.d.ts +63 -0
  170. package/dist/models/QueuedJob.js +35 -0
  171. package/dist/models/RawScript.d.ts +27 -0
  172. package/dist/models/RawScript.js +24 -0
  173. package/dist/models/Resource.d.ts +9 -0
  174. package/dist/models/Resource.js +6 -0
  175. package/dist/models/ResourceName.d.ts +4 -0
  176. package/dist/models/ResourceName.js +6 -0
  177. package/dist/models/ResourceType.d.ts +6 -0
  178. package/dist/models/ResourceType.js +6 -0
  179. package/dist/models/ResultFilter.d.ts +4 -0
  180. package/dist/models/ResultFilter.js +6 -0
  181. package/dist/models/Retry.d.ts +11 -0
  182. package/dist/models/Retry.js +6 -0
  183. package/dist/models/RunnableId.d.ts +1 -0
  184. package/dist/models/RunnableId.js +6 -0
  185. package/dist/models/RunnableType.d.ts +5 -0
  186. package/dist/models/RunnableType.js +13 -0
  187. package/dist/models/RunnableTypeQuery.d.ts +2 -0
  188. package/dist/models/RunnableTypeQuery.js +6 -0
  189. package/dist/models/Running.d.ts +4 -0
  190. package/dist/models/Running.js +6 -0
  191. package/dist/models/Schedule.d.ts +16 -0
  192. package/dist/models/Schedule.js +6 -0
  193. package/dist/models/SchedulePath.d.ts +4 -0
  194. package/dist/models/SchedulePath.js +6 -0
  195. package/dist/models/ScheduleWJobs.d.ts +8 -0
  196. package/dist/models/ScheduleWJobs.js +6 -0
  197. package/dist/models/Script.d.ts +54 -0
  198. package/dist/models/Script.js +33 -0
  199. package/dist/models/ScriptArgs.d.ts +1 -0
  200. package/dist/models/ScriptArgs.js +6 -0
  201. package/dist/models/ScriptExactHash.d.ts +4 -0
  202. package/dist/models/ScriptExactHash.js +6 -0
  203. package/dist/models/ScriptExactPath.d.ts +4 -0
  204. package/dist/models/ScriptExactPath.js +6 -0
  205. package/dist/models/ScriptHash.d.ts +1 -0
  206. package/dist/models/ScriptHash.js +6 -0
  207. package/dist/models/ScriptPath.d.ts +1 -0
  208. package/dist/models/ScriptPath.js +6 -0
  209. package/dist/models/ScriptStartPath.d.ts +4 -0
  210. package/dist/models/ScriptStartPath.js +6 -0
  211. package/dist/models/SlackToken.d.ts +8 -0
  212. package/dist/models/SlackToken.js +6 -0
  213. package/dist/models/StartedAfter.d.ts +4 -0
  214. package/dist/models/StartedAfter.js +6 -0
  215. package/dist/models/StartedBefore.d.ts +4 -0
  216. package/dist/models/StartedBefore.js +6 -0
  217. package/dist/models/StaticTransform.d.ts +4 -0
  218. package/dist/models/StaticTransform.js +6 -0
  219. package/dist/models/Success.d.ts +4 -0
  220. package/dist/models/Success.js +6 -0
  221. package/dist/models/Suspended.d.ts +4 -0
  222. package/dist/models/Suspended.js +6 -0
  223. package/dist/models/Tag.d.ts +4 -0
  224. package/dist/models/Tag.js +6 -0
  225. package/dist/models/Token.d.ts +1 -0
  226. package/dist/models/Token.js +6 -0
  227. package/dist/models/TokenResponse.d.ts +6 -0
  228. package/dist/models/TokenResponse.js +6 -0
  229. package/dist/models/TruncatedToken.d.ts +8 -0
  230. package/dist/models/TruncatedToken.js +6 -0
  231. package/dist/models/UpdateInput.d.ts +5 -0
  232. package/dist/models/UpdateInput.js +6 -0
  233. package/dist/models/Usage.d.ts +3 -0
  234. package/dist/models/Usage.js +6 -0
  235. package/dist/models/User.d.ts +14 -0
  236. package/dist/models/User.js +6 -0
  237. package/dist/models/UserWorkspaceList.d.ts +8 -0
  238. package/dist/models/UserWorkspaceList.js +6 -0
  239. package/dist/models/Username.d.ts +4 -0
  240. package/dist/models/Username.js +6 -0
  241. package/dist/models/VersionId.d.ts +1 -0
  242. package/dist/models/VersionId.js +6 -0
  243. package/dist/models/WorkerPing.d.ts +9 -0
  244. package/dist/models/WorkerPing.js +6 -0
  245. package/dist/models/Workspace.d.ts +6 -0
  246. package/dist/models/Workspace.js +6 -0
  247. package/dist/models/WorkspaceId.d.ts +1 -0
  248. package/dist/models/WorkspaceId.js +6 -0
  249. package/dist/models/WorkspaceInvite.d.ts +6 -0
  250. package/dist/models/WorkspaceInvite.js +6 -0
  251. package/dist/services/AdminService.d.ts +39 -0
  252. package/dist/services/AdminService.js +56 -0
  253. package/dist/services/AppService.d.ts +195 -0
  254. package/dist/services/AppService.js +211 -0
  255. package/dist/services/AuditService.d.ts +53 -0
  256. package/dist/services/AuditService.js +47 -0
  257. package/dist/services/CaptureService.d.ts +30 -0
  258. package/dist/services/CaptureService.js +56 -0
  259. package/dist/services/DraftService.d.ts +26 -0
  260. package/dist/services/DraftService.js +40 -0
  261. package/dist/services/FavoriteService.d.ts +27 -0
  262. package/dist/services/FavoriteService.js +40 -0
  263. package/dist/services/FlowService.d.ts +186 -0
  264. package/dist/services/FlowService.js +200 -0
  265. package/dist/services/FolderService.d.ts +128 -0
  266. package/dist/services/FolderService.js +155 -0
  267. package/dist/services/GranularAclService.d.ts +46 -0
  268. package/dist/services/GranularAclService.js +60 -0
  269. package/dist/services/GroupService.d.ts +125 -0
  270. package/dist/services/GroupService.js +165 -0
  271. package/dist/services/InputService.d.ts +78 -0
  272. package/dist/services/InputService.js +99 -0
  273. package/dist/services/JobService.d.ts +761 -0
  274. package/dist/services/JobService.js +650 -0
  275. package/dist/services/OauthService.d.ts +98 -0
  276. package/dist/services/OauthService.js +124 -0
  277. package/dist/services/RawAppService.d.ts +103 -0
  278. package/dist/services/RawAppService.js +110 -0
  279. package/dist/services/ResourceService.d.ts +178 -0
  280. package/dist/services/ResourceService.js +247 -0
  281. package/dist/services/ScheduleService.d.ts +125 -0
  282. package/dist/services/ScheduleService.js +154 -0
  283. package/dist/services/ScriptService.d.ts +258 -0
  284. package/dist/services/ScriptService.js +287 -0
  285. package/dist/services/SettingsService.d.ts +27 -0
  286. package/dist/services/SettingsService.js +52 -0
  287. package/dist/services/UserService.d.ts +312 -0
  288. package/dist/services/UserService.js +412 -0
  289. package/dist/services/VariableService.d.ts +95 -0
  290. package/dist/services/VariableService.js +139 -0
  291. package/dist/services/WorkerService.d.ts +25 -0
  292. package/dist/services/WorkerService.js +34 -0
  293. package/dist/services/WorkspaceService.d.ts +287 -0
  294. package/dist/services/WorkspaceService.js +351 -0
  295. package/package.json +1 -1
@@ -0,0 +1,95 @@
1
+ import type { ContextualVariable } from '../models/ContextualVariable';
2
+ import type { CreateVariable } from '../models/CreateVariable';
3
+ import type { EditVariable } from '../models/EditVariable';
4
+ import type { ListableVariable } from '../models/ListableVariable';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class VariableService {
7
+ /**
8
+ * create variable
9
+ * @returns string variable created
10
+ * @throws ApiError
11
+ */
12
+ static createVariable({ workspace, requestBody, alreadyEncrypted, }: {
13
+ workspace: string;
14
+ /**
15
+ * new variable
16
+ */
17
+ requestBody: CreateVariable;
18
+ alreadyEncrypted?: boolean;
19
+ }): CancelablePromise<string>;
20
+ /**
21
+ * encrypt value
22
+ * @returns string encrypted value
23
+ * @throws ApiError
24
+ */
25
+ static encryptValue({ workspace, requestBody, }: {
26
+ workspace: string;
27
+ /**
28
+ * new variable
29
+ */
30
+ requestBody: string;
31
+ }): CancelablePromise<string>;
32
+ /**
33
+ * delete variable
34
+ * @returns string variable deleted
35
+ * @throws ApiError
36
+ */
37
+ static deleteVariable({ workspace, path, }: {
38
+ workspace: string;
39
+ path: string;
40
+ }): CancelablePromise<string>;
41
+ /**
42
+ * update variable
43
+ * @returns string variable updated
44
+ * @throws ApiError
45
+ */
46
+ static updateVariable({ workspace, path, requestBody, alreadyEncrypted, }: {
47
+ workspace: string;
48
+ path: string;
49
+ /**
50
+ * updated variable
51
+ */
52
+ requestBody: EditVariable;
53
+ alreadyEncrypted?: boolean;
54
+ }): CancelablePromise<string>;
55
+ /**
56
+ * get variable
57
+ * @returns ListableVariable variable
58
+ * @throws ApiError
59
+ */
60
+ static getVariable({ workspace, path, decryptSecret, }: {
61
+ workspace: string;
62
+ path: string;
63
+ /**
64
+ * ask to decrypt secret if this variable is secret
65
+ * (if not secret no effect, default: true)
66
+ *
67
+ */
68
+ decryptSecret?: boolean;
69
+ }): CancelablePromise<ListableVariable>;
70
+ /**
71
+ * does variable exists at path
72
+ * @returns boolean variable
73
+ * @throws ApiError
74
+ */
75
+ static existsVariable({ workspace, path, }: {
76
+ workspace: string;
77
+ path: string;
78
+ }): CancelablePromise<boolean>;
79
+ /**
80
+ * list variables
81
+ * @returns ListableVariable variable list
82
+ * @throws ApiError
83
+ */
84
+ static listVariable({ workspace, }: {
85
+ workspace: string;
86
+ }): CancelablePromise<Array<ListableVariable>>;
87
+ /**
88
+ * list contextual variables
89
+ * @returns ContextualVariable contextual variable list
90
+ * @throws ApiError
91
+ */
92
+ static listContextualVariables({ workspace, }: {
93
+ workspace: string;
94
+ }): CancelablePromise<Array<ContextualVariable>>;
95
+ }
@@ -0,0 +1,139 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VariableService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class VariableService {
7
+ /**
8
+ * create variable
9
+ * @returns string variable created
10
+ * @throws ApiError
11
+ */
12
+ static createVariable({ workspace, requestBody, alreadyEncrypted, }) {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'POST',
15
+ url: '/w/{workspace}/variables/create',
16
+ path: {
17
+ 'workspace': workspace,
18
+ },
19
+ query: {
20
+ 'already_encrypted': alreadyEncrypted,
21
+ },
22
+ body: requestBody,
23
+ mediaType: 'application/json',
24
+ });
25
+ }
26
+ /**
27
+ * encrypt value
28
+ * @returns string encrypted value
29
+ * @throws ApiError
30
+ */
31
+ static encryptValue({ workspace, requestBody, }) {
32
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
33
+ method: 'POST',
34
+ url: '/w/{workspace}/variables/encrypt',
35
+ path: {
36
+ 'workspace': workspace,
37
+ },
38
+ body: requestBody,
39
+ mediaType: 'application/json',
40
+ });
41
+ }
42
+ /**
43
+ * delete variable
44
+ * @returns string variable deleted
45
+ * @throws ApiError
46
+ */
47
+ static deleteVariable({ workspace, path, }) {
48
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
49
+ method: 'DELETE',
50
+ url: '/w/{workspace}/variables/delete/{path}',
51
+ path: {
52
+ 'workspace': workspace,
53
+ 'path': path,
54
+ },
55
+ });
56
+ }
57
+ /**
58
+ * update variable
59
+ * @returns string variable updated
60
+ * @throws ApiError
61
+ */
62
+ static updateVariable({ workspace, path, requestBody, alreadyEncrypted, }) {
63
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
64
+ method: 'POST',
65
+ url: '/w/{workspace}/variables/update/{path}',
66
+ path: {
67
+ 'workspace': workspace,
68
+ 'path': path,
69
+ },
70
+ query: {
71
+ 'already_encrypted': alreadyEncrypted,
72
+ },
73
+ body: requestBody,
74
+ mediaType: 'application/json',
75
+ });
76
+ }
77
+ /**
78
+ * get variable
79
+ * @returns ListableVariable variable
80
+ * @throws ApiError
81
+ */
82
+ static getVariable({ workspace, path, decryptSecret, }) {
83
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
84
+ method: 'GET',
85
+ url: '/w/{workspace}/variables/get/{path}',
86
+ path: {
87
+ 'workspace': workspace,
88
+ 'path': path,
89
+ },
90
+ query: {
91
+ 'decrypt_secret': decryptSecret,
92
+ },
93
+ });
94
+ }
95
+ /**
96
+ * does variable exists at path
97
+ * @returns boolean variable
98
+ * @throws ApiError
99
+ */
100
+ static existsVariable({ workspace, path, }) {
101
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
102
+ method: 'GET',
103
+ url: '/w/{workspace}/variables/exists/{path}',
104
+ path: {
105
+ 'workspace': workspace,
106
+ 'path': path,
107
+ },
108
+ });
109
+ }
110
+ /**
111
+ * list variables
112
+ * @returns ListableVariable variable list
113
+ * @throws ApiError
114
+ */
115
+ static listVariable({ workspace, }) {
116
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
117
+ method: 'GET',
118
+ url: '/w/{workspace}/variables/list',
119
+ path: {
120
+ 'workspace': workspace,
121
+ },
122
+ });
123
+ }
124
+ /**
125
+ * list contextual variables
126
+ * @returns ContextualVariable contextual variable list
127
+ * @throws ApiError
128
+ */
129
+ static listContextualVariables({ workspace, }) {
130
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
131
+ method: 'GET',
132
+ url: '/w/{workspace}/variables/list_contextual',
133
+ path: {
134
+ 'workspace': workspace,
135
+ },
136
+ });
137
+ }
138
+ }
139
+ exports.VariableService = VariableService;
@@ -0,0 +1,25 @@
1
+ import type { WorkerPing } from '../models/WorkerPing';
2
+ import type { CancelablePromise } from '../core/CancelablePromise';
3
+ export declare class WorkerService {
4
+ /**
5
+ * get all instance custom tags (tags are used to dispatch jobs to different worker groups)
6
+ * @returns string list of custom tags
7
+ * @throws ApiError
8
+ */
9
+ static getCustomTags(): CancelablePromise<Array<string>>;
10
+ /**
11
+ * list workers
12
+ * @returns WorkerPing a list of workers
13
+ * @throws ApiError
14
+ */
15
+ static listWorkers({ page, perPage, }: {
16
+ /**
17
+ * which page to return (start at 1, default 1)
18
+ */
19
+ page?: number;
20
+ /**
21
+ * number of items to return for a given page (default 30, max 100)
22
+ */
23
+ perPage?: number;
24
+ }): CancelablePromise<Array<WorkerPing>>;
25
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkerService = void 0;
4
+ const OpenAPI_1 = require("../core/OpenAPI");
5
+ const request_1 = require("../core/request");
6
+ class WorkerService {
7
+ /**
8
+ * get all instance custom tags (tags are used to dispatch jobs to different worker groups)
9
+ * @returns string list of custom tags
10
+ * @throws ApiError
11
+ */
12
+ static getCustomTags() {
13
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
14
+ method: 'GET',
15
+ url: '/workers/custom_tags',
16
+ });
17
+ }
18
+ /**
19
+ * list workers
20
+ * @returns WorkerPing a list of workers
21
+ * @throws ApiError
22
+ */
23
+ static listWorkers({ page, perPage, }) {
24
+ return (0, request_1.request)(OpenAPI_1.OpenAPI, {
25
+ method: 'GET',
26
+ url: '/workers/list',
27
+ query: {
28
+ 'page': page,
29
+ 'per_page': perPage,
30
+ },
31
+ });
32
+ }
33
+ }
34
+ exports.WorkerService = WorkerService;
@@ -0,0 +1,287 @@
1
+ import type { CreateWorkspace } from '../models/CreateWorkspace';
2
+ import type { UserWorkspaceList } from '../models/UserWorkspaceList';
3
+ import type { Workspace } from '../models/Workspace';
4
+ import type { WorkspaceInvite } from '../models/WorkspaceInvite';
5
+ import type { CancelablePromise } from '../core/CancelablePromise';
6
+ export declare class WorkspaceService {
7
+ /**
8
+ * list all workspaces visible to me
9
+ * @returns Workspace all workspaces
10
+ * @throws ApiError
11
+ */
12
+ static listWorkspaces(): CancelablePromise<Array<Workspace>>;
13
+ /**
14
+ * is domain allowed for auto invi
15
+ * @returns boolean domain allowed or not
16
+ * @throws ApiError
17
+ */
18
+ static isDomainAllowed(): CancelablePromise<boolean>;
19
+ /**
20
+ * list all workspaces visible to me with user info
21
+ * @returns UserWorkspaceList workspace with associated username
22
+ * @throws ApiError
23
+ */
24
+ static listUserWorkspaces(): CancelablePromise<UserWorkspaceList>;
25
+ /**
26
+ * list all workspaces as super admin (require to be super admin)
27
+ * @returns Workspace workspaces
28
+ * @throws ApiError
29
+ */
30
+ static listWorkspacesAsSuperAdmin({ page, perPage, }: {
31
+ /**
32
+ * which page to return (start at 1, default 1)
33
+ */
34
+ page?: number;
35
+ /**
36
+ * number of items to return for a given page (default 30, max 100)
37
+ */
38
+ perPage?: number;
39
+ }): CancelablePromise<Array<Workspace>>;
40
+ /**
41
+ * create workspace
42
+ * @returns string token created
43
+ * @throws ApiError
44
+ */
45
+ static createWorkspace({ requestBody, }: {
46
+ /**
47
+ * new token
48
+ */
49
+ requestBody: CreateWorkspace;
50
+ }): CancelablePromise<string>;
51
+ /**
52
+ * exists workspace
53
+ * @returns boolean status
54
+ * @throws ApiError
55
+ */
56
+ static existsWorkspace({ requestBody, }: {
57
+ /**
58
+ * id of workspace
59
+ */
60
+ requestBody: {
61
+ id: string;
62
+ };
63
+ }): CancelablePromise<boolean>;
64
+ /**
65
+ * exists username
66
+ * @returns boolean status
67
+ * @throws ApiError
68
+ */
69
+ static existsUsername({ requestBody, }: {
70
+ requestBody: {
71
+ id: string;
72
+ username: string;
73
+ };
74
+ }): CancelablePromise<boolean>;
75
+ /**
76
+ * invite user to workspace
77
+ * @returns string status
78
+ * @throws ApiError
79
+ */
80
+ static inviteUser({ workspace, requestBody, }: {
81
+ workspace: string;
82
+ /**
83
+ * WorkspaceInvite
84
+ */
85
+ requestBody: {
86
+ email: string;
87
+ is_admin: boolean;
88
+ operator: boolean;
89
+ };
90
+ }): CancelablePromise<string>;
91
+ /**
92
+ * add user to workspace
93
+ * @returns string status
94
+ * @throws ApiError
95
+ */
96
+ static addUser({ workspace, requestBody, }: {
97
+ workspace: string;
98
+ /**
99
+ * WorkspaceInvite
100
+ */
101
+ requestBody: {
102
+ email: string;
103
+ is_admin: boolean;
104
+ username: string;
105
+ operator: boolean;
106
+ };
107
+ }): CancelablePromise<string>;
108
+ /**
109
+ * delete user invite
110
+ * @returns string status
111
+ * @throws ApiError
112
+ */
113
+ static deleteInvite({ workspace, requestBody, }: {
114
+ workspace: string;
115
+ /**
116
+ * WorkspaceInvite
117
+ */
118
+ requestBody: {
119
+ email: string;
120
+ is_admin: boolean;
121
+ operator: boolean;
122
+ };
123
+ }): CancelablePromise<string>;
124
+ /**
125
+ * archive workspace
126
+ * @returns string status
127
+ * @throws ApiError
128
+ */
129
+ static archiveWorkspace({ workspace, }: {
130
+ workspace: string;
131
+ }): CancelablePromise<string>;
132
+ /**
133
+ * unarchive workspace
134
+ * @returns string status
135
+ * @throws ApiError
136
+ */
137
+ static unarchiveWorkspace({ workspace, }: {
138
+ workspace: string;
139
+ }): CancelablePromise<string>;
140
+ /**
141
+ * delete workspace (require super admin)
142
+ * @returns string status
143
+ * @throws ApiError
144
+ */
145
+ static deleteWorkspace({ workspace, }: {
146
+ workspace: string;
147
+ }): CancelablePromise<string>;
148
+ /**
149
+ * list pending invites for a workspace
150
+ * @returns WorkspaceInvite user
151
+ * @throws ApiError
152
+ */
153
+ static listPendingInvites({ workspace, }: {
154
+ workspace: string;
155
+ }): CancelablePromise<Array<WorkspaceInvite>>;
156
+ /**
157
+ * get settings
158
+ * @returns any status
159
+ * @throws ApiError
160
+ */
161
+ static getSettings({ workspace, }: {
162
+ workspace: string;
163
+ }): CancelablePromise<{
164
+ workspace_id?: string;
165
+ slack_name?: string;
166
+ slack_team_id?: string;
167
+ slack_command_script?: string;
168
+ auto_invite_domain?: string;
169
+ auto_invite_operator?: boolean;
170
+ plan?: string;
171
+ customer_id?: string;
172
+ webhook?: string;
173
+ deploy_to?: string;
174
+ openai_resource_path?: string;
175
+ error_handler?: string;
176
+ }>;
177
+ /**
178
+ * get deploy to
179
+ * @returns any status
180
+ * @throws ApiError
181
+ */
182
+ static getDeployTo({ workspace, }: {
183
+ workspace: string;
184
+ }): CancelablePromise<{
185
+ deploy_to?: string;
186
+ }>;
187
+ /**
188
+ * get premium info
189
+ * @returns any status
190
+ * @throws ApiError
191
+ */
192
+ static getPremiumInfo({ workspace, }: {
193
+ workspace: string;
194
+ }): CancelablePromise<{
195
+ premium: boolean;
196
+ usage?: number;
197
+ }>;
198
+ /**
199
+ * edit slack command
200
+ * @returns string status
201
+ * @throws ApiError
202
+ */
203
+ static editSlackCommand({ workspace, requestBody, }: {
204
+ workspace: string;
205
+ /**
206
+ * WorkspaceInvite
207
+ */
208
+ requestBody: {
209
+ slack_command_script?: string;
210
+ };
211
+ }): CancelablePromise<string>;
212
+ /**
213
+ * edit deploy to
214
+ * @returns string status
215
+ * @throws ApiError
216
+ */
217
+ static editDeployTo({ workspace, requestBody, }: {
218
+ workspace: string;
219
+ requestBody: {
220
+ deploy_to?: string;
221
+ };
222
+ }): CancelablePromise<string>;
223
+ /**
224
+ * edit auto invite
225
+ * @returns string status
226
+ * @throws ApiError
227
+ */
228
+ static editAutoInvite({ workspace, requestBody, }: {
229
+ workspace: string;
230
+ /**
231
+ * WorkspaceInvite
232
+ */
233
+ requestBody: {
234
+ operator?: boolean;
235
+ };
236
+ }): CancelablePromise<string>;
237
+ /**
238
+ * edit webhook
239
+ * @returns string status
240
+ * @throws ApiError
241
+ */
242
+ static editWebhook({ workspace, requestBody, }: {
243
+ workspace: string;
244
+ /**
245
+ * WorkspaceWebhook
246
+ */
247
+ requestBody: {
248
+ webhook?: string;
249
+ };
250
+ }): CancelablePromise<string>;
251
+ /**
252
+ * edit OpenAI resource path
253
+ * @returns string status
254
+ * @throws ApiError
255
+ */
256
+ static editOpenaiResourcePath({ workspace, requestBody, }: {
257
+ workspace: string;
258
+ /**
259
+ * WorkspaceOpenaiResourcePath
260
+ */
261
+ requestBody: {
262
+ openai_resource_path?: string;
263
+ };
264
+ }): CancelablePromise<string>;
265
+ /**
266
+ * OpenAI resource path exists
267
+ * @returns boolean status
268
+ * @throws ApiError
269
+ */
270
+ static existsOpenaiResourcePath({ workspace, }: {
271
+ workspace: string;
272
+ }): CancelablePromise<boolean>;
273
+ /**
274
+ * edit error handler
275
+ * @returns string status
276
+ * @throws ApiError
277
+ */
278
+ static editErrorHandler({ workspace, requestBody, }: {
279
+ workspace: string;
280
+ /**
281
+ * WorkspaceErrorHandler
282
+ */
283
+ requestBody: {
284
+ error_handler?: string;
285
+ };
286
+ }): CancelablePromise<string>;
287
+ }