Runs live, versioned Python application objects on one VM, with a suite of apps: projects, notes, tasks, files and more.

9 downloads

Install on DigitalOcean Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-object-server.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-object-server.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-object-server.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

Daniel Quellhorst Changelog for this batch. 65ef78d 3 hours, 42 minutes ago History
trading_partners.json · 3.0 KB · 36 lines
1{
2 "name": "trading_partners",
3 "title": "Trading Partners",
4 "version": 2,
5 "description": "The boxes this box exchanges documents with: explicit, mutual and revocable (docs/box-to-box-exchange.md). A row is `requested` when we asked and they have not accepted, `pending` when they asked and our operator has not accepted (the attention queue partners_to_accept), `connected` when both sides agreed, `disconnected` when either side here ended it -- every later document from them is refused, because every inbound check re-reads this row. pinned_keys is the only thing a signature is checked against: the keys their domain published when the relationship was made, plus keys a pinned key later vouched for. receive_types and send_types say which document types may cross in each direction. local_owner_id is whose books a received document lands in. Written by the exchange (actions and the inbound endpoint), never by the record API: only an admin or the owner role reads it, and nobody edits it by hand. v2: a disconnect is told to the other side with a signed connection_end, which that box records as disconnected_by them, with the reason; disconnected_by us is ours.",
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", "label": "Company",
11 "validation": {"max_length": 200}},
12 {"name": "status", "type": "enum", "required": true, "label": "Status",
13 "enum": ["requested", "pending", "connected", "disconnected"]},
14 {"name": "initiated_by", "type": "enum", "enum": ["us", "them"], "label": "Asked By"},
15 {"name": "exchange_endpoint", "type": "text", "label": "Endpoint"},
16 {"name": "pinned_keys", "type": "textarea", "label": "Pinned Keys"},
17 {"name": "request_key_id", "type": "text", "label": "Request Signed With"},
18 {"name": "profile", "type": "textarea", "label": "Profile"},
19 {"name": "receive_types", "type": "text", "label": "Accept From Them"},
20 {"name": "send_types", "type": "text", "label": "Send To Them"},
21 {"name": "local_owner_id", "type": "text", "label": "Books Of"},
22 {"name": "requested_at", "type": "text", "label": "Requested"},
23 {"name": "connected_at", "type": "text", "label": "Connected"},
24 {"name": "disconnected_at", "type": "text", "label": "Disconnected"},
25 {"name": "disconnected_by", "type": "enum", "enum": ["us", "them"], "label": "Ended By"},
26 {"name": "disconnect_reason", "type": "text", "label": "Why It Ended",
27 "validation": {"max_length": 300}},
28 {"name": "last_error", "type": "text", "label": "Last Error"},
29 {"name": "notes", "type": "textarea", "label": "Notes"},
30 {"name": "created_at", "type": "datetime", "read_only": true, "label": "Created"}
31 ],
32 "unique": [{"fields": ["domain"], "message": "That domain is already a trading partner."}],
33 "views": {"list_mode": "table", "list_fields": ["domain", "company_name", "status", "connected_at"],
34 "filter_fields": ["status"]},
35 "search": {"fields": ["domain", "company_name"]}
36}