Open-Wire Ruby gem (open-wire)

Protocol client and webhook helpers for open-wire/1.

Install

# Gemfile
gem "open-wire", "~> 0.1"
gem install open-wire

Send

client = OpenWire::Client.new(
  base_url: "https://openwire.rails-agent.com",
  api_key: ENV["OPEN_WIRE_API_KEY"]
)

client.send_message(
  installation_id: "inst_…",
  to: { id: "C123", kind: "channel" },
  text: "Hello from Rails",
  thread_id: "C123:1710000000.000100"
)

Inbound webhook

message = OpenWire::Webhook.verify_and_parse!(
  secret: ENV["OPEN_WIRE_WEBHOOK_SECRET"],
  body: request.raw_post,
  headers: request.headers
)

See protocol docs for the full envelope shape.