362 lines
8.4 KiB
JSON
362 lines
8.4 KiB
JSON
{
|
|
"roles": [
|
|
"ANALISTA"
|
|
],
|
|
"handlers": {
|
|
"INVOKE_INTEGRATION": {
|
|
"effect": "READ_ONLY",
|
|
"configurationSchema": {},
|
|
"inputSchema": {},
|
|
"outputSchema": {}
|
|
},
|
|
"REGISTER_DOCUMENT": {
|
|
"effect": "READ_ONLY",
|
|
"configurationSchema": {},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"documentId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
}
|
|
},
|
|
"required": [
|
|
"documentId"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"documentId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"requestId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"businessScope": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"documentType": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"storageDocumentId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"mimeType": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"sizeBytes": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"checksum": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
}
|
|
},
|
|
"required": [
|
|
"documentId",
|
|
"requestId",
|
|
"businessScope",
|
|
"documentType",
|
|
"storageDocumentId",
|
|
"mimeType",
|
|
"sizeBytes",
|
|
"checksum"
|
|
],
|
|
"additionalProperties": false
|
|
}
|
|
}
|
|
},
|
|
"integrations": {
|
|
"CLIENTES_CONSULTA": {
|
|
"defaultVersion": "1",
|
|
"contracts": {
|
|
"1": {
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"client"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"found": {
|
|
"type": "boolean"
|
|
},
|
|
"customerId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"found"
|
|
],
|
|
"additionalProperties": false,
|
|
"allOf": [
|
|
{
|
|
"if": {
|
|
"properties": {
|
|
"found": {
|
|
"const": true
|
|
}
|
|
}
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"customerId"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"effect": "READ_ONLY",
|
|
"profiles": {},
|
|
"defaultProfiles": {}
|
|
}
|
|
}
|
|
},
|
|
"DOCUMENTO_VALIDA": {
|
|
"defaultVersion": "1",
|
|
"contracts": {
|
|
"1": {
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"documentId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
}
|
|
},
|
|
"required": [
|
|
"documentId"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"status": {
|
|
"type": "string",
|
|
"enum": [
|
|
"VALID",
|
|
"INVALID"
|
|
]
|
|
},
|
|
"reasonCodes": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
}
|
|
},
|
|
"required": [
|
|
"status",
|
|
"reasonCodes"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"effect": "READ_ONLY",
|
|
"profiles": {
|
|
"LICENCIA_CONDUCIR": [
|
|
"1"
|
|
],
|
|
"INE": [
|
|
"1"
|
|
],
|
|
"ESTADO_CUENTA": [
|
|
"1"
|
|
]
|
|
},
|
|
"defaultProfiles": {
|
|
"LICENCIA_CONDUCIR": "1",
|
|
"INE": "1",
|
|
"ESTADO_CUENTA": "1"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"BURO_CONSULTA": {
|
|
"defaultVersion": "1",
|
|
"contracts": {
|
|
"1": {
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"client": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"consentimientoId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"client",
|
|
"consentimientoId"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"score": {
|
|
"type": "number"
|
|
},
|
|
"consultationId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"score",
|
|
"consultationId"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"effect": "READ_ONLY",
|
|
"profiles": {},
|
|
"defaultProfiles": {}
|
|
}
|
|
}
|
|
},
|
|
"DOCUMENTS_METADATA": {
|
|
"defaultVersion": "1",
|
|
"contracts": {
|
|
"1": {
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"documentId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"requestId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"businessScope": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
}
|
|
},
|
|
"required": [
|
|
"documentId",
|
|
"requestId",
|
|
"businessScope"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"outputSchema": {
|
|
"type": "object",
|
|
"properties": {
|
|
"documentId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"requestId": {
|
|
"type": "string",
|
|
"format": "uuid"
|
|
},
|
|
"businessScope": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"documentType": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"storageDocumentId": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"mimeType": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"sizeBytes": {
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
"checksum": {
|
|
"type": "string",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"scanStatus": {
|
|
"type": "string",
|
|
"enum": [
|
|
"CLEAN",
|
|
"PENDING",
|
|
"INFECTED"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"documentId",
|
|
"requestId",
|
|
"businessScope",
|
|
"documentType",
|
|
"storageDocumentId",
|
|
"mimeType",
|
|
"sizeBytes",
|
|
"checksum",
|
|
"scanStatus"
|
|
],
|
|
"additionalProperties": false
|
|
},
|
|
"effect": "READ_ONLY",
|
|
"profiles": {},
|
|
"defaultProfiles": {}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"documents": {
|
|
"DOCUMENT": {
|
|
"mimeTypes": [
|
|
"application/pdf"
|
|
],
|
|
"maxBytes": 1000
|
|
},
|
|
"LICENCIA_CONDUCIR": {
|
|
"mimeTypes": [
|
|
"application/pdf",
|
|
"image/jpeg",
|
|
"image/png"
|
|
],
|
|
"maxBytes": 5242880
|
|
},
|
|
"INE": {
|
|
"mimeTypes": [
|
|
"application/pdf",
|
|
"image/jpeg",
|
|
"image/png"
|
|
],
|
|
"maxBytes": 5242880
|
|
},
|
|
"ESTADO_CUENTA": {
|
|
"mimeTypes": [
|
|
"application/pdf"
|
|
],
|
|
"maxBytes": 5242880
|
|
}
|
|
}
|
|
}
|