@trii/types 2.10.627 → 2.10.629
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.
|
@@ -104,9 +104,12 @@ export interface IContactField {
|
|
|
104
104
|
id: string;
|
|
105
105
|
name: string;
|
|
106
106
|
nameKey: string;
|
|
107
|
+
description: string | '';
|
|
108
|
+
placeholder: string | '';
|
|
107
109
|
type: ContactField_type;
|
|
108
110
|
typeNumberDecimalsCount: number | 0;
|
|
109
111
|
typeOptions: string[];
|
|
112
|
+
listItemSchema?: IContactFieldListItemSchema[];
|
|
110
113
|
order: number;
|
|
111
114
|
requiredField: boolean;
|
|
112
115
|
forContact: boolean;
|
|
@@ -124,6 +127,20 @@ export interface IContactField {
|
|
|
124
127
|
deleted: boolean;
|
|
125
128
|
deletedAt?: string | null;
|
|
126
129
|
}
|
|
130
|
+
export interface IContactFieldListItemSchema {
|
|
131
|
+
key: string;
|
|
132
|
+
label: string;
|
|
133
|
+
type: ContactField_Item_Type;
|
|
134
|
+
required: boolean;
|
|
135
|
+
options?: string[];
|
|
136
|
+
}
|
|
137
|
+
export declare enum ContactField_Item_Type {
|
|
138
|
+
TEXT = 0,
|
|
139
|
+
OPTIONS = 4,
|
|
140
|
+
DATE = 6,
|
|
141
|
+
NUMBER_INTEGER = 21,
|
|
142
|
+
NUMBER_CURRENCY = 23
|
|
143
|
+
}
|
|
127
144
|
export declare enum ContactField_type {
|
|
128
145
|
TEXT = 0,
|
|
129
146
|
LONGTEXT = 1,
|
|
@@ -137,7 +154,9 @@ export declare enum ContactField_type {
|
|
|
137
154
|
NUMBER_INTEGER = 21,
|
|
138
155
|
NUMBER_DECIMAL = 22,
|
|
139
156
|
NUMBER_CURRENCY = 23,
|
|
140
|
-
NUMBER_ACCOUNTING = 24
|
|
157
|
+
NUMBER_ACCOUNTING = 24,
|
|
158
|
+
LIST_SINGLE = 31,
|
|
159
|
+
LIST_OBJECT = 32
|
|
141
160
|
}
|
|
142
161
|
export interface IContactAddress {
|
|
143
162
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GoogleAccountInfo = exports.GooglePeopleIntegration = exports.IntegrationButton_format = exports.IntegrationButton_method = exports.ContactField_type = exports.ContactOrigin = void 0;
|
|
3
|
+
exports.GoogleAccountInfo = exports.GooglePeopleIntegration = exports.IntegrationButton_format = exports.IntegrationButton_method = exports.ContactField_type = exports.ContactField_Item_Type = exports.ContactOrigin = void 0;
|
|
4
4
|
var ContactOrigin;
|
|
5
5
|
(function (ContactOrigin) {
|
|
6
6
|
ContactOrigin[ContactOrigin["MANUAL"] = 0] = "MANUAL";
|
|
@@ -9,6 +9,14 @@ var ContactOrigin;
|
|
|
9
9
|
ContactOrigin[ContactOrigin["TICKET"] = 3] = "TICKET";
|
|
10
10
|
ContactOrigin[ContactOrigin["FORM"] = 4] = "FORM";
|
|
11
11
|
})(ContactOrigin || (exports.ContactOrigin = ContactOrigin = {}));
|
|
12
|
+
var ContactField_Item_Type;
|
|
13
|
+
(function (ContactField_Item_Type) {
|
|
14
|
+
ContactField_Item_Type[ContactField_Item_Type["TEXT"] = 0] = "TEXT";
|
|
15
|
+
ContactField_Item_Type[ContactField_Item_Type["OPTIONS"] = 4] = "OPTIONS";
|
|
16
|
+
ContactField_Item_Type[ContactField_Item_Type["DATE"] = 6] = "DATE";
|
|
17
|
+
ContactField_Item_Type[ContactField_Item_Type["NUMBER_INTEGER"] = 21] = "NUMBER_INTEGER";
|
|
18
|
+
ContactField_Item_Type[ContactField_Item_Type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
19
|
+
})(ContactField_Item_Type || (exports.ContactField_Item_Type = ContactField_Item_Type = {}));
|
|
12
20
|
var ContactField_type;
|
|
13
21
|
(function (ContactField_type) {
|
|
14
22
|
ContactField_type[ContactField_type["TEXT"] = 0] = "TEXT";
|
|
@@ -24,6 +32,8 @@ var ContactField_type;
|
|
|
24
32
|
ContactField_type[ContactField_type["NUMBER_DECIMAL"] = 22] = "NUMBER_DECIMAL";
|
|
25
33
|
ContactField_type[ContactField_type["NUMBER_CURRENCY"] = 23] = "NUMBER_CURRENCY";
|
|
26
34
|
ContactField_type[ContactField_type["NUMBER_ACCOUNTING"] = 24] = "NUMBER_ACCOUNTING";
|
|
35
|
+
ContactField_type[ContactField_type["LIST_SINGLE"] = 31] = "LIST_SINGLE";
|
|
36
|
+
ContactField_type[ContactField_type["LIST_OBJECT"] = 32] = "LIST_OBJECT";
|
|
27
37
|
})(ContactField_type || (exports.ContactField_type = ContactField_type = {}));
|
|
28
38
|
var IntegrationButton_method;
|
|
29
39
|
(function (IntegrationButton_method) {
|
|
@@ -72,14 +72,16 @@ export interface IWorkflowMessage {
|
|
|
72
72
|
role: 'log' | 'user' | 'assistant';
|
|
73
73
|
isWorkerAgent: boolean | false;
|
|
74
74
|
status: NodeStatus;
|
|
75
|
+
input_arguments?: string | null;
|
|
75
76
|
content?: IFlowMessageContent[];
|
|
76
77
|
transferToOtherAgent: boolean | false;
|
|
77
|
-
|
|
78
|
+
nextAgentId?: string | null;
|
|
78
79
|
spaceId: string;
|
|
79
80
|
workflowId: string;
|
|
80
81
|
flowId: string;
|
|
81
82
|
nodeId: string;
|
|
82
83
|
nodeName: string | '';
|
|
84
|
+
parentNodeId: string | '';
|
|
83
85
|
tokens: number | 0;
|
|
84
86
|
tokensInput: number | 0;
|
|
85
87
|
tokensOutput: number | 0;
|
|
@@ -92,14 +94,18 @@ export interface IWorkflowMessage {
|
|
|
92
94
|
executionId?: string | null;
|
|
93
95
|
}
|
|
94
96
|
export interface IFlowMessageContent {
|
|
95
|
-
type: 'text' | 'image' | 'file' | 'audio' | 'agentPlan' | 'arguments' | 'tool';
|
|
97
|
+
type: 'text' | 'image' | 'file' | 'audio' | 'agentPlan' | 'arguments' | 'tool' | 'handoff';
|
|
96
98
|
text?: string;
|
|
97
99
|
/**For audio transcription or OCR processing */
|
|
98
|
-
transcription?: string;
|
|
99
100
|
mime_type?: string;
|
|
100
101
|
image_url?: string;
|
|
101
102
|
audio_url?: string;
|
|
102
103
|
file_url?: string;
|
|
104
|
+
transcription?: string;
|
|
105
|
+
handoffTargetAgentId?: string;
|
|
106
|
+
handoffReason?: string;
|
|
107
|
+
handoffContext?: string;
|
|
108
|
+
handoffResult?: string;
|
|
103
109
|
isMessageSended?: boolean | false;
|
|
104
110
|
/**Tool call related information */
|
|
105
111
|
toolNodeId?: string | null;
|
|
@@ -108,8 +114,6 @@ export interface IFlowMessageContent {
|
|
|
108
114
|
toolArguments?: string;
|
|
109
115
|
toolOutput?: string;
|
|
110
116
|
toolStatus?: NodeStatus;
|
|
111
|
-
toolTransferToOtherAgent?: boolean | false;
|
|
112
|
-
toolNextNodeId?: string | null;
|
|
113
117
|
arguments?: string;
|
|
114
118
|
planSchema?: string;
|
|
115
119
|
isPlanExecution?: boolean | false;
|