From 3dddea83600f8f59e13dc95faa2a5d301bd3da92 Mon Sep 17 00:00:00 2001 From: Anton Shepilov Date: Wed, 8 Apr 2026 15:32:30 +0200 Subject: [PATCH] docs: document trashedBy/trashedAt in cozyMetadata and org_drive flag in sharings --- docs/io.cozy.files.md | 5 +++++ docs/io.cozy.sharings.md | 1 + 2 files changed, 6 insertions(+) diff --git a/docs/io.cozy.files.md b/docs/io.cozy.files.md index c01796b..28f7a1b 100644 --- a/docs/io.cozy.files.md +++ b/docs/io.cozy.files.md @@ -109,6 +109,11 @@ The `io.cozy.files` doctype has [the standard `cozyMetadata`](https://docs.cozy. - `slug`: {string} the slug of the application that has made the upload - `version`: {string} the version number of this application - `oauthClient`: {object} if the upload was made by an OAuth Client, information about it (`id`, `name`, and `kind`) +- `trashedAt`: {date} the server date/time when the file or folder was moved to the trash +- `trashedBy`: {object} information on who trashed the file or folder (only present when the file is in the trash) + - `kind`: {string} either `member` (a sharing member) or `anonymous-share` + - `displayName`: {string} the display name of the member who trashed the file (only when `kind` is `member`) + - `domain`: {string} the domain of the member's Cozy instance (only when `kind` is `member`) ### Example (JSON-API format) diff --git a/docs/io.cozy.sharings.md b/docs/io.cozy.sharings.md index 5d39893..2575431 100644 --- a/docs/io.cozy.sharings.md +++ b/docs/io.cozy.sharings.md @@ -25,6 +25,7 @@ documents and files from her cozy instance to other people. - a flag `open_sharing`: - `true` if any member of the sharing can add a new recipient - `false` if only the owner can add a new recipient +- a flag `org_drive`: present and `true` when the shared drive was created from an organization instance (i.e. the instance's canonical slug matches its `OrgID`) - Some technical data (`created_at`, `updated_at`, `app_slug`, `preview_path`, `triggers`, `credentials`) - A flag `initial_sync` present only when the initial replication is still running