@trii/types 2.10.729 → 2.10.730

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 (144) hide show
  1. package/dist/Automations/Events/Event.d.ts +3 -3
  2. package/dist/Contacts/CommunicationEndpoint.d.ts +8 -8
  3. package/dist/Conversations/Conversation.d.ts +8 -8
  4. package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  5. package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
  6. package/dist/Conversations/InboxCounters.d.ts +18 -0
  7. package/dist/Conversations/InboxMongo.d.ts +12 -12
  8. package/dist/Conversations/Routing.d.ts +10 -10
  9. package/dist/Events/DomainEventTypes.d.ts +23 -23
  10. package/dist/Tickets/Common.d.ts +62 -0
  11. package/dist/Tickets/CustomerNotification.d.ts +192 -0
  12. package/dist/Tickets/CustomerNotification.js +54 -0
  13. package/dist/Tickets/Notes.d.ts +13 -0
  14. package/dist/Tickets/Notes.js +10 -0
  15. package/dist/Tickets/QuickResponse.d.ts +64 -0
  16. package/dist/Tickets/QuickResponse.js +41 -0
  17. package/dist/Tickets/Task.d.ts +11 -0
  18. package/dist/Tickets/Ticket.d.ts +2 -0
  19. package/dist/Tickets/index.d.ts +3 -0
  20. package/dist/Tickets/index.js +3 -0
  21. package/dist/src/Common/Channels/Channel.d.ts +1 -28
  22. package/dist/src/Common/Channels/Email.d.ts +0 -1
  23. package/dist/src/Common/Channels/Facebook.d.ts +0 -1
  24. package/dist/src/Common/Channels/Form.d.ts +0 -1
  25. package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -1
  26. package/dist/src/Common/Channels/Instagram.d.ts +0 -1
  27. package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -1
  28. package/dist/src/Common/Channels/WebChat.d.ts +0 -1
  29. package/dist/src/Contacts/contacts.d.ts +2 -2
  30. package/dist/src/Contacts/index.d.ts +0 -2
  31. package/dist/src/Contacts/index.js +0 -2
  32. package/dist/src/Conversations/Conversation.d.ts +48 -410
  33. package/dist/src/Conversations/Conversation.js +34 -14
  34. package/dist/src/Conversations/DashBoard/dashboard.d.ts +2 -2
  35. package/dist/src/Conversations/DashBoard/dashboardForms.d.ts +44 -0
  36. package/dist/src/Conversations/DashBoard/dashboardForms.js +24 -0
  37. package/dist/src/Conversations/Flows/Workflows/Workflow.d.ts +123 -280
  38. package/dist/src/Conversations/Flows/Workflows/Workflow.js +35 -85
  39. package/dist/src/Conversations/Groups/Group.d.ts +8 -2
  40. package/dist/src/Conversations/Groups/Group.js +6 -0
  41. package/dist/src/Conversations/Label.d.ts +1 -1
  42. package/dist/src/Conversations/WebHook.d.ts +1 -1
  43. package/dist/src/Conversations/index.d.ts +1 -9
  44. package/dist/src/Conversations/index.js +1 -9
  45. package/dist/src/PublicAPI/apiKey.d.ts +3 -92
  46. package/dist/src/PublicAPI/apiKey.js +0 -27
  47. package/dist/src/Tickets/AI.d.ts +2 -50
  48. package/dist/src/Tickets/AdvancedApi.d.ts +2 -142
  49. package/dist/src/Tickets/AdvancedApi.js +1 -28
  50. package/dist/src/Tickets/Approval.d.ts +4 -20
  51. package/dist/src/Tickets/Automation.d.ts +2 -46
  52. package/dist/src/Tickets/Category.d.ts +0 -18
  53. package/dist/src/Tickets/Dashboard.d.ts +0 -78
  54. package/dist/src/Tickets/Dashboard.js +1 -13
  55. package/dist/src/Tickets/Fields.d.ts +0 -4
  56. package/dist/src/Tickets/Layouts.d.ts +1 -3
  57. package/dist/src/Tickets/Routing.d.ts +3 -105
  58. package/dist/src/Tickets/Routing.js +1 -7
  59. package/dist/src/Tickets/Security.d.ts +4 -271
  60. package/dist/src/Tickets/Security.js +1 -10
  61. package/dist/src/Tickets/SelfService.d.ts +0 -190
  62. package/dist/src/Tickets/Sla.d.ts +0 -140
  63. package/dist/src/Tickets/Workflow.d.ts +0 -20
  64. package/dist/src/Users/UserTrii.d.ts +0 -10
  65. package/dist/src/Users/UserTrii.js +1 -8
  66. package/dist/src/index.d.ts +0 -4
  67. package/dist/src/index.js +1 -5
  68. package/package.json +12 -12
  69. package/dist/src/Automations/Capabilities/Capability.d.ts +0 -81
  70. package/dist/src/Automations/Capabilities/Capability.js +0 -23
  71. package/dist/src/Automations/Capabilities/index.d.ts +0 -1
  72. package/dist/src/Automations/Capabilities/index.js +0 -17
  73. package/dist/src/Automations/Common.d.ts +0 -94
  74. package/dist/src/Automations/Common.js +0 -40
  75. package/dist/src/Automations/Events/Event.d.ts +0 -96
  76. package/dist/src/Automations/Events/Event.js +0 -19
  77. package/dist/src/Automations/Events/index.d.ts +0 -1
  78. package/dist/src/Automations/Events/index.js +0 -17
  79. package/dist/src/Automations/Executions/Execution.d.ts +0 -298
  80. package/dist/src/Automations/Executions/Execution.js +0 -76
  81. package/dist/src/Automations/Executions/Testing.d.ts +0 -166
  82. package/dist/src/Automations/Executions/Testing.js +0 -54
  83. package/dist/src/Automations/Executions/index.d.ts +0 -2
  84. package/dist/src/Automations/Executions/index.js +0 -18
  85. package/dist/src/Automations/Flows/Canvas.d.ts +0 -109
  86. package/dist/src/Automations/Flows/Canvas.js +0 -43
  87. package/dist/src/Automations/Flows/Flow.d.ts +0 -154
  88. package/dist/src/Automations/Flows/Flow.js +0 -58
  89. package/dist/src/Automations/Flows/Requests.d.ts +0 -71
  90. package/dist/src/Automations/Flows/Validation.d.ts +0 -28
  91. package/dist/src/Automations/Flows/Validation.js +0 -9
  92. package/dist/src/Automations/Flows/index.d.ts +0 -4
  93. package/dist/src/Automations/Flows/index.js +0 -20
  94. package/dist/src/Automations/Nodes/Node.d.ts +0 -116
  95. package/dist/src/Automations/Nodes/Node.js +0 -27
  96. package/dist/src/Automations/Nodes/index.d.ts +0 -1
  97. package/dist/src/Automations/Nodes/index.js +0 -17
  98. package/dist/src/Automations/Triggers/Trigger.d.ts +0 -112
  99. package/dist/src/Automations/Triggers/Trigger.js +0 -66
  100. package/dist/src/Automations/Triggers/index.d.ts +0 -1
  101. package/dist/src/Automations/Triggers/index.js +0 -17
  102. package/dist/src/Automations/index.d.ts +0 -7
  103. package/dist/src/Automations/index.js +0 -23
  104. package/dist/src/Chats/Chat.d.ts +0 -61
  105. package/dist/src/Chats/Chat.js +0 -28
  106. package/dist/src/Contacts/CommunicationEndpoint.d.ts +0 -107
  107. package/dist/src/Contacts/CommunicationEndpoint.js +0 -39
  108. package/dist/src/Contacts/CommunicationMethod.d.ts +0 -9
  109. package/dist/src/Contacts/CommunicationMethod.js +0 -2
  110. package/dist/src/Conversations/Assignment.d.ts +0 -181
  111. package/dist/src/Conversations/Assignment.js +0 -4
  112. package/dist/src/Conversations/InboxMongo.d.ts +0 -154
  113. package/dist/src/Conversations/InboxMongo.js +0 -128
  114. package/dist/src/Conversations/InboxProjection.d.ts +0 -162
  115. package/dist/src/Conversations/InboxProjection.js +0 -2
  116. package/dist/src/Conversations/Outbox.d.ts +0 -24
  117. package/dist/src/Conversations/Outbox.js +0 -4
  118. package/dist/src/Conversations/Queue.d.ts +0 -107
  119. package/dist/src/Conversations/Queue.js +0 -4
  120. package/dist/src/Conversations/Routing.d.ts +0 -164
  121. package/dist/src/Conversations/Routing.js +0 -2
  122. package/dist/src/Conversations/Sla.d.ts +0 -227
  123. package/dist/src/Conversations/Sla.js +0 -6
  124. package/dist/src/Conversations/Transfer.d.ts +0 -73
  125. package/dist/src/Conversations/Transfer.js +0 -2
  126. package/dist/src/Events/DomainEventTypes.d.ts +0 -51
  127. package/dist/src/Events/DomainEventTypes.js +0 -49
  128. package/dist/src/Events/index.d.ts +0 -1
  129. package/dist/src/Events/index.js +0 -17
  130. package/dist/src/Forms/API.d.ts +0 -53
  131. package/dist/src/Forms/API.js +0 -2
  132. package/dist/src/Forms/SubmittedForm.d.ts +0 -56
  133. package/dist/src/Forms/SubmittedForm.js +0 -9
  134. package/dist/src/Forms/index.d.ts +0 -2
  135. package/dist/src/Forms/index.js +0 -18
  136. package/dist/src/Presence/AgentPause.d.ts +0 -24
  137. package/dist/src/Presence/AgentPause.js +0 -19
  138. package/dist/src/Presence/QueueParticipation.d.ts +0 -17
  139. package/dist/src/Presence/QueueParticipation.js +0 -2
  140. package/dist/src/Presence/QueueRoutingState.d.ts +0 -27
  141. package/dist/src/Presence/QueueRoutingState.js +0 -9
  142. package/dist/src/Presence/index.d.ts +0 -3
  143. package/dist/src/Presence/index.js +0 -19
  144. /package/dist/{src/Automations/Flows/Requests.js → Conversations/InboxCounters.js} +0 -0
