@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.
- package/dist/AI/MapPolygon.d.ts +22 -0
- package/dist/Conversations/Classifications/ClassificationTaxonomy.d.ts +67 -0
- package/dist/Conversations/Classifications/ClassificationTaxonomy.js +5 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvaluation.d.ts +67 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvaluation.js +2 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvents.d.ts +29 -0
- package/dist/Conversations/Classifications/ConversationClassificationEvents.js +8 -0
- package/dist/Conversations/Classifications/index.d.ts +3 -0
- package/dist/{src/Automations/Triggers → Conversations/Classifications}/index.js +3 -1
- package/dist/Conversations/DashBoard/dashboardForms.d.ts +44 -0
- package/dist/Conversations/DashBoard/dashboardForms.js +24 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeAIChatBot.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeApi.js +183 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeChatBotIA.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConditional.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactSearch.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeContactUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationAssignTo.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationFinalize.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeConversationUpdate.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillForm.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeFillTicket.js +9 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.d.ts +20 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleCalendar.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.d.ts +12 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps copy.js +6 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.d.ts +15 -0
- package/dist/Conversations/Flows/Nodes/NodeGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgReply.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgSend.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgText.js +27 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeMsgWaitResponse.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeRedirect.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSendEmail.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeSqlQuery.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeStart.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeScheduleControl.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeTimer.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.d.ts +0 -0
- package/dist/Conversations/Flows/Nodes/NodeTimeWaitUntil.js +0 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolCalculator.js +37 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolContacts.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolFunction.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleCalendar.js +87 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.d.ts +1 -0
- package/dist/Conversations/Flows/Nodes/NodeToolGoogleMaps.js +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolKnowledge.js +52 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMapsCheckPolygon.js +59 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolMcpClient.js +45 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.d.ts +2 -0
- package/dist/Conversations/Flows/Nodes/NodeToolShoppingCart.js +81 -0
- package/dist/Conversations/Flows/Nodes/index.d.ts +24 -0
- package/dist/Conversations/Flows/Nodes/index.js +40 -0
- package/dist/Conversations/InboxCounters.d.ts +18 -0
- package/dist/Conversations/InboxCounters.js +2 -0
- package/dist/Conversations/index.d.ts +1 -0
- package/dist/Conversations/index.js +1 -0
- package/dist/Presence/ChannelRoutingState.d.ts +17 -0
- package/dist/Presence/ChannelRoutingState.js +9 -0
- package/dist/Tickets/AccessLevel.d.ts +5 -0
- package/dist/Tickets/AccessLevel.js +9 -0
- package/dist/Tickets/Common.d.ts +62 -0
- package/dist/Tickets/CustomerNotification.d.ts +192 -0
- package/dist/Tickets/CustomerNotification.js +54 -0
- package/dist/Tickets/Notes.d.ts +13 -0
- package/dist/Tickets/Notes.js +10 -0
- package/dist/Tickets/QuickResponse.d.ts +64 -0
- package/dist/Tickets/QuickResponse.js +41 -0
- package/dist/Tickets/Task.d.ts +11 -0
- package/dist/Tickets/Ticket.d.ts +2 -0
- package/dist/Tickets/index.d.ts +3 -0
- package/dist/Tickets/index.js +3 -0
- package/dist/src/Automations/Capabilities/Capability.d.ts +0 -33
- package/dist/src/Automations/Capabilities/Capability.js +1 -15
- package/dist/src/Automations/Common.d.ts +0 -47
- package/dist/src/Automations/Common.js +0 -22
- package/dist/src/Automations/Events/Event.d.ts +4 -59
- package/dist/src/Automations/Events/Event.js +0 -17
- package/dist/src/Automations/Executions/Execution.d.ts +4 -188
- package/dist/src/Automations/Executions/Execution.js +1 -54
- package/dist/src/Automations/Executions/index.d.ts +0 -1
- package/dist/src/Automations/Executions/index.js +0 -1
- package/dist/src/Automations/Flows/Canvas.d.ts +4 -27
- package/dist/src/Automations/Flows/Canvas.js +1 -10
- package/dist/src/Automations/Flows/Flow.d.ts +3 -55
- package/dist/src/Automations/Flows/Flow.js +1 -25
- package/dist/src/Automations/Nodes/Node.d.ts +3 -44
- package/dist/src/Automations/Nodes/Node.js +1 -10
- package/dist/src/Automations/index.d.ts +0 -1
- package/dist/src/Automations/index.js +0 -1
- package/dist/src/Common/Channels/Channel.d.ts +4 -6
- package/dist/src/Common/Channels/Email.d.ts +0 -1
- package/dist/src/Common/Channels/Facebook.d.ts +0 -1
- package/dist/src/Common/Channels/Form.d.ts +0 -1
- package/dist/src/Common/Channels/GoogleBusiness.d.ts +0 -1
- package/dist/src/Common/Channels/Instagram.d.ts +0 -1
- package/dist/src/Common/Channels/MercadoLibre.d.ts +0 -1
- package/dist/src/Common/Channels/WebChat.d.ts +0 -1
- package/dist/src/Contacts/index.d.ts +0 -2
- package/dist/src/Contacts/index.js +0 -2
- package/dist/src/Conversations/Assignment.d.ts +1 -101
- package/dist/src/Conversations/Conversation.d.ts +0 -169
- package/dist/src/PublicAPI/apiKey.d.ts +3 -92
- package/dist/src/PublicAPI/apiKey.js +0 -27
- package/dist/src/Tickets/AI.d.ts +2 -50
- package/dist/src/Tickets/AdvancedApi.d.ts +2 -142
- package/dist/src/Tickets/AdvancedApi.js +1 -28
- package/dist/src/Tickets/Approval.d.ts +4 -20
- package/dist/src/Tickets/Automation.d.ts +2 -46
- package/dist/src/Tickets/Dashboard.d.ts +0 -1
- package/dist/src/Tickets/Fields.d.ts +0 -3
- package/dist/src/Tickets/Routing.d.ts +3 -105
- package/dist/src/Tickets/Routing.js +1 -7
- package/dist/src/Tickets/Security.d.ts +4 -271
- package/dist/src/Tickets/Security.js +1 -10
- package/dist/src/Tickets/SelfService.d.ts +0 -190
- package/dist/src/Tickets/Sla.d.ts +0 -140
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +1 -2
- package/package.json +12 -12
- package/dist/src/Automations/Executions/Testing.d.ts +0 -166
- package/dist/src/Automations/Executions/Testing.js +0 -54
- package/dist/src/Automations/Triggers/Trigger.d.ts +0 -112
- package/dist/src/Automations/Triggers/Trigger.js +0 -66
- package/dist/src/Automations/Triggers/index.d.ts +0 -1
- package/dist/src/Contacts/CommunicationEndpoint.d.ts +0 -107
- package/dist/src/Contacts/CommunicationEndpoint.js +0 -39
- package/dist/src/Contacts/CommunicationMethod.d.ts +0 -9
- package/dist/src/Events/DomainEventTypes.d.ts +0 -51
- package/dist/src/Events/DomainEventTypes.js +0 -49
- package/dist/src/Events/index.d.ts +0 -1
- package/dist/src/Events/index.js +0 -17
- /package/dist/{src/Contacts/CommunicationMethod.js → AI/MapPolygon.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
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
-
};
|
package/dist/src/Tickets/AI.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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,
|
|
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
|
|
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.
|
|
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
|
|
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:
|
|
32
|
+
type: 'USER';
|
|
33
33
|
userId: string;
|
|
34
34
|
} | {
|
|
35
|
-
type:
|
|
35
|
+
type: 'GROUP';
|
|
36
36
|
groupId: string;
|
|
37
37
|
} | {
|
|
38
|
-
type:
|
|
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 {
|
|
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
|
|
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
|
-
}
|
|
@@ -229,7 +229,6 @@ export interface ITicketMetricDefinition {
|
|
|
229
229
|
supportsPercentile?: boolean;
|
|
230
230
|
supportsRealTime?: boolean;
|
|
231
231
|
higherIsBetter?: boolean;
|
|
232
|
-
supportedFilters: (keyof Omit<ITicketAnalyticsFilter, 'range'>)[];
|
|
233
232
|
}
|
|
234
233
|
export interface ITicketMetricQuery {
|
|
235
234
|
metric: TicketMetricCode;
|
|
@@ -98,9 +98,6 @@ export interface ITicketFieldDefinition extends ITicketAuditedEntity {
|
|
|
98
98
|
writeRoleIds?: string[];
|
|
99
99
|
classification?: TicketDataClassification;
|
|
100
100
|
maskingStrategy?: TicketMaskingStrategy;
|
|
101
|
-
containsPii?: boolean;
|
|
102
|
-
searchableWhenMasked?: boolean;
|
|
103
|
-
retentionPolicyId?: string;
|
|
104
101
|
searchable?: boolean;
|
|
105
102
|
filterable?: boolean;
|
|
106
103
|
sortable?: boolean;
|