@flowcore/cli-plugin-iam 1.0.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.
- package/CHANGELOG.md +13 -0
- package/README.md +78 -0
- package/bin/dev.cmd +3 -0
- package/bin/dev.js +5 -0
- package/bin/run.cmd +3 -0
- package/bin/run.js +5 -0
- package/dist/commands/get/policy.d.ts +17 -0
- package/dist/commands/get/policy.js +165 -0
- package/dist/commands/get/role.d.ts +17 -0
- package/dist/commands/get/role.js +157 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/services/organization.service.d.ts +15 -0
- package/dist/services/organization.service.js +13 -0
- package/dist/utils/clients/iam/Api.d.ts +707 -0
- package/dist/utils/clients/iam/Api.js +482 -0
- package/dist/utils/clients/iam/Health.d.ts +10 -0
- package/dist/utils/clients/iam/Health.js +24 -0
- package/dist/utils/clients/iam/Transformers.d.ts +119 -0
- package/dist/utils/clients/iam/Transformers.js +81 -0
- package/dist/utils/clients/iam/http-client.d.ts +59 -0
- package/dist/utils/clients/iam/http-client.js +160 -0
- package/dist/utils/combine-merge.util.d.ts +2 -0
- package/dist/utils/combine-merge.util.js +16 -0
- package/dist/utils/fetch-manifest.util.d.ts +6 -0
- package/dist/utils/fetch-manifest.util.js +56 -0
- package/dist/utils/queries/fetch-organization-by-tenant.gql.d.ts +14 -0
- package/dist/utils/queries/fetch-organization-by-tenant.gql.js +16 -0
- package/dist/utils/read-pipe.util.d.ts +1 -0
- package/dist/utils/read-pipe.util.js +14 -0
- package/oclif.manifest.json +127 -0
- package/package.json +93 -0
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/*
|
|
4
|
+
* ---------------------------------------------------------------
|
|
5
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
6
|
+
* ## ##
|
|
7
|
+
* ## AUTHOR: acacode ##
|
|
8
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
9
|
+
* ---------------------------------------------------------------
|
|
10
|
+
*/
|
|
11
|
+
import { ContentType, HttpClient } from "./http-client.js";
|
|
12
|
+
export class Api extends HttpClient {
|
|
13
|
+
/**
|
|
14
|
+
* @description Get all policies for the current user
|
|
15
|
+
*
|
|
16
|
+
* @tags policies
|
|
17
|
+
* @name GetApiV1Policies
|
|
18
|
+
* @request GET:/api/v1/policies/
|
|
19
|
+
* @secure
|
|
20
|
+
*/
|
|
21
|
+
getApiV1Policies = (params = {}) => this.request({
|
|
22
|
+
path: `/api/v1/policies/`,
|
|
23
|
+
method: "GET",
|
|
24
|
+
secure: true,
|
|
25
|
+
format: "json",
|
|
26
|
+
...params,
|
|
27
|
+
});
|
|
28
|
+
/**
|
|
29
|
+
* @description Create a new policy
|
|
30
|
+
*
|
|
31
|
+
* @tags policies
|
|
32
|
+
* @name PostApiV1Policies
|
|
33
|
+
* @request POST:/api/v1/policies/
|
|
34
|
+
* @secure
|
|
35
|
+
*/
|
|
36
|
+
postApiV1Policies = (data, params = {}) => this.request({
|
|
37
|
+
path: `/api/v1/policies/`,
|
|
38
|
+
method: "POST",
|
|
39
|
+
body: data,
|
|
40
|
+
secure: true,
|
|
41
|
+
type: ContentType.Json,
|
|
42
|
+
format: "json",
|
|
43
|
+
...params,
|
|
44
|
+
});
|
|
45
|
+
/**
|
|
46
|
+
* @description Get a policy by id
|
|
47
|
+
*
|
|
48
|
+
* @tags policies
|
|
49
|
+
* @name GetApiV1PoliciesById
|
|
50
|
+
* @request GET:/api/v1/policies/{id}
|
|
51
|
+
* @secure
|
|
52
|
+
*/
|
|
53
|
+
getApiV1PoliciesById = (id, params = {}) => this.request({
|
|
54
|
+
path: `/api/v1/policies/${id}`,
|
|
55
|
+
method: "GET",
|
|
56
|
+
secure: true,
|
|
57
|
+
format: "json",
|
|
58
|
+
...params,
|
|
59
|
+
});
|
|
60
|
+
/**
|
|
61
|
+
* @description Update a policy by id
|
|
62
|
+
*
|
|
63
|
+
* @tags policies
|
|
64
|
+
* @name PatchApiV1PoliciesById
|
|
65
|
+
* @request PATCH:/api/v1/policies/{id}
|
|
66
|
+
* @secure
|
|
67
|
+
*/
|
|
68
|
+
patchApiV1PoliciesById = (id, data, params = {}) => this.request({
|
|
69
|
+
path: `/api/v1/policies/${id}`,
|
|
70
|
+
method: "PATCH",
|
|
71
|
+
body: data,
|
|
72
|
+
secure: true,
|
|
73
|
+
type: ContentType.Json,
|
|
74
|
+
format: "json",
|
|
75
|
+
...params,
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* @description Archive a policy by id
|
|
79
|
+
*
|
|
80
|
+
* @tags policies
|
|
81
|
+
* @name DeleteApiV1PoliciesById
|
|
82
|
+
* @request DELETE:/api/v1/policies/{id}
|
|
83
|
+
* @secure
|
|
84
|
+
*/
|
|
85
|
+
deleteApiV1PoliciesById = (id, params = {}) => this.request({
|
|
86
|
+
path: `/api/v1/policies/${id}`,
|
|
87
|
+
method: "DELETE",
|
|
88
|
+
secure: true,
|
|
89
|
+
format: "json",
|
|
90
|
+
...params,
|
|
91
|
+
});
|
|
92
|
+
/**
|
|
93
|
+
* @description Get all roles for the current user
|
|
94
|
+
*
|
|
95
|
+
* @tags roles
|
|
96
|
+
* @name GetApiV1Roles
|
|
97
|
+
* @request GET:/api/v1/roles/
|
|
98
|
+
* @secure
|
|
99
|
+
*/
|
|
100
|
+
getApiV1Roles = (params = {}) => this.request({
|
|
101
|
+
path: `/api/v1/roles/`,
|
|
102
|
+
method: "GET",
|
|
103
|
+
secure: true,
|
|
104
|
+
format: "json",
|
|
105
|
+
...params,
|
|
106
|
+
});
|
|
107
|
+
/**
|
|
108
|
+
* @description Create a new role
|
|
109
|
+
*
|
|
110
|
+
* @tags roles
|
|
111
|
+
* @name PostApiV1Roles
|
|
112
|
+
* @request POST:/api/v1/roles/
|
|
113
|
+
* @secure
|
|
114
|
+
*/
|
|
115
|
+
postApiV1Roles = (data, params = {}) => this.request({
|
|
116
|
+
path: `/api/v1/roles/`,
|
|
117
|
+
method: "POST",
|
|
118
|
+
body: data,
|
|
119
|
+
secure: true,
|
|
120
|
+
type: ContentType.Json,
|
|
121
|
+
format: "json",
|
|
122
|
+
...params,
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* @description Get a role by ID
|
|
126
|
+
*
|
|
127
|
+
* @tags roles
|
|
128
|
+
* @name GetApiV1RolesById
|
|
129
|
+
* @request GET:/api/v1/roles/{id}
|
|
130
|
+
* @secure
|
|
131
|
+
*/
|
|
132
|
+
getApiV1RolesById = (id, params = {}) => this.request({
|
|
133
|
+
path: `/api/v1/roles/${id}`,
|
|
134
|
+
method: "GET",
|
|
135
|
+
secure: true,
|
|
136
|
+
format: "json",
|
|
137
|
+
...params,
|
|
138
|
+
});
|
|
139
|
+
/**
|
|
140
|
+
* @description Update a role by ID
|
|
141
|
+
*
|
|
142
|
+
* @tags roles
|
|
143
|
+
* @name PatchApiV1RolesById
|
|
144
|
+
* @request PATCH:/api/v1/roles/{id}
|
|
145
|
+
* @secure
|
|
146
|
+
*/
|
|
147
|
+
patchApiV1RolesById = (id, data, params = {}) => this.request({
|
|
148
|
+
path: `/api/v1/roles/${id}`,
|
|
149
|
+
method: "PATCH",
|
|
150
|
+
body: data,
|
|
151
|
+
secure: true,
|
|
152
|
+
type: ContentType.Json,
|
|
153
|
+
format: "json",
|
|
154
|
+
...params,
|
|
155
|
+
});
|
|
156
|
+
/**
|
|
157
|
+
* @description Archive a role by ID
|
|
158
|
+
*
|
|
159
|
+
* @tags roles
|
|
160
|
+
* @name DeleteApiV1RolesById
|
|
161
|
+
* @request DELETE:/api/v1/roles/{id}
|
|
162
|
+
* @secure
|
|
163
|
+
*/
|
|
164
|
+
deleteApiV1RolesById = (id, params = {}) => this.request({
|
|
165
|
+
path: `/api/v1/roles/${id}`,
|
|
166
|
+
method: "DELETE",
|
|
167
|
+
secure: true,
|
|
168
|
+
format: "json",
|
|
169
|
+
...params,
|
|
170
|
+
});
|
|
171
|
+
/**
|
|
172
|
+
* @description Fetch policies for an organization
|
|
173
|
+
*
|
|
174
|
+
* @tags policy-associations
|
|
175
|
+
* @name GetApiV1PolicyAssociationsOrganizationByOrganizationId
|
|
176
|
+
* @request GET:/api/v1/policy-associations/organization/{organizationId}
|
|
177
|
+
* @secure
|
|
178
|
+
*/
|
|
179
|
+
getApiV1PolicyAssociationsOrganizationByOrganizationId = (organizationId, params = {}) => this.request({
|
|
180
|
+
path: `/api/v1/policy-associations/organization/${organizationId}`,
|
|
181
|
+
method: "GET",
|
|
182
|
+
secure: true,
|
|
183
|
+
format: "json",
|
|
184
|
+
...params,
|
|
185
|
+
});
|
|
186
|
+
/**
|
|
187
|
+
* @description Fetch policies for a user
|
|
188
|
+
*
|
|
189
|
+
* @tags policy-associations
|
|
190
|
+
* @name GetApiV1PolicyAssociationsUserByUserId
|
|
191
|
+
* @request GET:/api/v1/policy-associations/user/{userId}/
|
|
192
|
+
* @secure
|
|
193
|
+
*/
|
|
194
|
+
getApiV1PolicyAssociationsUserByUserId = (userId, query, params = {}) => this.request({
|
|
195
|
+
path: `/api/v1/policy-associations/user/${userId}/`,
|
|
196
|
+
method: "GET",
|
|
197
|
+
query: query,
|
|
198
|
+
secure: true,
|
|
199
|
+
format: "json",
|
|
200
|
+
...params,
|
|
201
|
+
});
|
|
202
|
+
/**
|
|
203
|
+
* @description Link a policy to a user
|
|
204
|
+
*
|
|
205
|
+
* @tags policy-associations
|
|
206
|
+
* @name PostApiV1PolicyAssociationsUserByUserId
|
|
207
|
+
* @request POST:/api/v1/policy-associations/user/{userId}/
|
|
208
|
+
* @secure
|
|
209
|
+
*/
|
|
210
|
+
postApiV1PolicyAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
211
|
+
path: `/api/v1/policy-associations/user/${userId}/`,
|
|
212
|
+
method: "POST",
|
|
213
|
+
body: data,
|
|
214
|
+
secure: true,
|
|
215
|
+
type: ContentType.Json,
|
|
216
|
+
format: "json",
|
|
217
|
+
...params,
|
|
218
|
+
});
|
|
219
|
+
/**
|
|
220
|
+
* @description Unlink a policy from a user
|
|
221
|
+
*
|
|
222
|
+
* @tags policy-associations
|
|
223
|
+
* @name DeleteApiV1PolicyAssociationsUserByUserId
|
|
224
|
+
* @request DELETE:/api/v1/policy-associations/user/{userId}/
|
|
225
|
+
* @secure
|
|
226
|
+
*/
|
|
227
|
+
deleteApiV1PolicyAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
228
|
+
path: `/api/v1/policy-associations/user/${userId}/`,
|
|
229
|
+
method: "DELETE",
|
|
230
|
+
body: data,
|
|
231
|
+
secure: true,
|
|
232
|
+
type: ContentType.Json,
|
|
233
|
+
format: "json",
|
|
234
|
+
...params,
|
|
235
|
+
});
|
|
236
|
+
/**
|
|
237
|
+
* @description Fetch policies for a key
|
|
238
|
+
*
|
|
239
|
+
* @tags policy-associations
|
|
240
|
+
* @name GetApiV1PolicyAssociationsKeyByKeyId
|
|
241
|
+
* @request GET:/api/v1/policy-associations/key/{keyId}/
|
|
242
|
+
* @secure
|
|
243
|
+
*/
|
|
244
|
+
getApiV1PolicyAssociationsKeyByKeyId = (keyId, params = {}) => this.request({
|
|
245
|
+
path: `/api/v1/policy-associations/key/${keyId}/`,
|
|
246
|
+
method: "GET",
|
|
247
|
+
secure: true,
|
|
248
|
+
format: "json",
|
|
249
|
+
...params,
|
|
250
|
+
});
|
|
251
|
+
/**
|
|
252
|
+
* @description Link a policy to a key
|
|
253
|
+
*
|
|
254
|
+
* @tags policy-associations
|
|
255
|
+
* @name PostApiV1PolicyAssociationsKeyByKeyId
|
|
256
|
+
* @request POST:/api/v1/policy-associations/key/{keyId}/
|
|
257
|
+
* @secure
|
|
258
|
+
*/
|
|
259
|
+
postApiV1PolicyAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
260
|
+
path: `/api/v1/policy-associations/key/${keyId}/`,
|
|
261
|
+
method: "POST",
|
|
262
|
+
body: data,
|
|
263
|
+
secure: true,
|
|
264
|
+
type: ContentType.Json,
|
|
265
|
+
format: "json",
|
|
266
|
+
...params,
|
|
267
|
+
});
|
|
268
|
+
/**
|
|
269
|
+
* @description Unlink a policy from a key
|
|
270
|
+
*
|
|
271
|
+
* @tags policy-associations
|
|
272
|
+
* @name DeleteApiV1PolicyAssociationsKeyByKeyId
|
|
273
|
+
* @request DELETE:/api/v1/policy-associations/key/{keyId}/
|
|
274
|
+
* @secure
|
|
275
|
+
*/
|
|
276
|
+
deleteApiV1PolicyAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
277
|
+
path: `/api/v1/policy-associations/key/${keyId}/`,
|
|
278
|
+
method: "DELETE",
|
|
279
|
+
body: data,
|
|
280
|
+
secure: true,
|
|
281
|
+
type: ContentType.Json,
|
|
282
|
+
format: "json",
|
|
283
|
+
...params,
|
|
284
|
+
});
|
|
285
|
+
/**
|
|
286
|
+
* @description Fetch policies for a role
|
|
287
|
+
*
|
|
288
|
+
* @tags policy-associations
|
|
289
|
+
* @name GetApiV1PolicyAssociationsRoleByRoleId
|
|
290
|
+
* @request GET:/api/v1/policy-associations/role/{roleId}/
|
|
291
|
+
* @secure
|
|
292
|
+
*/
|
|
293
|
+
getApiV1PolicyAssociationsRoleByRoleId = (roleId, params = {}) => this.request({
|
|
294
|
+
path: `/api/v1/policy-associations/role/${roleId}/`,
|
|
295
|
+
method: "GET",
|
|
296
|
+
secure: true,
|
|
297
|
+
format: "json",
|
|
298
|
+
...params,
|
|
299
|
+
});
|
|
300
|
+
/**
|
|
301
|
+
* @description Link a policy to a role
|
|
302
|
+
*
|
|
303
|
+
* @tags policy-associations
|
|
304
|
+
* @name PostApiV1PolicyAssociationsRoleByRoleId
|
|
305
|
+
* @request POST:/api/v1/policy-associations/role/{roleId}/
|
|
306
|
+
* @secure
|
|
307
|
+
*/
|
|
308
|
+
postApiV1PolicyAssociationsRoleByRoleId = (roleId, data, params = {}) => this.request({
|
|
309
|
+
path: `/api/v1/policy-associations/role/${roleId}/`,
|
|
310
|
+
method: "POST",
|
|
311
|
+
body: data,
|
|
312
|
+
secure: true,
|
|
313
|
+
type: ContentType.Json,
|
|
314
|
+
format: "json",
|
|
315
|
+
...params,
|
|
316
|
+
});
|
|
317
|
+
/**
|
|
318
|
+
* @description Unlink a policy from a role
|
|
319
|
+
*
|
|
320
|
+
* @tags policy-associations
|
|
321
|
+
* @name DeleteApiV1PolicyAssociationsRoleByRoleId
|
|
322
|
+
* @request DELETE:/api/v1/policy-associations/role/{roleId}/
|
|
323
|
+
* @secure
|
|
324
|
+
*/
|
|
325
|
+
deleteApiV1PolicyAssociationsRoleByRoleId = (roleId, data, params = {}) => this.request({
|
|
326
|
+
path: `/api/v1/policy-associations/role/${roleId}/`,
|
|
327
|
+
method: "DELETE",
|
|
328
|
+
body: data,
|
|
329
|
+
secure: true,
|
|
330
|
+
type: ContentType.Json,
|
|
331
|
+
format: "json",
|
|
332
|
+
...params,
|
|
333
|
+
});
|
|
334
|
+
/**
|
|
335
|
+
* @description Fetch roles for an organization
|
|
336
|
+
*
|
|
337
|
+
* @tags role-associations
|
|
338
|
+
* @name GetApiV1RoleAssociationsOrganizationByOrganizationId
|
|
339
|
+
* @request GET:/api/v1/role-associations/organization/{organizationId}
|
|
340
|
+
* @secure
|
|
341
|
+
*/
|
|
342
|
+
getApiV1RoleAssociationsOrganizationByOrganizationId = (organizationId, params = {}) => this.request({
|
|
343
|
+
path: `/api/v1/role-associations/organization/${organizationId}`,
|
|
344
|
+
method: "GET",
|
|
345
|
+
secure: true,
|
|
346
|
+
format: "json",
|
|
347
|
+
...params,
|
|
348
|
+
});
|
|
349
|
+
/**
|
|
350
|
+
* @description Fetch roles for a user
|
|
351
|
+
*
|
|
352
|
+
* @tags role-associations
|
|
353
|
+
* @name GetApiV1RoleAssociationsUserByUserId
|
|
354
|
+
* @request GET:/api/v1/role-associations/user/{userId}/
|
|
355
|
+
* @secure
|
|
356
|
+
*/
|
|
357
|
+
getApiV1RoleAssociationsUserByUserId = (userId, query, params = {}) => this.request({
|
|
358
|
+
path: `/api/v1/role-associations/user/${userId}/`,
|
|
359
|
+
method: "GET",
|
|
360
|
+
query: query,
|
|
361
|
+
secure: true,
|
|
362
|
+
format: "json",
|
|
363
|
+
...params,
|
|
364
|
+
});
|
|
365
|
+
/**
|
|
366
|
+
* @description Link a role to a user
|
|
367
|
+
*
|
|
368
|
+
* @tags role-associations
|
|
369
|
+
* @name PostApiV1RoleAssociationsUserByUserId
|
|
370
|
+
* @request POST:/api/v1/role-associations/user/{userId}/
|
|
371
|
+
* @secure
|
|
372
|
+
*/
|
|
373
|
+
postApiV1RoleAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
374
|
+
path: `/api/v1/role-associations/user/${userId}/`,
|
|
375
|
+
method: "POST",
|
|
376
|
+
body: data,
|
|
377
|
+
secure: true,
|
|
378
|
+
type: ContentType.Json,
|
|
379
|
+
format: "json",
|
|
380
|
+
...params,
|
|
381
|
+
});
|
|
382
|
+
/**
|
|
383
|
+
* @description Unlink a role from a user
|
|
384
|
+
*
|
|
385
|
+
* @tags role-associations
|
|
386
|
+
* @name DeleteApiV1RoleAssociationsUserByUserId
|
|
387
|
+
* @request DELETE:/api/v1/role-associations/user/{userId}/
|
|
388
|
+
* @secure
|
|
389
|
+
*/
|
|
390
|
+
deleteApiV1RoleAssociationsUserByUserId = (userId, data, params = {}) => this.request({
|
|
391
|
+
path: `/api/v1/role-associations/user/${userId}/`,
|
|
392
|
+
method: "DELETE",
|
|
393
|
+
body: data,
|
|
394
|
+
secure: true,
|
|
395
|
+
type: ContentType.Json,
|
|
396
|
+
format: "json",
|
|
397
|
+
...params,
|
|
398
|
+
});
|
|
399
|
+
/**
|
|
400
|
+
* @description Fetch roles for a key
|
|
401
|
+
*
|
|
402
|
+
* @tags role-associations
|
|
403
|
+
* @name GetApiV1RoleAssociationsKeyByKeyId
|
|
404
|
+
* @request GET:/api/v1/role-associations/key/{keyId}/
|
|
405
|
+
* @secure
|
|
406
|
+
*/
|
|
407
|
+
getApiV1RoleAssociationsKeyByKeyId = (keyId, params = {}) => this.request({
|
|
408
|
+
path: `/api/v1/role-associations/key/${keyId}/`,
|
|
409
|
+
method: "GET",
|
|
410
|
+
secure: true,
|
|
411
|
+
format: "json",
|
|
412
|
+
...params,
|
|
413
|
+
});
|
|
414
|
+
/**
|
|
415
|
+
* @description Link a role to a key
|
|
416
|
+
*
|
|
417
|
+
* @tags role-associations
|
|
418
|
+
* @name PostApiV1RoleAssociationsKeyByKeyId
|
|
419
|
+
* @request POST:/api/v1/role-associations/key/{keyId}/
|
|
420
|
+
* @secure
|
|
421
|
+
*/
|
|
422
|
+
postApiV1RoleAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
423
|
+
path: `/api/v1/role-associations/key/${keyId}/`,
|
|
424
|
+
method: "POST",
|
|
425
|
+
body: data,
|
|
426
|
+
secure: true,
|
|
427
|
+
type: ContentType.Json,
|
|
428
|
+
format: "json",
|
|
429
|
+
...params,
|
|
430
|
+
});
|
|
431
|
+
/**
|
|
432
|
+
* @description Unlink a role from a key
|
|
433
|
+
*
|
|
434
|
+
* @tags role-associations
|
|
435
|
+
* @name DeleteApiV1RoleAssociationsKeyByKeyId
|
|
436
|
+
* @request DELETE:/api/v1/role-associations/key/{keyId}/
|
|
437
|
+
* @secure
|
|
438
|
+
*/
|
|
439
|
+
deleteApiV1RoleAssociationsKeyByKeyId = (keyId, data, params = {}) => this.request({
|
|
440
|
+
path: `/api/v1/role-associations/key/${keyId}/`,
|
|
441
|
+
method: "DELETE",
|
|
442
|
+
body: data,
|
|
443
|
+
secure: true,
|
|
444
|
+
type: ContentType.Json,
|
|
445
|
+
format: "json",
|
|
446
|
+
...params,
|
|
447
|
+
});
|
|
448
|
+
/**
|
|
449
|
+
* @description Validate if a user can perform actions
|
|
450
|
+
*
|
|
451
|
+
* @tags validate
|
|
452
|
+
* @name PostApiV1ValidateUsersById
|
|
453
|
+
* @request POST:/api/v1/validate/users/{id}
|
|
454
|
+
* @secure
|
|
455
|
+
*/
|
|
456
|
+
postApiV1ValidateUsersById = (id, data, params = {}) => this.request({
|
|
457
|
+
path: `/api/v1/validate/users/${id}`,
|
|
458
|
+
method: "POST",
|
|
459
|
+
body: data,
|
|
460
|
+
secure: true,
|
|
461
|
+
type: ContentType.Json,
|
|
462
|
+
format: "json",
|
|
463
|
+
...params,
|
|
464
|
+
});
|
|
465
|
+
/**
|
|
466
|
+
* @description Validate if a key can perform actions
|
|
467
|
+
*
|
|
468
|
+
* @tags validate
|
|
469
|
+
* @name PostApiV1ValidateKeysById
|
|
470
|
+
* @request POST:/api/v1/validate/keys/{id}
|
|
471
|
+
* @secure
|
|
472
|
+
*/
|
|
473
|
+
postApiV1ValidateKeysById = (id, data, params = {}) => this.request({
|
|
474
|
+
path: `/api/v1/validate/keys/${id}`,
|
|
475
|
+
method: "POST",
|
|
476
|
+
body: data,
|
|
477
|
+
secure: true,
|
|
478
|
+
type: ContentType.Json,
|
|
479
|
+
format: "json",
|
|
480
|
+
...params,
|
|
481
|
+
});
|
|
482
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HttpClient, type RequestParams } from "./http-client.js";
|
|
2
|
+
export declare class Health<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
*
|
|
6
|
+
* @name GetHealth
|
|
7
|
+
* @request GET:/health/
|
|
8
|
+
*/
|
|
9
|
+
getHealth: (params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<void, any>>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/*
|
|
4
|
+
* ---------------------------------------------------------------
|
|
5
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
6
|
+
* ## ##
|
|
7
|
+
* ## AUTHOR: acacode ##
|
|
8
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
9
|
+
* ---------------------------------------------------------------
|
|
10
|
+
*/
|
|
11
|
+
import { HttpClient } from "./http-client.js";
|
|
12
|
+
export class Health extends HttpClient {
|
|
13
|
+
/**
|
|
14
|
+
* No description
|
|
15
|
+
*
|
|
16
|
+
* @name GetHealth
|
|
17
|
+
* @request GET:/health/
|
|
18
|
+
*/
|
|
19
|
+
getHealth = (params = {}) => this.request({
|
|
20
|
+
path: `/health/`,
|
|
21
|
+
method: "GET",
|
|
22
|
+
...params,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { HttpClient, type RequestParams } from "./http-client.js";
|
|
2
|
+
export declare class Transformers<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
*
|
|
6
|
+
* @tags transformers
|
|
7
|
+
* @name PostTransformersIam0
|
|
8
|
+
* @request POST:/transformers/iam.0
|
|
9
|
+
* @secure
|
|
10
|
+
*/
|
|
11
|
+
postTransformersIam0: (data: {
|
|
12
|
+
eventId: string;
|
|
13
|
+
aggregator: string;
|
|
14
|
+
eventType: string;
|
|
15
|
+
/** @pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,3})?Z$ */
|
|
16
|
+
validTime: string;
|
|
17
|
+
payload: any;
|
|
18
|
+
metadata?: object;
|
|
19
|
+
}, params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<{
|
|
20
|
+
status: "ok";
|
|
21
|
+
statusCode: 200;
|
|
22
|
+
} | {
|
|
23
|
+
status: "error";
|
|
24
|
+
statusCode: number;
|
|
25
|
+
message: string;
|
|
26
|
+
} | {
|
|
27
|
+
status: "error";
|
|
28
|
+
statusCode: 400;
|
|
29
|
+
message: string;
|
|
30
|
+
errors?: object;
|
|
31
|
+
}, any>>;
|
|
32
|
+
/**
|
|
33
|
+
* No description
|
|
34
|
+
*
|
|
35
|
+
* @tags transformers
|
|
36
|
+
* @name PostTransformersOrganization0
|
|
37
|
+
* @request POST:/transformers/organization.0
|
|
38
|
+
* @secure
|
|
39
|
+
*/
|
|
40
|
+
postTransformersOrganization0: (data: {
|
|
41
|
+
eventId: string;
|
|
42
|
+
aggregator: string;
|
|
43
|
+
eventType: string;
|
|
44
|
+
/** @pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,3})?Z$ */
|
|
45
|
+
validTime: string;
|
|
46
|
+
payload: any;
|
|
47
|
+
metadata?: object;
|
|
48
|
+
}, params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<{
|
|
49
|
+
status: "ok";
|
|
50
|
+
statusCode: 200;
|
|
51
|
+
} | {
|
|
52
|
+
status: "error";
|
|
53
|
+
statusCode: number;
|
|
54
|
+
message: string;
|
|
55
|
+
} | {
|
|
56
|
+
status: "error";
|
|
57
|
+
statusCode: 400;
|
|
58
|
+
message: string;
|
|
59
|
+
errors?: object;
|
|
60
|
+
}, any>>;
|
|
61
|
+
/**
|
|
62
|
+
* No description
|
|
63
|
+
*
|
|
64
|
+
* @tags transformers
|
|
65
|
+
* @name PostTransformersUser0
|
|
66
|
+
* @request POST:/transformers/user.0
|
|
67
|
+
* @secure
|
|
68
|
+
*/
|
|
69
|
+
postTransformersUser0: (data: {
|
|
70
|
+
eventId: string;
|
|
71
|
+
aggregator: string;
|
|
72
|
+
eventType: string;
|
|
73
|
+
/** @pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,3})?Z$ */
|
|
74
|
+
validTime: string;
|
|
75
|
+
payload: any;
|
|
76
|
+
metadata?: object;
|
|
77
|
+
}, params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<{
|
|
78
|
+
status: "ok";
|
|
79
|
+
statusCode: 200;
|
|
80
|
+
} | {
|
|
81
|
+
status: "error";
|
|
82
|
+
statusCode: number;
|
|
83
|
+
message: string;
|
|
84
|
+
} | {
|
|
85
|
+
status: "error";
|
|
86
|
+
statusCode: 400;
|
|
87
|
+
message: string;
|
|
88
|
+
errors?: object;
|
|
89
|
+
}, any>>;
|
|
90
|
+
/**
|
|
91
|
+
* No description
|
|
92
|
+
*
|
|
93
|
+
* @tags transformers
|
|
94
|
+
* @name PostTransformersSecurity0
|
|
95
|
+
* @request POST:/transformers/security.0
|
|
96
|
+
* @secure
|
|
97
|
+
*/
|
|
98
|
+
postTransformersSecurity0: (data: {
|
|
99
|
+
eventId: string;
|
|
100
|
+
aggregator: string;
|
|
101
|
+
eventType: string;
|
|
102
|
+
/** @pattern ^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(\.[0-9]{1,3})?Z$ */
|
|
103
|
+
validTime: string;
|
|
104
|
+
payload: any;
|
|
105
|
+
metadata?: object;
|
|
106
|
+
}, params?: RequestParams) => Promise<import("./http-client.js").HttpResponse<{
|
|
107
|
+
status: "ok";
|
|
108
|
+
statusCode: 200;
|
|
109
|
+
} | {
|
|
110
|
+
status: "error";
|
|
111
|
+
statusCode: number;
|
|
112
|
+
message: string;
|
|
113
|
+
} | {
|
|
114
|
+
status: "error";
|
|
115
|
+
statusCode: 400;
|
|
116
|
+
message: string;
|
|
117
|
+
errors?: object;
|
|
118
|
+
}, any>>;
|
|
119
|
+
}
|