@@ -1,101 +1,12 @@
1
- export interface CreateApiKeyResponseDto {
2
- apiKey: ApiKey;
3
- /**
4
- * Credential returned only once, immediately after creation.
5
- * It cannot be retrieved again later.
6
- */
7
- credential: string;
8
- }
9
1
  export interface ApiKey {
10
2
  id: string;
11
3
  spaceId: string;
12
4
  name: string;
13
- status: ApiKeyStatus;
14
5
  privileges: ApiPrivilege;
15
- security?: ApiKeySecurityPolicy;
16
- /**
17
- * Prefix used to identify the API key without exposing the secret.
18
- */
19
- keyPrefix: string;
20
- createdBy: string;
6
+ createdBy: Date;
21
7
  createdAt: Date;
22
- updatedBy?: string;
23
- updatedAt?: Date;
24
- lastUsedAt?: Date;
25
- lastUsedIp?: string;
26
8
  }
27
- export type ApiKeyStatus = "active" | "disabled" | "revoked";
28
9
  export interface ApiPrivilege {
29
- /** @deprecated Replaced by scopes. */
30
- Messages?: boolean;
31
- /** @deprecated Replaced by scopes. */
32
- Contacts?: boolean;
33
- /**
34
- * Permissions granted to the API key.
35
- *
36
- * Examples:
37
- * - contacts.read
38
- * - contacts.write
39
- * - messages.read
40
- * - messages.send
41
- */
42
- scopes: ApiScope[];
43
- /**
44
- * Optional restrictions applied to this API key.
45
- *
46
- * Restrictions limit which resources can be accessed,
47
- * independently of the granted scopes.
48
- */
49
- restrictions?: ApiResourceRestrictions;
50
- }
51
- export interface ApiKeySecurityPolicy {
52
- /**
53
- * Allowed IPv4/IPv6 addresses or CIDR ranges.
54
- */
55
- allowedIpAddresses?: string[];
56
- /**
57
- * Optional expiration date.
58
- */
59
- expiresAt?: Date;
60
- }
61
- export type ApiScope = (typeof API_SCOPES)[keyof typeof API_SCOPES];
62
- export declare const API_SCOPES: {
63
- readonly CONTACTS_READ: "contacts.read";
64
- readonly CONTACTS_WRITE: "contacts.write";
65
- readonly COMPANIES_READ: "companies.read";
66
- readonly COMPANIES_WRITE: "companies.write";
67
- readonly CONVERSATIONS_READ: "conversations.read";
68
- readonly CONVERSATIONS_WRITE: "conversations.write";
69
- readonly MESSAGES_READ: "messages.read";
70
- readonly MESSAGES_SEND: "messages.send";
71
- readonly TICKETS_READ: "tickets.read";
72
- readonly TICKETS_WRITE: "tickets.write";
73
- readonly TASKS_READ: "tasks.read";
74
- readonly TASKS_WRITE: "tasks.write";
75
- readonly CALENDAR_READ: "calendar.read";
76
- readonly CALENDAR_WRITE: "calendar.write";
77
- readonly FILES_READ: "files.read";
78
- readonly FILES_WRITE: "files.write";
79
- readonly CALLS_READ: "calls.read";
80
- readonly CALLS_MAKE: "calls.make";
81
- readonly WEBHOOKS_READ: "webhooks.read";
82
- readonly WEBHOOKS_WRITE: "webhooks.write";
83
- readonly USERS_READ: "users.read";
84
- readonly FLOWS_READ: "flows.read";
85
- readonly FLOWS_EXECUTE: "flows.execute";
86
- readonly REPORTS_READ: "reports.read";
87
- };
88
- export interface ApiResourceRestrictions {
89
- /**
90
- * Restrict access to specific communication channels.
91
- */
92
- channelIds?: string[];
93
- /**
94
- * Restrict access to specific teams/groups.
95
- */
96
- teamIds?: string[];
97
- /**
98
- * Restrict access to specific users/agents.
99
- */
100
- userIds?: string[];
10
+ Messages: boolean;
11
+ Contacts: boolean;
101
12
  }
