#![warn(missing_docs)]
#![warn(clippy::all)]
#![forbid(unsafe_code)]
mod builder;
mod client;
mod common;
mod error;
mod pagination;
mod query;
mod resources;
mod token;
#[cfg(test)]
mod decode_tests;
#[cfg(test)]
mod http_tests;
#[cfg(test)]
mod test_support;
pub use builder::{ClientBuilder, TokenOptions};
pub use client::{Api, Client, Expect, RawRequest, DEFAULT_BASE_URL, VERSION};
pub use common::{
CompositionConfig, CompositionQuality, LayoutConfig, LayoutPriority, LayoutType,
MessageResponse, OnFailureConfig, Orientation, ParticipantFileFormat, RecordingFile,
RecordingFileFormat, Region, ResourceLinks, SummaryConfig, Theme, TrackFileFormat, TrackKind,
TranscriptionConfig, WebhookDelivery, WebhookDeliverySummary,
};
pub use error::{ApiError, Error, ErrorKind, Result};
pub use pagination::{ListParams, Page, PageInfo};
pub use token::{
decode_token, generate_token, parse_expires_in, verify_token, AccessTokenBuilder,
GenerateTokenParams, Grant, TokenClaims, DEFAULT_TOKEN_TTL,
};
pub use resources::agents::{
AgentComputeProfile, AgentDeployment, AgentDeploymentResource, AgentDeploymentVersion,
AgentImage, AgentInitConfig, AgentLogEntry, AgentRoomOptions, AgentScaling, AgentsResource,
DeployAgentParams, DeployImage, DeployedAgent, DispatchAgentParams, DispatchResult,
GeneralDispatchAgentParams, ListDeploymentLogsParams, ListDeploymentsParams,
};
pub use resources::alert_rules::{
AbsentDataAlert, AlertConditionOperator, AlertDomain, AlertMatchType, AlertReduceTo, AlertRule,
AlertRuleCondition, AlertRuleConfig, AlertRuleEvaluation, AlertRuleFilter, AlertRuleGroupBy,
AlertRuleHaving, AlertRuleQuery, AlertRuleStatus, AlertRulesResource, AlertSeverity,
CreateAlertRuleParams, ListAlertRulesParams, UpdateAlertRuleParams,
};
pub use resources::batch_calls::{
BatchCall, BatchCallCancelMode, BatchCallRecord, BatchCallRecordsResource,
BatchCallRetryConfig, BatchCallRetryStatus, BatchCallStats, BatchCallStatus, BatchCallTiming,
BatchCallWebhookConfig, BatchCallWebhookEvent, BatchCallsResource, CreateBatchCallParams,
DeleteRecordsResult, ExportBatchCallRecordsParams, ListBatchCallRecordsParams,
ListBatchCallsParams, UpdateBatchCallParams, UpdateBatchCallRecordParams,
UploadBatchCallParams,
};
pub use resources::connectors::{
Connector, ConnectorProvider, ConnectorsResource, CreateConnectorParams,
};
pub use resources::egress::{Composition, CompositionLayout, EgressHandle, EgressType, StopTarget};
pub use resources::hls::{
HlsCaptureFormat, HlsCaptureParams, HlsCaptureResult, HlsListParams, HlsResource,
HlsStartParams, HlsStream,
};
pub use resources::ingress::{
CreateSocketIngressParams, CreateWhepParams, CreateWhipParams, SocketIngress,
SocketIngressAgent, SocketIngressResource, WhepPlayback, WhepResource, WhepSource, WhipIngress,
WhipResource,
};
pub use resources::participants::ParticipantsResource;
pub use resources::recordings::{
CompositeParticipantSelector, CompositeRecording, CompositeRecordingListParams,
CompositeRecordingStartParams, CompositeWatermark, IndividualRecording,
IndividualRecordingListParams, MergeChannel, MergeChannelEntry, MergeRecording,
MergeRecordingCreateParams, MergeRecordingListParams, MergeRecordingResource,
MergeRecordingResult, ParticipantRecordingStartParams, Recording, RecordingCompositeResource,
RecordingGetParams, RecordingListParams, RecordingParticipantResource, RecordingStartParams,
RecordingTrackResource, RecordingsResource, TrackRecordingStartParams,
};
pub use resources::resource_pool::{
AcquireResourceParams, ComposerType, ListResourcesParams, ReleaseResourceResult, ResourceMode,
ResourcePoolResource, ResourceQuality, ResourceStatus, ResourceUnit,
};
pub use resources::rooms::{
AutoCloseConfig, AutoCloseConfigInput, AutoCloseType, AutoStartConfig, MultiComposition, Room,
RoomCreateParams, RoomListParams, RoomValidation, RoomWebhook, RoomWebhookInput, RoomsResource,
};
pub use resources::rtmp::{Livestream, RtmpListParams, RtmpResource, RtmpStartParams, RtmpStream};
pub use resources::sessions::{
Participant, ParticipantTimelog, QualityStats, Session, SessionEndParams, SessionListParams,
SessionRemoveParticipantParams, SessionStatus, SessionsResource,
};
pub use resources::sip::{
CreateInboundTrunkParams, CreateOutboundTrunkParams, CreatePhoneNumbersParams,
CreateRoutingRuleParams, CreateSipCallParams, CreateSipWebhookParams, InboundTrunkResource,
OutboundTrunkResource, PhoneNumberInboundConfig, PhoneNumberInfo, PhoneNumberListParams,
PhoneNumberOutboundConfig, PhoneNumberWithGateways, PhoneNumbersResource, RoutingRuleTarget,
SipAuth, SipCall, SipCallListParams, SipCallStatus, SipCallsResource, SipDirection,
SipIncludeHeaders, SipMediaEncryption, SipRegion, SipResource, SipRoomConfig, SipRoomPrefix,
SipRoomType, SipRoutingRule, SipRoutingRuleListParams, SipRoutingRulesResource, SipTransport,
SipTrunk, SipTrunkListParams, SipTrunksResource, SipWebhook, SipWebhookEvent,
SipWebhookListParams, SipWebhooksResource, SwitchRoomParams, TransferSipCallParams,
UpdateInboundTrunkParams, UpdateOutboundTrunkParams, UpdatePhoneNumberGatewayParams,
UpdateRoutingRuleParams,
};
pub use resources::transcodings::{
HlsToMp4Params, ListTranscodingsParams, MeetingRecordingMergeParams, MeetingRecordingRef,
MergeTranscodingParams, Transcoding, TranscodingFile, TranscodingStatus, TranscodingStorage,
TranscodingTask, TranscodingWatermark, TranscodingsResource,
};
pub use resources::transcription::{
ListRealtimeTranscriptionsParams, RealtimeSummaryConfig, RealtimeTranscription,
RealtimeTranscriptionExtension, RealtimeTranscriptionExtensionConfig,
RealtimeTranscriptionResource, StartRealtimeTranscriptionParams, TranscriptionResource,
};
pub use reqwest::Method;
pub use serde_json::Value;