@gyramais/mcp-server 0.1.0
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/bin/gyra-mcp-internal.d.ts +3 -0
- package/dist/bin/gyra-mcp-internal.d.ts.map +1 -0
- package/dist/bin/gyra-mcp-internal.js +8 -0
- package/dist/bin/gyra-mcp-internal.js.map +1 -0
- package/dist/bin/gyra-mcp.d.ts +7 -0
- package/dist/bin/gyra-mcp.d.ts.map +1 -0
- package/dist/bin/gyra-mcp.js +7 -0
- package/dist/bin/gyra-mcp.js.map +1 -0
- package/dist/enrichments/auth.enrichment.d.ts +3 -0
- package/dist/enrichments/auth.enrichment.d.ts.map +1 -0
- package/dist/enrichments/auth.enrichment.js +20 -0
- package/dist/enrichments/auth.enrichment.js.map +1 -0
- package/dist/enrichments/credential.enrichment.d.ts +3 -0
- package/dist/enrichments/credential.enrichment.d.ts.map +1 -0
- package/dist/enrichments/credential.enrichment.js +62 -0
- package/dist/enrichments/credential.enrichment.js.map +1 -0
- package/dist/enrichments/credit-policy.enrichment.d.ts +3 -0
- package/dist/enrichments/credit-policy.enrichment.d.ts.map +1 -0
- package/dist/enrichments/credit-policy.enrichment.js +48 -0
- package/dist/enrichments/credit-policy.enrichment.js.map +1 -0
- package/dist/enrichments/index.d.ts +10 -0
- package/dist/enrichments/index.d.ts.map +1 -0
- package/dist/enrichments/index.js +23 -0
- package/dist/enrichments/index.js.map +1 -0
- package/dist/enrichments/insight.enrichment.d.ts +3 -0
- package/dist/enrichments/insight.enrichment.d.ts.map +1 -0
- package/dist/enrichments/insight.enrichment.js +37 -0
- package/dist/enrichments/insight.enrichment.js.map +1 -0
- package/dist/enrichments/public-endpoints.d.ts +15 -0
- package/dist/enrichments/public-endpoints.d.ts.map +1 -0
- package/dist/enrichments/public-endpoints.js +44 -0
- package/dist/enrichments/public-endpoints.js.map +1 -0
- package/dist/enrichments/report.enrichment.d.ts +3 -0
- package/dist/enrichments/report.enrichment.d.ts.map +1 -0
- package/dist/enrichments/report.enrichment.js +133 -0
- package/dist/enrichments/report.enrichment.js.map +1 -0
- package/dist/enrichments/section.enrichment.d.ts +3 -0
- package/dist/enrichments/section.enrichment.d.ts.map +1 -0
- package/dist/enrichments/section.enrichment.js +24 -0
- package/dist/enrichments/section.enrichment.js.map +1 -0
- package/dist/enrichments/types.d.ts +26 -0
- package/dist/enrichments/types.d.ts.map +1 -0
- package/dist/enrichments/types.js +2 -0
- package/dist/enrichments/types.js.map +1 -0
- package/dist/enrichments/webhook.enrichment.d.ts +3 -0
- package/dist/enrichments/webhook.enrichment.d.ts.map +1 -0
- package/dist/enrichments/webhook.enrichment.js +61 -0
- package/dist/enrichments/webhook.enrichment.js.map +1 -0
- package/dist/scripts/enrich-spec.d.ts +3 -0
- package/dist/scripts/enrich-spec.d.ts.map +1 -0
- package/dist/scripts/enrich-spec.js +128 -0
- package/dist/scripts/enrich-spec.js.map +1 -0
- package/dist/scripts/fetch-spec.d.ts +3 -0
- package/dist/scripts/fetch-spec.d.ts.map +1 -0
- package/dist/scripts/fetch-spec.js +34 -0
- package/dist/scripts/fetch-spec.js.map +1 -0
- package/dist/scripts/generate-internal.d.ts +3 -0
- package/dist/scripts/generate-internal.d.ts.map +1 -0
- package/dist/scripts/generate-internal.js +45 -0
- package/dist/scripts/generate-internal.js.map +1 -0
- package/dist/scripts/generate-mintlify.d.ts +3 -0
- package/dist/scripts/generate-mintlify.d.ts.map +1 -0
- package/dist/scripts/generate-mintlify.js +98 -0
- package/dist/scripts/generate-mintlify.js.map +1 -0
- package/dist/scripts/validate-spec.d.ts +3 -0
- package/dist/scripts/validate-spec.d.ts.map +1 -0
- package/dist/scripts/validate-spec.js +67 -0
- package/dist/scripts/validate-spec.js.map +1 -0
- package/dist/src/auth.d.ts +14 -0
- package/dist/src/auth.d.ts.map +1 -0
- package/dist/src/auth.js +50 -0
- package/dist/src/auth.js.map +1 -0
- package/dist/src/client.d.ts +22 -0
- package/dist/src/client.d.ts.map +1 -0
- package/dist/src/client.js +51 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/config.d.ts +13 -0
- package/dist/src/config.d.ts.map +1 -0
- package/dist/src/config.js +16 -0
- package/dist/src/config.js.map +1 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +35 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/server.d.ts +5 -0
- package/dist/src/server.d.ts.map +1 -0
- package/dist/src/server.js +104 -0
- package/dist/src/server.js.map +1 -0
- package/dist/src/tools/index.d.ts +4 -0
- package/dist/src/tools/index.d.ts.map +1 -0
- package/dist/src/tools/index.js +3 -0
- package/dist/src/tools/index.js.map +1 -0
- package/dist/src/tools/param-resolver.d.ts +13 -0
- package/dist/src/tools/param-resolver.d.ts.map +1 -0
- package/dist/src/tools/param-resolver.js +44 -0
- package/dist/src/tools/param-resolver.js.map +1 -0
- package/dist/src/tools/tool-factory.d.ts +18 -0
- package/dist/src/tools/tool-factory.d.ts.map +1 -0
- package/dist/src/tools/tool-factory.js +156 -0
- package/dist/src/tools/tool-factory.js.map +1 -0
- package/package.json +44 -0
- package/spec/openapi-external.json +1007 -0
- package/spec/openapi-internal.json +2087 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gyra-mcp-internal.d.ts","sourceRoot":"","sources":["../../bin/gyra-mcp-internal.ts"],"names":[],"mappings":";AAMA,OAAO,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gyra-mcp-internal.js","sourceRoot":"","sources":["../../bin/gyra-mcp-internal.ts"],"names":[],"mappings":";AACA;;;GAGG;AACH,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,UAAU,CAAC;AACtC,OAAO,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gyra-mcp.d.ts","sourceRoot":"","sources":["../../bin/gyra-mcp.ts"],"names":[],"mappings":";AACA;;;GAGG;AACH,OAAO,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gyra-mcp.js","sourceRoot":"","sources":["../../bin/gyra-mcp.ts"],"names":[],"mappings":";AACA;;;GAGG;AACH,OAAO,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/auth.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAkB1D,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export const authEnrichments = {
|
|
2
|
+
'AuthController_generateAccessToken': {
|
|
3
|
+
toolName: 'authenticate',
|
|
4
|
+
summary: 'Gerar token de acesso JWT',
|
|
5
|
+
description: `Autentica via client credentials (client-id e client-secret) e retorna um JWT.
|
|
6
|
+
|
|
7
|
+
Este e o primeiro passo para usar a API. O token retornado deve ser enviado
|
|
8
|
+
no header Authorization de todas as requisicoes subsequentes.
|
|
9
|
+
|
|
10
|
+
NOTA: No MCP server, a autenticacao e automatica — este tool e exposto apenas
|
|
11
|
+
para uso manual ou debug. O server gerencia o token internamente.`,
|
|
12
|
+
paramDescriptions: {
|
|
13
|
+
'gyra-client-id': 'Client ID da integracao. Obtido no painel Toolbox em Configuracoes > Integracao.',
|
|
14
|
+
'gyra-client-secret': 'Client Secret da integracao. Obtido no painel Toolbox em Configuracoes > Integracao.',
|
|
15
|
+
},
|
|
16
|
+
responseDescription: 'Objeto com accessToken (JWT) e expiresIn (tempo em segundos).',
|
|
17
|
+
tags: ['auth'],
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=auth.enrichment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.enrichment.js","sourceRoot":"","sources":["../../enrichments/auth.enrichment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAmC;IAC7D,oCAAoC,EAAE;QACpC,QAAQ,EAAE,cAAc;QACxB,OAAO,EAAE,2BAA2B;QACpC,WAAW,EAAE;;;;;;kEAMiD;QAC9D,iBAAiB,EAAE;YACjB,gBAAgB,EAAE,kFAAkF;YACpG,oBAAoB,EAAE,sFAAsF;SAC7G;QACD,mBAAmB,EAAE,+DAA+D;QACpF,IAAI,EAAE,CAAC,MAAM,CAAC;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/credential.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAgEhE,CAAC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export const credentialEnrichments = {
|
|
2
|
+
'CredentialController_create': {
|
|
3
|
+
toolName: 'create_credential',
|
|
4
|
+
summary: 'Criar credencial de integracao',
|
|
5
|
+
description: `Cria uma credencial para integracao com servicos externos (Serasa, SCR, etc.).
|
|
6
|
+
|
|
7
|
+
Credenciais sao necessarias para que o Gyra+ consulte fontes de dados externas
|
|
8
|
+
durante a geracao de relatorios. O tipo de integracao determina quais dados
|
|
9
|
+
serao consultados.
|
|
10
|
+
|
|
11
|
+
Requer permissao can-manage-settings.`,
|
|
12
|
+
paramDescriptions: {
|
|
13
|
+
'integrationType': 'Tipo da integracao (ex: SERASA, SCR, BDC).',
|
|
14
|
+
'name': 'Nome descritivo da credencial.',
|
|
15
|
+
'type': 'Tipo de credencial.',
|
|
16
|
+
'credentials': 'Objeto com username e password do servico externo.',
|
|
17
|
+
},
|
|
18
|
+
responseDescription: 'Credencial criada com id, nome, tipo e status.',
|
|
19
|
+
tags: ['credential', 'integration'],
|
|
20
|
+
},
|
|
21
|
+
'CredentialController_findAll': {
|
|
22
|
+
toolName: 'list_credentials',
|
|
23
|
+
summary: 'Listar credenciais de integracao',
|
|
24
|
+
description: `Lista todas as credenciais de integracao da organizacao.
|
|
25
|
+
Retorna os metadados das credenciais (sem senhas expostas).`,
|
|
26
|
+
responseDescription: 'Array de credenciais com id, nome, tipo e integrationType.',
|
|
27
|
+
tags: ['credential', 'integration'],
|
|
28
|
+
},
|
|
29
|
+
'CredentialController_findOne': {
|
|
30
|
+
toolName: 'get_credential',
|
|
31
|
+
summary: 'Consultar credencial por ID',
|
|
32
|
+
description: `Retorna detalhes de uma credencial de integracao especifica.`,
|
|
33
|
+
paramDescriptions: {
|
|
34
|
+
'id': 'ID da credencial.',
|
|
35
|
+
},
|
|
36
|
+
responseDescription: 'Credencial com id, nome, tipo, integrationType e metadados.',
|
|
37
|
+
tags: ['credential', 'integration'],
|
|
38
|
+
},
|
|
39
|
+
'CredentialController_update': {
|
|
40
|
+
toolName: 'update_credential',
|
|
41
|
+
summary: 'Atualizar credencial de integracao',
|
|
42
|
+
description: `Atualiza uma credencial de integracao existente.
|
|
43
|
+
Pode alterar nome, tipo ou as credenciais de acesso (username/password).`,
|
|
44
|
+
paramDescriptions: {
|
|
45
|
+
'id': 'ID da credencial a atualizar.',
|
|
46
|
+
},
|
|
47
|
+
responseDescription: 'Credencial atualizada.',
|
|
48
|
+
tags: ['credential', 'integration'],
|
|
49
|
+
},
|
|
50
|
+
'CredentialController_delete': {
|
|
51
|
+
toolName: 'delete_credential',
|
|
52
|
+
summary: 'Deletar credencial de integracao',
|
|
53
|
+
description: `Remove uma credencial de integracao. Relatorios futuros que dependam
|
|
54
|
+
desta integracao podem falhar se nao houver outra credencial configurada.`,
|
|
55
|
+
paramDescriptions: {
|
|
56
|
+
'id': 'ID da credencial a remover.',
|
|
57
|
+
},
|
|
58
|
+
responseDescription: 'Confirmacao de remocao.',
|
|
59
|
+
tags: ['credential', 'integration'],
|
|
60
|
+
},
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=credential.enrichment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential.enrichment.js","sourceRoot":"","sources":["../../enrichments/credential.enrichment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAmC;IACnE,6BAA6B,EAAE;QAC7B,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE;;;;;;sCAMqB;QAClC,iBAAiB,EAAE;YACjB,iBAAiB,EAAE,4CAA4C;YAC/D,MAAM,EAAE,gCAAgC;YACxC,MAAM,EAAE,qBAAqB;YAC7B,aAAa,EAAE,oDAAoD;SACpE;QACD,mBAAmB,EAAE,gDAAgD;QACrE,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KACpC;IAED,8BAA8B,EAAE;QAC9B,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE;4DAC2C;QACxD,mBAAmB,EAAE,4DAA4D;QACjF,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KACpC;IAED,8BAA8B,EAAE;QAC9B,QAAQ,EAAE,gBAAgB;QAC1B,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE,8DAA8D;QAC3E,iBAAiB,EAAE;YACjB,IAAI,EAAE,mBAAmB;SAC1B;QACD,mBAAmB,EAAE,6DAA6D;QAClF,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KACpC;IAED,6BAA6B,EAAE;QAC7B,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EAAE;yEACwD;QACrE,iBAAiB,EAAE;YACjB,IAAI,EAAE,+BAA+B;SACtC;QACD,mBAAmB,EAAE,wBAAwB;QAC7C,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KACpC;IAED,6BAA6B,EAAE;QAC7B,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE;0EACyD;QACtE,iBAAiB,EAAE;YACjB,IAAI,EAAE,6BAA6B;SACpC;QACD,mBAAmB,EAAE,yBAAyB;QAC9C,IAAI,EAAE,CAAC,YAAY,EAAE,aAAa,CAAC;KACpC;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-policy.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/credit-policy.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA+ClE,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export const creditPolicyEnrichments = {
|
|
2
|
+
'PolicyController_find': {
|
|
3
|
+
toolName: 'list_policies',
|
|
4
|
+
summary: 'Listar politicas de credito',
|
|
5
|
+
description: `Lista as politicas de credito da organizacao.
|
|
6
|
+
|
|
7
|
+
Cada politica define:
|
|
8
|
+
- Quais fontes de dados consultar (Serasa, SCR, etc.)
|
|
9
|
+
- Regras de aprovacao automatica (score, limites, restricoes)
|
|
10
|
+
- Tipo de relatorio gerado (SIMPLES, ESSENCIAL, COMPLETO, COMPLETO+)
|
|
11
|
+
- Grupos de regras com pesos e thresholds
|
|
12
|
+
|
|
13
|
+
O policyId retornado e necessario para criar relatorios (create_report).
|
|
14
|
+
|
|
15
|
+
Filtros opcionais:
|
|
16
|
+
- enabled: true para ver apenas politicas ativas
|
|
17
|
+
- protected: true para incluir politicas protegidas (padrao do sistema)`,
|
|
18
|
+
paramDescriptions: {
|
|
19
|
+
'enabled': 'Filtrar por politicas ativas. "true" ou "false" (como string).',
|
|
20
|
+
'protected': 'Incluir politicas protegidas do sistema. "true" ou "false" (como string).',
|
|
21
|
+
},
|
|
22
|
+
responseDescription: 'Array de politicas com id, name, enabled, documentType, grupos de regras e configuracoes.',
|
|
23
|
+
examples: [
|
|
24
|
+
{ name: 'Listar apenas ativas', params: { enabled: 'true' } },
|
|
25
|
+
{ name: 'Listar todas', params: {} },
|
|
26
|
+
],
|
|
27
|
+
tags: ['credit-policy'],
|
|
28
|
+
},
|
|
29
|
+
'PolicyController_saveBatchPolicy': {
|
|
30
|
+
toolName: 'save_batch_policy',
|
|
31
|
+
summary: 'Salvar politica de credito completa',
|
|
32
|
+
description: `Salva uma politica de credito inteira com todas as regras, grupos, scores e riscos.
|
|
33
|
+
|
|
34
|
+
Esta e uma operacao de batch — envia a politica completa (grupos de regras,
|
|
35
|
+
configuracoes de score, niveis de risco, integracao) numa unica requisicao.
|
|
36
|
+
|
|
37
|
+
Requer permissao can-manage-credit-policy.
|
|
38
|
+
|
|
39
|
+
CUIDADO: Esta operacao sobrescreve TODA a politica. Sempre busque a politica
|
|
40
|
+
atual com list_policies antes de modificar.`,
|
|
41
|
+
paramDescriptions: {
|
|
42
|
+
'id': 'ID da politica a salvar.',
|
|
43
|
+
},
|
|
44
|
+
responseDescription: 'Politica atualizada com todas as regras e configuracoes.',
|
|
45
|
+
tags: ['credit-policy'],
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=credit-policy.enrichment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credit-policy.enrichment.js","sourceRoot":"","sources":["../../enrichments/credit-policy.enrichment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,uBAAuB,GAAmC;IACrE,uBAAuB,EAAE;QACvB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,6BAA6B;QACtC,WAAW,EAAE;;;;;;;;;;;;wEAYuD;QACpE,iBAAiB,EAAE;YACjB,SAAS,EAAE,gEAAgE;YAC3E,WAAW,EAAE,2EAA2E;SACzF;QACD,mBAAmB,EAAE,2FAA2F;QAChH,QAAQ,EAAE;YACR,EAAE,IAAI,EAAE,sBAAsB,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;YAC7D,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,EAAE,EAAE,EAAE;SACrC;QACD,IAAI,EAAE,CAAC,eAAe,CAAC;KACxB;IAED,kCAAkC,EAAE;QAClC,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,qCAAqC;QAC9C,WAAW,EAAE;;;;;;;;4CAQ2B;QACxC,iBAAiB,EAAE;YACjB,IAAI,EAAE,0BAA0B;SACjC;QACD,mBAAmB,EAAE,0DAA0D;QAC/E,IAAI,EAAE,CAAC,eAAe,CAAC;KACxB;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ToolEnrichment } from './types.js';
|
|
2
|
+
export type { ToolEnrichment } from './types.js';
|
|
3
|
+
export { PUBLIC_OPERATION_IDS } from './public-endpoints.js';
|
|
4
|
+
/**
|
|
5
|
+
* Registry completo de enrichments para endpoints publicos.
|
|
6
|
+
* Chave = operationId do OpenAPI (gerado pelo @nestjs/swagger)
|
|
7
|
+
* Valor = enrichment com nome, descricao e metadados do tool MCP
|
|
8
|
+
*/
|
|
9
|
+
export declare const enrichmentRegistry: Record<string, ToolEnrichment>;
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../enrichments/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AASjD,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAQ7D,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { authEnrichments } from './auth.enrichment.js';
|
|
2
|
+
import { reportEnrichments } from './report.enrichment.js';
|
|
3
|
+
import { sectionEnrichments } from './section.enrichment.js';
|
|
4
|
+
import { creditPolicyEnrichments } from './credit-policy.enrichment.js';
|
|
5
|
+
import { webhookEnrichments } from './webhook.enrichment.js';
|
|
6
|
+
import { credentialEnrichments } from './credential.enrichment.js';
|
|
7
|
+
import { insightEnrichments } from './insight.enrichment.js';
|
|
8
|
+
export { PUBLIC_OPERATION_IDS } from './public-endpoints.js';
|
|
9
|
+
/**
|
|
10
|
+
* Registry completo de enrichments para endpoints publicos.
|
|
11
|
+
* Chave = operationId do OpenAPI (gerado pelo @nestjs/swagger)
|
|
12
|
+
* Valor = enrichment com nome, descricao e metadados do tool MCP
|
|
13
|
+
*/
|
|
14
|
+
export const enrichmentRegistry = {
|
|
15
|
+
...authEnrichments,
|
|
16
|
+
...reportEnrichments,
|
|
17
|
+
...sectionEnrichments,
|
|
18
|
+
...creditPolicyEnrichments,
|
|
19
|
+
...webhookEnrichments,
|
|
20
|
+
...credentialEnrichments,
|
|
21
|
+
...insightEnrichments,
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../enrichments/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAG7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAE7D;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,GAAG,eAAe;IAClB,GAAG,iBAAiB;IACpB,GAAG,kBAAkB;IACrB,GAAG,uBAAuB;IAC1B,GAAG,kBAAkB;IACrB,GAAG,qBAAqB;IACxB,GAAG,kBAAkB;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insight.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/insight.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAoC7D,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const insightEnrichments = {
|
|
2
|
+
'InsightController_generateInsight': {
|
|
3
|
+
toolName: 'generate_insight',
|
|
4
|
+
summary: 'Gerar insight com IA para secao do relatorio',
|
|
5
|
+
description: `Gera uma analise automatica com IA para uma secao especifica de um relatorio.
|
|
6
|
+
|
|
7
|
+
A IA analisa os dados da secao e produz um resumo interpretativo com
|
|
8
|
+
pontos de atencao e recomendacoes. O insight e salvo como comentario
|
|
9
|
+
na secao do relatorio.
|
|
10
|
+
|
|
11
|
+
Requisitos:
|
|
12
|
+
- A secao deve estar finalizada (processamento completo)
|
|
13
|
+
- A organizacao deve ter plano que suporte IA (nao disponivel em planos Trial ou Basic)
|
|
14
|
+
|
|
15
|
+
Use get_report para obter os IDs das secoes disponiveis.`,
|
|
16
|
+
paramDescriptions: {
|
|
17
|
+
'sectionId': 'ID da secao do relatorio para gerar o insight.',
|
|
18
|
+
},
|
|
19
|
+
responseDescription: 'Insight gerado com analise, pontos de atencao e recomendacoes.',
|
|
20
|
+
tags: ['ai', 'insight'],
|
|
21
|
+
},
|
|
22
|
+
'InsightController_reviewInsight': {
|
|
23
|
+
toolName: 'review_insight',
|
|
24
|
+
summary: 'Avaliar insight gerado pela IA',
|
|
25
|
+
description: `Submete uma avaliacao (review) para um insight gerado pela IA.
|
|
26
|
+
|
|
27
|
+
Permite que analistas avaliem a qualidade e relevancia do insight automatico,
|
|
28
|
+
contribuindo para melhoria continua do modelo.`,
|
|
29
|
+
paramDescriptions: {
|
|
30
|
+
'id': 'ID do insight a avaliar.',
|
|
31
|
+
'review': 'Texto da avaliacao/review do analista.',
|
|
32
|
+
},
|
|
33
|
+
responseDescription: 'Insight atualizado com a avaliacao registrada.',
|
|
34
|
+
tags: ['ai', 'insight'],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=insight.enrichment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"insight.enrichment.js","sourceRoot":"","sources":["../../enrichments/insight.enrichment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,mCAAmC,EAAE;QACnC,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,8CAA8C;QACvD,WAAW,EAAE;;;;;;;;;;yDAUwC;QACrD,iBAAiB,EAAE;YACjB,WAAW,EAAE,gDAAgD;SAC9D;QACD,mBAAmB,EAAE,gEAAgE;QACrF,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC;KACxB;IAED,iCAAiC,EAAE;QACjC,QAAQ,EAAE,gBAAgB;QAC1B,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE;;;+CAG8B;QAC3C,iBAAiB,EAAE;YACjB,IAAI,EAAE,0BAA0B;YAChC,QAAQ,EAAE,wCAAwC;SACnD;QACD,mBAAmB,EAAE,gDAAgD;QACrE,IAAI,EAAE,CAAC,IAAI,EAAE,SAAS,CAAC;KACxB;CACF,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UNICA FONTE DE VERDADE: quais endpoints aparecem no MCP externo/publico.
|
|
3
|
+
*
|
|
4
|
+
* Cada operationId aqui = 1 tool no MCP externo.
|
|
5
|
+
* Se nao esta aqui, o endpoint so aparece no MCP interno.
|
|
6
|
+
*
|
|
7
|
+
* Os operationIds sao gerados automaticamente pelo @nestjs/swagger
|
|
8
|
+
* no formato: {ControllerName}_{methodName}
|
|
9
|
+
*
|
|
10
|
+
* Para adicionar: inclua o operationId + crie enrichment correspondente
|
|
11
|
+
* Para remover: delete a linha
|
|
12
|
+
*/
|
|
13
|
+
export declare const PUBLIC_OPERATION_IDS: readonly ["AuthController_generateAccessToken", "ReportController_create", "ReportController_get", "ReportController_list", "ReportController_count", "ReportController_export", "ReportController_getReportSection", "ReportController_analyze", "ReportController_reAnalyze", "SectionController_get", "PolicyController_find", "PolicyController_saveBatchPolicy", "WebhookController_create", "WebhookController_find", "WebhookController_delete", "CredentialController_create", "CredentialController_findAll", "CredentialController_findOne", "CredentialController_update", "CredentialController_delete", "InsightController_generateInsight", "InsightController_reviewInsight"];
|
|
14
|
+
export type PublicOperationId = (typeof PUBLIC_OPERATION_IDS)[number];
|
|
15
|
+
//# sourceMappingURL=public-endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-endpoints.d.ts","sourceRoot":"","sources":["../../enrichments/public-endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,oBAAoB,8pBAoCvB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UNICA FONTE DE VERDADE: quais endpoints aparecem no MCP externo/publico.
|
|
3
|
+
*
|
|
4
|
+
* Cada operationId aqui = 1 tool no MCP externo.
|
|
5
|
+
* Se nao esta aqui, o endpoint so aparece no MCP interno.
|
|
6
|
+
*
|
|
7
|
+
* Os operationIds sao gerados automaticamente pelo @nestjs/swagger
|
|
8
|
+
* no formato: {ControllerName}_{methodName}
|
|
9
|
+
*
|
|
10
|
+
* Para adicionar: inclua o operationId + crie enrichment correspondente
|
|
11
|
+
* Para remover: delete a linha
|
|
12
|
+
*/
|
|
13
|
+
export const PUBLIC_OPERATION_IDS = [
|
|
14
|
+
// === Auth ===
|
|
15
|
+
'AuthController_generateAccessToken',
|
|
16
|
+
// === Report ===
|
|
17
|
+
'ReportController_create',
|
|
18
|
+
'ReportController_get',
|
|
19
|
+
'ReportController_list',
|
|
20
|
+
'ReportController_count',
|
|
21
|
+
'ReportController_export',
|
|
22
|
+
'ReportController_getReportSection',
|
|
23
|
+
'ReportController_analyze',
|
|
24
|
+
'ReportController_reAnalyze',
|
|
25
|
+
// === Section ===
|
|
26
|
+
'SectionController_get',
|
|
27
|
+
// === Credit Policy ===
|
|
28
|
+
'PolicyController_find',
|
|
29
|
+
'PolicyController_saveBatchPolicy',
|
|
30
|
+
// === Webhook ===
|
|
31
|
+
'WebhookController_create',
|
|
32
|
+
'WebhookController_find',
|
|
33
|
+
'WebhookController_delete',
|
|
34
|
+
// === Integration Credential ===
|
|
35
|
+
'CredentialController_create',
|
|
36
|
+
'CredentialController_findAll',
|
|
37
|
+
'CredentialController_findOne',
|
|
38
|
+
'CredentialController_update',
|
|
39
|
+
'CredentialController_delete',
|
|
40
|
+
// === AI Insight ===
|
|
41
|
+
'InsightController_generateInsight',
|
|
42
|
+
'InsightController_reviewInsight',
|
|
43
|
+
];
|
|
44
|
+
//# sourceMappingURL=public-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-endpoints.js","sourceRoot":"","sources":["../../enrichments/public-endpoints.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,eAAe;IACf,oCAAoC;IAEpC,iBAAiB;IACjB,yBAAyB;IACzB,sBAAsB;IACtB,uBAAuB;IACvB,wBAAwB;IACxB,yBAAyB;IACzB,mCAAmC;IACnC,0BAA0B;IAC1B,4BAA4B;IAE5B,kBAAkB;IAClB,uBAAuB;IAEvB,wBAAwB;IACxB,uBAAuB;IACvB,kCAAkC;IAElC,kBAAkB;IAClB,0BAA0B;IAC1B,wBAAwB;IACxB,0BAA0B;IAE1B,iCAAiC;IACjC,6BAA6B;IAC7B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;IAC7B,6BAA6B;IAE7B,qBAAqB;IACrB,mCAAmC;IACnC,iCAAiC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/report.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA0I5D,CAAC"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
export const reportEnrichments = {
|
|
2
|
+
'ReportController_create': {
|
|
3
|
+
toolName: 'create_report',
|
|
4
|
+
summary: 'Criar relatorio de analise de credito',
|
|
5
|
+
description: `Cria um novo relatorio de analise de credito para um CPF ou CNPJ.
|
|
6
|
+
|
|
7
|
+
O processamento e ASSINCRONO: voce recebe o reportId imediatamente com status PENDING.
|
|
8
|
+
Para saber quando o relatorio ficou pronto:
|
|
9
|
+
1. Configure um webhook (create_webhook) para receber notificacao automatica
|
|
10
|
+
2. Ou consulte periodicamente com get_report ate o status mudar
|
|
11
|
+
|
|
12
|
+
Status possiveis: PENDING → APPROVED, DENIED ou ALERT.
|
|
13
|
+
O tipo de relatorio (SIMPLES, ESSENCIAL, COMPLETO, COMPLETO+) e determinado
|
|
14
|
+
pela politica de credito (policyId) utilizada.
|
|
15
|
+
|
|
16
|
+
Use list_policies para obter os policyIds disponiveis na organizacao.`,
|
|
17
|
+
paramDescriptions: {
|
|
18
|
+
'document': 'CPF (11 digitos) ou CNPJ (14 digitos). Apenas numeros, sem pontos/barras/tracos.',
|
|
19
|
+
'policyId': 'ID da politica de credito a aplicar. Use list_policies para ver as disponiveis.',
|
|
20
|
+
'type': 'Tipo do documento: "CPF" para pessoa fisica, "CNPJ" para pessoa juridica.',
|
|
21
|
+
'months': 'Quantidade de meses para analise financeira (opcional).',
|
|
22
|
+
'operationResultId': 'ID do resultado de operacao vinculado (opcional).',
|
|
23
|
+
},
|
|
24
|
+
excludeParams: ['front'],
|
|
25
|
+
responseDescription: 'Objeto do relatorio com id, status (PENDING), document, type e createdAt.',
|
|
26
|
+
examples: [
|
|
27
|
+
{
|
|
28
|
+
name: 'Criar relatorio CNPJ',
|
|
29
|
+
params: { document: '43591367000130', policyId: '679955e0485aa2f033203f98', type: 'CNPJ' },
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Criar relatorio CPF',
|
|
33
|
+
params: { document: '12345678901', policyId: '679955e0485aa2f033203f98', type: 'CPF' },
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
tags: ['report'],
|
|
37
|
+
},
|
|
38
|
+
'ReportController_get': {
|
|
39
|
+
toolName: 'get_report',
|
|
40
|
+
summary: 'Consultar relatorio por ID',
|
|
41
|
+
description: `Retorna o relatorio completo com secoes, decisao da politica e score.
|
|
42
|
+
|
|
43
|
+
Se o relatorio esta em processamento, o status sera PENDING.
|
|
44
|
+
Quando pronto, o objeto retornado contem:
|
|
45
|
+
- status: APPROVED, DENIED ou ALERT
|
|
46
|
+
- policyResult: decisao automatica com regras avaliadas
|
|
47
|
+
- sections[]: array de secoes (BASIC_INFORMATION, PROCESSES, PROTESTS, SCR, etc.)
|
|
48
|
+
- commentary: analise do analista (se houver)
|
|
49
|
+
|
|
50
|
+
Use details=false para obter apenas metadados sem o conteudo das secoes.`,
|
|
51
|
+
paramDescriptions: {
|
|
52
|
+
'id': 'ID do relatorio (ObjectId). Retornado pelo create_report.',
|
|
53
|
+
'details': 'Defina como "false" para omitir detalhes das secoes. Util para verificar status rapidamente.',
|
|
54
|
+
},
|
|
55
|
+
excludeParams: ['tabType'],
|
|
56
|
+
responseDescription: 'Relatorio completo com secoes, decisao e metadados.',
|
|
57
|
+
tags: ['report'],
|
|
58
|
+
},
|
|
59
|
+
'ReportController_list': {
|
|
60
|
+
toolName: 'list_reports',
|
|
61
|
+
summary: 'Listar relatorios da organizacao',
|
|
62
|
+
description: `Lista relatorios com filtros opcionais. Retorna relatorios da organizacao
|
|
63
|
+
autenticada. Analistas de credito veem apenas os proprios relatorios.
|
|
64
|
+
|
|
65
|
+
Suporta paginacao e filtros por status, documento, periodo etc.`,
|
|
66
|
+
responseDescription: 'Array de relatorios com metadados (sem secoes detalhadas).',
|
|
67
|
+
tags: ['report'],
|
|
68
|
+
},
|
|
69
|
+
'ReportController_count': {
|
|
70
|
+
toolName: 'count_reports',
|
|
71
|
+
summary: 'Contar relatorios',
|
|
72
|
+
description: `Retorna a contagem de relatorios que correspondem aos filtros aplicados.
|
|
73
|
+
Util para dashboards e analytics sem carregar os dados completos.`,
|
|
74
|
+
responseDescription: 'Objeto com count (numero de relatorios).',
|
|
75
|
+
tags: ['report'],
|
|
76
|
+
},
|
|
77
|
+
'ReportController_export': {
|
|
78
|
+
toolName: 'export_report',
|
|
79
|
+
summary: 'Exportar relatorio',
|
|
80
|
+
description: `Exporta um relatorio em formato PDF ou Excel.
|
|
81
|
+
|
|
82
|
+
A exportacao e processada de forma assincrona (retorna HTTP 202 Accepted).
|
|
83
|
+
O arquivo sera enviado por email ou disponibilizado para download.`,
|
|
84
|
+
paramDescriptions: {
|
|
85
|
+
'id': 'ID do relatorio a exportar.',
|
|
86
|
+
'type': 'Tipo de exportacao (opcional).',
|
|
87
|
+
'exportFormat': 'Formato: PDF ou Excel (opcional).',
|
|
88
|
+
},
|
|
89
|
+
responseDescription: 'HTTP 202 Accepted. O arquivo sera processado em background.',
|
|
90
|
+
tags: ['report'],
|
|
91
|
+
},
|
|
92
|
+
'ReportController_getReportSection': {
|
|
93
|
+
toolName: 'get_report_section_by_type',
|
|
94
|
+
summary: 'Consultar secao especifica do relatorio',
|
|
95
|
+
description: `Retorna uma secao especifica de um relatorio pelo tipo.
|
|
96
|
+
|
|
97
|
+
Tipos de secao disponiveis:
|
|
98
|
+
- BASIC_INFORMATION: dados cadastrais, endereco, socios
|
|
99
|
+
- PROCESSES: processos judiciais
|
|
100
|
+
- PROTESTS: protestos em cartorio
|
|
101
|
+
- PEFIN_REFIN: dividas Pefin/Refin (Serasa)
|
|
102
|
+
- SCR: dados do Sistema de Informacoes de Credito do Banco Central
|
|
103
|
+
- PEP_SANCTIONS: Pessoa Politicamente Exposta e sancoes
|
|
104
|
+
- CREDIT_POLICY: resultado da avaliacao da politica de credito`,
|
|
105
|
+
paramDescriptions: {
|
|
106
|
+
'id': 'ID do relatorio.',
|
|
107
|
+
'sectionType': 'Tipo da secao (ex: BASIC_INFORMATION, PROCESSES, SCR, CREDIT_POLICY).',
|
|
108
|
+
},
|
|
109
|
+
responseDescription: 'Secao com dados detalhados do tipo solicitado.',
|
|
110
|
+
tags: ['report', 'section'],
|
|
111
|
+
},
|
|
112
|
+
'ReportController_analyze': {
|
|
113
|
+
toolName: 'analyze_report',
|
|
114
|
+
summary: 'Analisar/aprovar relatorio',
|
|
115
|
+
description: `Registra a analise de um relatorio por um analista de credito.
|
|
116
|
+
|
|
117
|
+
Define o status de aprovacao, comentarios do analista e decisao manual.
|
|
118
|
+
Usado quando a decisao automatica da politica precisa de revisao humana.`,
|
|
119
|
+
responseDescription: 'Relatorio atualizado com a analise registrada.',
|
|
120
|
+
tags: ['report'],
|
|
121
|
+
},
|
|
122
|
+
'ReportController_reAnalyze': {
|
|
123
|
+
toolName: 're_analyze_report',
|
|
124
|
+
summary: 'Re-analisar relatorio',
|
|
125
|
+
description: `Re-analisa um relatorio previamente analisado. Verifica se o usuario
|
|
126
|
+
tem permissao para editar relatorios com base na politica de credito configurada.
|
|
127
|
+
|
|
128
|
+
Util quando dados adicionais foram obtidos ou a decisao precisa ser revisada.`,
|
|
129
|
+
responseDescription: 'Relatorio atualizado com a nova analise.',
|
|
130
|
+
tags: ['report'],
|
|
131
|
+
},
|
|
132
|
+
};
|
|
133
|
+
//# sourceMappingURL=report.enrichment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.enrichment.js","sourceRoot":"","sources":["../../enrichments/report.enrichment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,iBAAiB,GAAmC;IAC/D,yBAAyB,EAAE;QACzB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,uCAAuC;QAChD,WAAW,EAAE;;;;;;;;;;;sEAWqD;QAClE,iBAAiB,EAAE;YACjB,UAAU,EAAE,kFAAkF;YAC9F,UAAU,EAAE,iFAAiF;YAC7F,MAAM,EAAE,2EAA2E;YACnF,QAAQ,EAAE,yDAAyD;YACnE,mBAAmB,EAAE,mDAAmD;SACzE;QACD,aAAa,EAAE,CAAC,OAAO,CAAC;QACxB,mBAAmB,EAAE,2EAA2E;QAChG,QAAQ,EAAE;YACR;gBACE,IAAI,EAAE,sBAAsB;gBAC5B,MAAM,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,EAAE,0BAA0B,EAAE,IAAI,EAAE,MAAM,EAAE;aAC3F;YACD;gBACE,IAAI,EAAE,qBAAqB;gBAC3B,MAAM,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,0BAA0B,EAAE,IAAI,EAAE,KAAK,EAAE;aACvF;SACF;QACD,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;IAED,sBAAsB,EAAE;QACtB,QAAQ,EAAE,YAAY;QACtB,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE;;;;;;;;;yEASwD;QACrE,iBAAiB,EAAE;YACjB,IAAI,EAAE,2DAA2D;YACjE,SAAS,EAAE,8FAA8F;SAC1G;QACD,aAAa,EAAE,CAAC,SAAS,CAAC;QAC1B,mBAAmB,EAAE,qDAAqD;QAC1E,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;IAED,uBAAuB,EAAE;QACvB,QAAQ,EAAE,cAAc;QACxB,OAAO,EAAE,kCAAkC;QAC3C,WAAW,EAAE;;;gEAG+C;QAC5D,mBAAmB,EAAE,4DAA4D;QACjF,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;IAED,wBAAwB,EAAE;QACxB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE;kEACiD;QAC9D,mBAAmB,EAAE,0CAA0C;QAC/D,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;IAED,yBAAyB,EAAE;QACzB,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE,oBAAoB;QAC7B,WAAW,EAAE;;;mEAGkD;QAC/D,iBAAiB,EAAE;YACjB,IAAI,EAAE,6BAA6B;YACnC,MAAM,EAAE,gCAAgC;YACxC,cAAc,EAAE,mCAAmC;SACpD;QACD,mBAAmB,EAAE,6DAA6D;QAClF,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;IAED,mCAAmC,EAAE;QACnC,QAAQ,EAAE,4BAA4B;QACtC,OAAO,EAAE,yCAAyC;QAClD,WAAW,EAAE;;;;;;;;;+DAS8C;QAC3D,iBAAiB,EAAE;YACjB,IAAI,EAAE,kBAAkB;YACxB,aAAa,EAAE,uEAAuE;SACvF;QACD,mBAAmB,EAAE,gDAAgD;QACrE,IAAI,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC;KAC5B;IAED,0BAA0B,EAAE;QAC1B,QAAQ,EAAE,gBAAgB;QAC1B,OAAO,EAAE,4BAA4B;QACrC,WAAW,EAAE;;;yEAGwD;QACrE,mBAAmB,EAAE,gDAAgD;QACrE,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;IAED,4BAA4B,EAAE;QAC5B,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,uBAAuB;QAChC,WAAW,EAAE;;;8EAG6D;QAC1E,mBAAmB,EAAE,0CAA0C;QAC/D,IAAI,EAAE,CAAC,QAAQ,CAAC;KACjB;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/section.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAsB7D,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export const sectionEnrichments = {
|
|
2
|
+
'SectionController_get': {
|
|
3
|
+
toolName: 'get_section',
|
|
4
|
+
summary: 'Consultar secao por ID',
|
|
5
|
+
description: `Retorna os dados detalhados de uma secao especifica de um relatorio.
|
|
6
|
+
|
|
7
|
+
Cada relatorio e composto por varias secoes que contem dados de diferentes fontes:
|
|
8
|
+
- Informacoes basicas (CNPJ/CPF, endereco, socios, QSA)
|
|
9
|
+
- Processos judiciais
|
|
10
|
+
- Protestos em cartorio
|
|
11
|
+
- Dividas Pefin/Refin (Serasa)
|
|
12
|
+
- Dados SCR (Banco Central)
|
|
13
|
+
- PEP e sancoes internacionais
|
|
14
|
+
- Resultado da politica de credito
|
|
15
|
+
|
|
16
|
+
Use get_report para obter a lista de secoes e seus IDs.`,
|
|
17
|
+
paramDescriptions: {
|
|
18
|
+
'id': 'ID da secao (ObjectId). Disponivel no array sections[] do relatorio.',
|
|
19
|
+
},
|
|
20
|
+
responseDescription: 'Secao completa com dados detalhados, status de finalizacao e metadados.',
|
|
21
|
+
tags: ['section'],
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=section.enrichment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"section.enrichment.js","sourceRoot":"","sources":["../../enrichments/section.enrichment.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,kBAAkB,GAAmC;IAChE,uBAAuB,EAAE;QACvB,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,wBAAwB;QACjC,WAAW,EAAE;;;;;;;;;;;wDAWuC;QACpD,iBAAiB,EAAE;YACjB,IAAI,EAAE,sEAAsE;SAC7E;QACD,mBAAmB,EAAE,yEAAyE;QAC9F,IAAI,EAAE,CAAC,SAAS,CAAC;KAClB;CACF,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipo de um enrichment para uma operacao OpenAPI.
|
|
3
|
+
* Cada enrichment transforma um endpoint da API em um tool MCP curado.
|
|
4
|
+
*/
|
|
5
|
+
export interface ToolEnrichment {
|
|
6
|
+
/** Nome do tool MCP (snake_case). Ex: 'create_report' */
|
|
7
|
+
toolName: string;
|
|
8
|
+
/** Resumo de uma linha */
|
|
9
|
+
summary: string;
|
|
10
|
+
/** Descricao rica para AI agents (multi-line, markdown) */
|
|
11
|
+
description: string;
|
|
12
|
+
/** Override das descricoes de parametros (chave = nome do param) */
|
|
13
|
+
paramDescriptions?: Record<string, string>;
|
|
14
|
+
/** Descricao do retorno */
|
|
15
|
+
responseDescription?: string;
|
|
16
|
+
/** Exemplos de uso */
|
|
17
|
+
examples?: Array<{
|
|
18
|
+
name: string;
|
|
19
|
+
params: Record<string, any>;
|
|
20
|
+
}>;
|
|
21
|
+
/** Tags para agrupamento logico */
|
|
22
|
+
tags?: string[];
|
|
23
|
+
/** Parametros a excluir do tool (internos, nao relevantes para clientes) */
|
|
24
|
+
excludeParams?: string[];
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../enrichments/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IAEjB,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAC;IAEhB,2DAA2D;IAC3D,WAAW,EAAE,MAAM,CAAC;IAEpB,oEAAoE;IACpE,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE3C,2BAA2B;IAC3B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B,sBAAsB;IACtB,QAAQ,CAAC,EAAE,KAAK,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;KAC7B,CAAC,CAAC;IAEH,mCAAmC;IACnC,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAEhB,4EAA4E;IAC5E,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../enrichments/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook.enrichment.d.ts","sourceRoot":"","sources":["../../enrichments/webhook.enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CA6D7D,CAAC"}
|