@@ -1,29 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.API_SCOPES = void 0;
4
- exports.API_SCOPES = {
5
- CONTACTS_READ: "contacts.read",
6
- CONTACTS_WRITE: "contacts.write",
7
- COMPANIES_READ: "companies.read",
8
- COMPANIES_WRITE: "companies.write",
9
- CONVERSATIONS_READ: "conversations.read",
10
- CONVERSATIONS_WRITE: "conversations.write",
11
- MESSAGES_READ: "messages.read",
12
- MESSAGES_SEND: "messages.send",
13
- TICKETS_READ: "tickets.read",
14
- TICKETS_WRITE: "tickets.write",
15
- TASKS_READ: "tasks.read",
16
- TASKS_WRITE: "tasks.write",
17
- CALENDAR_READ: "calendar.read",
18
- CALENDAR_WRITE: "calendar.write",
19
- FILES_READ: "files.read",
20
- FILES_WRITE: "files.write",
21
- CALLS_READ: "calls.read",
22
- CALLS_MAKE: "calls.make",
23
- WEBHOOKS_READ: "webhooks.read",
24
- WEBHOOKS_WRITE: "webhooks.write",
25
- USERS_READ: "users.read",
26
- FLOWS_READ: "flows.read",
27
- FLOWS_EXECUTE: "flows.execute",
28
- REPORTS_READ: "reports.read",
29
- };
@@ -1,4 +1,4 @@
1
- import { ITicketAuditedEntity, ITicketProperty, TicketPropertyValue } from "./Common";
1
+ import { ITicketProperty, TicketPropertyValue } from "./Common";
2
2
  import { TicketMetricCode } from "./Dashboard";
