@trii/types 2.10.729 → 2.10.731

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.
Files changed (163) hide show
  1. package/dist/AI/MapPolygon.d.ts +22 -0
  2. package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +67 -0
  3. package/dist/Conversations/Classifications/ClassificationTaxonomy.js +5 -0
  4. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
  5. package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
  6. package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +29 -0
  7. package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
  8. package/dist/Conversations/Classifications/index.d.ts +3 -0
  9. package/dist/{src/Automations/Triggers → Conversations/Classifications}/index.js +3 -1
  10. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  11. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  12. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
  13. package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
  14. package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
  15. package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
  16. package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
  17. package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
  18. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
  19. package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
  20. package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
  21. package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
  22. package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
  23. package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
  24. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
  25. package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
  26. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
  27. package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
  28. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
  29. package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
  30. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
  31. package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
  32. package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
  33. package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
  34. package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
  35. package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
  36. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
  37. package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
  38. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
  39. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
  40. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
  41. package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
  42. package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
  43. package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
  44. package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
  45. package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
  46. package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
  47. package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
  48. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
  49. package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
  50. package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
  51. package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
  52. package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
  53. package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
  54. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
  55. package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
  56. package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
  57. package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
  58. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
  59. package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
  60. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
  61. package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
  62. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
  63. package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
  64. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
  65. package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
  66. package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
  67. package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
  68. package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
  69. package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
  70. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
  71. package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
  72. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
  73. package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
  74. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
  75. package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
  76. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
  77. package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
  78. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
  79. package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
  80. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
  81. package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
  82. package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
  83. package/dist/Conversations/Flows/Nodes/index.js +40 -0
  84. package/dist/Conversations/InboxCounters.d.ts +18 -0
  85. package/dist/Conversations/InboxCounters.js +2 -0
  86. package/dist/Conversations/index.d.ts +1 -0
  87. package/dist/Conversations/index.js +1 -0
  88. package/dist/Presence/ChannelRoutingState.d.ts +17 -0
  89. package/dist/Presence/ChannelRoutingState.js +9 -0
  90. package/dist/Tickets/AccessLevel.d.ts +5 -0
  91. package/dist/Tickets/AccessLevel.js +9 -0
  92. package/dist/Tickets/Common.d.ts +62 -0
  93. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  94. package/dist/Tickets/CustomerNotification.js +54 -0
  95. package/dist/Tickets/Notes.d.ts +13 -0
  96. package/dist/Tickets/Notes.js +10 -0
  97. package/dist/Tickets/QuickResponse.d.ts +64 -0
  98. package/dist/Tickets/QuickResponse.js +41 -0
  99. package/dist/Tickets/Task.d.ts +11 -0
  100. package/dist/Tickets/Ticket.d.ts +2 -0
  101. package/dist/Tickets/index.d.ts +3 -0
  102. package/dist/Tickets/index.js +3 -0
  103. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -33
  104. package/dist/src/Automations/Capabilities/Capability.js +1 -15
  105. package/dist/src/Automations/Common.d.ts +0 -47
  106. package/dist/src/Automations/Common.js +0 -22
  107. package/dist/src/Automations/Events/Event.d.ts +4 -59
  108. package/dist/src/Automations/Events/Event.js +0 -17
  109. package/dist/src/Automations/Executions/Execution.d.ts +4 -188
  110. package/dist/src/Automations/Executions/Execution.js +1 -54
  111. package/dist/src/Automations/Executions/index.d.ts +0 -1
  112. package/dist/src/Automations/Executions/index.js +0 -1
  113. package/dist/src/Automations/Flows/Canvas.d.ts +4 -27
  114. package/dist/src/Automations/Flows/Canvas.js +1 -10
  115. package/dist/src/Automations/Flows/Flow.d.ts +3 -55
  116. package/dist/src/Automations/Flows/Flow.js +1 -25
  117. package/dist/src/Automations/Nodes/Node.d.ts +3 -44
  118. package/dist/src/Automations/Nodes/Node.js +1 -10
  119. package/dist/src/Automations/index.d.ts +0 -1
  120. package/dist/src/Automations/index.js +0 -1
  121. package/dist/src/Common/Channels/Channel.d.ts +4 -6
  122. package/dist/src/Common/Channels/Email.d.ts +0 -1
  123. package/dist/src/Common/Channels/Facebook.d.ts +0 -1
  124. package/dist/src/Common/Channels/Form.d.ts +0 -1
  125. package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -1
  126. package/dist/src/Common/Channels/Instagram.d.ts +0 -1
  127. package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -1
  128. package/dist/src/Common/Channels/WebChat.d.ts +0 -1
  129. package/dist/src/Contacts/index.d.ts +0 -2
  130. package/dist/src/Contacts/index.js +0 -2
  131. package/dist/src/Conversations/Assignment.d.ts +1 -101
  132. package/dist/src/Conversations/Conversation.d.ts +0 -169
  133. package/dist/src/PublicAPI/apiKey.d.ts +3 -92
  134. package/dist/src/PublicAPI/apiKey.js +0 -27
  135. package/dist/src/Tickets/AI.d.ts +2 -50
  136. package/dist/src/Tickets/AdvancedApi.d.ts +2 -142
  137. package/dist/src/Tickets/AdvancedApi.js +1 -28
  138. package/dist/src/Tickets/Approval.d.ts +4 -20
  139. package/dist/src/Tickets/Automation.d.ts +2 -46
  140. package/dist/src/Tickets/Dashboard.d.ts +0 -1
  141. package/dist/src/Tickets/Fields.d.ts +0 -3
  142. package/dist/src/Tickets/Routing.d.ts +3 -105
  143. package/dist/src/Tickets/Routing.js +1 -7
  144. package/dist/src/Tickets/Security.d.ts +4 -271
  145. package/dist/src/Tickets/Security.js +1 -10
  146. package/dist/src/Tickets/SelfService.d.ts +0 -190
  147. package/dist/src/Tickets/Sla.d.ts +0 -140
  148. package/dist/src/index.d.ts +0 -1
  149. package/dist/src/index.js +1 -2
  150. package/package.json +12 -12
  151. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  152. package/dist/src/Automations/Executions/Testing.js +0 -54
  153. package/dist/src/Automations/Triggers/Trigger.d.ts +0 -112
  154. package/dist/src/Automations/Triggers/Trigger.js +0 -66
  155. package/dist/src/Automations/Triggers/index.d.ts +0 -1
  156. package/dist/src/Contacts/CommunicationEndpoint.d.ts +0 -107
  157. package/dist/src/Contacts/CommunicationEndpoint.js +0 -39
  158. package/dist/src/Contacts/CommunicationMethod.d.ts +0 -9
  159. package/dist/src/Events/DomainEventTypes.d.ts +0 -51
  160. package/dist/src/Events/DomainEventTypes.js +0 -49
  161. package/dist/src/Events/index.d.ts +0 -1
  162. package/dist/src/Events/index.js +0 -17
  163. /package/dist/{src/Contacts/CommunicationMethod.js → AI/MapPolygon.js} +0 -0
