@lumavox/server 0.32.0 → 0.34.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.
@@ -1 +1 @@
1
- export type { AgentCreateRequest, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, 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, 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, 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, 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, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, 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, 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, WriteSessionMemoriesData, WriteSessionMemoriesError, WriteSessionMemoriesErrors, WriteSessionMemoriesResponse, WriteSessionMemoriesResponses } from './types.gen.js';
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';
@@ -1837,6 +1837,44 @@ export type AgentPage = {
1837
1837
  next_cursor: string | null;
1838
1838
  };
1839
1839
  export type AgentSummary = {
1840
+ /**
1841
+ * Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
1842
+ *
1843
+ * A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
1844
+ */
1845
+ report_enabled: boolean;
1846
+ /**
1847
+ * What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). `[]` for none.
1848
+ */
1849
+ report_fields: Array<AgentReportFieldInfo>;
1850
+ /**
1851
+ * What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
1852
+ */
1853
+ report_success: string | null;
1854
+ /**
1855
+ * Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
1856
+ */
1857
+ report_instruction: string | null;
1858
+ /**
1859
+ * Model for writing a conversation's report. Unset uses the agent's own.
1860
+ */
1861
+ report_model: string | null;
1862
+ /**
1863
+ * Thinking level for the report. Unset sends none, so the model's own default applies.
1864
+ */
1865
+ report_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
1866
+ /**
1867
+ * Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
1868
+ */
1869
+ report_max_output_tokens: number | null;
1870
+ /**
1871
+ * Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
1872
+ */
1873
+ report_transcript: boolean;
1874
+ /**
1875
+ * 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
+ */
1877
+ webhook_url: string | null;
1840
1878
  /**
1841
1879
  * 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.
1842
1880
  */
@@ -2091,6 +2129,24 @@ export type AgentSummary = {
2091
2129
  */
2092
2130
  last_used_at: string | null;
2093
2131
  };
2132
+ export type AgentReportFieldInfo = {
2133
+ /**
2134
+ * The field's name in the report: lowercase letters, digits and `_`, starting with a letter, at most 40 characters, each name once.
2135
+ */
2136
+ name: string;
2137
+ /**
2138
+ * `text`, `number`, `boolean` (yes or no), or `choice`, one of `choices`.
2139
+ */
2140
+ type: 'text' | 'number' | 'boolean' | 'choice';
2141
+ /**
2142
+ * What it means, in a line the model reads to fill it: `Whether the player agreed to start a quest.` 1 to 500 characters.
2143
+ */
2144
+ description: string;
2145
+ /**
2146
+ * A `choice`'s values, in order; `null` for any other type.
2147
+ */
2148
+ choices: Array<string> | null;
2149
+ };
2094
2150
  export type AgentHandoffInfo = {
2095
2151
  agent_id: string;
2096
2152
  /**
@@ -2146,6 +2202,44 @@ export type AgentVoiceInfo = {
2146
2202
  voice_id: string | null;
2147
2203
  };
2148
2204
  export type AgentInfo = {
2205
+ /**
2206
+ * Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
2207
+ *
2208
+ * A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
2209
+ */
2210
+ report_enabled: boolean;
2211
+ /**
2212
+ * What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). `[]` for none.
2213
+ */
2214
+ report_fields: Array<AgentReportFieldInfo>;
2215
+ /**
2216
+ * What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
2217
+ */
2218
+ report_success: string | null;
2219
+ /**
2220
+ * Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
2221
+ */
2222
+ report_instruction: string | null;
2223
+ /**
2224
+ * Model for writing a conversation's report. Unset uses the agent's own.
2225
+ */
2226
+ report_model: string | null;
2227
+ /**
2228
+ * Thinking level for the report. Unset sends none, so the model's own default applies.
2229
+ */
2230
+ report_thinking_level: 'minimal' | 'low' | 'medium' | 'high' | null;
2231
+ /**
2232
+ * Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
2233
+ */
2234
+ report_max_output_tokens: number | null;
2235
+ /**
2236
+ * Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
2237
+ */
2238
+ report_transcript: boolean;
2239
+ /**
2240
+ * 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
+ */
2242
+ webhook_url: string | null;
2149
2243
  /**
2150
2244
  * 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.
2151
2245
  */
@@ -2389,6 +2483,44 @@ export type AgentInfo = {
2389
2483
  version: number;
2390
2484
  };
2391
2485
  export type AgentCreateRequest = {
2486
+ /**
2487
+ * Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
2488
+ *
2489
+ * A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
2490
+ */
2491
+ report_enabled?: boolean | null;
2492
+ /**
2493
+ * What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). The complete list, in order: `null` or `[]` clears it.
2494
+ */
2495
+ report_fields?: Array<AgentReportField> | null;
2496
+ /**
2497
+ * What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
2498
+ */
2499
+ report_success?: string | null;
2500
+ /**
2501
+ * Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
2502
+ */
2503
+ report_instruction?: string | null;
2504
+ /**
2505
+ * Model for writing a conversation's report. Unset uses the agent's own.
2506
+ */
2507
+ report_model?: string | null;
2508
+ /**
2509
+ * Thinking level for the report. Unset sends none, so the model's own default applies.
2510
+ */
2511
+ report_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
2512
+ /**
2513
+ * Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
2514
+ */
2515
+ report_max_output_tokens?: number | null;
2516
+ /**
2517
+ * Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
2518
+ */
2519
+ report_transcript?: boolean | null;
2520
+ /**
2521
+ * 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
+ */
2523
+ webhook_url?: string | null;
2392
2524
  /**
2393
2525
  * 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.
2394
2526
  */
@@ -2624,6 +2756,24 @@ export type AgentCreateRequest = {
2624
2756
  */
2625
2757
  voice_enabled?: boolean | null;
2626
2758
  };
2759
+ export type AgentReportField = {
2760
+ /**
2761
+ * The field's name in the report: lowercase letters, digits and `_`, starting with a letter, at most 40 characters, each name once.
2762
+ */
2763
+ name: string;
2764
+ /**
2765
+ * `text`, `number`, `boolean` (yes or no), or `choice`, one of `choices`.
2766
+ */
2767
+ type: 'text' | 'number' | 'boolean' | 'choice';
2768
+ /**
2769
+ * What it means, in a line the model reads to fill it: `Whether the player agreed to start a quest.` 1 to 500 characters.
2770
+ */
2771
+ description: string;
2772
+ /**
2773
+ * A `choice`'s values, 2 to 20, each 1 to 100 characters and listed once; the report's value is one of them, or `null`. Only for a `choice`.
2774
+ */
2775
+ choices?: Array<string> | null;
2776
+ };
2627
2777
  export type AgentHandoff = {
2628
2778
  /**
2629
2779
  * Another agent of yours: never this one, nor one already listed.
@@ -2711,6 +2861,10 @@ export type AgentSettingsInfo = {
2711
2861
  * Organisation-wide: every agent here uses it. It is read when a socket connects, so a change reaches the next connection rather than the ones already open.
2712
2862
  */
2713
2863
  resume_greeting_after_minutes: number | null;
2864
+ /**
2865
+ * Where every agent's events go — a conversation's report — unless the agent sets its own `webhook_url`: an `https://` address of yours, each post signed with your organisation's webhook secret. Refused (422) until there is one: `POST /v1/agents/settings/webhook-secret`.
2866
+ */
2867
+ webhook_url: string | null;
2714
2868
  /**
2715
2869
  * How old this person's last conversation may be and still be **continued** rather than replaced, in days.
2716
2870
  *
@@ -2735,6 +2889,10 @@ export type AgentSettingsInfo = {
2735
2889
  * The platform's relationship instruction, served as it stands so the console never shows a stale copy of it.
2736
2890
  */
2737
2891
  built_in_relation_instruction: string;
2892
+ /**
2893
+ * Your organisation's webhook secret's last four characters, to tell which one your server holds; `null` until one is made. The secret itself is shown once, when it is made.
2894
+ */
2895
+ webhook_secret_hint: string | null;
2738
2896
  /**
2739
2897
  * Every mood label the gateway accepts. A reply reporting anything else is stored with no mood rather than with a made-up one, so an overridden instruction should name these.
2740
2898
  */
@@ -2771,6 +2929,10 @@ export type AgentSettingsUpdate = {
2771
2929
  * Organisation-wide: every agent here uses it. It is read when a socket connects, so a change reaches the next connection rather than the ones already open.
2772
2930
  */
2773
2931
  resume_greeting_after_minutes?: number | null;
2932
+ /**
2933
+ * Where every agent's events go — a conversation's report — unless the agent sets its own `webhook_url`: an `https://` address of yours, each post signed with your organisation's webhook secret. Refused (422) until there is one: `POST /v1/agents/settings/webhook-secret`.
2934
+ */
2935
+ webhook_url?: string | null;
2774
2936
  /**
2775
2937
  * How old this person's last conversation may be and still be **continued** rather than replaced, in days.
2776
2938
  *
@@ -2780,7 +2942,55 @@ export type AgentSettingsUpdate = {
2780
2942
  */
2781
2943
  resume_max_age_days?: number | null;
2782
2944
  };
2945
+ export type WebhookSecret = {
2946
+ /**
2947
+ * The secret your server checks each post's `X-Webhook-Signature` with. **Shown this once**: store it now. The one before it stops signing at once.
2948
+ */
2949
+ secret: string;
2950
+ /**
2951
+ * Its last four characters.
2952
+ */
2953
+ secret_hint: string;
2954
+ };
2783
2955
  export type AgentUpdate = {
2956
+ /**
2957
+ * Whether a report is written after each conversation with this agent, for your server: a summary, the fields you list in `report_fields`, success by `report_success`, and its numbers. **Off by default**: each report is a model call, charged to the conversation's key while it has credit and to your balance after.
2958
+ *
2959
+ * A conversation is over when the app sends `end` on the socket, or after five minutes with no turn; a person who comes back later gets a new report of only the new part. Read reports with `GET /v1/end-users/{end_user_id}/reports`.
2960
+ */
2961
+ report_enabled?: boolean | null;
2962
+ /**
2963
+ * What a conversation's report fills, besides its summary, at most 20: each read from the conversation by the model, `null` when the conversation did not say. Old Bram the shopkeeper's might be `quest_started` (yes or no) and `item` (text). The complete list, in order: `null` or `[]` clears it.
2964
+ */
2965
+ report_fields?: Array<AgentReportField> | null;
2966
+ /**
2967
+ * What counts as a success, in plain words the model judges each conversation by: `success = the problem was solved`. A report's `success` is `true` or `false` by it; unset, `null`. At most 1000 characters.
2968
+ */
2969
+ report_success?: string | null;
2970
+ /**
2971
+ * Anything else the report should follow, added to the platform's request: `Write the summary in English.` At most 2000 characters.
2972
+ */
2973
+ report_instruction?: string | null;
2974
+ /**
2975
+ * Model for writing a conversation's report. Unset uses the agent's own.
2976
+ */
2977
+ report_model?: string | null;
2978
+ /**
2979
+ * Thinking level for the report. Unset sends none, so the model's own default applies.
2980
+ */
2981
+ report_thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
2982
+ /**
2983
+ * Length cap on a report's answer, in tokens — the model's thinking included. Unset sends none.
2984
+ */
2985
+ report_max_output_tokens?: number | null;
2986
+ /**
2987
+ * Whether a report carries the messages it read, as `transcript` — in the webhook and on the API. Off by default: a report says what happened; the transcript is the conversation again, up to 200,000 characters.
2988
+ */
2989
+ report_transcript?: boolean | null;
2990
+ /**
2991
+ * 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
+ */
2993
+ webhook_url?: string | null;
2784
2994
  /**
2785
2995
  * 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.
2786
2996
  */
@@ -3020,6 +3230,28 @@ export type AgentUpdate = {
3020
3230
  */
3021
3231
  expected_version?: number | null;
3022
3232
  };
3233
+ export type WebhookTestResult = {
3234
+ /**
3235
+ * Your server answered a 2xx.
3236
+ */
3237
+ ok: boolean;
3238
+ /**
3239
+ * Its HTTP status; `null` when none came.
3240
+ */
3241
+ status: number | null;
3242
+ /**
3243
+ * From sending to its answer.
3244
+ */
3245
+ duration_ms: number;
3246
+ /**
3247
+ * The first 2 KB of what it said, as text.
3248
+ */
3249
+ answer: string;
3250
+ /**
3251
+ * Why it is not taken, or `null`.
3252
+ */
3253
+ error: string | null;
3254
+ };
3023
3255
  export type EndUserInfo = {
3024
3256
  created_at: string;
3025
3257
  /**
@@ -3168,6 +3400,131 @@ export type EndUserPersonalizationUpdate = {
3168
3400
  instructions?: string | null;
3169
3401
  variables?: Variables | null;
3170
3402
  };
3403
+ export type ConversationReportPage = {
3404
+ data: Array<ConversationReport>;
3405
+ /**
3406
+ * Pass as `cursor` for the next page; `null` when this is the last.
3407
+ */
3408
+ next_cursor: string | null;
3409
+ };
3410
+ export type ConversationReport = {
3411
+ /**
3412
+ * The report's id.
3413
+ */
3414
+ id: string;
3415
+ /**
3416
+ * The person's `eu_...` id.
3417
+ */
3418
+ end_user_id: string;
3419
+ /**
3420
+ * The conversation it reports on.
3421
+ */
3422
+ session_id: string;
3423
+ /**
3424
+ * The agent that had the conversation when the report was written: its `report_fields` and `report_success` are what it answers.
3425
+ */
3426
+ agent_id: string;
3427
+ /**
3428
+ * Every agent that spoke in the part reported, in order of first word: more than one when an agent handed the conversation on.
3429
+ */
3430
+ agent_ids: Array<string>;
3431
+ /**
3432
+ * What made it due: `ended`, the app sent `end`; `quiet`, five minutes with no turn; `max_wait`, a conversation that never went quiet, reported after the platform's `agents.memory.max_wait_hours`.
3433
+ */
3434
+ trigger: 'ended' | 'quiet' | 'max_wait';
3435
+ /**
3436
+ * What happened, in one to three plain sentences.
3437
+ */
3438
+ summary: string;
3439
+ /**
3440
+ * Whether the conversation met the agent's `report_success` rule; `null` when the agent has none.
3441
+ */
3442
+ success: boolean | null;
3443
+ /**
3444
+ * Each of the agent's `report_fields` by name, in its order: text, a number, `true` or `false`, or one of a choice's values — `null` when the conversation did not say.
3445
+ */
3446
+ fields: {
3447
+ [key: string]: string | number | boolean | null;
3448
+ };
3449
+ /**
3450
+ * The first message of the part reported.
3451
+ */
3452
+ started_at: string;
3453
+ /**
3454
+ * Its last message.
3455
+ */
3456
+ ended_at: string;
3457
+ /**
3458
+ * From the part's first message to its last.
3459
+ */
3460
+ duration_seconds: number;
3461
+ /**
3462
+ * Messages in the part: the person's and the agents'.
3463
+ */
3464
+ message_count: number;
3465
+ /**
3466
+ * The person's messages in it.
3467
+ */
3468
+ turn_count: number;
3469
+ /**
3470
+ * Your tools the agent called in the part, by name: how many times, and how many failed.
3471
+ */
3472
+ tool_calls: Array<{
3473
+ name: string;
3474
+ calls: number;
3475
+ failed: number;
3476
+ }>;
3477
+ /**
3478
+ * What the part's turns charged — the model, speech and hearing — not this report.
3479
+ */
3480
+ credits_micros: number;
3481
+ /**
3482
+ * What this report's own model call charged: to the conversation's key while it had credit, and past it to your balance, when the key settles.
3483
+ */
3484
+ report_credits_micros: number;
3485
+ /**
3486
+ * The model that wrote it.
3487
+ */
3488
+ model: string;
3489
+ created_at: string;
3490
+ webhook: ReportDelivery;
3491
+ /**
3492
+ * The messages the report read, oldest first — the part reported and the few before it — with the agent's `report_transcript` on when it was written; `null` without.
3493
+ */
3494
+ transcript: Array<ReportLine> | null;
3495
+ };
3496
+ export type ReportDelivery = {
3497
+ /**
3498
+ * `none`: the agent had no webhook address when it was written; `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`.
3499
+ */
3500
+ status: 'none' | 'pending' | 'delivered' | 'failed';
3501
+ /**
3502
+ * Posts so far.
3503
+ */
3504
+ attempts: number;
3505
+ /**
3506
+ * Your server's last answer's status; `null` for none.
3507
+ */
3508
+ last_status: number | null;
3509
+ /**
3510
+ * Why the last post was not taken; `null` once one was.
3511
+ */
3512
+ last_error: string | null;
3513
+ /**
3514
+ * When your server took it.
3515
+ */
3516
+ delivered_at: string | null;
3517
+ };
3518
+ export type ReportLine = {
3519
+ seq: number;
3520
+ role: 'user' | 'assistant';
3521
+ content: string;
3522
+ /**
3523
+ * The agent that had the conversation; `null` for its first.
3524
+ */
3525
+ agent_id: string | null;
3526
+ created_at: string;
3527
+ };
3171
3528
  export type KnowledgeCategoryPage = {
3172
3529
  data: Array<string>;
3173
3530
  /**
@@ -6704,6 +7061,42 @@ export type UpdateAgentSettingsResponses = {
6704
7061
  200: AgentSettingsInfo;
6705
7062
  };
6706
7063
  export type UpdateAgentSettingsResponse = UpdateAgentSettingsResponses[keyof UpdateAgentSettingsResponses];
7064
+ export type RotateWebhookSecretData = {
7065
+ body?: never;
7066
+ path?: never;
7067
+ query?: never;
7068
+ url: '/v1/agents/settings/webhook-secret';
7069
+ };
7070
+ export type RotateWebhookSecretErrors = {
7071
+ /**
7072
+ * Missing or invalid credentials
7073
+ */
7074
+ 401: ErrorResponse;
7075
+ /**
7076
+ * 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
7077
+ */
7078
+ 403: ErrorResponse;
7079
+ /**
7080
+ * The request failed validation
7081
+ */
7082
+ 422: ErrorResponse;
7083
+ /**
7084
+ * Rate limit exceeded
7085
+ */
7086
+ 429: ErrorResponse;
7087
+ /**
7088
+ * This deployment cannot seal secrets (TOOL_SECRET_KEY is missing or invalid)
7089
+ */
7090
+ 503: ErrorResponse;
7091
+ };
7092
+ export type RotateWebhookSecretError = RotateWebhookSecretErrors[keyof RotateWebhookSecretErrors];
7093
+ export type RotateWebhookSecretResponses = {
7094
+ /**
7095
+ * The secret, shown this once
7096
+ */
7097
+ 200: WebhookSecret;
7098
+ };
7099
+ export type RotateWebhookSecretResponse = RotateWebhookSecretResponses[keyof RotateWebhookSecretResponses];
6707
7100
  export type DeleteAgentData = {
6708
7101
  body?: never;
6709
7102
  path: {
@@ -6826,6 +7219,48 @@ export type UpdateAgentResponses = {
6826
7219
  200: AgentInfo;
6827
7220
  };
6828
7221
  export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
7222
+ export type TestAgentWebhookData = {
7223
+ body?: never;
7224
+ path: {
7225
+ agent_id: string;
7226
+ };
7227
+ query?: never;
7228
+ url: '/v1/agents/{agent_id}/webhook-test';
7229
+ };
7230
+ export type TestAgentWebhookErrors = {
7231
+ /**
7232
+ * Missing or invalid credentials
7233
+ */
7234
+ 401: ErrorResponse;
7235
+ /**
7236
+ * 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
7237
+ */
7238
+ 403: ErrorResponse;
7239
+ /**
7240
+ * Unknown agent id
7241
+ */
7242
+ 404: ErrorResponse;
7243
+ /**
7244
+ * The stored secret cannot be opened any more: make another
7245
+ */
7246
+ 409: ErrorResponse;
7247
+ /**
7248
+ * This agent has no webhook address, nor does your organisation: set `webhook_url` on the agent or in /v1/agents/settings. Or: Your organisation has no webhook secret to sign with: POST /v1/agents/settings/webhook-secret.
7249
+ */
7250
+ 422: ErrorResponse;
7251
+ /**
7252
+ * Rate limit exceeded
7253
+ */
7254
+ 429: ErrorResponse;
7255
+ };
7256
+ export type TestAgentWebhookError = TestAgentWebhookErrors[keyof TestAgentWebhookErrors];
7257
+ export type TestAgentWebhookResponses = {
7258
+ /**
7259
+ * What your server answered
7260
+ */
7261
+ 200: WebhookTestResult;
7262
+ };
7263
+ export type TestAgentWebhookResponse = TestAgentWebhookResponses[keyof TestAgentWebhookResponses];
6829
7264
  export type ListEndUsersData = {
6830
7265
  body?: never;
6831
7266
  path?: never;
@@ -7509,6 +7944,96 @@ export type UpdateEndUserPersonalizationResponses = {
7509
7944
  200: EndUserPersonalization;
7510
7945
  };
7511
7946
  export type UpdateEndUserPersonalizationResponse = UpdateEndUserPersonalizationResponses[keyof UpdateEndUserPersonalizationResponses];
7947
+ export type ListEndUserReportsData = {
7948
+ body?: never;
7949
+ path: {
7950
+ end_user_id: string;
7951
+ };
7952
+ query?: {
7953
+ /**
7954
+ * Only this conversation's reports; one that is not this person's lists none.
7955
+ */
7956
+ session_id?: string;
7957
+ /**
7958
+ * How many to answer, 1 to 100.
7959
+ */
7960
+ limit?: number;
7961
+ /**
7962
+ * The `next_cursor` of the page before.
7963
+ */
7964
+ cursor?: string;
7965
+ };
7966
+ url: '/v1/end-users/{end_user_id}/reports';
7967
+ };
7968
+ export type ListEndUserReportsErrors = {
7969
+ /**
7970
+ * Missing or invalid credentials
7971
+ */
7972
+ 401: ErrorResponse;
7973
+ /**
7974
+ * 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
7975
+ */
7976
+ 403: ErrorResponse;
7977
+ /**
7978
+ * Unknown end user id
7979
+ */
7980
+ 404: ErrorResponse;
7981
+ /**
7982
+ * The request failed validation
7983
+ */
7984
+ 422: ErrorResponse;
7985
+ /**
7986
+ * Rate limit exceeded
7987
+ */
7988
+ 429: ErrorResponse;
7989
+ };
7990
+ export type ListEndUserReportsError = ListEndUserReportsErrors[keyof ListEndUserReportsErrors];
7991
+ export type ListEndUserReportsResponses = {
7992
+ /**
7993
+ * One page of reports, newest first
7994
+ */
7995
+ 200: ConversationReportPage;
7996
+ };
7997
+ export type ListEndUserReportsResponse = ListEndUserReportsResponses[keyof ListEndUserReportsResponses];
7998
+ export type GetEndUserReportData = {
7999
+ body?: never;
8000
+ path: {
8001
+ end_user_id: string;
8002
+ report_id: string;
8003
+ };
8004
+ query?: never;
8005
+ url: '/v1/end-users/{end_user_id}/reports/{report_id}';
8006
+ };
8007
+ export type GetEndUserReportErrors = {
8008
+ /**
8009
+ * Missing or invalid credentials
8010
+ */
8011
+ 401: ErrorResponse;
8012
+ /**
8013
+ * 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
8014
+ */
8015
+ 403: ErrorResponse;
8016
+ /**
8017
+ * Unknown end user id, or Unknown report id
8018
+ */
8019
+ 404: ErrorResponse;
8020
+ /**
8021
+ * The request failed validation
8022
+ */
8023
+ 422: ErrorResponse;
8024
+ /**
8025
+ * Rate limit exceeded
8026
+ */
8027
+ 429: ErrorResponse;
8028
+ };
8029
+ export type GetEndUserReportError = GetEndUserReportErrors[keyof GetEndUserReportErrors];
8030
+ export type GetEndUserReportResponses = {
8031
+ /**
8032
+ * The report
8033
+ */
8034
+ 200: ConversationReport;
8035
+ };
8036
+ export type GetEndUserReportResponse = GetEndUserReportResponses[keyof GetEndUserReportResponses];
7512
8037
  export type PostToolResultData = {
7513
8038
  body: ToolResultRequest;
7514
8039
  path: {
@@ -5,7 +5,10 @@
5
5
  *
6
6
  * - **A save reaches running sessions within a minute**, not at once: an
7
7
  * agent's version travels through the platform's `STANDING` copy.
8
- * - **`settings`** are the organisation's, for every agent;
8
+ * - **`settings`** are the organisation's, for every agent —
9
+ * **`settings.rotateWebhookSecret`** makes the one secret its webhook
10
+ * posts are signed with, shown once; **`testWebhook`** posts an agent's
11
+ * address a made-up report;
9
12
  * **`knowledge.set`** replaces the entries one agent may look up, and
10
13
  * **`tools.set`** the tools it can call.
11
14
  * - **`create` is a 409 at the plan's maximum agents**; `delete` answers
@@ -13,13 +16,15 @@
13
16
  * - **`list()` reads one page**: an organisation's agents are few, and the
14
17
  * route answers them all with `next_cursor` `null` (`paging.ts`).
15
18
  */
16
- import type { AgentCreateRequest, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentSettingsInfo, AgentSettingsUpdate, AgentSummary, AgentToolsUpdate, AgentUpdate, KnowledgeAssigned, KnowledgeInfo, ToolInfo, ToolsAssigned } from "../gen/index.js";
19
+ import type { AgentCreateRequest, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentSettingsInfo, AgentSettingsUpdate, AgentSummary, AgentToolsUpdate, AgentUpdate, KnowledgeAssigned, KnowledgeInfo, ToolInfo, ToolsAssigned, WebhookSecret, WebhookTestResult } from "../gen/index.js";
17
20
  import type { RequestOptions, Transport } from "../transport.js";
18
21
  import { Library } from "./resource.js";
19
22
  /** `agents.settings`: the organisation's, for every agent. */
20
23
  export interface AgentSettings {
21
24
  get(options?: RequestOptions): Promise<AgentSettingsInfo>;
22
25
  update(body: AgentSettingsUpdate, options?: RequestOptions): Promise<AgentSettingsInfo>;
26
+ /** Makes or replaces the organisation's webhook secret: shown this once. */
27
+ rotateWebhookSecret(options?: RequestOptions): Promise<WebhookSecret>;
23
28
  }
24
29
  /** `agents.knowledge`: the entries one agent may look up. */
25
30
  export interface AgentKnowledge {
@@ -40,6 +45,8 @@ export declare class Agents extends Library<AgentInfo, AgentUpdate, AgentSummary
40
45
  readonly knowledge: AgentKnowledge;
41
46
  readonly tools: AgentTools;
42
47
  constructor(api: Transport, base: string);
48
+ /** Posts the agent's webhook a made-up report, signed; what its server answered. */
49
+ testWebhook(agentId: string, options?: RequestOptions): Promise<WebhookTestResult>;
43
50
  /** An agent's links to what the organisation has: its knowledge, its tools. */
44
51
  protected links<T extends AgentKnowledge | AgentTools>(rest: string): T;
45
52
  }
@@ -5,7 +5,10 @@
5
5
  *
6
6
  * - **A save reaches running sessions within a minute**, not at once: an
7
7
  * agent's version travels through the platform's `STANDING` copy.
8
- * - **`settings`** are the organisation's, for every agent;
8
+ * - **`settings`** are the organisation's, for every agent —
9
+ * **`settings.rotateWebhookSecret`** makes the one secret its webhook
10
+ * posts are signed with, shown once; **`testWebhook`** posts an agent's
11
+ * address a made-up report;
9
12
  * **`knowledge.set`** replaces the entries one agent may look up, and
10
13
  * **`tools.set`** the tools it can call.
11
14
  * - **`create` is a 409 at the plan's maximum agents**; `delete` answers
@@ -20,10 +23,15 @@ export class Agents extends Library {
20
23
  this.settings = {
21
24
  get: (options) => this.send("GET", "/settings", options),
22
25
  update: (body, options) => this.send("PUT", "/settings", options, body),
26
+ rotateWebhookSecret: (options) => this.send("POST", "/settings/webhook-secret", options),
23
27
  };
24
28
  this.knowledge = this.links("/knowledge");
25
29
  this.tools = this.links("/tools");
26
30
  }
31
+ /** Posts the agent's webhook a made-up report, signed; what its server answered. */
32
+ testWebhook(agentId, options) {
33
+ return this.send("POST", this.at(agentId, "/webhook-test"), options);
34
+ }
27
35
  /** An agent's links to what the organisation has: its knowledge, its tools. */
28
36
  links(rest) {
29
37
  return {
@@ -34,12 +34,13 @@
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 { EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, 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, 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";
41
41
  export type EndUserListParams = NonNullable<ListEndUsersData["query"]>;
42
42
  export type EndUserMemoryListParams = NonNullable<ListEndUserMemoriesData["query"]>;
43
+ export type EndUserReportListParams = NonNullable<ListEndUserReportsData["query"]>;
43
44
  /** An end user `create` answered, and whether this call made them. */
44
45
  export type EndUserCreated = EndUserInfo & {
45
46
  /**
@@ -121,11 +122,25 @@ export interface EndUserPersonalizations {
121
122
  */
122
123
  update(id: string, body: EndUserPersonalizationUpdate, options?: RequestOptions): Promise<EndUserPersonalization>;
123
124
  }
125
+ /**
126
+ * `endUsers.reports`: what an agent with `report_enabled` wrote after each
127
+ * of one person's conversations — a summary, your fields, success by your
128
+ * rule — `/v1/end-users/{id}/reports`. Only an API key reads them.
129
+ */
130
+ export interface EndUserReports {
131
+ /** Every report, newest first, page after page; `session_id` keeps one conversation's. */
132
+ list(id: string, params?: Omit<EndUserReportListParams, "cursor">, options?: RequestOptions): AsyncGenerator<ConversationReport, void, undefined>;
133
+ /** One page, with the `next_cursor` of the next. */
134
+ page(id: string, params?: EndUserReportListParams, options?: RequestOptions): Promise<ConversationReportPage>;
135
+ /** One report. A `NotFoundError` when there is none, or no such person. */
136
+ get(id: string, reportId: string, options?: RequestOptions): Promise<ConversationReport>;
137
+ }
124
138
  export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest, EndUserInfo, EndUserDeleted | null> {
125
139
  private readonly keys;
126
140
  readonly facts: EndUserFacts;
127
141
  readonly memories: EndUserMemories;
128
142
  readonly personalization: EndUserPersonalizations;
143
+ readonly reports: EndUserReports;
129
144
  constructor(api: Transport, base: string, keys: EphemeralKeys);
130
145
  /**
131
146
  * Makes a person, or finds the one your `external_id` already names.
@@ -94,6 +94,12 @@ export class EndUsers extends Editable {
94
94
  get: (id, options) => this.send("GET", this.at(id, "/personalization"), options),
95
95
  update: (id, body, options) => this.send("PATCH", this.at(id, "/personalization"), options, body),
96
96
  };
97
+ const reports = (id, rest = "") => this.at(id, `/reports${rest}`);
98
+ this.reports = {
99
+ list: (id, params = {}, options) => this.each(reports(id), params, options, MEMORY_PAGE),
100
+ page: (id, params = {}, options) => this.send("GET", reports(id), options, params),
101
+ get: (id, reportId, options) => this.send("GET", reports(id, `/${segment(reportId)}`), options),
102
+ };
97
103
  }
98
104
  /**
99
105
  * 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.32.0",
3
+ "version": "0.34.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",