Files
gru_emoney_token-factory/api/packages/schemas/jsonschema/Packet.json
defiQUG 651ff4f7eb Initial project setup: Add contracts, API definitions, tests, and documentation
- 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
2025-12-12 10:59:41 -08:00

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
}
}
}