opal-security 3.0.1-beta.4f1a7ce → 3.0.1-beta.9068705
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 +39 -17
- package/lib/commands/groups/get.d.ts +10 -0
- package/lib/commands/groups/get.js +79 -0
- package/lib/graphql/gql.d.ts +5 -0
- package/lib/graphql/gql.js +1 -0
- package/lib/graphql/graphql.d.ts +46 -0
- package/lib/graphql/graphql.js +218 -1
- package/oclif.manifest.json +41 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,7 +22,7 @@ $ npm install -g opal-security
|
|
|
22
22
|
$ opal COMMAND
|
|
23
23
|
running command...
|
|
24
24
|
$ opal (--version)
|
|
25
|
-
opal-security/3.0.1-beta.
|
|
25
|
+
opal-security/3.0.1-beta.9068705 linux-x64 node-v20.19.0
|
|
26
26
|
$ opal --help [COMMAND]
|
|
27
27
|
USAGE
|
|
28
28
|
$ opal COMMAND
|
|
@@ -37,6 +37,7 @@ USAGE
|
|
|
37
37
|
* [`opal aws identity`](#opal-aws-identity)
|
|
38
38
|
* [`opal clear-auth-provider`](#opal-clear-auth-provider)
|
|
39
39
|
* [`opal curl-example`](#opal-curl-example)
|
|
40
|
+
* [`opal groups get`](#opal-groups-get)
|
|
40
41
|
* [`opal help [COMMANDS]`](#opal-help-commands)
|
|
41
42
|
* [`opal iam-roles start`](#opal-iam-roles-start)
|
|
42
43
|
* [`opal kube-roles start`](#opal-kube-roles-start)
|
|
@@ -101,7 +102,7 @@ EXAMPLES
|
|
|
101
102
|
$ opal aws:identity
|
|
102
103
|
```
|
|
103
104
|
|
|
104
|
-
_See code: [src/commands/aws/identity.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
105
|
+
_See code: [src/commands/aws/identity.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/aws/identity.ts)_
|
|
105
106
|
|
|
106
107
|
## `opal clear-auth-provider`
|
|
107
108
|
|
|
@@ -121,7 +122,7 @@ EXAMPLES
|
|
|
121
122
|
$ opal clear-auth-provider
|
|
122
123
|
```
|
|
123
124
|
|
|
124
|
-
_See code: [src/commands/clear-auth-provider.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
125
|
+
_See code: [src/commands/clear-auth-provider.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/clear-auth-provider.ts)_
|
|
125
126
|
|
|
126
127
|
## `opal curl-example`
|
|
127
128
|
|
|
@@ -138,7 +139,28 @@ DESCRIPTION
|
|
|
138
139
|
Prints out an example cURL command containing the parameters the CLI uses to query the Opal server.
|
|
139
140
|
```
|
|
140
141
|
|
|
141
|
-
_See code: [src/commands/curl-example.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
142
|
+
_See code: [src/commands/curl-example.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/curl-example.ts)_
|
|
143
|
+
|
|
144
|
+
## `opal groups get`
|
|
145
|
+
|
|
146
|
+
Get group info for a particular group.
|
|
147
|
+
|
|
148
|
+
```
|
|
149
|
+
USAGE
|
|
150
|
+
$ opal groups get [-h] [-i <value>]
|
|
151
|
+
|
|
152
|
+
FLAGS
|
|
153
|
+
-h, --help Show CLI help.
|
|
154
|
+
-i, --id=<value> The Opal ID of the resource. You can find this from the URL, e.g. https://opal.dev/resources/[ID]
|
|
155
|
+
|
|
156
|
+
DESCRIPTION
|
|
157
|
+
Get group info for a particular group.
|
|
158
|
+
|
|
159
|
+
EXAMPLES
|
|
160
|
+
$ opal groups:get --id 54052a3e-5375-4392-aeaf-0c6c44c131d4
|
|
161
|
+
```
|
|
162
|
+
|
|
163
|
+
_See code: [src/commands/groups/get.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/groups/get.ts)_
|
|
142
164
|
|
|
143
165
|
## `opal help [COMMANDS]`
|
|
144
166
|
|
|
@@ -188,7 +210,7 @@ EXAMPLES
|
|
|
188
210
|
$ opal iam-roles:start --id 51f7176b-0464-4a6f-8369-e951e187b398 --profileName "custom-profile"
|
|
189
211
|
```
|
|
190
212
|
|
|
191
|
-
_See code: [src/commands/iam-roles/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
213
|
+
_See code: [src/commands/iam-roles/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/iam-roles/start.ts)_
|
|
192
214
|
|
|
193
215
|
## `opal kube-roles start`
|
|
194
216
|
|
|
@@ -219,7 +241,7 @@ EXAMPLES
|
|
|
219
241
|
$ opal kube-roles:start --id 51f7176b-0464-4a6f-8369-e951e187b398 --accessLevelRemoteId "arn:aws:iam::712234975475:role/acme-eks-cluster-admin-role"
|
|
220
242
|
```
|
|
221
243
|
|
|
222
|
-
_See code: [src/commands/kube-roles/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
244
|
+
_See code: [src/commands/kube-roles/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/kube-roles/start.ts)_
|
|
223
245
|
|
|
224
246
|
## `opal login`
|
|
225
247
|
|
|
@@ -240,7 +262,7 @@ EXAMPLES
|
|
|
240
262
|
$ opal login
|
|
241
263
|
```
|
|
242
264
|
|
|
243
|
-
_See code: [src/commands/login.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
265
|
+
_See code: [src/commands/login.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/login.ts)_
|
|
244
266
|
|
|
245
267
|
## `opal logout`
|
|
246
268
|
|
|
@@ -260,7 +282,7 @@ EXAMPLES
|
|
|
260
282
|
$ opal logout
|
|
261
283
|
```
|
|
262
284
|
|
|
263
|
-
_See code: [src/commands/logout.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
285
|
+
_See code: [src/commands/logout.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/logout.ts)_
|
|
264
286
|
|
|
265
287
|
## `opal postgres-instances start`
|
|
266
288
|
|
|
@@ -297,7 +319,7 @@ EXAMPLES
|
|
|
297
319
|
$ opal postgres-instances:start --id 51f7176b-0464-4a6f-8369-e951e187b398 --accessLevelRemoteId fullaccess --action view
|
|
298
320
|
```
|
|
299
321
|
|
|
300
|
-
_See code: [src/commands/postgres-instances/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
322
|
+
_See code: [src/commands/postgres-instances/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/postgres-instances/start.ts)_
|
|
301
323
|
|
|
302
324
|
## `opal request ls`
|
|
303
325
|
|
|
@@ -333,7 +355,7 @@ EXAMPLES
|
|
|
333
355
|
$ opal resources:get --id 54052a3e-5375-4392-aeaf-0c6c44c131d4
|
|
334
356
|
```
|
|
335
357
|
|
|
336
|
-
_See code: [src/commands/resources/get.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
358
|
+
_See code: [src/commands/resources/get.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/resources/get.ts)_
|
|
337
359
|
|
|
338
360
|
## `opal set-auth-provider`
|
|
339
361
|
|
|
@@ -359,7 +381,7 @@ EXAMPLES
|
|
|
359
381
|
$ opal set-auth-provider --clientID 1234asdf --issuerUrl https://auth.example.com
|
|
360
382
|
```
|
|
361
383
|
|
|
362
|
-
_See code: [src/commands/set-auth-provider.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
384
|
+
_See code: [src/commands/set-auth-provider.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/set-auth-provider.ts)_
|
|
363
385
|
|
|
364
386
|
## `opal set-custom-header`
|
|
365
387
|
|
|
@@ -380,7 +402,7 @@ EXAMPLES
|
|
|
380
402
|
$ opal set-custom-header --header 'cf-access-token: $TOKEN'
|
|
381
403
|
```
|
|
382
404
|
|
|
383
|
-
_See code: [src/commands/set-custom-header.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
405
|
+
_See code: [src/commands/set-custom-header.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/set-custom-header.ts)_
|
|
384
406
|
|
|
385
407
|
## `opal set-token`
|
|
386
408
|
|
|
@@ -400,7 +422,7 @@ EXAMPLES
|
|
|
400
422
|
$ opal set-token
|
|
401
423
|
```
|
|
402
424
|
|
|
403
|
-
_See code: [src/commands/set-token.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
425
|
+
_See code: [src/commands/set-token.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/set-token.ts)_
|
|
404
426
|
|
|
405
427
|
## `opal set-url [URL]`
|
|
406
428
|
|
|
@@ -424,7 +446,7 @@ EXAMPLES
|
|
|
424
446
|
$ opal set-url
|
|
425
447
|
```
|
|
426
448
|
|
|
427
|
-
_See code: [src/commands/set-url.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
449
|
+
_See code: [src/commands/set-url.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/set-url.ts)_
|
|
428
450
|
|
|
429
451
|
## `opal ssh copyFrom`
|
|
430
452
|
|
|
@@ -455,7 +477,7 @@ EXAMPLES
|
|
|
455
477
|
$ opal ssh:copyFrom --src instance/dir --dest my/dir --id 51f7176b-0464-4a6f-8369-e951e187b398
|
|
456
478
|
```
|
|
457
479
|
|
|
458
|
-
_See code: [src/commands/ssh/copyFrom.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
480
|
+
_See code: [src/commands/ssh/copyFrom.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/ssh/copyFrom.ts)_
|
|
459
481
|
|
|
460
482
|
## `opal ssh copyTo`
|
|
461
483
|
|
|
@@ -486,7 +508,7 @@ EXAMPLES
|
|
|
486
508
|
$ opal ssh:copyTo --src my/dir --dest instance/dir --id 51f7176b-0464-4a6f-8369-e951e187b398
|
|
487
509
|
```
|
|
488
510
|
|
|
489
|
-
_See code: [src/commands/ssh/copyTo.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
511
|
+
_See code: [src/commands/ssh/copyTo.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/ssh/copyTo.ts)_
|
|
490
512
|
|
|
491
513
|
## `opal ssh start`
|
|
492
514
|
|
|
@@ -513,7 +535,7 @@ EXAMPLES
|
|
|
513
535
|
$ opal ssh:start --id 51f7176b-0464-4a6f-8369-e951e187b398
|
|
514
536
|
```
|
|
515
537
|
|
|
516
|
-
_See code: [src/commands/ssh/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.
|
|
538
|
+
_See code: [src/commands/ssh/start.ts](https://github.com/opalsecurity/opal-cli/blob/v3.0.1-beta.9068705/src/commands/ssh/start.ts)_
|
|
517
539
|
|
|
518
540
|
## `opal version`
|
|
519
541
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Command } from "@oclif/core";
|
|
2
|
+
export default class GetGroup extends Command {
|
|
3
|
+
static description: string;
|
|
4
|
+
static examples: string[];
|
|
5
|
+
static flags: {
|
|
6
|
+
help: import("@oclif/core/lib/interfaces").BooleanFlag<void>;
|
|
7
|
+
id: import("@oclif/core/lib/interfaces").OptionFlag<string | undefined, import("@oclif/core/lib/interfaces").CustomOptions>;
|
|
8
|
+
};
|
|
9
|
+
run(): Promise<void>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const core_1 = require("@oclif/core");
|
|
4
|
+
const parseAndCheckHttpResponse_1 = require("@apollo/client/link/http/parseAndCheckHttpResponse");
|
|
5
|
+
const graphql_1 = require("../../graphql");
|
|
6
|
+
const apollo_1 = require("../../lib/apollo");
|
|
7
|
+
const cmd_1 = require("../../lib/cmd");
|
|
8
|
+
const flags_1 = require("../../lib/flags");
|
|
9
|
+
const GET_GROUP_QUERY = (0, graphql_1.graphql)(`
|
|
10
|
+
query GetGroup($id: GroupId!) {
|
|
11
|
+
group(input: { id: $id }) {
|
|
12
|
+
__typename
|
|
13
|
+
... on GroupResult {
|
|
14
|
+
group {
|
|
15
|
+
name
|
|
16
|
+
id
|
|
17
|
+
description
|
|
18
|
+
groupType
|
|
19
|
+
adminOwnerId
|
|
20
|
+
groupLeaders {
|
|
21
|
+
fullName
|
|
22
|
+
email
|
|
23
|
+
id
|
|
24
|
+
}
|
|
25
|
+
connection {
|
|
26
|
+
name
|
|
27
|
+
id
|
|
28
|
+
connectionType
|
|
29
|
+
}
|
|
30
|
+
paginatedGroupUsers {
|
|
31
|
+
totalNumGroupUsers
|
|
32
|
+
groupUsers {
|
|
33
|
+
user {
|
|
34
|
+
fullName
|
|
35
|
+
email
|
|
36
|
+
id
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
... on GroupNotFoundError {
|
|
43
|
+
message
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}`);
|
|
47
|
+
class GetGroup extends core_1.Command {
|
|
48
|
+
async run() {
|
|
49
|
+
(0, cmd_1.setMostRecentCommand)(this);
|
|
50
|
+
const { flags } = await this.parse(GetGroup);
|
|
51
|
+
if (!flags.id) {
|
|
52
|
+
this.log("Error: Please provide a group ID using the --id flag.");
|
|
53
|
+
this.log("ex. opal groups:get --id 54052a3e-5375-4392-aeaf-0c6c44c131d4");
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
try {
|
|
57
|
+
const client = await (0, apollo_1.getClient)(this);
|
|
58
|
+
const resp = await client.query({
|
|
59
|
+
query: GET_GROUP_QUERY,
|
|
60
|
+
variables: {
|
|
61
|
+
id: flags.id,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
(0, apollo_1.printResponse)(this, resp);
|
|
65
|
+
}
|
|
66
|
+
catch (error) {
|
|
67
|
+
return (0, parseAndCheckHttpResponse_1.handleError)(this, error);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
GetGroup.description = "Get group info for a particular group.";
|
|
72
|
+
GetGroup.examples = [
|
|
73
|
+
"opal groups:get --id 54052a3e-5375-4392-aeaf-0c6c44c131d4",
|
|
74
|
+
];
|
|
75
|
+
GetGroup.flags = {
|
|
76
|
+
help: flags_1.SHARED_FLAGS.help,
|
|
77
|
+
id: flags_1.SHARED_FLAGS.id,
|
|
78
|
+
};
|
|
79
|
+
exports.default = GetGroup;
|
package/lib/graphql/gql.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import * as types from "./graphql";
|
|
|
12
12
|
* Learn more about it here: https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#reducing-bundle-size
|
|
13
13
|
*/
|
|
14
14
|
type Documents = {
|
|
15
|
+
"\nquery GetGroup($id: GroupId!) {\n group(input: { id: $id }) {\n __typename\n ... on GroupResult {\n group {\n name\n id\n description\n groupType\n adminOwnerId\n groupLeaders {\n fullName\n email\n id\n }\n connection {\n name\n id\n connectionType\n }\n paginatedGroupUsers {\n totalNumGroupUsers\n groupUsers {\n user {\n fullName\n email\n id\n }\n }\n }\n }\n }\n ... on GroupNotFoundError {\n message\n }\n }\n}": typeof types.GetGroupDocument;
|
|
15
16
|
"\nquery CheckAuthSessionQuery {\n organizationSettings {\n ... on OrganizationSettingsResult {\n settings {\n id\n }\n }\n }\n}\n": typeof types.CheckAuthSessionQueryDocument;
|
|
16
17
|
'\n query GetRequestableAppsQuery($searchQuery: String) {\n appsV2(\n filters: {\n access: REQUESTABLE\n searchQuery: $searchQuery\n }\n ) @connection(key: "paginated-app-dropdown") {\n edges {\n node {\n id\n displayName\n ... on Connection {\n connectionType\n }\n ... on Resource {\n resourceType\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n ': typeof types.GetRequestableAppsQueryDocument;
|
|
17
18
|
"\n query PaginatedEntityDropdown(\n $id: UUID!\n $searchQuery: String\n) {\n app(id: $id) {\n __typename\n ... on App {\n id\n items(\n input: {\n access: REQUESTABLE\n searchQuery: $searchQuery\n includeOnlyRequestable: true\n }\n ) {\n items {\n key\n resource {\n id\n name\n }\n group {\n id\n name\n }\n }\n cursor\n }\n }\n }\n}\n": typeof types.PaginatedEntityDropdownDocument;
|
|
@@ -30,6 +31,10 @@ declare const documents: Documents;
|
|
|
30
31
|
* Please regenerate the types.
|
|
31
32
|
*/
|
|
32
33
|
export declare function graphql(source: string): unknown;
|
|
34
|
+
/**
|
|
35
|
+
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
36
|
+
*/
|
|
37
|
+
export declare function graphql(source: "\nquery GetGroup($id: GroupId!) {\n group(input: { id: $id }) {\n __typename\n ... on GroupResult {\n group {\n name\n id\n description\n groupType\n adminOwnerId\n groupLeaders {\n fullName\n email\n id\n }\n connection {\n name\n id\n connectionType\n }\n paginatedGroupUsers {\n totalNumGroupUsers\n groupUsers {\n user {\n fullName\n email\n id\n }\n }\n }\n }\n }\n ... on GroupNotFoundError {\n message\n }\n }\n}"): (typeof documents)["\nquery GetGroup($id: GroupId!) {\n group(input: { id: $id }) {\n __typename\n ... on GroupResult {\n group {\n name\n id\n description\n groupType\n adminOwnerId\n groupLeaders {\n fullName\n email\n id\n }\n connection {\n name\n id\n connectionType\n }\n paginatedGroupUsers {\n totalNumGroupUsers\n groupUsers {\n user {\n fullName\n email\n id\n }\n }\n }\n }\n }\n ... on GroupNotFoundError {\n message\n }\n }\n}"];
|
|
33
38
|
/**
|
|
34
39
|
* The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
|
|
35
40
|
*/
|
package/lib/graphql/gql.js
CHANGED
|
@@ -4,6 +4,7 @@ exports.graphql = graphql;
|
|
|
4
4
|
/* eslint-disable */
|
|
5
5
|
const types = require("./graphql");
|
|
6
6
|
const documents = {
|
|
7
|
+
"\nquery GetGroup($id: GroupId!) {\n group(input: { id: $id }) {\n __typename\n ... on GroupResult {\n group {\n name\n id\n description\n groupType\n adminOwnerId\n groupLeaders {\n fullName\n email\n id\n }\n connection {\n name\n id\n connectionType\n }\n paginatedGroupUsers {\n totalNumGroupUsers\n groupUsers {\n user {\n fullName\n email\n id\n }\n }\n }\n }\n }\n ... on GroupNotFoundError {\n message\n }\n }\n}": types.GetGroupDocument,
|
|
7
8
|
"\nquery CheckAuthSessionQuery {\n organizationSettings {\n ... on OrganizationSettingsResult {\n settings {\n id\n }\n }\n }\n}\n": types.CheckAuthSessionQueryDocument,
|
|
8
9
|
'\n query GetRequestableAppsQuery($searchQuery: String) {\n appsV2(\n filters: {\n access: REQUESTABLE\n searchQuery: $searchQuery\n }\n ) @connection(key: "paginated-app-dropdown") {\n edges {\n node {\n id\n displayName\n ... on Connection {\n connectionType\n }\n ... on Resource {\n resourceType\n }\n }\n }\n pageInfo {\n hasNextPage\n hasPreviousPage\n startCursor\n endCursor\n }\n }\n }\n ': types.GetRequestableAppsQueryDocument,
|
|
9
10
|
"\n query PaginatedEntityDropdown(\n $id: UUID!\n $searchQuery: String\n) {\n app(id: $id) {\n __typename\n ... on App {\n id\n items(\n input: {\n access: REQUESTABLE\n searchQuery: $searchQuery\n includeOnlyRequestable: true\n }\n ) {\n items {\n key\n resource {\n id\n name\n }\n group {\n id\n name\n }\n }\n cursor\n }\n }\n }\n}\n": types.PaginatedEntityDropdownDocument,
|
package/lib/graphql/graphql.d.ts
CHANGED
|
@@ -11395,6 +11395,51 @@ export type UpdateScopedRoleAssignmentsInput = {
|
|
|
11395
11395
|
scope?: InputMaybe<RoleAssignmentSearchScope>;
|
|
11396
11396
|
source?: InputMaybe<UiSource>;
|
|
11397
11397
|
};
|
|
11398
|
+
export type GetGroupQueryVariables = Exact<{
|
|
11399
|
+
id: Scalars["GroupId"]["input"];
|
|
11400
|
+
}>;
|
|
11401
|
+
export type GetGroupQuery = {
|
|
11402
|
+
__typename?: "Query";
|
|
11403
|
+
group: {
|
|
11404
|
+
__typename: "GroupNotFoundError";
|
|
11405
|
+
message: string;
|
|
11406
|
+
} | {
|
|
11407
|
+
__typename: "GroupResult";
|
|
11408
|
+
group: {
|
|
11409
|
+
__typename?: "Group";
|
|
11410
|
+
name: string;
|
|
11411
|
+
id: string;
|
|
11412
|
+
description: string;
|
|
11413
|
+
groupType: GroupType;
|
|
11414
|
+
adminOwnerId: string;
|
|
11415
|
+
groupLeaders: Array<{
|
|
11416
|
+
__typename?: "User";
|
|
11417
|
+
fullName: string;
|
|
11418
|
+
email: string;
|
|
11419
|
+
id: string;
|
|
11420
|
+
}>;
|
|
11421
|
+
connection?: {
|
|
11422
|
+
__typename?: "Connection";
|
|
11423
|
+
name: string;
|
|
11424
|
+
id: string;
|
|
11425
|
+
connectionType: ConnectionType;
|
|
11426
|
+
} | null;
|
|
11427
|
+
paginatedGroupUsers: {
|
|
11428
|
+
__typename?: "PaginatedGroupUsersOutput";
|
|
11429
|
+
totalNumGroupUsers: number;
|
|
11430
|
+
groupUsers: Array<{
|
|
11431
|
+
__typename?: "GroupUser";
|
|
11432
|
+
user?: {
|
|
11433
|
+
__typename?: "User";
|
|
11434
|
+
fullName: string;
|
|
11435
|
+
email: string;
|
|
11436
|
+
id: string;
|
|
11437
|
+
} | null;
|
|
11438
|
+
}>;
|
|
11439
|
+
};
|
|
11440
|
+
};
|
|
11441
|
+
};
|
|
11442
|
+
};
|
|
11398
11443
|
export type CheckAuthSessionQueryQueryVariables = Exact<{
|
|
11399
11444
|
[key: string]: never;
|
|
11400
11445
|
}>;
|
|
@@ -11471,6 +11516,7 @@ export type PaginatedEntityDropdownQuery = {
|
|
|
11471
11516
|
__typename: "AppNotFoundError";
|
|
11472
11517
|
};
|
|
11473
11518
|
};
|
|
11519
|
+
export declare const GetGroupDocument: DocumentNode<GetGroupQuery, GetGroupQueryVariables>;
|
|
11474
11520
|
export declare const CheckAuthSessionQueryDocument: DocumentNode<CheckAuthSessionQueryQuery, CheckAuthSessionQueryQueryVariables>;
|
|
11475
11521
|
export declare const GetRequestableAppsQueryDocument: DocumentNode<GetRequestableAppsQueryQuery, GetRequestableAppsQueryQueryVariables>;
|
|
11476
11522
|
export declare const PaginatedEntityDropdownDocument: DocumentNode<PaginatedEntityDropdownQuery, PaginatedEntityDropdownQueryVariables>;
|
package/lib/graphql/graphql.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HealthStatus = exports.GroupUserSource = exports.GroupUserSortByField = exports.GroupType = exports.GroupResourceSource = exports.GroupBindingsSortByField = exports.GroupBindingSuggestionsSortByField = exports.GeneralSettingType = exports.FiltersMatchMode = exports.FactorType = exports.EventType = exports.EventSeverity = exports.ErrorNotificationSettingType = exports.EntityType = exports.ConnectionValidationStatus = exports.ConnectionValidationSeverity = exports.ConnectionType = exports.BundlesSortByField = exports.BundleItemsSortByField = exports.AuthType = exports.AuthSessionStatus = exports.AuthFlowType = exports.AssociatedItemsSortByField = exports.AssignmentsSortByField = exports.AppsSortByField = exports.AppType = exports.AppItemsSortByField = exports.AppCategory = exports.ApiAuthType = exports.ApiAccessLevel = exports.AldwinRole = exports.AccessType = exports.AccessRuleStatus = exports.AccessReviewUserWarningType = exports.AccessReviewType = exports.AccessReviewTab = exports.AccessReviewSummaryStatus = exports.AccessReviewStatus = exports.AccessReviewReviewerAssignmentPolicy = exports.AccessReviewItemsSortByField = exports.AccessReviewItemStatus = exports.AccessReviewItemOutcome = exports.AccessReviewGroupResourceVisibilityPolicy = exports.AccessReviewGroupItemKind = exports.AccessReviewEndUserView = exports.AccessReviewAssignedStatus = exports.AccessReviewAction = exports.AccessOption = exports.AccessChangeType = exports.AwsIdentityCenterImportSetting = void 0;
|
|
4
4
|
exports.TaskTrigger = exports.TagsSortByField = exports.TagFilterMatchMode = exports.SyncType = exports.SyncTaskStatus = exports.SubEventsSortByField = exports.StringFormatType = exports.SortDirection = exports.ServiceType = exports.SearchType = exports.RolePermissionTargetType = exports.RolePermission = exports.RoleAssignmentsSortByField = exports.RoleAssignmentSource = exports.RiskLevel = exports.ReviewerUserStatus = exports.ReviewerAction = exports.ReviewStageOperator = exports.ResourceUserSource = exports.ResourceUserSortByField = exports.ResourceType = exports.RequestsSortByField = exports.RequestType = exports.RequestTemplateCustomFieldType = exports.RequestStatus = exports.RequestMessageLevel = exports.RequestMessageCode = exports.RequestApprovalType = exports.RecommendationsSubscoreType = exports.RecommendationsMetricType = exports.RecommendationsFeedbackType = exports.RecommendationsEntityType = exports.PubsubPublishMessageType = exports.PubsubPublishMessageStatusCode = exports.PubsubPublishConnectionType = exports.ProvisionSource = exports.PropagationTaskType = exports.PropagationStatusCode = exports.OwnersSortByField = exports.OrganizationType = exports.OidcProviderType = exports.NotificationType = exports.MessageChannelType = exports.MfaProvider = exports.IntegrationType = exports.ImportSetting = exports.IdpConnectionUserAttributeUseAs = exports.IdpConnectionType = exports.IdentityCategory = exports.HrIdpStatus = void 0;
|
|
5
|
-
exports.PaginatedEntityDropdownDocument = exports.GetRequestableAppsQueryDocument = exports.CheckAuthSessionQueryDocument = exports.RequestDecisionLevel = exports.WebhookPubsubPublishConnectionAuthType = exports.WebhookPubsubPublishConnectionApiKeyLocation = exports.Visibility = exports.VerifyFactorStatus = exports.UsersSortByField = exports.UserProductRole = exports.UserErrorType = exports.UsageAttributionType = exports.UiSource = exports.TimePeriod = exports.TimeBucket = exports.ThirdPartyProvider = void 0;
|
|
5
|
+
exports.PaginatedEntityDropdownDocument = exports.GetRequestableAppsQueryDocument = exports.CheckAuthSessionQueryDocument = exports.GetGroupDocument = exports.RequestDecisionLevel = exports.WebhookPubsubPublishConnectionAuthType = exports.WebhookPubsubPublishConnectionApiKeyLocation = exports.Visibility = exports.VerifyFactorStatus = exports.UsersSortByField = exports.UserProductRole = exports.UserErrorType = exports.UsageAttributionType = exports.UiSource = exports.TimePeriod = exports.TimeBucket = exports.ThirdPartyProvider = void 0;
|
|
6
6
|
var AwsIdentityCenterImportSetting;
|
|
7
7
|
(function (AwsIdentityCenterImportSetting) {
|
|
8
8
|
AwsIdentityCenterImportSetting["All"] = "ALL";
|
|
@@ -1440,6 +1440,223 @@ var RequestDecisionLevel;
|
|
|
1440
1440
|
RequestDecisionLevel["Admin"] = "ADMIN";
|
|
1441
1441
|
RequestDecisionLevel["Regular"] = "REGULAR";
|
|
1442
1442
|
})(RequestDecisionLevel || (exports.RequestDecisionLevel = RequestDecisionLevel = {}));
|
|
1443
|
+
exports.GetGroupDocument = {
|
|
1444
|
+
kind: "Document",
|
|
1445
|
+
definitions: [
|
|
1446
|
+
{
|
|
1447
|
+
kind: "OperationDefinition",
|
|
1448
|
+
operation: "query",
|
|
1449
|
+
name: { kind: "Name", value: "GetGroup" },
|
|
1450
|
+
variableDefinitions: [
|
|
1451
|
+
{
|
|
1452
|
+
kind: "VariableDefinition",
|
|
1453
|
+
variable: { kind: "Variable", name: { kind: "Name", value: "id" } },
|
|
1454
|
+
type: {
|
|
1455
|
+
kind: "NonNullType",
|
|
1456
|
+
type: {
|
|
1457
|
+
kind: "NamedType",
|
|
1458
|
+
name: { kind: "Name", value: "GroupId" },
|
|
1459
|
+
},
|
|
1460
|
+
},
|
|
1461
|
+
},
|
|
1462
|
+
],
|
|
1463
|
+
selectionSet: {
|
|
1464
|
+
kind: "SelectionSet",
|
|
1465
|
+
selections: [
|
|
1466
|
+
{
|
|
1467
|
+
kind: "Field",
|
|
1468
|
+
name: { kind: "Name", value: "group" },
|
|
1469
|
+
arguments: [
|
|
1470
|
+
{
|
|
1471
|
+
kind: "Argument",
|
|
1472
|
+
name: { kind: "Name", value: "input" },
|
|
1473
|
+
value: {
|
|
1474
|
+
kind: "ObjectValue",
|
|
1475
|
+
fields: [
|
|
1476
|
+
{
|
|
1477
|
+
kind: "ObjectField",
|
|
1478
|
+
name: { kind: "Name", value: "id" },
|
|
1479
|
+
value: {
|
|
1480
|
+
kind: "Variable",
|
|
1481
|
+
name: { kind: "Name", value: "id" },
|
|
1482
|
+
},
|
|
1483
|
+
},
|
|
1484
|
+
],
|
|
1485
|
+
},
|
|
1486
|
+
},
|
|
1487
|
+
],
|
|
1488
|
+
selectionSet: {
|
|
1489
|
+
kind: "SelectionSet",
|
|
1490
|
+
selections: [
|
|
1491
|
+
{ kind: "Field", name: { kind: "Name", value: "__typename" } },
|
|
1492
|
+
{
|
|
1493
|
+
kind: "InlineFragment",
|
|
1494
|
+
typeCondition: {
|
|
1495
|
+
kind: "NamedType",
|
|
1496
|
+
name: { kind: "Name", value: "GroupResult" },
|
|
1497
|
+
},
|
|
1498
|
+
selectionSet: {
|
|
1499
|
+
kind: "SelectionSet",
|
|
1500
|
+
selections: [
|
|
1501
|
+
{
|
|
1502
|
+
kind: "Field",
|
|
1503
|
+
name: { kind: "Name", value: "group" },
|
|
1504
|
+
selectionSet: {
|
|
1505
|
+
kind: "SelectionSet",
|
|
1506
|
+
selections: [
|
|
1507
|
+
{
|
|
1508
|
+
kind: "Field",
|
|
1509
|
+
name: { kind: "Name", value: "name" },
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
kind: "Field",
|
|
1513
|
+
name: { kind: "Name", value: "id" },
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
kind: "Field",
|
|
1517
|
+
name: { kind: "Name", value: "description" },
|
|
1518
|
+
},
|
|
1519
|
+
{
|
|
1520
|
+
kind: "Field",
|
|
1521
|
+
name: { kind: "Name", value: "groupType" },
|
|
1522
|
+
},
|
|
1523
|
+
{
|
|
1524
|
+
kind: "Field",
|
|
1525
|
+
name: { kind: "Name", value: "adminOwnerId" },
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
kind: "Field",
|
|
1529
|
+
name: { kind: "Name", value: "groupLeaders" },
|
|
1530
|
+
selectionSet: {
|
|
1531
|
+
kind: "SelectionSet",
|
|
1532
|
+
selections: [
|
|
1533
|
+
{
|
|
1534
|
+
kind: "Field",
|
|
1535
|
+
name: { kind: "Name", value: "fullName" },
|
|
1536
|
+
},
|
|
1537
|
+
{
|
|
1538
|
+
kind: "Field",
|
|
1539
|
+
name: { kind: "Name", value: "email" },
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
kind: "Field",
|
|
1543
|
+
name: { kind: "Name", value: "id" },
|
|
1544
|
+
},
|
|
1545
|
+
],
|
|
1546
|
+
},
|
|
1547
|
+
},
|
|
1548
|
+
{
|
|
1549
|
+
kind: "Field",
|
|
1550
|
+
name: { kind: "Name", value: "connection" },
|
|
1551
|
+
selectionSet: {
|
|
1552
|
+
kind: "SelectionSet",
|
|
1553
|
+
selections: [
|
|
1554
|
+
{
|
|
1555
|
+
kind: "Field",
|
|
1556
|
+
name: { kind: "Name", value: "name" },
|
|
1557
|
+
},
|
|
1558
|
+
{
|
|
1559
|
+
kind: "Field",
|
|
1560
|
+
name: { kind: "Name", value: "id" },
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
kind: "Field",
|
|
1564
|
+
name: {
|
|
1565
|
+
kind: "Name",
|
|
1566
|
+
value: "connectionType",
|
|
1567
|
+
},
|
|
1568
|
+
},
|
|
1569
|
+
],
|
|
1570
|
+
},
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
kind: "Field",
|
|
1574
|
+
name: {
|
|
1575
|
+
kind: "Name",
|
|
1576
|
+
value: "paginatedGroupUsers",
|
|
1577
|
+
},
|
|
1578
|
+
selectionSet: {
|
|
1579
|
+
kind: "SelectionSet",
|
|
1580
|
+
selections: [
|
|
1581
|
+
{
|
|
1582
|
+
kind: "Field",
|
|
1583
|
+
name: {
|
|
1584
|
+
kind: "Name",
|
|
1585
|
+
value: "totalNumGroupUsers",
|
|
1586
|
+
},
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
kind: "Field",
|
|
1590
|
+
name: { kind: "Name", value: "groupUsers" },
|
|
1591
|
+
selectionSet: {
|
|
1592
|
+
kind: "SelectionSet",
|
|
1593
|
+
selections: [
|
|
1594
|
+
{
|
|
1595
|
+
kind: "Field",
|
|
1596
|
+
name: { kind: "Name", value: "user" },
|
|
1597
|
+
selectionSet: {
|
|
1598
|
+
kind: "SelectionSet",
|
|
1599
|
+
selections: [
|
|
1600
|
+
{
|
|
1601
|
+
kind: "Field",
|
|
1602
|
+
name: {
|
|
1603
|
+
kind: "Name",
|
|
1604
|
+
value: "fullName",
|
|
1605
|
+
},
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
kind: "Field",
|
|
1609
|
+
name: {
|
|
1610
|
+
kind: "Name",
|
|
1611
|
+
value: "email",
|
|
1612
|
+
},
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
kind: "Field",
|
|
1616
|
+
name: {
|
|
1617
|
+
kind: "Name",
|
|
1618
|
+
value: "id",
|
|
1619
|
+
},
|
|
1620
|
+
},
|
|
1621
|
+
],
|
|
1622
|
+
},
|
|
1623
|
+
},
|
|
1624
|
+
],
|
|
1625
|
+
},
|
|
1626
|
+
},
|
|
1627
|
+
],
|
|
1628
|
+
},
|
|
1629
|
+
},
|
|
1630
|
+
],
|
|
1631
|
+
},
|
|
1632
|
+
},
|
|
1633
|
+
],
|
|
1634
|
+
},
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
kind: "InlineFragment",
|
|
1638
|
+
typeCondition: {
|
|
1639
|
+
kind: "NamedType",
|
|
1640
|
+
name: { kind: "Name", value: "GroupNotFoundError" },
|
|
1641
|
+
},
|
|
1642
|
+
selectionSet: {
|
|
1643
|
+
kind: "SelectionSet",
|
|
1644
|
+
selections: [
|
|
1645
|
+
{
|
|
1646
|
+
kind: "Field",
|
|
1647
|
+
name: { kind: "Name", value: "message" },
|
|
1648
|
+
},
|
|
1649
|
+
],
|
|
1650
|
+
},
|
|
1651
|
+
},
|
|
1652
|
+
],
|
|
1653
|
+
},
|
|
1654
|
+
},
|
|
1655
|
+
],
|
|
1656
|
+
},
|
|
1657
|
+
},
|
|
1658
|
+
],
|
|
1659
|
+
};
|
|
1443
1660
|
exports.CheckAuthSessionQueryDocument = {
|
|
1444
1661
|
kind: "Document",
|
|
1445
1662
|
definitions: [
|
package/oclif.manifest.json
CHANGED
|
@@ -348,6 +348,46 @@
|
|
|
348
348
|
"identity.js"
|
|
349
349
|
]
|
|
350
350
|
},
|
|
351
|
+
"groups:get": {
|
|
352
|
+
"aliases": [],
|
|
353
|
+
"args": {},
|
|
354
|
+
"description": "Get group info for a particular group.",
|
|
355
|
+
"examples": [
|
|
356
|
+
"opal groups:get --id 54052a3e-5375-4392-aeaf-0c6c44c131d4"
|
|
357
|
+
],
|
|
358
|
+
"flags": {
|
|
359
|
+
"help": {
|
|
360
|
+
"char": "h",
|
|
361
|
+
"description": "Show CLI help.",
|
|
362
|
+
"name": "help",
|
|
363
|
+
"allowNo": false,
|
|
364
|
+
"type": "boolean"
|
|
365
|
+
},
|
|
366
|
+
"id": {
|
|
367
|
+
"char": "i",
|
|
368
|
+
"description": "The Opal ID of the resource. You can find this from the URL, e.g. https://opal.dev/resources/[ID]",
|
|
369
|
+
"name": "id",
|
|
370
|
+
"hasDynamicHelp": false,
|
|
371
|
+
"multiple": false,
|
|
372
|
+
"type": "option"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
"hasDynamicHelp": false,
|
|
376
|
+
"hiddenAliases": [],
|
|
377
|
+
"id": "groups:get",
|
|
378
|
+
"pluginAlias": "opal-security",
|
|
379
|
+
"pluginName": "opal-security",
|
|
380
|
+
"pluginType": "core",
|
|
381
|
+
"strict": true,
|
|
382
|
+
"enableJsonFlag": false,
|
|
383
|
+
"isESM": false,
|
|
384
|
+
"relativePath": [
|
|
385
|
+
"lib",
|
|
386
|
+
"commands",
|
|
387
|
+
"groups",
|
|
388
|
+
"get.js"
|
|
389
|
+
]
|
|
390
|
+
},
|
|
351
391
|
"iam-roles:start": {
|
|
352
392
|
"aliases": [],
|
|
353
393
|
"args": {},
|
|
@@ -869,5 +909,5 @@
|
|
|
869
909
|
]
|
|
870
910
|
}
|
|
871
911
|
},
|
|
872
|
-
"version": "3.0.1-beta.
|
|
912
|
+
"version": "3.0.1-beta.9068705"
|
|
873
913
|
}
|
package/package.json
CHANGED