Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/wavekat-platform-client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -382,15 +382,15 @@ fn truncate(s: &str, n: usize) -> &str {
}

#[cfg(test)]
mod tests {
pub(crate) mod tests {
use super::*;

/// A one-shot HTTP/1.1 server on an ephemeral port. Returns its base
/// URL; the thread answers exactly one request with `status` and
/// `body`, then exits. `std::net` rather than `tokio::net` because the
/// dev-dependency carries no `net` feature — the same reason
/// `oauth.rs` binds its redirect listener synchronously.
fn one_shot_server(status: &str, body: &'static str) -> String {
pub(crate) fn one_shot_server(status: &str, body: &'static str) -> String {
use std::io::{Read, Write};
use std::net::TcpListener;

Expand Down
6 changes: 6 additions & 0 deletions crates/wavekat-platform-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ mod sign;
mod sync;
mod token;
mod voice;
mod voice_tasks;

pub use client::Client;
pub use error::{Error, Result};
Expand All @@ -68,3 +69,8 @@ pub use voice::{
VoiceSystemFlowRecord, VoiceSystemFlowsPage, VoiceTranscriptChannel, VoiceTranscriptRecord,
VoiceTranscripts, VoiceTranscriptsQuery, VoiceTransport, USAGE_EVENTS_MAX_BATCH,
};
pub use voice_tasks::{
TaskClaim, VoiceTaskAttemptRecord, VoiceTaskAttempts, VoiceTaskAttemptsQuery,
VoiceTaskBatchRecord, VoiceTaskBatchesPage, VoiceTaskBatchesQuery, VoiceTaskCounts,
VoiceTaskOutcomeField, VoiceTaskRecord,
};
Loading
Loading