Skip to content

IntentAi/intent-protocol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intent Protocol Specification

Open specification for the Intent communication protocol.

This repository contains the complete technical specification for building Intent-compatible clients, bots, and integrations.

Contents

REST API (rest-api/)

  • Resources — Servers, channels, messages CRUD with full endpoint specs
  • Authentication — Token types, permission bitfields, OAuth2 outline
  • Rate Limiting — Per-route buckets, global limits, response headers

Gateway (gateway/)

  • Opcodes — 13 opcodes (0-12), connection lifecycle, heartbeat, resume
  • Events — 15 event types with payload schemas and examples
  • MessagePack — Binary encoding spec, type mappings, wire format, client examples

Voice (voice/)

  • Signaling — WebRTC SFU architecture, connection lifecycle, STUN/TURN, speaking indicators
  • Codecs — Opus configuration, RTP header extensions, RTCP feedback, bitrate profiles

Encryption (encryption/)

  • MLS E2EE — MLS (RFC 9420) for encrypted DMs, key packages, ciphersuite selection

Webhooks (webhooks/)

  • Format — Webhook payloads, Discord-compatible endpoint format

Discord Mapping (discord-mapping/)

  • Endpoints — REST endpoint equivalences
  • Events — Gateway event name mapping
  • Objects — Object field mapping

Schemas (schemas/)

  • OpenAPI 3.1 — Machine-readable spec for code generation and validation

Purpose

This spec enables:

  • Third-party client development
  • Bot SDK implementation (see intent.js, intent.py)
  • Integration tools
  • Migration from Discord

Status

Phase 1 specification is near-complete. REST API, gateway protocol, voice signaling, and encryption specs are documented. Opcodes 0-3 and 11 are implemented server-side; remaining opcodes (4-10, 12) are specified for future implementation.

Contributing

See CONTRIBUTING.md

Protocol documentation contributions are welcome.

License

MIT License - See LICENSE

About

Intent protocol specification for client-server communication

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors