@lumavox/server 0.34.0 → 0.40.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -60,7 +60,7 @@ list's page.
60
60
 
61
61
  | Resource | Methods |
62
62
  |---|---|
63
- | `endUsers` | `create`, `get`, `update`, `delete`, `list`, `page`, `export`, `toolResult`; `facts.list`, `facts.add`, `facts.update`, `facts.delete`; `memories.list`, `memories.page`, `memories.get`, `memories.delete`, `memories.deleteAll`; `personalization.get`, `personalization.update`, `note` |
63
+ | `endUsers` | `create`, `get`, `update`, `delete`, `list`, `page`, `export`, `toolResult`; `facts.list`, `facts.add`, `facts.update`, `facts.delete`; `memories.list`, `memories.page`, `memories.get`, `memories.delete`, `memories.deleteAll`; `personalization.get`, `personalization.update`, `note`; `scheduledMessages.create`, `scheduledMessages.list`, `scheduledMessages.get`, `scheduledMessages.cancel` |
64
64
  | `ephemeralKeys` | `limits`, `create`, `revoke`, `inspect`, `list`, `page` |
65
65
  | `images`, `videos`, `audio`, `skybox`, `transcriptions` | `create`, `get`, `wait`, `generate`; `images.draftLayout`, `images.findElements`; `skybox.styles` |
66
66
  | `generations` | `get`, `wait`, `list`, `page` |
