@wyrebot/contracts
v0.1.0-alpha.0
Published
Shared Wyre TypeScript contracts for ids, ingest payloads, auth, feed settings, analytics, and observability.
Maintainers
Readme
@wyrebot/contracts
Shared TypeScript contracts for Wyre.
This package holds the common ids, ingest payload shapes, auth/session types, feed settings, analytics responses, and observability records used across the Wyre stack.
Install
npm install @wyrebot/contracts@nextWhat It Exports
- account, connector, dashboard-session, and Telegram id types
- hosted ingest payload types
- feed and feed-settings types
- analytics response types
- observability record types
Example
import type { WyreHostedIngestRequest } from '@wyrebot/contracts';
const payload: WyreHostedIngestRequest = {
schemaVersion: 'wyre-intake.v1',
eventId: 'telegram:-100123:4812',
platform: 'telegram',
observedAt: new Date().toISOString(),
connectorInstanceId: 'wyre-demo-node',
sourceGroup: {
platformChatId: '-100123',
chatType: 'supergroup',
title: 'Alpha Hunters',
username: 'alphahunters'
},
sender: {
platformUserId: '99887766',
username: 'coincaller',
displayName: 'Coin Caller',
isBot: false
},
message: {
platformMessageId: '4812',
sentAt: new Date().toISOString(),
threadId: null
},
tokenHits: [
{
chain: 'solana',
contractAddress: 'So11111111111111111111111111111111111111112'
}
]
};Notes
- The public package surface is the root export only.
- Deep imports are intentionally not part of the supported API.
