diff --git a/lib/commands/command.ts b/lib/commands/command.ts index 51ba126..c9a5982 100644 --- a/lib/commands/command.ts +++ b/lib/commands/command.ts @@ -36,6 +36,12 @@ export type Attributes = { [attribute: string]: boolean | string | string[] | number | number[] | null } +export type Permission = { + target: string + rights: string + annotation?: string +} + /** * SchemaAttribute defines an attribute for schema */ @@ -157,5 +163,6 @@ export type AccountSchema = Schema & { * Entitlement schema */ export type EntitlementSchema = Schema & { - type: string + type: string, + includePermissions?: boolean } diff --git a/lib/commands/std-entitlement-list.ts b/lib/commands/std-entitlement-list.ts index fa92831..3d51347 100644 --- a/lib/commands/std-entitlement-list.ts +++ b/lib/commands/std-entitlement-list.ts @@ -1,6 +1,6 @@ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */ -import { Attributes, CommandState, EntitlementSchema, ObjectOutput } from './command' +import { Attributes, CommandState, EntitlementSchema, ObjectOutput , Permission} from './command' /** * Input object of `std:entitlement:list` command @@ -18,5 +18,6 @@ export type StdEntitlementListInput = { export type StdEntitlementListOutput = ObjectOutput & { type: string deleted?: boolean - attributes: Attributes + attributes: Attributes, + permissions?: Permission[] } diff --git a/lib/commands/std-entitlement-read.ts b/lib/commands/std-entitlement-read.ts index 1a47543..dc2f087 100644 --- a/lib/commands/std-entitlement-read.ts +++ b/lib/commands/std-entitlement-read.ts @@ -1,6 +1,6 @@ /* Copyright (c) 2021. SailPoint Technologies, Inc. All rights reserved. */ -import { Attributes, EntitlementSchema, ObjectInput, ObjectOutput } from './command' +import { Attributes, EntitlementSchema, ObjectInput, ObjectOutput, Permission } from './command' /** * Input object of `std:entitlement:read` command @@ -16,4 +16,5 @@ export type StdEntitlementReadInput = ObjectInput & { export type StdEntitlementReadOutput = ObjectOutput & { type: string attributes: Attributes + permissions?: Permission[] }