@greatapps/greatagents 0.1.15 → 0.1.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greatapps/greatagents",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "Schemas para GreatAgents",
5
5
  "main": "./src/product.js",
6
6
  "type": "module"
@@ -63,21 +63,27 @@ export const properties = {
63
63
  component: "select"
64
64
  }
65
65
  },
66
- id_credential_type: {
67
- type: "number",
66
+ credential_type: {
67
+ type: "string",
68
68
  required: true,
69
69
  filterable: true,
70
- reference: {
71
- module: "credential_types",
72
- label: "name",
73
- value: "id"
70
+ searchable: true,
71
+ validation: {
72
+ maxLength: 50,
73
+ enum: ["api_key", "bearer", "oauth2", "basic_auth", "custom_header", "mtls", "jwt"]
74
74
  },
75
75
  interface: {
76
- label: {
77
- "pt-br": "Tipo de Credencial",
78
- "en": "Credential Type"
79
- },
80
- component: "select"
76
+ label: { "pt-br": "Tipo de Credencial", "en": "Credential Type" },
77
+ component: "select",
78
+ options: [
79
+ { value: "api_key", label: { "pt-br": "API Key", "en": "API Key" } },
80
+ { value: "bearer", label: { "pt-br": "Bearer Token", "en": "Bearer Token" } },
81
+ { value: "oauth2", label: { "pt-br": "OAuth 2.0", "en": "OAuth 2.0" } },
82
+ { value: "basic_auth", label: { "pt-br": "Autenticação Básica", "en": "Basic Auth" } },
83
+ { value: "custom_header", label: { "pt-br": "Header Customizado", "en": "Custom Header" } },
84
+ { value: "mtls", label: { "pt-br": "mTLS", "en": "mTLS" } },
85
+ { value: "jwt", label: { "pt-br": "JWT", "en": "JWT" } }
86
+ ]
81
87
  }
82
88
  },
83
89
  name: {
@@ -97,20 +97,21 @@ export const properties = {
97
97
  },
98
98
  status: {
99
99
  type: "string",
100
+ required: true,
100
101
  filterable: true,
101
- validation: {
102
- maxLength: 20
103
- },
104
102
  interface: {
105
103
  label: {
106
104
  "pt-br": "Status",
107
105
  "en": "Status"
108
106
  },
109
107
  component: "select",
110
- placeholder: {
111
- "pt-br": "success, error, timeout",
112
- "en": "success, error, timeout"
113
- }
108
+ options: [
109
+ { value: "success", label: { "pt-br": "Sucesso", "en": "Success" } },
110
+ { value: "error", label: { "pt-br": "Erro", "en": "Error" } },
111
+ { value: "timeout", label: { "pt-br": "Timeout", "en": "Timeout" } },
112
+ { value: "cancelled", label: { "pt-br": "Cancelado", "en": "Cancelled" } },
113
+ { value: "pending", label: { "pt-br": "Pendente", "en": "Pending" } }
114
+ ]
114
115
  }
115
116
  },
116
117
  input_data: {
@@ -85,38 +85,41 @@ export const properties = {
85
85
  },
86
86
  parameter_type: {
87
87
  type: "string",
88
+ required: true,
88
89
  filterable: true,
89
- validation: {
90
- maxLength: 10
91
- },
92
90
  interface: {
93
91
  label: {
94
92
  "pt-br": "Tipo de Parâmetro",
95
93
  "en": "Parameter Type"
96
94
  },
97
95
  component: "select",
98
- placeholder: {
99
- "pt-br": "input ou output",
100
- "en": "input or output"
101
- }
96
+ options: [
97
+ { value: "input", label: { "pt-br": "Entrada", "en": "Input" } },
98
+ { value: "output", label: { "pt-br": "Saída", "en": "Output" } },
99
+ { value: "config", label: { "pt-br": "Configuração", "en": "Configuration" } }
100
+ ]
102
101
  }
103
102
  },
104
103
  data_type: {
105
104
  type: "string",
105
+ required: true,
106
106
  filterable: true,
107
- validation: {
108
- maxLength: 20
109
- },
110
107
  interface: {
111
108
  label: {
112
109
  "pt-br": "Tipo de Dado",
113
110
  "en": "Data Type"
114
111
  },
115
112
  component: "select",
116
- placeholder: {
117
- "pt-br": "string, number, boolean, object, array",
118
- "en": "string, number, boolean, object, array"
119
- }
113
+ options: [
114
+ { value: "string", label: { "pt-br": "Texto", "en": "String" } },
115
+ { value: "number", label: { "pt-br": "Número", "en": "Number" } },
116
+ { value: "boolean", label: { "pt-br": "Booleano", "en": "Boolean" } },
117
+ { value: "object", label: { "pt-br": "Objeto", "en": "Object" } },
118
+ { value: "array", label: { "pt-br": "Array", "en": "Array" } },
119
+ { value: "date", label: { "pt-br": "Data", "en": "Date" } },
120
+ { value: "file", label: { "pt-br": "Arquivo", "en": "File" } },
121
+ { value: "null", label: { "pt-br": "Nulo", "en": "Null" } }
122
+ ]
120
123
  }
121
124
  },
122
125
  required: {
@@ -63,21 +63,26 @@ export const properties = {
63
63
  component: "select"
64
64
  }
65
65
  },
66
- id_tool_type: {
67
- type: "number",
66
+ type: {
67
+ type: "string",
68
68
  required: true,
69
69
  filterable: true,
70
- reference: {
71
- module: "tool_types",
72
- label: "name",
73
- value: "id"
70
+ searchable: true,
71
+ validation: {
72
+ maxLength: 50,
73
+ enum: ["http", "mcp", "a2a", "script", "webhook", "api"]
74
74
  },
75
75
  interface: {
76
- label: {
77
- "pt-br": "Tipo de Ferramenta",
78
- "en": "Tool Type"
79
- },
80
- component: "select"
76
+ label: { "pt-br": "Tipo de Ferramenta", "en": "Tool Type" },
77
+ component: "select",
78
+ options: [
79
+ { value: "http", label: { "pt-br": "HTTP/REST", "en": "HTTP/REST" } },
80
+ { value: "mcp", label: { "pt-br": "MCP", "en": "MCP" } },
81
+ { value: "a2a", label: { "pt-br": "Agent-to-Agent", "en": "Agent-to-Agent" } },
82
+ { value: "script", label: { "pt-br": "Script JavaScript", "en": "JavaScript Script" } },
83
+ { value: "webhook", label: { "pt-br": "Webhook", "en": "Webhook" } },
84
+ { value: "api", label: { "pt-br": "API Externa", "en": "External API" } }
85
+ ]
81
86
  }
82
87
  },
83
88
  id_tool_category: {
package/src/product.js CHANGED
@@ -7,10 +7,8 @@ import objectives from './modules/objectives/index.js';
7
7
  import contacts from './modules/contacts/index.js';
8
8
  import conversations from './modules/conversations/index.js';
9
9
  import tools from './modules/tools/index.js';
10
- import tool_types from './modules/tool_types/index.js';
11
10
  import tool_categories from './modules/tool_categories/index.js';
12
11
  import tool_credentials from './modules/tool_credentials/index.js';
13
- import credential_types from './modules/credential_types/index.js';
14
12
  import agent_tools from './modules/agent_tools/index.js';
15
13
  import tool_execution_logs from './modules/tool_execution_logs/index.js';
16
14
  import tool_parameters from './modules/tool_parameters/index.js';
@@ -45,10 +43,8 @@ export default {
45
43
  contacts,
46
44
  conversations,
47
45
  tools,
48
- tool_types,
49
46
  tool_categories,
50
47
  tool_credentials,
51
- credential_types,
52
48
  agent_tools,
53
49
  tool_execution_logs,
54
50
  tool_parameters
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "credential_types",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,108 +0,0 @@
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
- };
@@ -1,10 +0,0 @@
1
- import { properties } from "./properties.js";
2
-
3
- export default {
4
- product: "greatagents",
5
- name: "tool_types",
6
- cache: { ttlView: 30, ttlList: 0 },
7
- params: [ "id_account" ],
8
- properties: properties,
9
- routes: {}
10
- };
@@ -1,109 +0,0 @@
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
- unique: true,
52
- filterable: true,
53
- searchable: true,
54
- validation: {
55
- maxLength: 50
56
- },
57
- interface: {
58
- label: {
59
- "pt-br": "Nome do Tipo",
60
- "en": "Type Name"
61
- },
62
- component: "string",
63
- placeholder: {
64
- "pt-br": "Ex: http, mcp, a2a, script",
65
- "en": "Ex: http, mcp, a2a, script"
66
- }
67
- }
68
- },
69
- description: {
70
- type: "string",
71
- interface: {
72
- label: {
73
- "pt-br": "Descrição",
74
- "en": "Description"
75
- },
76
- component: "textarea",
77
- placeholder: {
78
- "pt-br": "Descreva este tipo de ferramenta",
79
- "en": "Describe this tool type"
80
- }
81
- }
82
- },
83
- config_schema: {
84
- type: "string",
85
- interface: {
86
- label: {
87
- "pt-br": "Schema de Configuração",
88
- "en": "Configuration Schema"
89
- },
90
- component: "textarea",
91
- placeholder: {
92
- "pt-br": "JSON Schema para validar config de ferramentas deste tipo",
93
- "en": "JSON Schema to validate config for tools of this type"
94
- }
95
- }
96
- },
97
- active: {
98
- type: "boolean",
99
- default: true,
100
- filterable: true,
101
- interface: {
102
- label: {
103
- "pt-br": "Ativo",
104
- "en": "Active"
105
- },
106
- component: "boolean"
107
- }
108
- }
109
- };