@greatapps/greatagents 0.1.13 → 0.1.15
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/package.json +1 -1
- package/src/modules/agent_tools/index.js +15 -0
- package/src/modules/agent_tools/properties.js +126 -0
- package/src/modules/contacts/properties.js +12 -0
- package/src/modules/conversations/properties.js +12 -0
- package/src/modules/credential_types/index.js +10 -0
- package/src/modules/credential_types/properties.js +108 -0
- package/src/modules/tool_categories/index.js +10 -0
- package/src/modules/tool_categories/properties.js +116 -0
- package/src/modules/tool_credentials/index.js +10 -0
- package/src/modules/tool_credentials/properties.js +176 -0
- package/src/modules/tool_execution_logs/index.js +10 -0
- package/src/modules/tool_execution_logs/properties.js +184 -0
- package/src/modules/tool_parameters/index.js +10 -0
- package/src/modules/tool_parameters/properties.js +176 -0
- package/src/modules/tool_types/index.js +10 -0
- package/src/modules/tool_types/properties.js +109 -0
- package/src/modules/tools/index.js +10 -0
- package/src/modules/tools/properties.js +253 -0
- package/src/product.js +17 -1
package/package.json
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { properties } from "./properties.js";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
product: "greatagents",
|
|
5
|
+
name: "agent_tools",
|
|
6
|
+
cache: { ttlView: 30, ttlList: 0 },
|
|
7
|
+
params: [ "id_account" ],
|
|
8
|
+
properties: properties,
|
|
9
|
+
constraints: {
|
|
10
|
+
unique: [
|
|
11
|
+
["id_agent", "id_tool"]
|
|
12
|
+
]
|
|
13
|
+
},
|
|
14
|
+
routes: {}
|
|
15
|
+
};
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
id_agent: {
|
|
49
|
+
type: "number",
|
|
50
|
+
required: true,
|
|
51
|
+
filterable: true,
|
|
52
|
+
index: true,
|
|
53
|
+
reference: {
|
|
54
|
+
module: "agents",
|
|
55
|
+
label: "title",
|
|
56
|
+
value: "id"
|
|
57
|
+
},
|
|
58
|
+
interface: {
|
|
59
|
+
label: {
|
|
60
|
+
"pt-br": "Agente",
|
|
61
|
+
"en": "Agent"
|
|
62
|
+
},
|
|
63
|
+
component: "select"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
id_tool: {
|
|
67
|
+
type: "number",
|
|
68
|
+
required: true,
|
|
69
|
+
filterable: true,
|
|
70
|
+
index: true,
|
|
71
|
+
reference: {
|
|
72
|
+
module: "tools",
|
|
73
|
+
label: "name",
|
|
74
|
+
value: "id"
|
|
75
|
+
},
|
|
76
|
+
interface: {
|
|
77
|
+
label: {
|
|
78
|
+
"pt-br": "Ferramenta",
|
|
79
|
+
"en": "Tool"
|
|
80
|
+
},
|
|
81
|
+
component: "select"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
custom_config: {
|
|
85
|
+
type: "string",
|
|
86
|
+
interface: {
|
|
87
|
+
label: {
|
|
88
|
+
"pt-br": "Configuração Customizada",
|
|
89
|
+
"en": "Custom Configuration"
|
|
90
|
+
},
|
|
91
|
+
component: "textarea",
|
|
92
|
+
placeholder: {
|
|
93
|
+
"pt-br": "JSON com override de configurações da ferramenta",
|
|
94
|
+
"en": "JSON with tool configuration overrides"
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
priority: {
|
|
99
|
+
type: "number",
|
|
100
|
+
default: 0,
|
|
101
|
+
filterable: true,
|
|
102
|
+
interface: {
|
|
103
|
+
label: {
|
|
104
|
+
"pt-br": "Prioridade",
|
|
105
|
+
"en": "Priority"
|
|
106
|
+
},
|
|
107
|
+
component: "number",
|
|
108
|
+
placeholder: {
|
|
109
|
+
"pt-br": "Ordem de execução",
|
|
110
|
+
"en": "Execution order"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
enabled: {
|
|
115
|
+
type: "boolean",
|
|
116
|
+
default: true,
|
|
117
|
+
filterable: true,
|
|
118
|
+
interface: {
|
|
119
|
+
label: {
|
|
120
|
+
"pt-br": "Habilitado",
|
|
121
|
+
"en": "Enabled"
|
|
122
|
+
},
|
|
123
|
+
component: "boolean"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
@@ -45,6 +45,18 @@ export const properties = {
|
|
|
45
45
|
disabled: true
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
|
+
id_external: {
|
|
49
|
+
type: "string",
|
|
50
|
+
required: false,
|
|
51
|
+
filterable: true,
|
|
52
|
+
interface: {
|
|
53
|
+
label: {
|
|
54
|
+
"pt-br": "ID Externo",
|
|
55
|
+
"en": "External ID"
|
|
56
|
+
},
|
|
57
|
+
component: "input"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
48
60
|
name: {
|
|
49
61
|
type: "string",
|
|
50
62
|
required: true,
|
|
@@ -102,6 +102,18 @@ export const properties = {
|
|
|
102
102
|
disabled: true
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
|
+
id_external: {
|
|
106
|
+
type: "string",
|
|
107
|
+
required: false,
|
|
108
|
+
filterable: true,
|
|
109
|
+
interface: {
|
|
110
|
+
label: {
|
|
111
|
+
"pt-br": "ID Externo",
|
|
112
|
+
"en": "External ID"
|
|
113
|
+
},
|
|
114
|
+
component: "input"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
105
117
|
key_memory: {
|
|
106
118
|
type: "string",
|
|
107
119
|
required: false,
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
name: {
|
|
49
|
+
type: "string",
|
|
50
|
+
required: true,
|
|
51
|
+
filterable: true,
|
|
52
|
+
searchable: true,
|
|
53
|
+
validation: {
|
|
54
|
+
maxLength: 50
|
|
55
|
+
},
|
|
56
|
+
interface: {
|
|
57
|
+
label: {
|
|
58
|
+
"pt-br": "Nome do Tipo",
|
|
59
|
+
"en": "Type Name"
|
|
60
|
+
},
|
|
61
|
+
component: "string",
|
|
62
|
+
placeholder: {
|
|
63
|
+
"pt-br": "Ex: api_key, bearer, oauth2, basic_auth, mtls, custom_header",
|
|
64
|
+
"en": "Ex: api_key, bearer, oauth2, basic_auth, mtls, custom_header"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
description: {
|
|
69
|
+
type: "string",
|
|
70
|
+
interface: {
|
|
71
|
+
label: {
|
|
72
|
+
"pt-br": "Descrição",
|
|
73
|
+
"en": "Description"
|
|
74
|
+
},
|
|
75
|
+
component: "textarea",
|
|
76
|
+
placeholder: {
|
|
77
|
+
"pt-br": "Descreva este tipo de credencial",
|
|
78
|
+
"en": "Describe this credential type"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
fields_schema: {
|
|
83
|
+
type: "string",
|
|
84
|
+
interface: {
|
|
85
|
+
label: {
|
|
86
|
+
"pt-br": "Schema dos Campos",
|
|
87
|
+
"en": "Fields Schema"
|
|
88
|
+
},
|
|
89
|
+
component: "textarea",
|
|
90
|
+
placeholder: {
|
|
91
|
+
"pt-br": "JSON Schema dos campos necessários para esta credencial",
|
|
92
|
+
"en": "JSON Schema of required fields for this credential"
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
active: {
|
|
97
|
+
type: "boolean",
|
|
98
|
+
default: true,
|
|
99
|
+
filterable: true,
|
|
100
|
+
interface: {
|
|
101
|
+
label: {
|
|
102
|
+
"pt-br": "Ativo",
|
|
103
|
+
"en": "Active"
|
|
104
|
+
},
|
|
105
|
+
component: "boolean"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
name: {
|
|
49
|
+
type: "string",
|
|
50
|
+
required: true,
|
|
51
|
+
filterable: true,
|
|
52
|
+
searchable: true,
|
|
53
|
+
validation: {
|
|
54
|
+
maxLength: 100
|
|
55
|
+
},
|
|
56
|
+
interface: {
|
|
57
|
+
label: {
|
|
58
|
+
"pt-br": "Nome da Categoria",
|
|
59
|
+
"en": "Category Name"
|
|
60
|
+
},
|
|
61
|
+
component: "string",
|
|
62
|
+
placeholder: {
|
|
63
|
+
"pt-br": "Nome da categoria de ferramentas",
|
|
64
|
+
"en": "Tool category name"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
description: {
|
|
69
|
+
type: "string",
|
|
70
|
+
interface: {
|
|
71
|
+
label: {
|
|
72
|
+
"pt-br": "Descrição",
|
|
73
|
+
"en": "Description"
|
|
74
|
+
},
|
|
75
|
+
component: "textarea",
|
|
76
|
+
placeholder: {
|
|
77
|
+
"pt-br": "Descreva esta categoria",
|
|
78
|
+
"en": "Describe this category"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
icon: {
|
|
83
|
+
type: "string",
|
|
84
|
+
validation: {
|
|
85
|
+
maxLength: 50
|
|
86
|
+
},
|
|
87
|
+
interface: {
|
|
88
|
+
label: {
|
|
89
|
+
"pt-br": "Ícone",
|
|
90
|
+
"en": "Icon"
|
|
91
|
+
},
|
|
92
|
+
component: "string",
|
|
93
|
+
placeholder: {
|
|
94
|
+
"pt-br": "Nome do ícone",
|
|
95
|
+
"en": "Icon name"
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
color: {
|
|
100
|
+
type: "string",
|
|
101
|
+
validation: {
|
|
102
|
+
maxLength: 7
|
|
103
|
+
},
|
|
104
|
+
interface: {
|
|
105
|
+
label: {
|
|
106
|
+
"pt-br": "Cor",
|
|
107
|
+
"en": "Color"
|
|
108
|
+
},
|
|
109
|
+
component: "string",
|
|
110
|
+
placeholder: {
|
|
111
|
+
"pt-br": "Código hexadecimal da cor (ex: #FF0000)",
|
|
112
|
+
"en": "Hexadecimal color code (ex: #FF0000)"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
};
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
export const properties = {
|
|
2
|
+
id: {
|
|
3
|
+
type: "number",
|
|
4
|
+
filterable: true,
|
|
5
|
+
unique: true,
|
|
6
|
+
autoIncrement: true,
|
|
7
|
+
index: true
|
|
8
|
+
},
|
|
9
|
+
deleted: {
|
|
10
|
+
type: "boolean",
|
|
11
|
+
default: false,
|
|
12
|
+
filterable: true
|
|
13
|
+
},
|
|
14
|
+
datetime_add: {
|
|
15
|
+
type: "date",
|
|
16
|
+
filterable: true,
|
|
17
|
+
updatable: false
|
|
18
|
+
},
|
|
19
|
+
datetime_alt: {
|
|
20
|
+
type: "date",
|
|
21
|
+
filterable: true,
|
|
22
|
+
updatable: true
|
|
23
|
+
},
|
|
24
|
+
datetime_del: {
|
|
25
|
+
type: "date",
|
|
26
|
+
filterable: true
|
|
27
|
+
},
|
|
28
|
+
id_account: {
|
|
29
|
+
type: "number",
|
|
30
|
+
required: true,
|
|
31
|
+
updatable: false,
|
|
32
|
+
filterable: true,
|
|
33
|
+
reference: {
|
|
34
|
+
module: "accounts",
|
|
35
|
+
label: "name",
|
|
36
|
+
value: "id",
|
|
37
|
+
disabled: true
|
|
38
|
+
},
|
|
39
|
+
interface: {
|
|
40
|
+
label: {
|
|
41
|
+
"pt-br": "Conta",
|
|
42
|
+
"en": "Account"
|
|
43
|
+
},
|
|
44
|
+
component: "select",
|
|
45
|
+
disabled: true
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
id_tool: {
|
|
49
|
+
type: "number",
|
|
50
|
+
required: true,
|
|
51
|
+
filterable: true,
|
|
52
|
+
index: true,
|
|
53
|
+
reference: {
|
|
54
|
+
module: "tools",
|
|
55
|
+
label: "name",
|
|
56
|
+
value: "id"
|
|
57
|
+
},
|
|
58
|
+
interface: {
|
|
59
|
+
label: {
|
|
60
|
+
"pt-br": "Ferramenta",
|
|
61
|
+
"en": "Tool"
|
|
62
|
+
},
|
|
63
|
+
component: "select"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
id_credential_type: {
|
|
67
|
+
type: "number",
|
|
68
|
+
required: true,
|
|
69
|
+
filterable: true,
|
|
70
|
+
reference: {
|
|
71
|
+
module: "credential_types",
|
|
72
|
+
label: "name",
|
|
73
|
+
value: "id"
|
|
74
|
+
},
|
|
75
|
+
interface: {
|
|
76
|
+
label: {
|
|
77
|
+
"pt-br": "Tipo de Credencial",
|
|
78
|
+
"en": "Credential Type"
|
|
79
|
+
},
|
|
80
|
+
component: "select"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
name: {
|
|
84
|
+
type: "string",
|
|
85
|
+
required: true,
|
|
86
|
+
filterable: true,
|
|
87
|
+
searchable: true,
|
|
88
|
+
validation: {
|
|
89
|
+
maxLength: 100
|
|
90
|
+
},
|
|
91
|
+
interface: {
|
|
92
|
+
label: {
|
|
93
|
+
"pt-br": "Nome da Credencial",
|
|
94
|
+
"en": "Credential Name"
|
|
95
|
+
},
|
|
96
|
+
component: "string",
|
|
97
|
+
placeholder: {
|
|
98
|
+
"pt-br": "Identificador da credencial",
|
|
99
|
+
"en": "Credential identifier"
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
encrypted_data: {
|
|
104
|
+
type: "string",
|
|
105
|
+
interface: {
|
|
106
|
+
label: {
|
|
107
|
+
"pt-br": "Dados Criptografados",
|
|
108
|
+
"en": "Encrypted Data"
|
|
109
|
+
},
|
|
110
|
+
component: "textarea",
|
|
111
|
+
placeholder: {
|
|
112
|
+
"pt-br": "Dados sensíveis criptografados",
|
|
113
|
+
"en": "Encrypted sensitive data"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
metadata: {
|
|
118
|
+
type: "string",
|
|
119
|
+
interface: {
|
|
120
|
+
label: {
|
|
121
|
+
"pt-br": "Metadados",
|
|
122
|
+
"en": "Metadata"
|
|
123
|
+
},
|
|
124
|
+
component: "textarea",
|
|
125
|
+
placeholder: {
|
|
126
|
+
"pt-br": "JSON com metadados não sensíveis",
|
|
127
|
+
"en": "JSON with non-sensitive metadata"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
expires_at: {
|
|
132
|
+
type: "date",
|
|
133
|
+
filterable: true,
|
|
134
|
+
interface: {
|
|
135
|
+
label: {
|
|
136
|
+
"pt-br": "Data de Expiração",
|
|
137
|
+
"en": "Expiration Date"
|
|
138
|
+
},
|
|
139
|
+
component: "date"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
rotated_at: {
|
|
143
|
+
type: "date",
|
|
144
|
+
filterable: true,
|
|
145
|
+
interface: {
|
|
146
|
+
label: {
|
|
147
|
+
"pt-br": "Última Rotação",
|
|
148
|
+
"en": "Last Rotation"
|
|
149
|
+
},
|
|
150
|
+
component: "date"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
version: {
|
|
154
|
+
type: "number",
|
|
155
|
+
default: 1,
|
|
156
|
+
interface: {
|
|
157
|
+
label: {
|
|
158
|
+
"pt-br": "Versão",
|
|
159
|
+
"en": "Version"
|
|
160
|
+
},
|
|
161
|
+
component: "number"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
active: {
|
|
165
|
+
type: "boolean",
|
|
166
|
+
default: true,
|
|
167
|
+
filterable: true,
|
|
168
|
+
interface: {
|
|
169
|
+
label: {
|
|
170
|
+
"pt-br": "Ativo",
|
|
171
|
+
"en": "Active"
|
|
172
|
+
},
|
|
173
|
+
component: "boolean"
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
};
|