@trii/types 2.10.720 → 2.10.722
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/dist/Tickets/Security.d.ts +66 -0
- package/package.json +1 -1
|
@@ -145,6 +145,38 @@ export interface ITicketSecurityPolicy extends ITicketAuditedEntity {
|
|
|
145
145
|
fieldPermissions?: ITicketFieldPermission[];
|
|
146
146
|
validFrom?: Date;
|
|
147
147
|
validUntil?: Date;
|
|
148
|
+
version: number;
|
|
149
|
+
}
|
|
150
|
+
export interface ICreateTicketSecurityPolicyDto {
|
|
151
|
+
name: string;
|
|
152
|
+
description?: string;
|
|
153
|
+
enabled?: boolean;
|
|
154
|
+
priority?: number;
|
|
155
|
+
effect: TicketPolicyEffect;
|
|
156
|
+
resourceTypes: TicketSecurityResourceType[];
|
|
157
|
+
operations: TicketSecurityOperation[];
|
|
158
|
+
subjects: ITicketSecuritySubject;
|
|
159
|
+
scope?: ITicketSecurityScope;
|
|
160
|
+
conditions?: ITicketSecurityConditionGroup;
|
|
161
|
+
fieldPermissions?: ITicketFieldPermission[];
|
|
162
|
+
validFrom?: Date;
|
|
163
|
+
validUntil?: Date;
|
|
164
|
+
}
|
|
165
|
+
export interface IUpdateTicketSecurityPolicyDto {
|
|
166
|
+
expectedVersion: number;
|
|
167
|
+
name?: string;
|
|
168
|
+
description?: string;
|
|
169
|
+
enabled?: boolean;
|
|
170
|
+
priority?: number;
|
|
171
|
+
effect?: TicketPolicyEffect;
|
|
172
|
+
resourceTypes?: TicketSecurityResourceType[];
|
|
173
|
+
operations?: TicketSecurityOperation[];
|
|
174
|
+
subjects?: ITicketSecuritySubject;
|
|
175
|
+
scope?: ITicketSecurityScope;
|
|
176
|
+
conditions?: ITicketSecurityConditionGroup;
|
|
177
|
+
fieldPermissions?: ITicketFieldPermission[];
|
|
178
|
+
validFrom?: Date;
|
|
179
|
+
validUntil?: Date;
|
|
148
180
|
}
|
|
149
181
|
export interface ITicketFieldSecurityDefinition extends ITicketAuditedEntity {
|
|
150
182
|
fieldNameKey: string;
|
|
@@ -260,15 +292,49 @@ export interface ITicketAuthorizationRequest {
|
|
|
260
292
|
context?: {
|
|
261
293
|
[key: string]: TicketPropertyValue;
|
|
262
294
|
};
|
|
295
|
+
evaluatedAt?: Date;
|
|
296
|
+
subjectContext?: ITicketAuthorizationSubjectContext;
|
|
297
|
+
ticketContext?: ITicketAuthorizationTicketContext;
|
|
298
|
+
}
|
|
299
|
+
export interface ITicketAuthorizationSubjectContext {
|
|
300
|
+
isAgent?: boolean;
|
|
301
|
+
isCustomer?: boolean;
|
|
302
|
+
roleIds?: string[];
|
|
303
|
+
groupIds?: string[];
|
|
304
|
+
organizationIds?: string[];
|
|
305
|
+
contactSegmentIds?: string[];
|
|
306
|
+
}
|
|
307
|
+
export interface ITicketAuthorizationTicketContext {
|
|
308
|
+
requesterId?: string;
|
|
309
|
+
assigneeId?: string;
|
|
310
|
+
assignedGroupId?: string;
|
|
311
|
+
categoryId?: string;
|
|
312
|
+
channelId?: string;
|
|
313
|
+
brandId?: string;
|
|
314
|
+
organizationId?: string;
|
|
315
|
+
sensitivityLevel?: TicketSensitivityLevel;
|
|
316
|
+
fields?: {
|
|
317
|
+
[nameKey: string]: TicketPropertyValue;
|
|
318
|
+
};
|
|
263
319
|
}
|
|
264
320
|
export interface ITicketAuthorizationDecision {
|
|
265
321
|
allowed: boolean;
|
|
266
322
|
policyIds: string[];
|
|
323
|
+
decisivePolicyId?: string;
|
|
267
324
|
deniedFieldNameKeys?: string[];
|
|
268
325
|
maskedFieldNameKeys?: string[];
|
|
269
326
|
reason?: string;
|
|
270
327
|
evaluatedAt: Date;
|
|
271
328
|
}
|
|
329
|
+
export interface ITicketSecurityPolicyValidationIssue {
|
|
330
|
+
code: string;
|
|
331
|
+
severity: 'ERROR' | 'WARNING';
|
|
332
|
+
message: string;
|
|
333
|
+
path?: string;
|
|
334
|
+
}
|
|
335
|
+
export interface IValidateTicketSecurityPolicyResponse {
|
|
336
|
+
issues: ITicketSecurityPolicyValidationIssue[];
|
|
337
|
+
}
|
|
272
338
|
export interface ICreateTicketRedactionRequestDto {
|
|
273
339
|
expectedVersion: number;
|
|
274
340
|
fieldNameKeys?: string[];
|