@flowcore/cli-plugin-iam 1.8.0 → 1.8.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.
package/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @flowcore/cli-plugin-iam
18
18
  $ iam COMMAND
19
19
  running command...
20
20
  $ iam (--version)
21
- @flowcore/cli-plugin-iam/1.8.0 linux-x64 node-v20.20.0
21
+ @flowcore/cli-plugin-iam/1.8.1 linux-x64 node-v20.20.0
22
22
  $ iam --help [COMMAND]
23
23
  USAGE
24
24
  $ iam COMMAND
@@ -79,7 +79,7 @@ EXAMPLES
79
79
  $ flowcore iam assign policy read-access --user "auth0|abc123" -t my-org -j
80
80
  ```
81
81
 
82
- _See code: [src/commands/assign/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/assign/policy.ts)_
82
+ _See code: [src/commands/assign/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/assign/policy.ts)_
83
83
 
84
84
  ## `iam assign role ROLE_NAME`
85
85
 
@@ -110,7 +110,7 @@ EXAMPLES
110
110
  $ flowcore iam assign role data-reader --user "auth0|abc123" -t my-org -j
111
111
  ```
112
112
 
113
- _See code: [src/commands/assign/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/assign/role.ts)_
113
+ _See code: [src/commands/assign/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/assign/role.ts)_
114
114
 
115
115
  ## `iam create policy NAME`
116
116
 
@@ -144,7 +144,7 @@ EXAMPLES
144
144
  $ flowcore iam create policy admin-access -t my-org --version "2024-01-01" --description "Full admin access" --documents '[{"resource":"frn::my-org:*","action":"*"}]' -j
145
145
  ```
146
146
 
147
- _See code: [src/commands/create/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/create/policy.ts)_
147
+ _See code: [src/commands/create/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/create/policy.ts)_
148
148
 
149
149
  ## `iam create role NAME`
150
150
 
@@ -172,7 +172,7 @@ EXAMPLES
172
172
  $ flowcore iam create role admin -t my-org -j
173
173
  ```
174
174
 
175
- _See code: [src/commands/create/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/create/role.ts)_
175
+ _See code: [src/commands/create/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/create/role.ts)_
176
176
 
177
177
  ## `iam delete policy NAME`
178
178
 
@@ -195,7 +195,7 @@ DESCRIPTION
195
195
  Delete a policy
196
196
  ```
197
197
 
198
- _See code: [src/commands/delete/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/delete/policy.ts)_
198
+ _See code: [src/commands/delete/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/delete/policy.ts)_
199
199
 
200
200
  ## `iam delete role NAME`
201
201
 
@@ -218,7 +218,7 @@ DESCRIPTION
218
218
  Delete a role
219
219
  ```
220
220
 
221
- _See code: [src/commands/delete/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/delete/role.ts)_
221
+ _See code: [src/commands/delete/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/delete/role.ts)_
222
222
 
223
223
  ## `iam edit policy NAME`
224
224
 
@@ -244,7 +244,7 @@ EXAMPLES
244
244
  $ FC_EDITOR=code flowcore iam edit policy my-policy -t my-tenant
245
245
  ```
246
246
 
247
- _See code: [src/commands/edit/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/edit/policy.ts)_
247
+ _See code: [src/commands/edit/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/edit/policy.ts)_
248
248
 
249
249
  ## `iam edit role NAME`
250
250
 
@@ -270,7 +270,7 @@ EXAMPLES
270
270
  $ FC_EDITOR=code flowcore iam edit role my-role -t my-tenant
271
271
  ```
272
272
 
273
- _See code: [src/commands/edit/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/edit/role.ts)_
273
+ _See code: [src/commands/edit/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/edit/role.ts)_
274
274
 
275
275
  ## `iam get key-policies KEY_ID`
276
276
 
@@ -299,7 +299,7 @@ EXAMPLES
299
299
  $ flowcore iam get key-policies "550e8400-e29b-41d4-a716-446655440000" -w
300
300
  ```
301
301
 
302
- _See code: [src/commands/get/key-policies.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/get/key-policies.ts)_
302
+ _See code: [src/commands/get/key-policies.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/get/key-policies.ts)_
303
303
 
304
304
  ## `iam get key-roles KEY_ID`
305
305
 
@@ -328,7 +328,7 @@ EXAMPLES
328
328
  $ flowcore iam get key-roles "550e8400-e29b-41d4-a716-446655440000" -w
329
329
  ```
