# zaun-community-protocol 0.4.1

> API reference of the zaun_community_protocol crate, generated from rustdoc.

Generated from rustdoc for `zaun_community_protocol` 0.4.1. [Browse the full rustdoc HTML](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/index.html).

Zaun community protocol (`docs/community-protocol/specification.md`).

Pure data and functions: identifiers, canonical encoding, RFC 10073 composite post-quantum
signatures, signed objects, permissions, envelopes, commands, events and limits. No I/O, no
clock (time is always a parameter), no dependency on `simplex-client` (ADR-0001, ADR-0012).

## Constants

| Item | Summary |
|---|---|
| [`limits::ACK_CHANNELS`](/docs/reference/rust/zaun-community-protocol/constant-limits-ack_channels/) | `sync.ack` channels. |
| [`client::ACK_LINGER_MS`](/docs/reference/rust/zaun-community-protocol/constant-client-ack_linger_ms/) | How long a due `sync.ack` waits for a command to go with. A SimpleX connection sends one message at a time, so a command sent right after a lone ack would wait a relay round trip b |
| [`limits::ACTIVITY_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-activity_max/) | Presence `activity`, maximum scalars. |
| [`permissions::ALL`](/docs/reference/rust/zaun-community-protocol/constant-permissions-all/) | `ALL` means every known bit, never `u64::MAX` (permissions the protocol). |
| [`limits::APP_CHOICE_TEXT`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_choice_text/) | Choice `name` and string `value`, scalars. |
| [`limits::APP_COMMAND_DESCRIPTION`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_description/) | Command and option `description` (`CHAT_INPUT`), scalars. |
| [`limits::APP_COMMAND_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_name/) | Command and option `name`, scalars. |
| [`limits::APP_COMMAND_OPTIONS`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_options/) | Options per command or subcommand, and choices per option. |
| [`limits::APP_COMMAND_TEXT_TOTAL`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_text_total/) | All names, descriptions, choice names and values of one command, scalars. |
| [`limits::APP_COMMANDS`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_commands/) | Application commands per bot: `CHAT_INPUT`, `USER`, `MESSAGE`. |
| [`signed::APP_ID_MAX`](/docs/reference/rust/zaun-community-protocol/constant-signed-app_id_max/) | Bytes of `app_id` (3–64). |
| [`limits::APP_LOCALIZATIONS`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_localizations/) | Localized names per field. |
| [`limits::APP_OPTION_LENGTH_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-app_option_length_max/) | String option `min_length` / `max_length` bound. |
| [`limits::ATTACHMENT_MIME_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-attachment_mime_max/) | Attachment media type, bytes. |
| [`limits::ATTACHMENT_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-attachment_name/) | Attachment file name, scalars. |
| [`limits::ATTACHMENT_SIZE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-attachment_size_max/) | Largest attachment the protocol allows, in bytes (XFTP's 1 GiB); hosts set lower limits. |
| [`limits::ATTACHMENTS_PER_MESSAGE`](/docs/reference/rust/zaun-community-protocol/constant-limits-attachments_per_message/) | Attachments per message. |
| [`command::object::AUDIT_ACTIONS`](/docs/reference/rust/zaun-community-protocol/constant-command-object-audit_actions/) | Every audit action of the protocol, expanded from its `a.b\|c` notation. |
| [`limits::AUTOCOMPLETE_CHOICES`](/docs/reference/rust/zaun-community-protocol/constant-limits-autocomplete_choices/) | Autocomplete choices. |
| [`limits::BAN_DELETE_WINDOW_MAX_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-ban_delete_window_max_ms/) | Ban message-deletion window upper bound in milliseconds (7 days). |
| [`crypto::voice::BASE_KEY_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-base_key_len/) | An SFrame base key: 32 bytes. |
| [`limits::BOT_COMPONENT_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_component_max/) | The WebAssembly component inside a bot package, bytes. |
| [`limits::BOT_CONFIG_KEYS`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_config_keys/) | Settings a bot may declare (`config`). |
| [`limits::BOT_CONFIG_VALUE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_config_value_max/) | A setting's value or default, bytes. |
| [`limits::BOT_DESCRIPTION_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_description_max/) | A bot's `description`, scalars. |
| [`limits::BOT_HEADER_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_header_max/) | Bot package header, manifest and component sizes, bytes. |
| [`limits::BOT_LOCAL_NETWORK`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_local_network/) | `local_network` addresses a bot may ask for. |
| [`limits::BOT_MANIFEST_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_manifest_max/) | The manifest JSON inside a bot package, bytes. |
| [`limits::BOT_NETWORK_HOSTS`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_network_hosts/) | Network hosts a bot may ask for. |
| [`limits::BOT_STORAGE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bot_storage_max/) | A bot's key-value storage quota, bytes. |
| [`limits::BOTS_PER_COMMUNITY`](/docs/reference/rust/zaun-community-protocol/constant-limits-bots_per_community/) | Bots per community. |
| [`limits::BULK_DELETE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-bulk_delete_max/) | Most message ids in one `messages.bulk_deleted` event. |
| [`limits::BUTTON_LABEL_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-button_label_max/) | Button `label`, scalars. |
| [`limits::CAPABILITIES`](/docs/reference/rust/zaun-community-protocol/constant-limits-capabilities/) | `session.hello` capabilities: count and bytes each. |
| [`command::attachment::CAPTION_PREFIX`](/docs/reference/rust/zaun-community-protocol/constant-command-attachment-caption_prefix/) | What every Zaun file transfer's caption starts with; the attachment id follows. |
| [`limits::CHANNEL_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-channel_name/) | Channel name length. |
| [`limits::CHANNEL_TOPIC_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-channel_topic_max/) | Channel topic, maximum scalars. |
| [`limits::CHANNELS_PER_COMMUNITY`](/docs/reference/rust/zaun-community-protocol/constant-limits-channels_per_community/) | Channels per community, including categories. |
| [`limits::CHECKBOX_OPTIONS`](/docs/reference/rust/zaun-community-protocol/constant-limits-checkbox_options/) | Checkbox group options. |
| [`client::CLIENT_CAPABILITIES`](/docs/reference/rust/zaun-community-protocol/constant-client-client_capabilities/) | Capabilities this client offers in `session.hello`: fragment reassembly. |
| [`signed::CLOCK_SKEW_MS`](/docs/reference/rust/zaun-community-protocol/constant-signed-clock_skew_ms/) | Clock-skew allowance on delegation validity windows (rule 4), in milliseconds. |
| [`limits::COLOR_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-color_max/) | Largest role colour, `0xFFFFFF`. |
| [`limits::COMMUNITY_DESCRIPTION_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-community_description_max/) | Community description, maximum scalars. |
| [`limits::COMMUNITY_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-community_name/) | Community name length (scalars). |
| [`limits::COMPONENT_CUSTOM_ID`](/docs/reference/rust/zaun-community-protocol/constant-limits-component_custom_id/) | Component `custom_id`, bytes. |
| [`limits::COMPONENT_ROW_BUTTONS`](/docs/reference/rust/zaun-community-protocol/constant-limits-component_row_buttons/) | Buttons per action row. |
| [`limits::COMPONENT_ROWS`](/docs/reference/rust/zaun-community-protocol/constant-limits-component_rows/) | Top-level action rows of a message without `IS_COMPONENTS_V2`. |
| [`limits::COMPONENTS_TOTAL`](/docs/reference/rust/zaun-community-protocol/constant-limits-components_total/) | Components in one message, counting nested ones. |
| [`framing::app_data::DATA_TAG`](/docs/reference/rust/zaun-community-protocol/constant-framing-app_data-data_tag/) | The content type of a frame message (`MsgContent` `type`). |
| [`limits::DAY_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-day_ms/) | One day in milliseconds. |
| [`client::DEFAULT_TEXT_BUDGET`](/docs/reference/rust/zaun-community-protocol/constant-client-default_text_budget/) | Default per-message text budget in UTF-8 bytes. The real value is fixed by the transport adapter from `simplex_client::limits`; this crate never depends on it. |
| [`limits::DISPLAY_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-display_name/) | Member display name length. |
| [`permissions::DM_GRANTS`](/docs/reference/rust/zaun-community-protocol/constant-permissions-dm_grants/) | What both participants of a `dm` channel may always do. |
| [`permissions::DM_IF_GRANTED`](/docs/reference/rust/zaun-community-protocol/constant-permissions-dm_if_granted/) | What a participant may do in a `dm` channel only when its roles grant it in the community. |
| [`limits::DM_OPENS_PER_MINUTE`](/docs/reference/rust/zaun-community-protocol/constant-limits-dm_opens_per_minute/) | New DMs one bot may open per minute. |
| [`limits::DM_UNANSWERED_PER_HOUR`](/docs/reference/rust/zaun-community-protocol/constant-limits-dm_unanswered_per_hour/) | Messages a bot may write into a DM per hour while the member has never written in it. |
| [`keys::ED25519_PK_LEN`](/docs/reference/rust/zaun-community-protocol/constant-keys-ed25519_pk_len/) | Ed25519 public key length. |
| [`keys::ED25519_SIG_LEN`](/docs/reference/rust/zaun-community-protocol/constant-keys-ed25519_sig_len/) | Ed25519 signature length. |
| [`limits::EMBED_AUTHOR_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_author_name/) | Embed `author.name`, scalars. |
| [`limits::EMBED_DESCRIPTION`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_description/) | Embed `description`, scalars. |
| [`limits::EMBED_FIELD_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_field_name/) | Embed field `name`, scalars. |
| [`limits::EMBED_FIELD_VALUE`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_field_value/) | Embed field `value`, scalars. |
| [`limits::EMBED_FIELDS`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_fields/) | Fields per embed. |
| [`limits::EMBED_FOOTER_TEXT`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_footer_text/) | Embed `footer.text`, scalars. |
| [`limits::EMBED_TEXT_TOTAL`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_text_total/) | The text of all of a message's embeds together (titles, descriptions, field names and values, author names, footer texts), scalars. |
| [`limits::EMBED_TITLE`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_title/) | Embed `title`, scalars. |
| [`limits::EMBED_URL_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-embed_url_max/) | Embed `url` and `author.url`, maximum bytes. |
| [`limits::EMBEDS_PER_MESSAGE`](/docs/reference/rust/zaun-community-protocol/constant-limits-embeds_per_message/) | Embeds per message. |
| [`limits::EMOJI_MAX_BYTES`](/docs/reference/rust/zaun-community-protocol/constant-limits-emoji_max_bytes/) | Emoji, maximum bytes. |
| [`signed::ENTRY_NAME_MAX`](/docs/reference/rust/zaun-community-protocol/constant-signed-entry_name_max/) | Bytes per chunk name. |
| [`command::object::flags::EPHEMERAL`](/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-ephemeral/) | Only the invoker sees it; never stored. |
| [`client::EVENTS_BATCH_TYPE`](/docs/reference/rust/zaun-community-protocol/constant-client-events_batch_type/) | `type` of the coalesced event batch envelope. |
| [`envelope::EVENTS_TYPE`](/docs/reference/rust/zaun-community-protocol/constant-envelope-events_type/) | The `type` of a batch envelope: a frame type, not an event type. |
| [`permissions::EXPENSIVE_HISTORY_DEPTH`](/docs/reference/rust/zaun-community-protocol/constant-permissions-expensive_history_depth/) | `restrict_expensive`: a restricted member reads only the newest this-many sequences of a channel, `sequence > head − EXPENSIVE_HISTORY_DEPTH`. One full `message.history` page. |
| [`permissions::EXPENSIVE_MEMBER_PAGE`](/docs/reference/rust/zaun-community-protocol/constant-permissions-expensive_member_page/) | `restrict_expensive`: the most members one `member.list` page returns to a restricted member, who gets only the first page. |
| [`signed::EXPORT_FORMAT`](/docs/reference/rust/zaun-community-protocol/constant-signed-export_format/) | The bundle format this manifest describes. |
| [`framing::app_data::FALLBACK_TEXT`](/docs/reference/rust/zaun-community-protocol/constant-framing-app_data-fallback_text/) | What an app that does not know `DATA_TAG` shows. Fixed: it never carries frame content. |
| [`limits::FILE_UPLOAD_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-file_upload_max/) | Files in one file upload. |
| [`signed::FORMAT_V1`](/docs/reference/rust/zaun-community-protocol/constant-signed-format_v1/) | The `format` byte of every v1 signed object. |
| [`framing::FRAG_ID_CHARS`](/docs/reference/rust/zaun-community-protocol/constant-framing-frag_id_chars/) | Length of an encoded `FragId` (8 bytes, base64url without padding). |
| [`framing::FRAGMENT_PREFIX`](/docs/reference/rust/zaun-community-protocol/constant-framing-fragment_prefix/) | Prefix of a fragment message. |
| [`limits::FRAGMENT_TIMEOUT_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-fragment_timeout_ms/) | Milliseconds from the first to the last fragment before a reassembly is discarded. |
| [`framing::app_data::FRAME_KEY`](/docs/reference/rust/zaun-community-protocol/constant-framing-app_data-frame_key/) | The data key holding the frame message text. |
| [`crypto::voice::FRAMES_PER_KEY`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-frames_per_key/) | Frames one base key may seal before the sender must rekey (2^32: far beyond a session's length at 50 frames a second, and well inside AES-GCM's limits for distinct nonces). |
| [`command::object::bot_events::GROUPS`](/docs/reference/rust/zaun-community-protocol/constant-command-object-bot_events-groups/) | The groups a manifest may name, with their event types. |
| [`crypto::voice::HEADER_MAX`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-header_max/) | Longest header: config byte, 8-byte KID, 8-byte CTR. |
| [`limits::ICE_FIELD_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-ice_field_max/) | Longest ICE server URL, username or credential, in bytes. |
| [`limits::ICE_SERVERS_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-ice_servers_max/) | Most ICE servers a host lists in `voice.join`. |
| [`limits::ICON_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-icon_max/) | Descriptor icon, maximum bytes (PNG or WebP). |
| [`limits::IDEMPOTENCY_RETENTION_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-idempotency_retention_ms/) | Idempotency record retention lower bound in milliseconds. |
| [`limits::IN_FLIGHT_DEFAULT`](/docs/reference/rust/zaun-community-protocol/constant-limits-in_flight_default/) | Default in-flight window in SMP messages per member. |
| [`limits::IN_FLIGHT_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-in_flight_max/) | Highest configurable in-flight window (half the 128-message SMP queue stays free). |
| [`limits::IN_FLIGHT_MIN`](/docs/reference/rust/zaun-community-protocol/constant-limits-in_flight_min/) | Lowest configurable in-flight window (the largest frame must fit). |
| [`limits::INTERACTION_ANSWER_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-interaction_answer_ms/) | Interaction answer deadline, ms. |
| [`limits::INTERACTION_FOLLOWUPS`](/docs/reference/rust/zaun-community-protocol/constant-limits-interaction_followups/) | Follow-ups per interaction. |
| [`limits::INTERACTION_LIFETIME_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-interaction_lifetime_ms/) | Follow-ups, edits and modal submits are accepted this long after the interaction, ms. |
| [`limits::INVITE_EXPIRY_MAX_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-invite_expiry_max_ms/) | Invite expiry upper bound in milliseconds (30 days). |
| [`client::member::INVITE_LINK_PREFIX`](/docs/reference/rust/zaun-community-protocol/constant-client-member-invite_link_prefix/) | The link scheme and path. |
| [`limits::INVITE_MAX_USES`](/docs/reference/rust/zaun-community-protocol/constant-limits-invite_max_uses/) | Invite `max_uses` upper bound (0 means unlimited). |
| [`command::object::flags::IS_COMPONENTS_V2`](/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-is_components_v2/) | The message is laid out by components only. |
| [`crypto::voice::KEM_CIPHERTEXT_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-kem_ciphertext_len/) | X-Wing ciphertext (HPKE `enc`) length. |
| [`crypto::voice::KEM_PUBLIC_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-kem_public_len/) | X-Wing encapsulation (public) key length. |
| [`crypto::voice::KEY_PACKAGE_BYTES_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-key_package_bytes_len/) | Canonical bytes of a key package (all fields are fixed width): 1 306 bytes. |
| [`crypto::voice::KEY_PACKAGE_WIRE_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-key_package_wire_len/) | A key package on the wire: canonical bytes ‖ composite signature, 4 680 bytes. |
| [`crypto::LABEL`](/docs/reference/rust/zaun-community-protocol/constant-crypto-label/) | RFC 10073 `Label` for `id-MLDSA65-Ed25519-SHA512` (ASCII, 30 bytes); the ML-DSA context. |
| [`limits::LABEL_TEXT`](/docs/reference/rust/zaun-community-protocol/constant-limits-label_text/) | Label `label` and `description`, scalars. |
| [`limits::LAST_N`](/docs/reference/rust/zaun-community-protocol/constant-limits-last_n/) | `last_n` history bounds. |
| [`command::object::flags::LOADING`](/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-loading/) | A deferred reply still loading; set only by the host. |
| [`permissions::LOCK_MASK`](/docs/reference/rust/zaun-community-protocol/constant-permissions-lock_mask/) | Bits the channel `locked` flag removes (step 7d). |
| [`limits::LOCKDOWN_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-lockdown_ms/) | Lockdown duration bounds in milliseconds per `enable` (60 s – 7 days). |
| [`signed::MANIFEST_ENTRIES_MAX`](/docs/reference/rust/zaun-community-protocol/constant-signed-manifest_entries_max/) | At most this many chunks. |
| [`command::bot::MASKED`](/docs/reference/rust/zaun-community-protocol/constant-command-bot-masked/) | How a secret value is shown. |
| [`limits::MAX_CANONICAL_FIELD`](/docs/reference/rust/zaun-community-protocol/constant-limits-max_canonical_field/) | Unlisted variable-length fields in canonical encodings. |
| [`limits::MAX_COMMAND`](/docs/reference/rust/zaun-community-protocol/constant-limits-max_command/) | Maximum command envelope, except `community.create` and `community.descriptor.publish`. |
| [`limits::MAX_FRAGMENTS`](/docs/reference/rust/zaun-community-protocol/constant-limits-max_fragments/) | Fragments per frame. |
| [`limits::MAX_FRAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-max_frame/) | Maximum reassembled envelope in bytes. |
| [`envelope::MAX_JSON_INTEGER`](/docs/reference/rust/zaun-community-protocol/constant-envelope-max_json_integer/) | Largest integer a JSON number may carry here (`2^53 − 1`, the protocol). |
| [`limits::MAX_OPEN_REASSEMBLIES`](/docs/reference/rust/zaun-community-protocol/constant-limits-max_open_reassemblies/) | Open reassemblies per connection; a further one discards the oldest. |
| [`crypto::voice::MAX_RECIPIENTS`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-max_recipients/) | Most recipients one sender-keys message names (a mesh of 32 participants). |
| [`limits::MEDIA_DESCRIPTION_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-media_description_max/) | Media description, scalars. |
| [`limits::MEDIA_GALLERY_ITEMS`](/docs/reference/rust/zaun-community-protocol/constant-limits-media_gallery_items/) | Media gallery items. |
| [`limits::MENTION_MEMBERS`](/docs/reference/rust/zaun-community-protocol/constant-limits-mention_members/) | Member mentions per message. |
| [`limits::MENTION_ROLES`](/docs/reference/rust/zaun-community-protocol/constant-limits-mention_roles/) | Role mentions per message. |
| [`limits::MESSAGE_CONTENT`](/docs/reference/rust/zaun-community-protocol/constant-limits-message_content/) | Message content length. The content may be empty when the message has an attachment or an embed. |
| [`limits::MESSAGE_JSON_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-message_json_max/) | A message's `content` and `embeds` together, as JSON bytes the host writes them (`message_json_len`), so that every message, message event and report fits a page. One `message.send |
| [`framing::MIN_BUDGET`](/docs/reference/rust/zaun-community-protocol/constant-framing-min_budget/) | The smallest accepted per-message budget: a fragment header plus one character at its largest escaped (six bytes, `escaped_len`). |
| [`keys::MLDSA65_PK_LEN`](/docs/reference/rust/zaun-community-protocol/constant-keys-mldsa65_pk_len/) | ML-DSA-65 public key length. |
| [`keys::MLDSA65_SIG_LEN`](/docs/reference/rust/zaun-community-protocol/constant-keys-mldsa65_sig_len/) | ML-DSA-65 signature length. |
| [`limits::MODAL_ITEMS`](/docs/reference/rust/zaun-community-protocol/constant-limits-modal_items/) | Top-level modal items. |
| [`limits::MODAL_TITLE`](/docs/reference/rust/zaun-community-protocol/constant-limits-modal_title/) | Modal `title`, scalars. |
| [`permissions::safety::NEWCOMER_FORBIDDEN`](/docs/reference/rust/zaun-community-protocol/constant-permissions-safety-newcomer_forbidden/) | Bits `newcomer_restrictions` must never contain: newcomers always see and read. |
| [`limits::NEWCOMER_WINDOW_MAX_S`](/docs/reference/rust/zaun-community-protocol/constant-limits-newcomer_window_max_s/) | Largest lockdown `newcomer_window_s`: 30 days, in seconds. |
| [`command::lockdown::NEWCOMER_WINDOW_MAX_S`](/docs/reference/rust/zaun-community-protocol/constant-command-lockdown-newcomer_window_max_s/) | Largest `newcomer_window_s`: 30 days. |
| [`limits::OVERRIDES_PER_CHANNEL`](/docs/reference/rust/zaun-community-protocol/constant-limits-overrides_per_channel/) | Overrides per channel. |
| [`signed::PACKAGE_FORMAT`](/docs/reference/rust/zaun-community-protocol/constant-signed-package_format/) | The package format this header describes. |
| [`signed::PACKAGE_MAGIC`](/docs/reference/rust/zaun-community-protocol/constant-signed-package_magic/) | The file's first four bytes. |
| [`signed::PACKAGE_VERSION`](/docs/reference/rust/zaun-community-protocol/constant-signed-package_version/) | The container version byte after the magic. |
| [`limits::PAGE_BYTES`](/docs/reference/rust/zaun-community-protocol/constant-limits-page_bytes/) | The items of one paged response (`message.history` messages, `sync.events` events, `report.list` reports; for `sync.resume`, the whole body), as JSON bytes: below `MAX_FRAME` by en |
| [`limits::PAGE_LARGE`](/docs/reference/rust/zaun-community-protocol/constant-limits-page_large/) | Page size: `member.list`, `sync.events`. |
| [`limits::PAGE_SMALL`](/docs/reference/rust/zaun-community-protocol/constant-limits-page_small/) | Page size: `message.history`, `audit.list`, `invite.list`, `invite.uses`, `member.bans`, `membership.pending`, `report.list`. |
| [`permissions::PENDING_ALLOWED`](/docs/reference/rust/zaun-community-protocol/constant-permissions-pending_allowed/) | Commands a `Pending` member may issue. `verification.*` (P2, reserved) is not listed. |
| [`limits::PENDING_EXPIRY_MAX_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-pending_expiry_max_ms/) | Pending expiry upper bound in milliseconds (30 days); default 7 days. |
| [`limits::PENDING_PER_COMMUNITY`](/docs/reference/rust/zaun-community-protocol/constant-limits-pending_per_community/) | Pending members per community. |
| [`crypto::PREFIX`](/docs/reference/rust/zaun-community-protocol/constant-crypto-prefix/) | RFC 10073 `Prefix` (ASCII, 32 bytes). |
| [`framing::PROTOCOL_PREFIX`](/docs/reference/rust/zaun-community-protocol/constant-framing-protocol_prefix/) | Prefix shared by every protocol message; text without it is not a protocol message. |
| [`limits::PROTOCOL_VERSION`](/docs/reference/rust/zaun-community-protocol/constant-limits-protocol_version/) | Protocol version defined by this crate. |
| [`keys::PUBLIC_KEY_LEN`](/docs/reference/rust/zaun-community-protocol/constant-keys-public_key_len/) | Encoded `PublicKey` length. |
| [`limits::RADIO_OPTIONS`](/docs/reference/rust/zaun-community-protocol/constant-limits-radio_options/) | Radio group options. |
| [`limits::REACTIONS_PER_MESSAGE`](/docs/reference/rust/zaun-community-protocol/constant-limits-reactions_per_message/) | Distinct reaction emoji per message. |
| [`limits::REASON_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-reason_max/) | Moderation reason, maximum scalars. |
| [`crypto::voice::RECIPIENT_ENTRY_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-recipient_entry_len/) | One recipient entry: member id ‖ voice session ‖ SHA3-256 of the wrapped key. |
| [`crypto::voice::REPLAY_WINDOW`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-replay_window/) | Counters a receiver accepts behind the highest one seen (out-of-order delivery). |
| [`limits::REPORT_DESCRIPTION_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-report_description_max/) | Report description, maximum scalars. |
| [`limits::REPORT_EVIDENCE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-report_evidence_max/) | Report evidence, maximum messages. |
| [`limits::REPORT_NOTE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-report_note_max/) | Report resolution `note`, maximum scalars. |
| [`limits::REPORT_SNAPSHOT_BYTES`](/docs/reference/rust/zaun-community-protocol/constant-limits-report_snapshot_bytes/) | The evidence snapshots (content and embeds as JSON) one rendered report carries; the first snapshot always goes, and `evidence_next` names where the rest continue. |
| [`limits::REQUEST_NOTE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-request_note_max/) | Membership request note, maximum scalars. |
| [`command::RESERVED_COMMANDS`](/docs/reference/rust/zaun-community-protocol/constant-command-reserved_commands/) | The reserved governance commands of the protocol: answered with `UNSUPPORTED_FEATURE`. |
| [`command::RESERVED_NAMESPACES`](/docs/reference/rust/zaun-community-protocol/constant-command-reserved_namespaces/) | Reserved `type` namespaces of the protocol (prefixes including the dot): answered with `UNSUPPORTED_COMMAND`; v1 clients ignore events in them. |
| [`envelope::RESPONSE_TYPE`](/docs/reference/rust/zaun-community-protocol/constant-envelope-response_type/) | The `type` of every response envelope. |
| [`limits::RESUME_CHANNELS`](/docs/reference/rust/zaun-community-protocol/constant-limits-resume_channels/) | `sync.resume`: channels per request. |
| [`limits::RESUME_EVENTS_PER_STREAM`](/docs/reference/rust/zaun-community-protocol/constant-limits-resume_events_per_stream/) | `sync.resume`: events per stream. |
| [`limits::ROLE_NAME`](/docs/reference/rust/zaun-community-protocol/constant-limits-role_name/) | Role name length. |
| [`limits::ROLES_PER_COMMUNITY`](/docs/reference/rust/zaun-community-protocol/constant-limits-roles_per_community/) | Roles per community, including `@everyone`. |
| [`limits::ROLES_PER_MEMBER`](/docs/reference/rust/zaun-community-protocol/constant-limits-roles_per_member/) | Roles per member. |
| [`limits::ROTATIONS_PAGE`](/docs/reference/rust/zaun-community-protocol/constant-limits-rotations_page/) | Page size: `community.rotations`. |
| [`crypto::SECRET_KEY_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-secret_key_len/) | Length of SecretKey: `mldsaSeed` (32) ‖ `edSK` (32). |
| [`limits::SECTION_TEXTS`](/docs/reference/rust/zaun-community-protocol/constant-limits-section_texts/) | Section text displays. |
| [`limits::SELECT_OPTION_TEXT`](/docs/reference/rust/zaun-community-protocol/constant-limits-select_option_text/) | Select option `label`, `value`, `description`, scalars. |
| [`limits::SELECT_OPTIONS`](/docs/reference/rust/zaun-community-protocol/constant-limits-select_options/) | Select options. |
| [`limits::SELECT_PLACEHOLDER_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-select_placeholder_max/) | Select `placeholder`, scalars. |
| [`crypto::voice::SENDER_KEYS_BYTES_MAX`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sender_keys_bytes_max/) | Largest canonical sender-keys message: 2 090 bytes. |
| [`crypto::voice::SENDER_KEYS_FIXED_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sender_keys_fixed_len/) | Canonical bytes of a sender-keys message without its recipients. |
| [`crypto::voice::SENDER_KEYS_WIRE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sender_keys_wire_max/) | Largest sender-keys message on the wire: `u32` length ‖ bytes ‖ signature, 5 468 bytes. |
| [`command::object::flags::SETTABLE`](/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-settable/) | What a sender may set. |
| [`crypto::voice::SFRAME_CIPHER_SUITE`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sframe_cipher_suite/) | The SFrame cipher suite: `AES_256_GCM_SHA512_128`. |
| [`crypto::voice::SFRAME_OVERHEAD_MAX`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sframe_overhead_max/) | Most bytes SFrame adds to a frame: the longest header and the tag. |
| [`limits::SIGNAL_INTERVAL_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-signal_interval_ms/) | Minimum interval between signals per member per channel, in milliseconds. |
| [`keys::SIGNATURE_LEN`](/docs/reference/rust/zaun-community-protocol/constant-keys-signature_len/) | Encoded `Signature` length. |
| [`limits::SLOWMODE_MAX_S`](/docs/reference/rust/zaun-community-protocol/constant-limits-slowmode_max_s/) | Slowmode upper bound in seconds. |
| [`limits::SNAPSHOT_PAGE`](/docs/reference/rust/zaun-community-protocol/constant-limits-snapshot_page/) | `sync.snapshot` page. |
| [`crypto::voice::SUITE_V1`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-suite_v1/) | The voice suite of protocol version 1: X-Wing KEM, HPKE (HKDF-SHA256, AES-256-GCM), SFrame `AES_256_GCM_SHA512_128`. Unknown suites are rejected (ADR-0011 agility rules). |
| [`signed::SUPPORTED_WORLDS`](/docs/reference/rust/zaun-community-protocol/constant-signed-supported_worlds/) | The `zaun:bot` worlds a host built from this crate runs; a package for any other is refused at install and update (it could never load). Kept equal to the bot runtime's list. |
| [`command::object::flags::SUPPRESS_EMBEDS`](/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-suppress_embeds/) | Embeds are not shown. |
| [`command::object::flags::SUPPRESS_NOTIFICATIONS`](/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-suppress_notifications/) | Mentions do not notify. |
| [`permissions::SUSPENDED_ALLOWED`](/docs/reference/rust/zaun-community-protocol/constant-permissions-suspended_allowed/) | Commands a `Suspended` member may issue: the same as `Pending`. |
| [`limits::SUSPENSION_MAX_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-suspension_max_ms/) | Suspension upper bound in milliseconds (90 days), or until restored. |
| [`permissions::TABLE`](/docs/reference/rust/zaun-community-protocol/constant-permissions-table/) | Every command of the table with its requirement, in specification order. |
| [`crypto::voice::TAG_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-tag_len/) | AES-256-GCM tag length (HPKE and SFrame). |
| [`limits::TEXT_DISPLAY_TOTAL`](/docs/reference/rust/zaun-community-protocol/constant-limits-text_display_total/) | All text displays of one message or modal together, scalars. |
| [`limits::TEXT_INPUT_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-text_input_max/) | Text input value and length bounds, scalars. |
| [`limits::TEXT_INPUT_PLACEHOLDER_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-text_input_placeholder_max/) | Text input `placeholder`, scalars. |
| [`permissions::TIMEOUT_KEEP`](/docs/reference/rust/zaun-community-protocol/constant-permissions-timeout_keep/) | Bits a timed-out member keeps (step 7a). |
| [`limits::TIMEOUT_MAX_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-timeout_max_ms/) | Timeout upper bound in milliseconds (28 days). |
| [`limits::TYPING_COUNT_CAP`](/docs/reference/rust/zaun-community-protocol/constant-limits-typing_count_cap/) | The largest `count` of an anonymous `signal.typing`: 3 means "three or more", so a larger channel never learns exactly how many are typing. |
| [`permissions::UNBOUND_ALLOWED`](/docs/reference/rust/zaun-community-protocol/constant-permissions-unbound_allowed/) | Commands an unbound (negotiated) connection may send: `community.rotations` too, naming the community in the envelope's `community_id` (the chain is public and signed; a client nee |
| [`limits::UNBOUND_DEADLINE_MS`](/docs/reference/rust/zaun-community-protocol/constant-limits-unbound_deadline_ms/) | Unbound connection deadline (default) in milliseconds. |
| [`permissions::UNBOUND_ONLY`](/docs/reference/rust/zaun-community-protocol/constant-permissions-unbound_only/) | Commands that only make sense unbound; a bound connection gets `CONFLICT`. |
| [`signed::VERSION_MAX`](/docs/reference/rust/zaun-community-protocol/constant-signed-version_max/) | Bytes of `version`. |
| [`limits::VOICE_KEY_PACKAGE_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-voice_key_package_max/) | Largest `key_package` of `voice.join`, decoded bytes (opaque to the host; the media layer's packages are 4 680 bytes). |
| [`limits::VOICE_MESH_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-voice_mesh_max/) | The most participants a voice channel can have on any host (`mesh_max` ≤ this). Every participant's key package is in the `voice.join` response, which must fit in `MAX_FRAME` (9 ba |
| [`limits::VOICE_SENDER_KEYS_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-voice_sender_keys_max/) | Largest `sender_keys` of `voice.keys`, decoded bytes: the sender's signed message for one epoch, the same for every recipient (the media layer's are at most 5 468 bytes). |
| [`limits::VOICE_SIGNAL_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-voice_signal_max/) | Largest `data` of `voice.signal` (WebRTC SDP or ICE), decoded bytes. |
| [`limits::VOICE_USER_LIMIT`](/docs/reference/rust/zaun-community-protocol/constant-limits-voice_user_limit/) | `user_limit` of a voice channel. |
| [`limits::VOICE_WRAPPED_KEY_MAX`](/docs/reference/rust/zaun-community-protocol/constant-limits-voice_wrapped_key_max/) | Largest `wrapped` key of one `voice.keys` entry, decoded bytes (the media layer's are 1 168 bytes). |
| [`permissions::WAITING_MASK`](/docs/reference/rust/zaun-community-protocol/constant-permissions-waiting_mask/) | Bits the admission policy's waiting period withholds: posting, reacting and creating invitations. |
| [`framing::WHOLE_PREFIX`](/docs/reference/rust/zaun-community-protocol/constant-framing-whole_prefix/) | Prefix of a whole-envelope message. |
| [`signed::WORLD_MAX`](/docs/reference/rust/zaun-community-protocol/constant-signed-world_max/) | Bytes of `world`. |
| [`crypto::voice::WRAPPED_KEY_LEN`](/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-wrapped_key_len/) | A wrapped sender key: `enc ‖ AES-256-GCM(base key) ‖ tag`, 1 168 bytes. |

## Enums

| Item | Summary |
|---|---|
| [`permissions::Access`](/docs/reference/rust/zaun-community-protocol/enum-permissions-access/) | Who may send the command at all, before any bit is checked. |
| [`command::object::ActivityType`](/docs/reference/rust/zaun-community-protocol/enum-command-object-activitytype/) | What the member is doing. |
| [`signed::AdmissionMode`](/docs/reference/rust/zaun-community-protocol/enum-signed-admissionmode/) | `AdmissionSummary.mode`. |
| [`command::object::AdmissionVia`](/docs/reference/rust/zaun-community-protocol/enum-command-object-admissionvia/) | `admission.via`. SPEC: a plain string (`"invite" \| "request"`), not `{t}`. |
| [`command::object::Availability`](/docs/reference/rust/zaun-community-protocol/enum-command-object-availability/) | `availability`. SPEC: a plain string, as written in the spec. |
| [`envelope::BatchError`](/docs/reference/rust/zaun-community-protocol/enum-envelope-batcherror/) | A batch that breaks the rules of the protocol Indices count from 0 in `body.events`. |
| [`command::BodyError`](/docs/reference/rust/zaun-community-protocol/enum-command-bodyerror/) | A body that cannot be accepted. Each variant maps to one error code of the protocol; the envelope layer adds `request_id`, the message text and the extra fields. |
| [`command::object::BotKind`](/docs/reference/rust/zaun-community-protocol/enum-command-object-botkind/) | `kind` of a bot. |
| [`command::object::BotState`](/docs/reference/rust/zaun-community-protocol/enum-command-object-botstate/) | `state` of an installed bot. |
| [`client::BuildError`](/docs/reference/rust/zaun-community-protocol/enum-client-builderror/) | An owner or member object (descriptor, delegation, registration, body) could not be built. |
| [`command::object::ButtonStyle`](/docs/reference/rust/zaun-community-protocol/enum-command-object-buttonstyle/) | Button `style`: 1 primary, 2 secondary, 3 success, 4 danger, 5 link. |
| [`model::ChannelKind`](/docs/reference/rust/zaun-community-protocol/enum-model-channelkind/) | The kind of a channel (permissions the protocol, the protocol). |
| [`command::object::ChoiceValue`](/docs/reference/rust/zaun-community-protocol/enum-command-object-choicevalue/) | A choice `value`: a string or a number. |
| [`client::ClientError`](/docs/reference/rust/zaun-community-protocol/enum-client-clienterror/) | A command could not be prepared or the session refuses to send it. |
| [`client::ClientEvent`](/docs/reference/rust/zaun-community-protocol/enum-client-clientevent/) | One outcome for the application. |
| [`command::Command`](/docs/reference/rust/zaun-community-protocol/enum-command-command/) | A decoded command body: one variant per command of the protocol |
| [`command::object::CommandType`](/docs/reference/rust/zaun-community-protocol/enum-command-object-commandtype/) | `type` of a command: 1 `CHAT_INPUT` (a slash command), 2 `USER`, 3 `MESSAGE` (context menus). |
| [`command::object::Component`](/docs/reference/rust/zaun-community-protocol/enum-command-object-component/) | One component. The variant is the wire `type` number. |
| [`permissions::ConflictReason`](/docs/reference/rust/zaun-community-protocol/enum-permissions-conflictreason/) | Why a state transition does not apply (`CONFLICT`). |
| [`crypto::Context`](/docs/reference/rust/zaun-community-protocol/enum-crypto-context/) | An RFC 10073 `ctx` value of this protocol. The verifier always supplies the context of the object type it expects; it is never read from the input. |
| [`crypto::ContextStatus`](/docs/reference/rust/zaun-community-protocol/enum-crypto-contextstatus/) | Whether a context is part of v1 conformance. |
| [`command::interaction::CreateData`](/docs/reference/rust/zaun-community-protocol/enum-command-interaction-createdata/) | `interaction.create` data, by type. |
| [`encoding::DecodeError`](/docs/reference/rust/zaun-community-protocol/enum-encoding-decodeerror/) | The input is not a canonical encoding. |
| [`command::object::DefaultValueKind`](/docs/reference/rust/zaun-community-protocol/enum-command-object-defaultvaluekind/) | `default_values` entry kind of an entity select. |
| [`permissions::DenialReason`](/docs/reference/rust/zaun-community-protocol/enum-permissions-denialreason/) | Why a permission check failed, when a specific rule caused it (permissions the protocol). |
| [`framing::DiscardReason`](/docs/reference/rust/zaun-community-protocol/enum-framing-discardreason/) | Why a reassembly (or a fragment that would start one) was discarded. A discard produces no response; the sender's retry repairs it. |
| [`signed::Discovery`](/docs/reference/rust/zaun-community-protocol/enum-signed-discovery/) | `discovery` (field 17). |
| [`model::DistributionMode`](/docs/reference/rust/zaun-community-protocol/enum-model-distributionmode/) | How accepted channel-stream events travel (ADR-0009, the protocol, Appendix A). |
| [`encoding::EncodeError`](/docs/reference/rust/zaun-community-protocol/enum-encoding-encodeerror/) | A value cannot be encoded canonically: it would not decode. |
| [`framing::EncodeError`](/docs/reference/rust/zaun-community-protocol/enum-framing-encodeerror/) | Why an envelope cannot be framed. |
| [`event::EphemeralOp`](/docs/reference/rust/zaun-community-protocol/enum-event-ephemeralop/) | `op` of `interaction.message`. |
| [`error_code::ErrorCode`](/docs/reference/rust/zaun-community-protocol/enum-error_code-errorcode/) | A response error code. Clients branch on this, never on the message text. |
| [`event::Event`](/docs/reference/rust/zaun-community-protocol/enum-event-event/) | A decoded event body: one variant per event of the the protocol catalogue. |
| [`envelope::EventError`](/docs/reference/rust/zaun-community-protocol/enum-envelope-eventerror/) | An event envelope that breaks the rules of the protocol |
| [`client::ExpectedHost`](/docs/reference/rust/zaun-community-protocol/enum-client-expectedhost/) | The host the client expects to reach. The welcome's host key must match. |
| [`event::FailReason`](/docs/reference/rust/zaun-community-protocol/enum-event-failreason/) | Why an interaction failed. |
| [`permissions::GateDenial`](/docs/reference/rust/zaun-community-protocol/enum-permissions-gatedenial/) | Why the gate refused a command. |
| [`model::HistoryAccess`](/docs/reference/rust/zaun-community-protocol/enum-model-historyaccess/) | How much channel history a member may read (ADR-0014, the protocol). Stamped on each message at send time. |
| [`command::object::IcePolicy`](/docs/reference/rust/zaun-community-protocol/enum-command-object-icepolicy/) | Which ICE candidates clients may use. |
| [`envelope::IdempotencyKey`](/docs/reference/rust/zaun-community-protocol/enum-envelope-idempotencykey/) | The key an idempotency record is stored under. `C` is the host's opaque connection id, used only for unbound connections. |
| [`framing::Inbound`](/docs/reference/rust/zaun-community-protocol/enum-framing-inbound/) | What an inbound transport text is. |
| [`command::object::InteractionData`](/docs/reference/rust/zaun-community-protocol/enum-command-object-interactiondata/) | `data` of an interaction, by type. |
| [`command::object::InteractionType`](/docs/reference/rust/zaun-community-protocol/enum-command-object-interactiontype/) | `type` of an interaction (Discord's numbers; `PING` is not used). |
| [`permissions::Invalid`](/docs/reference/rust/zaun-community-protocol/enum-permissions-invalid/) | A malformed request (`BAD_REQUEST`). |
| [`permissions::invites::InviteCreation`](/docs/reference/rust/zaun-community-protocol/enum-permissions-invites-invitecreation/) | The admission policy's `invite_creation` rule. |
| [`command::object::InviteCreation`](/docs/reference/rust/zaun-community-protocol/enum-command-object-invitecreation/) | `invite_creation`. |
| [`keys::KeyEncodingError`](/docs/reference/rust/zaun-community-protocol/enum-keys-keyencodingerror/) | The encoding is not a known suite or has the wrong length. |
| [`client::member::LinkError`](/docs/reference/rust/zaun-community-protocol/enum-client-member-linkerror/) | A link that is not a valid invitation. Carries no part of the input. |
| [`command::object::LockdownView`](/docs/reference/rust/zaun-community-protocol/enum-command-object-lockdownview/) | A lockdown as the viewer may see it. The full form is tried first. On disable or expiry, `moderation.lockdown.updated` carries the inactive public form to every member, `MANAGE_SAF |
| [`model::MembershipState`](/docs/reference/rust/zaun-community-protocol/enum-model-membershipstate/) | A member's lifecycle state. Independent of roles. |
| [`command::signal::NoResponse`](/docs/reference/rust/zaun-community-protocol/enum-command-signal-noresponse/) | A signal has no response. Uninhabited. |
| [`command::object::OptionType`](/docs/reference/rust/zaun-community-protocol/enum-command-object-optiontype/) | `type` of an option (Discord's numbers 1–11). |
| [`command::object::OptionValueKind`](/docs/reference/rust/zaun-community-protocol/enum-command-object-optionvaluekind/) | An option value as the invoker gave it: a string, number, boolean or id. |
| [`command::object::Outcome`](/docs/reference/rust/zaun-community-protocol/enum-command-object-outcome/) | `outcome`. |
| [`envelope::Outcome`](/docs/reference/rust/zaun-community-protocol/enum-envelope-outcome/) | The result carried by a response. |
| [`permissions::overrides::OverrideSubject`](/docs/reference/rust/zaun-community-protocol/enum-permissions-overrides-overridesubject/) | The target of an override as the hierarchy sees it. |
| [`permissions::OverrideTarget`](/docs/reference/rust/zaun-community-protocol/enum-permissions-overridetarget/) | Whom an override applies to (permissions the protocol). |
| [`command::object::OverrideTarget`](/docs/reference/rust/zaun-community-protocol/enum-command-object-overridetarget/) | The subject of an override: `{"t":"role","c":RoleId}` or `{"t":"member","c":MemberId}`. |
| [`permissions::overrides::OverrideWrite`](/docs/reference/rust/zaun-community-protocol/enum-permissions-overrides-overridewrite/) | What the host does with a validated override. |
| [`signed::PackageError`](/docs/reference/rust/zaun-community-protocol/enum-signed-packageerror/) | A `.zbot` file that does not verify. |
| [`event::Parsed`](/docs/reference/rust/zaun-community-protocol/enum-event-parsed/) | The result of decoding an event: known, or an unknown `type` that the client ignores while still advancing the stream's cursor by its `sequence`. Events in reserved namespaces are  |
| [`json::Patch`](/docs/reference/rust/zaun-community-protocol/enum-json-patch/) | A field that distinguishes "absent" from "null" in update commands (`channel.update` with `"topic": null` clears the topic; no `topic` leaves it). |
| [`command::object::PolicyLevel`](/docs/reference/rust/zaun-community-protocol/enum-command-object-policylevel/) | `level`. |
| [`command::object::PolicyView`](/docs/reference/rust/zaun-community-protocol/enum-command-object-policyview/) | The full policy or the public summary, by the viewer's permissions (`admission.policy.updated` body, the protocol). The full form is tried first. |
| [`command::signal::PresenceStatus`](/docs/reference/rust/zaun-community-protocol/enum-command-signal-presencestatus/) | Presence status, in the the protocol tagged form. A client sends `online`, `idle`, `dnd` or `invisible` (`offline` from a client means `invisible`); others only ever see `online`,  |
| [`client::ProtocolError`](/docs/reference/rust/zaun-community-protocol/enum-client-protocolerror/) | Input ignored safely. |
| [`signed::Purpose`](/docs/reference/rust/zaun-community-protocol/enum-signed-purpose/) | Why a member key is registered (field 2). Other values are reserved and rejected. |
| [`framing::Pushed`](/docs/reference/rust/zaun-community-protocol/enum-framing-pushed/) | The result of pushing one fragment. |
| [`envelope::RateCategory`](/docs/reference/rust/zaun-community-protocol/enum-envelope-ratecategory/) | `RATE_LIMITED` category. |
| [`envelope::RateScope`](/docs/reference/rust/zaun-community-protocol/enum-envelope-ratescope/) | `RATE_LIMITED` scope. |
| [`envelope::Reason`](/docs/reference/rust/zaun-community-protocol/enum-envelope-reason/) | `FORBIDDEN` and `CONFLICT` reasons. |
| [`permissions::Refusal`](/docs/reference/rust/zaun-community-protocol/enum-permissions-refusal/) | Every way a pure check can refuse a command. |
| [`signed::RegistrationError`](/docs/reference/rust/zaun-community-protocol/enum-signed-registrationerror/) | A `MemberKeyRegistration` is not acceptable to the host. |
| [`event::RemovalReason`](/docs/reference/rust/zaun-community-protocol/enum-event-removalreason/) | `reason: {t: "kicked" \| "banned" \| "left" \| "rejected" \| "expired"}`. |
| [`envelope::Replay`](/docs/reference/rust/zaun-community-protocol/enum-envelope-replay/) | What to do with a command whose key matches a stored record. |
| [`command::object::ReportCategory`](/docs/reference/rust/zaun-community-protocol/enum-command-object-reportcategory/) | `category`. |
| [`command::object::ReportStatus`](/docs/reference/rust/zaun-community-protocol/enum-command-object-reportstatus/) | `status`: a plain string, exactly `"open"\|"reviewing"\|"resolved"`. |
| [`command::object::ReportTarget`](/docs/reference/rust/zaun-community-protocol/enum-command-object-reporttarget/) | `target: {t: "member"\|"message", c}`. |
| [`command::interaction::ResponseData`](/docs/reference/rust/zaun-community-protocol/enum-command-interaction-responsedata/) | Response data, by type. |
| [`command::interaction::ResponseType`](/docs/reference/rust/zaun-community-protocol/enum-command-interaction-responsetype/) | Interaction response types (Discord's callback numbers). |
| [`command::object::Restriction`](/docs/reference/rust/zaun-community-protocol/enum-command-object-restriction/) | One lockdown restriction. |
| [`signed::RotationError`](/docs/reference/rust/zaun-community-protocol/enum-signed-rotationerror/) | The rotation chain does not verify. `index` is 1-based. |
| [`permissions::Scope`](/docs/reference/rust/zaun-community-protocol/enum-permissions-scope/) | Where the required bits are evaluated. |
| [`signed::SessionProofError`](/docs/reference/rust/zaun-community-protocol/enum-signed-sessionprooferror/) | A `HostSessionProof` is not acceptable to the client. |
| [`client::SessionState`](/docs/reference/rust/zaun-community-protocol/enum-client-sessionstate/) | Where the session is in its lifecycle. |
| [`signed::SignedError`](/docs/reference/rust/zaun-community-protocol/enum-signed-signederror/) | Signing, verifying, encoding or decoding one signed object failed. |
| [`crypto::SignError`](/docs/reference/rust/zaun-community-protocol/enum-crypto-signerror/) | Signing failed. |
| [`command::sync::SnapshotItem`](/docs/reference/rust/zaun-community-protocol/enum-command-sync-snapshotitem/) | One snapshot item; the variant follows the requested part. |
| [`command::sync::SnapshotPart`](/docs/reference/rust/zaun-community-protocol/enum-command-sync-snapshotpart/) | `part`. SPEC: a plain string, as in the the protocol request. |
| [`command::object::Stream`](/docs/reference/rust/zaun-community-protocol/enum-command-object-stream/) | An event stream. SPEC: a plain string, as in the the protocol `stream` field and the the protocol example (`"stream": "channel"`), not `{t}`. |
| [`envelope::Stream`](/docs/reference/rust/zaun-community-protocol/enum-envelope-stream/) | An event stream; also the `stream` of `RESYNC_REQUIRED`. |
| [`keys::Suite`](/docs/reference/rust/zaun-community-protocol/enum-keys-suite/) | A signature suite. `0x00` and `0x02`–`0xFF` are rejected. |
| [`command::object::TextInputStyle`](/docs/reference/rust/zaun-community-protocol/enum-command-object-textinputstyle/) | Text input `style`: 1 short, 2 paragraph. |
| [`permissions::Top`](/docs/reference/rust/zaun-community-protocol/enum-permissions-top/) | A member's top position. The owner is above every role. |
| [`command::TypeClass`](/docs/reference/rust/zaun-community-protocol/enum-command-typeclass/) | What a command `type` string is to a v1 host. |
| [`model::TypingMode`](/docs/reference/rust/zaun-community-protocol/enum-model-typingmode/) | Who sees that someone is typing in a channel (`typing`, the protocol). A plain JSON string, as the specification writes it. |
| [`command::object::UploadFailure`](/docs/reference/rust/zaun-community-protocol/enum-command-object-uploadfailure/) | `failure` of an upload: why the host does not hold it. |
| [`signed::ValidityError`](/docs/reference/rust/zaun-community-protocol/enum-signed-validityerror/) | A (descriptor, delegation) pair is not valid. |
| [`signed::VerificationLevel`](/docs/reference/rust/zaun-community-protocol/enum-signed-verificationlevel/) | `AdmissionSummary.level`: verification level None … Highest (`governance.md`). |
| [`crypto::VerifyError`](/docs/reference/rust/zaun-community-protocol/enum-crypto-verifyerror/) | Verification failed. Callers map every variant to `INVALID_SIGNATURE`; the variants exist for tests and diagnostics only. |
| [`event::VisibilityReason`](/docs/reference/rust/zaun-community-protocol/enum-event-visibilityreason/) | A visibility change. SPEC: a plain string (`"access_gained"`), as written. |
| [`crypto::voice::VoiceError`](/docs/reference/rust/zaun-community-protocol/enum-crypto-voice-voiceerror/) | A voice key or frame operation failed. |
| [`event::VoiceLeftReason`](/docs/reference/rust/zaun-community-protocol/enum-event-voiceleftreason/) | Why a participant left a voice channel. |
| [`client::WelcomeError`](/docs/reference/rust/zaun-community-protocol/enum-client-welcomeerror/) | Why a `session.welcome` was rejected. |

## Functions

| Item | Summary |
|---|---|
| [`permissions::act_on`](/docs/reference/rust/zaun-community-protocol/function-permissions-act_on/) | H1 then H2, with H2 skipped when the actor targets themself and `self_ok` is set. |
| [`permissions::safety::admission_policy_update`](/docs/reference/rust/zaun-community-protocol/function-permissions-safety-admission_policy_update/) | `admission.policy.update` of `newcomer_restrictions`: valid, and H3 on the bits added or removed (`old XOR new ⊆ cp`; only the owner exempt, see `h3_owner_only`). |
| [`permissions::overrides::adopt_parent`](/docs/reference/rust/zaun-community-protocol/function-permissions-overrides-adopt_parent/) | Setting `sync_with_parent = true`: checked as an override edit from the channel's own overrides to the parent's, for every target in either. `subject` maps a target to its hierarch |
| [`permissions::all_in`](/docs/reference/rust/zaun-community-protocol/function-permissions-all_in/) | The grants of an owner or administrator in a channel. |
| [`command::object::bot_events::allowed`](/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-allowed/) | Whether the capabilities allow events of `kind`: member events need `members`, presence needs `presence`, DM events need `dms`; everything else is visible to any member anyway. |
| [`permissions::applicable`](/docs/reference/rust/zaun-community-protocol/function-permissions-applicable/) | The channel bits that apply to a channel kind. |
| [`permissions::members::approve`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-approve/) | `membership.approve`. A `Pending` target has no roles, so no H2; but the approver must be able to assign every default role applied at approval. Ending a `Probation` early needs H1 |
| [`permissions::base`](/docs/reference/rust/zaun-community-protocol/function-permissions-base/) | `base(m)` for a non-owner (steps 1–2): `@everyone` OR the member's roles; `ALL` with `ADMINISTRATOR`; otherwise masked by `KNOWN`. |
| [`permissions::roles::can_assign`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-can_assign/) | Whether `actor` could assign `role` right now: the check behind invitation default roles and approval (permissions the protocol, the protocol). `cp` must hold `MANAGE_ROLES` unless |
| [`permissions::roles::can_grant`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-can_grant/) | Hierarchy over a role being granted, without `MANAGE_ROLES`: not `@everyone`, H4, and its known bits held (H3). Used by `membership.approve`. |
| [`command::attachment::caption`](/docs/reference/rust/zaun-community-protocol/function-command-attachment-caption/) | The caption of the SimpleX file that carries attachment `id`, either way. |
| [`permissions::channel_grants`](/docs/reference/rust/zaun-community-protocol/function-permissions-channel_grants/) | `grants(m, ch)` (steps 3–6) for a non-administrator whose base is `base`. |
| [`command::object::check_commands`](/docs/reference/rust/zaun-community-protocol/function-command-object-check_commands/) | Every command's rules, the per-type counts and unique names; at most 8 000 scalars of text per command. |
| [`command::object::check_embeds`](/docs/reference/rust/zaun-community-protocol/function-command-object-check_embeds/) | The state-free rules of a message's embeds: at most 10, each valid and showing something, at most 6 000 scalars of text in all. With `attachments`, every picture an embed shows mus |
| [`command::object::check_message_components`](/docs/reference/rust/zaun-community-protocol/function-command-object-check_message_components/) | A message's components: at most five action rows without `IS_COMPONENTS_V2`, the V2 layout kinds with it; at most 40 in all, unique `id`s and `custom_id`s. |
| [`command::object::check_modal`](/docs/reference/rust/zaun-community-protocol/function-command-object-check_modal/) | A modal (`MODAL` response): `custom_id`, `title` 1–45 and 1–5 labels or text displays. |
| [`command::object::check_pictures`](/docs/reference/rust/zaun-community-protocol/function-command-object-check_pictures/) | Every picture an embed shows (`image`, `thumbnail`, `author.icon`, `footer.icon`) is one of the message's `attachments`, so it travels the attachment path like any file and nobody  |
| [`envelope::check_version`](/docs/reference/rust/zaun-community-protocol/function-envelope-check_version/) | Checks an inbound envelope's `v` against the connection's negotiated version. |
| [`command::bot::chosen`](/docs/reference/rust/zaun-community-protocol/function-command-bot-chosen/) | Full grants from a choice and the manifest's request. |
| [`signed::claimed_genesis`](/docs/reference/rust/zaun-community-protocol/function-signed-claimed_genesis/) | The **claimed** genesis key: the first rotation's `old_root`, or the descriptor's `root_public_key` when the chain is empty. |
| [`command::classify`](/docs/reference/rust/zaun-community-protocol/function-command-classify/) | Classifies a command `type`. Exact, case-sensitive matching. |
| [`framing::classify`](/docs/reference/rust/zaun-community-protocol/function-framing-classify/) | Classifies one inbound text message. The `zaun:1f:` prefix is tested before `zaun:1:` (they differ at the 7th byte, so the order is only for clarity). |
| [`envelope::command_limit`](/docs/reference/rust/zaun-community-protocol/function-envelope-command_limit/) | The size limit of a command envelope of type `kind`: `MAX_COMMAND`, except `community.create` and `community.descriptor.publish`, which may use the whole `max_frame`. |
| [`permissions::commands`](/docs/reference/rust/zaun-community-protocol/function-permissions-commands/) | Every command name of the table. |
| [`permissions::community_dependencies`](/docs/reference/rust/zaun-community-protocol/function-permissions-community_dependencies/) | Implicit dependencies at community level: no attachment, embed or mass mention without `SEND_MESSAGES`, no voice bit without `CONNECT`. There is no `VIEW_CHANNEL` gate here: whethe |
| [`crypto::community_id`](/docs/reference/rust/zaun-community-protocol/function-crypto-community_id/) | `CommunityId = SHA3-256("zaun/community-id/v1" ‖ 0x00 ‖ genesis root key)`, over the 1 985-byte encoding including the suite byte. Always the **genesis** key. |
| [`signed::compare_versions`](/docs/reference/rust/zaun-community-protocol/function-signed-compare_versions/) | Semantic Versioning precedence of two versions; `None` when either is invalid. An update must be `Ordering::Greater` than the installed version. |
| [`command::object::component_attachments`](/docs/reference/rust/zaun-community-protocol/function-command-object-component_attachments/) | Every attachment the components show (thumbnails, gallery pictures, files), with the field naming it; each must be an attachment of the same message. |
| [`command::object::config_key_ok`](/docs/reference/rust/zaun-community-protocol/function-command-object-config_key_ok/) | A `config` key: `a-za-z0-9_{0,63}`. |
| [`crypto::content_hash`](/docs/reference/rust/zaun-community-protocol/function-crypto-content_hash/) | `SHA3-256(bytes)`: how signed objects are identified, deduplicated and chained (never by signature bytes, the protocol), for example a `delegation_hash`. |
| [`client::owner::create_body`](/docs/reference/rust/zaun-community-protocol/function-client-owner-create_body/) | The `community.create` body: the genesis pair, the owner's member key and its registration (purpose 1) for the host's current `host_challenge` (from the welcome). |
| [`framing::app_data::data`](/docs/reference/rust/zaun-community-protocol/function-framing-app_data-data/) | The application data that carries the frame message `frame`. |
| [`b64::decode`](/docs/reference/rust/zaun-community-protocol/function-b64-decode/) | Decodes canonical base64url without padding. |
| [`b64::decode_array`](/docs/reference/rust/zaun-community-protocol/function-b64-decode_array/) | Decodes exactly `N` bytes. |
| [`client::decode_response`](/docs/reference/rust/zaun-community-protocol/function-client-decode_response/) | Decodes a successful response body as the response type of command `B`. |
| [`client::owner::delegate`](/docs/reference/rust/zaun-community-protocol/function-client-owner-delegate/) | Signs a delegation of every v1 scope to `host`, valid from `now_ms`. |
| [`permissions::dependencies`](/docs/reference/rust/zaun-community-protocol/function-permissions-dependencies/) | Implicit dependencies (step 6) at channel level: no channel bit without `VIEW_CHANNEL`, then `community_dependencies`. |
| [`crypto::voice::derive_key_salt`](/docs/reference/rust/zaun-community-protocol/function-crypto-voice-derive_key_salt/) | RFC 9605 the protocol `derive_key_salt` for suite `0x0005`. |
| [`b64::bytes::deserialize`](/docs/reference/rust/zaun-community-protocol/function-b64-bytes-deserialize/) | Deserializes strict base64url. |
| [`json::u64_decimal::deserialize`](/docs/reference/rust/zaun-community-protocol/function-json-u64_decimal-deserialize/) | Deserializes a canonical decimal string. |
| [`b64::encode`](/docs/reference/rust/zaun-community-protocol/function-b64-encode/) | Encodes `bytes` as base64url without padding. |
| [`framing::encode`](/docs/reference/rust/zaun-community-protocol/function-framing-encode/) | Frames the compact envelope JSON `json`. |
| [`b64::encoded_len`](/docs/reference/rust/zaun-community-protocol/function-b64-encoded_len/) | The length of the unpadded encoding of `n` bytes. |
| [`framing::escaped_len`](/docs/reference/rust/zaun-community-protocol/function-framing-escaped_len/) | The bytes `text` takes written inside a JSON string, as a frame message travels in its application data: `"` and `\` take two, the control characters JSON writes as `\b`, `\t`, `\n |
| [`ids::fill_random`](/docs/reference/rust/zaun-community-protocol/function-ids-fill_random/) | Fills `buf` from the operating system CSPRNG. |
| [`command::object::find_interactive`](/docs/reference/rust/zaun-community-protocol/function-command-object-find_interactive/) | The enabled interactive component (button with a `custom_id`, or a select) with `custom_id` among a message's components: what a `MESSAGE_COMPONENT` interaction may name. |
| [`framing::app_data::frame`](/docs/reference/rust/zaun-community-protocol/function-framing-app_data-frame/) | The frame message text in application data of content type `tag`, or `None` when it is not a Zaun frame. Keys other than `FRAME_KEY` are ignored, for later additions. |
| [`encoding::from_bytes`](/docs/reference/rust/zaun-community-protocol/function-encoding-from_bytes/) | Decodes a top-level value, rejecting trailing bytes. |
| [`permissions::gate`](/docs/reference/rust/zaun-community-protocol/function-permissions-gate/) | The gate for a connection bound to a member in `state`. `Probation` and `Active` pass every bound command, which is then subject to its permissions. |
| [`permissions::gate_unbound`](/docs/reference/rust/zaun-community-protocol/function-permissions-gate_unbound/) | The gate for an unbound connection. |
| [`client::member::generate_member_key`](/docs/reference/rust/zaun-community-protocol/function-client-member-generate_member_key/) | Generates a fresh member key. Use one per community. |
| [`client::owner::generate_root_key`](/docs/reference/rust/zaun-community-protocol/function-client-owner-generate_root_key/) | Generates a fresh root key: the community's identity. Store it sealed; it cannot be recovered (ADR-0011). |
| [`client::owner::genesis`](/docs/reference/rust/zaun-community-protocol/function-client-owner-genesis/) | Builds and signs the genesis pair: delegation epoch 1 to `host` (no expiry, ADR-0005), descriptor revision 1 naming it, with `owner_member_key` as the owner binding. |
| [`command::object::bot_events::group_of`](/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-group_of/) | The group an event type belongs to, if any. |
| [`permissions::h1`](/docs/reference/rust/zaun-community-protocol/function-permissions-h1/) | H1: nobody acts on the owner, except the owner on themself. |
| [`permissions::h2`](/docs/reference/rust/zaun-community-protocol/function-permissions-h2/) | H2: acting on another member requires `top(T) < top(A)`; equal positions block and `ADMINISTRATOR` does not lift it. The owner passes. |
| [`permissions::h3`](/docs/reference/rust/zaun-community-protocol/function-permissions-h3/) | H3: every changed bit must be held (`changed ⊆ held`, `held` being `cp` or `chp`). |
| [`permissions::h3_owner_only`](/docs/reference/rust/zaun-community-protocol/function-permissions-h3_owner_only/) | H3 where only the owner is exempt: restriction masks (`newcomer_restrictions`, a lockdown's mask), for which permissions.md the protocol says "owner exempt" and the specification i |
| [`permissions::h4`](/docs/reference/rust/zaun-community-protocol/function-permissions-h4/) | H4: a role is manageable only strictly below the actor's top; the owner is exempt. |
| [`crypto::host_id`](/docs/reference/rust/zaun-community-protocol/function-crypto-host_id/) | `HostId = SHA3-256("zaun/host-id/v1" ‖ 0x00 ‖ host public key)`. |
| [`command::object::host_pattern_ok`](/docs/reference/rust/zaun-community-protocol/function-command-object-host_pattern_ok/) | A DNS name, optionally with one leading `*.` label: letters, digits and `-`, at least two labels, ≤ 253 bytes, lower case. |
| [`permissions::invites::invite_create`](/docs/reference/rust/zaun-community-protocol/function-permissions-invites-invite_create/) | `invite.create` beyond `CREATE_INVITE` itself (checked by the table in the right scope): the `invite_creation` rule, default roles the actor could assign, stricter-only admission o |
| [`envelope::is_mutating`](/docs/reference/rust/zaun-community-protocol/function-envelope-is_mutating/) | Whether a command `type` is mutating, hence idempotent and recorded: every command except `session.hello`, `*.get`, `*.list`, `message.history`, `audit.list`, `member.bans`, `membe |
| [`envelope::is_recorded`](/docs/reference/rust/zaun-community-protocol/function-envelope-is_recorded/) | Whether `response` is stored in the idempotency record; see `ResponseEnvelope::is_recorded`. |
| [`json::is_zero_u32`](/docs/reference/rust/zaun-community-protocol/function-json-is_zero_u32/) | `skip_serializing_if` for a `u32` that is absent when 0 (message `flags`, the protocol). |
| [`permissions::members::kick_or_ban`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-kick_or_ban/) | `member.kick` and `member.ban`: not self (use `community.leave`); H1; H2. |
| [`crypto::voice::kid_for`](/docs/reference/rust/zaun-community-protocol/function-crypto-voice-kid_for/) | The KID of a sender's epoch: the first 3 bytes of `SHA3-256("zaun/v1/voice-kid" ‖ session)` above the 32-bit epoch. |
| [`command::object::bot_events::known`](/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-known/) | Whether `name` is something a manifest's `events` may list. |
| [`command::object::local_address_ok`](/docs/reference/rust/zaun-community-protocol/function-command-object-local_address_ok/) | A `local_network` entry: `host:port` exactly, where host is `localhost`, an IPv4 literal, a bracketed IPv6 literal or a lowercase DNS name, and port 1-65535 without a leading zero. |
| [`permissions::safety::lockdown_disable`](/docs/reference/rust/zaun-community-protocol/function-permissions-safety-lockdown_disable/) | `moderation.lockdown.disable`: `top(A) ≥` the enabling actor's recorded top (owner exempt), so a lower moderator cannot lift a higher one's lockdown, and H3 on the bits the lockdow |
| [`permissions::safety::lockdown_enable`](/docs/reference/rust/zaun-community-protocol/function-permissions-safety-lockdown_enable/) | `moderation.lockdown.enable` (also renewal and replacement): duration within 60 s – 7 days and H3 on the new lockdown's mask (only the owner exempt). Enabling while one is active r |
| [`command::max_envelope`](/docs/reference/rust/zaun-community-protocol/function-command-max_envelope/) | The largest command envelope for `type_` in bytes: `max_frame` for `community.create` and `community.descriptor.publish`, else 65 536. |
| [`permissions::roles::member_role_change`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-member_role_change/) | `member.roles.update` for one role `role` on `target`: H1; H2 unless self; H4 on the role; when assigning, `role.permissions ⊆ cp` (H3). `@everyone` is never listed. |
| [`command::object::message_json_len`](/docs/reference/rust/zaun-community-protocol/function-command-object-message_json_len/) | The bytes of a message's `content` and `embeds` as JSON, counted against `MESSAGE_JSON_MAX`. |
| [`command::object::message_json_len_with`](/docs/reference/rust/zaun-community-protocol/function-command-object-message_json_len_with/) | `message_json_len` plus the message's components, which count against the same `MESSAGE_JSON_MAX`. |
| [`crypto::message_prime`](/docs/reference/rust/zaun-community-protocol/function-crypto-message_prime/) | `M' = Prefix ‖ Label ‖ len(ctx) u8 ‖ ctx ‖ SHA-512(M)`, or `None` when `ctx` exceeds 255 bytes. |
| [`command::object::modal_inputs`](/docs/reference/rust/zaun-community-protocol/function-command-object-modal_inputs/) | The input components of a modal (everything inside its labels), in order. |
| [`permissions::members::moderate_content`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-moderate_content/) | Deleting another member's message or removing their reaction: H1 only, no H2. |
| [`client::member::moved`](/docs/reference/rust/zaun-community-protocol/function-client-member-moved/) | Checks a `community.descriptor_updated` event against the client's stored state and says whether the community moved to another host. `chain` is the rotation chain the client holds |
| [`envelope::negotiate`](/docs/reference/rust/zaun-community-protocol/function-envelope-negotiate/) | Chooses the highest version in both ranges (`session.hello`, the protocol). |
| [`client::owner::next_revision`](/docs/reference/rust/zaun-community-protocol/function-client-owner-next_revision/) | A copy of `current` with the next revision and `issued_at = now_ms`, for the owner to edit and pass to `publish_body`. |
| [`permissions::members::nickname`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-nickname/) | `member.update` of a nickname: one's own needs only `CHANGE_NICKNAME` (table); another's needs H1 and H2. |
| [`permissions::no_new_unknown`](/docs/reference/rust/zaun-community-protocol/function-permissions-no_new_unknown/) | the protocol: a command may not set an unknown bit that `old` did not already hold. |
| [`permissions::overrides::override_edit`](/docs/reference/rust/zaun-community-protocol/function-permissions-overrides-override_edit/) | One override edit in `channel.permissions.update` (or `channel.create` with initial overrides). `chp` is the actor's effective permissions in that channel; `old`/`new` are `(allow, |
| [`json::u64_decimal::parse`](/docs/reference/rust/zaun-community-protocol/function-json-u64_decimal-parse/) | Parses a canonical decimal. |
| [`command::attachment::parse_caption`](/docs/reference/rust/zaun-community-protocol/function-command-attachment-parse_caption/) | The attachment a caption names, when it is a Zaun caption. |
| [`envelope::parse_command`](/docs/reference/rust/zaun-community-protocol/function-envelope-parse_command/) | Parses a whole or reassembled command envelope `text`. |
| [`signed::parse_package`](/docs/reference/rust/zaun-community-protocol/function-signed-parse_package/) | Splits a `.zbot` file into its parts, checking every limit and that nothing trails. |
| [`client::owner::publish_body`](/docs/reference/rust/zaun-community-protocol/function-client-owner-publish_body/) | Signs `descriptor` with `root` (its current root key) and builds the `community.descriptor.publish` body. A given `delegation` is referenced by the descriptor (epoch and hash) and  |
| [`crypto::publisher_id`](/docs/reference/rust/zaun-community-protocol/function-crypto-publisher_id/) | `PublisherId = SHA3-256("zaun/publisher-id/v1" ‖ 0x00 ‖ publisher key)`. |
| [`client::member::reauth_body`](/docs/reference/rust/zaun-community-protocol/function-client-member-reauth_body/) | The `migration.reauth` body: a `MemberReauth` signed with the member's existing key. Send it with `target.community_id` as the envelope `community_id`. |
| [`client::member::redeem_body`](/docs/reference/rust/zaun-community-protocol/function-client-member-redeem_body/) | The `invite.redeem` body: the link's secret, the member key and its registration (purpose 2) for the link's community and host. Send it with the link's community as the envelope `c |
| [`permissions::invites::redeemable_roles`](/docs/reference/rust/zaun-community-protocol/function-permissions-invites-redeemable_roles/) | At redemption, the default roles the issuer could still assign now; the rest are dropped, never granted (permissions the protocol, the protocol). A deleted role is simply absent fr |
| [`client::member::registration`](/docs/reference/rust/zaun-community-protocol/function-client-member-registration/) | Signs a `MemberKeyRegistration` with the member key itself. |
| [`permissions::members::reject`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-reject/) | `membership.reject`: the target is `Pending`. |
| [`envelope::replay`](/docs/reference/rust/zaun-community-protocol/function-envelope-replay/) | Compares a retried command with the stored record for its key. |
| [`client::member::request_body`](/docs/reference/rust/zaun-community-protocol/function-client-member-request_body/) | The `membership.request` body with a purpose-3 registration. Send it with `target.community_id` as the envelope `community_id`. |
| [`permissions::required`](/docs/reference/rust/zaun-community-protocol/function-permissions-required/) | The requirement of a command by wire name; `None` for a name the table does not know (the engine answers `UNSUPPORTED_COMMAND`). |
| [`client::owner::resign_delegation`](/docs/reference/rust/zaun-community-protocol/function-client-owner-resign_delegation/) | Re-signs an existing delegation under a new root key. The bytes, hence the `delegation_hash` and epoch, are unchanged. |
| [`permissions::members::restore`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-restore/) | `membership.restore`: not self; H1; H2; the target is `Suspended`. |
| [`permissions::roles::role_create`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_create/) | `role.create`: H3 on the new role's bits. Returns the new role's position; the engine shifts every role at or above it up by one. |
| [`permissions::roles::role_delete`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_delete/) | `role.delete`: not `@everyone`; H4. |
| [`permissions::roles::role_reorder`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_reorder/) | `role.reorder`: `roles` is the community's role table, `moves` the request's `(role_id, new_position)` pairs. Every role whose position changes must be below the actor before and a |
| [`permissions::roles::role_update`](/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_update/) | `role.update`: H4 on the role, H3 on `old XOR new`. `@everyone` may change only its permissions (`other_fields` is true when the body changes anything else). |
| [`client::owner::rotate_root`](/docs/reference/rust/zaun-community-protocol/function-client-owner-rotate_root/) | Signs the rotation from the current root `old` to `new`: `rotation_seq` follows the descriptor's latest rotation, and both keys sign. |
| [`client::owner::rotated_revision`](/docs/reference/rust/zaun-community-protocol/function-client-owner-rotated_revision/) | The next revision after `rotation`: the new root key and `rotations = rotation`. Sign it with the **new** key via `publish_body`, together with resign_delegation: the delegation is |
| [`b64::bytes::serialize`](/docs/reference/rust/zaun-community-protocol/function-b64-bytes-serialize/) | Serializes as base64url. |
| [`json::u64_decimal::serialize`](/docs/reference/rust/zaun-community-protocol/function-json-u64_decimal-serialize/) | Serializes as a decimal string. |
| [`crypto::sign`](/docs/reference/rust/zaun-community-protocol/function-crypto-sign/) | Signs `message` (the canonical bytes `B`) with context `ctx`, hedged: ML-DSA draws 32 fresh bytes from the OS CSPRNG (FIPS 204 Algorithm 2 with the context prefix built here). |
| [`crypto::sign_deterministic`](/docs/reference/rust/zaun-community-protocol/function-crypto-sign_deterministic/) | Deterministic signing (FIPS 204 deterministic variant). **Golden test vectors only**; real signatures use `sign`. |
| [`permissions::members::suspend`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-suspend/) | `membership.suspend`: not self; H1; H2; the target is `Probation` or `Active`. |
| [`limits::text_within`](/docs/reference/rust/zaun-community-protocol/function-limits-text_within/) | Whether `text` has between `min` and `max` Unicode scalar values and at most 4× `max` bytes. |
| [`permissions::members::timeout`](/docs/reference/rust/zaun-community-protocol/function-permissions-members-timeout/) | `member.timeout` (set or clear): H1; H2; never the owner; never a target holding `ADMINISTRATOR`; `until ≤ now + 28 days`. |
| [`encoding::to_bytes`](/docs/reference/rust/zaun-community-protocol/function-encoding-to_bytes/) | Encodes a top-level value. |
| [`signed::valid_app_id`](/docs/reference/rust/zaun-community-protocol/function-signed-valid_app_id/) | Lowercase reverse-DNS: `a-z0-9-+(\.a-z0-9-+)+`, 3–64 bytes. |
| [`signed::valid_version`](/docs/reference/rust/zaun-community-protocol/function-signed-valid_version/) | Semantic Versioning 2.0.0 without build metadata, ≤ 64 bytes. |
| [`signed::valid_world`](/docs/reference/rust/zaun-community-protocol/function-signed-valid_world/) | `zaun:bot/bot@<semver>`, ≤ 64 bytes. |
| [`signed::validate_descriptor`](/docs/reference/rust/zaun-community-protocol/function-signed-validate_descriptor/) | Rule 1 and the descriptor parts of rule 5: `chain` is the full rotation chain from the genesis key (`community.rotations`), `accepted` the verifier's stored state, if any. |
| [`permissions::safety::validate_newcomer_restrictions`](/docs/reference/rust/zaun-community-protocol/function-permissions-safety-validate_newcomer_restrictions/) | Validates a new `newcomer_restrictions` mask: no `VIEW_CHANNEL` or `READ_MESSAGE_HISTORY`, no newly set unknown bit. |
| [`permissions::overrides::validate_override`](/docs/reference/rust/zaun-community-protocol/function-permissions-overrides-validate_override/) | Validates a new override value against the stored one (`old`, if any): `allow & deny == 0`; no known bit outside `CHANNEL_SCOPED`; no unknown bit that `old` did not already hold. U |
| [`signed::validate_pair`](/docs/reference/rust/zaun-community-protocol/function-signed-validate_pair/) | Whether a (descriptor, delegation) pair is valid at `now_ms`. `chain` is the full rotation chain from the genesis key; `accepted` is the verifier's stored state for the community,  |
| [`crypto::verify`](/docs/reference/rust/zaun-community-protocol/function-crypto-verify/) | Verifies `sig` over `message` with context `ctx` against `pk`. |
| [`signed::verify_chain`](/docs/reference/rust/zaun-community-protocol/function-signed-verify_chain/) | Verifies a rotation chain from the genesis key: `genesis` must derive `community_id`; for rotation `i` (1-based, list order) `sig_old` verifies under `Kᵢ₋₁` **before** decoding, th |
| [`signed::verify_package`](/docs/reference/rust/zaun-community-protocol/function-signed-verify_package/) | Verifies the signature under the header's publisher key (`min_suite` 1) before anything else, then both hashes and the manifest's `app_id` and `version`. An all-zero signature is a |
| [`crypto::verify_raw`](/docs/reference/rust/zaun-community-protocol/function-crypto-verify_raw/) | RFC 10073 `id-MLDSA65-Ed25519-SHA512` verification over raw components (no suite byte): `pk = mldsaPK ‖ edPK` (1 984 B), `sig = mldsaSig ‖ edSig` (3 373 B), any `ctx` ≤ 255 B. Both |
| [`command::object::bot_events::wants`](/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-wants/) | Whether a bot subscribed to `events` (and holding `caps`) gets events of `kind`. |
| [`permissions::with_dependants`](/docs/reference/rust/zaun-community-protocol/function-permissions-with_dependants/) | Every bit that `dependencies` would also drop once `mask` is removed: used to attribute a lost dependant to the restriction that removed its prerequisite. |
| [`signed::write_package`](/docs/reference/rust/zaun-community-protocol/function-signed-write_package/) | Writes a `.zbot` file from a signed header and its parts. The caller computed the header's hashes from these exact `manifest` and `component` bytes. |
| [`signed::write_unsigned_package`](/docs/reference/rust/zaun-community-protocol/function-signed-write_unsigned_package/) | Writes an unsigned development `.zbot` file (all-zero signature, the protocol). |

## Structs

| Item | Summary |
|---|---|
| [`signed::AcceptedState`](/docs/reference/rust/zaun-community-protocol/struct-signed-acceptedstate/) | What a verifier stores per community for anti-rollback (rule 5). |
| [`command::sync::Ack`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-ack/) | `sync.ack`: the highest contiguous sequence applied per stream. Not idempotency-recorded; lower values are ignored by the host. |
| [`command::object::ActionRow`](/docs/reference/rust/zaun-community-protocol/struct-command-object-actionrow/) | Type 1. |
| [`permissions::ActiveLockdown`](/docs/reference/rust/zaun-community-protocol/struct-permissions-activelockdown/) | The lockdown currently in force, as lockdown management sees it. |
| [`command::object::Activity`](/docs/reference/rust/zaun-community-protocol/struct-command-object-activity/) | An activity. |
| [`command::object::Admission`](/docs/reference/rust/zaun-community-protocol/struct-command-object-admission/) | How a member was admitted. |
| [`command::object::AdmissionOverrides`](/docs/reference/rust/zaun-community-protocol/struct-command-object-admissionoverrides/) | `invite.create.admission_overrides`: stricter-only admission settings. |
| [`command::object::AdmissionPolicy`](/docs/reference/rust/zaun-community-protocol/struct-command-object-admissionpolicy/) | The full admission policy. Visible to `MANAGE_SAFETY` holders. |
| [`signed::AdmissionSummary`](/docs/reference/rust/zaun-community-protocol/struct-signed-admissionsummary/) | `AdmissionSummary = mode u8 ‖ level u8`: the owner's public claim; the host's policy is authoritative for enforcement. |
| [`command::invite::Admitted`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-admitted/) | `invite.redeem` and `membership.request` response. |
| [`command::object::ApplicationCommand`](/docs/reference/rust/zaun-community-protocol/struct-command-object-applicationcommand/) | An application command. |
| [`command::membership::Approve`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-approve/) | `membership.approve`. |
| [`command::object::Attachment`](/docs/reference/rust/zaun-community-protocol/struct-command-object-attachment/) | An attachment record: what a message carries, and what `attachment.download` and `attachment.updated` answer. |
| [`ids::AttachmentId`](/docs/reference/rust/zaun-community-protocol/struct-ids-attachmentid/) | An attachment. |
| [`command::object::AuditChange`](/docs/reference/rust/zaun-community-protocol/struct-command-object-auditchange/) | `changes: {field, old, new}`. SPEC: value types are never given; raw JSON. |
| [`command::object::AuditEntry`](/docs/reference/rust/zaun-community-protocol/struct-command-object-auditentry/) | An audit entry. |
| [`ids::AuditId`](/docs/reference/rust/zaun-community-protocol/struct-ids-auditid/) | An audit-log entry. |
| [`command::object::AuditTarget`](/docs/reference/rust/zaun-community-protocol/struct-command-object-audittarget/) | `target: {t, c}` of an audit entry. |
| [`b64::B64Error`](/docs/reference/rust/zaun-community-protocol/struct-b64-b64error/) | The input is not canonical base64url without padding. |
| [`command::object::Ban`](/docs/reference/rust/zaun-community-protocol/struct-command-object-ban/) | One entry of `member.bans`. |
| [`ids::BanId`](/docs/reference/rust/zaun-community-protocol/struct-ids-banid/) | A ban record. |
| [`command::member::BanMember`](/docs/reference/rust/zaun-community-protocol/struct-command-member-banmember/) | `member.ban`. |
| [`command::member::Banned`](/docs/reference/rust/zaun-community-protocol/struct-command-member-banned/) | `member.ban` response. |
| [`command::member::BanPage`](/docs/reference/rust/zaun-community-protocol/struct-command-member-banpage/) | `member.bans` response. |
| [`command::member::Bans`](/docs/reference/rust/zaun-community-protocol/struct-command-member-bans/) | `member.bans`. |
| [`command::object::Binding`](/docs/reference/rust/zaun-community-protocol/struct-command-object-binding/) | `session.welcome.binding`. |
| [`envelope::BodyHash`](/docs/reference/rust/zaun-community-protocol/struct-envelope-bodyhash/) | SHA3-256 of a command's `body` JSON text **exactly as received**: reformatting the same JSON gives a different hash, which is why retries must resend byte-identical bodies. |
| [`command::object::BotCard`](/docs/reference/rust/zaun-community-protocol/struct-command-object-botcard/) | The public description of an installed bot, visible to every member. |
| [`ids::BotId`](/docs/reference/rust/zaun-community-protocol/struct-ids-botid/) | An installed bot. |
| [`signed::BotPackage`](/docs/reference/rust/zaun-community-protocol/struct-signed-botpackage/) | The signed header of a bot package, signed by the publisher key inside it. |
| [`event::BotRemoved`](/docs/reference/rust/zaun-community-protocol/struct-event-botremoved/) | `bot.removed`: `{bot_id, member_id}`. |
| [`command::bot::Bots`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-bots/) | `bot.list` response. |
| [`command::object::Button`](/docs/reference/rust/zaun-community-protocol/struct-command-object-button/) | Type 2. |
| [`command::object::Capabilities`](/docs/reference/rust/zaun-community-protocol/struct-command-object-capabilities/) | What a bot may do beyond its permission bits. Every field defaults to "no". |
| [`signed::ChainHead`](/docs/reference/rust/zaun-community-protocol/struct-signed-chainhead/) | Every root key of a verified chain, `K₀` (genesis) to `Kₙ` (current). Only `super::verify_chain` creates one. |
| [`ids::Challenge`](/docs/reference/rust/zaun-community-protocol/struct-ids-challenge/) | A host-issued challenge that a signed proof must echo. |
| [`permissions::Channel`](/docs/reference/rust/zaun-community-protocol/struct-permissions-channel/) | The channel context of a channel-level resolution. |
| [`command::object::Channel`](/docs/reference/rust/zaun-community-protocol/struct-command-object-channel/) | A channel or category as members see it. |
| [`command::object::ChannelAfter`](/docs/reference/rust/zaun-community-protocol/struct-command-object-channelafter/) | `{channel_id, after}` (`sync.resume`, the protocol). |
| [`event::ChannelCreated`](/docs/reference/rust/zaun-community-protocol/struct-event-channelcreated/) | `channel.created`: the channel object plus `reason?: "access_gained"`. |
| [`command::object::ChannelCursor`](/docs/reference/rust/zaun-community-protocol/struct-command-object-channelcursor/) | `{channel_id, seq}` (`sync.ack`, the protocol). |
| [`event::ChannelDeleted`](/docs/reference/rust/zaun-community-protocol/struct-event-channeldeleted/) | `channel.deleted`: `{channel_id, reason?: "access_lost"}`. |
| [`command::sync::ChannelEvents`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-channelevents/) | One channel of `sync.resume.channels`. |
| [`command::object::ChannelFloor`](/docs/reference/rust/zaun-community-protocol/struct-command-object-channelfloor/) | `{channel_id, floor}` (`sync.resume.floors`, the protocol). |
| [`command::object::ChannelHead`](/docs/reference/rust/zaun-community-protocol/struct-command-object-channelhead/) | `{channel_id, head_seq, floor}` (`sync.resume.new`, the protocol). |
| [`ids::ChannelId`](/docs/reference/rust/zaun-community-protocol/struct-ids-channelid/) | A channel or category. |
| [`command::object::ChannelPosition`](/docs/reference/rust/zaun-community-protocol/struct-command-object-channelposition/) | One entry of `channel.reorder` and `channel.reordered`. |
| [`command::dm::Channels`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-channels/) | `dm.list` response: the actor's open DMs. |
| [`event::ChannelsReordered`](/docs/reference/rust/zaun-community-protocol/struct-event-channelsreordered/) | `channel.reordered`: `positions` (only channels the member can see). |
| [`command::object::Checkbox`](/docs/reference/rust/zaun-community-protocol/struct-command-object-checkbox/) | Type 23. Never required; use a one-option checkbox group for that. |
| [`command::object::CheckboxGroup`](/docs/reference/rust/zaun-community-protocol/struct-command-object-checkboxgroup/) | Type 22. |
| [`command::object::Choice`](/docs/reference/rust/zaun-community-protocol/struct-command-object-choice/) | A predefined choice of an option, or an autocomplete result. |
| [`command::dm::Close`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-close/) | `dm.close`: hides the DM for the actor. |
| [`envelope::CommandEnvelope`](/docs/reference/rust/zaun-community-protocol/struct-envelope-commandenvelope/) | `{ "v", "type", "request_id", "community_id", "channel_id"?, "body" }`. |
| [`ids::CommandId`](/docs/reference/rust/zaun-community-protocol/struct-ids-commandid/) | An application command of a bot. |
| [`command::object::CommandOption`](/docs/reference/rust/zaun-community-protocol/struct-command-object-commandoption/) | An option of a command or subcommand. |
| [`command::app::Commands`](/docs/reference/rust/zaun-community-protocol/struct-command-app-commands/) | Response of both: commands with ids (and `bot_id` in `command.list`). |
| [`event::CommandsUpdated`](/docs/reference/rust/zaun-community-protocol/struct-event-commandsupdated/) | `command.updated`: one bot's whole command list (`[]` while disabled or removed). |
| [`signed::CommunityDescriptor`](/docs/reference/rust/zaun-community-protocol/struct-signed-communitydescriptor/) | The community's public, owner-signed statement. Signed by the current root key. |
| [`ids::CommunityId`](/docs/reference/rust/zaun-community-protocol/struct-ids-communityid/) | `SHA3-256("zaun/community-id/v1" ‖ 0x00 ‖ genesis root public key)`. |
| [`command::object::CommunityProfile`](/docs/reference/rust/zaun-community-protocol/struct-command-object-communityprofile/) | The host-managed community profile. |
| [`command::sync::CommunitySnapshot`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-communitysnapshot/) | The single item of `part: "community"`. |
| [`command::object::ConfigKey`](/docs/reference/rust/zaun-community-protocol/struct-command-object-configkey/) | One setting a bot declares in its manifest's `config` table; the owner sets its value. |
| [`command::bot::Configure`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-configure/) | `bot.configure`: the owner sets or clears values of the settings the bot's manifest declares. With neither, it only reads them. |
| [`command::bot::Configured`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-configured/) | `bot.configure` response: the values the owner set, secrets shown as `"••••"`. |
| [`command::object::Container`](/docs/reference/rust/zaun-community-protocol/struct-command-object-container/) | Type 17. |
| [`permissions::Context`](/docs/reference/rust/zaun-community-protocol/struct-permissions-context/) | Community-wide inputs shared by every resolution in one request. |
| [`command::channel::Create`](/docs/reference/rust/zaun-community-protocol/struct-command-channel-create/) | `channel.create`. |
| [`command::community::Create`](/docs/reference/rust/zaun-community-protocol/struct-command-community-create/) | `community.create`. The envelope's `community_id` names the target. |
| [`command::interaction::Create`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-create/) | `interaction.create`. |
| [`command::invite::Create`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-create/) | `invite.create`. |
| [`command::report::Create`](/docs/reference/rust/zaun-community-protocol/struct-command-report-create/) | `report.create`. |
| [`command::role::Create`](/docs/reference/rust/zaun-community-protocol/struct-command-role-create/) | `role.create`. |
| [`command::community::Created`](/docs/reference/rust/zaun-community-protocol/struct-command-community-created/) | `community.create` response. |
| [`command::interaction::Created`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-created/) | `interaction.create` response. |
| [`command::invite::Created`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-created/) | `invite.create` response. `link` embeds the secret and is shown once. |
| [`command::report::Created`](/docs/reference/rust/zaun-community-protocol/struct-command-report-created/) | `report.create` response. |
| [`client::Cursor`](/docs/reference/rust/zaun-community-protocol/struct-client-cursor/) | One stream's position: the highest contiguous sequence applied, and events held aside. |
| [`command::object::Cursors`](/docs/reference/rust/zaun-community-protocol/struct-command-object-cursors/) | The cursors a binding command returns (`community.create`, `invite.redeem`, `membership.request`). |
| [`client::CursorTable`](/docs/reference/rust/zaun-community-protocol/struct-client-cursortable/) | The member cursor and one cursor per channel. |
| [`command::object::DefaultValue`](/docs/reference/rust/zaun-community-protocol/struct-command-object-defaultvalue/) | A preselected entity of a user, role, mentionable or channel select. |
| [`signed::DelegationRef`](/docs/reference/rust/zaun-community-protocol/struct-signed-delegationref/) | `DelegationRef = epoch u64 ‖ delegation_hash bytes32`, where `delegation_hash` is `SHA3-256` of the delegation's canonical bytes (not its signature). |
| [`command::channel::Delete`](/docs/reference/rust/zaun-community-protocol/struct-command-channel-delete/) | `channel.delete`. |
| [`command::message::Delete`](/docs/reference/rust/zaun-community-protocol/struct-command-message-delete/) | `message.delete`. |
| [`command::role::Delete`](/docs/reference/rust/zaun-community-protocol/struct-command-role-delete/) | `role.delete`. |
| [`permissions::Denial`](/docs/reference/rust/zaun-community-protocol/struct-permissions-denial/) | A failed permission or hierarchy check. |
| [`client::owner::DescriptorContent`](/docs/reference/rust/zaun-community-protocol/struct-client-owner-descriptorcontent/) | The owner-editable, public fields of a descriptor. |
| [`ids::DescriptorHash`](/docs/reference/rust/zaun-community-protocol/struct-ids-descriptorhash/) | `SHA3-256` of a signed descriptor's bytes. The descriptor names its delegation's hash, so this identifies the descriptor/delegation pair. |
| [`command::community::DescriptorPublish`](/docs/reference/rust/zaun-community-protocol/struct-command-community-descriptorpublish/) | `community.descriptor.publish`. Owner only; larger envelope limit. |
| [`event::DescriptorUpdated`](/docs/reference/rust/zaun-community-protocol/struct-event-descriptorupdated/) | `community.descriptor_updated`: signed `descriptor` and `delegation`. |
| [`command::bot::Disable`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-disable/) | `bot.disable`. |
| [`command::lockdown::Disable`](/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-disable/) | `moderation.lockdown.disable` (`{}`). |
| [`event::DmClosed`](/docs/reference/rust/zaun-community-protocol/struct-event-dmclosed/) | `dm.closed`: to the closer's own stream. |
| [`command::attachment::Download`](/docs/reference/rust/zaun-community-protocol/struct-command-attachment-download/) | `attachment.download`: asks the host to send an attachment's file. |
| [`command::message::Edit`](/docs/reference/rust/zaun-community-protocol/struct-command-message-edit/) | `message.edit`. Author only. |
| [`command::object::Embed`](/docs/reference/rust/zaun-community-protocol/struct-command-object-embed/) | An embed. Every text is optional, but an embed shows something: a title, a description, an author, a footer, a picture or a field (`color`, `timestamp` and `url` alone do not count |
| [`command::object::EmbedAuthor`](/docs/reference/rust/zaun-community-protocol/struct-command-object-embedauthor/) | `author: {name, url?, icon?}` of an embed. |
| [`command::object::EmbedField`](/docs/reference/rust/zaun-community-protocol/struct-command-object-embedfield/) | `fields: {name, value, inline}` of an embed. |
| [`command::object::EmbedFooter`](/docs/reference/rust/zaun-community-protocol/struct-command-object-embedfooter/) | `footer: {text, icon?}` of an embed. |
| [`command::object::Empty`](/docs/reference/rust/zaun-community-protocol/struct-command-object-empty/) | An empty body or response, `{}`. Unknown fields are ignored. |
| [`command::bot::Enable`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-enable/) | `bot.enable` (distinct type so the command table can name it). |
| [`command::lockdown::Enable`](/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-enable/) | `moderation.lockdown.enable`; responds with the full `Lockdown`. |
| [`framing::EncodedFrame`](/docs/reference/rust/zaun-community-protocol/struct-framing-encodedframe/) | The transport messages of one frame, in sending order. |
| [`command::object::EntitySelect`](/docs/reference/rust/zaun-community-protocol/struct-command-object-entityselect/) | Types 5–8. |
| [`envelope::ErrorBody`](/docs/reference/rust/zaun-community-protocol/struct-envelope-errorbody/) | An error object: `code`, `message`, and the code's extra fields placed next to `code`. Build it with the constructors (one per `ErrorCode`, see `errors.rs`); they use fixed message |
| [`envelope::ErrorExtras`](/docs/reference/rust/zaun-community-protocol/struct-envelope-errorextras/) | The extra fields of the protocol Each applies to the codes named on it. |
| [`envelope::EventEnvelope`](/docs/reference/rust/zaun-community-protocol/struct-envelope-eventenvelope/) | `{ "v", "type", "community_id", "channel_id"?, "stream", "sequence"?, "timestamp", "actor_id", "body" }`. Deserialisation validates with `EventEnvelope::validate`. |
| [`command::sync::Events`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-events/) | `sync.events`. |
| [`envelope::EventsBatch`](/docs/reference/rust/zaun-community-protocol/struct-envelope-eventsbatch/) | A validated `events` batch. Its events are processed in order, exactly as individual events; the batch itself has no stream, sequence or timestamp. |
| [`command::sync::EventsPage`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-eventspage/) | `sync.events` response, also the `member` part of `sync.resume`. |
| [`command::object::Evidence`](/docs/reference/rust/zaun-community-protocol/struct-command-object-evidence/) | One evidence item. |
| [`signed::ExportManifest`](/docs/reference/rust/zaun-community-protocol/struct-signed-exportmanifest/) | Signed by the exporting host's key (and, in a later version, the root key when the owner exports). The key is inside the bytes: an importer trusts it only once it matches a host de |
| [`command::object::FileComponent`](/docs/reference/rust/zaun-community-protocol/struct-command-object-filecomponent/) | Type 13. |
| [`command::object::FileUpload`](/docs/reference/rust/zaun-community-protocol/struct-command-object-fileupload/) | Type 19. |
| [`command::interaction::Followup`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-followup/) | `interaction.followup` and `interaction.original.edit`. |
| [`framing::FragId`](/docs/reference/rust/zaun-community-protocol/struct-framing-fragid/) | A fragment id: 8 random bytes, unique per sender per connection among open reassemblies. |
| [`framing::Fragment`](/docs/reference/rust/zaun-community-protocol/struct-framing-fragment/) | One fragment message, borrowing its chunk from the received text. |
| [`crypto::voice::FrameOpener`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-frameopener/) | Opens one sender's frames for one KID, rejecting replays. |
| [`crypto::voice::FrameSealer`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-framesealer/) | Seals this participant's frames under one base key and KID. The counter starts at zero and never repeats; after `FRAMES_PER_KEY` frames it refuses and the sender rekeys. |
| [`client::Gap`](/docs/reference/rust/zaun-community-protocol/struct-client-gap/) | A detected gap in a sequenced stream. |
| [`client::owner::Genesis`](/docs/reference/rust/zaun-community-protocol/struct-client-owner-genesis/) | A signed genesis descriptor (revision 1) and the delegation it references (epoch 1). |
| [`command::community::Get`](/docs/reference/rust/zaun-community-protocol/struct-command-community-get/) | `community.get` (`{}`). |
| [`command::lockdown::Get`](/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-get/) | `moderation.lockdown.get` (`{}`). |
| [`command::member::Get`](/docs/reference/rust/zaun-community-protocol/struct-command-member-get/) | `member.get`. |
| [`command::report::Get`](/docs/reference/rust/zaun-community-protocol/struct-command-report-get/) | `report.get`. |
| [`command::lockdown::GetResponse`](/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-getresponse/) | `moderation.lockdown.get` response: `{ "lockdown": object \| null }`, the full form for `MANAGE_SAFETY` holders, otherwise the public form; `null` when none is active. |
| [`command::bot::Grant`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-grant/) | `bot.grant`: the new effective grants, replacing the old. |
| [`command::bot::GrantChoice`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-grantchoice/) | Optional grant choices of `bot.install`: absent means everything the manifest asks for, within the operator's ceiling. |
| [`command::object::Grants`](/docs/reference/rust/zaun-community-protocol/struct-command-object-grants/) | A bot's grants: permission bits (its managed role) and capabilities. |
| [`crypto::voice::GroupKeys`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-groupkeys/) | A participant's key state for one voice session. |
| [`crypto::voice::Header`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-header/) | An SFrame header (RFC 9605 the protocol). |
| [`command::session::Hello`](/docs/reference/rust/zaun-community-protocol/struct-command-session-hello/) | `session.hello`. |
| [`command::message::History`](/docs/reference/rust/zaun-community-protocol/struct-command-message-history/) | `message.history`. |
| [`command::message::HistoryPage`](/docs/reference/rust/zaun-community-protocol/struct-command-message-historypage/) | `message.history` response. |
| [`command::session::HostAttachments`](/docs/reference/rust/zaun-community-protocol/struct-command-session-hostattachments/) | `session.welcome.attachments`. |
| [`signed::HostDelegation`](/docs/reference/rust/zaun-community-protocol/struct-signed-hostdelegation/) | The root key's authorisation of one host to operate the community. |
| [`ids::HostId`](/docs/reference/rust/zaun-community-protocol/struct-ids-hostid/) | `SHA3-256("zaun/host-id/v1" ‖ 0x00 ‖ host public key)`. |
| [`client::owner::HostInfo`](/docs/reference/rust/zaun-community-protocol/struct-client-owner-hostinfo/) | What an owner needs about a host to delegate to it. |
| [`signed::HostSessionProof`](/docs/reference/rust/zaun-community-protocol/struct-signed-hostsessionproof/) | The host's proof of key possession in `session.welcome`. Signed by the host key. |
| [`command::object::IceServer`](/docs/reference/rust/zaun-community-protocol/struct-command-object-iceserver/) | One ICE server, in the shape of WebRTC's `RTCIceServer`. |
| [`command::community::Icon`](/docs/reference/rust/zaun-community-protocol/struct-command-community-icon/) | `community.icon.get` response; the client checks `SHA3-256(icon)` against the descriptor. |
| [`command::community::IconGet`](/docs/reference/rust/zaun-community-protocol/struct-command-community-iconget/) | `community.icon.get` (`{}`). |
| [`command::community::Info`](/docs/reference/rust/zaun-community-protocol/struct-command-community-info/) | `community.get` response. |
| [`command::bot::Install`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-install/) | `bot.install`. |
| [`command::object::Interaction`](/docs/reference/rust/zaun-community-protocol/struct-command-object-interaction/) | An interaction as delivered to its bot (`interaction.created`). |
| [`event::InteractionAutocomplete`](/docs/reference/rust/zaun-community-protocol/struct-event-interactionautocomplete/) | `interaction.autocomplete`: suggestions, to the invoker only. |
| [`event::InteractionFailed`](/docs/reference/rust/zaun-community-protocol/struct-event-interactionfailed/) | `interaction.failed`, to the invoker only. |
| [`ids::InteractionId`](/docs/reference/rust/zaun-community-protocol/struct-ids-interactionid/) | An interaction: one use of a command, component or modal. |
| [`event::InteractionMessage`](/docs/reference/rust/zaun-community-protocol/struct-event-interactionmessage/) | `interaction.message`: an ephemeral message, to the invoker only. |
| [`command::object::InteractionMetadata`](/docs/reference/rust/zaun-community-protocol/struct-command-object-interactionmetadata/) | `interaction_metadata` of a message that answers an interaction. |
| [`event::InteractionModal`](/docs/reference/rust/zaun-community-protocol/struct-event-interactionmodal/) | `interaction.modal`: open a modal, to the invoker only. |
| [`ids::InviteId`](/docs/reference/rust/zaun-community-protocol/struct-ids-inviteid/) | An invitation (public handle; the secret is `InviteSecret`). |
| [`command::object::InviteLink`](/docs/reference/rust/zaun-community-protocol/struct-command-object-invitelink/) | A `zaun://join/…` link. It embeds the `crate::ids::InviteSecret`, so `Debug` is redacted; the text is reachable only through `InviteLink::expose`. |
| [`client::member::InvitePayload`](/docs/reference/rust/zaun-community-protocol/struct-client-member-invitepayload/) | The canonical `InvitePayload`. Unsigned: after connecting, the welcome must show a descriptor deriving `community_id`, a delegation naming `host_id`, and a host proof — which `Invi |
| [`permissions::invites::InviteRequest`](/docs/reference/rust/zaun-community-protocol/struct-permissions-invites-inviterequest/) | The parts of an `invite.create` body the checks need. |
| [`ids::InviteSecret`](/docs/reference/rust/zaun-community-protocol/struct-ids-invitesecret/) | An invitation secret: 32 random bytes, shown once. Never logged: `Debug` is redacted and it has no `Display`. Zeroized on drop. |
| [`command::object::InviteSummary`](/docs/reference/rust/zaun-community-protocol/struct-command-object-invitesummary/) | One entry of `invite.list`. Never carries the secret. |
| [`command::object::InviteUse`](/docs/reference/rust/zaun-community-protocol/struct-command-object-inviteuse/) | One entry of `invite.uses`. |
| [`command::voice::Join`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-join/) | `voice.join`: enter a voice channel (leaving any other one). |
| [`command::voice::Joined`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-joined/) | The `voice.join` response. |
| [`command::object::JoinRate`](/docs/reference/rust/zaun-community-protocol/struct-command-object-joinrate/) | `join_rate: {per_hour}`. |
| [`command::voice::KeyFor`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-keyfor/) | One entry of `voice.keys`. |
| [`crypto::voice::KeyPackage`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-keypackage/) | A participant's voice key for one session in one voice channel. |
| [`command::voice::Keys`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-keys/) | `voice.keys`: the sender's media key for `epoch`, wrapped for each other participant. A whole mesh always fits in one command, so an epoch is never split. |
| [`command::member::Kick`](/docs/reference/rust/zaun-community-protocol/struct-command-member-kick/) | `member.kick`. |
| [`command::object::Label`](/docs/reference/rust/zaun-community-protocol/struct-command-object-label/) | Type 18. |
| [`command::community::Leave`](/docs/reference/rust/zaun-community-protocol/struct-command-community-leave/) | `community.leave` (`{}`). The owner cannot leave (engine: `CONFLICT`). |
| [`command::voice::Leave`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-leave/) | `voice.leave`: leave the voice channel the member is in. |
| [`command::app::List`](/docs/reference/rust/zaun-community-protocol/struct-command-app-list/) | `command.list`. |
| [`command::audit::List`](/docs/reference/rust/zaun-community-protocol/struct-command-audit-list/) | `audit.list`. |
| [`command::bot::List`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-list/) | `bot.list`. |
| [`command::dm::List`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-list/) | `dm.list`. |
| [`command::invite::List`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-list/) | `invite.list`. |
| [`command::member::List`](/docs/reference/rust/zaun-community-protocol/struct-command-member-list/) | `member.list`. |
| [`command::presence::List`](/docs/reference/rust/zaun-community-protocol/struct-command-presence-list/) | `presence.list`: the presences of the community's connected, visible members. |
| [`command::report::List`](/docs/reference/rust/zaun-community-protocol/struct-command-report-list/) | `report.list`. |
| [`permissions::Lockdown`](/docs/reference/rust/zaun-community-protocol/struct-permissions-lockdown/) | The community's lockdown row. |
| [`command::object::Lockdown`](/docs/reference/rust/zaun-community-protocol/struct-command-object-lockdown/) | The full lockdown record, for `MANAGE_SAFETY` holders: `{ lockdown_id, restrictions, forced_slowmode_s?, newcomer_window_s?, expires_at, reason?, actor_id }`. |
| [`ids::LockdownId`](/docs/reference/rust/zaun-community-protocol/struct-ids-lockdownid/) | An emergency lockdown. |
| [`command::object::LockdownPublic`](/docs/reference/rust/zaun-community-protocol/struct-command-object-lockdownpublic/) | The public form, for members without `MANAGE_SAFETY`: `{active, restrictions_affecting_you, expires_at}`. With no active lockdown (disabled or expired) it is `{active: false, restr |
| [`permissions::LockdownRestrictions`](/docs/reference/rust/zaun-community-protocol/struct-permissions-lockdownrestrictions/) | The restrictions a lockdown names. |
| [`command::object::Manifest`](/docs/reference/rust/zaun-community-protocol/struct-command-object-manifest/) | The manifest inside a bot package. |
| [`signed::ManifestEntry`](/docs/reference/rust/zaun-community-protocol/struct-signed-manifestentry/) | One chunk: what it is, its length and its `SHA3-256`. |
| [`command::object::ManifestLimits`](/docs/reference/rust/zaun-community-protocol/struct-command-object-manifestlimits/) | Resource limits a manifest asks for; the host may lower them. |
| [`command::object::MediaGallery`](/docs/reference/rust/zaun-community-protocol/struct-command-object-mediagallery/) | Type 12. |
| [`command::object::MediaItem`](/docs/reference/rust/zaun-community-protocol/struct-command-object-mediaitem/) | One picture of a media gallery. |
| [`command::object::Member`](/docs/reference/rust/zaun-community-protocol/struct-command-object-member/) | A member as visible to the viewer. Optional fields depend on the viewer's permissions; the host filters them. |
| [`ids::MemberId`](/docs/reference/rust/zaun-community-protocol/struct-ids-memberid/) | A community-scoped member identity, host-assigned. |
| [`signed::MemberKeyRegistration`](/docs/reference/rust/zaun-community-protocol/struct-signed-memberkeyregistration/) | Proves that the client holds the private key of the member key it registers. Signed by that key. |
| [`event::MemberLeft`](/docs/reference/rust/zaun-community-protocol/struct-event-memberleft/) | `member.left`: `{member_id}`. |
| [`signed::MemberReauth`](/docs/reference/rust/zaun-community-protocol/struct-signed-memberreauth/) | Signed by the member key. Binds the challenge to the community, the new host and the delegation epoch it operates under, so a proof made for one host or epoch is useless at another |
| [`event::MemberRemoved`](/docs/reference/rust/zaun-community-protocol/struct-event-memberremoved/) | `member.removed`: `{reason}`, to the subject only; then the session ends. |
| [`event::MemberRolesUpdated`](/docs/reference/rust/zaun-community-protocol/struct-event-memberrolesupdated/) | `member.roles_updated`: `{member_id, role_ids}`. |
| [`event::MembershipUpdated`](/docs/reference/rust/zaun-community-protocol/struct-event-membershipupdated/) | `membership.updated`: `{member_id, state, until?}`. |
| [`event::MemberTimedOut`](/docs/reference/rust/zaun-community-protocol/struct-event-membertimedout/) | `member.timed_out`: `{member_id, until}`. |
| [`command::object::Mentions`](/docs/reference/rust/zaun-community-protocol/struct-command-object-mentions/) | `mentions: {everyone, members, roles}`. |
| [`command::object::Message`](/docs/reference/rust/zaun-community-protocol/struct-command-object-message/) | A stored message as returned by `message.history`. |
| [`command::object::MessageBody`](/docs/reference/rust/zaun-community-protocol/struct-command-object-messagebody/) | Content, embeds, components, attachments, mentions and flags of a bot's message. |
| [`event::MessageCreated`](/docs/reference/rust/zaun-community-protocol/struct-event-messagecreated/) | `message.created`. |
| [`event::MessageDeleted`](/docs/reference/rust/zaun-community-protocol/struct-event-messagedeleted/) | `message.deleted`: `{message_id}`. |
| [`ids::MessageId`](/docs/reference/rust/zaun-community-protocol/struct-ids-messageid/) | A message. |
| [`event::MessagesBulkDeleted`](/docs/reference/rust/zaun-community-protocol/struct-event-messagesbulkdeleted/) | `messages.bulk_deleted`: `{message_ids}` (≤ 1 000). |
| [`event::MessageUpdated`](/docs/reference/rust/zaun-community-protocol/struct-event-messageupdated/) | `message.updated`: `{message_id, content, embeds?, components?, flags?, mentions?, edited_at}`. |
| [`command::voice::Moderate`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-moderate/) | `voice.moderate`: server mute or deafen, move or disconnect another member. |
| [`client::member::Moved`](/docs/reference/rust/zaun-community-protocol/struct-client-member-moved/) | A verified move: the new pair (store its state) and how to reach the new host. |
| [`command::object::NewProfile`](/docs/reference/rust/zaun-community-protocol/struct-command-object-newprofile/) | `profile: {display_name}` of a joining or creating member. |
| [`ids::Nonce`](/docs/reference/rust/zaun-community-protocol/struct-ids-nonce/) | A single-use value in signed objects. |
| [`command::object::Opaque`](/docs/reference/rust/zaun-community-protocol/struct-command-object-opaque/) | Opaque bytes, base64url on the wire (key packages, wrapped keys, signalling data). |
| [`command::dm::Open`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-open/) | `dm.open`: the DM with `member_id`, created when there is none (idempotent per pair). |
| [`command::object::OptionValue`](/docs/reference/rust/zaun-community-protocol/struct-command-object-optionvalue/) | One option of an invoked command. |
| [`command::interaction::OriginalDelete`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-originaldelete/) | `interaction.original.delete`. |
| [`command::interaction::OriginalEdit`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-originaledit/) | `interaction.original.edit`: absent fields stay unchanged. |
| [`permissions::Override`](/docs/reference/rust/zaun-community-protocol/struct-permissions-override/) | A permission override on one channel or category (permissions the protocol). |
| [`command::object::Override`](/docs/reference/rust/zaun-community-protocol/struct-command-object-override/) | A permission override on a channel or category (permissions the protocol). |
| [`crypto::voice::PackageExpectation`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-packageexpectation/) | What a receiver expects of a peer's key package. |
| [`command::audit::Page`](/docs/reference/rust/zaun-community-protocol/struct-command-audit-page/) | `audit.list` response. |
| [`command::invite::Page`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-page/) | `invite.list` response. |
| [`command::member::Page`](/docs/reference/rust/zaun-community-protocol/struct-command-member-page/) | `member.list` response. |
| [`command::report::Page`](/docs/reference/rust/zaun-community-protocol/struct-command-report-page/) | `report.list` response: `reports`, `next?`. |
| [`command::sync::PageCursor`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-pagecursor/) | A snapshot page cursor: a 16-byte role or channel id. |
| [`signed::ParsedPackage`](/docs/reference/rust/zaun-community-protocol/struct-signed-parsedpackage/) | The parts of a `.zbot` file, not yet verified. |
| [`permissions::Party`](/docs/reference/rust/zaun-community-protocol/struct-permissions-party/) | An actor or target member as the hierarchy sees it. Build it with `Resolver::party`. |
| [`command::membership::Pending`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-pending/) | `membership.pending`. |
| [`command::membership::PendingPage`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-pendingpage/) | `membership.pending` response. |
| [`bits::Permissions`](/docs/reference/rust/zaun-community-protocol/struct-bits-permissions/) | A permission set. JSON: a canonical decimal string. SQLite: `i64` by bit-cast. |
| [`command::channel::PermissionsUpdate`](/docs/reference/rust/zaun-community-protocol/struct-command-channel-permissionsupdate/) | `channel.permissions.update`. |
| [`command::membership::PolicyGet`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyget/) | `admission.policy.get` (`{}`). |
| [`command::membership::PolicyResponse`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyresponse/) | `admission.policy.get` response: `policy` (full, `MANAGE_SAFETY`) or `summary`. |
| [`command::object::PolicySummary`](/docs/reference/rust/zaun-community-protocol/struct-command-object-policysummary/) | The public summary: `{level, requires_approval, invite_creation, open}`. Hosts MUST send `open`. |
| [`command::membership::PolicyUpdate`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyupdate/) | `admission.policy.update`: any policy field. Every field is non-nullable. |
| [`command::membership::PolicyUpdated`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyupdated/) | `admission.policy.update` response. |
| [`command::signal::Presence`](/docs/reference/rust/zaun-community-protocol/struct-command-signal-presence/) | `signal.presence`: `{ status?, activity?, viewing? }`, at least one of `status` and `viewing`. |
| [`command::presence::Presences`](/docs/reference/rust/zaun-community-protocol/struct-command-presence-presences/) | `presence.list` response: one entry per member not `offline` (members missing from the list are offline). |
| [`event::PresenceSignal`](/docs/reference/rust/zaun-community-protocol/struct-event-presencesignal/) | `signal.presence` live event. |
| [`command::community::ProfileResponse`](/docs/reference/rust/zaun-community-protocol/struct-command-community-profileresponse/) | `community.update` response. |
| [`keys::PublicKey`](/docs/reference/rust/zaun-community-protocol/struct-keys-publickey/) | A composite public key, 1 985 bytes. |
| [`command::community::Published`](/docs/reference/rust/zaun-community-protocol/struct-command-community-published/) | `community.descriptor.publish` response. |
| [`ids::PublisherId`](/docs/reference/rust/zaun-community-protocol/struct-ids-publisherid/) | `SHA3-256("zaun/publisher-id/v1" ‖ 0x00 ‖ publisher public key)`. |
| [`command::object::RadioGroup`](/docs/reference/rust/zaun-community-protocol/struct-command-object-radiogroup/) | Type 21. |
| [`command::message::ReactionAdd`](/docs/reference/rust/zaun-community-protocol/struct-command-message-reactionadd/) | `reaction.add`. |
| [`event::ReactionChanged`](/docs/reference/rust/zaun-community-protocol/struct-event-reactionchanged/) | `reaction.added` and `reaction.removed`: `{message_id, emoji, member_id}`. |
| [`command::object::ReactionCount`](/docs/reference/rust/zaun-community-protocol/struct-command-object-reactioncount/) | `reactions: {emoji, count, me}`. |
| [`command::message::ReactionRemove`](/docs/reference/rust/zaun-community-protocol/struct-command-message-reactionremove/) | `reaction.remove`. |
| [`encoding::Reader`](/docs/reference/rust/zaun-community-protocol/struct-encoding-reader/) | Reads canonical encodings from a byte slice. Lengths and counts are checked against the field's limit and the remaining input before anything is allocated. |
| [`framing::Reassembler`](/docs/reference/rust/zaun-community-protocol/struct-framing-reassembler/) | Per-connection reassembly state machine. |
| [`command::migration::Reauth`](/docs/reference/rust/zaun-community-protocol/struct-command-migration-reauth/) | `migration.reauth`: on an unbound connection to the host that took the community over, a member proves its existing member key and the connection binds to the same `MemberId`. Resp |
| [`signed::ReauthExpectation`](/docs/reference/rust/zaun-community-protocol/struct-signed-reauthexpectation/) | What the host expects of a reauthentication: the envelope's community, this host, the epoch it operates under and the connection's current challenge. |
| [`client::member::ReauthTarget`](/docs/reference/rust/zaun-community-protocol/struct-client-member-reauthtarget/) | Where a member re-authenticates: the community, the new host, the delegation epoch its verified welcome proved, and that welcome's challenge. |
| [`client::ReceivedEvent`](/docs/reference/rust/zaun-community-protocol/struct-client-receivedevent/) | A received event: the envelope (sequence, timestamp, actor) and its decoded body. |
| [`crypto::voice::RecipientEntry`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-recipiententry/) | One recipient of a sender's epoch key. |
| [`command::invite::Redeem`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-redeem/) | `invite.redeem`. Unbound; the envelope's `community_id` names the target. |
| [`command::bot::Register`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-register/) | `bot.register`: mark an existing member as an external bot. |
| [`signed::RegistrationExpectation`](/docs/reference/rust/zaun-community-protocol/struct-signed-registrationexpectation/) | What the host expects of a registration: the command's fields and the connection's current challenge. |
| [`client::member::RegistrationTarget`](/docs/reference/rust/zaun-community-protocol/struct-client-member-registrationtarget/) | Where a registration is made: the community, the host and the welcome's challenge. |
| [`command::membership::Reject`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-reject/) | `membership.reject`. |
| [`envelope::Rejection`](/docs/reference/rust/zaun-community-protocol/struct-envelope-rejection/) | A command the host rejects before dispatch; send `Rejection::into_response` back. |
| [`crypto::voice::Rekey`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-rekey/) | What a rekey sends: one signed sender-keys message for everyone and one wrapped key each. |
| [`crypto::voice::RekeyTarget`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-rekeytarget/) | One recipient's share of a `Rekey`. |
| [`command::bot::Remove`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-remove/) | `bot.remove`. |
| [`command::channel::Reorder`](/docs/reference/rust/zaun-community-protocol/struct-command-channel-reorder/) | `channel.reorder`. |
| [`command::role::Reorder`](/docs/reference/rust/zaun-community-protocol/struct-command-role-reorder/) | `role.reorder`. |
| [`command::interaction::Replied`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-replied/) | `interaction.respond` and `interaction.followup` response. |
| [`command::object::Report`](/docs/reference/rust/zaun-community-protocol/struct-command-object-report/) | A report. Only for `MANAGE_REPORTS` holders and, without other reporters' data, the reporter. |
| [`ids::ReportId`](/docs/reference/rust/zaun-community-protocol/struct-ids-reportid/) | A member report. |
| [`command::membership::Request`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-request/) | `membership.request`. Unbound; responds with `super::invite::Admitted`. The target community is the envelope's `community_id`, as for `invite.redeem`. |
| [`ids::RequestId`](/docs/reference/rust/zaun-community-protocol/struct-ids-requestid/) | Correlates a command with its response; client-assigned. |
| [`permissions::Requirement`](/docs/reference/rust/zaun-community-protocol/struct-permissions-requirement/) | What a command requires (permissions the protocol, the protocol). |
| [`command::object::Resolution`](/docs/reference/rust/zaun-community-protocol/struct-command-object-resolution/) | `resolution: {outcome, note?, actor_id, at}`. |
| [`command::report::Resolve`](/docs/reference/rust/zaun-community-protocol/struct-command-report-resolve/) | `report.resolve`: `note?` is ≤ 512 scalars. |
| [`permissions::Resolved`](/docs/reference/rust/zaun-community-protocol/struct-permissions-resolved/) | One resolved permission set (`cp` or `chp`). |
| [`command::object::Resolved`](/docs/reference/rust/zaun-community-protocol/struct-command-object-resolved/) | Objects an interaction refers to, resolved by the host. |
| [`permissions::Resolver`](/docs/reference/rust/zaun-community-protocol/struct-permissions-resolver/) | Per-member state computed once; then `Resolver::community` and `Resolver::channel` are cheap enough to call for every channel of a snapshot. |
| [`command::interaction::Respond`](/docs/reference/rust/zaun-community-protocol/struct-command-interaction-respond/) | `interaction.respond`. |
| [`client::Response`](/docs/reference/rust/zaun-community-protocol/struct-client-response/) | A final response. `Debug` hides the body, which may embed a secret (an invitation link). |
| [`envelope::ResponseEnvelope`](/docs/reference/rust/zaun-community-protocol/struct-envelope-responseenvelope/) | `{ "v", "type": "response", "request_id", "ok", "body" \| "error" }`. |
| [`command::membership::Restore`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-restore/) | `membership.restore`. |
| [`command::sync::Resume`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-resume/) | `sync.resume`. |
| [`command::sync::Resumed`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-resumed/) | `sync.resume` response. |
| [`command::object::Resync`](/docs/reference/rust/zaun-community-protocol/struct-command-object-resync/) | `{stream, channel_id?}` of `sync.resume.resync` and `RESYNC_REQUIRED`. |
| [`command::object::Retention`](/docs/reference/rust/zaun-community-protocol/struct-command-object-retention/) | Message retention of a channel. |
| [`client::RetryPolicy`](/docs/reference/rust/zaun-community-protocol/struct-client-retrypolicy/) | Exponential backoff: `initial_ms`, then ×`factor`, capped at `cap_ms`; give up once `give_up_ms` have passed since the first send. |
| [`command::report::Review`](/docs/reference/rust/zaun-community-protocol/struct-command-report-review/) | `report.review`: `open` → `reviewing`. |
| [`command::invite::Revoke`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-revoke/) | `invite.revoke`. |
| [`ids::RngError`](/docs/reference/rust/zaun-community-protocol/struct-ids-rngerror/) | The operating system's CSPRNG failed. |
| [`permissions::Role`](/docs/reference/rust/zaun-community-protocol/struct-permissions-role/) | A role as the resolver sees it (permissions the protocol). |
| [`command::object::Role`](/docs/reference/rust/zaun-community-protocol/struct-command-object-role/) | A role. Visible to every member. |
| [`event::RoleDeleted`](/docs/reference/rust/zaun-community-protocol/struct-event-roledeleted/) | `role.deleted`: `{role_id}`. |
| [`ids::RoleId`](/docs/reference/rust/zaun-community-protocol/struct-ids-roleid/) | A role. `RoleId::EVERYONE` is the reserved all-zero id. |
| [`command::object::RolePosition`](/docs/reference/rust/zaun-community-protocol/struct-command-object-roleposition/) | One entry of `role.reorder` and `role.reordered`. |
| [`event::RolesReordered`](/docs/reference/rust/zaun-community-protocol/struct-event-rolesreordered/) | `role.reordered`: `positions`. SPEC: the `role.reorder` entry is reused. |
| [`command::member::RolesUpdate`](/docs/reference/rust/zaun-community-protocol/struct-command-member-rolesupdate/) | `member.roles.update`. |
| [`signed::RootRotation`](/docs/reference/rust/zaun-community-protocol/struct-signed-rootrotation/) | The replacement of the community's root key, signed by the old **and** the new key. |
| [`command::community::RotationPage`](/docs/reference/rust/zaun-community-protocol/struct-command-community-rotationpage/) | `community.rotations` response. |
| [`command::community::Rotations`](/docs/reference/rust/zaun-community-protocol/struct-command-community-rotations/) | `community.rotations`. |
| [`signed::Scopes`](/docs/reference/rust/zaun-community-protocol/struct-signed-scopes/) | Delegation scopes (field 6). Unknown bits are kept for re-encoding, are ignored and grant nothing. |
| [`crypto::SecretKey`](/docs/reference/rust/zaun-community-protocol/struct-crypto-secretkey/) | A suite-1 composite private key: `mldsaSeed` (FIPS 204 ξ, 32 B) ‖ `edSK` (32 B). |
| [`command::object::Section`](/docs/reference/rust/zaun-community-protocol/struct-command-object-section/) | Type 9. |
| [`command::object::SelectOption`](/docs/reference/rust/zaun-community-protocol/struct-command-object-selectoption/) | One option of a string select, radio group or checkbox group. |
| [`command::message::Send`](/docs/reference/rust/zaun-community-protocol/struct-command-message-send/) | `message.send`. |
| [`crypto::voice::SenderKey`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-senderkey/) | An SFrame base key (32 bytes). Zeroized on drop, never printed, never on the wire unwrapped. |
| [`crypto::voice::SenderKeys`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-senderkeys/) | The signed statement of one sender's epoch (see the module table). |
| [`crypto::voice::SenderKeysExpectation`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-senderkeysexpectation/) | What a recipient expects of a sender-keys message. |
| [`command::message::Sent`](/docs/reference/rust/zaun-community-protocol/struct-command-message-sent/) | `message.send` response. |
| [`command::object::Separator`](/docs/reference/rust/zaun-community-protocol/struct-command-object-separator/) | Type 14. |
| [`command::message::Sequenced`](/docs/reference/rust/zaun-community-protocol/struct-command-message-sequenced/) | `message.edit` and `message.delete` response: the event's `channel_seq`. |
| [`client::Session`](/docs/reference/rust/zaun-community-protocol/struct-client-session/) | A sans-IO client session. See the module documentation. |
| [`client::SessionConfig`](/docs/reference/rust/zaun-community-protocol/struct-client-sessionconfig/) | Everything a `super::Session` needs besides the transport. |
| [`command::app::Set`](/docs/reference/rust/zaun-community-protocol/struct-command-app-set/) | `command.set`: a bot replaces its whole command list. |
| [`command::dm::Settings`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-settings/) | The member's settings (`member.settings.get` / `.update` response). |
| [`command::dm::SettingsGet`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-settingsget/) | `member.settings.get`. |
| [`command::dm::SettingsUpdate`](/docs/reference/rust/zaun-community-protocol/struct-command-dm-settingsupdate/) | `member.settings.update`: absent fields stay. |
| [`crypto::Sha3Hasher`](/docs/reference/rust/zaun-community-protocol/struct-crypto-sha3hasher/) | An incremental `content_hash`, for attachment files read in pieces. |
| [`command::voice::Signal`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-signal/) | `voice.signal`: WebRTC signalling for one other participant of the same channel. |
| [`keys::Signature`](/docs/reference/rust/zaun-community-protocol/struct-keys-signature/) | A composite signature, 3 374 bytes. |
| [`signed::Signed`](/docs/reference/rust/zaun-community-protocol/struct-signed-signed/) | A signed object whose signature has been made or verified, with its exact bytes. |
| [`json::SignedJson`](/docs/reference/rust/zaun-community-protocol/struct-json-signedjson/) | A signed object as it travels in JSON: the canonical bytes `B` and the composite signature, both base64url. Receivers verify `sig` over `bytes` with the context of the object type  |
| [`crypto::voice::SignedKeyPackage`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-signedkeypackage/) | A key package whose signature was made here or verified. |
| [`signed::SignedRootRotation`](/docs/reference/rust/zaun-community-protocol/struct-signed-signedrootrotation/) | A rotation with both signatures, unverified (verify with `super::verify_chain`). |
| [`command::object::SignedRotation`](/docs/reference/rust/zaun-community-protocol/struct-command-object-signedrotation/) | A `SignedRootRotation` in JSON: `{bytes, sig_old, sig_new}`, all base64url. Kept undecoded, like `crate::json::SignedJson`; the `signed` module verifies it. |
| [`crypto::voice::SignedSenderKeys`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-signedsenderkeys/) | A sender-keys message whose signature was made here or verified. |
| [`command::sync::Snapshot`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-snapshot/) | `sync.snapshot`. |
| [`command::sync::SnapshotPage`](/docs/reference/rust/zaun-community-protocol/struct-command-sync-snapshotpage/) | `sync.snapshot` response. |
| [`command::presence::StatusSet`](/docs/reference/rust/zaun-community-protocol/struct-command-presence-statusset/) | `member.status.set`: replaces the actor's custom status. A body with neither `text` nor `emoji` clears it. |
| [`permissions::Steps`](/docs/reference/rust/zaun-community-protocol/struct-permissions-steps/) | The masks each step 7 restriction removed, in application order. |
| [`command::object::StringSelect`](/docs/reference/rust/zaun-community-protocol/struct-command-object-stringselect/) | Type 3. |
| [`permissions::Subject`](/docs/reference/rust/zaun-community-protocol/struct-permissions-subject/) | The member whose permissions are resolved. |
| [`command::object::SubmittedInput`](/docs/reference/rust/zaun-community-protocol/struct-command-object-submittedinput/) | One submitted modal input. |
| [`command::membership::Suspend`](/docs/reference/rust/zaun-community-protocol/struct-command-membership-suspend/) | `membership.suspend`. `until` is absolute; the 90-day bound is checked by `Command::validate_at`. |
| [`command::bot::Target`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-target/) | `bot.enable`, `bot.disable`, `bot.get`. |
| [`command::object::TextDisplay`](/docs/reference/rust/zaun-community-protocol/struct-command-object-textdisplay/) | Type 10. |
| [`command::object::TextInput`](/docs/reference/rust/zaun-community-protocol/struct-command-object-textinput/) | Type 4. |
| [`command::object::Thumbnail`](/docs/reference/rust/zaun-community-protocol/struct-command-object-thumbnail/) | Type 11. |
| [`command::member::Timeout`](/docs/reference/rust/zaun-community-protocol/struct-command-member-timeout/) | `member.timeout`. `until` is absolute; the 28-day bound needs the host clock, so it is checked by `Command::validate_at`. |
| [`command::signal::Typing`](/docs/reference/rust/zaun-community-protocol/struct-command-signal-typing/) | `signal.typing { channel_id }`. |
| [`event::TypingSignal`](/docs/reference/rust/zaun-community-protocol/struct-event-typingsignal/) | `signal.typing` live event: `{channel_id, member_ids}` in a `named` channel, `{channel_id, count}` in an `anonymous` one (who is typing is never sent there). |
| [`command::member::Unban`](/docs/reference/rust/zaun-community-protocol/struct-command-member-unban/) | `member.unban`. |
| [`command::bot::Update`](/docs/reference/rust/zaun-community-protocol/struct-command-bot-update/) | `bot.update`. |
| [`command::channel::Update`](/docs/reference/rust/zaun-community-protocol/struct-command-channel-update/) | `channel.update`: any of the fields; `null` clears only `topic` and `parent_id`. |
| [`command::community::Update`](/docs/reference/rust/zaun-community-protocol/struct-command-community-update/) | `community.update`: host-managed profile fields only. |
| [`command::member::Update`](/docs/reference/rust/zaun-community-protocol/struct-command-member-update/) | `member.update`: a display-name change. |
| [`command::role::Update`](/docs/reference/rust/zaun-community-protocol/struct-command-role-update/) | `role.update`: any of the `role.create` fields. |
| [`command::voice::Update`](/docs/reference/rust/zaun-community-protocol/struct-command-voice-update/) | `voice.update`: the member's own mute and deafen. |
| [`command::attachment::Upload`](/docs/reference/rust/zaun-community-protocol/struct-command-attachment-upload/) | `attachment.upload`: declares a file the member is about to send. |
| [`command::attachment::Uploading`](/docs/reference/rust/zaun-community-protocol/struct-command-attachment-uploading/) | `attachment.upload` response. |
| [`command::invite::UsePage`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-usepage/) | `invite.uses` response. |
| [`command::invite::Uses`](/docs/reference/rust/zaun-community-protocol/struct-command-invite-uses/) | `invite.uses`. Page size 1–100. |
| [`signed::ValidDescriptor`](/docs/reference/rust/zaun-community-protocol/struct-signed-validdescriptor/) | A descriptor that passed rule 1 and the descriptor parts of rule 5. |
| [`signed::ValidPair`](/docs/reference/rust/zaun-community-protocol/struct-signed-validpair/) | A (descriptor, delegation) pair valid at the time it was checked, with the state to store. Only `validate_pair` creates one. |
| [`signed::VerifiedPackage`](/docs/reference/rust/zaun-community-protocol/struct-signed-verifiedpackage/) | A package whose signature (unless unsigned was allowed), hashes and manifest ids were checked. |
| [`client::VerifiedWelcome`](/docs/reference/rust/zaun-community-protocol/struct-client-verifiedwelcome/) | A welcome that passed every check. Everything in it comes from verified signed objects or was compared with them. |
| [`envelope::VersionRange`](/docs/reference/rust/zaun-community-protocol/struct-envelope-versionrange/) | An inclusive protocol version range (`session.hello.versions`, `UNSUPPORTED_VERSION`). |
| [`command::session::Versions`](/docs/reference/rust/zaun-community-protocol/struct-command-session-versions/) | `{min, max}` protocol versions. |
| [`crypto::voice::VoiceIdentity`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-voiceidentity/) | A voice session's X-Wing key pair. The secret is the 32-byte X-Wing seed, zeroized on drop and never printed. It lives only as long as the voice session; it is never stored. |
| [`event::VoiceJoined`](/docs/reference/rust/zaun-community-protocol/struct-event-voicejoined/) | `voice.joined`: a member entered a voice channel. Its `key_package` is present only for the channel's other participants. |
| [`event::VoiceKeys`](/docs/reference/rust/zaun-community-protocol/struct-event-voicekeys/) | `voice.keys`: another participant's media key for `epoch`: its signed sender-keys message and the key wrapped for this participant only (never another's). |
| [`event::VoiceLeft`](/docs/reference/rust/zaun-community-protocol/struct-event-voiceleft/) | `voice.left`: a member left a voice channel. The member itself receives it too. |
| [`command::object::VoiceParticipant`](/docs/reference/rust/zaun-community-protocol/struct-command-object-voiceparticipant/) | One member in a voice channel. |
| [`crypto::voice::VoicePublicKey`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-voicepublickey/) | An X-Wing encapsulation key (ML-KEM-768 ‖ X25519, 1 216 bytes), validated on parse. |
| [`ids::VoiceSessionId`](/docs/reference/rust/zaun-community-protocol/struct-ids-voicesessionid/) | One stay of a member in a voice channel, host-assigned at `voice.join`. |
| [`crypto::voice::VoiceSessionId`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-voicesessionid/) | One participation in a voice channel. A member draws a fresh one on every join, so KIDs and epochs never repeat across joins. |
| [`event::VoiceSignal`](/docs/reference/rust/zaun-community-protocol/struct-event-voicesignal/) | `voice.signal`: WebRTC signalling from another participant, to this one only. |
| [`event::VoiceUpdated`](/docs/reference/rust/zaun-community-protocol/struct-event-voiceupdated/) | `voice.updated`: a participant's mute, deafen or `can_speak` changed. |
| [`command::session::Welcome`](/docs/reference/rust/zaun-community-protocol/struct-command-session-welcome/) | `session.welcome`. |
| [`crypto::voice::WrapContext`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-wrapcontext/) | Who wraps, for which channel and epoch: bound into the HPKE `info`. |
| [`crypto::voice::WrappedKey`](/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-wrappedkey/) | A base key wrapped to one recipient: X-Wing `enc` ‖ AES-256-GCM ciphertext ‖ tag. |
| [`encoding::Writer`](/docs/reference/rust/zaun-community-protocol/struct-encoding-writer/) | Appends canonical encodings to a buffer. Variable fields take their limit and fail above it, mirroring `super::Reader`. |

## Traits

| Item | Summary |
|---|---|
| [`command::Body`](/docs/reference/rust/zaun-community-protocol/trait-command-body/) | A command body type: its wire name and response body type. |
| [`command::BodyVisitor`](/docs/reference/rust/zaun-community-protocol/trait-command-bodyvisitor/) | Something done with a command body of a type known only at run time (`Command::visit`). |
| [`encoding::Decode`](/docs/reference/rust/zaun-community-protocol/trait-encoding-decode/) | A type with a canonical decoding. |
| [`encoding::Encode`](/docs/reference/rust/zaun-community-protocol/trait-encoding-encode/) | A type with a canonical encoding (fixed-size or self-limiting). |
| [`signed::SignedObject`](/docs/reference/rust/zaun-community-protocol/trait-signed-signedobject/) | A signed object type: its canonical encoding (format byte first) and its context. |
| [`command::Validate`](/docs/reference/rust/zaun-community-protocol/trait-command-validate/) | State-free checks of one body. |
