docs consolidation work
This commit is contained in:
21
docs/modules/notify/schemas/receipt.schema.json
Normal file
21
docs/modules/notify/schemas/receipt.schema.json
Normal file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://stella-ops.org/notify/schemas/receipt.schema.json",
|
||||
"title": "Notify Delivery Receipt",
|
||||
"type": "object",
|
||||
"required": ["schema_version", "tenant_id", "delivery_id", "rule_id", "channel", "status", "sent_at"],
|
||||
"properties": {
|
||||
"schema_version": { "type": "string", "pattern": "^v[0-9]+\\.[0-9]+$" },
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"delivery_id": { "type": "string", "pattern": "^[0-9a-fA-F-]{18,36}$" },
|
||||
"rule_id": { "type": "string" },
|
||||
"channel": { "type": "string" },
|
||||
"status": { "type": "string", "enum": ["sent", "delivered", "failed", "queued", "acknowledged"] },
|
||||
"attempt": { "type": "integer", "minimum": 1 },
|
||||
"sent_at": { "type": "string", "format": "date-time" },
|
||||
"ack_url": { "type": "string", "format": "uri" },
|
||||
"response": { "type": "object" },
|
||||
"errors": { "type": "array", "items": { "type": "string" } }
|
||||
},
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user