JSON Schema definitions for all AURA protocol messages and data structures.
These schemas can be used for:
/scout)Messages sent by Scout agents.
| Schema | Description |
|---|---|
| intent.json | Intent registration payload |
| inquiry.json | Discovery inquiry |
| negotiation-request.json | Start negotiation |
| transaction-request.json | Complete transaction |
/beacon)Messages sent by Beacon agents.
| Schema | Description |
|---|---|
| proposition.json | Product/service offering |
| inquiry-response.json | Response to Scout inquiry |
| negotiation-offer.json | Pricing offer |
| transaction-confirmation.json | Transaction confirmed |
/transactions)Transaction and fulfillment structures.
| Schema | Description |
|---|---|
| payment.json | Payment details |
| fulfillment.json | Delivery information |
| refund.json | Refund request |
/shared)Common structures used across messages.
| Schema | Description |
|---|---|
| identity.json | Identity structure |
| preferences.json | User preferences |
| behavioral-data.json | Behavioral context |
| price-range.json | Price range structure |
import Ajv from 'ajv';
import intentSchema from './scout/intent.json';
const ajv = new Ajv();
const validate = ajv.compile(intentSchema);
const intent = {
category: 'electronics',
description: 'wireless headphones',
constraints: {
priceRange: { min: 100, max: 300 }
}
};
if (validate(intent)) {
console.log('Valid intent');
} else {
console.log('Validation errors:', validate.errors);
}
import jsonschema
import json
with open('schemas/scout/intent.json') as f:
schema = json.load(f)
intent = {
"category": "electronics",
"description": "wireless headphones",
"constraints": {
"priceRange": {"min": 100, "max": 300}
}
}
jsonschema.validate(intent, schema)
Schemas follow semantic versioning:
Current version: 1.0.0
When modifying schemas: