party.whey.files.defs

Repository @whey.party did:plc:mn45tewwnse5btfftvd3powc not from the namespace authority
Details · defs
Kinddefs
Authorityfiles.whey.party
Commit rev3n3jx5tpl6k23
Indexed

#file

object

The ordered bytes of a file. All chunks except the last are exactly chunkSize; the last is 1..chunkSize. size is the sum of chunk sizes.

Properties

chunkSize

requiredinteger

Nominal chunk size in bytes. The last chunk may be smaller. 4 MiB is the default; 64 MiB is the protocol ceiling.

  • minimum: 65536
  • maximum: 67108864

chunks

requiredarray
  • maxLength: 4096
itemsblob
  • maxSize: 67108864
  • accept: */*

mimeType

requiredstring
  • maxLength: 255

sha256

bytes

Optional whole-file SHA-256. Client-asserted; writers with no read access cannot verify it. Readers and fsck verify when present.

  • minLength: 32
  • maxLength: 32

size

requiredinteger

Total bytes. Must equal the sum of chunk sizes.

  • minimum: 0

#parent

object

A soft reference to this drive's root meta record or to a directory record. The drive identity and authority are implicit. A file or link is never a parent.

Properties

collection

requiredstring · nsid
  • enum: party.whey.files.meta | party.whey.files.dir

rkey

requiredstring · record-key

The parent's record key. It is 'self' when collection is the meta record, and a TID when collection is a directory.

#posix

object

Advisory POSIX metadata. Never enforced as a security boundary. Writers must set explicit values; readers must not invent different ones.

Properties

atime

string · datetime

ctime

string · datetime

gid

requiredinteger
  • minimum: 0

mode

requiredinteger

Permission bits only (0o7777). The file type is carried by the record collection.

  • minimum: 0
  • maximum: 4095

mtime

requiredstring · datetime

uid

requiredinteger
  • minimum: 0

#trashedFrom

object

Where a trashed node came from, so it can be restored.

Properties

name

requiredstring
  • minLength: 1
  • maxLength: 255

parent

requiredref
Reference

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • party.whey.files.file

    record not from the namespace authority

    A file. Its parent is the drive meta record or a directory.

  • A mutable file head, addressed by its stable record key in a private drive space.

  • One stored file. The record key is the file name with characters outside the record-key set replaced by '-'.

  • party.whey.files.dir

    record not from the namespace authority

    A directory. Its parent is the drive meta record or another directory.

  • party.whey.files.meta

    record not from the namespace authority

    The drive declaration and the root directory. There is no separate root node.