1#![doc = include_str!("../README.md")]
2#![forbid(unsafe_code)]
3#![recursion_limit = "256"]
4
5mod account;
6mod announcements;
7mod attribution;
8mod auth;
9mod chat;
10mod client;
11mod error;
12mod event;
13mod projects;
14mod replay;
15mod retry_after;
16mod stats;
17mod transport;
18mod utils;
19mod workflows;
20
21pub use account::{AccountApi, CurrentAccount};
22pub use announcements::AnnouncementsApi;
23pub use attribution::{
24 Attribution, ConnectionAttribution, ExecutionMode, InteractionKind, OperationScope,
25 WorkloadAttribution, WorkloadKind,
26};
27pub use auth::{AuthBackup, AuthKind};
28pub use chat::{
29 BackboneModelOptions, BackboneModelSelectionReason, ChatApi, ChatAutoToolCancellation,
30 ChatAutoToolOptions, ChatChunk, ChatCompletion, ChatStream, ChatToolCall,
31 ChatToolExecutionResult, ChatToolFunction, ChatToolHistoryEntry, HOSTED_TOOL_NAMES,
32 HostedTools, SelectedBackboneModel, VideoDefaults, filter_video_models_by_workflow,
33 get_video_defaults, is_edit_image_model, is_sogni_tool_call, parse_tool_call_arguments,
34 resolve_hosted_tool_model_selector, select_backbone_model,
35};
36pub use client::{ClientBuilder, ClientConfig, Network, SogniClient};
37pub use error::{
38 ApiError, ChatError, Error, ProjectError, RETRYABLE_CHAT_ERROR_TYPES, Result,
39 SUBSCRIPTION_ERROR_CODES, is_retryable_chat_error, is_subscription_limit_error,
40};
41pub use event::{Event, EventReceiver};
42pub use projects::{
43 ACTIVE_PROJECTS_RECOVERED_EVENT, AssetRole, COMPLETED_PROJECTS_RECOVERED_EVENT, CostEstimate,
44 Job, JobModelPhaseStep, JobPreparation, JobProvenance, JobSnapshot, JobStatus, MediaSource,
45 ModelOptions, PROJECT_LOST_ORIGINAL_CODE, Pixal3dGenerationOptions, Pixal3dTemplateVariant,
46 PresignedPost, Project, ProjectRequest, ProjectResolution, ProjectSnapshot, ProjectStatus,
47 ProjectSubmissionError, ProjectsApi, ResolveMissingOptions, ReusableUploads, Sam3ImagePrompt,
48 Sam3PointLabel, Sam3PromptBox, Sam3PromptPoint, Sam3Selection, SavedUpload, SavedUploadBinding,
49 SubmissionPhase, WorldGenerationReceiptRequest, is_project_lost_error, is_project_lost_payload,
50};
51pub use replay::{ReplayApi, ReplayGetResult, ReplayWriteResult};
52pub use stats::StatsApi;
53pub use transport::{ApiClient, RestClient, SseEvent, SseStream};
54pub use utils::{
55 BIREFNET_BACKGROUND_REMOVAL_MODEL_ID, FLASHVSR_VIDEO_UPSCALE_MODEL_ID, LTX2_FRAME_STEP,
56 MINIMAX_H3_BASE_FRAMES, MINIMAX_H3_DIMENSION_STEP, MINIMAX_H3_FASTH3_A2V_MODEL_ID,
57 MINIMAX_H3_FASTH3_FLFA2V_MODEL_ID, MINIMAX_H3_FASTH3_IA2V_MODEL_ID, MINIMAX_H3_FPS,
58 MINIMAX_H3_FRAME_STEP, MINIMAX_H3_MAX_DIMENSION, MINIMAX_H3_MAX_DURATION,
59 MINIMAX_H3_MAX_FRAMES, MINIMAX_H3_MAX_PIXELS, MINIMAX_H3_MIN_DURATION, MINIMAX_H3_MIN_FRAMES,
60 PIXAL3D_IMAGE_TO_3D_MODEL_ID, PIXAL3D_MULTIVIEW_IMAGE_TO_3D_MODEL_ID, PIXAL3D_ORBIT_VIEW_SLOTS,
61 SAM3_IMAGE_SEGMENT_MODEL_ID, calculate_video_frames, detect_content_type,
62 get_minimax_h3_frames_for_audio_duration, get_video_workflow_type, is_audio_model,
63 is_external_video_model, is_gpt_image_model, is_happyhorse_model, is_ltx_model,
64 is_minimax_h3_audio_guide_model, is_minimax_h3_balanced_model, is_minimax_h3_model,
65 is_minimax_h3_reference_model, is_minimax_h3_turbo_model, is_model_artifact_model,
66 is_pixal3d_model, is_pixal3d_multi_view_model, is_seedance_model, is_seedance25_model,
67 is_segmentation_model, is_speech_model, is_video_model, is_video_upscale_model, is_wan_model,
68 is_wan3_enhanced_model, is_wan3_model, new_id, parse_sse_chunk, requires_starting_image,
69};
70pub use workflows::{
71 CREATIVE_WORKFLOW_WAITING_REASONS, CreativeWorkflowTemplatesApi, CreativeWorkflowsApi,
72 ReseedWorkflowMetadata, ReseedWorkflowResult, ResumeWorkflowResult, WorkflowBillingOptions,
73 WorkflowStart, WorkflowTemplatePage,
74};
75
76pub const VERSION: &str = env!("CARGO_PKG_VERSION");