# Zaun > Zaun is a private, self-hosted community platform (channels, roles, voice, bots) that runs over SimpleX: a community lives on a small host its owner runs (`zaun-host`), apps and bots talk to it with `zaun-client` (Rust, and JavaScript/WebAssembly), and bots written with `zaun-bot` (TypeScript with `@zaun/bot`, the default, or Rust) run as sandboxed WebAssembly inside the host itself. Bot examples are given in TypeScript first, then Rust. Every page below is plain Markdown. Also available: the whole site in one file at https://zaunchat.github.io/docs/llms-full.txt, and a JSON index of pages at https://zaunchat.github.io/docs/api/index.json. Code repositories: https://github.com/zaunchat/zaun-community (host), https://github.com/zaunchat/zaun-client (client library), https://github.com/zaunchat/zaun-bot (bot SDKs: `@zaun/bot` for TypeScript in sdk/js, the `zaun-bot` crate for Rust). ## Start here - [Introduction](https://zaunchat.github.io/docs/guide/introduction.md): What these docs cover, who they are for, and how to read them. - [What is Zaun?](https://zaunchat.github.io/docs/guide/what-is-zaun.md): Zaun in five minutes, how a community, its host, apps and bots fit together, and the one trade-off to know. - [Quick start](https://zaunchat.github.io/docs/guide/quick-start.md): Run a host with Docker, create a community from a script, and invite yourself, in about ten minutes. ## Concepts - [Communities and hosts](https://zaunchat.github.io/docs/guide/concepts/communities-and-hosts.md): Who owns a community, what a host does, and how a community can move between hosts. - [Members, roles and permissions](https://zaunchat.github.io/docs/guide/concepts/members-roles-permissions.md): How membership, roles, per-channel overrides and the management hierarchy work. - [Channels, messages and sync](https://zaunchat.github.io/docs/guide/concepts/channels-and-messages.md): Channel kinds, messages, attachments, embeds, and how members never miss anything. - [SimpleX transport and trust](https://zaunchat.github.io/docs/guide/concepts/transport-and-trust.md): How members reach a host over SimpleX, what is encrypted, what the host can see, and the post-quantum design. - [Typing indicators](https://zaunchat.github.io/docs/guide/concepts/typing-indicators.md): Each channel decides how typing shows: with names, anonymously as a count, or not at all. ## Running a host - [Installing zaun-host](https://zaunchat.github.io/docs/guide/host/installing.md): Run zaun-host with Docker, Docker Compose, systemd, or a binary you build from source. - [First run](https://zaunchat.github.io/docs/guide/host/first-run.md): Check the host's health, find its address and key, and allow community creation. - [Configuring a host](https://zaunchat.github.io/docs/guide/host/configuration.md): zaun-host.toml explained, section by section; relays, community creation, attachments, voice and bots. - [Moving a community and backups](https://zaunchat.github.io/docs/guide/host/moving-a-community.md): Hand a community to a new host with zaun-host export and import, and what members see. ## Building a client (zaun-client) - [Installing zaun-client](https://zaunchat.github.io/docs/guide/client/installation.md): Add zaun-client to a Rust project, or build its JavaScript/WebAssembly package for browsers, Node.js and Bun. - [Connecting and joining](https://zaunchat.github.io/docs/guide/client/connecting.md): Start a client, join a community with an invite, keep its state between runs, and handle your first events. - [Sending and managing messages](https://zaunchat.github.io/docs/guide/client/messages.md): Send, reply, edit, delete and react to messages, and read a channel's history. - [Embeds and attachments](https://zaunchat.github.io/docs/guide/client/embeds-and-attachments.md): Rich embeds built with EmbedBuilder, and files sent as encrypted attachments. - [Members, roles and moderation](https://zaunchat.github.io/docs/guide/client/members-and-moderation.md): Read members and roles, check permissions, and kick, ban and time out from code. - [Voice](https://zaunchat.github.io/docs/guide/client/voice.md): Join voice channels, send and receive audio, and play music with an audio player; end-to-end encrypted. - [Using bots](https://zaunchat.github.io/docs/guide/client/bots.md): List a community's bots and commands, run commands, click components, submit modals, and (as the owner) install and manage bots. - [Direct messages with bots](https://zaunchat.github.io/docs/guide/client/direct-messages.md): Open, read, send in and close direct messages with bots, and let members turn DMs from bots off. - [Typing indicators](https://zaunchat.github.io/docs/guide/client/typing.md): Send and show typing, and set a channel's typing mode: named, anonymous or off. - [Status and presence](https://zaunchat.github.io/docs/guide/client/status-and-presence.md): Set your status, activity and custom status text, and show everyone else's: online, idle, do not disturb, invisible. - [Events and the cache](https://zaunchat.github.io/docs/guide/client/events-and-cache.md): Every event zaun-client emits, in Rust and JavaScript, and what the local cache holds. ## Bots (zaun-bot: TypeScript and Rust) - [Why bots run in the host](https://zaunchat.github.io/docs/guide/bots/why-bots-in-the-host.md): How Zaun bots work, and why they run as sandboxed WebAssembly inside the community's own host. - [Bot quick start](https://zaunchat.github.io/docs/guide/bots/quickstart.md): Write, build, pack and install a /ping bot with zbot, in TypeScript (the default) or Rust. - [TypeScript or Rust?](https://zaunchat.github.io/docs/guide/bots/typescript-or-rust.md): Both SDKs build the same kind of bot. How they differ in size, speed and the few TypeScript-specific rules. - [Slash commands](https://zaunchat.github.io/docs/guide/bots/slash-commands.md): Register slash, user and message commands, sub-commands and groups, and control who can use them. - [Options and autocomplete](https://zaunchat.github.io/docs/guide/bots/options-and-autocomplete.md): Command option types, choices, bounds, reading values, and suggesting values as members type. - [Interactions and responses](https://zaunchat.github.io/docs/guide/bots/interactions.md): Replies, ephemeral replies, deferrals, message updates, follow-ups and modals; the 3-second and 15-minute rules. - [Buttons, selects and layouts](https://zaunchat.github.io/docs/guide/bots/components.md): Message components: buttons, selects, and Components V2 containers, sections and media. - [Modals](https://zaunchat.github.io/docs/guide/bots/modals.md): Open a form from a command or a button, and read what the member submitted. - [Embeds](https://zaunchat.github.io/docs/guide/bots/embeds.md): Rich embed cards in bot messages, their limits, and the rules for pictures and links. - [Events](https://zaunchat.github.io/docs/guide/bots/events.md): Follow what happens in the community: messages, reactions, members, channels, roles, typing, presence and direct messages. - [Direct messages](https://zaunchat.github.io/docs/guide/bots/direct-messages.md): A bot talks privately with one member: what it needs, how to send, what the member controls, and the limits against spam. - [Status and presence](https://zaunchat.github.io/docs/guide/bots/status-and-presence.md): Set the bot's status, activity and custom status text, at start or from a handler, and follow other members' presence. - [Voice and music](https://zaunchat.github.io/docs/guide/bots/voice-and-music.md): A bot joins a voice channel and plays Opus audio from a URL, from bytes it holds, or from packets it makes; queue, controls and events. - [Storage, timers and HTTP](https://zaunchat.github.io/docs/guide/bots/storage-timers-http.md): A bot's private key-value storage, timers, and HTTPS requests to granted hosts. - [Manifest, grants and the bot card](https://zaunchat.github.io/docs/guide/bots/manifest-and-grants.md): What a bot asks for in zaun-bot.toml, how grants are decided, and what every member can see. - [Packaging, signing and updates](https://zaunchat.github.io/docs/guide/bots/packaging-and-updates.md): The .zbot package format, publisher signatures, and how hosts accept updates. - [Installing bots on a host](https://zaunchat.github.io/docs/guide/bots/installing.md): Install, review, grant, update, disable and remove bots with zaun-host bot, or from a client as the owner. - [External bots with zaun-client](https://zaunchat.github.io/docs/guide/bots/external-bots.md): A bot that runs outside the host and joins like a member, using zaun-client in Rust or JavaScript. - [Porting an existing bot](https://zaunchat.github.io/docs/guide/bots/porting-a-bot.md): Moving a bot from another chat platform's interactions API to Zaun; what maps directly and what differs. ## Examples - [Examples](https://zaunchat.github.io/docs/examples.md): Complete, working bots and programs with explanations, in TypeScript and Rust. - [Ping (hosted bot)](https://zaunchat.github.io/docs/examples/ping.md): The smallest hosted bot: /ping answers pong. - [Poll with buttons](https://zaunchat.github.io/docs/examples/poll-buttons.md): A yes/no poll whose buttons update the vote counts in place. - [Feedback form (modal)](https://zaunchat.github.io/docs/examples/feedback-modal.md): A /feedback command that opens a form, thanks the member privately, and posts the result. - [Welcome DM](https://zaunchat.github.io/docs/examples/welcome-dm.md): Greets new members by direct message, answers what they write back, and offers /dm-me. - [Music in voice](https://zaunchat.github.io/docs/examples/music.md): A music bot: /join, /play, /queue, /skip, /pause, /resume, /stop, /leave, and control buttons. - [Ping bot with zaun-client](https://zaunchat.github.io/docs/examples/client-ping-bot.md): An external bot in Rust and JavaScript that joins with an invite and answers text commands. ## Optional: Reference: TypeScript bot API (@zaun/bot) - [@zaun/bot](https://zaunchat.github.io/docs/reference/js/zaun-bot/readme.md) - [ActionRowBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/actionrowbuilder.md) - [Activity](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/activity.md) - [AutocompleteInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/autocompleteinteraction.md) - [BaseInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/baseinteraction.md) - [Bot](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/bot.md) - [ButtonBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/buttonbuilder.md) - [ChannelSelectMenuBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/channelselectmenubuilder.md) - [ChatInputCommandInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/chatinputcommandinteraction.md) - [CheckboxBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/checkboxbuilder.md) - [CheckboxGroupBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/checkboxgroupbuilder.md) - [CommandInteractionOptionResolver](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/commandinteractionoptionresolver.md) - [ContainerBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/containerbuilder.md) - [ContextMenuCommandBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/contextmenucommandbuilder.md) - [EmbedBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/embedbuilder.md) - [EventContext](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/eventcontext.md) - [FileBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/filebuilder.md) - [FileUploadBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/fileuploadbuilder.md) - [HttpError](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/httperror.md) - [LabelBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/labelbuilder.md) - [MediaGalleryBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/mediagallerybuilder.md) - [Member](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/member.md) - [MemberRoles](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/memberroles.md) - [MentionableSelectMenuBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/mentionableselectmenubuilder.md) - [Message](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/message.md) - [MessageComponentInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/messagecomponentinteraction.md) - [MessageContextMenuCommandInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/messagecontextmenucommandinteraction.md) - [MessageMentions](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/messagementions.md) - [ModalBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/modalbuilder.md) - [ModalCapableInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/modalcapableinteraction.md) - [ModalSubmitFields](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/modalsubmitfields.md) - [ModalSubmitInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/modalsubmitinteraction.md) - [OptionBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/optionbuilder.md) - [RadioGroupBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/radiogroupbuilder.md) - [RepliableInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/repliableinteraction.md) - [RoleSelectMenuBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/roleselectmenubuilder.md) - [SectionBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/sectionbuilder.md) - [SeparatorBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/separatorbuilder.md) - [SlashCommandBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/slashcommandbuilder.md) - [SlashCommandSubcommandBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/slashcommandsubcommandbuilder.md) - [SlashCommandSubcommandGroupBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/slashcommandsubcommandgroupbuilder.md) - [StringSelectMenuBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/stringselectmenubuilder.md) - [StringSelectMenuOptionBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/stringselectmenuoptionbuilder.md) - [TextDisplayBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/textdisplaybuilder.md) - [TextInputBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/textinputbuilder.md) - [ThumbnailBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/thumbnailbuilder.md) - [UserContextMenuCommandInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/usercontextmenucommandinteraction.md) - [UserSelectMenuBuilder](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/userselectmenubuilder.md) - [ZaunError](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/zaunerror.md) - [ZaunValidationError](https://zaunchat.github.io/docs/reference/js/zaun-bot/classes/zaunvalidationerror.md) - [hasPermission](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/haspermission.md) - [interactionFromWit](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/interactionfromwit.md) - [isId](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/isid.md) - [parseMentions](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/parsementions.md) - [roleMention](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/rolemention.md) - [setCommands](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/setcommands.md) - [toBody](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/tobody.md) - [userMention](https://zaunchat.github.io/docs/reference/js/zaun-bot/functions/usermention.md) - [AudioStreamOptions](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/audiostreamoptions.md) - [AutocompleteChoice](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/autocompletechoice.md) - [BotEvents](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/botevents.md) - [Command](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/command.md) - [CommandLike](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/commandlike.md) - [EmbedData](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/embeddata.md) - [HttpResponse](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/httpresponse.md) - [Me](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/me.md) - [MediaGalleryItem](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/mediagalleryitem.md) - [MessageOptions](https://zaunchat.github.io/docs/reference/js/zaun-bot/interfaces/messageoptions.md) - [ApplicationCommandOptionType](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/applicationcommandoptiontype.md) - [ApplicationCommandType](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/applicationcommandtype.md) - [AudioFormat](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/audioformat.md) - [ButtonInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/buttoninteraction.md) - [ButtonStyle](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/buttonstyle.md) - [ChannelSelectMenuInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/channelselectmenuinteraction.md) - [ContainerComponent](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/containercomponent.md) - [EventMessage](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/eventmessage.md) - [Interaction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/interaction.md) - [LabelComponent](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/labelcomponent.md) - [LoopMode](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/loopmode.md) - [MentionableSelectMenuInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/mentionableselectmenuinteraction.md) - [MessagePayload](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/messagepayload.md) - [PresenceStatus](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/presencestatus.md) - [RoleSelectMenuInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/roleselectmenuinteraction.md) - [RowComponent](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/rowcomponent.md) - [SeparatorSpacingSize](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/separatorspacingsize.md) - [StringSelectMenuInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/stringselectmenuinteraction.md) - [TextInputStyle](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/textinputstyle.md) - [TopLevelComponent](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/toplevelcomponent.md) - [TrackOptions](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/trackoptions.md) - [UserSelectMenuInteraction](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/userselectmenuinteraction.md) - [VoiceState](https://zaunchat.github.io/docs/reference/js/zaun-bot/type-aliases/voicestate.md) - [ApplicationCommandOptionType](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/applicationcommandoptiontype.md) - [ApplicationCommandType](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/applicationcommandtype.md) - [audio](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/audio.md) - [ButtonStyle](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/buttonstyle.md) - [community](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/community.md) - [ComponentType](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/componenttype.md) - [dms](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/dms.md) - [everyoneMention](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/everyonemention.md) - [http](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/http.md) - [Limits](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/limits.md) - [log](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/log.md) - [memberMention](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/membermention.md) - [MentionLimits](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/mentionlimits.md) - [messages](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/messages.md) - [PermissionFlagsBits](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/permissionflagsbits.md) - [presence](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/presence.md) - [SeparatorSpacingSize](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/separatorspacingsize.md) - [storage](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/storage.md) - [TextInputStyle](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/textinputstyle.md) - [timers](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/timers.md) - [voice](https://zaunchat.github.io/docs/reference/js/zaun-bot/variables/voice.md) ## Optional: Reference: JavaScript client API (zaun-client) - [zaun-client](https://zaunchat.github.io/docs/reference/js/zaun-client/readme.md) - [ActionRowBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/actionrowbuilder.md) - [Attachment](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/attachment.md) - [AttachmentReader](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/attachmentreader.md) - [ButtonBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/buttonbuilder.md) - [Channel](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/channel.md) - [Client](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/client.md) - [Collection](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/collection.md) - [CommandBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/commandbuilder.md) - [Community](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/community.md) - [ContainerBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/containerbuilder.md) - [Embed](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/embed.md) - [EmbedBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/embedbuilder.md) - [Interaction](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/interaction.md) - [Member](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/member.md) - [Message](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/message.md) - [MessageMentions](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/messagementions.md) - [ModalBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/modalbuilder.md) - [Permissions](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/permissions.md) - [RawClient](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/rawclient.md) - [Role](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/role.md) - [SelectBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/selectbuilder.md) - [SimplexClient](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/simplexclient.md) - [TextInputBuilder](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/textinputbuilder.md) - [VoiceConnection](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/voiceconnection.md) - [ZaunError](https://zaunchat.github.io/docs/reference/js/zaun-client/classes/zaunerror.md) - [inspectPackage](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/inspectpackage.md) - [memberMention](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/membermention.md) - [parseMentions](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/parsementions.md) - [registryKeyId](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/registrykeyid.md) - [roleMention](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/rolemention.md) - [userMention](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/usermention.md) - [verifyCatalog](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/verifycatalog.md) - [verifyHistory](https://zaunchat.github.io/docs/reference/js/zaun-client/functions/verifyhistory.md) - [Activity](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/activity.md) - [AllowedMentions](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/allowedmentions.md) - [ApplicationCommandData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/applicationcommanddata.md) - [BotCapabilities](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/botcapabilities.md) - [BotCard](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/botcard.md) - [BotConfigKey](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/botconfigkey.md) - [BotSource](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/botsource.md) - [CatalogSeen](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/catalogseen.md) - [CatalogVerification](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/catalogverification.md) - [ClientEvents](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/clientevents.md) - [CommandOptionData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/commandoptiondata.md) - [DmChannelData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/dmchanneldata.md) - [DmSettings](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/dmsettings.md) - [EmbedData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/embeddata.md) - [EmbedFieldData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/embedfielddata.md) - [FileToSend](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/filetosend.md) - [HistoryVerification](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/historyverification.md) - [InstallSource](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/installsource.md) - [MentionsData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/mentionsdata.md) - [MentionsInput](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/mentionsinput.md) - [OptionValueData](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/optionvaluedata.md) - [PackageIdentity](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/packageidentity.md) - [PackageInspection](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/packageinspection.md) - [Presence](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/presence.md) - [RegistryError](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/registryerror.md) - [StartOptions](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/startoptions.md) - [VoiceEvents](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/voiceevents.md) - [VoiceState](https://zaunchat.github.io/docs/reference/js/zaun-client/interfaces/voicestate.md) - [BotMessageOptions](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/botmessageoptions.md) - [ComponentData](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/componentdata.md) - [MessageEditOptions](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/messageeditoptions.md) - [MessageOptions](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/messageoptions.md) - [PermissionFlag](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/permissionflag.md) - [PermissionResolvable](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/permissionresolvable.md) - [PictureSource](https://zaunchat.github.io/docs/reference/js/zaun-client/type-aliases/picturesource.md) - [ApplicationCommandType](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/applicationcommandtype.md) - [ButtonStyle](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/buttonstyle.md) - [ComponentType](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/componenttype.md) - [everyoneMention](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/everyonemention.md) - [InteractionType](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/interactiontype.md) - [MentionLimits](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/mentionlimits.md) - [MessageFlags](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/messageflags.md) - [OptionType](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/optiontype.md) - [RawAttachmentReader](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/rawattachmentreader.md) - [TextInputStyle](https://zaunchat.github.io/docs/reference/js/zaun-client/variables/textinputstyle.md) ## Optional: Reference: Rust API - [Rust API](https://zaunchat.github.io/docs/reference/rust.md): Generated reference for the zaun-client, zaun-bot and zaun-community-protocol crates. - [zaun-bot 0.2.0](https://zaunchat.github.io/docs/reference/rust/zaun-bot.md): API reference of the zaun_bot crate, generated from rustdoc. - [zaun-client 0.6.0](https://zaunchat.github.io/docs/reference/rust/zaun-client.md): API reference of the zaun_client crate, generated from rustdoc. - [zaun-community-protocol 0.4.1](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol.md): API reference of the zaun_community_protocol crate, generated from rustdoc. - [Constant mention::EVERYONE](https://zaunchat.github.io/docs/reference/rust/zaun-bot/constant-mention-everyone.md): The text that shows `@everyone`. - [Constant mention::MAX_MEMBERS](https://zaunchat.github.io/docs/reference/rust/zaun-bot/constant-mention-max_members.md): Most members one message may mention (spec the protocol). - [Constant mention::MAX_ROLES](https://zaunchat.github.io/docs/reference/rust/zaun-bot/constant-mention-max_roles.md): Most roles one message may mention (spec the protocol). - [Enum audio::AudioFormat](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-audio-audioformat.md): How the bot's audio is encoded. - [Enum bindings::zaun::bot::http::HttpError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-http-httperror.md): Enum HttpError in zaun_bot. - [Enum bindings::zaun::bot::log::Level](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-log-level.md): Enum Level in zaun_bot. - [Enum bindings::zaun::bot::types::ButtonStyle](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-buttonstyle.md): components Button styles 1-5; premium (6) is not supported. - [Enum bindings::zaun::bot::types::CommandEntry](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-commandentry.md): Enum CommandEntry in zaun_bot. - [Enum bindings::zaun::bot::types::CommandKind](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-commandkind.md): application commands Type 1, 2, 3. - [Enum bindings::zaun::bot::types::Component](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-component.md): A top-level message component. Without `components-v2` only `action-row` is allowed. - [Enum bindings::zaun::bot::types::ContainerChild](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-containerchild.md): Enum ContainerChild in zaun_bot. - [Enum bindings::zaun::bot::types::DefaultValueKind](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-defaultvaluekind.md): Enum DefaultValueKind in zaun_bot. - [Enum bindings::zaun::bot::types::EntityKind](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-entitykind.md): Types 5 (user), 6 (role), 7 (mentionable), 8 (channel). - [Enum bindings::zaun::bot::types::InteractionData](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-interactiondata.md): Enum InteractionData in zaun_bot. - [Enum bindings::zaun::bot::types::LabelChild](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-labelchild.md): Enum LabelChild in zaun_bot. - [Enum bindings::zaun::bot::types::ModalItem](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-modalitem.md): Enum ModalItem in zaun_bot. - [Enum bindings::zaun::bot::types::OptionKind](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-optionkind.md): Option types 3-11 (1 and 2 are sub-commands and groups). - [Enum bindings::zaun::bot::types::OptionValue](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-optionvalue.md): interactions - [Enum bindings::zaun::bot::types::Response](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-response.md): Callback types 4-9 (8, the autocomplete result, is the return value of `on-autocomplete`). - [Enum bindings::zaun::bot::types::RowItem](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-rowitem.md): Enum RowItem in zaun_bot. - [Enum bindings::zaun::bot::types::SectionAccessory](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-sectionaccessory.md): Enum SectionAccessory in zaun_bot. - [Enum bindings::zaun::bot::types::SeparatorSpacing](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-separatorspacing.md): Enum SeparatorSpacing in zaun_bot. - [Enum bindings::zaun::bot::types::TextInputStyle](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-types-textinputstyle.md): modals - [Enum bindings::zaun::bot::voice::Source](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-bindings-zaun-bot-voice-source.md): Where a track's audio comes from. - [Enum prelude::ChoiceValue](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-prelude-choicevalue.md): Enum ChoiceValue in zaun_bot. - [Enum prelude::Event](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-prelude-event.md): The events a bot asked for in its manifest (`events`: wire types, groups such as `messages`, `members`, `dms`, or `*`). Anything without a typed case arrives as `other` with the ev - [Enum presence::ActivityType](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-presence-activitytype.md): "Playing {name}", "Streaming {name}", "Listening to {name}", "Watching {name}", "Competing in {name}", or free text (`custom`). - [Enum presence::Status](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-presence-status.md): `invisible` looks offline to everyone. - [Enum Select](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-select.md): Builds a select menu: string options or members, roles, mentionables or channels. - [Enum voice::LoopMode](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-voice-loopmode.md): What happens when a track ends: go on (`off`), play it again (`track`), or put it at the end of the queue (`queue`). - [Enum voice::PlayerStatus](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-voice-playerstatus.md): Enum PlayerStatus in zaun_bot. - [Enum voice::VoiceEvent](https://zaunchat.github.io/docs/reference/rust/zaun-bot/enum-voice-voiceevent.md): What happened, for `on-voice-event`. - [Function bindings::zaun::bot::audio::buffered_ms](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-audio-buffered_ms.md): The audio written and not yet played, in ms (0 without a stream). - [Function bindings::zaun::bot::audio::clear](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-audio-clear.md): Drops everything buffered at once, keeping the stream open (to interrupt speech). - [Function bindings::zaun::bot::audio::close](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-audio-close.md): Closes the stream: once the buffer has played (`drain`), or at once. The player resumes. Nothing happens without a stream. - [Function bindings::zaun::bot::audio::open](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-audio-open.md): Opens the stream in the bot's voice channel, pausing the player. `CONFLICT` when the bot is in no voice channel or a stream is open; `UNSUPPORTED` for a format the host cannot take - [Function bindings::zaun::bot::audio::write_opus](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-audio-write_opus.md): Opus packets, for an `opus` stream. Returns the audio buffered, in ms; `BUSY` past 3 s. - [Function bindings::zaun::bot::audio::write_pcm](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-audio-write_pcm.md): Interleaved samples, for a `pcm` stream; any count (the host frames them). Returns the audio buffered, in ms; `BUSY` past 3 s. - [Function bindings::zaun::bot::commands::set](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-commands-set.md): Function set in zaun_bot. - [Function bindings::zaun::bot::community::add_role](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-add_role.md): `member.roles.update`. - [Function bindings::zaun::bot::community::get_channel](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-get_channel.md): Function get_channel in zaun_bot. - [Function bindings::zaun::bot::community::get_member](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-get_member.md): Needs capability `members` for members the bot has not seen. - [Function bindings::zaun::bot::community::get_role](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-get_role.md): Function get_role in zaun_bot. - [Function bindings::zaun::bot::community::kick](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-kick.md): `member.kick`. - [Function bindings::zaun::bot::community::list_channels](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-list_channels.md): Function list_channels in zaun_bot. - [Function bindings::zaun::bot::community::list_members](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-list_members.md): Function list_members in zaun_bot. - [Function bindings::zaun::bot::community::list_roles](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-list_roles.md): Function list_roles in zaun_bot. - [Function bindings::zaun::bot::community::remove_role](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-remove_role.md): Function remove_role in zaun_bot. - [Function bindings::zaun::bot::community::timeout](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-community-timeout.md): `member.timeout`; `none` clears. - [Function bindings::zaun::bot::dms::close](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-dms-close.md): `dm.close`: hides it from the bot's list. - [Function bindings::zaun::bot::dms::list_open](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-dms-list_open.md): `dm.list`: the DMs the bot has open. - [Function bindings::zaun::bot::dms::open](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-dms-open.md): `dm.open`: the DM with `member-id`, created when there is none. - [Function bindings::zaun::bot::http::fetch](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-http-fetch.md): Function fetch in zaun_bot. - [Function bindings::zaun::bot::interactions::delete_original](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-interactions-delete_original.md): Deletes the original response. - [Function bindings::zaun::bot::interactions::edit_original](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-interactions-edit_original.md): Edits the original response (ends a deferred "thinking" state). - [Function bindings::zaun::bot::interactions::followup](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-interactions-followup.md): A follow-up message, within 15 minutes; at most 10. - [Function bindings::zaun::bot::interactions::respond](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-interactions-respond.md): The initial response, within 3 s (the runtime defers automatically at 2.5 s). Returns the message id when the response created a channel message. - [Function bindings::zaun::bot::log::write](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-log-write.md): Function write in zaun_bot. - [Function bindings::zaun::bot::messages::delete](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-delete.md): `message.delete`. - [Function bindings::zaun::bot::messages::dm](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-dm.md): A direct message to member `member-id` (capability `dms`): opens the DM when needed, then sends. Returns the DM's channel id and the message id. - [Function bindings::zaun::bot::messages::edit](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-edit.md): `message.edit` of one of the bot's messages. - [Function bindings::zaun::bot::messages::history](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-history.md): `message.history`: up to `limit` (1-100) messages before `before`. - [Function bindings::zaun::bot::messages::react](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-react.md): `reaction.add`. - [Function bindings::zaun::bot::messages::send](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-send.md): `message.send`. Returns the new message id. - [Function bindings::zaun::bot::messages::unreact](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-unreact.md): `reaction.remove` of the bot's own reaction. - [Function bindings::zaun::bot::messages::upload](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-messages-upload.md): Uploads a file for the bot's next message (capability `attachments`). Returns the attachment id to put in `message-body.attachments`. - [Function bindings::zaun::bot::presence::set](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-presence-set.md): Sets the bot's status and activity (`signal.presence`). The host shows changes at most every 3 s: a later call within that time replaces an earlier one that has not gone out. The b - [Function bindings::zaun::bot::presence::set_status_text](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-presence-set_status_text.md): Sets the custom status text and emoji (`member.status.set`), kept until `expires-at` (or changed); `none` for both clears it. - [Function bindings::zaun::bot::storage::delete](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-storage-delete.md): Function delete in zaun_bot. - [Function bindings::zaun::bot::storage::get](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-storage-get.md): Function get in zaun_bot. - [Function bindings::zaun::bot::storage::list_keys](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-storage-list_keys.md): Keys starting with `prefix`, in order, after `after`, at most `limit` (≤ 1000). - [Function bindings::zaun::bot::storage::set](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-storage-set.md): `QUOTA_EXCEEDED` when the grant is used up. - [Function bindings::zaun::bot::timers::after](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-timers-after.md): Fires once after `ms`. - [Function bindings::zaun::bot::timers::cancel](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-timers-cancel.md): Function cancel in zaun_bot. - [Function bindings::zaun::bot::timers::every](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-timers-every.md): Fires every `ms` (≥ 1000). - [Function bindings::zaun::bot::voice::clear_queue](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-clear_queue.md): Empties the queue; the current track keeps playing. - [Function bindings::zaun::bot::voice::end_stream](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-end_stream.md): The `pushed` track ends once its buffered packets have played. - [Function bindings::zaun::bot::voice::enqueue](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-enqueue.md): Adds `track` to the queue (≤ 100); returns the queue's length. - [Function bindings::zaun::bot::voice::join](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-join.md): Joins voice channel `channel` (leaving another one first). Returns once media can flow (at most about 10 s). `FORBIDDEN` without `voice`, `CONNECT` or `SPEAK`. - [Function bindings::zaun::bot::voice::leave](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-leave.md): Leaves; playback stops and the queue is cleared. - [Function bindings::zaun::bot::voice::move_](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-move_.md): Moves the queued track at `from` to `to` (both 0-based); the tracks between shift. `NOT_FOUND` past the end. - [Function bindings::zaun::bot::voice::pause](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-pause.md): Function pause in zaun_bot. - [Function bindings::zaun::bot::voice::play](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-play.md): Plays `track` now, replacing the current one; the queue stays. - [Function bindings::zaun::bot::voice::push](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-push.md): Opus packets (2.5 to 120 ms each, ≤ 1000 bytes) for the current `pushed` track. Returns the audio buffered, in ms; `BUSY` past 3 s, so push about as fast as it plays. - [Function bindings::zaun::bot::voice::remove](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-remove.md): Removes the queued track at `index` (0 plays next); returns its title. `NOT_FOUND` past the end. - [Function bindings::zaun::bot::voice::resume](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-resume.md): Function resume in zaun_bot. - [Function bindings::zaun::bot::voice::seek](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-seek.md): Jumps to `ms` into the current track (past the end: the track ends). `UNSUPPORTED` for live streams and pushed audio, and on hosts that cannot seek; `CONFLICT` when nothing plays. - [Function bindings::zaun::bot::voice::set_loop](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-set_loop.md): Sets what happens when a track ends (`off` when the bot joins). - [Function bindings::zaun::bot::voice::set_volume](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-set_volume.md): Sets the playback volume, 0-200 % (100 when the bot joins; `BAD_REQUEST` above 200). Changing it means decoding and re-encoding the Opus audio, so hosts without an Opus encoder ans - [Function bindings::zaun::bot::voice::shuffle](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-shuffle.md): Puts the queue in a random order (the current track keeps playing). - [Function bindings::zaun::bot::voice::skip](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-skip.md): Ends the current track; the next one starts. - [Function bindings::zaun::bot::voice::state](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-state.md): Where the bot is and what it plays. - [Function bindings::zaun::bot::voice::stop](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-bindings-zaun-bot-voice-stop.md): Ends the current track and clears the queue. - [Function dispatch](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-dispatch.md): Calls the `Bot` handler for `event`. - [Function mention::is_id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-mention-is_id.md): Whether `id` is a well-formed Zaun id: 16 bytes in unpadded base64url (22 characters, the last one of `A`, `Q`, `g`, `w`). - [Function mention::member](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-mention-member.md): The text that shows a member mention: `<@id>` (discord.js `userMention`). - [Function mention::none](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-mention-none.md): No mentions. - [Function mention::parse](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-mention-parse.md): The mentions `content` shows: `<@id>` (and Discord's `<@!id>`) for members, `<@&id>` for roles, `@everyone`. Each id once, in order, at most `MAX_MEMBERS` members and `MAX_ROLES` r - [Function mention::role](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-mention-role.md): The text that shows a role mention: `<@&id>` (discord.js `roleMention`). - [Function presence::clear_status](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-presence-clear_status.md): Clears the custom status. - [Function presence::set](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-presence-set.md): Sets the bot's status and activity (`None`: no activity). - [Function presence::set_status](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-presence-set_status.md): Sets the custom status text and emoji, cleared by the host at `expires_at` (ms) if given. - [Function presence::set_status_text](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-presence-set_status_text.md): Sets the custom status text, kept until changed. - [Function text_choice](https://zaunchat.github.io/docs/reference/rust/zaun-bot/function-text_choice.md): A text `Choice` (autocomplete results and fixed choices). - [Macro export_bot](https://zaunchat.github.io/docs/reference/rust/zaun-bot/macro-export_bot.md): Exports a `Bot` type as the component's `zaun:bot/bot` implementation. - [Macro log_info](https://zaunchat.github.io/docs/reference/rust/zaun-bot/macro-log_info.md): Writes an `info` line to the bot's log (`zaun-host bot logs`). - [Struct ActionRow](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-actionrow.md): Builds a types::ActionRow: up to 5 buttons, or one select. - [Struct Audio](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-audio.md): The bot's audio output stream. - [Struct audio::PcmFormat](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-audio-pcmformat.md): PCM the host encodes to Opus. - [Struct audio::StreamOptions](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-audio-streamoptions.md): Struct StreamOptions in zaun_bot. - [Struct bindings::zaun::bot::http::Request](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-http-request.md): Struct Request in zaun_bot. - [Struct bindings::zaun::bot::http::Response](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-http-response.md): Struct Response in zaun_bot. - [Struct bindings::zaun::bot::types::ActionRow](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-actionrow.md): Type 1: up to 5 buttons, or one select. - [Struct bindings::zaun::bot::types::Activity](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-activity.md): What a member (or the bot) is doing. - [Struct bindings::zaun::bot::types::Attachment](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-attachment.md): Struct Attachment in zaun_bot. - [Struct bindings::zaun::bot::types::Button](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-button.md): Type 2. - [Struct bindings::zaun::bot::types::Checkbox](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-checkbox.md): Type 23. - [Struct bindings::zaun::bot::types::CheckboxGroup](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-checkboxgroup.md): Type 22: 1-10 options. - [Struct bindings::zaun::bot::types::ChoiceOption](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-choiceoption.md): Struct ChoiceOption in zaun_bot. - [Struct bindings::zaun::bot::types::CommandOption](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-commandoption.md): Struct CommandOption in zaun_bot. - [Struct bindings::zaun::bot::types::CommunityProfile](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-communityprofile.md): Struct CommunityProfile in zaun_bot. - [Struct bindings::zaun::bot::types::Container](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-container.md): Type 17. - [Struct bindings::zaun::bot::types::DefaultValue](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-defaultvalue.md): Struct DefaultValue in zaun_bot. - [Struct bindings::zaun::bot::types::Embed](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-embed.md): Struct Embed in zaun_bot. - [Struct bindings::zaun::bot::types::EmbedAuthor](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-embedauthor.md): embeds - [Struct bindings::zaun::bot::types::EmbedField](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-embedfield.md): Struct EmbedField in zaun_bot. - [Struct bindings::zaun::bot::types::EmbedFooter](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-embedfooter.md): Struct EmbedFooter in zaun_bot. - [Struct bindings::zaun::bot::types::EntitySelect](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-entityselect.md): Struct EntitySelect in zaun_bot. - [Struct bindings::zaun::bot::types::File](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-file.md): Type 13. - [Struct bindings::zaun::bot::types::FileUpload](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-fileupload.md): Type 19. - [Struct bindings::zaun::bot::types::Interaction](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-interaction.md): Struct Interaction in zaun_bot. - [Struct bindings::zaun::bot::types::InteractionMetadata](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-interactionmetadata.md): Struct InteractionMetadata in zaun_bot. - [Struct bindings::zaun::bot::types::Label](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-label.md): Type 18. - [Struct bindings::zaun::bot::types::Localized](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-localized.md): Struct Localized in zaun_bot. - [Struct bindings::zaun::bot::types::MediaGallery](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-mediagallery.md): Type 12: 1-10 items. - [Struct bindings::zaun::bot::types::MediaItem](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-mediaitem.md): Struct MediaItem in zaun_bot. - [Struct bindings::zaun::bot::types::MemberRoles](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-memberroles.md): Struct MemberRoles in zaun_bot. - [Struct bindings::zaun::bot::types::MemberTimeout](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-membertimeout.md): `until` is `none` when the timeout was cleared. - [Struct bindings::zaun::bot::types::MessageBody](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-messagebody.md): What a bot sends: `message.send`, responses, follow-ups and edits. - [Struct bindings::zaun::bot::types::MessageDeleted](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-messagedeleted.md): Struct MessageDeleted in zaun_bot. - [Struct bindings::zaun::bot::types::MessageEvent](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-messageevent.md): A message, and whether it is in a direct-message channel with the bot. - [Struct bindings::zaun::bot::types::MessageFlags](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-messageflags.md): messages Discord's values: 4, 64, 4096, 32768. `LOADING` is host-set only. - [Struct bindings::zaun::bot::types::MessagesDeleted](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-messagesdeleted.md): Struct MessagesDeleted in zaun_bot. - [Struct bindings::zaun::bot::types::Modal](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-modal.md): Struct Modal in zaun_bot. - [Struct bindings::zaun::bot::types::ModalValue](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-modalvalue.md): Struct ModalValue in zaun_bot. - [Struct bindings::zaun::bot::types::Presence](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-presence.md): `status`: `online`, `idle`, `dnd` or `offline` (invisible members look offline). - [Struct bindings::zaun::bot::types::RadioGroup](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-radiogroup.md): Type 21: 2-10 options. - [Struct bindings::zaun::bot::types::RawEvent](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-rawevent.md): Struct RawEvent in zaun_bot. - [Struct bindings::zaun::bot::types::ReceivedOption](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-receivedoption.md): One option the invoker filled in, with the sub-command path flattened onto the data. - [Struct bindings::zaun::bot::types::RegisteredCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-registeredcommand.md): Struct RegisteredCommand in zaun_bot. - [Struct bindings::zaun::bot::types::Registration](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-registration.md): What `init` returns. - [Struct bindings::zaun::bot::types::Resolved](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-resolved.md): Struct Resolved in zaun_bot. - [Struct bindings::zaun::bot::types::Section](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-section.md): Type 9: 1-3 text displays and an accessory. - [Struct bindings::zaun::bot::types::SelectOption](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-selectoption.md): Struct SelectOption in zaun_bot. - [Struct bindings::zaun::bot::types::Separator](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-separator.md): Type 14. - [Struct bindings::zaun::bot::types::StringSelect](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-stringselect.md): Type 3. - [Struct bindings::zaun::bot::types::SubCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-subcommand.md): Type 1. - [Struct bindings::zaun::bot::types::SubCommandGroup](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-subcommandgroup.md): Type 2. - [Struct bindings::zaun::bot::types::TextDisplay](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-textdisplay.md): Type 10. - [Struct bindings::zaun::bot::types::TextInput](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-textinput.md): Type 4. - [Struct bindings::zaun::bot::types::Thumbnail](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-thumbnail.md): Type 11: an image attachment of the same message. - [Struct bindings::zaun::bot::types::Typing](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-types-typing.md): Struct Typing in zaun_bot. - [Struct bindings::zaun::bot::voice::Track](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-bindings-zaun-bot-voice-track.md): Something to play. - [Struct Button](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-button.md): Builds a `types::Button`. - [Struct CommandOptionBuilder](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-commandoptionbuilder.md): Builds a `CommandOption`. - [Struct Config](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-config.md): The bot's configuration: the keys its manifest declares in `config`, each with the value the owner set or else its default. Keys with neither are absent. Given to `Bot::on_start` a - [Struct Container](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-container.md): Builds a Components V2 `types::Container`. - [Struct Context](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-context.md): The interaction being handled, without its data (handlers get the data separately). - [Struct EmbedBuilder](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-embedbuilder.md): Builds an `Embed`. Pictures are attachment ids of the same message. - [Struct EventContext](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-eventcontext.md): What an event handler can do: send, reply, react, delete and send direct messages. Every call is an ordinary command on the bot's member, checked by the host. - [Struct Modal](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-modal.md): Builds a types::Modal: 1–5 labelled inputs and text blocks. - [Struct prelude::ApplicationCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-applicationcommand.md): Struct ApplicationCommand in zaun_bot. - [Struct prelude::Channel](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-channel.md): Struct Channel in zaun_bot. - [Struct prelude::Choice](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-choice.md): Struct Choice in zaun_bot. - [Struct prelude::CommandData](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-commanddata.md): Struct CommandData in zaun_bot. - [Struct prelude::ComponentData](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-componentdata.md): Struct ComponentData in zaun_bot. - [Struct prelude::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-hosterror.md): What the host refused, mirroring the protocol's error codes. - [Struct prelude::Member](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-member.md): community objects - [Struct prelude::Mentions](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-mentions.md): Struct Mentions in zaun_bot. - [Struct prelude::Message](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-message.md): Struct Message in zaun_bot. - [Struct prelude::ModalData](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-modaldata.md): Struct ModalData in zaun_bot. - [Struct prelude::Reaction](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-reaction.md): Struct Reaction in zaun_bot. - [Struct prelude::Ready](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-ready.md): events The bot's own identity, once its connection is up. - [Struct prelude::Role](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-prelude-role.md): Struct Role in zaun_bot. - [Struct presence::Activity](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-presence-activity.md): What the bot is doing: build one with `Activity::playing`, `Activity::listening`, … - [Struct Reply](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-reply.md): Builds a `MessageBody`. `Reply::from("text")` is the common case. - [Struct Section](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-section.md): A Components V2 section: 1–3 text blocks with a button beside them. - [Struct SlashCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-slashcommand.md): Builds an ApplicationCommand: a slash command, or a user or message context command. - [Struct SubCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-subcommand.md): Builds a sub-command. - [Struct SubCommandGroup](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-subcommandgroup.md): Builds a group of sub-commands (`/name group sub`). - [Struct TextDisplay](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-textdisplay.md): A Components V2 text block (markdown, ≤ 4 000 per message in all). - [Struct TextInput](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-textinput.md): Builds a `types::TextInput` for a modal. - [Struct Voice](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-voice.md): The bot's voice: one stay at a time. - [Struct voice::VoiceState](https://zaunchat.github.io/docs/reference/rust/zaun-bot/struct-voice-voicestate.md): Struct VoiceState in zaun_bot. - [Trait bindings::Guest](https://zaunchat.github.io/docs/reference/rust/zaun-bot/trait-bindings-guest.md): Trait Guest in zaun_bot. - [Trait Bot](https://zaunchat.github.io/docs/reference/rust/zaun-bot/trait-bot.md): A Zaun bot. Every handler has a no-op default; implement the ones you need. - [Trait Options](https://zaunchat.github.io/docs/reference/rust/zaun-bot/trait-options.md): Reads option and modal values by name. - [Type alias bindings::Choice](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-choice.md): Type alias Choice in zaun_bot. - [Type alias bindings::Event](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-event.md): Type alias Event in zaun_bot. - [Type alias bindings::Interaction](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-interaction.md): Type alias Interaction in zaun_bot. - [Type alias bindings::Registration](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-registration.md): Type alias Registration in zaun_bot. - [Type alias bindings::VoiceEvent](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-voiceevent.md): Type alias VoiceEvent in zaun_bot. - [Type alias bindings::zaun::bot::audio::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-audio-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::commands::ApplicationCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-commands-applicationcommand.md): Type alias ApplicationCommand in zaun_bot. - [Type alias bindings::zaun::bot::commands::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-commands-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::commands::RegisteredCommand](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-commands-registeredcommand.md): Type alias RegisteredCommand in zaun_bot. - [Type alias bindings::zaun::bot::community::Channel](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-community-channel.md): Type alias Channel in zaun_bot. - [Type alias bindings::zaun::bot::community::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-community-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::community::Id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-community-id.md): Type alias Id in zaun_bot. - [Type alias bindings::zaun::bot::community::Member](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-community-member.md): Type alias Member in zaun_bot. - [Type alias bindings::zaun::bot::community::Role](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-community-role.md): Type alias Role in zaun_bot. - [Type alias bindings::zaun::bot::community::Timestamp](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-community-timestamp.md): Type alias Timestamp in zaun_bot. - [Type alias bindings::zaun::bot::dms::Channel](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-dms-channel.md): Type alias Channel in zaun_bot. - [Type alias bindings::zaun::bot::dms::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-dms-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::dms::Id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-dms-id.md): Type alias Id in zaun_bot. - [Type alias bindings::zaun::bot::interactions::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-interactions-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::interactions::Id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-interactions-id.md): Type alias Id in zaun_bot. - [Type alias bindings::zaun::bot::interactions::MessageBody](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-interactions-messagebody.md): Type alias MessageBody in zaun_bot. - [Type alias bindings::zaun::bot::interactions::Response](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-interactions-response.md): Type alias Response in zaun_bot. - [Type alias bindings::zaun::bot::messages::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-messages-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::messages::Id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-messages-id.md): Type alias Id in zaun_bot. - [Type alias bindings::zaun::bot::messages::Message](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-messages-message.md): Type alias Message in zaun_bot. - [Type alias bindings::zaun::bot::messages::MessageBody](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-messages-messagebody.md): Type alias MessageBody in zaun_bot. - [Type alias bindings::zaun::bot::presence::Activity](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-presence-activity.md): Type alias Activity in zaun_bot. - [Type alias bindings::zaun::bot::presence::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-presence-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::presence::Timestamp](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-presence-timestamp.md): Type alias Timestamp in zaun_bot. - [Type alias bindings::zaun::bot::storage::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-storage-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::timers::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-timers-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::types::Id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-types-id.md): A Zaun id: base64url without padding (22 characters for 16-byte ids). - [Type alias bindings::zaun::bot::types::Permissions](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-types-permissions.md): A permission bitfield (permissions.md the protocol). - [Type alias bindings::zaun::bot::types::Timestamp](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-types-timestamp.md): Milliseconds since the Unix epoch. - [Type alias bindings::zaun::bot::voice::HostError](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-voice-hosterror.md): Type alias HostError in zaun_bot. - [Type alias bindings::zaun::bot::voice::Id](https://zaunchat.github.io/docs/reference/rust/zaun-bot/type-alias-bindings-zaun-bot-voice-id.md): Type alias Id in zaun_bot. - [Constant mention::EVERYONE](https://zaunchat.github.io/docs/reference/rust/zaun-client/constant-mention-everyone.md): The text that shows `@everyone`. - [Constant TEXT_BUDGET](https://zaunchat.github.io/docs/reference/rust/zaun-client/constant-text_budget.md): The largest frame text, in bytes as written inside the JSON string that carries it (`framing::escaped_len`: every `"` or `\` counts twice), that one message always carries, uncompr - [Constant TYPING_SHOWN_MS](https://zaunchat.github.io/docs/reference/rust/zaun-client/constant-typing_shown_ms.md): How long one typing signal shows: the host repeats it at most every 3 s while typing goes on, so two missed repeats end it. - [Enum AudioPlayerEvent](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-audioplayerevent.md): What a player tells the application. - [Enum AudioPlayerStatus](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-audioplayerstatus.md): What a player is doing. - [Enum Error](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-error.md): A `zaun-client` failure. - [Enum Event](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-event.md): One thing that happened. - [Enum Picture](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-picture.md): Where an embed's picture (or a message's file) comes from. Pictures are never remote URLs: a file is uploaded as one of the message's attachments, so no reader's client ever fetche - [Enum TypingNow](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-typingnow.md): Who else is typing in a channel, as the host last said. This client is never among them. - [Enum ui::EntityKind](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-ui-entitykind.md): What an entity select offers. - [Enum VoiceEvent](https://zaunchat.github.io/docs/reference/rust/zaun-client/enum-voiceevent.md): What happens in a voice session. - [Function files::guess_mime](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-files-guess_mime.md): A media type from a file name's extension; `application/octet-stream` otherwise. - [Function files::measure](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-files-measure.md): The size and SHA3-256 of the file at `path`. - [Function files::safe_name](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-files-safe_name.md): A name for `name` that is safe as one path component: no separators, no control characters, no leading dots; `attachment` when nothing is left. - [Function mention::member](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-mention-member.md): The text that shows a member mention, `<@id>` (discord.js `userMention`). It only shows where the mention is: the message's mentions list is what notifies. - [Function mention::parse](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-mention-parse.md): The mentions `content` shows: `<@id>` (and Discord's `<@!id>`) for members, `<@&id>` for roles, `@everyone`. Each id once, in order, at most 50 members and 20 roles; malformed ids - [Function mention::role](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-mention-role.md): The text that shows a role mention, `<@&id>` (discord.js `roleMention`). - [Function presence::activity](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-presence-activity.md): An activity of `kind` named `name`, for `Client::set_presence`. Set `details`, `state`, `started_at`, `url` (streaming) or `emoji` (custom) on it as needed. - [Function presence::line](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-presence-line.md): "Playing {name}", "Streaming {name}", "Listening to {name}", "Watching {name}", "Competing in {name}", or `{emoji} {name}` for a custom one. - [Function registry::inspect_package](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-registry-inspect_package.md): What a `.zbot` file says, whether its signature verifies and whether it passes the registry's package checks. - [Function registry::key_id](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-registry-key_id.md): The id of a base64url public key: what a bot card's `source.registry_id` is compared with. - [Function registry::verify_catalog](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-registry-verify_catalog.md): Verifies `catalog.json` bytes and the text of `catalog.json.sig` against the key of `pinned` (base64url public keys) that the catalog names, at Unix time `now` (seconds), after `se - [Function registry::verify_history](https://zaunchat.github.io/docs/reference/rust/zaun-client/function-registry-verify_history.md): Verifies the catalog as `verify_catalog` does (no stored serial), then `history/.json` against the hash the verified catalog lists for it. - [Struct Attachment](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-attachment.md): A file on a message. - [Struct AudioPlayer](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-audioplayer.md): Plays `AudioResource`s, one at a time, into every subscribed voice session. - [Struct AudioResource](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-audioresource.md): Something to play: Opus packets, from an Ogg Opus file or stream, from ffmpeg (any format it reads), or from the application. - [Struct Channel](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-channel.md): A channel or category of a community. - [Struct Client](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-client.md): A Zaun client. Clones share one SimpleX client and one driver; methods may be called from any thread, and block until the host answers or the timeout passes. - [Struct ClientBuilder](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-clientbuilder.md): Configures a `Client`. The directory holds the SimpleX store and `zaun/`, the community keys and state; give every client its own. - [Struct Community](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-community.md): A community this client belongs to (or did: a handle outlives a leave). - [Struct CommunityData](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-communitydata.md): A community as this client last heard of it. Cheap to clone; a clone does not update. - [Struct DmChannel](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-dmchannel.md): A DM channel: an ordinary channel object of kind `dm` with its two participants. - [Struct EditMessage](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-editmessage.md): An edit of one of this member's messages. A plain `&str` replaces the text and leaves the embeds and mentions as they are. - [Struct EmbedBuilder](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-embedbuilder.md): A rich embed, built with chained setters and sent with `MessageOptions::embed`: - [Struct EphemeralReply](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ephemeralreply.md): A bot's ephemeral reply (`EPHEMERAL`): only this member sees it, nothing stores it, and it lives as long as the interaction (15 minutes). Key it by its message's `message_id`. - [Struct FfmpegOptions](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ffmpegoptions.md): How `AudioResource::ffmpeg_file` and its siblings transcode. - [Struct HandOff](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-handoff.md): What a hand-off signed and published: the new delegation and the descriptor naming it. - [Struct Interaction](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-interaction.md): Someone used one of this bot's commands, components or modals. Answer within 3 s (`respond`, or `Response::defer` first); follow-ups and edits work for 15 minutes. - [Struct InteractionFailure](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-interactionfailure.md): An interaction that got no answer (the bot timed out, failed or is not running). - [Struct Member](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-member.md): A member of a community. - [Struct Message](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-message.md): A message in a channel. - [Struct MessageOptions](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-messageoptions.md): A message to post: text, embeds, files and the message it answers. A plain `&str` is one with text only, so `channel.send("hi")` still reads as it did. - [Struct ModalOpen](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-modalopen.md): A bot asks this member to fill in a modal; submit it with `Channel::submit_modal` and `interaction` as the modal id. - [Struct PartialMessage](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-partialmessage.md): A message known only by its id, as an edit, a deletion or a reaction names it: the client keeps no message history, so its text and author are not at hand. It acts like a `Message` - [Struct PendingMessage](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-pendingmessage.md): A post on its way (`Channel::send_pending`): what to show until the host answers. - [Struct Presence](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-presence.md): A member's presence as everyone else sees it (`invisible` members look `Offline`). - [Struct Reaction](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-reaction.md): A reaction added or taken off. - [Struct registry::CatalogCheck](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-registry-catalogcheck.md): `verify_catalog`'s answer: the registry's report and, when `ok`, the verified catalog. - [Struct registry::HistoryCheck](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-registry-historycheck.md): `verify_history`'s answer: the registry's report and, when `ok`, the verified history. - [Struct registry::KeyIdReport](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-registry-keyidreport.md): `key_id`'s answer. - [Struct Response](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-response.md): What a bot answers an interaction with. Build one with the constructors. - [Struct Role](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-role.md): A role of a community. - [Struct Suggestions](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-suggestions.md): A bot's suggestions for the option this member is typing. - [Struct TypingSeen](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-typingseen.md): A typing state and when it stops showing. - [Struct ui::ActionRow](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-actionrow.md): A row of up to five buttons, or one select. - [Struct ui::Button](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-button.md): A button: one that sends an interaction (`custom_id`), or a link the reader confirms. - [Struct ui::Checkbox](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-checkbox.md): One yes/no box (type 23); never required. - [Struct ui::CheckboxGroup](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-checkboxgroup.md): Several choices (type 22). - [Struct ui::CommandBuilder](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-commandbuilder.md): A slash, user or message command. - [Struct ui::Container](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-container.md): A box around other components (type 17). - [Struct ui::File](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-file.md): One attached file (type 13). - [Struct ui::FileUpload](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-fileupload.md): Files the member uploads (type 19). - [Struct ui::MediaGallery](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-mediagallery.md): Up to ten pictures (type 12). - [Struct ui::Modal](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-modal.md): A modal: up to five labelled inputs and texts. - [Struct ui::OptionBuilder](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-optionbuilder.md): An option of a slash command. - [Struct ui::RadioGroup](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-radiogroup.md): One choice among options (type 21). - [Struct ui::Section](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-section.md): One to three texts with a button or thumbnail beside them (type 9). - [Struct ui::Select](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-select.md): A select menu. - [Struct ui::Separator](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-separator.md): A line or a gap (type 14). - [Struct ui::TextDisplay](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-textdisplay.md): Markdown text (type 10). - [Struct ui::TextInput](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-textinput.md): A text field. - [Struct ui::Thumbnail](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-ui-thumbnail.md): A picture beside a section (type 11). - [Struct VoiceLeave](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-voiceleave.md): Why someone left a voice channel. - [Struct VoiceMute](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-voicemute.md): Someone's mute and deafen state in a voice channel. - [Struct VoiceOptions](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-voiceoptions.md): How a voice session connects. - [Struct VoiceSession](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-voicesession.md): One stay in a voice channel. Dropping it leaves the channel. - [Struct VoiceState](https://zaunchat.github.io/docs/reference/rust/zaun-client/struct-voicestate.md): Someone's state in a voice channel. - [Type alias Result](https://zaunchat.github.io/docs/reference/rust/zaun-client/type-alias-result.md): `Result` with `Error`. - [Constant client::ACK_LINGER_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-client-ack_linger_ms.md): 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 - [Constant client::CLIENT_CAPABILITIES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-client-client_capabilities.md): Capabilities this client offers in `session.hello`: fragment reassembly. - [Constant client::DEFAULT_TEXT_BUDGET](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-client-default_text_budget.md): 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. - [Constant client::EVENTS_BATCH_TYPE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-client-events_batch_type.md): `type` of the coalesced event batch envelope. - [Constant client::member::INVITE_LINK_PREFIX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-client-member-invite_link_prefix.md): The link scheme and path. - [Constant command::attachment::CAPTION_PREFIX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-attachment-caption_prefix.md): What every Zaun file transfer's caption starts with; the attachment id follows. - [Constant command::bot::MASKED](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-bot-masked.md): How a secret value is shown. - [Constant command::lockdown::NEWCOMER_WINDOW_MAX_S](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-lockdown-newcomer_window_max_s.md): Largest `newcomer_window_s`: 30 days. - [Constant command::object::AUDIT_ACTIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-audit_actions.md): Every audit action of the protocol, expanded from its `a.b|c` notation. - [Constant command::object::bot_events::GROUPS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-bot_events-groups.md): The groups a manifest may name, with their event types. - [Constant command::object::flags::EPHEMERAL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-ephemeral.md): Only the invoker sees it; never stored. - [Constant command::object::flags::IS_COMPONENTS_V2](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-is_components_v2.md): The message is laid out by components only. - [Constant command::object::flags::LOADING](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-loading.md): A deferred reply still loading; set only by the host. - [Constant command::object::flags::SETTABLE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-settable.md): What a sender may set. - [Constant command::object::flags::SUPPRESS_EMBEDS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-suppress_embeds.md): Embeds are not shown. - [Constant command::object::flags::SUPPRESS_NOTIFICATIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-object-flags-suppress_notifications.md): Mentions do not notify. - [Constant command::RESERVED_COMMANDS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-reserved_commands.md): The reserved governance commands of the protocol: answered with `UNSUPPORTED_FEATURE`. - [Constant command::RESERVED_NAMESPACES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-command-reserved_namespaces.md): Reserved `type` namespaces of the protocol (prefixes including the dot): answered with `UNSUPPORTED_COMMAND`; v1 clients ignore events in them. - [Constant crypto::LABEL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-label.md): RFC 10073 `Label` for `id-MLDSA65-Ed25519-SHA512` (ASCII, 30 bytes); the ML-DSA context. - [Constant crypto::PREFIX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-prefix.md): RFC 10073 `Prefix` (ASCII, 32 bytes). - [Constant crypto::SECRET_KEY_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-secret_key_len.md): Length of SecretKey: `mldsaSeed` (32) ‖ `edSK` (32). - [Constant crypto::voice::BASE_KEY_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-base_key_len.md): An SFrame base key: 32 bytes. - [Constant crypto::voice::FRAMES_PER_KEY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-frames_per_key.md): 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). - [Constant crypto::voice::HEADER_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-header_max.md): Longest header: config byte, 8-byte KID, 8-byte CTR. - [Constant crypto::voice::KEM_CIPHERTEXT_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-kem_ciphertext_len.md): X-Wing ciphertext (HPKE `enc`) length. - [Constant crypto::voice::KEM_PUBLIC_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-kem_public_len.md): X-Wing encapsulation (public) key length. - [Constant crypto::voice::KEY_PACKAGE_BYTES_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-key_package_bytes_len.md): Canonical bytes of a key package (all fields are fixed width): 1 306 bytes. - [Constant crypto::voice::KEY_PACKAGE_WIRE_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-key_package_wire_len.md): A key package on the wire: canonical bytes ‖ composite signature, 4 680 bytes. - [Constant crypto::voice::MAX_RECIPIENTS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-max_recipients.md): Most recipients one sender-keys message names (a mesh of 32 participants). - [Constant crypto::voice::RECIPIENT_ENTRY_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-recipient_entry_len.md): One recipient entry: member id ‖ voice session ‖ SHA3-256 of the wrapped key. - [Constant crypto::voice::REPLAY_WINDOW](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-replay_window.md): Counters a receiver accepts behind the highest one seen (out-of-order delivery). - [Constant crypto::voice::SENDER_KEYS_BYTES_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sender_keys_bytes_max.md): Largest canonical sender-keys message: 2 090 bytes. - [Constant crypto::voice::SENDER_KEYS_FIXED_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sender_keys_fixed_len.md): Canonical bytes of a sender-keys message without its recipients. - [Constant crypto::voice::SENDER_KEYS_WIRE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sender_keys_wire_max.md): Largest sender-keys message on the wire: `u32` length ‖ bytes ‖ signature, 5 468 bytes. - [Constant crypto::voice::SFRAME_CIPHER_SUITE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sframe_cipher_suite.md): The SFrame cipher suite: `AES_256_GCM_SHA512_128`. - [Constant crypto::voice::SFRAME_OVERHEAD_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-sframe_overhead_max.md): Most bytes SFrame adds to a frame: the longest header and the tag. - [Constant crypto::voice::SUITE_V1](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-suite_v1.md): 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). - [Constant crypto::voice::TAG_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-tag_len.md): AES-256-GCM tag length (HPKE and SFrame). - [Constant crypto::voice::WRAPPED_KEY_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-crypto-voice-wrapped_key_len.md): A wrapped sender key: `enc ‖ AES-256-GCM(base key) ‖ tag`, 1 168 bytes. - [Constant envelope::EVENTS_TYPE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-envelope-events_type.md): The `type` of a batch envelope: a frame type, not an event type. - [Constant envelope::MAX_JSON_INTEGER](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-envelope-max_json_integer.md): Largest integer a JSON number may carry here (`2^53 − 1`, the protocol). - [Constant envelope::RESPONSE_TYPE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-envelope-response_type.md): The `type` of every response envelope. - [Constant framing::app_data::DATA_TAG](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-app_data-data_tag.md): The content type of a frame message (`MsgContent` `type`). - [Constant framing::app_data::FALLBACK_TEXT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-app_data-fallback_text.md): What an app that does not know `DATA_TAG` shows. Fixed: it never carries frame content. - [Constant framing::app_data::FRAME_KEY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-app_data-frame_key.md): The data key holding the frame message text. - [Constant framing::FRAG_ID_CHARS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-frag_id_chars.md): Length of an encoded `FragId` (8 bytes, base64url without padding). - [Constant framing::FRAGMENT_PREFIX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-fragment_prefix.md): Prefix of a fragment message. - [Constant framing::MIN_BUDGET](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-min_budget.md): The smallest accepted per-message budget: a fragment header plus one character at its largest escaped (six bytes, `escaped_len`). - [Constant framing::PROTOCOL_PREFIX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-protocol_prefix.md): Prefix shared by every protocol message; text without it is not a protocol message. - [Constant framing::WHOLE_PREFIX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-framing-whole_prefix.md): Prefix of a whole-envelope message. - [Constant keys::ED25519_PK_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-keys-ed25519_pk_len.md): Ed25519 public key length. - [Constant keys::ED25519_SIG_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-keys-ed25519_sig_len.md): Ed25519 signature length. - [Constant keys::MLDSA65_PK_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-keys-mldsa65_pk_len.md): ML-DSA-65 public key length. - [Constant keys::MLDSA65_SIG_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-keys-mldsa65_sig_len.md): ML-DSA-65 signature length. - [Constant keys::PUBLIC_KEY_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-keys-public_key_len.md): Encoded `PublicKey` length. - [Constant keys::SIGNATURE_LEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-keys-signature_len.md): Encoded `Signature` length. - [Constant limits::ACK_CHANNELS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-ack_channels.md): `sync.ack` channels. - [Constant limits::ACTIVITY_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-activity_max.md): Presence `activity`, maximum scalars. - [Constant limits::APP_CHOICE_TEXT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_choice_text.md): Choice `name` and string `value`, scalars. - [Constant limits::APP_COMMAND_DESCRIPTION](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_description.md): Command and option `description` (`CHAT_INPUT`), scalars. - [Constant limits::APP_COMMAND_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_name.md): Command and option `name`, scalars. - [Constant limits::APP_COMMAND_OPTIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_options.md): Options per command or subcommand, and choices per option. - [Constant limits::APP_COMMAND_TEXT_TOTAL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_command_text_total.md): All names, descriptions, choice names and values of one command, scalars. - [Constant limits::APP_COMMANDS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_commands.md): Application commands per bot: `CHAT_INPUT`, `USER`, `MESSAGE`. - [Constant limits::APP_LOCALIZATIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_localizations.md): Localized names per field. - [Constant limits::APP_OPTION_LENGTH_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-app_option_length_max.md): String option `min_length` / `max_length` bound. - [Constant limits::ATTACHMENT_MIME_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-attachment_mime_max.md): Attachment media type, bytes. - [Constant limits::ATTACHMENT_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-attachment_name.md): Attachment file name, scalars. - [Constant limits::ATTACHMENT_SIZE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-attachment_size_max.md): Largest attachment the protocol allows, in bytes (XFTP's 1 GiB); hosts set lower limits. - [Constant limits::ATTACHMENTS_PER_MESSAGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-attachments_per_message.md): Attachments per message. - [Constant limits::AUTOCOMPLETE_CHOICES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-autocomplete_choices.md): Autocomplete choices. - [Constant limits::BAN_DELETE_WINDOW_MAX_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-ban_delete_window_max_ms.md): Ban message-deletion window upper bound in milliseconds (7 days). - [Constant limits::BOT_COMPONENT_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_component_max.md): The WebAssembly component inside a bot package, bytes. - [Constant limits::BOT_CONFIG_KEYS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_config_keys.md): Settings a bot may declare (`config`). - [Constant limits::BOT_CONFIG_VALUE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_config_value_max.md): A setting's value or default, bytes. - [Constant limits::BOT_DESCRIPTION_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_description_max.md): A bot's `description`, scalars. - [Constant limits::BOT_HEADER_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_header_max.md): Bot package header, manifest and component sizes, bytes. - [Constant limits::BOT_LOCAL_NETWORK](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_local_network.md): `local_network` addresses a bot may ask for. - [Constant limits::BOT_MANIFEST_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_manifest_max.md): The manifest JSON inside a bot package, bytes. - [Constant limits::BOT_NETWORK_HOSTS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_network_hosts.md): Network hosts a bot may ask for. - [Constant limits::BOT_STORAGE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bot_storage_max.md): A bot's key-value storage quota, bytes. - [Constant limits::BOTS_PER_COMMUNITY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bots_per_community.md): Bots per community. - [Constant limits::BULK_DELETE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-bulk_delete_max.md): Most message ids in one `messages.bulk_deleted` event. - [Constant limits::BUTTON_LABEL_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-button_label_max.md): Button `label`, scalars. - [Constant limits::CAPABILITIES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-capabilities.md): `session.hello` capabilities: count and bytes each. - [Constant limits::CHANNEL_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-channel_name.md): Channel name length. - [Constant limits::CHANNEL_TOPIC_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-channel_topic_max.md): Channel topic, maximum scalars. - [Constant limits::CHANNELS_PER_COMMUNITY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-channels_per_community.md): Channels per community, including categories. - [Constant limits::CHECKBOX_OPTIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-checkbox_options.md): Checkbox group options. - [Constant limits::COLOR_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-color_max.md): Largest role colour, `0xFFFFFF`. - [Constant limits::COMMUNITY_DESCRIPTION_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-community_description_max.md): Community description, maximum scalars. - [Constant limits::COMMUNITY_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-community_name.md): Community name length (scalars). - [Constant limits::COMPONENT_CUSTOM_ID](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-component_custom_id.md): Component `custom_id`, bytes. - [Constant limits::COMPONENT_ROW_BUTTONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-component_row_buttons.md): Buttons per action row. - [Constant limits::COMPONENT_ROWS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-component_rows.md): Top-level action rows of a message without `IS_COMPONENTS_V2`. - [Constant limits::COMPONENTS_TOTAL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-components_total.md): Components in one message, counting nested ones. - [Constant limits::DAY_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-day_ms.md): One day in milliseconds. - [Constant limits::DISPLAY_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-display_name.md): Member display name length. - [Constant limits::DM_OPENS_PER_MINUTE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-dm_opens_per_minute.md): New DMs one bot may open per minute. - [Constant limits::DM_UNANSWERED_PER_HOUR](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-dm_unanswered_per_hour.md): Messages a bot may write into a DM per hour while the member has never written in it. - [Constant limits::EMBED_AUTHOR_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_author_name.md): Embed `author.name`, scalars. - [Constant limits::EMBED_DESCRIPTION](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_description.md): Embed `description`, scalars. - [Constant limits::EMBED_FIELD_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_field_name.md): Embed field `name`, scalars. - [Constant limits::EMBED_FIELD_VALUE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_field_value.md): Embed field `value`, scalars. - [Constant limits::EMBED_FIELDS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_fields.md): Fields per embed. - [Constant limits::EMBED_FOOTER_TEXT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_footer_text.md): Embed `footer.text`, scalars. - [Constant limits::EMBED_TEXT_TOTAL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_text_total.md): The text of all of a message's embeds together (titles, descriptions, field names and values, author names, footer texts), scalars. - [Constant limits::EMBED_TITLE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_title.md): Embed `title`, scalars. - [Constant limits::EMBED_URL_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embed_url_max.md): Embed `url` and `author.url`, maximum bytes. - [Constant limits::EMBEDS_PER_MESSAGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-embeds_per_message.md): Embeds per message. - [Constant limits::EMOJI_MAX_BYTES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-emoji_max_bytes.md): Emoji, maximum bytes. - [Constant limits::FILE_UPLOAD_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-file_upload_max.md): Files in one file upload. - [Constant limits::FRAGMENT_TIMEOUT_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-fragment_timeout_ms.md): Milliseconds from the first to the last fragment before a reassembly is discarded. - [Constant limits::ICE_FIELD_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-ice_field_max.md): Longest ICE server URL, username or credential, in bytes. - [Constant limits::ICE_SERVERS_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-ice_servers_max.md): Most ICE servers a host lists in `voice.join`. - [Constant limits::ICON_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-icon_max.md): Descriptor icon, maximum bytes (PNG or WebP). - [Constant limits::IDEMPOTENCY_RETENTION_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-idempotency_retention_ms.md): Idempotency record retention lower bound in milliseconds. - [Constant limits::IN_FLIGHT_DEFAULT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-in_flight_default.md): Default in-flight window in SMP messages per member. - [Constant limits::IN_FLIGHT_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-in_flight_max.md): Highest configurable in-flight window (half the 128-message SMP queue stays free). - [Constant limits::IN_FLIGHT_MIN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-in_flight_min.md): Lowest configurable in-flight window (the largest frame must fit). - [Constant limits::INTERACTION_ANSWER_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-interaction_answer_ms.md): Interaction answer deadline, ms. - [Constant limits::INTERACTION_FOLLOWUPS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-interaction_followups.md): Follow-ups per interaction. - [Constant limits::INTERACTION_LIFETIME_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-interaction_lifetime_ms.md): Follow-ups, edits and modal submits are accepted this long after the interaction, ms. - [Constant limits::INVITE_EXPIRY_MAX_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-invite_expiry_max_ms.md): Invite expiry upper bound in milliseconds (30 days). - [Constant limits::INVITE_MAX_USES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-invite_max_uses.md): Invite `max_uses` upper bound (0 means unlimited). - [Constant limits::LABEL_TEXT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-label_text.md): Label `label` and `description`, scalars. - [Constant limits::LAST_N](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-last_n.md): `last_n` history bounds. - [Constant limits::LOCKDOWN_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-lockdown_ms.md): Lockdown duration bounds in milliseconds per `enable` (60 s – 7 days). - [Constant limits::MAX_CANONICAL_FIELD](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-max_canonical_field.md): Unlisted variable-length fields in canonical encodings. - [Constant limits::MAX_COMMAND](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-max_command.md): Maximum command envelope, except `community.create` and `community.descriptor.publish`. - [Constant limits::MAX_FRAGMENTS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-max_fragments.md): Fragments per frame. - [Constant limits::MAX_FRAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-max_frame.md): Maximum reassembled envelope in bytes. - [Constant limits::MAX_OPEN_REASSEMBLIES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-max_open_reassemblies.md): Open reassemblies per connection; a further one discards the oldest. - [Constant limits::MEDIA_DESCRIPTION_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-media_description_max.md): Media description, scalars. - [Constant limits::MEDIA_GALLERY_ITEMS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-media_gallery_items.md): Media gallery items. - [Constant limits::MENTION_MEMBERS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-mention_members.md): Member mentions per message. - [Constant limits::MENTION_ROLES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-mention_roles.md): Role mentions per message. - [Constant limits::MESSAGE_CONTENT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-message_content.md): Message content length. The content may be empty when the message has an attachment or an embed. - [Constant limits::MESSAGE_JSON_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-message_json_max.md): 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 - [Constant limits::MODAL_ITEMS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-modal_items.md): Top-level modal items. - [Constant limits::MODAL_TITLE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-modal_title.md): Modal `title`, scalars. - [Constant limits::NEWCOMER_WINDOW_MAX_S](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-newcomer_window_max_s.md): Largest lockdown `newcomer_window_s`: 30 days, in seconds. - [Constant limits::OVERRIDES_PER_CHANNEL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-overrides_per_channel.md): Overrides per channel. - [Constant limits::PAGE_BYTES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-page_bytes.md): 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 - [Constant limits::PAGE_LARGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-page_large.md): Page size: `member.list`, `sync.events`. - [Constant limits::PAGE_SMALL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-page_small.md): Page size: `message.history`, `audit.list`, `invite.list`, `invite.uses`, `member.bans`, `membership.pending`, `report.list`. - [Constant limits::PENDING_EXPIRY_MAX_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-pending_expiry_max_ms.md): Pending expiry upper bound in milliseconds (30 days); default 7 days. - [Constant limits::PENDING_PER_COMMUNITY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-pending_per_community.md): Pending members per community. - [Constant limits::PROTOCOL_VERSION](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-protocol_version.md): Protocol version defined by this crate. - [Constant limits::RADIO_OPTIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-radio_options.md): Radio group options. - [Constant limits::REACTIONS_PER_MESSAGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-reactions_per_message.md): Distinct reaction emoji per message. - [Constant limits::REASON_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-reason_max.md): Moderation reason, maximum scalars. - [Constant limits::REPORT_DESCRIPTION_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-report_description_max.md): Report description, maximum scalars. - [Constant limits::REPORT_EVIDENCE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-report_evidence_max.md): Report evidence, maximum messages. - [Constant limits::REPORT_NOTE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-report_note_max.md): Report resolution `note`, maximum scalars. - [Constant limits::REPORT_SNAPSHOT_BYTES](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-report_snapshot_bytes.md): 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. - [Constant limits::REQUEST_NOTE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-request_note_max.md): Membership request note, maximum scalars. - [Constant limits::RESUME_CHANNELS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-resume_channels.md): `sync.resume`: channels per request. - [Constant limits::RESUME_EVENTS_PER_STREAM](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-resume_events_per_stream.md): `sync.resume`: events per stream. - [Constant limits::ROLE_NAME](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-role_name.md): Role name length. - [Constant limits::ROLES_PER_COMMUNITY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-roles_per_community.md): Roles per community, including `@everyone`. - [Constant limits::ROLES_PER_MEMBER](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-roles_per_member.md): Roles per member. - [Constant limits::ROTATIONS_PAGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-rotations_page.md): Page size: `community.rotations`. - [Constant limits::SECTION_TEXTS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-section_texts.md): Section text displays. - [Constant limits::SELECT_OPTION_TEXT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-select_option_text.md): Select option `label`, `value`, `description`, scalars. - [Constant limits::SELECT_OPTIONS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-select_options.md): Select options. - [Constant limits::SELECT_PLACEHOLDER_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-select_placeholder_max.md): Select `placeholder`, scalars. - [Constant limits::SIGNAL_INTERVAL_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-signal_interval_ms.md): Minimum interval between signals per member per channel, in milliseconds. - [Constant limits::SLOWMODE_MAX_S](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-slowmode_max_s.md): Slowmode upper bound in seconds. - [Constant limits::SNAPSHOT_PAGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-snapshot_page.md): `sync.snapshot` page. - [Constant limits::SUSPENSION_MAX_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-suspension_max_ms.md): Suspension upper bound in milliseconds (90 days), or until restored. - [Constant limits::TEXT_DISPLAY_TOTAL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-text_display_total.md): All text displays of one message or modal together, scalars. - [Constant limits::TEXT_INPUT_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-text_input_max.md): Text input value and length bounds, scalars. - [Constant limits::TEXT_INPUT_PLACEHOLDER_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-text_input_placeholder_max.md): Text input `placeholder`, scalars. - [Constant limits::TIMEOUT_MAX_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-timeout_max_ms.md): Timeout upper bound in milliseconds (28 days). - [Constant limits::TYPING_COUNT_CAP](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-typing_count_cap.md): The largest `count` of an anonymous `signal.typing`: 3 means "three or more", so a larger channel never learns exactly how many are typing. - [Constant limits::UNBOUND_DEADLINE_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-unbound_deadline_ms.md): Unbound connection deadline (default) in milliseconds. - [Constant limits::VOICE_KEY_PACKAGE_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-voice_key_package_max.md): Largest `key_package` of `voice.join`, decoded bytes (opaque to the host; the media layer's packages are 4 680 bytes). - [Constant limits::VOICE_MESH_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-voice_mesh_max.md): 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 - [Constant limits::VOICE_SENDER_KEYS_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-voice_sender_keys_max.md): 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). - [Constant limits::VOICE_SIGNAL_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-voice_signal_max.md): Largest `data` of `voice.signal` (WebRTC SDP or ICE), decoded bytes. - [Constant limits::VOICE_USER_LIMIT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-voice_user_limit.md): `user_limit` of a voice channel. - [Constant limits::VOICE_WRAPPED_KEY_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-limits-voice_wrapped_key_max.md): Largest `wrapped` key of one `voice.keys` entry, decoded bytes (the media layer's are 1 168 bytes). - [Constant permissions::ALL](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-all.md): `ALL` means every known bit, never `u64::MAX` (permissions the protocol). - [Constant permissions::DM_GRANTS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-dm_grants.md): What both participants of a `dm` channel may always do. - [Constant permissions::DM_IF_GRANTED](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-dm_if_granted.md): What a participant may do in a `dm` channel only when its roles grant it in the community. - [Constant permissions::EXPENSIVE_HISTORY_DEPTH](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-expensive_history_depth.md): `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. - [Constant permissions::EXPENSIVE_MEMBER_PAGE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-expensive_member_page.md): `restrict_expensive`: the most members one `member.list` page returns to a restricted member, who gets only the first page. - [Constant permissions::LOCK_MASK](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-lock_mask.md): Bits the channel `locked` flag removes (step 7d). - [Constant permissions::PENDING_ALLOWED](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-pending_allowed.md): Commands a `Pending` member may issue. `verification.*` (P2, reserved) is not listed. - [Constant permissions::safety::NEWCOMER_FORBIDDEN](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-safety-newcomer_forbidden.md): Bits `newcomer_restrictions` must never contain: newcomers always see and read. - [Constant permissions::SUSPENDED_ALLOWED](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-suspended_allowed.md): Commands a `Suspended` member may issue: the same as `Pending`. - [Constant permissions::TABLE](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-table.md): Every command of the table with its requirement, in specification order. - [Constant permissions::TIMEOUT_KEEP](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-timeout_keep.md): Bits a timed-out member keeps (step 7a). - [Constant permissions::UNBOUND_ALLOWED](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-unbound_allowed.md): 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 - [Constant permissions::UNBOUND_ONLY](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-unbound_only.md): Commands that only make sense unbound; a bound connection gets `CONFLICT`. - [Constant permissions::WAITING_MASK](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-permissions-waiting_mask.md): Bits the admission policy's waiting period withholds: posting, reacting and creating invitations. - [Constant signed::APP_ID_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-app_id_max.md): Bytes of `app_id` (3–64). - [Constant signed::CLOCK_SKEW_MS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-clock_skew_ms.md): Clock-skew allowance on delegation validity windows (rule 4), in milliseconds. - [Constant signed::ENTRY_NAME_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-entry_name_max.md): Bytes per chunk name. - [Constant signed::EXPORT_FORMAT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-export_format.md): The bundle format this manifest describes. - [Constant signed::FORMAT_V1](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-format_v1.md): The `format` byte of every v1 signed object. - [Constant signed::MANIFEST_ENTRIES_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-manifest_entries_max.md): At most this many chunks. - [Constant signed::PACKAGE_FORMAT](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-package_format.md): The package format this header describes. - [Constant signed::PACKAGE_MAGIC](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-package_magic.md): The file's first four bytes. - [Constant signed::PACKAGE_VERSION](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-package_version.md): The container version byte after the magic. - [Constant signed::SUPPORTED_WORLDS](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-supported_worlds.md): 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. - [Constant signed::VERSION_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-version_max.md): Bytes of `version`. - [Constant signed::WORLD_MAX](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/constant-signed-world_max.md): Bytes of `world`. - [Enum client::BuildError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-builderror.md): An owner or member object (descriptor, delegation, registration, body) could not be built. - [Enum client::ClientError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-clienterror.md): A command could not be prepared or the session refuses to send it. - [Enum client::ClientEvent](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-clientevent.md): One outcome for the application. - [Enum client::ExpectedHost](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-expectedhost.md): The host the client expects to reach. The welcome's host key must match. - [Enum client::member::LinkError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-member-linkerror.md): A link that is not a valid invitation. Carries no part of the input. - [Enum client::ProtocolError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-protocolerror.md): Input ignored safely. - [Enum client::SessionState](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-sessionstate.md): Where the session is in its lifecycle. - [Enum client::WelcomeError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-client-welcomeerror.md): Why a `session.welcome` was rejected. - [Enum command::BodyError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-bodyerror.md): 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. - [Enum command::Command](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-command.md): A decoded command body: one variant per command of the protocol - [Enum command::interaction::CreateData](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-interaction-createdata.md): `interaction.create` data, by type. - [Enum command::interaction::ResponseData](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-interaction-responsedata.md): Response data, by type. - [Enum command::interaction::ResponseType](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-interaction-responsetype.md): Interaction response types (Discord's callback numbers). - [Enum command::object::ActivityType](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-activitytype.md): What the member is doing. - [Enum command::object::AdmissionVia](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-admissionvia.md): `admission.via`. SPEC: a plain string (`"invite" | "request"`), not `{t}`. - [Enum command::object::Availability](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-availability.md): `availability`. SPEC: a plain string, as written in the spec. - [Enum command::object::BotKind](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-botkind.md): `kind` of a bot. - [Enum command::object::BotState](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-botstate.md): `state` of an installed bot. - [Enum command::object::ButtonStyle](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-buttonstyle.md): Button `style`: 1 primary, 2 secondary, 3 success, 4 danger, 5 link. - [Enum command::object::ChoiceValue](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-choicevalue.md): A choice `value`: a string or a number. - [Enum command::object::CommandType](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-commandtype.md): `type` of a command: 1 `CHAT_INPUT` (a slash command), 2 `USER`, 3 `MESSAGE` (context menus). - [Enum command::object::Component](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-component.md): One component. The variant is the wire `type` number. - [Enum command::object::DefaultValueKind](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-defaultvaluekind.md): `default_values` entry kind of an entity select. - [Enum command::object::IcePolicy](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-icepolicy.md): Which ICE candidates clients may use. - [Enum command::object::InteractionData](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-interactiondata.md): `data` of an interaction, by type. - [Enum command::object::InteractionType](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-interactiontype.md): `type` of an interaction (Discord's numbers; `PING` is not used). - [Enum command::object::InviteCreation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-invitecreation.md): `invite_creation`. - [Enum command::object::LockdownView](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-lockdownview.md): 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 - [Enum command::object::OptionType](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-optiontype.md): `type` of an option (Discord's numbers 1–11). - [Enum command::object::OptionValueKind](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-optionvaluekind.md): An option value as the invoker gave it: a string, number, boolean or id. - [Enum command::object::Outcome](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-outcome.md): `outcome`. - [Enum command::object::OverrideTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-overridetarget.md): The subject of an override: `{"t":"role","c":RoleId}` or `{"t":"member","c":MemberId}`. - [Enum command::object::PolicyLevel](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-policylevel.md): `level`. - [Enum command::object::PolicyView](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-policyview.md): The full policy or the public summary, by the viewer's permissions (`admission.policy.updated` body, the protocol). The full form is tried first. - [Enum command::object::ReportCategory](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-reportcategory.md): `category`. - [Enum command::object::ReportStatus](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-reportstatus.md): `status`: a plain string, exactly `"open"|"reviewing"|"resolved"`. - [Enum command::object::ReportTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-reporttarget.md): `target: {t: "member"|"message", c}`. - [Enum command::object::Restriction](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-restriction.md): One lockdown restriction. - [Enum command::object::Stream](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-stream.md): An event stream. SPEC: a plain string, as in the the protocol `stream` field and the the protocol example (`"stream": "channel"`), not `{t}`. - [Enum command::object::TextInputStyle](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-textinputstyle.md): Text input `style`: 1 short, 2 paragraph. - [Enum command::object::UploadFailure](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-object-uploadfailure.md): `failure` of an upload: why the host does not hold it. - [Enum command::signal::NoResponse](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-signal-noresponse.md): A signal has no response. Uninhabited. - [Enum command::signal::PresenceStatus](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-signal-presencestatus.md): 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`, - [Enum command::sync::SnapshotItem](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-sync-snapshotitem.md): One snapshot item; the variant follows the requested part. - [Enum command::sync::SnapshotPart](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-sync-snapshotpart.md): `part`. SPEC: a plain string, as in the the protocol request. - [Enum command::TypeClass](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-command-typeclass.md): What a command `type` string is to a v1 host. - [Enum crypto::Context](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-crypto-context.md): 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. - [Enum crypto::ContextStatus](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-crypto-contextstatus.md): Whether a context is part of v1 conformance. - [Enum crypto::SignError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-crypto-signerror.md): Signing failed. - [Enum crypto::VerifyError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-crypto-verifyerror.md): Verification failed. Callers map every variant to `INVALID_SIGNATURE`; the variants exist for tests and diagnostics only. - [Enum crypto::voice::VoiceError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-crypto-voice-voiceerror.md): A voice key or frame operation failed. - [Enum encoding::DecodeError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-encoding-decodeerror.md): The input is not a canonical encoding. - [Enum encoding::EncodeError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-encoding-encodeerror.md): A value cannot be encoded canonically: it would not decode. - [Enum envelope::BatchError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-batcherror.md): A batch that breaks the rules of the protocol Indices count from 0 in `body.events`. - [Enum envelope::EventError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-eventerror.md): An event envelope that breaks the rules of the protocol - [Enum envelope::IdempotencyKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-idempotencykey.md): The key an idempotency record is stored under. `C` is the host's opaque connection id, used only for unbound connections. - [Enum envelope::Outcome](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-outcome.md): The result carried by a response. - [Enum envelope::RateCategory](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-ratecategory.md): `RATE_LIMITED` category. - [Enum envelope::RateScope](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-ratescope.md): `RATE_LIMITED` scope. - [Enum envelope::Reason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-reason.md): `FORBIDDEN` and `CONFLICT` reasons. - [Enum envelope::Replay](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-replay.md): What to do with a command whose key matches a stored record. - [Enum envelope::Stream](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-envelope-stream.md): An event stream; also the `stream` of `RESYNC_REQUIRED`. - [Enum error_code::ErrorCode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-error_code-errorcode.md): A response error code. Clients branch on this, never on the message text. - [Enum event::EphemeralOp](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-ephemeralop.md): `op` of `interaction.message`. - [Enum event::Event](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-event.md): A decoded event body: one variant per event of the the protocol catalogue. - [Enum event::FailReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-failreason.md): Why an interaction failed. - [Enum event::Parsed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-parsed.md): 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 - [Enum event::RemovalReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-removalreason.md): `reason: {t: "kicked" | "banned" | "left" | "rejected" | "expired"}`. - [Enum event::VisibilityReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-visibilityreason.md): A visibility change. SPEC: a plain string (`"access_gained"`), as written. - [Enum event::VoiceLeftReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-event-voiceleftreason.md): Why a participant left a voice channel. - [Enum framing::DiscardReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-framing-discardreason.md): Why a reassembly (or a fragment that would start one) was discarded. A discard produces no response; the sender's retry repairs it. - [Enum framing::EncodeError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-framing-encodeerror.md): Why an envelope cannot be framed. - [Enum framing::Inbound](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-framing-inbound.md): What an inbound transport text is. - [Enum framing::Pushed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-framing-pushed.md): The result of pushing one fragment. - [Enum json::Patch](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-json-patch.md): A field that distinguishes "absent" from "null" in update commands (`channel.update` with `"topic": null` clears the topic; no `topic` leaves it). - [Enum keys::KeyEncodingError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-keys-keyencodingerror.md): The encoding is not a known suite or has the wrong length. - [Enum keys::Suite](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-keys-suite.md): A signature suite. `0x00` and `0x02`–`0xFF` are rejected. - [Enum model::ChannelKind](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-model-channelkind.md): The kind of a channel (permissions the protocol, the protocol). - [Enum model::DistributionMode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-model-distributionmode.md): How accepted channel-stream events travel (ADR-0009, the protocol, Appendix A). - [Enum model::HistoryAccess](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-model-historyaccess.md): How much channel history a member may read (ADR-0014, the protocol). Stamped on each message at send time. - [Enum model::MembershipState](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-model-membershipstate.md): A member's lifecycle state. Independent of roles. - [Enum model::TypingMode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-model-typingmode.md): Who sees that someone is typing in a channel (`typing`, the protocol). A plain JSON string, as the specification writes it. - [Enum permissions::Access](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-access.md): Who may send the command at all, before any bit is checked. - [Enum permissions::ConflictReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-conflictreason.md): Why a state transition does not apply (`CONFLICT`). - [Enum permissions::DenialReason](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-denialreason.md): Why a permission check failed, when a specific rule caused it (permissions the protocol). - [Enum permissions::GateDenial](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-gatedenial.md): Why the gate refused a command. - [Enum permissions::Invalid](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-invalid.md): A malformed request (`BAD_REQUEST`). - [Enum permissions::invites::InviteCreation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-invites-invitecreation.md): The admission policy's `invite_creation` rule. - [Enum permissions::overrides::OverrideSubject](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-overrides-overridesubject.md): The target of an override as the hierarchy sees it. - [Enum permissions::overrides::OverrideWrite](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-overrides-overridewrite.md): What the host does with a validated override. - [Enum permissions::OverrideTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-overridetarget.md): Whom an override applies to (permissions the protocol). - [Enum permissions::Refusal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-refusal.md): Every way a pure check can refuse a command. - [Enum permissions::Scope](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-scope.md): Where the required bits are evaluated. - [Enum permissions::Top](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-permissions-top.md): A member's top position. The owner is above every role. - [Enum signed::AdmissionMode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-admissionmode.md): `AdmissionSummary.mode`. - [Enum signed::Discovery](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-discovery.md): `discovery` (field 17). - [Enum signed::PackageError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-packageerror.md): A `.zbot` file that does not verify. - [Enum signed::Purpose](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-purpose.md): Why a member key is registered (field 2). Other values are reserved and rejected. - [Enum signed::RegistrationError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-registrationerror.md): A `MemberKeyRegistration` is not acceptable to the host. - [Enum signed::RotationError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-rotationerror.md): The rotation chain does not verify. `index` is 1-based. - [Enum signed::SessionProofError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-sessionprooferror.md): A `HostSessionProof` is not acceptable to the client. - [Enum signed::SignedError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-signederror.md): Signing, verifying, encoding or decoding one signed object failed. - [Enum signed::ValidityError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-validityerror.md): A (descriptor, delegation) pair is not valid. - [Enum signed::VerificationLevel](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/enum-signed-verificationlevel.md): `AdmissionSummary.level`: verification level None … Highest (`governance.md`). - [Function b64::bytes::deserialize](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-b64-bytes-deserialize.md): Deserializes strict base64url. - [Function b64::bytes::serialize](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-b64-bytes-serialize.md): Serializes as base64url. - [Function b64::decode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-b64-decode.md): Decodes canonical base64url without padding. - [Function b64::decode_array](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-b64-decode_array.md): Decodes exactly `N` bytes. - [Function b64::encode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-b64-encode.md): Encodes `bytes` as base64url without padding. - [Function b64::encoded_len](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-b64-encoded_len.md): The length of the unpadded encoding of `n` bytes. - [Function client::decode_response](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-decode_response.md): Decodes a successful response body as the response type of command `B`. - [Function client::member::generate_member_key](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-member-generate_member_key.md): Generates a fresh member key. Use one per community. - [Function client::member::moved](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-member-moved.md): 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 - [Function client::member::reauth_body](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-member-reauth_body.md): The `migration.reauth` body: a `MemberReauth` signed with the member's existing key. Send it with `target.community_id` as the envelope `community_id`. - [Function client::member::redeem_body](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-member-redeem_body.md): 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 - [Function client::member::registration](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-member-registration.md): Signs a `MemberKeyRegistration` with the member key itself. - [Function client::member::request_body](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-member-request_body.md): The `membership.request` body with a purpose-3 registration. Send it with `target.community_id` as the envelope `community_id`. - [Function client::owner::create_body](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-create_body.md): 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). - [Function client::owner::delegate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-delegate.md): Signs a delegation of every v1 scope to `host`, valid from `now_ms`. - [Function client::owner::generate_root_key](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-generate_root_key.md): Generates a fresh root key: the community's identity. Store it sealed; it cannot be recovered (ADR-0011). - [Function client::owner::genesis](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-genesis.md): 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. - [Function client::owner::next_revision](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-next_revision.md): A copy of `current` with the next revision and `issued_at = now_ms`, for the owner to edit and pass to `publish_body`. - [Function client::owner::publish_body](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-publish_body.md): 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 - [Function client::owner::resign_delegation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-resign_delegation.md): Re-signs an existing delegation under a new root key. The bytes, hence the `delegation_hash` and epoch, are unchanged. - [Function client::owner::rotate_root](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-rotate_root.md): Signs the rotation from the current root `old` to `new`: `rotation_seq` follows the descriptor's latest rotation, and both keys sign. - [Function client::owner::rotated_revision](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-client-owner-rotated_revision.md): 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 - [Function command::attachment::caption](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-attachment-caption.md): The caption of the SimpleX file that carries attachment `id`, either way. - [Function command::attachment::parse_caption](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-attachment-parse_caption.md): The attachment a caption names, when it is a Zaun caption. - [Function command::bot::chosen](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-bot-chosen.md): Full grants from a choice and the manifest's request. - [Function command::classify](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-classify.md): Classifies a command `type`. Exact, case-sensitive matching. - [Function command::max_envelope](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-max_envelope.md): The largest command envelope for `type_` in bytes: `max_frame` for `community.create` and `community.descriptor.publish`, else 65 536. - [Function command::object::bot_events::allowed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-allowed.md): 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. - [Function command::object::bot_events::group_of](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-group_of.md): The group an event type belongs to, if any. - [Function command::object::bot_events::known](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-known.md): Whether `name` is something a manifest's `events` may list. - [Function command::object::bot_events::wants](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-bot_events-wants.md): Whether a bot subscribed to `events` (and holding `caps`) gets events of `kind`. - [Function command::object::check_commands](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-check_commands.md): Every command's rules, the per-type counts and unique names; at most 8 000 scalars of text per command. - [Function command::object::check_embeds](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-check_embeds.md): 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 - [Function command::object::check_message_components](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-check_message_components.md): 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. - [Function command::object::check_modal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-check_modal.md): A modal (`MODAL` response): `custom_id`, `title` 1–45 and 1–5 labels or text displays. - [Function command::object::check_pictures](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-check_pictures.md): 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 - [Function command::object::component_attachments](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-component_attachments.md): Every attachment the components show (thumbnails, gallery pictures, files), with the field naming it; each must be an attachment of the same message. - [Function command::object::config_key_ok](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-config_key_ok.md): A `config` key: `a-za-z0-9_{0,63}`. - [Function command::object::find_interactive](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-find_interactive.md): 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. - [Function command::object::host_pattern_ok](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-host_pattern_ok.md): A DNS name, optionally with one leading `*.` label: letters, digits and `-`, at least two labels, ≤ 253 bytes, lower case. - [Function command::object::local_address_ok](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-local_address_ok.md): 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. - [Function command::object::message_json_len](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-message_json_len.md): The bytes of a message's `content` and `embeds` as JSON, counted against `MESSAGE_JSON_MAX`. - [Function command::object::message_json_len_with](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-message_json_len_with.md): `message_json_len` plus the message's components, which count against the same `MESSAGE_JSON_MAX`. - [Function command::object::modal_inputs](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-command-object-modal_inputs.md): The input components of a modal (everything inside its labels), in order. - [Function crypto::community_id](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-community_id.md): `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. - [Function crypto::content_hash](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-content_hash.md): `SHA3-256(bytes)`: how signed objects are identified, deduplicated and chained (never by signature bytes, the protocol), for example a `delegation_hash`. - [Function crypto::host_id](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-host_id.md): `HostId = SHA3-256("zaun/host-id/v1" ‖ 0x00 ‖ host public key)`. - [Function crypto::message_prime](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-message_prime.md): `M' = Prefix ‖ Label ‖ len(ctx) u8 ‖ ctx ‖ SHA-512(M)`, or `None` when `ctx` exceeds 255 bytes. - [Function crypto::publisher_id](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-publisher_id.md): `PublisherId = SHA3-256("zaun/publisher-id/v1" ‖ 0x00 ‖ publisher key)`. - [Function crypto::sign](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-sign.md): 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). - [Function crypto::sign_deterministic](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-sign_deterministic.md): Deterministic signing (FIPS 204 deterministic variant). **Golden test vectors only**; real signatures use `sign`. - [Function crypto::verify](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-verify.md): Verifies `sig` over `message` with context `ctx` against `pk`. - [Function crypto::verify_raw](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-verify_raw.md): 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 - [Function crypto::voice::derive_key_salt](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-voice-derive_key_salt.md): RFC 9605 the protocol `derive_key_salt` for suite `0x0005`. - [Function crypto::voice::kid_for](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-crypto-voice-kid_for.md): The KID of a sender's epoch: the first 3 bytes of `SHA3-256("zaun/v1/voice-kid" ‖ session)` above the 32-bit epoch. - [Function encoding::from_bytes](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-encoding-from_bytes.md): Decodes a top-level value, rejecting trailing bytes. - [Function encoding::to_bytes](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-encoding-to_bytes.md): Encodes a top-level value. - [Function envelope::check_version](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-check_version.md): Checks an inbound envelope's `v` against the connection's negotiated version. - [Function envelope::command_limit](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-command_limit.md): 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`. - [Function envelope::is_mutating](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-is_mutating.md): Whether a command `type` is mutating, hence idempotent and recorded: every command except `session.hello`, `*.get`, `*.list`, `message.history`, `audit.list`, `member.bans`, `membe - [Function envelope::is_recorded](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-is_recorded.md): Whether `response` is stored in the idempotency record; see `ResponseEnvelope::is_recorded`. - [Function envelope::negotiate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-negotiate.md): Chooses the highest version in both ranges (`session.hello`, the protocol). - [Function envelope::parse_command](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-parse_command.md): Parses a whole or reassembled command envelope `text`. - [Function envelope::replay](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-envelope-replay.md): Compares a retried command with the stored record for its key. - [Function framing::app_data::data](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-framing-app_data-data.md): The application data that carries the frame message `frame`. - [Function framing::app_data::frame](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-framing-app_data-frame.md): 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. - [Function framing::classify](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-framing-classify.md): 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). - [Function framing::encode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-framing-encode.md): Frames the compact envelope JSON `json`. - [Function framing::escaped_len](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-framing-escaped_len.md): 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 - [Function ids::fill_random](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-ids-fill_random.md): Fills `buf` from the operating system CSPRNG. - [Function json::is_zero_u32](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-json-is_zero_u32.md): `skip_serializing_if` for a `u32` that is absent when 0 (message `flags`, the protocol). - [Function json::u64_decimal::deserialize](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-json-u64_decimal-deserialize.md): Deserializes a canonical decimal string. - [Function json::u64_decimal::parse](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-json-u64_decimal-parse.md): Parses a canonical decimal. - [Function json::u64_decimal::serialize](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-json-u64_decimal-serialize.md): Serializes as a decimal string. - [Function limits::text_within](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-limits-text_within.md): Whether `text` has between `min` and `max` Unicode scalar values and at most 4× `max` bytes. - [Function permissions::act_on](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-act_on.md): H1 then H2, with H2 skipped when the actor targets themself and `self_ok` is set. - [Function permissions::all_in](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-all_in.md): The grants of an owner or administrator in a channel. - [Function permissions::applicable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-applicable.md): The channel bits that apply to a channel kind. - [Function permissions::base](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-base.md): `base(m)` for a non-owner (steps 1–2): `@everyone` OR the member's roles; `ALL` with `ADMINISTRATOR`; otherwise masked by `KNOWN`. - [Function permissions::channel_grants](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-channel_grants.md): `grants(m, ch)` (steps 3–6) for a non-administrator whose base is `base`. - [Function permissions::commands](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-commands.md): Every command name of the table. - [Function permissions::community_dependencies](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-community_dependencies.md): 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 - [Function permissions::dependencies](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-dependencies.md): Implicit dependencies (step 6) at channel level: no channel bit without `VIEW_CHANNEL`, then `community_dependencies`. - [Function permissions::gate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-gate.md): 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. - [Function permissions::gate_unbound](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-gate_unbound.md): The gate for an unbound connection. - [Function permissions::h1](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-h1.md): H1: nobody acts on the owner, except the owner on themself. - [Function permissions::h2](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-h2.md): H2: acting on another member requires `top(T) < top(A)`; equal positions block and `ADMINISTRATOR` does not lift it. The owner passes. - [Function permissions::h3](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-h3.md): H3: every changed bit must be held (`changed ⊆ held`, `held` being `cp` or `chp`). - [Function permissions::h3_owner_only](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-h3_owner_only.md): 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 - [Function permissions::h4](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-h4.md): H4: a role is manageable only strictly below the actor's top; the owner is exempt. - [Function permissions::invites::invite_create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-invites-invite_create.md): `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 - [Function permissions::invites::redeemable_roles](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-invites-redeemable_roles.md): 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 - [Function permissions::members::approve](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-approve.md): `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 - [Function permissions::members::kick_or_ban](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-kick_or_ban.md): `member.kick` and `member.ban`: not self (use `community.leave`); H1; H2. - [Function permissions::members::moderate_content](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-moderate_content.md): Deleting another member's message or removing their reaction: H1 only, no H2. - [Function permissions::members::nickname](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-nickname.md): `member.update` of a nickname: one's own needs only `CHANGE_NICKNAME` (table); another's needs H1 and H2. - [Function permissions::members::reject](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-reject.md): `membership.reject`: the target is `Pending`. - [Function permissions::members::restore](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-restore.md): `membership.restore`: not self; H1; H2; the target is `Suspended`. - [Function permissions::members::suspend](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-suspend.md): `membership.suspend`: not self; H1; H2; the target is `Probation` or `Active`. - [Function permissions::members::timeout](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-members-timeout.md): `member.timeout` (set or clear): H1; H2; never the owner; never a target holding `ADMINISTRATOR`; `until ≤ now + 28 days`. - [Function permissions::no_new_unknown](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-no_new_unknown.md): the protocol: a command may not set an unknown bit that `old` did not already hold. - [Function permissions::overrides::adopt_parent](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-overrides-adopt_parent.md): 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 - [Function permissions::overrides::override_edit](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-overrides-override_edit.md): 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, - [Function permissions::overrides::validate_override](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-overrides-validate_override.md): 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 - [Function permissions::required](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-required.md): The requirement of a command by wire name; `None` for a name the table does not know (the engine answers `UNSUPPORTED_COMMAND`). - [Function permissions::roles::can_assign](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-can_assign.md): 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 - [Function permissions::roles::can_grant](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-can_grant.md): Hierarchy over a role being granted, without `MANAGE_ROLES`: not `@everyone`, H4, and its known bits held (H3). Used by `membership.approve`. - [Function permissions::roles::member_role_change](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-member_role_change.md): `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. - [Function permissions::roles::role_create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_create.md): `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. - [Function permissions::roles::role_delete](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_delete.md): `role.delete`: not `@everyone`; H4. - [Function permissions::roles::role_reorder](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_reorder.md): `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 - [Function permissions::roles::role_update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-roles-role_update.md): `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). - [Function permissions::safety::admission_policy_update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-safety-admission_policy_update.md): `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`). - [Function permissions::safety::lockdown_disable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-safety-lockdown_disable.md): `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 - [Function permissions::safety::lockdown_enable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-safety-lockdown_enable.md): `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 - [Function permissions::safety::validate_newcomer_restrictions](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-safety-validate_newcomer_restrictions.md): Validates a new `newcomer_restrictions` mask: no `VIEW_CHANNEL` or `READ_MESSAGE_HISTORY`, no newly set unknown bit. - [Function permissions::with_dependants](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-permissions-with_dependants.md): Every bit that `dependencies` would also drop once `mask` is removed: used to attribute a lost dependant to the restriction that removed its prerequisite. - [Function signed::claimed_genesis](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-claimed_genesis.md): The **claimed** genesis key: the first rotation's `old_root`, or the descriptor's `root_public_key` when the chain is empty. - [Function signed::compare_versions](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-compare_versions.md): Semantic Versioning precedence of two versions; `None` when either is invalid. An update must be `Ordering::Greater` than the installed version. - [Function signed::parse_package](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-parse_package.md): Splits a `.zbot` file into its parts, checking every limit and that nothing trails. - [Function signed::valid_app_id](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-valid_app_id.md): Lowercase reverse-DNS: `a-z0-9-+(\.a-z0-9-+)+`, 3–64 bytes. - [Function signed::valid_version](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-valid_version.md): Semantic Versioning 2.0.0 without build metadata, ≤ 64 bytes. - [Function signed::valid_world](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-valid_world.md): `zaun:bot/bot@`, ≤ 64 bytes. - [Function signed::validate_descriptor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-validate_descriptor.md): 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. - [Function signed::validate_pair](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-validate_pair.md): 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, - [Function signed::verify_chain](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-verify_chain.md): 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 - [Function signed::verify_package](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-verify_package.md): 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 - [Function signed::write_package](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-write_package.md): 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. - [Function signed::write_unsigned_package](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/function-signed-write_unsigned_package.md): Writes an unsigned development `.zbot` file (all-zero signature, the protocol). - [Struct b64::B64Error](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-b64-b64error.md): The input is not canonical base64url without padding. - [Struct bits::Permissions](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-bits-permissions.md): A permission set. JSON: a canonical decimal string. SQLite: `i64` by bit-cast. - [Struct client::Cursor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-cursor.md): One stream's position: the highest contiguous sequence applied, and events held aside. - [Struct client::CursorTable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-cursortable.md): The member cursor and one cursor per channel. - [Struct client::Gap](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-gap.md): A detected gap in a sequenced stream. - [Struct client::member::InvitePayload](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-member-invitepayload.md): 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 - [Struct client::member::Moved](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-member-moved.md): A verified move: the new pair (store its state) and how to reach the new host. - [Struct client::member::ReauthTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-member-reauthtarget.md): Where a member re-authenticates: the community, the new host, the delegation epoch its verified welcome proved, and that welcome's challenge. - [Struct client::member::RegistrationTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-member-registrationtarget.md): Where a registration is made: the community, the host and the welcome's challenge. - [Struct client::owner::DescriptorContent](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-owner-descriptorcontent.md): The owner-editable, public fields of a descriptor. - [Struct client::owner::Genesis](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-owner-genesis.md): A signed genesis descriptor (revision 1) and the delegation it references (epoch 1). - [Struct client::owner::HostInfo](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-owner-hostinfo.md): What an owner needs about a host to delegate to it. - [Struct client::ReceivedEvent](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-receivedevent.md): A received event: the envelope (sequence, timestamp, actor) and its decoded body. - [Struct client::Response](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-response.md): A final response. `Debug` hides the body, which may embed a secret (an invitation link). - [Struct client::RetryPolicy](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-retrypolicy.md): Exponential backoff: `initial_ms`, then ×`factor`, capped at `cap_ms`; give up once `give_up_ms` have passed since the first send. - [Struct client::Session](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-session.md): A sans-IO client session. See the module documentation. - [Struct client::SessionConfig](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-sessionconfig.md): Everything a `super::Session` needs besides the transport. - [Struct client::VerifiedWelcome](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-client-verifiedwelcome.md): A welcome that passed every check. Everything in it comes from verified signed objects or was compared with them. - [Struct command::app::Commands](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-app-commands.md): Response of both: commands with ids (and `bot_id` in `command.list`). - [Struct command::app::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-app-list.md): `command.list`. - [Struct command::app::Set](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-app-set.md): `command.set`: a bot replaces its whole command list. - [Struct command::attachment::Download](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-attachment-download.md): `attachment.download`: asks the host to send an attachment's file. - [Struct command::attachment::Upload](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-attachment-upload.md): `attachment.upload`: declares a file the member is about to send. - [Struct command::attachment::Uploading](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-attachment-uploading.md): `attachment.upload` response. - [Struct command::audit::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-audit-list.md): `audit.list`. - [Struct command::audit::Page](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-audit-page.md): `audit.list` response. - [Struct command::bot::Bots](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-bots.md): `bot.list` response. - [Struct command::bot::Configure](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-configure.md): `bot.configure`: the owner sets or clears values of the settings the bot's manifest declares. With neither, it only reads them. - [Struct command::bot::Configured](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-configured.md): `bot.configure` response: the values the owner set, secrets shown as `"••••"`. - [Struct command::bot::Disable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-disable.md): `bot.disable`. - [Struct command::bot::Enable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-enable.md): `bot.enable` (distinct type so the command table can name it). - [Struct command::bot::Grant](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-grant.md): `bot.grant`: the new effective grants, replacing the old. - [Struct command::bot::GrantChoice](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-grantchoice.md): Optional grant choices of `bot.install`: absent means everything the manifest asks for, within the operator's ceiling. - [Struct command::bot::Install](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-install.md): `bot.install`. - [Struct command::bot::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-list.md): `bot.list`. - [Struct command::bot::Register](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-register.md): `bot.register`: mark an existing member as an external bot. - [Struct command::bot::Remove](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-remove.md): `bot.remove`. - [Struct command::bot::Target](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-target.md): `bot.enable`, `bot.disable`, `bot.get`. - [Struct command::bot::Update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-bot-update.md): `bot.update`. - [Struct command::channel::Create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-channel-create.md): `channel.create`. - [Struct command::channel::Delete](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-channel-delete.md): `channel.delete`. - [Struct command::channel::PermissionsUpdate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-channel-permissionsupdate.md): `channel.permissions.update`. - [Struct command::channel::Reorder](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-channel-reorder.md): `channel.reorder`. - [Struct command::channel::Update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-channel-update.md): `channel.update`: any of the fields; `null` clears only `topic` and `parent_id`. - [Struct command::community::Create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-create.md): `community.create`. The envelope's `community_id` names the target. - [Struct command::community::Created](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-created.md): `community.create` response. - [Struct command::community::DescriptorPublish](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-descriptorpublish.md): `community.descriptor.publish`. Owner only; larger envelope limit. - [Struct command::community::Get](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-get.md): `community.get` (`{}`). - [Struct command::community::Icon](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-icon.md): `community.icon.get` response; the client checks `SHA3-256(icon)` against the descriptor. - [Struct command::community::IconGet](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-iconget.md): `community.icon.get` (`{}`). - [Struct command::community::Info](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-info.md): `community.get` response. - [Struct command::community::Leave](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-leave.md): `community.leave` (`{}`). The owner cannot leave (engine: `CONFLICT`). - [Struct command::community::ProfileResponse](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-profileresponse.md): `community.update` response. - [Struct command::community::Published](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-published.md): `community.descriptor.publish` response. - [Struct command::community::RotationPage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-rotationpage.md): `community.rotations` response. - [Struct command::community::Rotations](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-rotations.md): `community.rotations`. - [Struct command::community::Update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-community-update.md): `community.update`: host-managed profile fields only. - [Struct command::dm::Channels](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-channels.md): `dm.list` response: the actor's open DMs. - [Struct command::dm::Close](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-close.md): `dm.close`: hides the DM for the actor. - [Struct command::dm::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-list.md): `dm.list`. - [Struct command::dm::Open](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-open.md): `dm.open`: the DM with `member_id`, created when there is none (idempotent per pair). - [Struct command::dm::Settings](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-settings.md): The member's settings (`member.settings.get` / `.update` response). - [Struct command::dm::SettingsGet](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-settingsget.md): `member.settings.get`. - [Struct command::dm::SettingsUpdate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-dm-settingsupdate.md): `member.settings.update`: absent fields stay. - [Struct command::interaction::Create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-create.md): `interaction.create`. - [Struct command::interaction::Created](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-created.md): `interaction.create` response. - [Struct command::interaction::Followup](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-followup.md): `interaction.followup` and `interaction.original.edit`. - [Struct command::interaction::OriginalDelete](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-originaldelete.md): `interaction.original.delete`. - [Struct command::interaction::OriginalEdit](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-originaledit.md): `interaction.original.edit`: absent fields stay unchanged. - [Struct command::interaction::Replied](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-replied.md): `interaction.respond` and `interaction.followup` response. - [Struct command::interaction::Respond](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-interaction-respond.md): `interaction.respond`. - [Struct command::invite::Admitted](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-admitted.md): `invite.redeem` and `membership.request` response. - [Struct command::invite::Create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-create.md): `invite.create`. - [Struct command::invite::Created](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-created.md): `invite.create` response. `link` embeds the secret and is shown once. - [Struct command::invite::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-list.md): `invite.list`. - [Struct command::invite::Page](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-page.md): `invite.list` response. - [Struct command::invite::Redeem](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-redeem.md): `invite.redeem`. Unbound; the envelope's `community_id` names the target. - [Struct command::invite::Revoke](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-revoke.md): `invite.revoke`. - [Struct command::invite::UsePage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-usepage.md): `invite.uses` response. - [Struct command::invite::Uses](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-invite-uses.md): `invite.uses`. Page size 1–100. - [Struct command::lockdown::Disable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-disable.md): `moderation.lockdown.disable` (`{}`). - [Struct command::lockdown::Enable](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-enable.md): `moderation.lockdown.enable`; responds with the full `Lockdown`. - [Struct command::lockdown::Get](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-get.md): `moderation.lockdown.get` (`{}`). - [Struct command::lockdown::GetResponse](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-lockdown-getresponse.md): `moderation.lockdown.get` response: `{ "lockdown": object | null }`, the full form for `MANAGE_SAFETY` holders, otherwise the public form; `null` when none is active. - [Struct command::member::BanMember](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-banmember.md): `member.ban`. - [Struct command::member::Banned](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-banned.md): `member.ban` response. - [Struct command::member::BanPage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-banpage.md): `member.bans` response. - [Struct command::member::Bans](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-bans.md): `member.bans`. - [Struct command::member::Get](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-get.md): `member.get`. - [Struct command::member::Kick](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-kick.md): `member.kick`. - [Struct command::member::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-list.md): `member.list`. - [Struct command::member::Page](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-page.md): `member.list` response. - [Struct command::member::RolesUpdate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-rolesupdate.md): `member.roles.update`. - [Struct command::member::Timeout](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-timeout.md): `member.timeout`. `until` is absolute; the 28-day bound needs the host clock, so it is checked by `Command::validate_at`. - [Struct command::member::Unban](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-unban.md): `member.unban`. - [Struct command::member::Update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-member-update.md): `member.update`: a display-name change. - [Struct command::membership::Approve](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-approve.md): `membership.approve`. - [Struct command::membership::Pending](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-pending.md): `membership.pending`. - [Struct command::membership::PendingPage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-pendingpage.md): `membership.pending` response. - [Struct command::membership::PolicyGet](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyget.md): `admission.policy.get` (`{}`). - [Struct command::membership::PolicyResponse](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyresponse.md): `admission.policy.get` response: `policy` (full, `MANAGE_SAFETY`) or `summary`. - [Struct command::membership::PolicyUpdate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyupdate.md): `admission.policy.update`: any policy field. Every field is non-nullable. - [Struct command::membership::PolicyUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-policyupdated.md): `admission.policy.update` response. - [Struct command::membership::Reject](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-reject.md): `membership.reject`. - [Struct command::membership::Request](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-request.md): `membership.request`. Unbound; responds with `super::invite::Admitted`. The target community is the envelope's `community_id`, as for `invite.redeem`. - [Struct command::membership::Restore](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-restore.md): `membership.restore`. - [Struct command::membership::Suspend](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-membership-suspend.md): `membership.suspend`. `until` is absolute; the 90-day bound is checked by `Command::validate_at`. - [Struct command::message::Delete](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-delete.md): `message.delete`. - [Struct command::message::Edit](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-edit.md): `message.edit`. Author only. - [Struct command::message::History](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-history.md): `message.history`. - [Struct command::message::HistoryPage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-historypage.md): `message.history` response. - [Struct command::message::ReactionAdd](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-reactionadd.md): `reaction.add`. - [Struct command::message::ReactionRemove](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-reactionremove.md): `reaction.remove`. - [Struct command::message::Send](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-send.md): `message.send`. - [Struct command::message::Sent](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-sent.md): `message.send` response. - [Struct command::message::Sequenced](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-message-sequenced.md): `message.edit` and `message.delete` response: the event's `channel_seq`. - [Struct command::migration::Reauth](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-migration-reauth.md): `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 - [Struct command::object::ActionRow](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-actionrow.md): Type 1. - [Struct command::object::Activity](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-activity.md): An activity. - [Struct command::object::Admission](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-admission.md): How a member was admitted. - [Struct command::object::AdmissionOverrides](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-admissionoverrides.md): `invite.create.admission_overrides`: stricter-only admission settings. - [Struct command::object::AdmissionPolicy](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-admissionpolicy.md): The full admission policy. Visible to `MANAGE_SAFETY` holders. - [Struct command::object::ApplicationCommand](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-applicationcommand.md): An application command. - [Struct command::object::Attachment](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-attachment.md): An attachment record: what a message carries, and what `attachment.download` and `attachment.updated` answer. - [Struct command::object::AuditChange](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-auditchange.md): `changes: {field, old, new}`. SPEC: value types are never given; raw JSON. - [Struct command::object::AuditEntry](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-auditentry.md): An audit entry. - [Struct command::object::AuditTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-audittarget.md): `target: {t, c}` of an audit entry. - [Struct command::object::Ban](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-ban.md): One entry of `member.bans`. - [Struct command::object::Binding](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-binding.md): `session.welcome.binding`. - [Struct command::object::BotCard](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-botcard.md): The public description of an installed bot, visible to every member. - [Struct command::object::Button](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-button.md): Type 2. - [Struct command::object::Capabilities](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-capabilities.md): What a bot may do beyond its permission bits. Every field defaults to "no". - [Struct command::object::Channel](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-channel.md): A channel or category as members see it. - [Struct command::object::ChannelAfter](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-channelafter.md): `{channel_id, after}` (`sync.resume`, the protocol). - [Struct command::object::ChannelCursor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-channelcursor.md): `{channel_id, seq}` (`sync.ack`, the protocol). - [Struct command::object::ChannelFloor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-channelfloor.md): `{channel_id, floor}` (`sync.resume.floors`, the protocol). - [Struct command::object::ChannelHead](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-channelhead.md): `{channel_id, head_seq, floor}` (`sync.resume.new`, the protocol). - [Struct command::object::ChannelPosition](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-channelposition.md): One entry of `channel.reorder` and `channel.reordered`. - [Struct command::object::Checkbox](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-checkbox.md): Type 23. Never required; use a one-option checkbox group for that. - [Struct command::object::CheckboxGroup](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-checkboxgroup.md): Type 22. - [Struct command::object::Choice](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-choice.md): A predefined choice of an option, or an autocomplete result. - [Struct command::object::CommandOption](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-commandoption.md): An option of a command or subcommand. - [Struct command::object::CommunityProfile](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-communityprofile.md): The host-managed community profile. - [Struct command::object::ConfigKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-configkey.md): One setting a bot declares in its manifest's `config` table; the owner sets its value. - [Struct command::object::Container](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-container.md): Type 17. - [Struct command::object::Cursors](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-cursors.md): The cursors a binding command returns (`community.create`, `invite.redeem`, `membership.request`). - [Struct command::object::DefaultValue](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-defaultvalue.md): A preselected entity of a user, role, mentionable or channel select. - [Struct command::object::Embed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-embed.md): 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 - [Struct command::object::EmbedAuthor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-embedauthor.md): `author: {name, url?, icon?}` of an embed. - [Struct command::object::EmbedField](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-embedfield.md): `fields: {name, value, inline}` of an embed. - [Struct command::object::EmbedFooter](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-embedfooter.md): `footer: {text, icon?}` of an embed. - [Struct command::object::Empty](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-empty.md): An empty body or response, `{}`. Unknown fields are ignored. - [Struct command::object::EntitySelect](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-entityselect.md): Types 5–8. - [Struct command::object::Evidence](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-evidence.md): One evidence item. - [Struct command::object::FileComponent](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-filecomponent.md): Type 13. - [Struct command::object::FileUpload](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-fileupload.md): Type 19. - [Struct command::object::Grants](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-grants.md): A bot's grants: permission bits (its managed role) and capabilities. - [Struct command::object::IceServer](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-iceserver.md): One ICE server, in the shape of WebRTC's `RTCIceServer`. - [Struct command::object::Interaction](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-interaction.md): An interaction as delivered to its bot (`interaction.created`). - [Struct command::object::InteractionMetadata](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-interactionmetadata.md): `interaction_metadata` of a message that answers an interaction. - [Struct command::object::InviteLink](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-invitelink.md): A `zaun://join/…` link. It embeds the `crate::ids::InviteSecret`, so `Debug` is redacted; the text is reachable only through `InviteLink::expose`. - [Struct command::object::InviteSummary](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-invitesummary.md): One entry of `invite.list`. Never carries the secret. - [Struct command::object::InviteUse](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-inviteuse.md): One entry of `invite.uses`. - [Struct command::object::JoinRate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-joinrate.md): `join_rate: {per_hour}`. - [Struct command::object::Label](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-label.md): Type 18. - [Struct command::object::Lockdown](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-lockdown.md): The full lockdown record, for `MANAGE_SAFETY` holders: `{ lockdown_id, restrictions, forced_slowmode_s?, newcomer_window_s?, expires_at, reason?, actor_id }`. - [Struct command::object::LockdownPublic](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-lockdownpublic.md): 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 - [Struct command::object::Manifest](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-manifest.md): The manifest inside a bot package. - [Struct command::object::ManifestLimits](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-manifestlimits.md): Resource limits a manifest asks for; the host may lower them. - [Struct command::object::MediaGallery](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-mediagallery.md): Type 12. - [Struct command::object::MediaItem](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-mediaitem.md): One picture of a media gallery. - [Struct command::object::Member](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-member.md): A member as visible to the viewer. Optional fields depend on the viewer's permissions; the host filters them. - [Struct command::object::Mentions](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-mentions.md): `mentions: {everyone, members, roles}`. - [Struct command::object::Message](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-message.md): A stored message as returned by `message.history`. - [Struct command::object::MessageBody](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-messagebody.md): Content, embeds, components, attachments, mentions and flags of a bot's message. - [Struct command::object::NewProfile](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-newprofile.md): `profile: {display_name}` of a joining or creating member. - [Struct command::object::Opaque](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-opaque.md): Opaque bytes, base64url on the wire (key packages, wrapped keys, signalling data). - [Struct command::object::OptionValue](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-optionvalue.md): One option of an invoked command. - [Struct command::object::Override](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-override.md): A permission override on a channel or category (permissions the protocol). - [Struct command::object::PolicySummary](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-policysummary.md): The public summary: `{level, requires_approval, invite_creation, open}`. Hosts MUST send `open`. - [Struct command::object::RadioGroup](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-radiogroup.md): Type 21. - [Struct command::object::ReactionCount](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-reactioncount.md): `reactions: {emoji, count, me}`. - [Struct command::object::Report](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-report.md): A report. Only for `MANAGE_REPORTS` holders and, without other reporters' data, the reporter. - [Struct command::object::Resolution](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-resolution.md): `resolution: {outcome, note?, actor_id, at}`. - [Struct command::object::Resolved](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-resolved.md): Objects an interaction refers to, resolved by the host. - [Struct command::object::Resync](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-resync.md): `{stream, channel_id?}` of `sync.resume.resync` and `RESYNC_REQUIRED`. - [Struct command::object::Retention](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-retention.md): Message retention of a channel. - [Struct command::object::Role](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-role.md): A role. Visible to every member. - [Struct command::object::RolePosition](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-roleposition.md): One entry of `role.reorder` and `role.reordered`. - [Struct command::object::Section](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-section.md): Type 9. - [Struct command::object::SelectOption](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-selectoption.md): One option of a string select, radio group or checkbox group. - [Struct command::object::Separator](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-separator.md): Type 14. - [Struct command::object::SignedRotation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-signedrotation.md): A `SignedRootRotation` in JSON: `{bytes, sig_old, sig_new}`, all base64url. Kept undecoded, like `crate::json::SignedJson`; the `signed` module verifies it. - [Struct command::object::StringSelect](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-stringselect.md): Type 3. - [Struct command::object::SubmittedInput](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-submittedinput.md): One submitted modal input. - [Struct command::object::TextDisplay](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-textdisplay.md): Type 10. - [Struct command::object::TextInput](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-textinput.md): Type 4. - [Struct command::object::Thumbnail](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-thumbnail.md): Type 11. - [Struct command::object::VoiceParticipant](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-object-voiceparticipant.md): One member in a voice channel. - [Struct command::presence::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-presence-list.md): `presence.list`: the presences of the community's connected, visible members. - [Struct command::presence::Presences](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-presence-presences.md): `presence.list` response: one entry per member not `offline` (members missing from the list are offline). - [Struct command::presence::StatusSet](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-presence-statusset.md): `member.status.set`: replaces the actor's custom status. A body with neither `text` nor `emoji` clears it. - [Struct command::report::Create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-create.md): `report.create`. - [Struct command::report::Created](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-created.md): `report.create` response. - [Struct command::report::Get](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-get.md): `report.get`. - [Struct command::report::List](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-list.md): `report.list`. - [Struct command::report::Page](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-page.md): `report.list` response: `reports`, `next?`. - [Struct command::report::Resolve](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-resolve.md): `report.resolve`: `note?` is ≤ 512 scalars. - [Struct command::report::Review](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-report-review.md): `report.review`: `open` → `reviewing`. - [Struct command::role::Create](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-role-create.md): `role.create`. - [Struct command::role::Delete](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-role-delete.md): `role.delete`. - [Struct command::role::Reorder](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-role-reorder.md): `role.reorder`. - [Struct command::role::Update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-role-update.md): `role.update`: any of the `role.create` fields. - [Struct command::session::Hello](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-session-hello.md): `session.hello`. - [Struct command::session::HostAttachments](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-session-hostattachments.md): `session.welcome.attachments`. - [Struct command::session::Versions](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-session-versions.md): `{min, max}` protocol versions. - [Struct command::session::Welcome](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-session-welcome.md): `session.welcome`. - [Struct command::signal::Presence](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-signal-presence.md): `signal.presence`: `{ status?, activity?, viewing? }`, at least one of `status` and `viewing`. - [Struct command::signal::Typing](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-signal-typing.md): `signal.typing { channel_id }`. - [Struct command::sync::Ack](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-ack.md): `sync.ack`: the highest contiguous sequence applied per stream. Not idempotency-recorded; lower values are ignored by the host. - [Struct command::sync::ChannelEvents](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-channelevents.md): One channel of `sync.resume.channels`. - [Struct command::sync::CommunitySnapshot](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-communitysnapshot.md): The single item of `part: "community"`. - [Struct command::sync::Events](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-events.md): `sync.events`. - [Struct command::sync::EventsPage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-eventspage.md): `sync.events` response, also the `member` part of `sync.resume`. - [Struct command::sync::PageCursor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-pagecursor.md): A snapshot page cursor: a 16-byte role or channel id. - [Struct command::sync::Resume](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-resume.md): `sync.resume`. - [Struct command::sync::Resumed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-resumed.md): `sync.resume` response. - [Struct command::sync::Snapshot](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-snapshot.md): `sync.snapshot`. - [Struct command::sync::SnapshotPage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-sync-snapshotpage.md): `sync.snapshot` response. - [Struct command::voice::Join](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-join.md): `voice.join`: enter a voice channel (leaving any other one). - [Struct command::voice::Joined](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-joined.md): The `voice.join` response. - [Struct command::voice::KeyFor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-keyfor.md): One entry of `voice.keys`. - [Struct command::voice::Keys](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-keys.md): `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. - [Struct command::voice::Leave](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-leave.md): `voice.leave`: leave the voice channel the member is in. - [Struct command::voice::Moderate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-moderate.md): `voice.moderate`: server mute or deafen, move or disconnect another member. - [Struct command::voice::Signal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-signal.md): `voice.signal`: WebRTC signalling for one other participant of the same channel. - [Struct command::voice::Update](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-command-voice-update.md): `voice.update`: the member's own mute and deafen. - [Struct crypto::SecretKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-secretkey.md): A suite-1 composite private key: `mldsaSeed` (FIPS 204 ξ, 32 B) ‖ `edSK` (32 B). - [Struct crypto::Sha3Hasher](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-sha3hasher.md): An incremental `content_hash`, for attachment files read in pieces. - [Struct crypto::voice::FrameOpener](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-frameopener.md): Opens one sender's frames for one KID, rejecting replays. - [Struct crypto::voice::FrameSealer](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-framesealer.md): 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. - [Struct crypto::voice::GroupKeys](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-groupkeys.md): A participant's key state for one voice session. - [Struct crypto::voice::Header](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-header.md): An SFrame header (RFC 9605 the protocol). - [Struct crypto::voice::KeyPackage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-keypackage.md): A participant's voice key for one session in one voice channel. - [Struct crypto::voice::PackageExpectation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-packageexpectation.md): What a receiver expects of a peer's key package. - [Struct crypto::voice::RecipientEntry](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-recipiententry.md): One recipient of a sender's epoch key. - [Struct crypto::voice::Rekey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-rekey.md): What a rekey sends: one signed sender-keys message for everyone and one wrapped key each. - [Struct crypto::voice::RekeyTarget](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-rekeytarget.md): One recipient's share of a `Rekey`. - [Struct crypto::voice::SenderKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-senderkey.md): An SFrame base key (32 bytes). Zeroized on drop, never printed, never on the wire unwrapped. - [Struct crypto::voice::SenderKeys](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-senderkeys.md): The signed statement of one sender's epoch (see the module table). - [Struct crypto::voice::SenderKeysExpectation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-senderkeysexpectation.md): What a recipient expects of a sender-keys message. - [Struct crypto::voice::SignedKeyPackage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-signedkeypackage.md): A key package whose signature was made here or verified. - [Struct crypto::voice::SignedSenderKeys](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-signedsenderkeys.md): A sender-keys message whose signature was made here or verified. - [Struct crypto::voice::VoiceIdentity](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-voiceidentity.md): 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. - [Struct crypto::voice::VoicePublicKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-voicepublickey.md): An X-Wing encapsulation key (ML-KEM-768 ‖ X25519, 1 216 bytes), validated on parse. - [Struct crypto::voice::VoiceSessionId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-voicesessionid.md): One participation in a voice channel. A member draws a fresh one on every join, so KIDs and epochs never repeat across joins. - [Struct crypto::voice::WrapContext](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-wrapcontext.md): Who wraps, for which channel and epoch: bound into the HPKE `info`. - [Struct crypto::voice::WrappedKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-crypto-voice-wrappedkey.md): A base key wrapped to one recipient: X-Wing `enc` ‖ AES-256-GCM ciphertext ‖ tag. - [Struct encoding::Reader](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-encoding-reader.md): 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. - [Struct encoding::Writer](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-encoding-writer.md): Appends canonical encodings to a buffer. Variable fields take their limit and fail above it, mirroring `super::Reader`. - [Struct envelope::BodyHash](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-bodyhash.md): 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. - [Struct envelope::CommandEnvelope](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-commandenvelope.md): `{ "v", "type", "request_id", "community_id", "channel_id"?, "body" }`. - [Struct envelope::ErrorBody](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-errorbody.md): 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 - [Struct envelope::ErrorExtras](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-errorextras.md): The extra fields of the protocol Each applies to the codes named on it. - [Struct envelope::EventEnvelope](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-eventenvelope.md): `{ "v", "type", "community_id", "channel_id"?, "stream", "sequence"?, "timestamp", "actor_id", "body" }`. Deserialisation validates with `EventEnvelope::validate`. - [Struct envelope::EventsBatch](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-eventsbatch.md): A validated `events` batch. Its events are processed in order, exactly as individual events; the batch itself has no stream, sequence or timestamp. - [Struct envelope::Rejection](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-rejection.md): A command the host rejects before dispatch; send `Rejection::into_response` back. - [Struct envelope::ResponseEnvelope](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-responseenvelope.md): `{ "v", "type": "response", "request_id", "ok", "body" | "error" }`. - [Struct envelope::VersionRange](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-envelope-versionrange.md): An inclusive protocol version range (`session.hello.versions`, `UNSUPPORTED_VERSION`). - [Struct event::BotRemoved](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-botremoved.md): `bot.removed`: `{bot_id, member_id}`. - [Struct event::ChannelCreated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-channelcreated.md): `channel.created`: the channel object plus `reason?: "access_gained"`. - [Struct event::ChannelDeleted](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-channeldeleted.md): `channel.deleted`: `{channel_id, reason?: "access_lost"}`. - [Struct event::ChannelsReordered](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-channelsreordered.md): `channel.reordered`: `positions` (only channels the member can see). - [Struct event::CommandsUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-commandsupdated.md): `command.updated`: one bot's whole command list (`[]` while disabled or removed). - [Struct event::DescriptorUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-descriptorupdated.md): `community.descriptor_updated`: signed `descriptor` and `delegation`. - [Struct event::DmClosed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-dmclosed.md): `dm.closed`: to the closer's own stream. - [Struct event::InteractionAutocomplete](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-interactionautocomplete.md): `interaction.autocomplete`: suggestions, to the invoker only. - [Struct event::InteractionFailed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-interactionfailed.md): `interaction.failed`, to the invoker only. - [Struct event::InteractionMessage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-interactionmessage.md): `interaction.message`: an ephemeral message, to the invoker only. - [Struct event::InteractionModal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-interactionmodal.md): `interaction.modal`: open a modal, to the invoker only. - [Struct event::MemberLeft](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-memberleft.md): `member.left`: `{member_id}`. - [Struct event::MemberRemoved](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-memberremoved.md): `member.removed`: `{reason}`, to the subject only; then the session ends. - [Struct event::MemberRolesUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-memberrolesupdated.md): `member.roles_updated`: `{member_id, role_ids}`. - [Struct event::MembershipUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-membershipupdated.md): `membership.updated`: `{member_id, state, until?}`. - [Struct event::MemberTimedOut](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-membertimedout.md): `member.timed_out`: `{member_id, until}`. - [Struct event::MessageCreated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-messagecreated.md): `message.created`. - [Struct event::MessageDeleted](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-messagedeleted.md): `message.deleted`: `{message_id}`. - [Struct event::MessagesBulkDeleted](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-messagesbulkdeleted.md): `messages.bulk_deleted`: `{message_ids}` (≤ 1 000). - [Struct event::MessageUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-messageupdated.md): `message.updated`: `{message_id, content, embeds?, components?, flags?, mentions?, edited_at}`. - [Struct event::PresenceSignal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-presencesignal.md): `signal.presence` live event. - [Struct event::ReactionChanged](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-reactionchanged.md): `reaction.added` and `reaction.removed`: `{message_id, emoji, member_id}`. - [Struct event::RoleDeleted](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-roledeleted.md): `role.deleted`: `{role_id}`. - [Struct event::RolesReordered](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-rolesreordered.md): `role.reordered`: `positions`. SPEC: the `role.reorder` entry is reused. - [Struct event::TypingSignal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-typingsignal.md): `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). - [Struct event::VoiceJoined](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-voicejoined.md): `voice.joined`: a member entered a voice channel. Its `key_package` is present only for the channel's other participants. - [Struct event::VoiceKeys](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-voicekeys.md): `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). - [Struct event::VoiceLeft](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-voiceleft.md): `voice.left`: a member left a voice channel. The member itself receives it too. - [Struct event::VoiceSignal](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-voicesignal.md): `voice.signal`: WebRTC signalling from another participant, to this one only. - [Struct event::VoiceUpdated](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-event-voiceupdated.md): `voice.updated`: a participant's mute, deafen or `can_speak` changed. - [Struct framing::EncodedFrame](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-framing-encodedframe.md): The transport messages of one frame, in sending order. - [Struct framing::FragId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-framing-fragid.md): A fragment id: 8 random bytes, unique per sender per connection among open reassemblies. - [Struct framing::Fragment](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-framing-fragment.md): One fragment message, borrowing its chunk from the received text. - [Struct framing::Reassembler](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-framing-reassembler.md): Per-connection reassembly state machine. - [Struct ids::AttachmentId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-attachmentid.md): An attachment. - [Struct ids::AuditId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-auditid.md): An audit-log entry. - [Struct ids::BanId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-banid.md): A ban record. - [Struct ids::BotId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-botid.md): An installed bot. - [Struct ids::Challenge](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-challenge.md): A host-issued challenge that a signed proof must echo. - [Struct ids::ChannelId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-channelid.md): A channel or category. - [Struct ids::CommandId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-commandid.md): An application command of a bot. - [Struct ids::CommunityId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-communityid.md): `SHA3-256("zaun/community-id/v1" ‖ 0x00 ‖ genesis root public key)`. - [Struct ids::DescriptorHash](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-descriptorhash.md): `SHA3-256` of a signed descriptor's bytes. The descriptor names its delegation's hash, so this identifies the descriptor/delegation pair. - [Struct ids::HostId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-hostid.md): `SHA3-256("zaun/host-id/v1" ‖ 0x00 ‖ host public key)`. - [Struct ids::InteractionId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-interactionid.md): An interaction: one use of a command, component or modal. - [Struct ids::InviteId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-inviteid.md): An invitation (public handle; the secret is `InviteSecret`). - [Struct ids::InviteSecret](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-invitesecret.md): An invitation secret: 32 random bytes, shown once. Never logged: `Debug` is redacted and it has no `Display`. Zeroized on drop. - [Struct ids::LockdownId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-lockdownid.md): An emergency lockdown. - [Struct ids::MemberId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-memberid.md): A community-scoped member identity, host-assigned. - [Struct ids::MessageId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-messageid.md): A message. - [Struct ids::Nonce](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-nonce.md): A single-use value in signed objects. - [Struct ids::PublisherId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-publisherid.md): `SHA3-256("zaun/publisher-id/v1" ‖ 0x00 ‖ publisher public key)`. - [Struct ids::ReportId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-reportid.md): A member report. - [Struct ids::RequestId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-requestid.md): Correlates a command with its response; client-assigned. - [Struct ids::RngError](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-rngerror.md): The operating system's CSPRNG failed. - [Struct ids::RoleId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-roleid.md): A role. `RoleId::EVERYONE` is the reserved all-zero id. - [Struct ids::VoiceSessionId](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-ids-voicesessionid.md): One stay of a member in a voice channel, host-assigned at `voice.join`. - [Struct json::SignedJson](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-json-signedjson.md): 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 - [Struct keys::PublicKey](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-keys-publickey.md): A composite public key, 1 985 bytes. - [Struct keys::Signature](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-keys-signature.md): A composite signature, 3 374 bytes. - [Struct permissions::ActiveLockdown](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-activelockdown.md): The lockdown currently in force, as lockdown management sees it. - [Struct permissions::Channel](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-channel.md): The channel context of a channel-level resolution. - [Struct permissions::Context](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-context.md): Community-wide inputs shared by every resolution in one request. - [Struct permissions::Denial](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-denial.md): A failed permission or hierarchy check. - [Struct permissions::invites::InviteRequest](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-invites-inviterequest.md): The parts of an `invite.create` body the checks need. - [Struct permissions::Lockdown](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-lockdown.md): The community's lockdown row. - [Struct permissions::LockdownRestrictions](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-lockdownrestrictions.md): The restrictions a lockdown names. - [Struct permissions::Override](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-override.md): A permission override on one channel or category (permissions the protocol). - [Struct permissions::Party](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-party.md): An actor or target member as the hierarchy sees it. Build it with `Resolver::party`. - [Struct permissions::Requirement](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-requirement.md): What a command requires (permissions the protocol, the protocol). - [Struct permissions::Resolved](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-resolved.md): One resolved permission set (`cp` or `chp`). - [Struct permissions::Resolver](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-resolver.md): Per-member state computed once; then `Resolver::community` and `Resolver::channel` are cheap enough to call for every channel of a snapshot. - [Struct permissions::Role](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-role.md): A role as the resolver sees it (permissions the protocol). - [Struct permissions::Steps](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-steps.md): The masks each step 7 restriction removed, in application order. - [Struct permissions::Subject](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-permissions-subject.md): The member whose permissions are resolved. - [Struct signed::AcceptedState](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-acceptedstate.md): What a verifier stores per community for anti-rollback (rule 5). - [Struct signed::AdmissionSummary](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-admissionsummary.md): `AdmissionSummary = mode u8 ‖ level u8`: the owner's public claim; the host's policy is authoritative for enforcement. - [Struct signed::BotPackage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-botpackage.md): The signed header of a bot package, signed by the publisher key inside it. - [Struct signed::ChainHead](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-chainhead.md): Every root key of a verified chain, `K₀` (genesis) to `Kₙ` (current). Only `super::verify_chain` creates one. - [Struct signed::CommunityDescriptor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-communitydescriptor.md): The community's public, owner-signed statement. Signed by the current root key. - [Struct signed::DelegationRef](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-delegationref.md): `DelegationRef = epoch u64 ‖ delegation_hash bytes32`, where `delegation_hash` is `SHA3-256` of the delegation's canonical bytes (not its signature). - [Struct signed::ExportManifest](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-exportmanifest.md): 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 - [Struct signed::HostDelegation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-hostdelegation.md): The root key's authorisation of one host to operate the community. - [Struct signed::HostSessionProof](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-hostsessionproof.md): The host's proof of key possession in `session.welcome`. Signed by the host key. - [Struct signed::ManifestEntry](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-manifestentry.md): One chunk: what it is, its length and its `SHA3-256`. - [Struct signed::MemberKeyRegistration](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-memberkeyregistration.md): Proves that the client holds the private key of the member key it registers. Signed by that key. - [Struct signed::MemberReauth](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-memberreauth.md): 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 - [Struct signed::ParsedPackage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-parsedpackage.md): The parts of a `.zbot` file, not yet verified. - [Struct signed::ReauthExpectation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-reauthexpectation.md): What the host expects of a reauthentication: the envelope's community, this host, the epoch it operates under and the connection's current challenge. - [Struct signed::RegistrationExpectation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-registrationexpectation.md): What the host expects of a registration: the command's fields and the connection's current challenge. - [Struct signed::RootRotation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-rootrotation.md): The replacement of the community's root key, signed by the old **and** the new key. - [Struct signed::Scopes](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-scopes.md): Delegation scopes (field 6). Unknown bits are kept for re-encoding, are ignored and grant nothing. - [Struct signed::Signed](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-signed.md): A signed object whose signature has been made or verified, with its exact bytes. - [Struct signed::SignedRootRotation](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-signedrootrotation.md): A rotation with both signatures, unverified (verify with `super::verify_chain`). - [Struct signed::ValidDescriptor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-validdescriptor.md): A descriptor that passed rule 1 and the descriptor parts of rule 5. - [Struct signed::ValidPair](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-validpair.md): A (descriptor, delegation) pair valid at the time it was checked, with the state to store. Only `validate_pair` creates one. - [Struct signed::VerifiedPackage](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/struct-signed-verifiedpackage.md): A package whose signature (unless unsigned was allowed), hashes and manifest ids were checked. - [Trait command::Body](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/trait-command-body.md): A command body type: its wire name and response body type. - [Trait command::BodyVisitor](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/trait-command-bodyvisitor.md): Something done with a command body of a type known only at run time (`Command::visit`). - [Trait command::Validate](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/trait-command-validate.md): State-free checks of one body. - [Trait encoding::Decode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/trait-encoding-decode.md): A type with a canonical decoding. - [Trait encoding::Encode](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/trait-encoding-encode.md): A type with a canonical encoding (fixed-size or self-limiting). - [Trait signed::SignedObject](https://zaunchat.github.io/docs/reference/rust/zaun-community-protocol/trait-signed-signedobject.md): A signed object type: its canonical encoding (format byte first) and its context. ## Optional: Reference: bot WIT interface - [Bot WIT interface](https://zaunchat.github.io/docs/reference/wit.md): The zaun:bot WebAssembly world every Zaun bot is built against, generated from zaun-bot's wit/ directory. - [Interface: audio](https://zaunchat.github.io/docs/reference/wit/interface-audio.md): Low-level audio output (capability `voice`): the bot writes the audio itself, packet by packet or sample by sample, instead of naming tracks for the player. For synthesisers, text to speech, mixers, a - [Interface: commands](https://zaunchat.github.io/docs/reference/wit/interface-commands.md): The bot's application commands. `init`'s registration is applied at start; this replaces them at run time (`command.set`, bulk overwrite). - [Interface: community](https://zaunchat.github.io/docs/reference/wit/interface-community.md): Reads and moderation, all checked by the host against the bot's grants and permissions. - [Interface: dms](https://zaunchat.github.io/docs/reference/wit/interface-dms.md): Direct-message channels with members (capability `dms`, the protocol). The member decides: `FORBIDDEN` (`dms_closed`) when they turned DMs from bots off or closed this one. - [Interface: http](https://zaunchat.github.io/docs/reference/wit/interface-http.md): Outbound HTTPS to hosts in the bot's `network` grant. The request leaves from the host, so the remote server learns the host's address. The `local_network` grant adds exact `host:port` addresses next - [Interface: interactions](https://zaunchat.github.io/docs/reference/wit/interface-interactions.md): Answers to interactions. Only the bot that received an interaction may answer it. - [Interface: log](https://zaunchat.github.io/docs/reference/wit/interface-log.md): Bot output for the operator (`zaun-host bot logs`); rate-limited. - [Interface: messages](https://zaunchat.github.io/docs/reference/wit/interface-messages.md): Messages and reactions. Every call is an ordinary command on the bot's member, checked by the host's permission engine exactly as for any member. - [Interface: presence](https://zaunchat.github.io/docs/reference/wit/interface-presence.md): The bot's own presence and custom status, shown to every member next to its name: 'Listening to lofi radio', '🎵 Type /play'. - [Interface: storage](https://zaunchat.github.io/docs/reference/wit/interface-storage.md): Per-bot key-value storage, limited by the `storage_bytes` grant. - [Interface: timers](https://zaunchat.github.io/docs/reference/wit/interface-timers.md): Timers (capability `timers`). Each fires `on-timer` with its id and tag. - [Interface: types](https://zaunchat.github.io/docs/reference/wit/interface-types.md): Shared data types. Shapes follow the protocol. WIT has no recursive types, so nesting (containers, sections, sub-commands) is - [Interface: voice](https://zaunchat.github.io/docs/reference/wit/interface-voice.md): Voice channels (capability `voice`, ADR-0020). The host joins as the bot, end-to-end encrypted like any member, and plays audio for it in real time: the bot only says what to play. One stay per bot; ` - [World: bot](https://zaunchat.github.io/docs/reference/wit/world-bot.md): A Zaun bot. The host calls one export at a time. ## Reference - [Reference](https://zaunchat.github.io/docs/reference.md): API reference for @zaun/bot (TypeScript), zaun-client, the zaun-bot Rust SDK and the protocol crate, plus the zaun-host command line, configuration and limits. - [zaun-host command line](https://zaunchat.github.io/docs/reference/zaun-host-cli.md): Every zaun-host command and option, with what it reads, writes and prints. - [Configuration](https://zaunchat.github.io/docs/reference/configuration.md): Every key of zaun-host.toml, its default and its allowed values. - [Limits](https://zaunchat.github.io/docs/reference/limits.md): Sizes, counts and timings for messages, embeds, application commands, interactions, components, presence and bots. - [TypeScript bot API (@zaun/bot)](https://zaunchat.github.io/docs/reference/typescript-bots.md): The @zaun/bot SDK for writing Zaun bots in TypeScript; generated from its source. - [JavaScript client API (zaun-client)](https://zaunchat.github.io/docs/reference/javascript.md): zaun-client's JavaScript/TypeScript package for browsers, Node.js and Bun; generated from its type definitions. ## Resources - [FAQ](https://zaunchat.github.io/docs/resources/faq.md): Short answers to common questions about Zaun hosts, privacy, clients and bots. - [Glossary](https://zaunchat.github.io/docs/resources/glossary.md): The words these docs use, in one place. - [Coming soon](https://zaunchat.github.io/docs/resources/coming-soon.md): Features in progress or planned; not available on main yet. - [Using these docs with AI](https://zaunchat.github.io/docs/resources/for-ai-agents.md): Machine-readable versions of these docs for AI assistants, coding agents and tools. ## Home - [Zaun documentation](https://zaunchat.github.io/docs/index.md): Run a private community host, build apps with zaun-client, and write bots that run inside your own host.