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.
dbbasic-package.json · 1.5 KB · 51 lines
| 1 | { |
| 2 | "id": "app-files", |
| 3 | "name": "Files", |
| 4 | "version": "0.1.1", |
| 5 | "description": "User file storage: upload, share, and download files whose visibility is governed by their metadata records. Requires DBBASIC_ENABLE_USER_FILES=true. 0.1.1: a row a registered user writes could point at anybody's record, because the rules asked only that the new row be the writer's own. Every pointer a non-admin can write now declares relation.requires (files.project_id read, files.task_id read), so over the API a row points only at a record its writer may see, or, where it moves money, stock or state of what it points at, may update; a record they may not see is answered like a missing one (docs/permissions-model.md, 'Pointing at a record you may not act on').", |
| 6 | "compatibility": { |
| 7 | "dbbasic_object_server": ">=0.1.0" |
| 8 | }, |
| 9 | "dependencies": [ |
| 10 | "app-projects" |
| 11 | ], |
| 12 | "objects": [ |
| 13 | { |
| 14 | "id": "site_files", |
| 15 | "path": "objects/site/files.py" |
| 16 | }, |
| 17 | { |
| 18 | "id": "site_attachments", |
| 19 | "path": "objects/site/attachments.py" |
| 20 | } |
| 21 | ], |
| 22 | "schemas": [ |
| 23 | { |
| 24 | "collection": "files", |
| 25 | "path": "schemas/files.json" |
| 26 | } |
| 27 | ], |
| 28 | "permissions": [ |
| 29 | { |
| 30 | "path": "permissions/rules.json" |
| 31 | } |
| 32 | ], |
| 33 | "seed": [ |
| 34 | { |
| 35 | "collection": "files", |
| 36 | "path": "seed/files.tsv" |
| 37 | } |
| 38 | ], |
| 39 | "migrations": [], |
| 40 | "nav": [ |
| 41 | { |
| 42 | "id": "files", |
| 43 | "label": "Files", |
| 44 | "path": "/files", |
| 45 | "blurb": "Upload, share and download files whose visibility their records govern", |
| 46 | "surface": "member", |
| 47 | "group": "Work", |
| 48 | "order": 80 |
| 49 | } |
| 50 | ] |
| 51 | } |