@@ -1,6 +1,6 @@
1
- import { ChannelType } from "../Common/Channels/ChannelType";
2
- import { ITicketAuditedEntity, TicketPriority, TicketPropertyValue } from "./Common";
3
- import { TicketConditionOperator } from "./Workflow";
1
+ import { ChannelType } from '../Common/Channels/ChannelType';
2
+ import { ITicketAuditedEntity, TicketPriority, TicketPropertyValue } from './Common';
3
+ import { TicketConditionOperator } from './Workflow';
4
4
  export declare enum TicketRoutingStrategy {
5
5
  ROUND_ROBIN = "ROUND_ROBIN",
6
6
  LEAST_BUSY = "LEAST_BUSY",
@@ -288,105 +288,3 @@ export interface IManualRouteTicketDto {
288
288
  agentId?: string;
289
289
  reason?: string;
290
290
  }
291
- export interface ICreateTicketQueueDto {
292
- name: string;
293
- description?: string;
294
- enabled: boolean;
295
- priority: number;
296
- conditions?: ITicketRoutingConditionGroup;
297
- primaryGroupIds: string[];
298
- fallbackGroupIds?: string[];
299
- strategy: TicketRoutingStrategy;
300
- ordering: ITicketQueueOrder[];
301
- skillRequirements?: ITicketSkillRequirement[];
302
- offerTimeoutSeconds?: number;
303
- maximumWaitMinutes?: number;
304
- escalationPolicyId?: string;
305
- }
306
- export type IUpdateTicketQueueDto = Partial<ICreateTicketQueueDto>;
307
- export interface ICreateTicketSkillDto {
308
- name: string;
309
- description?: string;
310
- enabled?: boolean;
311
- }
312
- export type IUpdateTicketSkillDto = Partial<ICreateTicketSkillDto>;
313
- export interface ICreateTicketEscalationPolicyDto {
314
- name: string;
315
- description?: string;
316
- enabled?: boolean;
317
- steps: ITicketEscalationStep[];
318
- }
319
- export type IUpdateTicketEscalationPolicyDto = Partial<ICreateTicketEscalationPolicyDto>;
320
- export interface ITicketQueueSimulateRequestDto {
321
- queueId?: string;
322
- conditions?: ITicketRoutingConditionGroup;
323
- sampleTicket: Record<string, unknown>;
324
- }
325
- export interface ITicketQueueSimulateResponseDto {
326
- wouldEnter: boolean;
327
- reasons: string[];
328
- }
329
- export interface ICreateTicketRoutingPolicyDto {
330
- name: string;
331
- description?: string;
332
- enabled: boolean;
333
- priority: number;
334
- conditions?: ITicketRoutingConditionGroup;
335
- queueId: string;
336
- strategyOverride?: TicketRoutingStrategy;
337
- skillRequirements?: ITicketSkillRequirement[];
338
- validFrom?: Date;
339
- validUntil?: Date;
340
- }
341
- export type IUpdateTicketRoutingPolicyDto = Partial<ICreateTicketRoutingPolicyDto>;
342
- export interface IReorderTicketRoutingPoliciesDto {
343
- orderedIds: string[];
344
- }
345
- export declare enum TicketSkillWarningCode {
346
- ENABLED_BUT_UNASSIGNED = "ENABLED_BUT_UNASSIGNED",
347
- DISABLED_BUT_REFERENCED = "DISABLED_BUT_REFERENCED",
348
- REQUIRED_BY_QUEUE_BUT_UNMET = "REQUIRED_BY_QUEUE_BUT_UNMET"
349
- }
350
- export interface ITicketSkillUsageSummary {
351
- agentsCount: number;
352
- queuesCount: number;
353
- policiesCount: number;
354
- }
355
- export interface ITicketSkillUsageRef {
356
- id: string;
357
- name: string;
358
- }
359
- export interface ITicketSkillUsage {
360
- agents: number;
361
- queues: ITicketSkillUsageRef[];
362
- policies: ITicketSkillUsageRef[];
363
- }
364
- export interface ITicketSkillWithUsage extends ITicketSkill {
365
- usage: ITicketSkillUsageSummary;
366
- warnings: TicketSkillWarningCode[];
367
- }
368
- export interface ICreateAgentTicketSkillDto {
369
- userId: string;
370
- skillId: string;
371
- proficiency?: number;
372
- priority?: number;
373
- enabled?: boolean;
374
- validFrom?: Date;
375
- validUntil?: Date;
376
- }
377
- export type IUpdateAgentTicketSkillDto = Partial<Omit<ICreateAgentTicketSkillDto, "userId" | "skillId">>;
378
- export interface IAgentChannelCapacityConfig {
379
- id: string;
380
- userId: string;
381
- channelType?: ChannelType;
382
- maximumConcurrent: number;
383
- reservedCapacity?: number;
384
- effectiveCapacity: number;
385
- }
386
- export interface ICreateAgentChannelCapacityDto {
387
- userId: string;
388
- channelType?: ChannelType;
389
- maximumConcurrent: number;
390
- reservedCapacity?: number;
391
- }
392
- export type IUpdateAgentChannelCapacityDto = Partial<Omit<ICreateAgentChannelCapacityDto, "userId" | "channelType">>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TicketSkillWarningCode = exports.TicketAssignmentEndReason = exports.TicketEscalationActionType = exports.TicketEscalationTrigger = exports.TicketSkillRelaxationMode = exports.TicketQueueOrderDirection = exports.TicketQueueOrderCriterion = exports.TicketRoutingConditionGroupOperator = exports.AgentAvailabilityStatus = exports.TicketRoutingStatus = exports.TicketRoutingStrategy = void 0;
3
+ exports.TicketAssignmentEndReason = exports.TicketEscalationActionType = exports.TicketEscalationTrigger = exports.TicketSkillRelaxationMode = exports.TicketQueueOrderDirection = exports.TicketQueueOrderCriterion = exports.TicketRoutingConditionGroupOperator = exports.AgentAvailabilityStatus = exports.TicketRoutingStatus = exports.TicketRoutingStrategy = void 0;
4
4
  var TicketRoutingStrategy;
5
5
  (function (TicketRoutingStrategy) {
6
6
  TicketRoutingStrategy["ROUND_ROBIN"] = "ROUND_ROBIN";
@@ -85,9 +85,3 @@ var TicketAssignmentEndReason;
85
85
  TicketAssignmentEndReason["EXPIRED"] = "EXPIRED";
86
86
  TicketAssignmentEndReason["MANUAL"] = "MANUAL";
87
87
  })(TicketAssignmentEndReason || (exports.TicketAssignmentEndReason = TicketAssignmentEndReason = {}));
88
- var TicketSkillWarningCode;
89
- (function (TicketSkillWarningCode) {
90
- TicketSkillWarningCode["ENABLED_BUT_UNASSIGNED"] = "ENABLED_BUT_UNASSIGNED";
91
- TicketSkillWarningCode["DISABLED_BUT_REFERENCED"] = "DISABLED_BUT_REFERENCED";
92
- TicketSkillWarningCode["REQUIRED_BY_QUEUE_BUT_UNMET"] = "REQUIRED_BY_QUEUE_BUT_UNMET";
93
- })(TicketSkillWarningCode || (exports.TicketSkillWarningCode = TicketSkillWarningCode = {}));
@@ -1,6 +1,4 @@
1
- import { ITicketCursorResponse } from "./Api";
2
1
  import { ITicketAuditedEntity, TicketPropertyValue } from "./Common";
3
- import { TicketFieldType } from "./Fields";
4
2
  import { TicketConditionOperator } from "./Workflow";
5
3
  export declare enum TicketSecurityResourceType {
6
4
  TICKET = "TICKET",
@@ -94,14 +92,6 @@ export declare enum TicketDelegatedAccessStatus {
94
92
  EXPIRED = "EXPIRED",
95
93
  REJECTED = "REJECTED"
96
94
  }
97
- export declare enum TicketLegalHoldReleaseReason {
98
- MATTER_CLOSED = "MATTER_CLOSED",
99
- NO_LONGER_RELEVANT = "NO_LONGER_RELEVANT",
100
- APPLIED_IN_ERROR = "APPLIED_IN_ERROR",
101
- SUPERSEDED = "SUPERSEDED",
102
- OBLIGATION_EXPIRED = "OBLIGATION_EXPIRED",
103
- OTHER = "OTHER"
104
- }
105
95
  export interface ITicketSecuritySubject {
106
96
  /** When every selector is false or empty, the subject matches nobody. */
107
97
  allAuthenticated?: boolean;
@@ -155,71 +145,15 @@ export interface ITicketSecurityPolicy extends ITicketAuditedEntity {
155
145
  fieldPermissions?: ITicketFieldPermission[];
156
146
  validFrom?: Date;
157
147
  validUntil?: Date;
158
- version: number;
159
- }
160
- export interface ICreateTicketSecurityPolicyDto {
161
- name: string;
162
- description?: string;
163
- enabled?: boolean;
164
- priority?: number;
165
- effect: TicketPolicyEffect;
166
- resourceTypes: TicketSecurityResourceType[];
167
- operations: TicketSecurityOperation[];
168
- subjects: ITicketSecuritySubject;
169
- scope?: ITicketSecurityScope;
170
- conditions?: ITicketSecurityConditionGroup;
171
- fieldPermissions?: ITicketFieldPermission[];
172
- validFrom?: Date;
173
- validUntil?: Date;
174
- }
175
- export interface IUpdateTicketSecurityPolicyDto {
176
- expectedVersion: number;
177
- name?: string;
178
- description?: string;
179
- enabled?: boolean;
180
- priority?: number;
181
- effect?: TicketPolicyEffect;
182
- resourceTypes?: TicketSecurityResourceType[];
183
- operations?: TicketSecurityOperation[];
184
- subjects?: ITicketSecuritySubject;
185
- scope?: ITicketSecurityScope;
186
- conditions?: ITicketSecurityConditionGroup;
187
- fieldPermissions?: ITicketFieldPermission[];
188
- validFrom?: Date;
189
- validUntil?: Date;
190
148
  }
191
149
  export interface ITicketFieldSecurityDefinition extends ITicketAuditedEntity {
192
150
  fieldNameKey: string;
193
- label: string;
194
- type: TicketFieldType;
195
- isSystem: boolean;
196
- enabled: boolean;
197
- classification?: TicketDataClassification;
151
+ classification: TicketDataClassification;
198
152
  containsPii: boolean;
199
153
  maskingStrategy: TicketMaskingStrategy;
200
- searchableWhenMasked: boolean;
201
- exportable: boolean;
202
- retentionPolicyId?: string;
203
- readRoleIds?: string[];
204
- writeRoleIds?: string[];
205
- searchable: boolean;
206
- filterable: boolean;
207
- sortable: boolean;
208
- version: number;
209
- }
210
- export interface IUpdateTicketFieldSecurityDefinitionDto {
211
- expectedVersion: number;
212
- classification?: TicketDataClassification;
213
- containsPii?: boolean;
214
- maskingStrategy?: TicketMaskingStrategy;
215
154
  searchableWhenMasked?: boolean;
216
- exportable?: boolean;
155
+ exportable: boolean;
217
156
  retentionPolicyId?: string;
218
- readRoleIds?: string[];
219
- writeRoleIds?: string[];
220
- searchable?: boolean;
221
- filterable?: boolean;
222
- sortable?: boolean;
223
157
  }
224
158
  export interface ITicketSecurityState {
225
159
  sensitivity: TicketSensitivityLevel;
@@ -255,102 +189,6 @@ export interface ITicketRetentionPolicy extends ITicketAuditedEntity {
255
189
  dataClassifications?: TicketDataClassification[];
256
190
  preserveAuditLog: boolean;
257
191
  enabled: boolean;
258
- version: number;
259
- }
260
- export interface ICreateTicketRetentionPolicyDto {
261
- name: string;
262
- description?: string;
263
- retentionDays: number;
264
- action: TicketRetentionAction;
265
- categoryIds?: string[];
266
- dataClassifications?: TicketDataClassification[];
267
- preserveAuditLog?: boolean;
268
- enabled?: boolean;
269
- }
270
- export interface IUpdateTicketRetentionPolicyDto {
271
- expectedVersion: number;
272
- name?: string;
273
- description?: string;
274
- retentionDays?: number;
275
- action?: TicketRetentionAction;
276
- categoryIds?: string[];
277
- dataClassifications?: TicketDataClassification[];
278
- preserveAuditLog?: boolean;
279
- enabled?: boolean;
280
- }
281
- export interface ITicketRetentionUpcomingBucket {
282
- withinDays: number;
283
- count: number;
284
- }
285
- export interface ITicketRetentionAffectedCategory {
286
- categoryId: string;
287
- name: string;
288
- count: number;
289
- }
290
- export interface ITicketRetentionSampleTicket {
291
- ticketId: string;
292
- number: number;
293
- title: string;
294
- categoryId: string;
295
- resolvedAt: Date;
296
- }
297
- export interface ITicketRetentionImpactPreview {
298
- policyId?: string;
299
- action: TicketRetentionAction;
300
- retentionDays: number;
301
- preserveAuditLog: boolean;
302
- irreversible: boolean;
303
- anonymizedFieldNameKeys?: string[];
304
- evaluatedAt: Date;
305
- alreadyReachedCount: number;
306
- onLegalHoldCount: number;
307
- upcoming: ITicketRetentionUpcomingBucket[];
308
- affectedCategories: ITicketRetentionAffectedCategory[];
309
- affectedClassifications: TicketDataClassification[];
310
- samples: ITicketRetentionSampleTicket[];
311
- }
312
- export interface ITicketRetentionValidationIssue {
313
- code: string;
314
- severity: 'ERROR' | 'WARNING';
315
- message: string;
316
- path?: string;
317
- }
318
- export interface ITicketRetentionValidationEntry {
319
- policyId: string;
320
- issues: ITicketRetentionValidationIssue[];
321
- }
322
- export interface IValidateTicketRetentionResponse {
323
- policies: ITicketRetentionValidationEntry[];
324
- }
325
- export interface ITicketFieldSecurityValidationIssue {
326
- code: string;
327
- severity: 'ERROR' | 'WARNING';
328
- message: string;
329
- path?: string;
330
- }
331
- export interface ITicketFieldSecurityValidationEntry {
332
- fieldNameKey: string;
333
- issues: ITicketFieldSecurityValidationIssue[];
334
- }
335
- export interface IValidateTicketFieldSecurityResponse {
336
- fields: ITicketFieldSecurityValidationEntry[];
337
- }
338
- export interface ITicketFieldSecurityPreviewRequest {
339
- roleIds: string[];
340
- }
341
- export interface ITicketFieldSecurityPreviewEntry {
342
- fieldNameKey: string;
343
- label: string;
344
- visible: boolean;
345
- editable: boolean;
346
- masked: boolean;
347
- maskingStrategy?: TicketMaskingStrategy;
348
- searchable: boolean;
349
- exportable: boolean;
350
- }
351
- export interface ITicketFieldSecurityPreviewResponse {
352
- roleIds: string[];
353
- fields: ITicketFieldSecurityPreviewEntry[];
354
192
  }
355
193
  export interface ITicketLegalHold {
356
194
  id: string;
@@ -364,8 +202,6 @@ export interface ITicketLegalHold {
364
202
  releasedAt?: Date;
365
203
  releasedBy?: string;
366
204
  externalMatterId?: string;
367
- releaseReason?: TicketLegalHoldReleaseReason;
368
- releaseNotes?: string;
369
205
  }
370
206
  export interface ITicketAccessAuditEvent {
371
207
  id: string;
@@ -385,57 +221,6 @@ export interface ITicketAccessAuditEvent {
385
221
  allowed: boolean;
386
222
  policyIds?: string[];
387
223
  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;
439
224
  }
440
225
  export interface ITicketImpersonationSession {
441
226
  id: string;
@@ -475,51 +260,15 @@ export interface ITicketAuthorizationRequest {
475
260
  context?: {
476
261
  [key: string]: TicketPropertyValue;
477
262
  };
478
- evaluatedAt?: Date;
479
- subjectContext?: ITicketAuthorizationSubjectContext;
480
- ticketContext?: ITicketAuthorizationTicketContext;
481
- record?: boolean;
482
- purpose?: string;
483
- }
484
- export interface ITicketAuthorizationSubjectContext {
485
- isAgent?: boolean;
486
- isCustomer?: boolean;
487
- roleIds?: string[];
488
- groupIds?: string[];
489
- organizationIds?: string[];
490
- contactSegmentIds?: string[];
491
- }
492
- export interface ITicketAuthorizationTicketContext {
493
- requesterId?: string;
494
- assigneeId?: string;
495
- assignedGroupId?: string;
496
- categoryId?: string;
497
- channelId?: string;
498
- brandId?: string;
499
- organizationId?: string;
500
- sensitivityLevel?: TicketSensitivityLevel;
501
- fields?: {
502
- [nameKey: string]: TicketPropertyValue;
503
- };
504
263
  }
505
264
  export interface ITicketAuthorizationDecision {
506
265
  allowed: boolean;
507
266
  policyIds: string[];
508
- decisivePolicyId?: string;
509
267
  deniedFieldNameKeys?: string[];
510
268
  maskedFieldNameKeys?: string[];
511
269
  reason?: string;
512
270
  evaluatedAt: Date;
513
271
  }
514
- export interface ITicketSecurityPolicyValidationIssue {
515
- code: string;
516
- severity: 'ERROR' | 'WARNING';
517
- message: string;
518
- path?: string;
519
- }
520
- export interface IValidateTicketSecurityPolicyResponse {
521
- issues: ITicketSecurityPolicyValidationIssue[];
522
- }
523
272
  export interface ICreateTicketRedactionRequestDto {
524
273
  expectedVersion: number;
525
274
  fieldNameKeys?: string[];
@@ -535,23 +284,8 @@ export interface ICreateTicketLegalHoldDto {
535
284
  }
536
285
  export interface IReleaseTicketLegalHoldDto {
537
286
  expectedVersion: number;
538
- releaseReason: TicketLegalHoldReleaseReason;
539
- releaseNotes?: string;
540
- }
541
- export interface ITicketSuspendedRetentionPolicy {
542
- id: string;
543
- name: string;
544
- action: TicketRetentionAction;
545
- retentionDays: number;
546
- }
547
- export interface ITicketLegalHoldsResponse {
548
- onHold: boolean;
549
- holds: ITicketLegalHold[];
550
- suspendedPolicies: ITicketSuspendedRetentionPolicy[];
551
- }
552
- export interface ITicketLegalHoldListEntry extends ITicketLegalHold {
553
- ticketNumber: number;
554
- ticketTitle: string;
287
+ legalHoldId: string;
288
+ reason: string;
555
289
  }
556
290
  export interface ICreateTicketDelegatedAccessDto {
557
291
  delegateId: string;
@@ -566,4 +300,3 @@ export interface IStartTicketImpersonationDto {
566
300
  reason: string;
567
301
  expiresAt: Date;
568
302
  }
569
- export type TicketAccessAuditPage = ITicketCursorResponse<ITicketAccessAuditEvent>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TicketLegalHoldReleaseReason = exports.TicketDelegatedAccessStatus = exports.TicketAccessAuditAction = exports.TicketLegalHoldStatus = exports.TicketRetentionAction = exports.TicketRedactionStatus = exports.TicketMaskingStrategy = exports.TicketDataClassification = exports.TicketSensitivityLevel = exports.TicketPolicyConditionGroupOperator = exports.TicketPolicyEffect = exports.TicketSecurityOperation = exports.TicketSecurityResourceType = void 0;
3
+ exports.TicketDelegatedAccessStatus = exports.TicketAccessAuditAction = exports.TicketLegalHoldStatus = exports.TicketRetentionAction = exports.TicketRedactionStatus = exports.TicketMaskingStrategy = exports.TicketDataClassification = exports.TicketSensitivityLevel = exports.TicketPolicyConditionGroupOperator = exports.TicketPolicyEffect = exports.TicketSecurityOperation = exports.TicketSecurityResourceType = void 0;
4
4
  var TicketSecurityResourceType;
5
5
  (function (TicketSecurityResourceType) {
6
6
  TicketSecurityResourceType["TICKET"] = "TICKET";
@@ -105,12 +105,3 @@ var TicketDelegatedAccessStatus;
105
105
  TicketDelegatedAccessStatus["EXPIRED"] = "EXPIRED";
106
106
  TicketDelegatedAccessStatus["REJECTED"] = "REJECTED";
107
107
  })(TicketDelegatedAccessStatus || (exports.TicketDelegatedAccessStatus = TicketDelegatedAccessStatus = {}));
108
- var TicketLegalHoldReleaseReason;
109
- (function (TicketLegalHoldReleaseReason) {
110
- TicketLegalHoldReleaseReason["MATTER_CLOSED"] = "MATTER_CLOSED";
111
- TicketLegalHoldReleaseReason["NO_LONGER_RELEVANT"] = "NO_LONGER_RELEVANT";
112
- TicketLegalHoldReleaseReason["APPLIED_IN_ERROR"] = "APPLIED_IN_ERROR";
113
- TicketLegalHoldReleaseReason["SUPERSEDED"] = "SUPERSEDED";
114
- TicketLegalHoldReleaseReason["OBLIGATION_EXPIRED"] = "OBLIGATION_EXPIRED";
115
- TicketLegalHoldReleaseReason["OTHER"] = "OTHER";
116
- })(TicketLegalHoldReleaseReason || (exports.TicketLegalHoldReleaseReason = TicketLegalHoldReleaseReason = {}));