@@ -1 +1 @@
1
- export type { AgentCreateRequest, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentReportField, AgentReportFieldInfo, AgentSettingsInfo, AgentSettingsUpdate, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVoice, AgentVoiceInfo, ApiKeySelf, AssetBulkRequest, AssetDetail, AssetMoveRequest, AssetPage, AssetsAffected, AssetSummary, AssetUpdate, AssignedAgent, AudioRequest, BulkEditKnowledgeData, BulkEditKnowledgeError, BulkEditKnowledgeErrors, BulkEditKnowledgeResponse, BulkEditKnowledgeResponses, ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, ConfirmAssetUploadData, ConfirmAssetUploadError, ConfirmAssetUploadErrors, ConfirmAssetUploadResponse, ConfirmAssetUploadResponses, ConversationReport, ConversationReportPage, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentResponse, CreateAgentResponses, CreateAssetFolderData, CreateAssetFolderError, CreateAssetFolderErrors, CreateAssetFolderResponse, CreateAssetFolderResponses, CreateAssetUploadUrlData, CreateAssetUploadUrlError, CreateAssetUploadUrlErrors, CreateAssetUploadUrlResponse, CreateAssetUploadUrlResponses, CreateAudioData, CreateAudioError, CreateAudioErrors, CreateAudioResponse, CreateAudioResponses, CreateEndUserData, CreateEndUserError, CreateEndUserErrors, CreateEndUserFactData, CreateEndUserFactError, CreateEndUserFactErrors, CreateEndUserFactResponse, CreateEndUserFactResponses, CreateEndUserNoteData, CreateEndUserNoteError, CreateEndUserNoteErrors, CreateEndUserNoteResponse, CreateEndUserNoteResponses, CreateEndUserResponse, CreateEndUserResponses, CreateEphemeralKeyData, CreateEphemeralKeyError, CreateEphemeralKeyErrors, CreateEphemeralKeyResponse, CreateEphemeralKeyResponses, CreateFactData, CreateFactError, CreateFactErrors, CreateFactResponse, CreateFactResponses, CreateImageData, CreateImageError, CreateImageErrors, CreateImageResponse, CreateImageResponses, CreateKnowledgeData, CreateKnowledgeError, CreateKnowledgeErrors, CreateKnowledgeFromFileData, CreateKnowledgeFromFileError, CreateKnowledgeFromFileErrors, CreateKnowledgeFromFileResponse, CreateKnowledgeFromFileResponses, CreateKnowledgeFromUrlData, CreateKnowledgeFromUrlError, CreateKnowledgeFromUrlErrors, CreateKnowledgeFromUrlResponse, CreateKnowledgeFromUrlResponses, CreateKnowledgeResponse, CreateKnowledgeResponses, CreateKnowledgeUploadUrlData, CreateKnowledgeUploadUrlError, CreateKnowledgeUploadUrlErrors, CreateKnowledgeUploadUrlResponse, CreateKnowledgeUploadUrlResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSkyboxData, CreateSkyboxError, CreateSkyboxErrors, CreateSkyboxResponse, CreateSkyboxResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolResponse, CreateToolResponses, CreateTranscriptionData, CreateTranscriptionError, CreateTranscriptionErrors, CreateTranscriptionResponse, CreateTranscriptionResponses, CreateVideoData, CreateVideoError, CreateVideoErrors, CreateVideoResponse, CreateVideoResponses, CreateVoiceData, CreateVoiceError, CreateVoiceErrors, CreateVoiceResponse, CreateVoiceResponses, CreateVoiceUploadUrlData, CreateVoiceUploadUrlError, CreateVoiceUploadUrlErrors, CreateVoiceUploadUrlResponse, CreateVoiceUploadUrlResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAllEndUserMemoriesData, DeleteAllEndUserMemoriesError, DeleteAllEndUserMemoriesErrors, DeleteAllEndUserMemoriesResponse, DeleteAllEndUserMemoriesResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteAllMemoriesData, DeleteAllMemoriesError, DeleteAllMemoriesErrors, DeleteAllMemoriesResponse, DeleteAllMemoriesResponses, DeleteAssetData, DeleteAssetError, DeleteAssetErrors, DeleteAssetFolderData, DeleteAssetFolderError, DeleteAssetFolderErrors, DeleteAssetFolderResponse, DeleteAssetFolderResponses, DeleteAssetResponse, DeleteAssetResponses, DeleteAssetsData, DeleteAssetsError, DeleteAssetsErrors, DeleteAssetsResponse, DeleteAssetsResponses, DeleteEndUserData, DeleteEndUserError, DeleteEndUserErrors, DeleteEndUserFactData, DeleteEndUserFactError, DeleteEndUserFactErrors, DeleteEndUserFactResponse, DeleteEndUserFactResponses, DeleteEndUserMemoryData, DeleteEndUserMemoryError, DeleteEndUserMemoryErrors, DeleteEndUserMemoryResponse, DeleteEndUserMemoryResponses, DeleteEndUserResponse, DeleteEndUserResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteKnowledgeData, DeleteKnowledgeError, DeleteKnowledgeErrors, DeleteKnowledgeResponse, DeleteKnowledgeResponses, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteVoiceData, DeleteVoiceError, DeleteVoiceErrors, DeleteVoiceResponse, DeleteVoiceResponses, DesignVoiceData, DesignVoiceError, DesignVoiceErrors, DesignVoiceResponse, DesignVoiceResponses, DraftLayoutData, DraftLayoutError, DraftLayoutErrors, DraftLayoutResponse, DraftLayoutResponses, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserUpdateRequest, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EphemeralKeyInfo, EphemeralKeyLimits, EphemeralKeyOverrides, EphemeralKeyPage, EphemeralTokenSelf, ErrorCode, ErrorInfo, ErrorResponse, ExtractSessionFactsData, ExtractSessionFactsError, ExtractSessionFactsErrors, ExtractSessionFactsResponse, ExtractSessionFactsResponses, FactCreateRequest, FactInfo, FactPage, FactsDeleted, FactsReadInfo, FactUpdateRequest, FindLayoutElementsData, FindLayoutElementsError, FindLayoutElementsErrors, FindLayoutElementsResponse, FindLayoutElementsResponses, FolderCreate, FolderDeleted, FolderDetail, FolderPage, FolderSummary, FolderUpdate, GenerateFromTemplateData, GenerateFromTemplateError, GenerateFromTemplateErrors, GenerateFromTemplateResponse, GenerateFromTemplateResponses, GenerationAudio, GenerationImage, GenerationInfo, GenerationPage, GenerationSkybox, GenerationTranscript, GenerationVideo, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetAgentSettingsData, GetAgentSettingsError, GetAgentSettingsErrors, GetAgentSettingsResponse, GetAgentSettingsResponses, GetAssetData, GetAssetError, GetAssetErrors, GetAssetFolderData, GetAssetFolderError, GetAssetFolderErrors, GetAssetFolderResponse, GetAssetFolderResponses, GetAssetResponse, GetAssetResponses, GetAudioData, GetAudioError, GetAudioErrors, GetAudioResponse, GetAudioResponses, GetEndUserData, GetEndUserError, GetEndUserErrors, GetEndUserMemoryData, GetEndUserMemoryError, GetEndUserMemoryErrors, GetEndUserMemoryResponse, GetEndUserMemoryResponses, GetEndUserPersonalizationData, GetEndUserPersonalizationError, GetEndUserPersonalizationErrors, GetEndUserPersonalizationResponse, GetEndUserPersonalizationResponses, GetEndUserReportData, GetEndUserReportError, GetEndUserReportErrors, GetEndUserReportResponse, GetEndUserReportResponses, GetEndUserResponse, GetEndUserResponses, GetEphemeralKeyData, GetEphemeralKeyError, GetEphemeralKeyErrors, GetEphemeralKeyLimitsData, GetEphemeralKeyLimitsError, GetEphemeralKeyLimitsErrors, GetEphemeralKeyLimitsResponse, GetEphemeralKeyLimitsResponses, GetEphemeralKeyResponse, GetEphemeralKeyResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetHealthData, GetHealthResponse, GetHealthResponses, GetImageData, GetImageError, GetImageErrors, GetImageResponse, GetImageResponses, GetKnowledgeData, GetKnowledgeError, GetKnowledgeErrors, GetKnowledgeInsightsData, GetKnowledgeInsightsError, GetKnowledgeInsightsErrors, GetKnowledgeInsightsResponse, GetKnowledgeInsightsResponses, GetKnowledgeResponse, GetKnowledgeResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetPlatformLimitsData, GetPlatformLimitsResponse, GetPlatformLimitsResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSkyboxData, GetSkyboxError, GetSkyboxErrors, GetSkyboxResponse, GetSkyboxResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateFileData, GetTemplateFileError, GetTemplateFileErrors, GetTemplateFileResponses, GetTemplateResponse, GetTemplateResponses, GetTokenData, GetTokenError, GetTokenErrors, GetTokenResponse, GetTokenResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTranscriptionData, GetTranscriptionError, GetTranscriptionErrors, GetTranscriptionResponse, GetTranscriptionResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetVideoData, GetVideoError, GetVideoErrors, GetVideoResponse, GetVideoResponses, GetVoiceData, GetVoiceError, GetVoiceErrors, GetVoiceResponse, GetVoiceResponses, HealthResponse, ImageRequest, KnowledgeAgentsUpdate, KnowledgeAssigned, KnowledgeBulk, KnowledgeBulkResult, KnowledgeCategoryPage, KnowledgeCitation, KnowledgeCreate, KnowledgeEntryUsage, KnowledgeFileCreate, KnowledgeInfo, KnowledgeInsights, KnowledgeLookupInfo, KnowledgePage, KnowledgeSearchHit, KnowledgeSearchRequest, KnowledgeSearchResult, KnowledgeUpdate, KnowledgeUploadRequest, KnowledgeUploadTicket, KnowledgeUrlCreate, LayoutDraft, LayoutDraftRequest, LayoutElement, LayoutElementInfo, LayoutFindRequest, LayoutFound, LayoutSourceInfo, ListAgentKnowledgeData, ListAgentKnowledgeError, ListAgentKnowledgeErrors, ListAgentKnowledgeResponse, ListAgentKnowledgeResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAgentToolsData, ListAgentToolsError, ListAgentToolsErrors, ListAgentToolsResponse, ListAgentToolsResponses, ListAssetFoldersData, ListAssetFoldersError, ListAssetFoldersErrors, ListAssetFoldersResponse, ListAssetFoldersResponses, ListAssetsData, ListAssetsError, ListAssetsErrors, ListAssetsResponse, ListAssetsResponses, ListEndUserFactsData, ListEndUserFactsError, ListEndUserFactsErrors, ListEndUserFactsResponse, ListEndUserFactsResponses, ListEndUserMemoriesData, ListEndUserMemoriesError, ListEndUserMemoriesErrors, ListEndUserMemoriesResponse, ListEndUserMemoriesResponses, ListEndUserReportsData, ListEndUserReportsError, ListEndUserReportsErrors, ListEndUserReportsResponse, ListEndUserReportsResponses, ListEndUsersData, ListEndUsersError, ListEndUsersErrors, ListEndUsersResponse, ListEndUsersResponses, ListEphemeralKeysData, ListEphemeralKeysError, ListEphemeralKeysErrors, ListEphemeralKeysResponse, ListEphemeralKeysResponses, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListKnowledgeCategoriesData, ListKnowledgeCategoriesError, ListKnowledgeCategoriesErrors, ListKnowledgeCategoriesResponse, ListKnowledgeCategoriesResponses, ListKnowledgeData, ListKnowledgeError, ListKnowledgeErrors, ListKnowledgeResponse, ListKnowledgeResponses, ListMemoriesData, ListMemoriesError, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListSkyboxStylesData, ListSkyboxStylesError, ListSkyboxStylesErrors, ListSkyboxStylesResponse, ListSkyboxStylesResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListToolCallsData, ListToolCallsError, ListToolCallsErrors, ListToolCallsResponse, ListToolCallsResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListVoicesData, ListVoicesError, ListVoicesErrors, ListVoicesResponse, ListVoicesResponses, MemoriesDeleted, MemoriesWrittenInfo, MemoryCitation, MemoryInfo, MemoryPage, MessageContext, MessageInfo, MessageKnowledge, MessageMemories, MessageNote, MessagePage, MessageSource, MessageToolCall, MoveAssetsData, MoveAssetsError, MoveAssetsErrors, MoveAssetsResponse, MoveAssetsResponses, NoteCreateRequest, NoteTaken, OrgPlan, PlatformLimit, PlatformLimitPage, PostSessionToolResultData, PostSessionToolResultError, PostSessionToolResultErrors, PostSessionToolResultResponse, PostSessionToolResultResponses, PostToolResultData, PostToolResultError, PostToolResultErrors, PostToolResultResponse, PostToolResultResponses, ProviderVoiceSettings, ProviderVoiceSettingsInfo, Reference, ReferenceInfo, RefreshKnowledgeData, RefreshKnowledgeError, RefreshKnowledgeErrors, RefreshKnowledgeResponse, RefreshKnowledgeResponses, ReindexKnowledgeData, ReindexKnowledgeError, ReindexKnowledgeErrors, ReindexKnowledgeResponse, ReindexKnowledgeResponses, RelationInfo, RelationPage, ReportDelivery, ReportLine, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SaveDesignedVoiceData, SaveDesignedVoiceError, SaveDesignedVoiceErrors, SaveDesignedVoiceResponse, SaveDesignedVoiceResponses, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, SetAgentKnowledgeData, SetAgentKnowledgeError, SetAgentKnowledgeErrors, SetAgentKnowledgeResponse, SetAgentKnowledgeResponses, SetAgentToolsData, SetAgentToolsError, SetAgentToolsErrors, SetAgentToolsResponse, SetAgentToolsResponses, SetKnowledgeAgentsData, SetKnowledgeAgentsError, SetKnowledgeAgentsErrors, SetKnowledgeAgentsResponse, SetKnowledgeAgentsResponses, SkyboxFile, SkyboxRequest, SkyboxStyle, SkyboxStylePage, SpeechProvider, StreamDone, StreamError, StreamSegment, StreamTranscript, SynthesizeSpeechData, SynthesizeSpeechError, SynthesizeSpeechErrors, SynthesizeSpeechResponse, SynthesizeSpeechResponses, TemplateGenerateRequest, TemplateInfo, TemplateInput, TemplatePage, TestAgentWebhookData, TestAgentWebhookError, TestAgentWebhookErrors, TestAgentWebhookResponse, TestAgentWebhookResponses, TestToolData, TestToolError, TestToolErrors, TestToolResponse, TestToolResponses, TokenSelf, ToolCall, ToolCallPage, ToolCreate, ToolInfo, ToolPage, ToolResultRequest, ToolResultTaken, ToolsAssigned, ToolTestRequest, ToolTestResult, ToolUpdate, ToolWithSecret, TranscribeAssetRequest, TranscribeData, TranscribeError, TranscribeErrors, TranscribeResponse, TranscribeResponses, Transcription, TranscriptionStreamLine, TranscriptWord, TtsOptions, TtsRequest, UnansweredQuestion, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentResponse, UpdateAgentResponses, UpdateAgentSettingsData, UpdateAgentSettingsError, UpdateAgentSettingsErrors, UpdateAgentSettingsResponse, UpdateAgentSettingsResponses, UpdateAssetData, UpdateAssetError, UpdateAssetErrors, UpdateAssetFolderData, UpdateAssetFolderError, UpdateAssetFolderErrors, UpdateAssetFolderResponse, UpdateAssetFolderResponses, UpdateAssetResponse, UpdateAssetResponses, UpdateEndUserData, UpdateEndUserError, UpdateEndUserErrors, UpdateEndUserFactData, UpdateEndUserFactError, UpdateEndUserFactErrors, UpdateEndUserFactResponse, UpdateEndUserFactResponses, UpdateEndUserPersonalizationData, UpdateEndUserPersonalizationError, UpdateEndUserPersonalizationErrors, UpdateEndUserPersonalizationResponse, UpdateEndUserPersonalizationResponses, UpdateEndUserResponse, UpdateEndUserResponses, UpdateFactData, UpdateFactError, UpdateFactErrors, UpdateFactResponse, UpdateFactResponses, UpdateKnowledgeData, UpdateKnowledgeError, UpdateKnowledgeErrors, UpdateKnowledgeResponse, UpdateKnowledgeResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolResponse, UpdateToolResponses, UpdateVoiceData, UpdateVoiceError, UpdateVoiceErrors, UpdateVoiceResponse, UpdateVoiceResponses, UploadConfirm, UploadTicket, UploadTicketRequest, UsageByKey, UsageDay, UsageResponse, UsageSummary, ValidationIssue, Variables, VariantInfo, VideoRequest, VoiceDesignPreview, VoiceDesignRequest, VoiceDesignResult, VoiceDesignSaveRequest, VoiceDetail, VoiceInfo, VoiceInfoPage, VoiceKind, VoiceSample, VoiceSource, VoiceStatus, VoiceUpdate, VoiceUpload, VoiceUploadRequest, VoiceUploadTicket, WebhookSecret, WebhookTestResult, WriteSessionMemoriesData, WriteSessionMemoriesError, WriteSessionMemoriesErrors, WriteSessionMemoriesResponse, WriteSessionMemoriesResponses } from './types.gen.js';
1
+ export type { AgentCreateRequest, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentQuietHours, AgentReportField, AgentReportFieldInfo, AgentSettingsInfo, AgentSettingsUpdate, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVoice, AgentVoiceInfo, ApiKeySelf, AssetBulkRequest, AssetDetail, AssetMoveRequest, AssetPage, AssetsAffected, AssetSummary, AssetUpdate, AssignedAgent, AudioRequest, BulkEditKnowledgeData, BulkEditKnowledgeError, BulkEditKnowledgeErrors, BulkEditKnowledgeResponse, BulkEditKnowledgeResponses, CancelScheduledMessageData, CancelScheduledMessageError, CancelScheduledMessageErrors, CancelScheduledMessageResponse, CancelScheduledMessageResponses, ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, ConfirmAssetUploadData, ConfirmAssetUploadError, ConfirmAssetUploadErrors, ConfirmAssetUploadResponse, ConfirmAssetUploadResponses, ConversationReport, ConversationReportPage, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentResponse, CreateAgentResponses, CreateAssetFolderData, CreateAssetFolderError, CreateAssetFolderErrors, CreateAssetFolderResponse, CreateAssetFolderResponses, CreateAssetUploadUrlData, CreateAssetUploadUrlError, CreateAssetUploadUrlErrors, CreateAssetUploadUrlResponse, CreateAssetUploadUrlResponses, CreateAudioData, CreateAudioError, CreateAudioErrors, CreateAudioResponse, CreateAudioResponses, CreateEndUserData, CreateEndUserError, CreateEndUserErrors, CreateEndUserFactData, CreateEndUserFactError, CreateEndUserFactErrors, CreateEndUserFactResponse, CreateEndUserFactResponses, CreateEndUserNoteData, CreateEndUserNoteError, CreateEndUserNoteErrors, CreateEndUserNoteResponse, CreateEndUserNoteResponses, CreateEndUserResponse, CreateEndUserResponses, CreateEphemeralKeyData, CreateEphemeralKeyError, CreateEphemeralKeyErrors, CreateEphemeralKeyResponse, CreateEphemeralKeyResponses, CreateFactData, CreateFactError, CreateFactErrors, CreateFactResponse, CreateFactResponses, CreateImageData, CreateImageError, CreateImageErrors, CreateImageResponse, CreateImageResponses, CreateKnowledgeData, CreateKnowledgeError, CreateKnowledgeErrors, CreateKnowledgeFromFileData, CreateKnowledgeFromFileError, CreateKnowledgeFromFileErrors, CreateKnowledgeFromFileResponse, CreateKnowledgeFromFileResponses, CreateKnowledgeFromUrlData, CreateKnowledgeFromUrlError, CreateKnowledgeFromUrlErrors, CreateKnowledgeFromUrlResponse, CreateKnowledgeFromUrlResponses, CreateKnowledgeResponse, CreateKnowledgeResponses, CreateKnowledgeUploadUrlData, CreateKnowledgeUploadUrlError, CreateKnowledgeUploadUrlErrors, CreateKnowledgeUploadUrlResponse, CreateKnowledgeUploadUrlResponses, CreateScheduledMessageData, CreateScheduledMessageError, CreateScheduledMessageErrors, CreateScheduledMessageResponse, CreateScheduledMessageResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSkyboxData, CreateSkyboxError, CreateSkyboxErrors, CreateSkyboxResponse, CreateSkyboxResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolResponse, CreateToolResponses, CreateTranscriptionData, CreateTranscriptionError, CreateTranscriptionErrors, CreateTranscriptionResponse, CreateTranscriptionResponses, CreateVideoData, CreateVideoError, CreateVideoErrors, CreateVideoResponse, CreateVideoResponses, CreateVoiceData, CreateVoiceError, CreateVoiceErrors, CreateVoiceResponse, CreateVoiceResponses, CreateVoiceUploadUrlData, CreateVoiceUploadUrlError, CreateVoiceUploadUrlErrors, CreateVoiceUploadUrlResponse, CreateVoiceUploadUrlResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAllEndUserMemoriesData, DeleteAllEndUserMemoriesError, DeleteAllEndUserMemoriesErrors, DeleteAllEndUserMemoriesResponse, DeleteAllEndUserMemoriesResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteAllMemoriesData, DeleteAllMemoriesError, DeleteAllMemoriesErrors, DeleteAllMemoriesResponse, DeleteAllMemoriesResponses, DeleteAssetData, DeleteAssetError, DeleteAssetErrors, DeleteAssetFolderData, DeleteAssetFolderError, DeleteAssetFolderErrors, DeleteAssetFolderResponse, DeleteAssetFolderResponses, DeleteAssetResponse, DeleteAssetResponses, DeleteAssetsData, DeleteAssetsError, DeleteAssetsErrors, DeleteAssetsResponse, DeleteAssetsResponses, DeleteEndUserData, DeleteEndUserError, DeleteEndUserErrors, DeleteEndUserFactData, DeleteEndUserFactError, DeleteEndUserFactErrors, DeleteEndUserFactResponse, DeleteEndUserFactResponses, DeleteEndUserMemoryData, DeleteEndUserMemoryError, DeleteEndUserMemoryErrors, DeleteEndUserMemoryResponse, DeleteEndUserMemoryResponses, DeleteEndUserResponse, DeleteEndUserResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteKnowledgeData, DeleteKnowledgeError, DeleteKnowledgeErrors, DeleteKnowledgeResponse, DeleteKnowledgeResponses, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteVoiceData, DeleteVoiceError, DeleteVoiceErrors, DeleteVoiceResponse, DeleteVoiceResponses, DesignVoiceData, DesignVoiceError, DesignVoiceErrors, DesignVoiceResponse, DesignVoiceResponses, DraftLayoutData, DraftLayoutError, DraftLayoutErrors, DraftLayoutResponse, DraftLayoutResponses, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserUpdateRequest, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EphemeralKeyInfo, EphemeralKeyLimits, EphemeralKeyOverrides, EphemeralKeyPage, EphemeralTokenSelf, ErrorCode, ErrorInfo, ErrorResponse, ExtractSessionFactsData, ExtractSessionFactsError, ExtractSessionFactsErrors, ExtractSessionFactsResponse, ExtractSessionFactsResponses, FactCreateRequest, FactInfo, FactPage, FactsDeleted, FactsReadInfo, FactUpdateRequest, FindLayoutElementsData, FindLayoutElementsError, FindLayoutElementsErrors, FindLayoutElementsResponse, FindLayoutElementsResponses, FolderCreate, FolderDeleted, FolderDetail, FolderPage, FolderSummary, FolderUpdate, GenerateFromTemplateData, GenerateFromTemplateError, GenerateFromTemplateErrors, GenerateFromTemplateResponse, GenerateFromTemplateResponses, GenerationAudio, GenerationImage, GenerationInfo, GenerationPage, GenerationSkybox, GenerationTranscript, GenerationVideo, GetAgentData, GetAgentError, GetAgentErrors, GetAgentResponse, GetAgentResponses, GetAgentSettingsData, GetAgentSettingsError, GetAgentSettingsErrors, GetAgentSettingsResponse, GetAgentSettingsResponses, GetAssetData, GetAssetError, GetAssetErrors, GetAssetFolderData, GetAssetFolderError, GetAssetFolderErrors, GetAssetFolderResponse, GetAssetFolderResponses, GetAssetResponse, GetAssetResponses, GetAudioData, GetAudioError, GetAudioErrors, GetAudioResponse, GetAudioResponses, GetEndUserData, GetEndUserError, GetEndUserErrors, GetEndUserMemoryData, GetEndUserMemoryError, GetEndUserMemoryErrors, GetEndUserMemoryResponse, GetEndUserMemoryResponses, GetEndUserPersonalizationData, GetEndUserPersonalizationError, GetEndUserPersonalizationErrors, GetEndUserPersonalizationResponse, GetEndUserPersonalizationResponses, GetEndUserReportData, GetEndUserReportError, GetEndUserReportErrors, GetEndUserReportResponse, GetEndUserReportResponses, GetEndUserResponse, GetEndUserResponses, GetEphemeralKeyData, GetEphemeralKeyError, GetEphemeralKeyErrors, GetEphemeralKeyLimitsData, GetEphemeralKeyLimitsError, GetEphemeralKeyLimitsErrors, GetEphemeralKeyLimitsResponse, GetEphemeralKeyLimitsResponses, GetEphemeralKeyResponse, GetEphemeralKeyResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetHealthData, GetHealthResponse, GetHealthResponses, GetImageData, GetImageError, GetImageErrors, GetImageResponse, GetImageResponses, GetKnowledgeData, GetKnowledgeError, GetKnowledgeErrors, GetKnowledgeInsightsData, GetKnowledgeInsightsError, GetKnowledgeInsightsErrors, GetKnowledgeInsightsResponse, GetKnowledgeInsightsResponses, GetKnowledgeResponse, GetKnowledgeResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetPlatformLimitsData, GetPlatformLimitsResponse, GetPlatformLimitsResponses, GetScheduledMessageData, GetScheduledMessageError, GetScheduledMessageErrors, GetScheduledMessageResponse, GetScheduledMessageResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSkyboxData, GetSkyboxError, GetSkyboxErrors, GetSkyboxResponse, GetSkyboxResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateFileData, GetTemplateFileError, GetTemplateFileErrors, GetTemplateFileResponses, GetTemplateResponse, GetTemplateResponses, GetTokenData, GetTokenError, GetTokenErrors, GetTokenResponse, GetTokenResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTranscriptionData, GetTranscriptionError, GetTranscriptionErrors, GetTranscriptionResponse, GetTranscriptionResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetVideoData, GetVideoError, GetVideoErrors, GetVideoResponse, GetVideoResponses, GetVoiceData, GetVoiceError, GetVoiceErrors, GetVoiceResponse, GetVoiceResponses, HealthResponse, ImageRequest, KnowledgeAgentsUpdate, KnowledgeAssigned, KnowledgeBulk, KnowledgeBulkResult, KnowledgeCategoryPage, KnowledgeCitation, KnowledgeCreate, KnowledgeEntryUsage, KnowledgeFileCreate, KnowledgeInfo, KnowledgeInsights, KnowledgeLookupInfo, KnowledgePage, KnowledgeSearchHit, KnowledgeSearchRequest, KnowledgeSearchResult, KnowledgeUpdate, KnowledgeUploadRequest, KnowledgeUploadTicket, KnowledgeUrlCreate, LayoutDraft, LayoutDraftRequest, LayoutElement, LayoutElementInfo, LayoutFindRequest, LayoutFound, LayoutSourceInfo, ListAgentKnowledgeData, ListAgentKnowledgeError, ListAgentKnowledgeErrors, ListAgentKnowledgeResponse, ListAgentKnowledgeResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAgentToolsData, ListAgentToolsError, ListAgentToolsErrors, ListAgentToolsResponse, ListAgentToolsResponses, ListAssetFoldersData, ListAssetFoldersError, ListAssetFoldersErrors, ListAssetFoldersResponse, ListAssetFoldersResponses, ListAssetsData, ListAssetsError, ListAssetsErrors, ListAssetsResponse, ListAssetsResponses, ListEndUserFactsData, ListEndUserFactsError, ListEndUserFactsErrors, ListEndUserFactsResponse, ListEndUserFactsResponses, ListEndUserMemoriesData, ListEndUserMemoriesError, ListEndUserMemoriesErrors, ListEndUserMemoriesResponse, ListEndUserMemoriesResponses, ListEndUserReportsData, ListEndUserReportsError, ListEndUserReportsErrors, ListEndUserReportsResponse, ListEndUserReportsResponses, ListEndUsersData, ListEndUsersError, ListEndUsersErrors, ListEndUsersResponse, ListEndUsersResponses, ListEphemeralKeysData, ListEphemeralKeysError, ListEphemeralKeysErrors, ListEphemeralKeysResponse, ListEphemeralKeysResponses, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListKnowledgeCategoriesData, ListKnowledgeCategoriesError, ListKnowledgeCategoriesErrors, ListKnowledgeCategoriesResponse, ListKnowledgeCategoriesResponses, ListKnowledgeData, ListKnowledgeError, ListKnowledgeErrors, ListKnowledgeResponse, ListKnowledgeResponses, ListMemoriesData, ListMemoriesError, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListScheduledMessagesData, ListScheduledMessagesError, ListScheduledMessagesErrors, ListScheduledMessagesResponse, ListScheduledMessagesResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListSkyboxStylesData, ListSkyboxStylesError, ListSkyboxStylesErrors, ListSkyboxStylesResponse, ListSkyboxStylesResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListToolCallsData, ListToolCallsError, ListToolCallsErrors, ListToolCallsResponse, ListToolCallsResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListVoicesData, ListVoicesError, ListVoicesErrors, ListVoicesResponse, ListVoicesResponses, MemoriesDeleted, MemoriesWrittenInfo, MemoryCitation, MemoryInfo, MemoryPage, MessageContext, MessageInfo, MessageKnowledge, MessageMemories, MessageNote, MessagePage, MessageSource, MessageToolCall, MoveAssetsData, MoveAssetsError, MoveAssetsErrors, MoveAssetsResponse, MoveAssetsResponses, NoteCreateRequest, NoteTaken, OrgPlan, PlatformLimit, PlatformLimitPage, PostSessionToolResultData, PostSessionToolResultError, PostSessionToolResultErrors, PostSessionToolResultResponse, PostSessionToolResultResponses, PostToolResultData, PostToolResultError, PostToolResultErrors, PostToolResultResponse, PostToolResultResponses, ProviderVoiceSettings, ProviderVoiceSettingsInfo, Reference, ReferenceInfo, RefreshKnowledgeData, RefreshKnowledgeError, RefreshKnowledgeErrors, RefreshKnowledgeResponse, RefreshKnowledgeResponses, ReindexKnowledgeData, ReindexKnowledgeError, ReindexKnowledgeErrors, ReindexKnowledgeResponse, ReindexKnowledgeResponses, RelationInfo, RelationPage, ReportDelivery, ReportLine, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SafetyInfo, SaveDesignedVoiceData, SaveDesignedVoiceError, SaveDesignedVoiceErrors, SaveDesignedVoiceResponse, SaveDesignedVoiceResponses, ScheduledMessage, ScheduledMessageCreateRequest, ScheduledMessageDelivery, ScheduledMessagePage, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, SetAgentKnowledgeData, SetAgentKnowledgeError, SetAgentKnowledgeErrors, SetAgentKnowledgeResponse, SetAgentKnowledgeResponses, SetAgentToolsData, SetAgentToolsError, SetAgentToolsErrors, SetAgentToolsResponse, SetAgentToolsResponses, SetKnowledgeAgentsData, SetKnowledgeAgentsError, SetKnowledgeAgentsErrors, SetKnowledgeAgentsResponse, SetKnowledgeAgentsResponses, SkyboxFile, SkyboxRequest, SkyboxStyle, SkyboxStylePage, SpeechProvider, StreamDone, StreamError, StreamSegment, StreamTranscript, SynthesizeSpeechData, SynthesizeSpeechError, SynthesizeSpeechErrors, SynthesizeSpeechResponse, SynthesizeSpeechResponses, TemplateGenerateRequest, TemplateInfo, TemplateInput, TemplatePage, TestAgentWebhookData, TestAgentWebhookError, TestAgentWebhookErrors, TestAgentWebhookResponse, TestAgentWebhookResponses, TestToolData, TestToolError, TestToolErrors, TestToolResponse, TestToolResponses, TokenSelf, ToolCall, ToolCallPage, ToolCreate, ToolInfo, ToolPage, ToolResultRequest, ToolResultTaken, ToolsAssigned, ToolTestRequest, ToolTestResult, ToolUpdate, ToolWithSecret, TranscribeAssetRequest, TranscribeData, TranscribeError, TranscribeErrors, TranscribeResponse, TranscribeResponses, Transcription, TranscriptionStreamLine, TranscriptWord, TtsOptions, TtsRequest, UnansweredQuestion, UpdateAgentData, UpdateAgentError, UpdateAgentErrors, UpdateAgentResponse, UpdateAgentResponses, UpdateAgentSettingsData, UpdateAgentSettingsError, UpdateAgentSettingsErrors, UpdateAgentSettingsResponse, UpdateAgentSettingsResponses, UpdateAssetData, UpdateAssetError, UpdateAssetErrors, UpdateAssetFolderData, UpdateAssetFolderError, UpdateAssetFolderErrors, UpdateAssetFolderResponse, UpdateAssetFolderResponses, UpdateAssetResponse, UpdateAssetResponses, UpdateEndUserData, UpdateEndUserError, UpdateEndUserErrors, UpdateEndUserFactData, UpdateEndUserFactError, UpdateEndUserFactErrors, UpdateEndUserFactResponse, UpdateEndUserFactResponses, UpdateEndUserPersonalizationData, UpdateEndUserPersonalizationError, UpdateEndUserPersonalizationErrors, UpdateEndUserPersonalizationResponse, UpdateEndUserPersonalizationResponses, UpdateEndUserResponse, UpdateEndUserResponses, UpdateFactData, UpdateFactError, UpdateFactErrors, UpdateFactResponse, UpdateFactResponses, UpdateKnowledgeData, UpdateKnowledgeError, UpdateKnowledgeErrors, UpdateKnowledgeResponse, UpdateKnowledgeResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolResponse, UpdateToolResponses, UpdateVoiceData, UpdateVoiceError, UpdateVoiceErrors, UpdateVoiceResponse, UpdateVoiceResponses, UploadConfirm, UploadTicket, UploadTicketRequest, UsageByKey, UsageDay, UsageResponse, UsageSummary, ValidationIssue, Variables, VariantInfo, VideoRequest, VoiceDesignPreview, VoiceDesignRequest, VoiceDesignResult, VoiceDesignSaveRequest, VoiceDetail, VoiceInfo, VoiceInfoPage, VoiceKind, VoiceSample, VoiceSource, VoiceStatus, VoiceUpdate, VoiceUpload, VoiceUploadRequest, VoiceUploadTicket, WebhookSecret, WebhookTestResult, WriteSessionMemoriesData, WriteSessionMemoriesError, WriteSessionMemoriesErrors, WriteSessionMemoriesResponse, WriteSessionMemoriesResponses } from './types.gen.js';
@@ -1368,6 +1368,10 @@ export type MessageInfo = {
1368
1368
  */
1369
1369
  mood_intensity: number | null;
1370
1370
  role: 'user' | 'assistant';
1371
+ /**
1372
+ * On a reply: why it was steered away or held back — a blocked topic, the agent's age rules, or the provider's filter ([Safety](/agents/safety)). Null for any other reply, and on the person's messages.
1373
+ */
1374
+ safety: SafetyInfo | null;
1371
1375
  /**
1372
1376
  * The agent that had the conversation when this was said: the conversation's own, or — after one agent handed it to another — the one that had it then. A person's message names the agent that answered it.
1373
1377
  */
@@ -1446,6 +1450,23 @@ export type MemoryCitation = {
1446
1450
  score: number;
1447
1451
  title: string;
1448
1452
  };
1453
+ /**
1454
+ * Why a reply was steered away or held back. The agent tells it by a mark it writes and the platform removes, so a reply that changed the subject without one carries none.
1455
+ */
1456
+ export type SafetyInfo = {
1457
+ /**
1458
+ * `topic`: the agent steered away from one of its `blocked_topics`. `age_level`: from what its age level's rules keep it from. `provider`: the model provider's own safety filter held the reply back.
1459
+ */
1460
+ reason: 'topic' | 'age_level' | 'provider';
1461
+ /**
1462
+ * The blocked topic, as written on the agent, for `topic`; otherwise null.
1463
+ */
1464
+ topic: string | null;
1465
+ /**
1466
+ * What the provider named, for `provider`: `harassment`, `hate_speech`, `sexually_explicit`, `dangerous_content`, `prohibited_content`, `blocklist`, `personal_information`, or `other` when it named nothing these say; otherwise null.
1467
+ */
1468
+ category: 'harassment' | 'hate_speech' | 'sexually_explicit' | 'dangerous_content' | 'prohibited_content' | 'blocklist' | 'personal_information' | 'other' | null;
1469
+ };
1449
1470
  /**
1450
1471
  * A web page the reply read with the agent's `url_context` switch on.
1451
1472
  */
@@ -1875,10 +1896,42 @@ export type AgentSummary = {
1875
1896
  * Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
1876
1897
  */
1877
1898
  webhook_url: string | null;
1899
+ /**
1900
+ * Who the agent talks with, and so how careful it is: `kids` (7 or older), `teens` (13 to 17) or `adults`. **Unset is `adults`**, which changes nothing: the agent's request to the model is what it was before the level existed.
1901
+ *
1902
+ * `kids` and `teens` add the platform's rules for that age to the agent's instructions — nothing frightening, sexual or unkind for a child; nothing graphic or encouraging harm for a teenager — and turn on the model provider's own safety filters for that age. When the person brings up something the rules keep the agent from, it stays in character and changes the subject. The rules and the filters' levels are in the Safety guide, word for word. No extra model call, and no wait: they ride on the request each reply already makes. Always answered: `adults` for an agent that set none.
1903
+ */
1904
+ age_level: 'kids' | 'teens' | 'adults';
1905
+ /**
1906
+ * Topics the agent never discusses, in plain words ("real-world politics", "prices"): at most 20, each 1 to 100 characters on one line, no two the same. When the person brings one up, the agent stays in character and changes the subject. At any `age_level`. A topic's words decide what it covers, so name it as narrowly as you mean it. The complete list: `null` or `[]` clears it. Always answered: `[]` for none.
1907
+ */
1908
+ blocked_topics: Array<string>;
1909
+ /**
1910
+ * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
1911
+ */
1912
+ fallback_message: string | null;
1878
1913
  /**
1879
1914
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
1880
1915
  */
1881
1916
  handoffs: Array<AgentHandoffInfo>;
1917
+ /**
1918
+ * Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
1919
+ *
1920
+ * A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
1921
+ */
1922
+ outreach_enabled: boolean;
1923
+ /**
1924
+ * No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
1925
+ */
1926
+ outreach_quiet_hours: AgentQuietHours | null;
1927
+ /**
1928
+ * The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
1929
+ */
1930
+ outreach_time_zone: string | null;
1931
+ /**
1932
+ * Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
1933
+ */
1934
+ outreach_tool: boolean;
1882
1935
  /**
1883
1936
  * Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
1884
1937
  *
@@ -2155,6 +2208,16 @@ export type AgentHandoffInfo = {
2155
2208
  name: string;
2156
2209
  when: string;
2157
2210
  };
2211
+ export type AgentQuietHours = {
2212
+ /**
2213
+ * When the quiet starts, `HH:MM` on a 24-hour clock, the person's time.
2214
+ */
2215
+ start: string;
2216
+ /**
2217
+ * When it ends, `HH:MM`. Earlier than `start` crosses midnight: 22:00 to 08:00 is the night.
2218
+ */
2219
+ end: string;
2220
+ };
2158
2221
  export type AgentSttInfo = {
2159
2222
  /**
2160
2223
  * ISO-639-1 or -639-3 code the agent's spoken turns are transcribed in. Omit it and the language is detected per turn. A `language` on `user_audio.start` overrides it.
@@ -2240,10 +2303,42 @@ export type AgentInfo = {
2240
2303
  * Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
2241
2304
  */
2242
2305
  webhook_url: string | null;
2306
+ /**
2307
+ * Who the agent talks with, and so how careful it is: `kids` (7 or older), `teens` (13 to 17) or `adults`. **Unset is `adults`**, which changes nothing: the agent's request to the model is what it was before the level existed.
2308
+ *
2309
+ * `kids` and `teens` add the platform's rules for that age to the agent's instructions — nothing frightening, sexual or unkind for a child; nothing graphic or encouraging harm for a teenager — and turn on the model provider's own safety filters for that age. When the person brings up something the rules keep the agent from, it stays in character and changes the subject. The rules and the filters' levels are in the Safety guide, word for word. No extra model call, and no wait: they ride on the request each reply already makes. Always answered: `adults` for an agent that set none.
2310
+ */
2311
+ age_level: 'kids' | 'teens' | 'adults';
2312
+ /**
2313
+ * Topics the agent never discusses, in plain words ("real-world politics", "prices"): at most 20, each 1 to 100 characters on one line, no two the same. When the person brings one up, the agent stays in character and changes the subject. At any `age_level`. A topic's words decide what it covers, so name it as narrowly as you mean it. The complete list: `null` or `[]` clears it. Always answered: `[]` for none.
2314
+ */
2315
+ blocked_topics: Array<string>;
2316
+ /**
2317
+ * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
2318
+ */
2319
+ fallback_message: string | null;
2243
2320
  /**
2244
2321
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
2245
2322
  */
2246
2323
  handoffs: Array<AgentHandoffInfo>;
2324
+ /**
2325
+ * Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
2326
+ *
2327
+ * A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
2328
+ */
2329
+ outreach_enabled: boolean;
2330
+ /**
2331
+ * No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
2332
+ */
2333
+ outreach_quiet_hours: AgentQuietHours | null;
2334
+ /**
2335
+ * The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
2336
+ */
2337
+ outreach_time_zone: string | null;
2338
+ /**
2339
+ * Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
2340
+ */
2341
+ outreach_tool: boolean;
2247
2342
  /**
2248
2343
  * Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
2249
2344
  *
@@ -2521,10 +2616,42 @@ export type AgentCreateRequest = {
2521
2616
  * Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
2522
2617
  */
2523
2618
  webhook_url?: string | null;
2619
+ /**
2620
+ * Who the agent talks with, and so how careful it is: `kids` (7 or older), `teens` (13 to 17) or `adults`. **Unset is `adults`**, which changes nothing: the agent's request to the model is what it was before the level existed.
2621
+ *
2622
+ * `kids` and `teens` add the platform's rules for that age to the agent's instructions — nothing frightening, sexual or unkind for a child; nothing graphic or encouraging harm for a teenager — and turn on the model provider's own safety filters for that age. When the person brings up something the rules keep the agent from, it stays in character and changes the subject. The rules and the filters' levels are in the Safety guide, word for word. No extra model call, and no wait: they ride on the request each reply already makes.
2623
+ */
2624
+ age_level?: 'kids' | 'teens' | 'adults' | null;
2625
+ /**
2626
+ * Topics the agent never discusses, in plain words ("real-world politics", "prices"): at most 20, each 1 to 100 characters on one line, no two the same. When the person brings one up, the agent stays in character and changes the subject. At any `age_level`. A topic's words decide what it covers, so name it as narrowly as you mean it. The complete list: `null` or `[]` clears it.
2627
+ */
2628
+ blocked_topics?: Array<string> | null;
2629
+ /**
2630
+ * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
2631
+ */
2632
+ fallback_message?: string | null;
2524
2633
  /**
2525
2634
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
2526
2635
  */
2527
2636
  handoffs?: Array<AgentHandoff> | null;
2637
+ /**
2638
+ * Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
2639
+ *
2640
+ * A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
2641
+ */
2642
+ outreach_enabled?: boolean | null;
2643
+ /**
2644
+ * No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
2645
+ */
2646
+ outreach_quiet_hours?: AgentQuietHours | null;
2647
+ /**
2648
+ * The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
2649
+ */
2650
+ outreach_time_zone?: string | null;
2651
+ /**
2652
+ * Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
2653
+ */
2654
+ outreach_tool?: boolean | null;
2528
2655
  /**
2529
2656
  * Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
2530
2657
  *
@@ -2991,10 +3118,42 @@ export type AgentUpdate = {
2991
3118
  * Where this agent's events go — a conversation's report, signed with your organisation's webhook secret: an `https://` address of yours. Unset uses your organisation's `webhook_url` (`/v1/agents/settings`). Refused (422) until your organisation has a secret: `POST /v1/agents/settings/webhook-secret`.
2992
3119
  */
2993
3120
  webhook_url?: string | null;
3121
+ /**
3122
+ * Who the agent talks with, and so how careful it is: `kids` (7 or older), `teens` (13 to 17) or `adults`. **Unset is `adults`**, which changes nothing: the agent's request to the model is what it was before the level existed.
3123
+ *
3124
+ * `kids` and `teens` add the platform's rules for that age to the agent's instructions — nothing frightening, sexual or unkind for a child; nothing graphic or encouraging harm for a teenager — and turn on the model provider's own safety filters for that age. When the person brings up something the rules keep the agent from, it stays in character and changes the subject. The rules and the filters' levels are in the Safety guide, word for word. No extra model call, and no wait: they ride on the request each reply already makes.
3125
+ */
3126
+ age_level?: 'kids' | 'teens' | 'adults' | null;
3127
+ /**
3128
+ * Topics the agent never discusses, in plain words ("real-world politics", "prices"): at most 20, each 1 to 100 characters on one line, no two the same. When the person brings one up, the agent stays in character and changes the subject. At any `age_level`. A topic's words decide what it covers, so name it as narrowly as you mean it. The complete list: `null` or `[]` clears it.
3129
+ */
3130
+ blocked_topics?: Array<string> | null;
3131
+ /**
3132
+ * What the agent says when the model provider's own safety filter holds a reply back, in place of it: one line in the agent's voice, such as "Hmm, let's talk about something else!" — 1 to 300 characters, at any `age_level`. It is said and spoken as any reply, and the turn ends with `turn.done`; a reply held back part-way keeps what it had said, less the sentence it was writing. **Unset, a held-back reply ends with an `error` (`provider_failed`) and `interrupted`**, as before. Never for the opening line. Recommended for `kids` and `teens`, whose filters are stricter.
3133
+ */
3134
+ fallback_message?: string | null;
2994
3135
  /**
2995
3136
  * Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
2996
3137
  */
2997
3138
  handoffs?: Array<AgentHandoff> | null;
3139
+ /**
3140
+ * Whether this agent may write to a person first, while they are away — a message your server schedules with `POST /v1/end-users/{end_user_id}/scheduled-messages`, or one the agent schedules itself when the person asks (`outreach_tool`). **Off by default.**
3141
+ *
3142
+ * A message is one model call, paid from your organisation's balance: the person has no live key while away. It is kept in their conversation with the agent, so it is there when they come back, and your server is sent it to show as a notification.
3143
+ */
3144
+ outreach_enabled?: boolean | null;
3145
+ /**
3146
+ * No message of the agent's own between these times, in the person's time zone: one due then waits for the end — a 23:00 message is written at 08:00. `null` for none.
3147
+ */
3148
+ outreach_quiet_hours?: AgentQuietHours | null;
3149
+ /**
3150
+ * The time zone the agent reads quiet hours in for a person with none of their own — your main market. A person's own is the one your server sets (`time_zone` on `PATCH /v1/end-users/{end_user_id}/personalization`), else the one their app reported. `null` is UTC.
3151
+ */
3152
+ outreach_time_zone?: string | null;
3153
+ /**
3154
+ * Whether the agent may schedule a message itself when the person asks ("remind me at 6") — the platform's tool `schedule_message`, offered only with `outreach_enabled` on. **On by default**: turn it off for your server alone to write.
3155
+ */
3156
+ outreach_tool?: boolean | null;
2998
3157
  /**
2999
3158
  * Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
3000
3159
  *
@@ -3386,6 +3545,16 @@ export type EndUserPersonalization = {
3386
3545
  * When they were last set or cleared. Null: never.
3387
3546
  */
3388
3547
  updated_at: string | null;
3548
+ /**
3549
+ * The person's IANA time zone (`Europe/Paris`): an agent's quiet hours and the day its own messages count against are read in it (docs: *Reaching out first*). Yours wins; without one, the time zone their app reported when they last connected — the client SDK sends the device's by itself.
3550
+ *
3551
+ * Null for none known.
3552
+ */
3553
+ time_zone: string | null;
3554
+ /**
3555
+ * Who set `time_zone`: `server`, your server, which the app never overrides; `app`, the device's own, reported when the person connects. Null for none.
3556
+ */
3557
+ time_zone_source: 'server' | 'app' | null;
3389
3558
  };
3390
3559
  export type EndUserPersonalizationUpdate = {
3391
3560
  /**
@@ -3399,6 +3568,12 @@ export type EndUserPersonalizationUpdate = {
3399
3568
  */
3400
3569
  instructions?: string | null;
3401
3570
  variables?: Variables | null;
3571
+ /**
3572
+ * The person's IANA time zone (`Europe/Paris`): an agent's quiet hours and the day its own messages count against are read in it (docs: *Reaching out first*). Yours wins; without one, the time zone their app reported when they last connected — the client SDK sends the device's by itself.
3573
+ *
3574
+ * Absent, it is left as it is; `null` clears yours, and the app's may fill it again.
3575
+ */
3576
+ time_zone?: string | null;
3402
3577
  };
3403
3578
  export type ConversationReportPage = {
3404
3579
  data: Array<ConversationReport>;
@@ -3525,6 +3700,121 @@ export type ReportLine = {
3525
3700
  agent_id: string | null;
3526
3701
  created_at: string;
3527
3702
  };
3703
+ export type ScheduledMessage = {
3704
+ /**
3705
+ * The message's id, `om_…`.
3706
+ */
3707
+ id: string;
3708
+ /**
3709
+ * The person's `eu_…` id.
3710
+ */
3711
+ end_user_id: string;
3712
+ agent_id: string;
3713
+ /**
3714
+ * The conversation it was written into — or the one you named. Null until it is written.
3715
+ */
3716
+ session_id: string | null;
3717
+ /**
3718
+ * `server` when your server scheduled it; `agent` when the agent did, because the person asked (`outreach_tool`).
3719
+ */
3720
+ source: 'server' | 'agent';
3721
+ /**
3722
+ * `scheduled`, waiting; `sent`, written; `skipped`, not written — `skip_reason` says why; `cancelled` by you; `failed`, the model could not write it, tried again three times.
3723
+ */
3724
+ status: 'scheduled' | 'sent' | 'skipped' | 'cancelled' | 'failed';
3725
+ /**
3726
+ * Why a `skipped` one was not written: `daily_limit`, the person's day already had `agents.outreach.per_day_max`; `ignored`, the last `agents.outreach.ignored_max` were not answered and the person has not been back since; `agent_off`, the agent's `outreach_enabled` was turned off; `agent_gone`, it was deleted; `unfunded`, your balance could not pay for it; `org_blocked`, your organisation was suspended. Null otherwise.
3727
+ */
3728
+ skip_reason: 'daily_limit' | 'ignored' | 'agent_off' | 'agent_gone' | 'unfunded' | 'org_blocked' | null;
3729
+ /**
3730
+ * What the agent should write about, in its own words and character: "Tell them their tomatoes are ready to harvest." The model reads it as your direction, never as the person's words, and the person never sees it.
3731
+ */
3732
+ note: string;
3733
+ /**
3734
+ * Your own JSON object, up to 1 KB, given back as it is with the message — in the webhook too — so your server knows what it was for (`{"kind": "harvest"}`). `null` for none.
3735
+ */
3736
+ metadata: {
3737
+ [key: string]: unknown;
3738
+ } | null;
3739
+ /**
3740
+ * When you asked for it.
3741
+ */
3742
+ send_at: string;
3743
+ /**
3744
+ * When it is written: out of the agent's quiet hours in the person's time zone, and spread over up to two minutes, so many messages of one minute do not all go at once.
3745
+ */
3746
+ due_at: string;
3747
+ /**
3748
+ * When it was written; null until then.
3749
+ */
3750
+ sent_at: string | null;
3751
+ /**
3752
+ * What the agent wrote; null until it is written.
3753
+ */
3754
+ text: string | null;
3755
+ /**
3756
+ * `away` when it was written with no app connected — show it as a notification; `socket` when the person's app was on the conversation and heard it there. Null until written.
3757
+ */
3758
+ delivered: 'socket' | 'away' | null;
3759
+ webhook: ScheduledMessageDelivery;
3760
+ created_at: string;
3761
+ };
3762
+ /**
3763
+ * Its delivery to your webhook as `outreach.message`, posted once it is written — where it stands, as a report's.
3764
+ */
3765
+ export type ScheduledMessageDelivery = {
3766
+ /**
3767
+ * `none`: not written yet, or written while the agent had no webhook address; `pending`: being posted, and tried again while your server does not answer a 2xx; `delivered`; `failed`: not taken within the platform's `agents.webhooks.retry_minutes`.
3768
+ */
3769
+ status: 'none' | 'pending' | 'delivered' | 'failed';
3770
+ /**
3771
+ * Posts so far.
3772
+ */
3773
+ attempts: number;
3774
+ /**
3775
+ * Your server's last answer's status; `null` for none.
3776
+ */
3777
+ last_status: number | null;
3778
+ /**
3779
+ * Why the last post was not taken; `null` once one was.
3780
+ */
3781
+ last_error: string | null;
3782
+ /**
3783
+ * When your server took it.
3784
+ */
3785
+ delivered_at: string | null;
3786
+ };
3787
+ export type ScheduledMessageCreateRequest = {
3788
+ /**
3789
+ * The agent that writes it: one of yours with `outreach_enabled` on.
3790
+ */
3791
+ agent_id: string;
3792
+ /**
3793
+ * When to write it: an instant with its zone, at least a minute from now and at most `agents.outreach.ahead_max_days` ahead (the Limits page). Inside the agent's quiet hours, in the person's time zone, it waits for their end.
3794
+ */
3795
+ send_at: string;
3796
+ /**
3797
+ * What the agent should write about, in its own words and character: "Tell them their tomatoes are ready to harvest." The model reads it as your direction, never as the person's words, and the person never sees it. 1 to 1,000 characters.
3798
+ */
3799
+ note: string;
3800
+ /**
3801
+ * The conversation it joins: one of the person's with this agent. Unset, their latest with the agent still young enough to continue (`resume_max_age_days`), else a new one — chosen when it is written.
3802
+ */
3803
+ session_id?: string | null;
3804
+ /**
3805
+ * Your own JSON object, up to 1 KB, given back as it is with the message — in the webhook too — so your server knows what it was for (`{"kind": "harvest"}`). `null` for none.
3806
+ */
3807
+ metadata?: {
3808
+ [key: string]: unknown;
3809
+ } | null;
3810
+ };
3811
+ export type ScheduledMessagePage = {
3812
+ data: Array<ScheduledMessage>;
3813
+ /**
3814
+ * Pass as `cursor` for the next page; `null` when this is the last.
3815
+ */
3816
+ next_cursor: string | null;
3817
+ };
3528
3818
  export type KnowledgeCategoryPage = {
3529
3819
  data: Array<string>;
3530
3820
  /**
@@ -8085,6 +8375,211 @@ export type PostToolResultResponses = {
8085
8375
  200: ToolResultTaken;
8086
8376
  };
8087
8377
  export type PostToolResultResponse = PostToolResultResponses[keyof PostToolResultResponses];
8378
+ export type ListScheduledMessagesData = {
8379
+ body?: never;
8380
+ path: {
8381
+ /**
8382
+ * The end user's `eu_...` id, or your own id for them.
8383
+ */
8384
+ end_user_id: string;
8385
+ };
8386
+ query?: {
8387
+ /**
8388
+ * How many to answer, 1 to 200.
8389
+ */
8390
+ limit?: number;
8391
+ /**
8392
+ * The `next_cursor` of the page before.
8393
+ */
8394
+ cursor?: string;
8395
+ /**
8396
+ * Only messages in this status.
8397
+ */
8398
+ status?: 'scheduled' | 'sent' | 'skipped' | 'cancelled' | 'failed';
8399
+ };
8400
+ url: '/v1/end-users/{end_user_id}/scheduled-messages';
8401
+ };
8402
+ export type ListScheduledMessagesErrors = {
8403
+ /**
8404
+ * Missing or invalid credentials
8405
+ */
8406
+ 401: ErrorResponse;
8407
+ /**
8408
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
8409
+ */
8410
+ 403: ErrorResponse;
8411
+ /**
8412
+ * Unknown end user id Or: No such scheduled message for this end user.
8413
+ */
8414
+ 404: ErrorResponse;
8415
+ /**
8416
+ * The request failed validation
8417
+ */
8418
+ 422: ErrorResponse;
8419
+ /**
8420
+ * Rate limit exceeded
8421
+ */
8422
+ 429: ErrorResponse;
8423
+ };
8424
+ export type ListScheduledMessagesError = ListScheduledMessagesErrors[keyof ListScheduledMessagesErrors];
8425
+ export type ListScheduledMessagesResponses = {
8426
+ /**
8427
+ * Success
8428
+ */
8429
+ 200: ScheduledMessagePage;
8430
+ };
8431
+ export type ListScheduledMessagesResponse = ListScheduledMessagesResponses[keyof ListScheduledMessagesResponses];
8432
+ export type CreateScheduledMessageData = {
8433
+ body: ScheduledMessageCreateRequest;
8434
+ path: {
8435
+ /**
8436
+ * The end user's `eu_...` id, or your own id for them.
8437
+ */
8438
+ end_user_id: string;
8439
+ };
8440
+ query?: never;
8441
+ url: '/v1/end-users/{end_user_id}/scheduled-messages';
8442
+ };
8443
+ export type CreateScheduledMessageErrors = {
8444
+ /**
8445
+ * The request could not be read: malformed JSON
8446
+ */
8447
+ 400: ErrorResponse;
8448
+ /**
8449
+ * Missing or invalid credentials
8450
+ */
8451
+ 401: ErrorResponse;
8452
+ /**
8453
+ * Your balance cannot set this message's reserve aside
8454
+ */
8455
+ 402: ErrorResponse;
8456
+ /**
8457
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
8458
+ */
8459
+ 403: ErrorResponse;
8460
+ /**
8461
+ * Unknown end user id Or: No such scheduled message for this end user.
8462
+ */
8463
+ 404: ErrorResponse;
8464
+ /**
8465
+ * The agent does not write first, or the person's day or queue is full
8466
+ */
8467
+ 409: ErrorResponse;
8468
+ /**
8469
+ * The request failed validation
8470
+ */
8471
+ 422: ErrorResponse;
8472
+ /**
8473
+ * Rate limit exceeded
8474
+ */
8475
+ 429: ErrorResponse;
8476
+ /**
8477
+ * The end user's store could not be reached
8478
+ */
8479
+ 503: ErrorResponse;
8480
+ };
8481
+ export type CreateScheduledMessageError = CreateScheduledMessageErrors[keyof CreateScheduledMessageErrors];
8482
+ export type CreateScheduledMessageResponses = {
8483
+ /**
8484
+ * Scheduled
8485
+ */
8486
+ 201: ScheduledMessage;
8487
+ };
8488
+ export type CreateScheduledMessageResponse = CreateScheduledMessageResponses[keyof CreateScheduledMessageResponses];
8489
+ export type CancelScheduledMessageData = {
8490
+ body?: never;
8491
+ path: {
8492
+ /**
8493
+ * The end user's `eu_...` id, or your own id for them.
8494
+ */
8495
+ end_user_id: string;
8496
+ /**
8497
+ * The message's `om_...` id.
8498
+ */
8499
+ message_id: string;
8500
+ };
8501
+ query?: never;
8502
+ url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}';
8503
+ };
8504
+ export type CancelScheduledMessageErrors = {
8505
+ /**
8506
+ * Missing or invalid credentials
8507
+ */
8508
+ 401: ErrorResponse;
8509
+ /**
8510
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
8511
+ */
8512
+ 403: ErrorResponse;
8513
+ /**
8514
+ * Unknown end user id Or: No such scheduled message for this end user.
8515
+ */
8516
+ 404: ErrorResponse;
8517
+ /**
8518
+ * Already written, skipped, cancelled or failed
8519
+ */
8520
+ 409: ErrorResponse;
8521
+ /**
8522
+ * The request failed validation
8523
+ */
8524
+ 422: ErrorResponse;
8525
+ /**
8526
+ * Rate limit exceeded
8527
+ */
8528
+ 429: ErrorResponse;
8529
+ };
8530
+ export type CancelScheduledMessageError = CancelScheduledMessageErrors[keyof CancelScheduledMessageErrors];
8531
+ export type CancelScheduledMessageResponses = {
8532
+ /**
8533
+ * Cancelled
8534
+ */
8535
+ 200: ScheduledMessage;
8536
+ };
8537
+ export type CancelScheduledMessageResponse = CancelScheduledMessageResponses[keyof CancelScheduledMessageResponses];
8538
+ export type GetScheduledMessageData = {
8539
+ body?: never;
8540
+ path: {
8541
+ /**
8542
+ * The end user's `eu_...` id, or your own id for them.
8543
+ */
8544
+ end_user_id: string;
8545
+ /**
8546
+ * The message's `om_...` id.
8547
+ */
8548
+ message_id: string;
8549
+ };
8550
+ query?: never;
8551
+ url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}';
8552
+ };
8553
+ export type GetScheduledMessageErrors = {
8554
+ /**
8555
+ * Missing or invalid credentials
8556
+ */
8557
+ 401: ErrorResponse;
8558
+ /**
8559
+ * The key is valid but its scopes do not cover this capability — a key limited to `tts` gets this from `/v1/images` rather than a 401
8560
+ */
8561
+ 403: ErrorResponse;
8562
+ /**
8563
+ * Unknown end user id Or: No such scheduled message for this end user.
8564
+ */
8565
+ 404: ErrorResponse;
8566
+ /**
8567
+ * The request failed validation
8568
+ */
8569
+ 422: ErrorResponse;
8570
+ /**
8571
+ * Rate limit exceeded
8572
+ */
8573
+ 429: ErrorResponse;
8574
+ };
8575
+ export type GetScheduledMessageError = GetScheduledMessageErrors[keyof GetScheduledMessageErrors];
8576
+ export type GetScheduledMessageResponses = {
8577
+ /**
8578
+ * Success
8579
+ */
8580
+ 200: ScheduledMessage;
8581
+ };
8582
+ export type GetScheduledMessageResponse = GetScheduledMessageResponses[keyof GetScheduledMessageResponses];
8088
8583
  export type ListKnowledgeCategoriesData = {
8089
8584
  body?: never;
8090
8585
  path?: never;
package/dist/index.d.ts CHANGED
@@ -10,7 +10,7 @@ export type * from "./gen/index.js";
10
10
  export type { Page } from "./paging.js";
11
11
  export type { AgentKnowledge, AgentSettings, Agents, AgentTools, } from "./resources/agents.js";
12
12
  export type { AssetListParams, Assets, AssetUploadFields, FolderListParams, Folders, } from "./resources/assets.js";
13
- export type { EndUserCreated, EndUserExport, EndUserListParams, EndUserMemories, EndUserMemoryListParams, EndUsers, } from "./resources/end-users.js";
13
+ export type { EndUserCreated, EndUserExport, EndUserListParams, EndUserMemories, EndUserMemoryListParams, EndUserScheduledMessages, EndUsers, } from "./resources/end-users.js";
14
14
  export type { EphemeralKeyCreateOptions, EphemeralKeyListParams, EphemeralKeyRevokeOptions, EphemeralKeys, } from "./resources/ephemeral-keys.js";
15
15
  export type { GenerationListParams, Generations, Images, Jobs, Skybox, } from "./resources/generations.js";
16
16
  export type { Knowledge, KnowledgeInsightsParams, KnowledgeListParams, KnowledgeUploadFields, } from "./resources/knowledge.js";
@@ -34,7 +34,7 @@
34
34
  * read fails with a 401; its one micro-credit is set aside like any key's,
35
35
  * so an organisation with no balance cannot export (402).
36
36
  */
37
- import type { ConversationReport, ConversationReportPage, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, ListEndUserReportsData, ListEndUsersData, MemoriesDeleted, MemoryInfo, MemoryPage, NoteCreateRequest, NoteTaken, SessionDetail, ToolResultRequest, ToolResultTaken } from "../gen/index.js";
37
+ import type { ConversationReport, ConversationReportPage, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, ListEndUserReportsData, ListEndUsersData, MemoriesDeleted, MemoryInfo, MemoryPage, NoteCreateRequest, NoteTaken, ScheduledMessage, ScheduledMessageCreateRequest, SessionDetail, ToolResultRequest, ToolResultTaken } from "../gen/index.js";
38
38
  import { type RequestOptions, type Transport } from "../transport.js";
39
39
  import type { EphemeralKeys } from "./ephemeral-keys.js";
40
40
  import { Editable } from "./resource.js";
@@ -135,11 +135,36 @@ export interface EndUserReports {
135
135
  /** One report. A `NotFoundError` when there is none, or no such person. */
136
136
  get(id: string, reportId: string, options?: RequestOptions): Promise<ConversationReport>;
137
137
  }
138
+ /**
139
+ * `endUsers.scheduledMessages`: messages an agent writes to one person
140
+ * first, at a set time, while they are away —
141
+ * `/v1/end-users/{id}/scheduled-messages`. The agent needs
142
+ * `outreach_enabled`; each message is one model call, paid from your
143
+ * balance; your webhook is sent it to show as a notification.
144
+ */
145
+ export interface EndUserScheduledMessages {
146
+ /**
147
+ * Schedules one: the agent writes about `note`, in character, at
148
+ * `send_at`. 409 when the agent does not write first or the person's day
149
+ * or queue is full; 402 when your balance cannot set its reserve aside.
150
+ */
151
+ create(id: string, body: ScheduledMessageCreateRequest, options?: RequestOptions): Promise<ScheduledMessage>;
152
+ /** Every message, newest `send_at` first; `status` to filter. */
153
+ list(id: string, params?: {
154
+ status?: ScheduledMessage["status"];
155
+ }, options?: RequestOptions): AsyncGenerator<ScheduledMessage, void, undefined>;
156
+ /** One message. */
157
+ get(id: string, messageId: string, options?: RequestOptions): Promise<ScheduledMessage>;
158
+ /** Cancels one still waiting; 409 one no longer waiting. */
159
+ cancel(id: string, messageId: string, options?: RequestOptions): Promise<ScheduledMessage>;
160
+ }
138
161
  export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest, EndUserInfo, EndUserDeleted | null> {
139
162
  private readonly keys;
140
163
  readonly facts: EndUserFacts;
141
164
  readonly memories: EndUserMemories;
142
165
  readonly personalization: EndUserPersonalizations;
166
+ /** Messages an agent writes to the person first: `endUsers.scheduledMessages`. */
167
+ readonly scheduledMessages: EndUserScheduledMessages;
143
168
  readonly reports: EndUserReports;
144
169
  constructor(api: Transport, base: string, keys: EphemeralKeys);
145
170
  /**
@@ -100,6 +100,13 @@ export class EndUsers extends Editable {
100
100
  page: (id, params = {}, options) => this.send("GET", reports(id), options, params),
101
101
  get: (id, reportId, options) => this.send("GET", reports(id, `/${segment(reportId)}`), options),
102
102
  };
103
+ const message = (id, messageId) => this.at(id, `/scheduled-messages/${segment(messageId)}`);
104
+ this.scheduledMessages = {
105
+ create: (id, body, options) => this.send("POST", this.at(id, "/scheduled-messages"), options, body),
106
+ list: (id, params = {}, options) => this.each(this.at(id, "/scheduled-messages"), params, options, PAGE),
107
+ get: (id, messageId, options) => this.send("GET", message(id, messageId), options),
108
+ cancel: (id, messageId, options) => this.send("DELETE", message(id, messageId), options),
109
+ };
103
110
  }
104
111
  /**
105
112
  * Makes a person, or finds the one your `external_id` already names.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.34.0",
3
+ "version": "0.40.0",
4
4
  "description": "The Lumavox API from your server: end users, ephemeral keys and the rest, typed from the published OpenAPI document. Zero dependencies.",
5
5
  "license": "MIT",
6
6
  "type": "module",