330
330
 
331
- _See code: [src/commands/get/key-roles.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/get/key-roles.ts)_
331
+ _See code: [src/commands/get/key-roles.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/get/key-roles.ts)_
332
332
 
333
333
  ## `iam get policy [NAME]`
334
334
 
@@ -351,7 +351,7 @@ DESCRIPTION
351
351
  Get a policy
352
352
  ```
353
353
 
354
- _See code: [src/commands/get/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/get/policy.ts)_
354
+ _See code: [src/commands/get/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/get/policy.ts)_
355
355
 
356
356
  ## `iam get role [NAME]`
357
357
 
@@ -374,7 +374,7 @@ DESCRIPTION
374
374
  Get a role
375
375
  ```
376
376
 
377
- _See code: [src/commands/get/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/get/role.ts)_
377
+ _See code: [src/commands/get/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/get/role.ts)_
378
378
 
379
379
  ## `iam get user-policies USER_ID`
380
380
 
@@ -404,7 +404,7 @@ EXAMPLES
404
404
  $ flowcore iam get user-policies "auth0|abc123" -t my-org -w
405
405
  ```
406
406
 
407
- _See code: [src/commands/get/user-policies.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/get/user-policies.ts)_
407
+ _See code: [src/commands/get/user-policies.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/get/user-policies.ts)_
408
408
 
409
409
  ## `iam get user-roles USER_ID`
410
410
 
@@ -434,7 +434,7 @@ EXAMPLES
434
434
  $ flowcore iam get user-roles "auth0|abc123" -t my-org -w
435
435
  ```
436
436
 
437
- _See code: [src/commands/get/user-roles.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/get/user-roles.ts)_
437
+ _See code: [src/commands/get/user-roles.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/get/user-roles.ts)_
438
438
 
439
439
  ## `iam unassign policy POLICY_NAME`
440
440
 
@@ -471,7 +471,7 @@ EXAMPLES
471
471
  $ flowcore iam unassign policy read-access --user "auth0|abc123" -t my-org -j -y
472
472
  ```
473
473
 
474
- _See code: [src/commands/unassign/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/unassign/policy.ts)_
474
+ _See code: [src/commands/unassign/policy.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/unassign/policy.ts)_
475
475
 
476
476
  ## `iam unassign role ROLE_NAME`
477
477
 
@@ -503,7 +503,7 @@ EXAMPLES
503
503
  $ flowcore iam unassign role data-reader --user "auth0|abc123" -t my-org -j -y
504
504
  ```
505
505
 
506
- _See code: [src/commands/unassign/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/unassign/role.ts)_
506
+ _See code: [src/commands/unassign/role.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/unassign/role.ts)_
507
507
 
508
508
  ## `iam validate key KEY_ID`
509
509
 
@@ -534,7 +534,7 @@ EXAMPLES
534
534
  $ flowcore iam validate key "550e8400-e29b-41d4-a716-446655440000" -t my-org --action read --resource "frn::my-org:data-core/core1" --resource "frn::my-org:data-core/core2"
535
535
  ```
536
536
 
537
- _See code: [src/commands/validate/key.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/validate/key.ts)_
537
+ _See code: [src/commands/validate/key.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/validate/key.ts)_
538
538
 
539
539
  ## `iam validate user USER_ID`
540
540
 
@@ -565,5 +565,5 @@ EXAMPLES
565
565
  $ flowcore iam validate user "auth0|abc123" -t my-org --action read --resource "frn::my-org:data-core/core1" --resource "frn::my-org:data-core/core2"
566
566
  ```
567
567
 
568
- _See code: [src/commands/validate/user.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.0/src/commands/validate/user.ts)_
568
+ _See code: [src/commands/validate/user.ts](https://github.com/flowcore-io/cli-plugin-iam/blob/v1.8.1/src/commands/validate/user.ts)_
569
569
  <!-- commandsstop -->
@@ -173,21 +173,17 @@
173
173
  "role.js"
174
174
  ]
175
175
  },
