askrobots / dbbasic-object-server
Public
Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.
exchange_identity.json · 1.3 KB · 22 lines
| 1 | { |
| 2 | "name": "exchange_identity", |
| 3 | "title": "Exchange Identity", |
| 4 | "version": 1, |
| 5 | "description": "Who this box is to other boxes: one row, id `self`, written by action_exchange_admin (op=setup) and read by the profile at /.well-known/dbbasic. The domain is the company's identity and partners pin it, so once set it cannot be changed (a new domain is a new identity). profile_version rises whenever the profile changes (a key rotation, a new name). Admin only: no rule grants it to anyone else.", |
| 6 | "fields": [ |
| 7 | {"name": "id"}, |
| 8 | {"name": "domain", "type": "text", "required": true, "label": "Domain", |
| 9 | "validation": {"max_length": 253}}, |
| 10 | {"name": "company_name", "type": "text", "required": true, "label": "Company Name", |
| 11 | "validation": {"max_length": 200}}, |
| 12 | {"name": "document_types", "type": "text", "label": "Document Types", |
| 13 | "help": "Comma-separated: the document types this box accepts from anybody."}, |
| 14 | {"name": "profile_version", "type": "integer", "default": "1", "label": "Profile Version"}, |
| 15 | {"name": "created_at", "type": "datetime", "read_only": true, "label": "Created"}, |
| 16 | {"name": "updated_at", "type": "text", "label": "Updated"} |
| 17 | ], |
| 18 | "locked_when": [ |
| 19 | {"when": {"id": "self"}, "fields": ["domain"], |
| 20 | "message": "The exchange domain is this box's identity; partners pinned it."} |
| 21 | ] |
| 22 | } |