@shuffl/cli 0.7.16 → 0.7.17

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.
@@ -281,6 +281,34 @@ export const commands = [
281
281
  scope: 'self:read',
282
282
  summary: 'Read one access request you asked for, approve or own',
283
283
  },
284
+ {
285
+ access: 'write',
286
+ command: ['access-requests', 'grant'],
287
+ input: {
288
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
289
+ additionalProperties: false,
290
+ properties: {
291
+ confirm: {
292
+ const: 'accessRequests.grant',
293
+ type: 'string',
294
+ },
295
+ requestId: {
296
+ type: 'string',
297
+ },
298
+ requestKey: {
299
+ maxLength: 128,
300
+ minLength: 1,
301
+ type: 'string',
302
+ },
303
+ },
304
+ required: ['requestId', 'confirm', 'requestKey'],
305
+ type: 'object',
306
+ },
307
+ path: ['accessRequests', 'grant'],
308
+ permission: 'accessRequests.grant',
309
+ scope: 'self:write',
310
+ summary: 'Grant an approved request again by writing its group membership in the identity provider',
311
+ },
284
312
  {
285
313
  access: 'read',
286
314
  command: ['access-requests', 'inbox'],
@@ -464,7 +492,7 @@ export const commands = [
464
492
  path: ['accessRequests', 'revoke'],
465
493
  permission: 'accessRequests.revoke',
466
494
  scope: 'self:write',
467
- summary: 'Remove access that was granted through a request',
495
+ summary: 'Remove access that was granted through a request, and its group membership',
468
496
  },
469
497
  {
470
498
  access: 'read',
@@ -527,6 +555,39 @@ export const commands = [
527
555
  scope: 'self:read',
528
556
  summary: 'Read one app in the catalog: owners, approvers, levels and who has access',
529
557
  },
558
+ {
559
+ access: 'read',
560
+ command: ['apps', 'grant-groups'],
561
+ input: {
562
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
563
+ additionalProperties: false,
564
+ properties: {
565
+ connectionId: {
566
+ type: 'string',
567
+ },
568
+ },
569
+ required: ['connectionId'],
570
+ type: 'object',
571
+ },
572
+ path: ['apps', 'grantGroups'],
573
+ permission: 'apps.grantGroups',
574
+ scope: 'access:read',
575
+ summary: 'List the groups one identity provider connection has, to map an access level to',
576
+ },
577
+ {
578
+ access: 'read',
579
+ command: ['apps', 'grant-sources'],
580
+ input: {
581
+ $schema: 'https://json-schema.org/draft/2020-12/schema',
582
+ additionalProperties: false,
583
+ properties: {},
584
+ type: 'object',
585
+ },
586
+ path: ['apps', 'grantSources'],
587
+ permission: 'apps.grantSources',
588
+ scope: 'access:read',
589
+ summary: 'List the connected identity providers whose groups can grant an access level',
590
+ },
530
591
  {
531
592
  access: 'write',
532
593
  command: ['apps', 'import'],
@@ -654,6 +715,25 @@ export const commands = [
654
715
  description: {
655
716
  type: 'string',
656
717
  },
718
+ groups: {
719
+ items: {
720
+ additionalProperties: false,
721
+ properties: {
722
+ connectionId: {
723
+ type: 'string',
724
+ },
725
+ externalId: {
726
+ type: 'string',
727
+ },
728
+ name: {
729
+ type: 'string',
730
+ },
731
+ },
732
+ required: ['connectionId', 'externalId', 'name'],
733
+ type: 'object',
734
+ },
735
+ type: 'array',
736
+ },
657
737
  id: {
658
738
  type: 'string',
659
739
  },
@@ -3129,6 +3209,10 @@ export const commands = [
3129
3209
  const: 'accessRequests.get',
3130
3210
  type: 'string',
3131
3211
  },
3212
+ {
3213
+ const: 'accessRequests.grant',
3214
+ type: 'string',
3215
+ },
3132
3216
  {
3133
3217
  const: 'accessRequests.inbox',
3134
3218
  type: 'string',
@@ -3165,6 +3249,14 @@ export const commands = [
3165
3249
  const: 'apps.get',
3166
3250
  type: 'string',
3167
3251
  },
3252
+ {
3253
+ const: 'apps.grantGroups',
3254
+ type: 'string',
3255
+ },
3256
+ {
3257
+ const: 'apps.grantSources',
3258
+ type: 'string',
3259
+ },
3168
3260
  {
3169
3261
  const: 'apps.import',
3170
3262
  type: 'string',
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "dependencies": {
3
3
  "@orpc/client": "1.15.3",
4
- "@shuffl/api-contracts": "0.7.16",
5
- "@shuffl/sdk": "0.7.16"
4
+ "@shuffl/api-contracts": "0.7.17",
5
+ "@shuffl/sdk": "0.7.17"
6
6
  },
7
7
  "description": "Shuffl command line: every public API operation as a scriptable command with JSON output.",
8
8
  "engines": {
@@ -33,7 +33,7 @@
33
33
  "sideEffects": false,
34
34
  "type": "module",
35
35
  "types": "./dist/index.d.ts",
36
- "version": "0.7.16",
36
+ "version": "0.7.17",
37
37
  "bin": {
38
38
  "shuffl": "./dist/bin.js"
39
39
  }