176
- "create:policy": {
176
+ "delete:policy": {
177
177
  "aliases": [],
178
178
  "args": {
179
179
  "NAME": {
180
- "description": "The name of the policy to create",
180
+ "description": "name",
181
181
  "name": "NAME",
182
182
  "required": true
183
183
  }
184
184
  },
185
- "description": "Create a new IAM policy with the specified name, version, and policy documents defining resource access rules",
186
- "examples": [
187
- "$ flowcore iam create policy read-access -t my-org --version \"2024-01-01\" --documents '[{\"resource\":\"frn::my-org:data-core/*\",\"action\":[\"read\",\"fetch\"]}]'",
188
- "$ cat docs.json | flowcore iam create policy read-access -t my-org --version \"2024-01-01\" --documents -",
189
- "$ flowcore iam create policy admin-access -t my-org --version \"2024-01-01\" --description \"Full admin access\" --documents '[{\"resource\":\"frn::my-org:*\",\"action\":\"*\"}]' -j"
190
- ],
185
+ "description": "Delete a policy",
186
+ "examples": [],
191
187
  "flags": {
192
188
  "profile": {
193
189
  "description": "Specify the configuration profile to use",
@@ -196,25 +192,9 @@
196
192
  "multiple": false,
197
193
  "type": "option"
198
194
  },
199
- "description": {
200
- "description": "A description of the policy",
201
- "name": "description",
202
- "required": false,
203
- "hasDynamicHelp": false,
204
- "multiple": false,
205
- "type": "option"
206
- },
207
- "documents": {
208
- "description": "JSON array of policy documents, each with \"resource\" and \"action\" fields. Use \"-\" to read from stdin",
209
- "name": "documents",
210
- "required": true,
211
- "hasDynamicHelp": false,
212
- "multiple": false,
213
- "type": "option"
214
- },
215
195
  "json": {
216
196
  "char": "j",
217
- "description": "Output result as JSON",
197
+ "description": "json output",
218
198
  "name": "json",
219
199
  "required": false,
220
200
  "allowNo": false,
@@ -222,25 +202,25 @@
222
202
  },
223
203
  "tenant": {
224
204
  "char": "t",
225
- "description": "The tenant (organization slug) to create the policy in",
205
+ "description": "tenant",
226
206
  "name": "tenant",
227
207
  "required": true,
228
208
  "hasDynamicHelp": false,
229
209
  "multiple": false,
230
210
  "type": "option"
231
211
  },
232
- "version": {
233
- "description": "The version of the policy (e.g. 2024-01-01)",
234
- "name": "version",
235
- "required": true,
236
- "hasDynamicHelp": false,
237
- "multiple": false,
238
- "type": "option"
212
+ "yes": {
213
+ "char": "y",
214
+ "description": "yes to all",
215
+ "name": "yes",
216
+ "required": false,
217
+ "allowNo": false,
218
+ "type": "boolean"
239
219
  }
240
220
  },
241
221
  "hasDynamicHelp": false,
242
222
  "hiddenAliases": [],
243
- "id": "create:policy",
223
+ "id": "delete:policy",
244
224
  "pluginAlias": "@flowcore/cli-plugin-iam",
245
225
  "pluginName": "@flowcore/cli-plugin-iam",
246
226
  "pluginType": "core",
@@ -250,24 +230,21 @@
250
230
  "relativePath": [
251
231
  "dist",
252
232
  "commands",
253
- "create",
233
+ "delete",
254
234
  "policy.js"
255
235
  ]
256
236
  },
257
- "create:role": {
237
+ "delete:role": {
258
238
  "aliases": [],
259
239
  "args": {
260
240
  "NAME": {
261
- "description": "The name of the role to create",
241
+ "description": "name",
262
242
  "name": "NAME",
263
243
  "required": true
264
244
  }
265
245
  },
266
- "description": "Create a new IAM role with the specified name and optional description",
267
- "examples": [
268
- "$ flowcore iam create role data-reader -t my-org --description \"Read-only data access\"",
269
- "$ flowcore iam create role admin -t my-org -j"
270
- ],
246
+ "description": "Delete a role",
247
+ "examples": [],
271
248
  "flags": {
272
249
  "profile": {
273
250
  "description": "Specify the configuration profile to use",
@@ -276,17 +253,9 @@
276
253
  "multiple": false,
277
254
  "type": "option"
278
255
  },
279
- "description": {
280
- "description": "A description of the role",
281
- "name": "description",
282
- "required": false,
283
- "hasDynamicHelp": false,
284
- "multiple": false,
285
- "type": "option"
286
- },
287
256
  "json": {
288
257
  "char": "j",
289
- "description": "Output result as JSON",
258
+ "description": "json output",
290
259
  "name": "json",
291
260
  "required": false,
292
261
  "allowNo": false,
@@ -294,17 +263,25 @@
294
263
  },
295
264
  "tenant": {
296
265
  "char": "t",
297
- "description": "The tenant (organization slug) to create the role in",
266
+ "description": "tenant",
298
267
  "name": "tenant",
299
268
  "required": true,
300
269
  "hasDynamicHelp": false,
301
270
  "multiple": false,
302
271
  "type": "option"
272
+ },
273
+ "yes": {
274
+ "char": "y",
275
+ "description": "yes to all",
276
+ "name": "yes",
277
+ "required": false,
278
+ "allowNo": false,
279
+ "type": "boolean"
303
280
  }
304
281
  },
305
282
  "hasDynamicHelp": false,
306
283
  "hiddenAliases": [],
307
- "id": "create:role",
284
+ "id": "delete:role",
308
285
  "pluginAlias": "@flowcore/cli-plugin-iam",
309
286
  "pluginName": "@flowcore/cli-plugin-iam",
310
287
  "pluginType": "core",
@@ -314,21 +291,25 @@
314
291
  "relativePath": [
315
292
  "dist",
316
293
  "commands",
317
- "create",
294
+ "delete",
318
295
  "role.js"
319
296
  ]
320
297
  },
321
- "delete:policy": {
298
+ "create:policy": {
322
299
  "aliases": [],
323
300
  "args": {
324
301
  "NAME": {
325
- "description": "name",
302
+ "description": "The name of the policy to create",
326
303
  "name": "NAME",
327
304
  "required": true
328
305
  }
329
306
  },
330
- "description": "Delete a policy",
331
- "examples": [],
307
+ "description": "Create a new IAM policy with the specified name, version, and policy documents defining resource access rules",
308
+ "examples": [
309
+ "$ flowcore iam create policy read-access -t my-org --version \"2024-01-01\" --documents '[{\"resource\":\"frn::my-org:data-core/*\",\"action\":[\"read\",\"fetch\"]}]'",
310
+ "$ cat docs.json | flowcore iam create policy read-access -t my-org --version \"2024-01-01\" --documents -",
311
+ "$ flowcore iam create policy admin-access -t my-org --version \"2024-01-01\" --description \"Full admin access\" --documents '[{\"resource\":\"frn::my-org:*\",\"action\":\"*\"}]' -j"
312
+ ],
332
313
  "flags": {
333
314
  "profile": {
334
315
  "description": "Specify the configuration profile to use",
@@ -337,9 +318,25 @@
337
318
  "multiple": false,
338
319
  "type": "option"
339
320
  },
321
+ "description": {
322
+ "description": "A description of the policy",
323
+ "name": "description",
324
+ "required": false,
325
+ "hasDynamicHelp": false,
326
+ "multiple": false,
327
+ "type": "option"
328
+ },
329
+ "documents": {
330
+ "description": "JSON array of policy documents, each with \"resource\" and \"action\" fields. Use \"-\" to read from stdin",
331
+ "name": "documents",
332
+ "required": true,
333
+ "hasDynamicHelp": false,
334
+ "multiple": false,
335
+ "type": "option"
336
+ },
340
337
  "json": {
341
338
  "char": "j",
342
- "description": "json output",
339
+ "description": "Output result as JSON",
343
340
  "name": "json",
344
341
  "required": false,
345
342
  "allowNo": false,
@@ -347,25 +344,25 @@
347
344
  },
348
345
  "tenant": {
349
346
  "char": "t",
350
- "description": "tenant",
347
+ "description": "The tenant (organization slug) to create the policy in",
351
348
  "name": "tenant",
352
349
  "required": true,
353
350
  "hasDynamicHelp": false,
354
351
  "multiple": false,
355
352
  "type": "option"
356
353
  },
357
- "yes": {
358
- "char": "y",
359
- "description": "yes to all",
360
- "name": "yes",
361
- "required": false,
362
- "allowNo": false,
363
- "type": "boolean"
354
+ "version": {
355
+ "description": "The version of the policy (e.g. 2024-01-01)",
356
+ "name": "version",
357
+ "required": true,
358
+ "hasDynamicHelp": false,
359
+ "multiple": false,
360
+ "type": "option"
364
361
  }
365
362
  },
366
363
  "hasDynamicHelp": false,
367
364
  "hiddenAliases": [],
368
- "id": "delete:policy",
365
+ "id": "create:policy",
369
366
  "pluginAlias": "@flowcore/cli-plugin-iam",
370
367
  "pluginName": "@flowcore/cli-plugin-iam",
371
368
  "pluginType": "core",
@@ -375,21 +372,24 @@
375
372
  "relativePath": [
376
373
  "dist",
377
374
  "commands",
378
- "delete",
375
+ "create",
379
376
  "policy.js"
380
377
  ]
381
378
  },
382
- "delete:role": {
379
+ "create:role": {
383
380
  "aliases": [],
384
381
  "args": {
385
382
  "NAME": {
386
- "description": "name",
383
+ "description": "The name of the role to create",
387
384
  "name": "NAME",
388
385
  "required": true
389
386
  }
390
387
  },
391
- "description": "Delete a role",
392
- "examples": [],
388
+ "description": "Create a new IAM role with the specified name and optional description",
389
+ "examples": [
390
+ "$ flowcore iam create role data-reader -t my-org --description \"Read-only data access\"",
391
+ "$ flowcore iam create role admin -t my-org -j"
392
+ ],
393
393
  "flags": {
394
394
  "profile": {
395
395
  "description": "Specify the configuration profile to use",
@@ -398,9 +398,17 @@
398
398
  "multiple": false,
399
399
  "type": "option"
400
400
  },
401
+ "description": {
402
+ "description": "A description of the role",
403
+ "name": "description",
404
+ "required": false,
405
+ "hasDynamicHelp": false,
406
+ "multiple": false,
407
+ "type": "option"
408
+ },
401
409
  "json": {
402
410
  "char": "j",
403
- "description": "json output",
411
+ "description": "Output result as JSON",
404
412
  "name": "json",
405
413
  "required": false,
406
414
  "allowNo": false,
@@ -408,25 +416,17 @@
408
416
  },
409
417
  "tenant": {
410
418
  "char": "t",
411
- "description": "tenant",
419
+ "description": "The tenant (organization slug) to create the role in",
412
420
  "name": "tenant",
413
421
  "required": true,
414
422
  "hasDynamicHelp": false,
415
423
  "multiple": false,
416
424
  "type": "option"
417
- },
418
- "yes": {
419
- "char": "y",
420
- "description": "yes to all",
421
- "name": "yes",
422
- "required": false,
423
- "allowNo": false,
424
- "type": "boolean"
425
425
  }
426
426
  },
427
427
  "hasDynamicHelp": false,
428
428
  "hiddenAliases": [],
429
- "id": "delete:role",
429
+ "id": "create:role",
430
430
  "pluginAlias": "@flowcore/cli-plugin-iam",
431
431
  "pluginName": "@flowcore/cli-plugin-iam",
432
432
  "pluginType": "core",
@@ -436,7 +436,7 @@
436
436
  "relativePath": [
437
437
  "dist",
438
438
  "commands",
439
- "delete",
439
+ "create",
440
440
  "role.js"
441
441
  ]
442
442
  },
@@ -1236,5 +1236,5 @@
1236
1236
  ]
1237
1237
  }
1238
1238
  },
1239
- "version": "1.8.0"
1239
+ "version": "1.8.1"
1240
1240
  }
package/package.json CHANGED
@@ -100,7 +100,7 @@
100
100
  "version": "oclif readme && git add README.md",
101
101
  "update-schema": "rover graph introspect https://graph.api.flowcore.io/graphql -o schema.gql"
102
102
  },
103
- "version": "1.8.0",
103
+ "version": "1.8.1",
104
104
  "bugs": "https://github.com/flowcore-io/cli-plugin-iam/issues",
105
105
  "keywords": ["oclif"],
106
106
  "types": "dist/index.d.ts",