-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These capabilities are intended for checking inclusion, or getting the additional properties we store. This will allow clients to verify all the shards for an upload have been removed before removing an upload. ## `store/get` delegation ```js { can: "store/get", with: "did:key:abc...", nb: { link: "bag...", } } ``` ### Response Error if `link` shard cid is not in space or... ```ts interface StoreListItem { /** CID of the stored CAR. */ link: string /** Size in bytes of the stored CAR */ size: number /** Link to a related CAR, used for sharded uploads */ origin?: string, /** ISO-8601 timestamp when CAR was added to the space */ insertedAt: string, } ``` ## `upload/get` delegation ```js { can: "upload/get", with: "did:key:abc...", nb: { root: "bafyabc..." } } ``` ### Response `Error` if root is not in uploads for space or... ```ts interface UploadListItem { /** Root CID of the uploaded data item. */ root: string /** CIDs of CARs that contain the complete DAG for the uploaded data item. */ shards: string[] /** ISO-8601 timestamp when the upload was added to the space. */ insertedAt: string, /** ISO-8601 timestamp when the upload entry was last modified. */ updatedAt: string, } ``` --- see also: storacha/w3up#942 License: MIT --------- Signed-off-by: Oli Evans <oli@protocol.ai>
- Loading branch information
Showing
1 changed file
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters