- Add Foundry project configuration (foundry.toml, foundry.lock) - Add Solidity contracts (TokenFactory138, BridgeVault138, ComplianceRegistry, etc.) - Add API definitions (OpenAPI, GraphQL, gRPC, AsyncAPI) - Add comprehensive test suite (unit, integration, fuzz, invariants) - Add API services (REST, GraphQL, orchestrator, packet service) - Add documentation (ISO20022 mapping, runbooks, adapter guides) - Add development tools (RBC tool, Swagger UI, mock server) - Update OpenZeppelin submodules to v5.0.0
77 lines
2.0 KiB
JSON
77 lines
2.0 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"title": "Packet",
|
|
"description": "Non-scheme integration packet (PDF/AS4/Secure email)",
|
|
"type": "object",
|
|
"required": ["packetId", "payloadHash", "channel", "status"],
|
|
"properties": {
|
|
"packetId": {
|
|
"type": "string",
|
|
"description": "Unique packet identifier",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"triggerId": {
|
|
"type": "string",
|
|
"description": "Associated trigger identifier",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"instructionId": {
|
|
"type": "string",
|
|
"description": "Instruction identifier",
|
|
"pattern": "^[a-fA-F0-9]{64}$"
|
|
},
|
|
"payloadHash": {
|
|
"type": "string",
|
|
"description": "Hash of packet payload",
|
|
"pattern": "^0x[a-fA-F0-9]{64}$"
|
|
},
|
|
"channel": {
|
|
"type": "string",
|
|
"description": "Packet delivery channel",
|
|
"enum": ["PDF", "AS4", "EMAIL", "PORTAL"]
|
|
},
|
|
"messageRef": {
|
|
"type": "string",
|
|
"description": "Message reference for tracking",
|
|
"nullable": true
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"description": "Packet status",
|
|
"enum": ["GENERATED", "DISPATCHED", "DELIVERED", "ACKNOWLEDGED", "FAILED"]
|
|
},
|
|
"acknowledgements": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "object",
|
|
"properties": {
|
|
"ackId": {
|
|
"type": "string"
|
|
},
|
|
"receivedAt": {
|
|
"type": "string",
|
|
"format": "date-time"
|
|
},
|
|
"status": {
|
|
"type": "string",
|
|
"enum": ["RECEIVED", "ACCEPTED", "REJECTED"]
|
|
}
|
|
}
|
|
},
|
|
"description": "Acknowledgement records"
|
|
},
|
|
"createdAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "Packet creation timestamp"
|
|
},
|
|
"dispatchedAt": {
|
|
"type": "string",
|
|
"format": "date-time",
|
|
"description": "Packet dispatch timestamp",
|
|
"nullable": true
|
|
}
|
|
}
|
|
}
|
|
|