pub mod agent;
pub mod client;
pub mod credentials;
pub mod dm_participants;
pub mod error;
pub mod events;
pub mod identity;
pub mod registration;
pub mod relay;
pub mod types;
pub mod ws;
pub use agent::{AgentClient, DmOptions, EnsureChannelOutcome};
pub use client::{ClientOptions, HttpClient, RequestOptions};
pub use dm_participants::{
DmParticipantsCache, DmParticipantsCacheEntry, DM_PARTICIPANT_CACHE_TTL,
DM_PARTICIPANT_FAILURE_TTL,
};
pub use error::{RelayError, Result};
pub use events::{
normalize_command_invocation, normalize_inbound_event, normalize_sender_identity,
NormalizedCommandInvocation, NormalizedEventKind, NormalizedInboundEvent, RelayPriority,
SenderKind,
};
pub use identity::{agent_name_eq, is_self_name};
pub use registration::{
format_registration_error, registration_is_retryable, registration_retry_after_secs,
retry_agent_registration, AgentRegistrationClient, AgentRegistrationError,
AgentRegistrationRetryOutcome,
};
pub use relay::{RelayCast, RelayCastOptions};
pub use ws::{
EventReceiver, LifecycleReceiver, RawEventReceiver, WsClient, WsClientOptions, WsLifecycleEvent,
};
pub use types::{
ActionCompletedEvent,
ActionDefinition,
ActionFailedEvent,
ActionInvocation,
ActionInvocationStatus,
ActionInvokedEvent,
Agent,
AgentChannelMembership,
AgentCommand,
AgentListQuery,
AgentOfflineEvent,
AgentOnlineEvent,
AgentPresenceInfo,
Channel,
ChannelArchivedEvent,
ChannelCreatedEvent,
ChannelMemberInfo,
ChannelReadStatus,
ChannelUpdatedEvent,
ChannelWithMembers,
CommandInvocation,
CommandInvokedEvent,
CompleteInvocationRequest,
CompletedStatus,
CreateAgentRequest,
CreateAgentResponse,
CreateChannelRequest,
CreateCommandRequest,
CreateCommandResponse,
CreateGroupDmRequest,
CreateSubscriptionRequest,
CreateSubscriptionResponse,
CreateWebhookRequest,
CreateWebhookResponse,
CreateWorkspaceResponse,
DeferDeliveryRequest,
Delivery,
DeliveryAcceptedEvent,
DeliveryDeferredEvent,
DeliveryDeliveredEvent,
DeliveryFailedEvent,
DeliveryItem,
DeliveryMessage,
DeliveryStatus,
DmConversationSummary,
DmReceivedEvent,
DmSendResponse,
EmitSessionEventRequest,
EventSubscription,
FailDeliveryRequest,
FailedStatus,
FileInfo,
FileListOptions,
FileUploadedEvent,
GroupDmConversationResponse,
GroupDmMessageResponse,
GroupDmParticipantRef,
GroupDmParticipantResponse,
GroupDmReceivedEvent,
InboxResponse,
InvokeActionRequest,
InvokeActionResult,
InvokeCommandRequest,
ListDeliveriesOptions,
ListSessionEventsQuery,
MemberJoinedEvent,
MemberLeftEvent,
MessageBlock,
MessageCreatedEvent,
MessageInjectionMode,
MessageListQuery,
MessageReadEvent,
MessageUpdatedEvent,
MessageWithMeta,
PostMessageRequest,
ReactionAddedEvent,
ReactionGroup,
ReactionRemovedEvent,
ReaderInfo,
RegisterActionRequest,
ReleaseAgentRequest,
ReleaseAgentResponse,
SearchOptions,
SendDmRequest,
SessionEvent,
SetSystemPromptRequest,
SpawnAgentRequest,
SpawnAgentResponse,
SystemPrompt,
ThreadReplyEvent,
ThreadReplyRequest,
ThreadResponse,
TokenRotateResponse,
UpdateAgentRequest,
UpdateChannelRequest,
UpdateWorkspaceRequest,
UploadRequest,
UploadResponse,
Webhook,
WebhookReceivedEvent,
WebhookTriggerRequest,
WebhookTriggerResponse,
Workspace,
WorkspaceDmConversation,
WorkspaceDmMessage,
WorkspaceStats,
WorkspaceStreamConfig,
WsEvent,
};
pub const SDK_VERSION: &str = env!("CARGO_PKG_VERSION");