@inf-monkeys-tech/monkeys-cli 0.12.13 → 0.12.14
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 +10 -0
- package/README.zh.md +10 -0
- package/dist/command/metadata.d.ts.map +1 -1
- package/dist/command/metadata.js +13 -0
- package/dist/command/metadata.js.map +1 -1
- package/dist/commands/group/create.d.ts +21 -0
- package/dist/commands/group/create.d.ts.map +1 -0
- package/dist/commands/group/create.js +31 -0
- package/dist/commands/group/create.js.map +1 -0
- package/dist/commands/group/delete.d.ts +22 -0
- package/dist/commands/group/delete.d.ts.map +1 -0
- package/dist/commands/group/delete.js +30 -0
- package/dist/commands/group/delete.js.map +1 -0
- package/dist/commands/group/get.d.ts +14 -0
- package/dist/commands/group/get.d.ts.map +1 -0
- package/dist/commands/group/get.js +20 -0
- package/dist/commands/group/get.js.map +1 -0
- package/dist/commands/group/list.d.ts +16 -0
- package/dist/commands/group/list.d.ts.map +1 -0
- package/dist/commands/group/list.js +18 -0
- package/dist/commands/group/list.js.map +1 -0
- package/dist/commands/group/member/add.d.ts +26 -0
- package/dist/commands/group/member/add.d.ts.map +1 -0
- package/dist/commands/group/member/add.js +29 -0
- package/dist/commands/group/member/add.js.map +1 -0
- package/dist/commands/group/member/list.d.ts +20 -0
- package/dist/commands/group/member/list.d.ts.map +1 -0
- package/dist/commands/group/member/list.js +21 -0
- package/dist/commands/group/member/list.js.map +1 -0
- package/dist/commands/group/member/remove.d.ts +27 -0
- package/dist/commands/group/member/remove.d.ts.map +1 -0
- package/dist/commands/group/member/remove.js +33 -0
- package/dist/commands/group/member/remove.js.map +1 -0
- package/dist/commands/group/permission/list.d.ts +19 -0
- package/dist/commands/group/permission/list.d.ts.map +1 -0
- package/dist/commands/group/permission/list.js +28 -0
- package/dist/commands/group/permission/list.js.map +1 -0
- package/dist/commands/group/permission/set.d.ts +24 -0
- package/dist/commands/group/permission/set.d.ts.map +1 -0
- package/dist/commands/group/permission/set.js +33 -0
- package/dist/commands/group/permission/set.js.map +1 -0
- package/dist/commands/group/update.d.ts +24 -0
- package/dist/commands/group/update.d.ts.map +1 -0
- package/dist/commands/group/update.js +33 -0
- package/dist/commands/group/update.js.map +1 -0
- package/dist/commands/permission/list.d.ts +16 -0
- package/dist/commands/permission/list.d.ts.map +1 -0
- package/dist/commands/permission/list.js +18 -0
- package/dist/commands/permission/list.js.map +1 -0
- package/dist/commands/user/get.d.ts +14 -0
- package/dist/commands/user/get.d.ts.map +1 -0
- package/dist/commands/user/get.js +20 -0
- package/dist/commands/user/get.js.map +1 -0
- package/dist/commands/user/group/add.d.ts +26 -0
- package/dist/commands/user/group/add.d.ts.map +1 -0
- package/dist/commands/user/group/add.js +29 -0
- package/dist/commands/user/group/add.js.map +1 -0
- package/dist/commands/user/group/list.d.ts +19 -0
- package/dist/commands/user/group/list.d.ts.map +1 -0
- package/dist/commands/user/group/list.js +38 -0
- package/dist/commands/user/group/list.js.map +1 -0
- package/dist/commands/user/group/remove.d.ts +26 -0
- package/dist/commands/user/group/remove.d.ts.map +1 -0
- package/dist/commands/user/group/remove.js +29 -0
- package/dist/commands/user/group/remove.js.map +1 -0
- package/dist/commands/user/list.d.ts +18 -0
- package/dist/commands/user/list.d.ts.map +1 -0
- package/dist/commands/user/list.js +27 -0
- package/dist/commands/user/list.js.map +1 -0
- package/dist/identity-governance/client.d.ts +217 -0
- package/dist/identity-governance/client.d.ts.map +1 -0
- package/dist/identity-governance/client.js +185 -0
- package/dist/identity-governance/client.js.map +1 -0
- package/dist/identity-governance/contracts.d.ts +142 -0
- package/dist/identity-governance/contracts.d.ts.map +1 -0
- package/dist/identity-governance/contracts.js +109 -0
- package/dist/identity-governance/contracts.js.map +1 -0
- package/dist/identity-governance/definitions.d.ts +54 -0
- package/dist/identity-governance/definitions.d.ts.map +1 -0
- package/dist/identity-governance/definitions.js +25 -0
- package/dist/identity-governance/definitions.js.map +1 -0
- package/dist/identity-governance/files.d.ts +5 -0
- package/dist/identity-governance/files.d.ts.map +1 -0
- package/dist/identity-governance/files.js +75 -0
- package/dist/identity-governance/files.js.map +1 -0
- package/dist/identity-governance/flags.d.ts +43 -0
- package/dist/identity-governance/flags.d.ts.map +1 -0
- package/dist/identity-governance/flags.js +52 -0
- package/dist/identity-governance/flags.js.map +1 -0
- package/dist/identity-governance/group-mutation.d.ts +165 -0
- package/dist/identity-governance/group-mutation.d.ts.map +1 -0
- package/dist/identity-governance/group-mutation.js +160 -0
- package/dist/identity-governance/group-mutation.js.map +1 -0
- package/dist/identity-governance/membership.d.ts +145 -0
- package/dist/identity-governance/membership.d.ts.map +1 -0
- package/dist/identity-governance/membership.js +264 -0
- package/dist/identity-governance/membership.js.map +1 -0
- package/dist/identity-governance/runtime.d.ts +16 -0
- package/dist/identity-governance/runtime.d.ts.map +1 -0
- package/dist/identity-governance/runtime.js +30 -0
- package/dist/identity-governance/runtime.js.map +1 -0
- package/oclif.manifest.json +2585 -560
- package/package.json +11 -2
- package/skills/monkeys-shared/SKILL.md +2 -1
- package/skills/monkeys-shared/references/identity-governance.md +47 -0
- package/skills/monkeys-shared/references/platform-overview.md +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../../../src/commands/group/permission/set.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAMhE,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,OAAgB,WAAW,SAA8E;IACzG,OAAgB,IAAI;QAAK,EAAE;MAA0E;IACrG,OAAgB,KAAK;;;;;;;;;;;;;;MAInB;IACI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAezB;CACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../../identity-governance/client.js';
|
|
4
|
+
import { mutationFlags, bodyFlags, readBody } from '../../../identity-governance/flags.js';
|
|
5
|
+
import { executeGroupMutation } from '../../../identity-governance/group-mutation.js';
|
|
6
|
+
import { loadIdentityRuntime } from '../../../identity-governance/runtime.js';
|
|
7
|
+
import { paginationInput } from '../../../pagination/index.js';
|
|
8
|
+
export default class GroupMutation extends LocalCommand {
|
|
9
|
+
static description = 'Replace the complete custom-group permission set; explicit [] clears it.';
|
|
10
|
+
static args = { id: Args.string({ required: true, description: 'Exact custom-group ID' }) };
|
|
11
|
+
static flags = {
|
|
12
|
+
...mutationFlags(),
|
|
13
|
+
...bodyFlags(),
|
|
14
|
+
snapshot: Flags.string({ summary: 'New file for the before-state snapshot (never overwritten)' }),
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { flags, args } = await this.parse(GroupMutation);
|
|
18
|
+
await this.emit('group permission set', flags.output, async () => {
|
|
19
|
+
const body = await readBody(flags);
|
|
20
|
+
return executeGroupMutation({
|
|
21
|
+
client: new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh)),
|
|
22
|
+
action: 'setPermissions',
|
|
23
|
+
id: args.id,
|
|
24
|
+
body,
|
|
25
|
+
dryRun: flags['dry-run'],
|
|
26
|
+
yes: flags.yes,
|
|
27
|
+
snapshot: flags.snapshot,
|
|
28
|
+
pagination: paginationInput(flags),
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=set.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../../src/commands/group/permission/set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,SAAS,EAA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AAE,eAAe,CAAC,KAAK,CAAC;aACnC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
2
|
+
export default class GroupMutation extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
'page-all': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'page-delay': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'page-limit': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'page-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'page-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
'input-json': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'input-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
snapshot: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
};
|
|
22
|
+
run(): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../src/commands/group/update.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAM7D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,OAAgB,WAAW,SAAmE;IAC9F,OAAgB,IAAI;QAAK,EAAE;MAA0E;IACrG,OAAgB,KAAK;;;;;;;;;;;;;;MAInB;IACI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAezB;CACF"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Args, Flags } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../identity-governance/client.js';
|
|
4
|
+
import { mutationFlags, bodyFlags, readBody } from '../../identity-governance/flags.js';
|
|
5
|
+
import { executeGroupMutation } from '../../identity-governance/group-mutation.js';
|
|
6
|
+
import { loadIdentityRuntime } from '../../identity-governance/runtime.js';
|
|
7
|
+
import { paginationInput } from '../../pagination/index.js';
|
|
8
|
+
export default class GroupMutation extends LocalCommand {
|
|
9
|
+
static description = 'Update explicit metadata fields of a custom permission group.';
|
|
10
|
+
static args = { id: Args.string({ required: true, description: 'Exact custom-group ID' }) };
|
|
11
|
+
static flags = {
|
|
12
|
+
...mutationFlags(),
|
|
13
|
+
...bodyFlags(),
|
|
14
|
+
snapshot: Flags.string({ summary: 'New file for the before-state snapshot (never overwritten)' }),
|
|
15
|
+
};
|
|
16
|
+
async run() {
|
|
17
|
+
const { flags, args } = await this.parse(GroupMutation);
|
|
18
|
+
await this.emit('group update', flags.output, async () => {
|
|
19
|
+
const body = await readBody(flags);
|
|
20
|
+
return executeGroupMutation({
|
|
21
|
+
client: new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh)),
|
|
22
|
+
action: 'update',
|
|
23
|
+
id: args.id,
|
|
24
|
+
body,
|
|
25
|
+
dryRun: flags['dry-run'],
|
|
26
|
+
yes: flags.yes,
|
|
27
|
+
snapshot: flags.snapshot,
|
|
28
|
+
pagination: paginationInput(flags),
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../src/commands/group/update.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC5D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,YAAY;IACrD,MAAM,CAAU,WAAW,GAAG,+DAA+D,CAAC;IAC9F,MAAM,CAAU,IAAI,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC,EAAE,CAAC;IACrG,MAAM,CAAU,KAAK,GAAG;QACtB,GAAG,aAAa,EAAE;QAClB,GAAG,SAAS,EAAE;QACd,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,OAAO,EAAE,4DAA4D,EAAE,CAAC;KAClG,CAAC;IACF,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QACxD,MAAM,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE;YACvD,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,KAAK,CAAC,CAAC;YACnC,OAAO,oBAAoB,CAAC;gBAC1B,MAAM,EAAE,IAAI,cAAc,CAAC,MAAM,mBAAmB,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;gBACxF,MAAM,EAAE,QAAQ;gBAChB,EAAE,EAAE,IAAI,CAAC,EAAE;gBACX,IAAI;gBACJ,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;gBACxB,GAAG,EAAE,KAAK,CAAC,GAAG;gBACd,QAAQ,EAAE,KAAK,CAAC,QAAQ;gBACxB,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC;aACnC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
2
|
+
export default class IdentityRead extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
'page-all': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
'page-delay': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
'page-limit': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'page-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'page-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
};
|
|
14
|
+
run(): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/permission/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAM7D,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,WAAW,SAAkD;IAE7E,OAAgB,KAAK;;;;;;;;;MAAgD;IAC/D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAOzB;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
2
|
+
import { IdentityClient } from '../../identity-governance/client.js';
|
|
3
|
+
import { identityFlags } from '../../identity-governance/flags.js';
|
|
4
|
+
import { identityMeta, loadIdentityRuntime } from '../../identity-governance/runtime.js';
|
|
5
|
+
import { paginationFlags, paginationInput } from '../../pagination/index.js';
|
|
6
|
+
export default class IdentityRead extends LocalCommand {
|
|
7
|
+
static description = 'List the existing Kernel permission catalog.';
|
|
8
|
+
static flags = { ...identityFlags(), ...paginationFlags() };
|
|
9
|
+
async run() {
|
|
10
|
+
const { flags } = await this.parse(IdentityRead);
|
|
11
|
+
await this.emit('permission list', flags.output, async () => {
|
|
12
|
+
const client = new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh));
|
|
13
|
+
const data = await client.permissions(paginationInput(flags));
|
|
14
|
+
return { ...identityMeta(client.runtime), ...data };
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/permission/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEzF,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAC7E,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,MAAM,CAAU,WAAW,GAAG,8CAA8C,CAAC;IAE7E,MAAM,CAAU,KAAK,GAAG,EAAE,GAAG,aAAa,EAAE,EAAE,GAAG,eAAe,EAAE,EAAE,CAAC;IACrE,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACjD,MAAM,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE;YAC1D,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,MAAM,mBAAmB,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAChG,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAC;YAC9D,OAAO,EAAE,GAAG,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
2
|
+
export default class IdentityRead extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
11
|
+
};
|
|
12
|
+
run(): Promise<void>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=get.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.d.ts","sourceRoot":"","sources":["../../../src/commands/user/get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAM7D,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,WAAW,SAA8C;IACzE,OAAgB,IAAI;QAAK,EAAE;MAAoE;IAC/F,OAAgB,KAAK;;;;MAA0B;IACzC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAOzB;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../identity-governance/client.js';
|
|
4
|
+
import { identityFlags } from '../../identity-governance/flags.js';
|
|
5
|
+
import { identityMeta, loadIdentityRuntime } from '../../identity-governance/runtime.js';
|
|
6
|
+
import { idSchema, parse } from '../../identity-governance/contracts.js';
|
|
7
|
+
export default class IdentityRead extends LocalCommand {
|
|
8
|
+
static description = 'Get a safe Kernel platform-user profile.';
|
|
9
|
+
static args = { id: Args.string({ required: true, description: 'Exact target ID' }) };
|
|
10
|
+
static flags = { ...identityFlags() };
|
|
11
|
+
async run() {
|
|
12
|
+
const { flags, args } = await this.parse(IdentityRead);
|
|
13
|
+
await this.emit('user get', flags.output, async () => {
|
|
14
|
+
const client = new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh));
|
|
15
|
+
const data = await client.user(parse(idSchema, args.id));
|
|
16
|
+
return { ...identityMeta(client.runtime), item: data };
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=get.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/commands/user/get.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,wCAAwC,CAAC;AAEzE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,MAAM,CAAU,WAAW,GAAG,0CAA0C,CAAC;IACzE,MAAM,CAAU,IAAI,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC,EAAE,CAAC;IAC/F,MAAM,CAAU,KAAK,GAAG,EAAE,GAAG,aAAa,EAAE,EAAE,CAAC;IAC/C,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QACvD,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE;YACnD,MAAM,MAAM,GAAG,IAAI,cAAc,CAAC,MAAM,mBAAmB,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;YAChG,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;YACzD,OAAO,EAAE,GAAG,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
2
|
+
export default class MembershipMutation extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
'page-all': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'page-delay': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'page-limit': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'page-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'page-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
ids: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'ids-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'plan-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'plan-out': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
report: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
};
|
|
24
|
+
run(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../../src/commands/user/group/add.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAMhE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,OAAgB,WAAW,SAA6E;IACxG,OAAgB,IAAI;QAAK,EAAE;MAAkE;IAC7F,OAAgB,KAAK;;;;;;;;;;;;;;;;MAA4B;IAC3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAkBzB;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../../identity-governance/client.js';
|
|
4
|
+
import { membershipFlags } from '../../../identity-governance/flags.js';
|
|
5
|
+
import { executeMembership } from '../../../identity-governance/membership.js';
|
|
6
|
+
import { loadIdentityRuntime } from '../../../identity-governance/runtime.js';
|
|
7
|
+
import { paginationInput } from '../../../pagination/index.js';
|
|
8
|
+
export default class MembershipMutation extends LocalCommand {
|
|
9
|
+
static description = 'Add direct group memberships using exact IDs or a reviewed frozen plan.';
|
|
10
|
+
static args = { id: Args.string({ required: true, description: 'Exact user ID' }) };
|
|
11
|
+
static flags = { ...membershipFlags() };
|
|
12
|
+
async run() {
|
|
13
|
+
const { flags, args } = await this.parse(MembershipMutation);
|
|
14
|
+
await this.emit('user group add', flags.output, async () => executeMembership({
|
|
15
|
+
client: new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh)),
|
|
16
|
+
scope: { kind: 'user', id: args.id },
|
|
17
|
+
action: 'add',
|
|
18
|
+
ids: flags.ids,
|
|
19
|
+
idsFile: flags['ids-file'],
|
|
20
|
+
planFile: flags['plan-file'],
|
|
21
|
+
planOut: flags['plan-out'],
|
|
22
|
+
report: flags.report,
|
|
23
|
+
dryRun: flags['dry-run'],
|
|
24
|
+
yes: flags.yes,
|
|
25
|
+
pagination: paginationInput(flags),
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=add.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.js","sourceRoot":"","sources":["../../../../src/commands/user/group/add.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,MAAM,CAAU,WAAW,GAAG,yEAAyE,CAAC;IACxG,MAAM,CAAU,IAAI,GAAG,EAAE,EAAE,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;IAC7F,MAAM,CAAU,KAAK,GAAG,EAAE,GAAG,eAAe,EAAE,EAAE,CAAC;IACjD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC7D,MAAM,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CACzD,iBAAiB,CAAC;YAChB,MAAM,EAAE,IAAI,cAAc,CAAC,MAAM,mBAAmB,CAAC,KAAK,CAAC,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACxF,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE;YACpC,MAAM,EAAE,KAAK;YACb,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC;YAC1B,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC;YAC5B,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC;YAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;YAEpB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;YACxB,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC;SACnC,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
2
|
+
export default class IdentityRead extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
'page-all': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'page-delay': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'page-limit': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'page-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'page-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
};
|
|
17
|
+
run(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../../src/commands/user/group/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAQhE,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,WAAW,SAAiE;IAC5F,OAAgB,IAAI;QAAK,EAAE;MAAoE;IAC/F,OAAgB,KAAK;;;;;;;;;MAAgD;IAC/D,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CA2BzB;CACF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../../identity-governance/client.js';
|
|
4
|
+
import { identityFlags } from '../../../identity-governance/flags.js';
|
|
5
|
+
import { identityMeta, loadIdentityRuntime } from '../../../identity-governance/runtime.js';
|
|
6
|
+
import { idSchema, parse } from '../../../identity-governance/contracts.js';
|
|
7
|
+
import { paginateArray, paginationFlags, paginationFingerprint, paginationInput } from '../../../pagination/index.js';
|
|
8
|
+
import { digest } from '../../../identity-governance/files.js';
|
|
9
|
+
export default class IdentityRead extends LocalCommand {
|
|
10
|
+
static description = 'List direct and mapped groups separately for a Kernel user.';
|
|
11
|
+
static args = { id: Args.string({ required: true, description: 'Exact target ID' }) };
|
|
12
|
+
static flags = { ...identityFlags(), ...paginationFlags() };
|
|
13
|
+
async run() {
|
|
14
|
+
const { flags, args } = await this.parse(IdentityRead);
|
|
15
|
+
await this.emit('user group list', flags.output, async () => {
|
|
16
|
+
const client = new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh));
|
|
17
|
+
const data = await client.userGroups(parse(idSchema, args.id));
|
|
18
|
+
const entries = [
|
|
19
|
+
...data.direct.map((group) => ({ ...group, source: 'direct' })),
|
|
20
|
+
...data.mapped.map((group) => ({ ...group, source: 'mapped' })),
|
|
21
|
+
];
|
|
22
|
+
const page = await paginateArray(entries, paginationInput(flags), paginationFingerprint({
|
|
23
|
+
command: 'user.group.list',
|
|
24
|
+
context: client.runtime.context.fingerprint,
|
|
25
|
+
userId: data.userId,
|
|
26
|
+
snapshot: digest(entries),
|
|
27
|
+
}));
|
|
28
|
+
return {
|
|
29
|
+
...identityMeta(client.runtime),
|
|
30
|
+
userId: data.userId,
|
|
31
|
+
...page,
|
|
32
|
+
direct: page.items.filter((group) => group.source === 'direct'),
|
|
33
|
+
mapped: page.items.filter((group) => group.source === 'mapped'),
|
|
34
|
+
};
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../../src/commands/user/group/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,E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M,EAAE,QAAiB,EAAE,CAAC,CAAC;gBACxE,GAAG,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,MAAM,EAAE,QAAiB,EAAE,CAAC,CAAC;aACzE,CAAC;YACF,MAAM,IAAI,GAAG,MAAM,aAAa,CAC9B,OAAO,EACP,eAAe,CAAC,KAAK,CAAC,EACtB,qBAAqB,CAAC;gBACpB,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW;gBAC3C,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,MAAM,CAAC,OAAO,CAAC;aAC1B,CAAC,CACH,CAAC;YACF,OAAO;gBACL,GAAG,YAAY,CAAC,MAAM,CAAC,OAAO,CAAC;gBAC/B,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,GAAG,IAAI;gBACP,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC;gBAC/D,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,KAAK,QAAQ,CAAC;aAChE,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
2
|
+
export default class MembershipMutation extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static args: {
|
|
5
|
+
id: import("@oclif/core/interfaces").Arg<string, Record<string, unknown>>;
|
|
6
|
+
};
|
|
7
|
+
static flags: {
|
|
8
|
+
'page-all': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
'page-delay': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'page-limit': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'page-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'page-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
16
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
17
|
+
yes: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
18
|
+
ids: import("@oclif/core/interfaces").OptionFlag<string[] | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'ids-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
20
|
+
'plan-file': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'plan-out': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
report: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
23
|
+
};
|
|
24
|
+
run(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=remove.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../../src/commands/user/group/remove.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAMhE,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,YAAY;IAC1D,OAAgB,WAAW,SAAgF;IAC3G,OAAgB,IAAI;QAAK,EAAE;MAAkE;IAC7F,OAAgB,KAAK;;;;;;;;;;;;;;;;MAA4B;IAC3C,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAkBzB;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Args } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../../identity-governance/client.js';
|
|
4
|
+
import { membershipFlags } from '../../../identity-governance/flags.js';
|
|
5
|
+
import { executeMembership } from '../../../identity-governance/membership.js';
|
|
6
|
+
import { loadIdentityRuntime } from '../../../identity-governance/runtime.js';
|
|
7
|
+
import { paginationInput } from '../../../pagination/index.js';
|
|
8
|
+
export default class MembershipMutation extends LocalCommand {
|
|
9
|
+
static description = 'Remove direct group memberships using exact IDs or a reviewed frozen plan.';
|
|
10
|
+
static args = { id: Args.string({ required: true, description: 'Exact user ID' }) };
|
|
11
|
+
static flags = { ...membershipFlags() };
|
|
12
|
+
async run() {
|
|
13
|
+
const { flags, args } = await this.parse(MembershipMutation);
|
|
14
|
+
await this.emit('user group remove', flags.output, async () => executeMembership({
|
|
15
|
+
client: new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh)),
|
|
16
|
+
scope: { kind: 'user', id: args.id },
|
|
17
|
+
action: 'remove',
|
|
18
|
+
ids: flags.ids,
|
|
19
|
+
idsFile: flags['ids-file'],
|
|
20
|
+
planFile: flags['plan-file'],
|
|
21
|
+
planOut: flags['plan-out'],
|
|
22
|
+
report: flags.report,
|
|
23
|
+
dryRun: flags['dry-run'],
|
|
24
|
+
yes: flags.yes,
|
|
25
|
+
pagination: paginationInput(flags),
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=remove.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.js","sourceRoot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,CAAC,UAAU,CAAC;YAC1B,QAAQ,EAAE,KAAK,CAAC,WAAW,CAAC;YAC5B,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC;YAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;YAEpB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;YACxB,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,UAAU,EAAE,eAAe,CAAC,KAAK,CAAC;SACnC,CAAC,CACH,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
2
|
+
export default class IdentityRead extends LocalCommand {
|
|
3
|
+
static description: string;
|
|
4
|
+
static flags: {
|
|
5
|
+
'page-all': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
'page-delay': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
7
|
+
'page-limit': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
'page-size': import("@oclif/core/interfaces").OptionFlag<number, import("@oclif/core/interfaces").CustomOptions>;
|
|
9
|
+
'page-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
output: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
subscription: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
refresh: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
13
|
+
keyword: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'user-type': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
};
|
|
16
|
+
run(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=list.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/commands/user/list.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAM7D,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,YAAY;IACpD,OAAgB,WAAW,SAAsE;IAEjG,OAAgB,KAAK;;;;;;;;;;;MAKnB;IACI,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAUzB;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Flags } from '@oclif/core';
|
|
2
|
+
import { LocalCommand } from '../../config/local-command.js';
|
|
3
|
+
import { IdentityClient } from '../../identity-governance/client.js';
|
|
4
|
+
import { identityFlags } from '../../identity-governance/flags.js';
|
|
5
|
+
import { identityMeta, loadIdentityRuntime } from '../../identity-governance/runtime.js';
|
|
6
|
+
import { paginationFlags, paginationInput } from '../../pagination/index.js';
|
|
7
|
+
export default class IdentityRead extends LocalCommand {
|
|
8
|
+
static description = 'List Kernel platform users (not Studio share-target identities).';
|
|
9
|
+
static flags = {
|
|
10
|
+
...identityFlags(),
|
|
11
|
+
...paginationFlags(),
|
|
12
|
+
keyword: Flags.string({ summary: 'Search supported user fields' }),
|
|
13
|
+
'user-type': Flags.string({ options: ['human', 'agent'], summary: 'User type' }),
|
|
14
|
+
};
|
|
15
|
+
async run() {
|
|
16
|
+
const { flags } = await this.parse(IdentityRead);
|
|
17
|
+
await this.emit('user list', flags.output, async () => {
|
|
18
|
+
const client = new IdentityClient(await loadIdentityRuntime(flags.subscription, flags.refresh));
|
|
19
|
+
const data = await client.users(paginationInput(flags), {
|
|
20
|
+
...(flags.keyword ? { keyword: flags.keyword } : {}),
|
|
21
|
+
...(flags['user-type'] ? { userType: flags['user-type'] } : {}),
|
|
22
|
+
});
|
|
23
|
+
return { ...identityMeta(client.runtime), ...data };
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+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