Propose OpenWall broadcasts and direct messaging contracts

This commit is contained in:
Anthony Ettinger 2026-09-13 07:02:10 +00:00
parent b6cd7cfde2
commit b68109fd46
15 changed files with 968 additions and 1 deletions

View file

@ -0,0 +1,16 @@
{
"openwall": "0.1-draft",
"id": "urn:uuid:5bb154dd-edb3-47b7-8fc6-4cb65a19a9f8",
"sender": "did:web:ops.example",
"createdAt": "2026-09-13T12:00:00Z",
"expiresAt": "2026-09-20T12:00:00Z",
"visibility": "public",
"topic": "releases",
"audience": {
"kind": "public"
},
"content": {
"mediaType": "text/plain",
"text": "Version 1.2 is available."
}
}

View file

@ -0,0 +1,27 @@
{
"openwall": "0.1-draft",
"id": "urn:uuid:94d908df-2876-48f1-bec8-c931f5c847d4",
"sender": "did:web:ops.example",
"createdAt": "2026-09-13T12:00:00Z",
"expiresAt": "2026-09-13T12:10:00Z",
"visibility": "private",
"topic": "maintenance",
"audience": {
"kind": "relationships",
"selectors": [
{
"source": "https://dev.example/contacts",
"actor": "did:web:ops.example",
"groups": [
"users"
],
"scope": "https://dev.example/workspaces/main"
}
],
"exclude": []
},
"content": {
"mediaType": "text/plain",
"text": "SERVER NOTICE\nMaintenance starts in 10 minutes.\nPlease save your work and pause running jobs."
}
}

View file

@ -0,0 +1,17 @@
{
"openwall": "0.1-draft",
"id": "urn:uuid:07b2b83e-27f6-4d59-bdfa-cdcd42548678",
"sender": "did:web:ops.example",
"createdAt": "2026-09-13T12:00:00Z",
"expiresAt": "2026-09-13T12:10:00Z",
"visibility": "private",
"topic": "maintenance",
"audience": {
"kind": "direct",
"recipient": "did:web:ada.example"
},
"content": {
"mediaType": "text/plain",
"text": "Ready when you are."
}
}

View file

@ -0,0 +1,13 @@
{
"openwall": "0.1-draft",
"id": "urn:uuid:963f9109-803f-4f0c-8506-10c70ec47ee6",
"messageId": "urn:uuid:94d908df-2876-48f1-bec8-c931f5c847d4",
"recipient": "did:web:ada.example",
"sequence": 3,
"state": "accepted",
"at": "2026-09-13T12:00:03Z",
"attempt": 1,
"route": "https://chat.example",
"providerMessageId": "provider-msg-123",
"deliveryId": "urn:uuid:db925d64-4e1a-4e5a-83c1-e37b68aa5eef"
}

View file

@ -0,0 +1,14 @@
{
"openwall": "0.1-draft",
"id": "urn:uuid:211bb615-90e1-4773-b7c0-49d59d7cd6bc",
"messageId": "urn:uuid:94d908df-2876-48f1-bec8-c931f5c847d4",
"recipient": "did:web:ada.example",
"sequence": 3,
"state": "retrying",
"at": "2026-09-13T12:00:03Z",
"attempt": 1,
"route": "https://chat.example",
"reason": "rate-limited",
"nextAttemptAt": "2026-09-13T12:01:00Z",
"deliveryId": "urn:uuid:db925d64-4e1a-4e5a-83c1-e37b68aa5eef"
}