systemprompt-models 0.1.22

Shared data models and types for systemprompt.io OS
Documentation
pub mod macros;

pub mod a2a;
pub mod admin;
pub mod agui;
pub mod ai;
pub mod api;
pub mod artifacts;
pub mod auth;
pub mod bootstrap;
pub mod config;
pub mod content;
pub mod content_config;
pub mod errors;
pub mod events;
pub mod execution;
pub mod extension;
pub mod mcp;
pub mod modules;
pub mod oauth;
pub mod paths;
pub mod profile;
pub mod profile_bootstrap;
pub mod repository;
pub mod routing;
pub mod secrets;
pub mod secrets_bootstrap;
pub mod services;
pub mod text;
pub mod time_format;
pub mod validators;

pub use a2a::{
    AgentAuthentication, AgentCapabilities, AgentCard, AgentCardBuilder, AgentCardSignature,
    AgentExtension, AgentInterface, AgentProvider, AgentSkill, ApiKeyLocation,
    Artifact as A2aArtifact, ArtifactMetadata, DataPart, FileContent, FilePart,
    McpServerMetadata, McpToolsParams, Message, MessageMetadata as A2aMessageMetadata,
    MessageRole as A2aMessageRole, OAuth2Flow, OAuth2Flows, Part, ProtocolBinding, SecurityScheme,
    Task, TaskMetadata, TaskState, TaskStatus, TextPart, TransportProtocol,
};
pub use admin::{
    ActivityTrend, AnalyticsData as AdminAnalyticsData, BotTrafficStats, BrowserBreakdown,
    ContentStat, DeviceBreakdown, GeographicBreakdown, LogEntry as AdminLogEntry,
    LogLevel as AdminLogLevel, RecentConversation, TrafficData as AdminTrafficData, UserInfo,
    UserMetricsWithTrends,
};
pub use agui::{
    AgUiEvent, AgUiEventBuilder, AgUiEventType, CustomPayload, GenericCustomPayload,
    JsonPatchOperation, MessageRole as AgUiMessageRole, MessagesSnapshotPayload, RunErrorPayload,
    RunFinishedPayload, RunStartedPayload, StateDeltaBuilder, StateDeltaPayload,
    StateSnapshotPayload, StepFinishedPayload, StepStartedPayload, TextMessageContentPayload,
    TextMessageEndPayload, TextMessageStartPayload, ToolCallArgsPayload, ToolCallEndPayload,
    ToolCallResultPayload, ToolCallStartPayload,
};
pub use ai::{
    AiContentPart, AiMessage, AiProvider, AiRequest, AiRequestBuilder, AiResponse, CallToolResult,
    DynAiProvider, McpTool, MessageRole, ModelConfig, ModelHint, ModelPreferences, ProviderConfig,
    ResponseFormat, SUPPORTED_AUDIO_TYPES, SUPPORTED_IMAGE_TYPES, SUPPORTED_TEXT_TYPES,
    SUPPORTED_VIDEO_TYPES, SamplingParams, SearchGroundedResponse, StreamChunk,
    StructuredOutputOptions, ToolCall, ToolExecution, ToolResultFormatter, is_supported_audio,
    is_supported_image, is_supported_media, is_supported_text, is_supported_video,
};
pub use api::{
    AcceptedResponse, ApiError, ApiErrorExt, ApiQuery, ApiResponse, CheckoutEvent, CheckoutRequest,
    CheckoutResponse, CloudApiError, CloudApiErrorDetail, CloudApiResponse, CloudCustomerInfo,
    CloudListResponse, CloudLogEntry, CloudLogsResponse, CloudPlan, CloudPlanInfo,
    CloudStatusResponse, CloudTenant, CloudTenantInfo, CloudTenantSecrets, CloudTenantStatus,
    CloudTenantStatusResponse, CloudUserInfo, CollectionResponse, CreateContextRequest,
    CreatedResponse, DeployResponse, DiscoveryResponse, ErrorCode, ErrorResponse,
    ExternalDbAccessResponse, Link, ModuleInfo, PaginationInfo, PaginationParams,
    ProvisioningEvent, ProvisioningEventType, RegistryToken, ResponseLinks, ResponseMeta,
    SearchQuery, SetExternalDbAccessRequest, SetSecretsRequest, SingleResponse, SortOrder,
    SortParams, SubscriptionStatus, SuccessResponse, UpdateContextRequest, UserContext,
    UserContextWithStats, UserMeResponse, ValidationError,
};
pub use artifacts::{
    Alignment, Artifact, ArtifactSchema, ArtifactType, AudioArtifact, AxisType, ChartArtifact,
    ChartDataset, ChartType, CliArtifact, CliArtifactType, Column, ColumnType, CommandResultRaw,
    ConversionError, ExecutionMetadata, ImageArtifact, RenderingHints,
    SortOrder as ArtifactSortOrder, TableArtifact, TableHints, ToolResponse, VideoArtifact,
};
pub use auth::{
    AuthError, AuthenticatedUser, BEARER_PREFIX, BaseRole, BaseRoles, GrantType, PkceMethod,
    ResponseType,
};
pub use config::{Config, PathNotConfiguredError};
pub use content::{ContentLink, IngestionReport};
pub use content_config::{
    ArticleDefaults, Category, ContentConfigError, ContentConfigErrors, ContentConfigRaw,
    ContentRouting, ContentSourceConfigRaw, IndexingConfig, Metadata, OrganizationData,
    ParentRoute, SitemapConfig, SourceBranding, StructuredData,
};
pub use errors::{CoreError, RepositoryError, ServiceError};
pub use events::{
    A2AEvent, A2AEventBuilder, A2AEventType, AnalyticsEvent, AnalyticsEventBuilder, ContextEvent,
    ContextSummary, SystemEvent, SystemEventBuilder, SystemEventType,
};
pub use execution::{
    ExecutionStep, PlannedTool, RequestContext, StepContent, StepId, StepStatus, StepType,
    TrackedStep,
};
pub use extension::{
    BuildType, DiscoveredExtension, Extension, ExtensionManifest, ExtensionType, ManifestRole,
};
pub use mcp::{
    Deployment, DeploymentConfig, DynMcpDeploymentProvider, DynMcpRegistry, DynMcpToolProvider,
    ERROR as MCP_ERROR, McpAuthState, McpDeploymentProvider, McpProvider, McpRegistry,
    McpServerConfig, McpServerState, McpToolProvider, OAuthRequirement, RUNNING as MCP_RUNNING,
    RegistryConfig, STARTING as MCP_STARTING, STOPPED as MCP_STOPPED, Settings,
};
pub use modules::{
    ApiConfig, ApiPaths, CliPaths, Module, ModuleDefinition, ModulePermission, ModuleSchema,
    ModuleSeed, ModuleType, Modules, ServiceCategory,
};
pub use oauth::{OAuthClientConfig, OAuthServerConfig};
pub use paths::{
    AppPaths, BuildPaths, PathError, StoragePaths, SystemPaths, WebPaths, cloud_container,
    dir_names, file_names,
};
pub use profile::{
    CloudConfig, CloudValidationMode, ContentNegotiationConfig,
    DatabaseConfig as ProfileDatabaseConfig, Environment, ExtensionsConfig, LogLevel, OutputFormat,
    PathsConfig, Profile, ProfileStyle, ProfileType, RateLimitsConfig, RuntimeConfig,
    SecurityConfig, SecurityHeadersConfig, ServerConfig, SiteConfig,
};
pub use profile_bootstrap::{ProfileBootstrap, ProfileBootstrapError};
pub use repository::{ServiceLifecycle, ServiceRecord, WhereClause};
pub use routing::{ApiCategory, AssetType, RouteClassifier, RouteType};
pub use secrets::Secrets;
pub use secrets_bootstrap::*;
pub use services::{
    AGENT_CONFIG_FILENAME, AgentCardConfig, AgentConfig, AgentMetadataConfig, AgentProviderInfo,
    AiConfig, AiProviderConfig, CapabilitiesConfig, ComponentFilter, ComponentSource,
    DEFAULT_AGENT_SYSTEM_PROMPT_FILE, DEFAULT_SKILL_CONTENT_FILE, DiskAgentConfig, DiskHookConfig,
    DiskSkillConfig, HOOK_CONFIG_FILENAME, HistoryConfig, HookAction, HookCategory, HookEvent,
    HookEventsConfig, HookMatcher, HookType, IncludableString, JobConfig, McpConfig,
    OAuthConfig as AgentOAuthConfig, PartialServicesConfig, PluginAuthor, PluginComponentRef,
    PluginConfig, PluginConfigFile, PluginScript, PluginVariableDef, RuntimeStatus,
    SKILL_CONFIG_FILENAME, SamplingConfig, SchedulerConfig, ServiceType, ServicesConfig,
    Settings as ServicesSettings, SkillConfig, SkillsConfig, ToolModelConfig, ToolModelSettings,
    WebConfig, strip_frontmatter,
};
pub use systemprompt_identifiers::{AgentId, ContextId, SessionId, TaskId, TraceId, UserId};

pub use systemprompt_provider_contracts::{
    AnimationConfig, BrandingConfig as WebBrandingConfig, CardConfig, ColorsConfig, FontsConfig,
    LayoutConfig, LogoConfig, MobileConfig, PathsConfig as WebPathsConfig, RadiusConfig,
    ScriptConfig, ShadowsConfig, SpacingConfig, TouchTargetsConfig, TypographyConfig,
    WebConfig as FullWebConfig, WebConfigError, ZIndexConfig,
};
pub use systemprompt_traits::{
    StartupValidationError, StartupValidationReport, ValidationReport, ValidationWarning,
};