anytype_rpc/lib.rs
1//! Anytype gRPC client
2//!
3//! The gRPC api is subject to change and isn't officially supported for third party clients.
4//!
5//! This crate is experimental. If you need to use gRPC because some functionality isn't available in the
6//! [anytype](https://crates.io/crates/anytype) REST api, this crate may help.
7//!
8//! A very limited cli can list spaces and import and export objects.
9//!
10//! # See also
11//! - [anytype](https://crates.io/crates/anytype) a supported Anytype client that uses Anytype's official REST API.
12//! - [anyr](https://crates.io/crates/anyr) a CLI tool for listing, searching, and performing CRUD operations on anytype objects.
13//!
14//!
15// some protoc files after parsing have comment formatting that clippy doesn't like
16#![allow(clippy::doc_lazy_continuation)]
17
18/// Model types from anytype.model proto package
19pub mod model {
20 tonic::include_proto!("anytype.model");
21}
22
23/// Anytype service, events, and RPC types
24pub mod anytype {
25 tonic::include_proto!("anytype");
26
27 pub use client_commands_client::ClientCommandsClient;
28}
29
30/// Authentication helpers for creating sessions and attaching tokens.
31pub mod auth;
32/// gRPC client configuration and helpers.
33pub mod client;
34/// Helpers for headless config-based auth.
35pub mod config;
36/// Helpers for dataview view metadata.
37pub mod views;