manytype_protocol
Protobuf message types for the Any-Sync wire protocol and the Anytype block
model, generated with protoc-gen-dart for the
anytype SDK.
Some message names repeat across protocols, so the types are split into libraries:
| Library | Source schemas |
|---|---|
manytype_protocol.dart |
ACL records, tree changes, handshake, crypto |
spacesync.dart |
Space sync: head sync, object sync streams |
coordinator.dart |
Coordinator: space signing, network configuration |
consensus.dart |
Consensus log records |
filesync.dart |
File block push and fetch |
models.dart |
Anytype block model: blocks, relations, snapshots |
changes.dart |
Anytype object changes |
events.dart |
Anytype events used to decode block updates |
The schemas come from Any-Sync v0.9.9 and anytype-heart commit cfb7ec9,
with local adaptations to changes.proto, events.proto and the Any-Sync
file.proto. The ManyType repository
records the exact upstream source and hash of each schema in
proto/PROVENANCE.json and regenerates this code with pinned tools.
This is an independent package, not made or endorsed by Anytype or the Any Association.
License
This package is not under a single license:
- Types generated from Anytype-heart schemas (
models.dart,changes.dart,events.dart) are subject to the Any Source Available License 1.0, which permits use only for Non-Commercial Use or for Commercial Use in Allowed Networks (https://networks.any.coop). - Types generated from Any-Sync schemas are under the MIT License of the Any Association.
- First-party code is MIT licensed.
LICENSE describes which files carry which terms, and licenses/ holds the upstream license texts.
Libraries
- changes
- Sub-library for Change proto types from any_block/changes.proto.
- consensus
- Consensus protocol types - LogAdd, RecordAdd RPCs.
- coordinator
- Coordinator protocol types - SpaceSign, NetworkConfiguration RPCs.
- events
- Event protocol types needed for decoding block update payloads.
- filesync
- File sync protocol types - FilePush, FileGet RPCs.
- manytype_protocol
- Generated protobuf types for the Anytype wire protocol.
- models
- Block model types - SmartBlockSnapshotBase, Block, Relation.
- spacesync
- SpaceSync protocol types - HeadSync, ObjectSyncStream RPCs.