Skip to main content

systemprompt_models/
lib.rs

1pub mod a2a;
2pub mod admin;
3pub mod agui;
4pub mod ai;
5pub mod api;
6pub mod artifacts;
7pub mod auth;
8pub mod bootstrap;
9pub mod config;
10pub mod content;
11pub mod content_config;
12pub mod errors;
13pub mod events;
14pub mod execution;
15pub mod extension;
16pub mod mcp;
17pub mod modules;
18pub mod oauth;
19pub mod paths;
20pub mod profile;
21pub mod profile_bootstrap;
22pub mod repository;
23pub mod routing;
24pub mod secrets;
25pub mod services;
26pub mod validators;
27
28pub use a2a::{
29    AgentAuthentication, AgentCapabilities, AgentCard, AgentCardBuilder, AgentCardSignature,
30    AgentExtension, AgentInterface, AgentProvider, AgentSkill, ApiKeyLocation,
31    Artifact as A2aArtifact, ArtifactMetadata, DataPart, FilePart, FileWithBytes,
32    McpServerMetadata, McpToolsParams, Message, MessageMetadata as A2aMessageMetadata,
33    MessageRole as A2aMessageRole, OAuth2Flow, OAuth2Flows, Part, SecurityScheme, Task,
34    TaskMetadata, TaskState, TaskStatus, TextPart, TransportProtocol,
35};
36pub use admin::{
37    ActivityTrend, AnalyticsData as AdminAnalyticsData, BotTrafficStats, BrowserBreakdown,
38    ContentStat, DeviceBreakdown, GeographicBreakdown, LogEntry as AdminLogEntry,
39    LogLevel as AdminLogLevel, RecentConversation, TrafficData as AdminTrafficData, UserInfo,
40    UserMetricsWithTrends,
41};
42pub use agui::{
43    AgUiEvent, AgUiEventBuilder, AgUiEventType, CustomPayload, GenericCustomPayload,
44    JsonPatchOperation, MessageRole as AgUiMessageRole, MessagesSnapshotPayload, RunErrorPayload,
45    RunFinishedPayload, RunStartedPayload, StateDeltaBuilder, StateDeltaPayload,
46    StateSnapshotPayload, StepFinishedPayload, StepStartedPayload, TextMessageContentPayload,
47    TextMessageEndPayload, TextMessageStartPayload, ToolCallArgsPayload, ToolCallEndPayload,
48    ToolCallResultPayload, ToolCallStartPayload,
49};
50pub use ai::{
51    is_supported_audio, is_supported_image, is_supported_media, is_supported_text,
52    is_supported_video, AiContentPart, AiMessage, AiProvider, AiRequest, AiRequestBuilder,
53    AiResponse, CallToolResult, DynAiProvider, McpTool, MessageRole, ModelConfig, ModelHint,
54    ModelPreferences, ProviderConfig, ResponseFormat, SamplingParams, SearchGroundedResponse,
55    StructuredOutputOptions, ToolCall, ToolExecution, ToolResultFormatter, SUPPORTED_AUDIO_TYPES,
56    SUPPORTED_IMAGE_TYPES, SUPPORTED_TEXT_TYPES, SUPPORTED_VIDEO_TYPES,
57};
58pub use api::{
59    AcceptedResponse, ApiError, ApiErrorExt, ApiQuery, ApiResponse, CheckoutEvent, CheckoutRequest,
60    CheckoutResponse, CloudApiError, CloudApiErrorDetail, CloudApiResponse, CloudCustomerInfo,
61    CloudListResponse, CloudLogEntry, CloudLogsResponse, CloudPlan, CloudPlanInfo,
62    CloudStatusResponse, CloudTenant, CloudTenantInfo, CloudTenantSecrets, CloudTenantStatus,
63    CloudTenantStatusResponse, CloudUserInfo, CollectionResponse, CreateContextRequest,
64    CreatedResponse, DeployResponse, DiscoveryResponse, ErrorCode, ErrorResponse,
65    ExternalDbAccessResponse, Link, ModuleInfo, PaginationInfo, PaginationParams,
66    ProvisioningEvent, ProvisioningEventType, RegistryToken, ResponseLinks, ResponseMeta,
67    SearchQuery, SetExternalDbAccessRequest, SetSecretsRequest, SingleResponse, SortOrder,
68    SortParams, SubscriptionStatus, SuccessResponse, UpdateContextRequest, UserContext,
69    UserContextWithStats, UserMeResponse, ValidationError,
70};
71pub use artifacts::{
72    Alignment, Artifact, ArtifactSchema, ArtifactType, AudioArtifact, AxisType, ChartArtifact,
73    ChartDataset, ChartType, CliArtifact, CliArtifactType, Column, ColumnType, CommandResultRaw,
74    ConversionError, ExecutionMetadata, ImageArtifact, RenderingHints,
75    SortOrder as ArtifactSortOrder, TableArtifact, TableHints, ToolResponse, VideoArtifact,
76};
77pub use auth::{
78    AuthError, AuthenticatedUser, BaseRole, BaseRoles, GrantType, PkceMethod, ResponseType,
79    BEARER_PREFIX,
80};
81pub use config::{Config, PathNotConfiguredError};
82pub use content::{ContentLink, IngestionReport};
83pub use content_config::{
84    ArticleDefaults, Category, ContentConfigError, ContentConfigErrors, ContentConfigRaw,
85    ContentRouting, ContentSourceConfigRaw, IndexingConfig, Metadata, OrganizationData,
86    ParentRoute, SitemapConfig, SourceBranding, StructuredData,
87};
88pub use errors::{CoreError, RepositoryError, ServiceError};
89pub use events::{
90    A2AEvent, A2AEventBuilder, A2AEventType, AnalyticsEvent, AnalyticsEventBuilder, ContextEvent,
91    ContextSummary, SystemEvent, SystemEventBuilder, SystemEventType,
92};
93pub use execution::{
94    ExecutionStep, PlannedTool, RequestContext, StepContent, StepId, StepStatus, StepType,
95    TrackedStep,
96};
97pub use extension::{
98    BuildType, DiscoveredExtension, Extension, ExtensionManifest, ExtensionType, ManifestRole,
99};
100pub use mcp::{
101    Deployment, DeploymentConfig, DynMcpDeploymentProvider, DynMcpRegistry, DynMcpToolProvider,
102    McpAuthState, McpDeploymentProvider, McpProvider, McpRegistry, McpServerConfig, McpServerState,
103    McpToolProvider, OAuthRequirement, RegistryConfig, Settings, ERROR as MCP_ERROR,
104    RUNNING as MCP_RUNNING, STARTING as MCP_STARTING, STOPPED as MCP_STOPPED,
105};
106pub use modules::{
107    ApiConfig, ApiPaths, CliPaths, Module, ModuleDefinition, ModulePermission, ModuleSchema,
108    ModuleSeed, ModuleType, Modules, ServiceCategory,
109};
110pub use oauth::{OAuthClientConfig, OAuthServerConfig};
111pub use paths::{
112    cloud_container, dir_names, file_names, AppPaths, BuildPaths, PathError, StoragePaths,
113    SystemPaths, WebPaths,
114};
115pub use profile::{
116    CloudConfig, CloudValidationMode, ContentNegotiationConfig,
117    DatabaseConfig as ProfileDatabaseConfig, Environment, ExtensionsConfig, LogLevel, OutputFormat,
118    PathsConfig, Profile, ProfileStyle, ProfileType, RateLimitsConfig, RuntimeConfig,
119    SecurityConfig, SecurityHeadersConfig, ServerConfig, SiteConfig,
120};
121pub use profile_bootstrap::{ProfileBootstrap, ProfileBootstrapError};
122pub use repository::{ServiceLifecycle, ServiceRecord, WhereClause};
123pub use routing::{ApiCategory, AssetType, RouteClassifier, RouteType};
124pub use secrets::{Secrets, SecretsBootstrap, SecretsBootstrapError};
125pub use services::{
126    AgentCardConfig, AgentConfig, AgentMetadataConfig, AgentProviderInfo, AiConfig,
127    AiProviderConfig, CapabilitiesConfig, HistoryConfig, IncludableString, JobConfig, McpConfig,
128    OAuthConfig as AgentOAuthConfig, PartialServicesConfig, RuntimeStatus, SamplingConfig,
129    SchedulerConfig, ServiceType, ServicesConfig, Settings as ServicesSettings, SkillConfig,
130    SkillsConfig, ToolModelConfig, ToolModelSettings, WebConfig,
131};
132pub use systemprompt_identifiers::{AgentId, ContextId, SessionId, TaskId, TraceId, UserId};
133
134pub use systemprompt_provider_contracts::{
135    AnimationConfig, BrandingConfig as WebBrandingConfig, CardConfig, ColorsConfig, FontsConfig,
136    LayoutConfig, LogoConfig, MobileConfig, PathsConfig as WebPathsConfig, RadiusConfig,
137    ScriptConfig, ShadowsConfig, SpacingConfig, TouchTargetsConfig, TypographyConfig,
138    WebConfig as FullWebConfig, WebConfigError, ZIndexConfig,
139};
140pub use systemprompt_traits::{
141    StartupValidationError, StartupValidationReport, ValidationReport, ValidationWarning,
142};