@trii/types 2.10.726 → 2.10.727
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 +55 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ITicketCursorResponse } from "./Api";
|
|
1
2
|
import { ITicketAuditedEntity, TicketPropertyValue } from "./Common";
|
|
2
3
|
import { TicketFieldType } from "./Fields";
|
|
3
4
|
import { TicketConditionOperator } from "./Workflow";
|
|
@@ -384,6 +385,57 @@ export interface ITicketAccessAuditEvent {
|
|
|
384
385
|
allowed: boolean;
|
|
385
386
|
policyIds?: string[];
|
|
386
387
|
denialReason?: string;
|
|
388
|
+
technicalContextWithheld: boolean;
|
|
389
|
+
}
|
|
390
|
+
export interface ICreateTicketAccessAuditEventDto {
|
|
391
|
+
actorId: string;
|
|
392
|
+
/** Con qué identidad se actuó. Si no hay impersonación, es el propio actor. */
|
|
393
|
+
effectiveUserId?: string;
|
|
394
|
+
action: TicketAccessAuditAction;
|
|
395
|
+
resourceType: TicketSecurityResourceType;
|
|
396
|
+
resourceId?: string;
|
|
397
|
+
ticketId?: string;
|
|
398
|
+
/** Qué campos se tocaron. NUNCA sus valores. */
|
|
399
|
+
fieldNameKeys?: string[];
|
|
400
|
+
purpose?: string;
|
|
401
|
+
ipAddress?: string;
|
|
402
|
+
userAgent?: string;
|
|
403
|
+
correlationId?: string;
|
|
404
|
+
allowed: boolean;
|
|
405
|
+
policyIds?: string[];
|
|
406
|
+
denialReason?: string;
|
|
407
|
+
}
|
|
408
|
+
export interface ITicketAccessAuditFilters {
|
|
409
|
+
from?: Date;
|
|
410
|
+
to?: Date;
|
|
411
|
+
userId?: string;
|
|
412
|
+
actorId?: string;
|
|
413
|
+
effectiveUserId?: string;
|
|
414
|
+
actions?: TicketAccessAuditAction[];
|
|
415
|
+
resourceTypes?: TicketSecurityResourceType[];
|
|
416
|
+
ticketId?: string;
|
|
417
|
+
fieldNameKey?: string;
|
|
418
|
+
allowed?: boolean;
|
|
419
|
+
policyId?: string;
|
|
420
|
+
ipAddress?: string;
|
|
421
|
+
correlationId?: string;
|
|
422
|
+
}
|
|
423
|
+
export interface ITicketAccessAuditSearchRequest extends ITicketAccessAuditFilters {
|
|
424
|
+
cursor?: string;
|
|
425
|
+
limit?: number;
|
|
426
|
+
}
|
|
427
|
+
export interface ITicketAccessAuditEventDetail {
|
|
428
|
+
event: ITicketAccessAuditEvent;
|
|
429
|
+
correlated: ITicketAccessAuditEvent[];
|
|
430
|
+
}
|
|
431
|
+
export interface ITicketAccessAuditExportPreview {
|
|
432
|
+
filters: ITicketAccessAuditFilters;
|
|
433
|
+
from?: Date;
|
|
434
|
+
to?: Date;
|
|
435
|
+
estimatedEventCount: number;
|
|
436
|
+
includesSensitiveData: boolean;
|
|
437
|
+
includedActions: TicketAccessAuditAction[];
|
|
438
|
+
wideRangeWarning?: string;
|
|
387
439
|
}
|
|
388
440
|
export interface ITicketImpersonationSession {
|
|
389
441
|
id: string;
|
|
@@ -426,6 +478,8 @@ export interface ITicketAuthorizationRequest {
|
|
|
426
478
|
evaluatedAt?: Date;
|
|
427
479
|
subjectContext?: ITicketAuthorizationSubjectContext;
|
|
428
480
|
ticketContext?: ITicketAuthorizationTicketContext;
|
|
481
|
+
record?: boolean;
|
|
482
|
+
purpose?: string;
|
|
429
483
|
}
|
|
430
484
|
export interface ITicketAuthorizationSubjectContext {
|
|
431
485
|
isAgent?: boolean;
|
|
@@ -512,3 +566,4 @@ export interface IStartTicketImpersonationDto {
|
|
|
512
566
|
reason: string;
|
|
513
567
|
expiresAt: Date;
|
|
514
568
|
}
|
|
569
|
+
export type TicketAccessAuditPage = ITicketCursorResponse<ITicketAccessAuditEvent>;
|