3
3
  import { TicketSecurityOperation } from "./Security";
4
4
  /** Identifies the native AI experiences that Tickets can request from the central AI module. */
@@ -105,7 +105,6 @@ export declare enum TicketAIContextScope {
105
105
  }
106
106
  /** Configuration exposed by Tickets so UI and Flow know which AI experiences are available and permitted. */
107
107
  export interface ITicketAICapabilityDefinition {
108
- spaceId: string;
109
108
  code: TicketAICapability;
110
109
  name: string;
111
110
  description: string;
@@ -118,24 +117,9 @@ export interface ITicketAICapabilityDefinition {
118
117
  promptTemplateId?: string;
119
118
  minimumConfidence?: number;
120
119
  requireHumanApproval: boolean;
121
- createdAt?: Date;
122
- createdBy?: string;
123
- updatedAt?: Date;
124
- updatedBy?: string;
125
- }
126
- export interface IUpdateTicketAICapabilityDto {
127
- enabled: boolean;
128
- allowedRoleIds?: string[];
129
- requiredOperations?: TicketSecurityOperation[];
130
- contextScopes: TicketAIContextScope[];
131
- providerId?: string;
132
- modelId?: string;
133
- promptTemplateId?: string;
134
- minimumConfidence?: number;
135
- requireHumanApproval: boolean;
136
120
  }
137
121
  /** Per-tenant policy enforced before any ticket context is sent to a model. */
138
- export interface ITicketAIPolicy extends ITicketAuditedEntity {
122
+ export interface ITicketAIPolicy {
139
123
  id: string;
140
124
  spaceId: string;
141
125
  name: string;
@@ -157,38 +141,6 @@ export interface ITicketAIPolicy extends ITicketAuditedEntity {
157
141
  updatedAt?: Date;
158
142
  updatedBy?: string;
159
143
  }
160
- export interface ICreateTicketAIPolicyDto {
161
- name: string;
162
- enabled?: boolean;
163
- allowedCapabilities: TicketAICapability[];
164
- allowedContextScopes: TicketAIContextScope[];
165
- excludedFieldNameKeys?: string[];
166
- allowPii: boolean;
167
- allowSensitivePii: boolean;
168
- redactBeforeInference: boolean;
169
- retainInputs: boolean;
170
- retainOutputs: boolean;
171
- retentionDays?: number;
172
- maximumTokensPerRequest?: number;
173
- maximumCostPerRequest?: number;
174
- requireSourceCitations?: boolean;
175
- }
176
- export interface IUpdateTicketAIPolicyDto {
177
- name?: string;
178
- enabled?: boolean;
179
- allowedCapabilities?: TicketAICapability[];
180
- allowedContextScopes?: TicketAIContextScope[];
181
- excludedFieldNameKeys?: string[];
182
- allowPii?: boolean;
183
- allowSensitivePii?: boolean;
184
- redactBeforeInference?: boolean;
185
- retainInputs?: boolean;
186
- retainOutputs?: boolean;
187
- retentionDays?: number;
188
- maximumTokensPerRequest?: number;
189
- maximumCostPerRequest?: number;
190
- requireSourceCitations?: boolean;
191
- }
192
144
  /** Request issued by an agent-facing UI for summaries, replies, rewrites or recommendations. */
193
145
  export interface ICreateTicketAIAssistanceDto {
194
146
  ticketId: string;
@@ -1,5 +1,5 @@
1
1
  import { MessageVisibility } from "../Common/Messages/Message";
2
- import { ITicketAttachment, ITicketAuditedEntity, ITicketProperty, TicketPriority, TicketPropertyValue } from "./Common";
2
+ import { ITicketAttachment, ITicketProperty, TicketPriority, TicketPropertyValue } from "./Common";
3
3
  import { ITicketFilter, ITicketCursorRequest, ITicketCursorResponse } from "./Api";
4
4
  import { ITicketTimelineEntry } from "./Conversation";
5
5
  import { ISlaMetricCycle } from "./Sla";
@@ -97,72 +97,6 @@ export interface IDeleteTicketAttachmentDto {
97
97
  reason?: string;
98
98
  }
99
99
  export type TicketAttachmentPage = ITicketCursorResponse<ITicketAttachment>;
100
- export declare enum TicketAttachmentTypeMode {
101
- RECOMMENDED = "RECOMMENDED",
102
- ALL = "ALL",
103
- CUSTOM = "CUSTOM"
104
- }
105
- export declare enum TicketAttachmentDownloadMode {
106
- AUTHENTICATED = "AUTHENTICATED",
107
- TEMPORARY_LINK = "TEMPORARY_LINK"
108
- }
109
- export declare enum TicketSuspiciousFileAction {
110
- BLOCK = "BLOCK",
111
- QUARANTINE = "QUARANTINE"
112
- }
113
- /** An allowed file type: the declared extension paired with the MIME type it must carry. */
114
- export interface ITicketAttachmentFileType {
115
- extension: string;
116
- mimeType: string;
117
- }
118
- /** Editable half of the attachment policy: what the PUT replaces and the space persists. */
119
- export interface ITicketAttachmentPolicyValues {
120
- agentUploadEnabled: boolean;
121
- customerUploadEnabled: boolean;
122
- typeMode: TicketAttachmentTypeMode;
123
- /** Only read in CUSTOM mode; the other modes resolve their list elsewhere. */
124
- allowedTypes: ITicketAttachmentFileType[];
125
- maxFileSizeBytes: number;
126
- maxFilesPerTicket: number;
127
- /** null means no per-ticket total cap; nullable rather than optional because "no cap" is a choice. */
128
- maxTotalSizeBytes: number | null;
129
- downloadMode: TicketAttachmentDownloadMode;
130
- /** Only applies to TEMPORARY_LINK downloads. */
131
- temporaryLinkExpirationHours: number;
132
- }
133
- /** Ceilings a space cannot exceed; imposed by the upload path, not by storage. */
134
- export interface ITicketAttachmentPolicyLimits {
135
- maxFileSizeBytes: number;
136
- maxFilesPerTicket: number;
137
- maxTotalSizeBytes: number;
138
- temporaryLinkExpirationHours: number;
139
- }
140
- /** File security applied by the platform; reported by the read model, not configurable per space. */
141
- export interface ITicketAttachmentSecurityInfo {
142
- checksumEnabled: boolean;
143
- malwareScanEnabled: boolean;
144
- suspiciousFileAction: TicketSuspiciousFileAction;
145
- }
146
- /** Space-level attachment policy; read model returns effective values plus what the platform imposes. */
147
- export interface ITicketAttachmentPolicy extends ITicketAttachmentPolicyValues {
148
- spaceId: string;
149
- /** Executables the system always rejects; shown to the administrator, never editable. */
150
- blockedExtensions: string[];
151
- limits: ITicketAttachmentPolicyLimits;
152
- security: ITicketAttachmentSecurityInfo;
153
- /** Factory values, and the list that resolves the RECOMMENDED mode. */
154
- recommended: ITicketAttachmentPolicyValues;
155
- /** 0 means the space never saved and runs on the recommended values. */
156
- version: number;
157
- createdAt?: Date;
158
- createdBy?: string;
159
- updatedAt?: Date;
160
- updatedBy?: string;
161
- }
162
- /** Replaces the whole attachment policy; expectedVersion guards against concurrent edits. */
163
- export interface IUpdateTicketAttachmentPolicyDto extends ITicketAttachmentPolicyValues {
164
- expectedVersion: number;
165
- }
166
100
  export declare enum TicketRelationType {
167
101
  PARENT = "PARENT",
168
102
  CHILD = "CHILD",
@@ -232,66 +166,6 @@ export interface ISplitTicketResult {
232
166
  createdTicketId: string;
233
167
  relationId: string;
234
168
  }
235
- export declare enum TicketPeriodPreset {
236
- LAST_24_HOURS = "LAST_24_HOURS",
237
- LAST_7_DAYS = "LAST_7_DAYS",
238
- LAST_30_DAYS = "LAST_30_DAYS"
239
- }
240
- export declare enum TicketMergeConfirmationLevel {
241
- CONFIRM = "CONFIRM",
242
- SUPERVISOR = "SUPERVISOR"
243
- }
244
- /** Ticket fields compared by duplicate detection, expressed with the fieldNameKey convention. */
245
- export type TicketDuplicateMatchField = "title" | "description" | "contactId" | "categoryId";
246
- /** Space-level configuration for ticket relations and duplicate detection; read model returns effective values. */
247
- export interface ITicketRelationSettings {
248
- spaceId: string;
249
- relationsEnabled: boolean;
250
- suggestDuplicates: boolean;
251
- matchFields: string[];
252
- searchPeriod: TicketPeriodPreset;
253
- excludedStatusIds: string[];
254
- minimumScore: number;
255
- copyMessages: boolean;
256
- copyAttachments: boolean;
257
- closeSourceTickets: boolean;
258
- mergeConfirmation: TicketMergeConfirmationLevel;
259
- warningMessage?: string;
260
- version: number;
261
- createdAt?: Date;
262
- createdBy?: string;
263
- updatedAt?: Date;
264
- updatedBy?: string;
265
- }
266
- /** Replaces the whole relation settings record; omitted optional values are cleared. */
267
- export interface IUpdateTicketRelationSettingsDto {
268
- expectedVersion: number;
269
- relationsEnabled: boolean;
270
- suggestDuplicates: boolean;
271
- matchFields: TicketDuplicateMatchField[];
272
- searchPeriod: TicketPeriodPreset;
273
- excludedStatusIds: string[];
274
- minimumScore: number;
275
- copyMessages: boolean;
276
- copyAttachments: boolean;
277
- closeSourceTickets: boolean;
278
- mergeConfirmation: TicketMergeConfirmationLevel;
279
- warningMessage?: string;
280
- }
281
- /** Updates only the provided relation settings; omitted fields keep their stored value. */
282
- export interface IPatchTicketRelationSettingsDto {
283
- relationsEnabled?: boolean;
284
- suggestDuplicates?: boolean;
285
- matchFields?: TicketDuplicateMatchField[];
286
- searchPeriod?: TicketPeriodPreset;
287
- excludedStatusIds?: string[];
288
- minimumScore?: number;
289
- copyMessages?: boolean;
290
- copyAttachments?: boolean;
291
- closeSourceTickets?: boolean;
292
- mergeConfirmation?: TicketMergeConfirmationLevel;
293
- warningMessage?: string | null;
294
- }
295
169
  export declare enum TicketFollowerRole {
296
170
  FOLLOWER = "FOLLOWER",
297
171
  COLLABORATOR = "COLLABORATOR",
@@ -373,7 +247,7 @@ export type ITicketMacroAction = {
373
247
  type: TicketMacroActionType.ENQUEUE;
374
248
  queueId: string;
375
249
  };
376
- export interface ITicketMacro extends ITicketAuditedEntity {
250
+ export interface ITicketMacro {
377
251
  id: string;
378
252
  spaceId: string;
379
253
  name: string;
@@ -395,20 +269,6 @@ export interface IApplyTicketMacroDto {
395
269
  };
396
270
  idempotencyKey: string;
397
271
  }
398
- export interface ICreateTicketMacroDto {
399
- name: string;
400
- description?: string;
401
- actions: ITicketMacroAction[];
402
- allowedRoleIds?: string[];
403
- enabled?: boolean;
404
- }
405
- export interface IUpdateTicketMacroDto {
406
- name?: string;
407
- description?: string;
408
- actions?: ITicketMacroAction[];
409
- allowedRoleIds?: string[];
410
- enabled?: boolean;
411
- }
412
272
  export declare enum TicketBulkOperationType {
413
273
  UPDATE = "UPDATE",
414
274
  ASSIGN = "ASSIGN",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TicketWebhookAuthType = exports.TicketSubscriptionEvent = exports.TicketExportFormat = exports.TicketJobStatus = exports.TicketBulkOperationType = exports.TicketMacroActionType = exports.TicketFollowerRole = exports.TicketMergeConfirmationLevel = exports.TicketPeriodPreset = exports.TicketRelationType = exports.TicketSuspiciousFileAction = exports.TicketAttachmentDownloadMode = exports.TicketAttachmentTypeMode = exports.TicketApiErrorCode = exports.TicketExpand = void 0;
3
+ exports.TicketWebhookAuthType = exports.TicketSubscriptionEvent = exports.TicketExportFormat = exports.TicketJobStatus = exports.TicketBulkOperationType = exports.TicketMacroActionType = exports.TicketFollowerRole = exports.TicketRelationType = exports.TicketApiErrorCode = exports.TicketExpand = void 0;
4
4
  var TicketExpand;
5
5
  (function (TicketExpand) {
6
6
  TicketExpand["CONTACT"] = "CONTACT";
@@ -26,22 +26,6 @@ var TicketApiErrorCode;
26
26
  TicketApiErrorCode["SLA_CONFIGURATION_ERROR"] = "SLA_CONFIGURATION_ERROR";
27
27
  TicketApiErrorCode["BULK_PARTIAL_FAILURE"] = "BULK_PARTIAL_FAILURE";
28
28
  })(TicketApiErrorCode || (exports.TicketApiErrorCode = TicketApiErrorCode = {}));
29
- var TicketAttachmentTypeMode;
30
- (function (TicketAttachmentTypeMode) {
31
- TicketAttachmentTypeMode["RECOMMENDED"] = "RECOMMENDED";
32
- TicketAttachmentTypeMode["ALL"] = "ALL";
33
- TicketAttachmentTypeMode["CUSTOM"] = "CUSTOM";
34
- })(TicketAttachmentTypeMode || (exports.TicketAttachmentTypeMode = TicketAttachmentTypeMode = {}));
35
- var TicketAttachmentDownloadMode;
36
- (function (TicketAttachmentDownloadMode) {
37
- TicketAttachmentDownloadMode["AUTHENTICATED"] = "AUTHENTICATED";
38
- TicketAttachmentDownloadMode["TEMPORARY_LINK"] = "TEMPORARY_LINK";
39
- })(TicketAttachmentDownloadMode || (exports.TicketAttachmentDownloadMode = TicketAttachmentDownloadMode = {}));
40
- var TicketSuspiciousFileAction;
41
- (function (TicketSuspiciousFileAction) {
42
- TicketSuspiciousFileAction["BLOCK"] = "BLOCK";
43
- TicketSuspiciousFileAction["QUARANTINE"] = "QUARANTINE";
44
- })(TicketSuspiciousFileAction || (exports.TicketSuspiciousFileAction = TicketSuspiciousFileAction = {}));
45
29
  var TicketRelationType;
46
30
  (function (TicketRelationType) {
47
31
  TicketRelationType["PARENT"] = "PARENT";
@@ -55,17 +39,6 @@ var TicketRelationType;
55
39
  TicketRelationType["HAS_INCIDENT"] = "HAS_INCIDENT";
56
40
  TicketRelationType["PROBLEM_OF"] = "PROBLEM_OF";
57
41
  })(TicketRelationType || (exports.TicketRelationType = TicketRelationType = {}));
58
- var TicketPeriodPreset;
59
- (function (TicketPeriodPreset) {
60
- TicketPeriodPreset["LAST_24_HOURS"] = "LAST_24_HOURS";
61
- TicketPeriodPreset["LAST_7_DAYS"] = "LAST_7_DAYS";
62
- TicketPeriodPreset["LAST_30_DAYS"] = "LAST_30_DAYS";
63
- })(TicketPeriodPreset || (exports.TicketPeriodPreset = TicketPeriodPreset = {}));
64
- var TicketMergeConfirmationLevel;
65
- (function (TicketMergeConfirmationLevel) {
66
- TicketMergeConfirmationLevel["CONFIRM"] = "CONFIRM";
67
- TicketMergeConfirmationLevel["SUPERVISOR"] = "SUPERVISOR";
68
- })(TicketMergeConfirmationLevel || (exports.TicketMergeConfirmationLevel = TicketMergeConfirmationLevel = {}));
69
42
  var TicketFollowerRole;
70
43
  (function (TicketFollowerRole) {
71
44
  TicketFollowerRole["FOLLOWER"] = "FOLLOWER";
@@ -1,4 +1,4 @@
1
- import { ITicketAuditedEntity } from "./Common";
1
+ import { ITicketAuditedEntity } from './Common';
2
2
  export declare enum TicketApprovalMode {
3
3
  SEQUENTIAL = "SEQUENTIAL",
4
4
  PARALLEL = "PARALLEL"
@@ -29,13 +29,13 @@ export interface ITicketApprovalQuorum {
29
29
  rejectOnAnyRejection?: boolean;
30
30
  }
31
31
  export type ITicketApprover = {
32
- type: "USER";
32
+ type: 'USER';
33
33
  userId: string;
34
34
  } | {
35
- type: "GROUP";
35
+ type: 'GROUP';
36
36
  groupId: string;
37
37
  } | {
38
- type: "ROLE";
38
+ type: 'ROLE';
39
39
  roleId: string;
40
40
  };
41
41
  export interface ITicketApprovalStepDefinition {
@@ -56,22 +56,6 @@ export interface ITicketApprovalProcessDefinition extends ITicketAuditedEntity {
56
56
  steps: ITicketApprovalStepDefinition[];
57
57
  enabled: boolean;
58
58
  }
59
- export interface ICreateTicketApprovalProcessDefinitionDto {
60
- name: string;
61
- description?: string;
62
- categoryIds?: string[];
63
- mode: TicketApprovalMode;
64
- steps: ITicketApprovalStepDefinition[];
65
- enabled: boolean;
66
- }
67
- export interface IUpdateTicketApprovalProcessDefinitionDto {
68
- name?: string;
69
- description?: string | null;
70
- categoryIds?: string[] | null;
71
- mode?: TicketApprovalMode;
72
- steps?: ITicketApprovalStepDefinition[];
73
- enabled?: boolean;
74
- }
75
59
  export interface ITicketApprovalStep extends ITicketApprovalStepDefinition {
76
60
  status: TicketApprovalStatus;
77
61
  startedAt?: Date;
@@ -1,4 +1,4 @@
1
- import { ITicketAuditedEntity, TicketPropertyValue } from "./Common";
1
+ import { TicketPropertyValue } from "./Common";
2
2
  import { TicketSecurityOperation } from "./Security";
3
3
  /** Events published by Tickets that may start or resume a Flow execution. */
4
4
  export declare enum TicketAutomationTrigger {
@@ -196,7 +196,6 @@ export interface ITicketAutomationActionExecution {
196
196
  result?: ITicketAutomationActionResult;
197
197
  }
198
198
  /** Tenant safety limits enforced by Tickets before accepting Flow-originated actions. */
199
- /** Tenant safety limits enforced by Tickets before accepting Flow-originated actions. */
200
199
  export interface ITicketAutomationLimits {
201
200
  spaceId: string;
202
201
  maximumCausalDepth: number;
@@ -205,31 +204,6 @@ export interface ITicketAutomationLimits {
205
204
  maximumEventsPerTicketPerMinute: number;
206
205
  ignoreSameFlowCausedEvents: boolean;
207
206
  deadLetterAfterAttempts: number;
208
- recommended: ITicketAutomationLimitValues;
209
- /** 0 for a space that has never saved its limits; the first PUT creates version 1. */
210
- version: number;
211
- createdAt?: Date;
212
- createdBy?: string;
213
- updatedAt?: Date;
214
- updatedBy?: string;
215
- }
216
- /** Replaces the whole automation limits record; expectedVersion guards concurrent edits. */
217
- export interface IUpdateTicketAutomationLimitsDto {
218
- expectedVersion: number;
219
- maximumCausalDepth: number;
220
- maximumActionsPerExecution: number;
221
- maximumActionsPerTicketPerMinute: number;
222
- maximumEventsPerTicketPerMinute: number;
223
- ignoreSameFlowCausedEvents: boolean;
224
- deadLetterAfterAttempts: number;
225
- }
226
- export interface ITicketAutomationLimitValues {
227
- maximumCausalDepth: number;
228
- maximumActionsPerExecution: number;
229
- maximumActionsPerTicketPerMinute: number;
230
- maximumEventsPerTicketPerMinute: number;
231
- ignoreSameFlowCausedEvents: boolean;
232
- deadLetterAfterAttempts: number;
233
207
  }
234
208
  /** Loop-check request evaluated before dispatching an event or executing an action. */
235
209
  export interface ITicketAutomationGuardRequest {
@@ -246,7 +220,7 @@ export interface ITicketAutomationGuardDecision {
246
220
  actionsRemaining?: number;
247
221
  }
248
222
  /** Registers the Flow binding that determines which ticket event starts which flow version. */
249
- export interface ITicketFlowBinding extends ITicketAuditedEntity {
223
+ export interface ITicketFlowBinding {
250
224
  id: string;
251
225
  spaceId: string;
252
226
  name: string;
@@ -261,21 +235,3 @@ export interface ITicketFlowBinding extends ITicketAuditedEntity {
261
235
  updatedAt?: Date;
262
236
  updatedBy?: string;
263
237
  }
264
- export interface ICreateTicketFlowBindingDto {
265
- name: string;
266
- trigger: TicketAutomationTrigger;
267
- flowId: string;
268
- flowVersion?: number;
269
- categoryIds?: string[];
270
- enabled?: boolean;
271
- ignoreEventsCausedBySameFlow?: boolean;
272
- }
273
- export interface IUpdateTicketFlowBindingDto {
274
- name?: string;
275
- trigger?: TicketAutomationTrigger;
276
- flowId?: string;
277
- flowVersion?: number;
278
- categoryIds?: string[];
279
- enabled?: boolean;
280
- ignoreEventsCausedBySameFlow?: boolean;
281
- }
@@ -51,21 +51,3 @@ export interface IUpdateTicketCategoryDto {
51
51
  fieldDefinitionIds?: string[] | null;
52
52
  layoutIds?: string[] | null;
53
53
  }
54
- export interface ICreateTicketResolutionTypeDto {
55
- name: string;
56
- description?: string;
57
- enabled?: boolean;
58
- order?: number;
59
- formRequirements?: ITicketFormRequirement[];
60
- fieldDefinitionIds?: string[];
61
- layoutIds?: string[];
62
- }
63
- export interface IUpdateTicketResolutionTypeDto {
64
- name?: string;
65
- description?: string | null;
66
- enabled?: boolean;
67
- order?: number;
68
- formRequirements?: ITicketFormRequirement[] | null;
69
- fieldDefinitionIds?: string[] | null;
70
- layoutIds?: string[] | null;
71
- }