windmill-client 0.3.7 → 0.3.8

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 (147) hide show
  1. package/dist/client.js +159 -156
  2. package/dist/core/ApiError.js +1 -5
  3. package/dist/core/ApiRequestOptions.js +1 -2
  4. package/dist/core/ApiResult.js +1 -2
  5. package/dist/core/CancelablePromise.js +2 -7
  6. package/dist/core/OpenAPI.js +1 -4
  7. package/dist/core/request.js +66 -92
  8. package/dist/index.js +42 -88
  9. package/dist/models/AccountId.js +1 -2
  10. package/dist/models/ActionKind.js +2 -5
  11. package/dist/models/After.js +1 -2
  12. package/dist/models/AppWithLastVersion.js +2 -5
  13. package/dist/models/AppWithLastVersionWDraft.js +1 -2
  14. package/dist/models/ArgsFilter.js +1 -2
  15. package/dist/models/AuditLog.js +2 -5
  16. package/dist/models/Before.js +1 -2
  17. package/dist/models/BranchAll.js +1 -2
  18. package/dist/models/BranchOne.js +1 -2
  19. package/dist/models/ClientName.js +1 -2
  20. package/dist/models/CompletedJob.js +2 -5
  21. package/dist/models/ContextualVariable.js +1 -2
  22. package/dist/models/CreateInput.js +1 -2
  23. package/dist/models/CreateResource.js +1 -2
  24. package/dist/models/CreateVariable.js +1 -2
  25. package/dist/models/CreateWorkspace.js +1 -2
  26. package/dist/models/CreatedBy.js +1 -2
  27. package/dist/models/EditResource.js +1 -2
  28. package/dist/models/EditResourceType.js +1 -2
  29. package/dist/models/EditSchedule.js +1 -2
  30. package/dist/models/EditVariable.js +1 -2
  31. package/dist/models/EditWorkspaceUser.js +1 -2
  32. package/dist/models/Flow.js +1 -2
  33. package/dist/models/FlowMetadata.js +1 -2
  34. package/dist/models/FlowModule.js +1 -2
  35. package/dist/models/FlowModuleValue.js +1 -2
  36. package/dist/models/FlowPreview.js +1 -2
  37. package/dist/models/FlowStatus.js +1 -2
  38. package/dist/models/FlowStatusModule.js +2 -5
  39. package/dist/models/FlowValue.js +1 -2
  40. package/dist/models/Folder.js +1 -2
  41. package/dist/models/ForloopFlow.js +1 -2
  42. package/dist/models/GlobalUserInfo.js +2 -5
  43. package/dist/models/Graphql.js +1 -2
  44. package/dist/models/Group.js +1 -2
  45. package/dist/models/Http.js +1 -2
  46. package/dist/models/Identity.js +1 -2
  47. package/dist/models/IncludeHeader.js +1 -2
  48. package/dist/models/Input.js +1 -2
  49. package/dist/models/InputId.js +1 -2
  50. package/dist/models/InputTransform.js +1 -2
  51. package/dist/models/JavascriptTransform.js +1 -2
  52. package/dist/models/Job.js +2 -5
  53. package/dist/models/JobId.js +1 -2
  54. package/dist/models/JobKinds.js +1 -2
  55. package/dist/models/ListableApp.js +2 -5
  56. package/dist/models/ListableRawApp.js +1 -2
  57. package/dist/models/ListableResource.js +1 -2
  58. package/dist/models/ListableVariable.js +1 -2
  59. package/dist/models/Login.js +1 -2
  60. package/dist/models/MainArgSignature.js +2 -5
  61. package/dist/models/Name.js +1 -2
  62. package/dist/models/NewJobId.js +1 -2
  63. package/dist/models/NewSchedule.js +1 -2
  64. package/dist/models/NewScript.js +2 -5
  65. package/dist/models/NewScriptWithDraft.js +1 -2
  66. package/dist/models/NewToken.js +1 -2
  67. package/dist/models/NewTokenImpersonate.js +1 -2
  68. package/dist/models/NewUser.js +1 -2
  69. package/dist/models/OpenFlow.js +1 -2
  70. package/dist/models/OpenFlowWPath.js +1 -2
  71. package/dist/models/Operation.js +1 -2
  72. package/dist/models/OrderDesc.js +1 -2
  73. package/dist/models/Page.js +1 -2
  74. package/dist/models/ParentJob.js +1 -2
  75. package/dist/models/Path.js +1 -2
  76. package/dist/models/PathFlow.js +1 -2
  77. package/dist/models/PathId.js +1 -2
  78. package/dist/models/PathScript.js +1 -2
  79. package/dist/models/Payload.js +1 -2
  80. package/dist/models/PerPage.js +1 -2
  81. package/dist/models/Policy.js +2 -5
  82. package/dist/models/Preview.js +2 -5
  83. package/dist/models/QueueLimit.js +1 -2
  84. package/dist/models/QueuedJob.js +2 -5
  85. package/dist/models/RawScript.js +2 -5
  86. package/dist/models/Resource.js +1 -2
  87. package/dist/models/ResourceName.js +1 -2
  88. package/dist/models/ResourceType.js +1 -2
  89. package/dist/models/ResultFilter.js +1 -2
  90. package/dist/models/Retry.js +1 -2
  91. package/dist/models/RunnableId.js +1 -2
  92. package/dist/models/RunnableType.js +2 -5
  93. package/dist/models/RunnableTypeQuery.js +1 -2
  94. package/dist/models/Running.js +1 -2
  95. package/dist/models/Schedule.js +1 -2
  96. package/dist/models/SchedulePath.js +1 -2
  97. package/dist/models/ScheduleWJobs.js +1 -2
  98. package/dist/models/Script.js +2 -5
  99. package/dist/models/ScriptArgs.js +1 -2
  100. package/dist/models/ScriptExactHash.js +1 -2
  101. package/dist/models/ScriptExactPath.js +1 -2
  102. package/dist/models/ScriptHash.js +1 -2
  103. package/dist/models/ScriptPath.js +1 -2
  104. package/dist/models/ScriptStartPath.js +1 -2
  105. package/dist/models/SlackToken.js +1 -2
  106. package/dist/models/StartedAfter.js +1 -2
  107. package/dist/models/StartedBefore.js +1 -2
  108. package/dist/models/StaticTransform.js +1 -2
  109. package/dist/models/Success.js +1 -2
  110. package/dist/models/Suspended.js +1 -2
  111. package/dist/models/Tag.js +1 -2
  112. package/dist/models/Token.js +1 -2
  113. package/dist/models/TokenResponse.js +1 -2
  114. package/dist/models/TruncatedToken.js +1 -2
  115. package/dist/models/UpdateInput.js +1 -2
  116. package/dist/models/Usage.js +1 -2
  117. package/dist/models/User.js +1 -2
  118. package/dist/models/UserWorkspaceList.js +1 -2
  119. package/dist/models/Username.js +1 -2
  120. package/dist/models/VersionId.js +1 -2
  121. package/dist/models/WorkerPing.js +1 -2
  122. package/dist/models/Workspace.js +1 -2
  123. package/dist/models/WorkspaceId.js +1 -2
  124. package/dist/models/WorkspaceInvite.js +1 -2
  125. package/dist/services/AdminService.js +6 -10
  126. package/dist/services/AppService.js +16 -20
  127. package/dist/services/AuditService.js +5 -9
  128. package/dist/services/CaptureService.js +6 -10
  129. package/dist/services/DraftService.js +5 -9
  130. package/dist/services/FavoriteService.js +5 -9
  131. package/dist/services/FlowService.js +15 -19
  132. package/dist/services/FolderService.js +12 -16
  133. package/dist/services/GranularAclService.js +6 -10
  134. package/dist/services/GroupService.js +11 -15
  135. package/dist/services/InputService.js +8 -12
  136. package/dist/services/JobService.js +34 -38
  137. package/dist/services/OauthService.js +11 -15
  138. package/dist/services/RawAppService.js +9 -13
  139. package/dist/services/ResourceService.js +18 -22
  140. package/dist/services/ScheduleService.js +12 -16
  141. package/dist/services/ScriptService.js +21 -25
  142. package/dist/services/SettingsService.js +7 -11
  143. package/dist/services/UserService.js +32 -36
  144. package/dist/services/VariableService.js +11 -15
  145. package/dist/services/WorkerService.js +5 -9
  146. package/dist/services/WorkspaceService.js +24 -28
  147. package/package.json +1 -1
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScheduleService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class ScheduleService {
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class ScheduleService {
7
4
  /**
8
5
  * preview schedule
9
6
  * @returns string List of 5 estimated upcoming execution events (in UTC)
10
7
  * @throws ApiError
11
8
  */
12
9
  static previewSchedule({ requestBody, }) {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
10
+ return __request(OpenAPI, {
14
11
  method: 'POST',
15
12
  url: '/schedules/preview',
16
13
  body: requestBody,
@@ -23,7 +20,7 @@ class ScheduleService {
23
20
  * @throws ApiError
24
21
  */
25
22
  static createSchedule({ workspace, requestBody, }) {
26
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
23
+ return __request(OpenAPI, {
27
24
  method: 'POST',
28
25
  url: '/w/{workspace}/schedules/create',
29
26
  path: {
@@ -39,7 +36,7 @@ class ScheduleService {
39
36
  * @throws ApiError
40
37
  */
41
38
  static updateSchedule({ workspace, path, requestBody, }) {
42
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
39
+ return __request(OpenAPI, {
43
40
  method: 'POST',
44
41
  url: '/w/{workspace}/schedules/update/{path}',
45
42
  path: {
@@ -56,7 +53,7 @@ class ScheduleService {
56
53
  * @throws ApiError
57
54
  */
58
55
  static setScheduleEnabled({ workspace, path, requestBody, }) {
59
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
56
+ return __request(OpenAPI, {
60
57
  method: 'POST',
61
58
  url: '/w/{workspace}/schedules/setenabled/{path}',
62
59
  path: {
@@ -73,7 +70,7 @@ class ScheduleService {
73
70
  * @throws ApiError
74
71
  */
75
72
  static deleteSchedule({ workspace, path, }) {
76
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
73
+ return __request(OpenAPI, {
77
74
  method: 'DELETE',
78
75
  url: '/w/{workspace}/schedules/delete/{path}',
79
76
  path: {
@@ -88,7 +85,7 @@ class ScheduleService {
88
85
  * @throws ApiError
89
86
  */
90
87
  static getSchedule({ workspace, path, }) {
91
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
88
+ return __request(OpenAPI, {
92
89
  method: 'GET',
93
90
  url: '/w/{workspace}/schedules/get/{path}',
94
91
  path: {
@@ -103,7 +100,7 @@ class ScheduleService {
103
100
  * @throws ApiError
104
101
  */
105
102
  static existsSchedule({ workspace, path, }) {
106
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
103
+ return __request(OpenAPI, {
107
104
  method: 'GET',
108
105
  url: '/w/{workspace}/schedules/exists/{path}',
109
106
  path: {
@@ -118,7 +115,7 @@ class ScheduleService {
118
115
  * @throws ApiError
119
116
  */
120
117
  static listSchedules({ workspace, page, perPage, }) {
121
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
118
+ return __request(OpenAPI, {
122
119
  method: 'GET',
123
120
  url: '/w/{workspace}/schedules/list',
124
121
  path: {
@@ -136,7 +133,7 @@ class ScheduleService {
136
133
  * @throws ApiError
137
134
  */
138
135
  static listSchedulesWithJobs({ workspace, page, perPage, }) {
139
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
136
+ return __request(OpenAPI, {
140
137
  method: 'GET',
141
138
  url: '/w/{workspace}/schedules/list_with_jobs',
142
139
  path: {
@@ -149,4 +146,3 @@ class ScheduleService {
149
146
  });
150
147
  }
151
148
  }
152
- exports.ScheduleService = ScheduleService;
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScriptService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class ScriptService {
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class ScriptService {
7
4
  /**
8
5
  * list all available hub scripts
9
6
  * @returns any hub scripts list
10
7
  * @throws ApiError
11
8
  */
12
9
  static listHubScripts() {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
10
+ return __request(OpenAPI, {
14
11
  method: 'GET',
15
12
  url: '/scripts/hub/list',
16
13
  });
@@ -21,7 +18,7 @@ class ScriptService {
21
18
  * @throws ApiError
22
19
  */
23
20
  static getHubScriptContentByPath({ path, }) {
24
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
21
+ return __request(OpenAPI, {
25
22
  method: 'GET',
26
23
  url: '/scripts/hub/get/{path}',
27
24
  path: {
@@ -35,7 +32,7 @@ class ScriptService {
35
32
  * @throws ApiError
36
33
  */
37
34
  static getHubScriptByPath({ path, }) {
38
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
35
+ return __request(OpenAPI, {
39
36
  method: 'GET',
40
37
  url: '/scripts/hub/get_full/{path}',
41
38
  path: {
@@ -49,7 +46,7 @@ class ScriptService {
49
46
  * @throws ApiError
50
47
  */
51
48
  static listScripts({ workspace, page, perPage, orderDesc, createdBy, pathStart, pathExact, firstParentHash, lastParentHash, parentHash, showArchived, isTemplate, kind, starredOnly, }) {
52
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
49
+ return __request(OpenAPI, {
53
50
  method: 'GET',
54
51
  url: '/w/{workspace}/scripts/list',
55
52
  path: {
@@ -78,7 +75,7 @@ class ScriptService {
78
75
  * @throws ApiError
79
76
  */
80
77
  static listScriptPaths({ workspace, }) {
81
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
78
+ return __request(OpenAPI, {
82
79
  method: 'GET',
83
80
  url: '/w/{workspace}/scripts/list_paths',
84
81
  path: {
@@ -92,7 +89,7 @@ class ScriptService {
92
89
  * @throws ApiError
93
90
  */
94
91
  static createScript({ workspace, requestBody, }) {
95
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
92
+ return __request(OpenAPI, {
96
93
  method: 'POST',
97
94
  url: '/w/{workspace}/scripts/create',
98
95
  path: {
@@ -108,7 +105,7 @@ class ScriptService {
108
105
  * @throws ApiError
109
106
  */
110
107
  static archiveScriptByPath({ workspace, path, }) {
111
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
108
+ return __request(OpenAPI, {
112
109
  method: 'POST',
113
110
  url: '/w/{workspace}/scripts/archive/p/{path}',
114
111
  path: {
@@ -123,7 +120,7 @@ class ScriptService {
123
120
  * @throws ApiError
124
121
  */
125
122
  static archiveScriptByHash({ workspace, hash, }) {
126
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
123
+ return __request(OpenAPI, {
127
124
  method: 'POST',
128
125
  url: '/w/{workspace}/scripts/archive/h/{hash}',
129
126
  path: {
@@ -138,7 +135,7 @@ class ScriptService {
138
135
  * @throws ApiError
139
136
  */
140
137
  static deleteScriptByHash({ workspace, hash, }) {
141
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
138
+ return __request(OpenAPI, {
142
139
  method: 'POST',
143
140
  url: '/w/{workspace}/scripts/delete/h/{hash}',
144
141
  path: {
@@ -153,7 +150,7 @@ class ScriptService {
153
150
  * @throws ApiError
154
151
  */
155
152
  static deleteScriptByPath({ workspace, path, }) {
156
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
153
+ return __request(OpenAPI, {
157
154
  method: 'POST',
158
155
  url: '/w/{workspace}/scripts/delete/p/{path}',
159
156
  path: {
@@ -168,7 +165,7 @@ class ScriptService {
168
165
  * @throws ApiError
169
166
  */
170
167
  static getScriptByPath({ workspace, path, }) {
171
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
168
+ return __request(OpenAPI, {
172
169
  method: 'GET',
173
170
  url: '/w/{workspace}/scripts/get/p/{path}',
174
171
  path: {
@@ -183,7 +180,7 @@ class ScriptService {
183
180
  * @throws ApiError
184
181
  */
185
182
  static getScriptByPathWithDraft({ workspace, path, }) {
186
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
183
+ return __request(OpenAPI, {
187
184
  method: 'GET',
188
185
  url: '/w/{workspace}/scripts/get/draft/{path}',
189
186
  path: {
@@ -198,7 +195,7 @@ class ScriptService {
198
195
  * @throws ApiError
199
196
  */
200
197
  static rawScriptByPath({ workspace, path, }) {
201
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
198
+ return __request(OpenAPI, {
202
199
  method: 'GET',
203
200
  url: '/w/{workspace}/scripts/raw/p/{path}',
204
201
  path: {
@@ -213,7 +210,7 @@ class ScriptService {
213
210
  * @throws ApiError
214
211
  */
215
212
  static rawScriptByPathTokened({ workspace, token, path, }) {
216
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
213
+ return __request(OpenAPI, {
217
214
  method: 'GET',
218
215
  url: '/scripts_u/tokened_raw/{workspace}/{token}/{path}',
219
216
  path: {
@@ -229,7 +226,7 @@ class ScriptService {
229
226
  * @throws ApiError
230
227
  */
231
228
  static existsScriptByPath({ workspace, path, }) {
232
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
229
+ return __request(OpenAPI, {
233
230
  method: 'GET',
234
231
  url: '/w/{workspace}/scripts/exists/p/{path}',
235
232
  path: {
@@ -244,7 +241,7 @@ class ScriptService {
244
241
  * @throws ApiError
245
242
  */
246
243
  static getScriptByHash({ workspace, hash, }) {
247
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
244
+ return __request(OpenAPI, {
248
245
  method: 'GET',
249
246
  url: '/w/{workspace}/scripts/get/h/{hash}',
250
247
  path: {
@@ -259,7 +256,7 @@ class ScriptService {
259
256
  * @throws ApiError
260
257
  */
261
258
  static rawScriptByHash({ workspace, path, }) {
262
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
259
+ return __request(OpenAPI, {
263
260
  method: 'GET',
264
261
  url: '/w/{workspace}/scripts/raw/h/{path}',
265
262
  path: {
@@ -274,7 +271,7 @@ class ScriptService {
274
271
  * @throws ApiError
275
272
  */
276
273
  static getScriptDeploymentStatus({ workspace, hash, }) {
277
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
274
+ return __request(OpenAPI, {
278
275
  method: 'GET',
279
276
  url: '/w/{workspace}/scripts/deployment_status/h/{hash}',
280
277
  path: {
@@ -284,4 +281,3 @@ class ScriptService {
284
281
  });
285
282
  }
286
283
  }
287
- exports.ScriptService = ScriptService;
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SettingsService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class SettingsService {
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class SettingsService {
7
4
  /**
8
5
  * get backend version
9
6
  * @returns string git version of backend
10
7
  * @throws ApiError
11
8
  */
12
9
  static backendVersion() {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
10
+ return __request(OpenAPI, {
14
11
  method: 'GET',
15
12
  url: '/version',
16
13
  });
@@ -21,7 +18,7 @@ class SettingsService {
21
18
  * @throws ApiError
22
19
  */
23
20
  static backendUptodate() {
24
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
21
+ return __request(OpenAPI, {
25
22
  method: 'GET',
26
23
  url: '/uptodate',
27
24
  });
@@ -32,7 +29,7 @@ class SettingsService {
32
29
  * @throws ApiError
33
30
  */
34
31
  static getLicenseId() {
35
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
32
+ return __request(OpenAPI, {
36
33
  method: 'GET',
37
34
  url: '/ee_license',
38
35
  });
@@ -43,10 +40,9 @@ class SettingsService {
43
40
  * @throws ApiError
44
41
  */
45
42
  static getOpenApiYaml() {
46
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
43
+ return __request(OpenAPI, {
47
44
  method: 'GET',
48
45
  url: '/openapi.yaml',
49
46
  });
50
47
  }
51
48
  }
52
- exports.SettingsService = SettingsService;
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserService = void 0;
4
- const OpenAPI_1 = require("../core/OpenAPI");
5
- const request_1 = require("../core/request");
6
- class UserService {
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class UserService {
7
4
  /**
8
5
  * login with password
9
6
  * @returns string Successfully authenticated. The session ID is returned in a cookie named `token` and as plaintext response. Preferred method of authorization is through the bearer token. The cookie is only for browser convenience.
@@ -11,7 +8,7 @@ class UserService {
11
8
  * @throws ApiError
12
9
  */
13
10
  static login({ requestBody, }) {
14
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
11
+ return __request(OpenAPI, {
15
12
  method: 'POST',
16
13
  url: '/auth/login',
17
14
  body: requestBody,
@@ -24,7 +21,7 @@ class UserService {
24
21
  * @throws ApiError
25
22
  */
26
23
  static logout() {
27
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
24
+ return __request(OpenAPI, {
28
25
  method: 'POST',
29
26
  url: '/auth/logout',
30
27
  });
@@ -35,7 +32,7 @@ class UserService {
35
32
  * @throws ApiError
36
33
  */
37
34
  static createUser({ workspace, requestBody, }) {
38
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
35
+ return __request(OpenAPI, {
39
36
  method: 'POST',
40
37
  url: '/w/{workspace}/users/add',
41
38
  path: {
@@ -51,7 +48,7 @@ class UserService {
51
48
  * @throws ApiError
52
49
  */
53
50
  static updateUser({ workspace, username, requestBody, }) {
54
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
51
+ return __request(OpenAPI, {
55
52
  method: 'POST',
56
53
  url: '/w/{workspace}/users/update/{username}',
57
54
  path: {
@@ -68,7 +65,7 @@ class UserService {
68
65
  * @throws ApiError
69
66
  */
70
67
  static isOwnerOfPath({ workspace, path, }) {
71
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
68
+ return __request(OpenAPI, {
72
69
  method: 'GET',
73
70
  url: '/w/{workspace}/users/is_owner/{path}',
74
71
  path: {
@@ -83,7 +80,7 @@ class UserService {
83
80
  * @throws ApiError
84
81
  */
85
82
  static setPassword({ requestBody, }) {
86
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
83
+ return __request(OpenAPI, {
87
84
  method: 'POST',
88
85
  url: '/users/setpassword',
89
86
  body: requestBody,
@@ -96,7 +93,7 @@ class UserService {
96
93
  * @throws ApiError
97
94
  */
98
95
  static createUserGlobally({ requestBody, }) {
99
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
96
+ return __request(OpenAPI, {
100
97
  method: 'POST',
101
98
  url: '/users/create',
102
99
  body: requestBody,
@@ -109,7 +106,7 @@ class UserService {
109
106
  * @throws ApiError
110
107
  */
111
108
  static globalUserUpdate({ email, requestBody, }) {
112
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
109
+ return __request(OpenAPI, {
113
110
  method: 'POST',
114
111
  url: '/users/update/{email}',
115
112
  path: {
@@ -125,7 +122,7 @@ class UserService {
125
122
  * @throws ApiError
126
123
  */
127
124
  static globalUserDelete({ email, }) {
128
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
125
+ return __request(OpenAPI, {
129
126
  method: 'DELETE',
130
127
  url: '/users/delete/{email}',
131
128
  path: {
@@ -139,7 +136,7 @@ class UserService {
139
136
  * @throws ApiError
140
137
  */
141
138
  static deleteUser({ workspace, username, }) {
142
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
139
+ return __request(OpenAPI, {
143
140
  method: 'DELETE',
144
141
  url: '/w/{workspace}/users/delete/{username}',
145
142
  path: {
@@ -154,7 +151,7 @@ class UserService {
154
151
  * @throws ApiError
155
152
  */
156
153
  static getCurrentEmail() {
157
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
154
+ return __request(OpenAPI, {
158
155
  method: 'GET',
159
156
  url: '/users/email',
160
157
  });
@@ -165,7 +162,7 @@ class UserService {
165
162
  * @throws ApiError
166
163
  */
167
164
  static getUsage() {
168
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
165
+ return __request(OpenAPI, {
169
166
  method: 'GET',
170
167
  url: '/users/usage',
171
168
  });
@@ -176,7 +173,7 @@ class UserService {
176
173
  * @throws ApiError
177
174
  */
178
175
  static getRunnable() {
179
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
176
+ return __request(OpenAPI, {
180
177
  method: 'GET',
181
178
  url: '/users/all_runnables',
182
179
  });
@@ -187,7 +184,7 @@ class UserService {
187
184
  * @throws ApiError
188
185
  */
189
186
  static globalWhoami() {
190
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
187
+ return __request(OpenAPI, {
191
188
  method: 'GET',
192
189
  url: '/users/whoami',
193
190
  });
@@ -198,7 +195,7 @@ class UserService {
198
195
  * @throws ApiError
199
196
  */
200
197
  static listWorkspaceInvites() {
201
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
198
+ return __request(OpenAPI, {
202
199
  method: 'GET',
203
200
  url: '/users/list_invites',
204
201
  });
@@ -209,7 +206,7 @@ class UserService {
209
206
  * @throws ApiError
210
207
  */
211
208
  static whoami({ workspace, }) {
212
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
209
+ return __request(OpenAPI, {
213
210
  method: 'GET',
214
211
  url: '/w/{workspace}/users/whoami',
215
212
  path: {
@@ -223,7 +220,7 @@ class UserService {
223
220
  * @throws ApiError
224
221
  */
225
222
  static leaveWorkspace({ workspace, }) {
226
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
223
+ return __request(OpenAPI, {
227
224
  method: 'POST',
228
225
  url: '/w/{workspace}/users/leave_workspace',
229
226
  path: {
@@ -237,7 +234,7 @@ class UserService {
237
234
  * @throws ApiError
238
235
  */
239
236
  static acceptInvite({ requestBody, }) {
240
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
237
+ return __request(OpenAPI, {
241
238
  method: 'POST',
242
239
  url: '/users/accept_invite',
243
240
  body: requestBody,
@@ -250,7 +247,7 @@ class UserService {
250
247
  * @throws ApiError
251
248
  */
252
249
  static declineInvite({ requestBody, }) {
253
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
250
+ return __request(OpenAPI, {
254
251
  method: 'POST',
255
252
  url: '/users/decline_invite',
256
253
  body: requestBody,
@@ -263,7 +260,7 @@ class UserService {
263
260
  * @throws ApiError
264
261
  */
265
262
  static whois({ workspace, username, }) {
266
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
263
+ return __request(OpenAPI, {
267
264
  method: 'GET',
268
265
  url: '/w/{workspace}/users/whois/{username}',
269
266
  path: {
@@ -278,7 +275,7 @@ class UserService {
278
275
  * @throws ApiError
279
276
  */
280
277
  static existsEmail({ email, }) {
281
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
278
+ return __request(OpenAPI, {
282
279
  method: 'GET',
283
280
  url: '/users/exists/{email}',
284
281
  path: {
@@ -292,7 +289,7 @@ class UserService {
292
289
  * @throws ApiError
293
290
  */
294
291
  static listUsersAsSuperAdmin({ page, perPage, }) {
295
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
292
+ return __request(OpenAPI, {
296
293
  method: 'GET',
297
294
  url: '/users/list_as_super_admin',
298
295
  query: {
@@ -307,7 +304,7 @@ class UserService {
307
304
  * @throws ApiError
308
305
  */
309
306
  static listUsers({ workspace, }) {
310
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
307
+ return __request(OpenAPI, {
311
308
  method: 'GET',
312
309
  url: '/w/{workspace}/users/list',
313
310
  path: {
@@ -321,7 +318,7 @@ class UserService {
321
318
  * @throws ApiError
322
319
  */
323
320
  static listUsernames({ workspace, }) {
324
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
321
+ return __request(OpenAPI, {
325
322
  method: 'GET',
326
323
  url: '/w/{workspace}/users/list_usernames',
327
324
  path: {
@@ -335,7 +332,7 @@ class UserService {
335
332
  * @throws ApiError
336
333
  */
337
334
  static createToken({ requestBody, }) {
338
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
335
+ return __request(OpenAPI, {
339
336
  method: 'POST',
340
337
  url: '/users/tokens/create',
341
338
  body: requestBody,
@@ -348,7 +345,7 @@ class UserService {
348
345
  * @throws ApiError
349
346
  */
350
347
  static createTokenImpersonate({ requestBody, }) {
351
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
348
+ return __request(OpenAPI, {
352
349
  method: 'POST',
353
350
  url: '/users/tokens/impersonate',
354
351
  body: requestBody,
@@ -361,7 +358,7 @@ class UserService {
361
358
  * @throws ApiError
362
359
  */
363
360
  static deleteToken({ tokenPrefix, }) {
364
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
361
+ return __request(OpenAPI, {
365
362
  method: 'DELETE',
366
363
  url: '/users/tokens/delete/{token_prefix}',
367
364
  path: {
@@ -375,7 +372,7 @@ class UserService {
375
372
  * @throws ApiError
376
373
  */
377
374
  static listTokens() {
378
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
375
+ return __request(OpenAPI, {
379
376
  method: 'GET',
380
377
  url: '/users/tokens/list',
381
378
  });
@@ -387,7 +384,7 @@ class UserService {
387
384
  * @throws ApiError
388
385
  */
389
386
  static loginWithOauth({ clientName, requestBody, }) {
390
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
387
+ return __request(OpenAPI, {
391
388
  method: 'POST',
392
389
  url: '/oauth/login_callback/{client_name}',
393
390
  path: {
@@ -398,4 +395,3 @@ class UserService {
398
395
  });
399
396
  }
400
397
  }
401
- exports.UserService = UserService;
@@ -1,16 +1,13 @@
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 {
1
+ import { OpenAPI } from '../core/OpenAPI';
2
+ import { request as __request } from '../core/request';
3
+ export class VariableService {
7
4
  /**
8
5
  * create variable
9
6
  * @returns string variable created
10
7
  * @throws ApiError
11
8
  */
12
9
  static createVariable({ workspace, requestBody, alreadyEncrypted, }) {
13
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
10
+ return __request(OpenAPI, {
14
11
  method: 'POST',
15
12
  url: '/w/{workspace}/variables/create',
16
13
  path: {
@@ -29,7 +26,7 @@ class VariableService {
29
26
  * @throws ApiError
30
27
  */
31
28
  static encryptValue({ workspace, requestBody, }) {
32
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
29
+ return __request(OpenAPI, {
33
30
  method: 'POST',
34
31
  url: '/w/{workspace}/variables/encrypt',
35
32
  path: {
@@ -45,7 +42,7 @@ class VariableService {
45
42
  * @throws ApiError
46
43
  */
47
44
  static deleteVariable({ workspace, path, }) {
48
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
45
+ return __request(OpenAPI, {
49
46
  method: 'DELETE',
50
47
  url: '/w/{workspace}/variables/delete/{path}',
51
48
  path: {
@@ -60,7 +57,7 @@ class VariableService {
60
57
  * @throws ApiError
61
58
  */
62
59
  static updateVariable({ workspace, path, requestBody, alreadyEncrypted, }) {
63
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
60
+ return __request(OpenAPI, {
64
61
  method: 'POST',
65
62
  url: '/w/{workspace}/variables/update/{path}',
66
63
  path: {
@@ -80,7 +77,7 @@ class VariableService {
80
77
  * @throws ApiError
81
78
  */
82
79
  static getVariable({ workspace, path, decryptSecret, }) {
83
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
80
+ return __request(OpenAPI, {
84
81
  method: 'GET',
85
82
  url: '/w/{workspace}/variables/get/{path}',
86
83
  path: {
@@ -98,7 +95,7 @@ class VariableService {
98
95
  * @throws ApiError
99
96
  */
100
97
  static existsVariable({ workspace, path, }) {
101
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
98
+ return __request(OpenAPI, {
102
99
  method: 'GET',
103
100
  url: '/w/{workspace}/variables/exists/{path}',
104
101
  path: {
@@ -113,7 +110,7 @@ class VariableService {
113
110
  * @throws ApiError
114
111
  */
115
112
  static listVariable({ workspace, }) {
116
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
113
+ return __request(OpenAPI, {
117
114
  method: 'GET',
118
115
  url: '/w/{workspace}/variables/list',
119
116
  path: {
@@ -127,7 +124,7 @@ class VariableService {
127
124
  * @throws ApiError
128
125
  */
129
126
  static listContextualVariables({ workspace, }) {
130
- return (0, request_1.request)(OpenAPI_1.OpenAPI, {
127
+ return __request(OpenAPI, {
131
128
  method: 'GET',
132
129
  url: '/w/{workspace}/variables/list_contextual',
133
130
  path: {
@@ -136,4 +133,3 @@ class VariableService {
136
133
  });
137
134
  }
138
135
  }
139
- exports.VariableService = VariableService;