@lumavox/server 0.28.1 → 0.32.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 +1 -1
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/types.gen.d.ts +253 -0
- package/dist/resources/end-users.d.ts +27 -1
- package/dist/resources/end-users.js +15 -0
- package/package.json +1 -1
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` |
|
|
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` |
|
|
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` |
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -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, 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, EndUserUpdateRequest, EphemeralKeyCreateRequest, EphemeralKeyCreateResponse, EphemeralKeyInfo, EphemeralKeyLimits, 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, 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, MessageInfo, MessageKnowledge, MessageMemories, MessagePage, MessageSource, MessageToolCall, MoveAssetsData, MoveAssetsError, MoveAssetsErrors, MoveAssetsResponse, MoveAssetsResponses, 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, 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, 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, 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';
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -180,6 +180,38 @@ export type EphemeralKeyCreateRequest = {
|
|
|
180
180
|
end_user_id: string;
|
|
181
181
|
agent_ids?: Array<string> | null;
|
|
182
182
|
label?: string | null;
|
|
183
|
+
overrides?: EphemeralKeyOverrides | null;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* What this key changes for the conversations it talks in: the language, the voice, the opening line and extra instructions. Signed into the key, so the person's app cannot change them; never the model. A key whose overrides make it longer than 16,384 characters is a 422 — text in scripts of 3 or 4 bytes a character, at every maximum.
|
|
187
|
+
*/
|
|
188
|
+
export type EphemeralKeyOverrides = {
|
|
189
|
+
/**
|
|
190
|
+
* Extra instructions for this key's conversations — "Today Sara is practising animals." — up to 2,000 characters, after the person's own (`/v1/end-users/{end_user_id}/personalization`) and before what the agent remembers of them. About 500 input tokens on every reply at the full length.
|
|
191
|
+
*/
|
|
192
|
+
instructions?: string | null;
|
|
193
|
+
/**
|
|
194
|
+
* The language the agent speaks and writes in, as a code of 2 to 8 letters, digits and hyphens — `es`, `pt-BR` — whatever language the person uses; and the hint a recording is heard with when it names none.
|
|
195
|
+
*/
|
|
196
|
+
language?: string | null;
|
|
197
|
+
/**
|
|
198
|
+
* A voice to speak with in place of the agent's: one of yours or the platform's (`GET /v1/voices`), for every agent on this key's conversations, a handoff's too. Looked up when the key is minted: an unknown one is a 422. An agent with its voice off stays silent. On another provider than the agent's voice model, that provider's default agent model, without the agent's voice settings.
|
|
199
|
+
*/
|
|
200
|
+
voice_id?: string | null;
|
|
201
|
+
/**
|
|
202
|
+
* An opening line said as written, in place of the agent's own — written or scripted — when a conversation is greeted. Up to 1,000 characters. No model call.
|
|
203
|
+
*/
|
|
204
|
+
first_message?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Values a scripted opening line's blanks are filled from, before the person's own: `{"name": "Sara"}` fills "Hi {{name|there}}!" as "Hi Sara!". The agent's scripted line, or `first_message` above.
|
|
207
|
+
*/
|
|
208
|
+
variables?: Variables | null;
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Values a scripted opening line's blanks are filled from — `{"name": "Sara"}` fills "Hi {{name|there}}!" as "Hi Sara!" — after a key's own (`overrides.variables`). At most 10, each named in lowercase letters, digits and underscores, starting with a letter, in at most 40 characters, each text of 1 to 100 characters. Only a scripted line has blanks: plain text replacement, no model.
|
|
212
|
+
*/
|
|
213
|
+
export type Variables = {
|
|
214
|
+
[key: string]: string;
|
|
183
215
|
};
|
|
184
216
|
export type EphemeralKeyPage = {
|
|
185
217
|
data: Array<EphemeralKeyInfo>;
|
|
@@ -1309,6 +1341,14 @@ export type MessagePage = {
|
|
|
1309
1341
|
};
|
|
1310
1342
|
export type MessageInfo = {
|
|
1311
1343
|
content: string;
|
|
1344
|
+
/**
|
|
1345
|
+
* The notes to the agent told with this message: on a person's message, those that were waiting when they said it; on a reply nobody's message started, those it answered. Empty for none.
|
|
1346
|
+
*/
|
|
1347
|
+
notes: Array<MessageNote>;
|
|
1348
|
+
/**
|
|
1349
|
+
* On a person's message: what your app said about that moment, as sent with it. Null when it sent none, and on the agent's replies.
|
|
1350
|
+
*/
|
|
1351
|
+
context: MessageContext | null;
|
|
1312
1352
|
created_at: string;
|
|
1313
1353
|
id: string;
|
|
1314
1354
|
/**
|
|
@@ -1341,6 +1381,25 @@ export type MessageInfo = {
|
|
|
1341
1381
|
*/
|
|
1342
1382
|
tool_calls: Array<MessageToolCall>;
|
|
1343
1383
|
};
|
|
1384
|
+
export type MessageNote = {
|
|
1385
|
+
id: string;
|
|
1386
|
+
text: string;
|
|
1387
|
+
/**
|
|
1388
|
+
* Who sent it: `app`, the person's app over the socket (`note`) — told to the agent as the app's report, never an instruction — or `server`, yours (`POST /v1/end-users/{end_user_id}/notes`).
|
|
1389
|
+
*/
|
|
1390
|
+
source: 'app' | 'server';
|
|
1391
|
+
/**
|
|
1392
|
+
* Sent to be answered at once, rather than with the next reply.
|
|
1393
|
+
*/
|
|
1394
|
+
reply: boolean;
|
|
1395
|
+
created_at: string;
|
|
1396
|
+
};
|
|
1397
|
+
/**
|
|
1398
|
+
* What your app said about the moment of this message — named fields such as `emotion` or `lesson`, each a string, a number or a boolean — sent with it on the socket (`context` on `user_message` or `user_audio.end`). The agent read it in front of the message, and reads it again with the message on every later turn.
|
|
1399
|
+
*/
|
|
1400
|
+
export type MessageContext = {
|
|
1401
|
+
[key: string]: string | number | boolean;
|
|
1402
|
+
};
|
|
1344
1403
|
export type MessageKnowledge = {
|
|
1345
1404
|
lookups: Array<KnowledgeLookupInfo>;
|
|
1346
1405
|
/**
|
|
@@ -3041,6 +3100,74 @@ export type EndUserDeleted = {
|
|
|
3041
3100
|
*/
|
|
3042
3101
|
sessions_deleted: number;
|
|
3043
3102
|
};
|
|
3103
|
+
export type NoteTaken = {
|
|
3104
|
+
id: string;
|
|
3105
|
+
/**
|
|
3106
|
+
* The conversation it went to.
|
|
3107
|
+
*/
|
|
3108
|
+
session_id: string;
|
|
3109
|
+
reply: boolean;
|
|
3110
|
+
/**
|
|
3111
|
+
* The agent is speaking about it now, or will as soon as the reply in progress ends: `reply` was asked and the person is connected. False: it is told with the next reply.
|
|
3112
|
+
*/
|
|
3113
|
+
replying: boolean;
|
|
3114
|
+
created_at: string;
|
|
3115
|
+
};
|
|
3116
|
+
export type NoteCreateRequest = {
|
|
3117
|
+
/**
|
|
3118
|
+
* What the agent should know: "Her order shipped." 1 to 1,000 characters. The agent reads it with its next reply, in front of whatever the person says, as a note from your service — not as the person's words.
|
|
3119
|
+
*/
|
|
3120
|
+
text: string;
|
|
3121
|
+
/**
|
|
3122
|
+
* Have the agent speak about it at once, when the person is connected to the conversation, rather than with its next reply. With nobody connected it waits for the next reply all the same.
|
|
3123
|
+
*/
|
|
3124
|
+
reply?: boolean;
|
|
3125
|
+
/**
|
|
3126
|
+
* The conversation. Null: the person's conversation open on a socket now, the one used last — else their conversation used last.
|
|
3127
|
+
*/
|
|
3128
|
+
session_id?: string | null;
|
|
3129
|
+
};
|
|
3130
|
+
export type EndUserPersonalization = {
|
|
3131
|
+
/**
|
|
3132
|
+
* The end user's `eu_...` id.
|
|
3133
|
+
*/
|
|
3134
|
+
end_user_id: string;
|
|
3135
|
+
/**
|
|
3136
|
+
* Instructions every agent follows with this person, in every conversation with them: who they are and how to treat them — "Sara is 9 and learning English. Be patient. Never talk about prices." Up to 2,000 characters.
|
|
3137
|
+
*
|
|
3138
|
+
* **Your server's word, never the person's**: only an API key sets or reads them, so the person's own app cannot. Every agent reads them on its next reply, in conversations already open too.
|
|
3139
|
+
*
|
|
3140
|
+
* Not a fact: a fact (`/v1/end-users/{end_user_id}/facts`) is what is true about the person; these say how to behave with them. They sit in the agent's instructions after its own sections and before what it remembers of the person, so the part every person shares stays the provider's cached prompt — about 500 input tokens on every reply at the full 2,000 characters.
|
|
3141
|
+
*
|
|
3142
|
+
* Null for none.
|
|
3143
|
+
*/
|
|
3144
|
+
instructions: string | null;
|
|
3145
|
+
/**
|
|
3146
|
+
* Values a scripted opening line's blanks are filled from — `{"name": "Sara"}` fills "Hi {{name|there}}!" as "Hi Sara!" — after a key's own (`overrides.variables`). At most 10, each named in lowercase letters, digits and underscores, starting with a letter, in at most 40 characters, each text of 1 to 100 characters. Only a scripted line has blanks: plain text replacement, no model.
|
|
3147
|
+
*
|
|
3148
|
+
* `{}` for none.
|
|
3149
|
+
*/
|
|
3150
|
+
variables: {
|
|
3151
|
+
[key: string]: string;
|
|
3152
|
+
};
|
|
3153
|
+
/**
|
|
3154
|
+
* When they were last set or cleared. Null: never.
|
|
3155
|
+
*/
|
|
3156
|
+
updated_at: string | null;
|
|
3157
|
+
};
|
|
3158
|
+
export type EndUserPersonalizationUpdate = {
|
|
3159
|
+
/**
|
|
3160
|
+
* Instructions every agent follows with this person, in every conversation with them: who they are and how to treat them — "Sara is 9 and learning English. Be patient. Never talk about prices." Up to 2,000 characters.
|
|
3161
|
+
*
|
|
3162
|
+
* **Your server's word, never the person's**: only an API key sets or reads them, so the person's own app cannot. Every agent reads them on its next reply, in conversations already open too.
|
|
3163
|
+
*
|
|
3164
|
+
* Not a fact: a fact (`/v1/end-users/{end_user_id}/facts`) is what is true about the person; these say how to behave with them. They sit in the agent's instructions after its own sections and before what it remembers of the person, so the part every person shares stays the provider's cached prompt — about 500 input tokens on every reply at the full 2,000 characters.
|
|
3165
|
+
*
|
|
3166
|
+
* Absent, they are left as they are; `null` or blank text clears them.
|
|
3167
|
+
*/
|
|
3168
|
+
instructions?: string | null;
|
|
3169
|
+
variables?: Variables | null;
|
|
3170
|
+
};
|
|
3044
3171
|
export type KnowledgeCategoryPage = {
|
|
3045
3172
|
data: Array<string>;
|
|
3046
3173
|
/**
|
|
@@ -7256,6 +7383,132 @@ export type GetEndUserMemoryResponses = {
|
|
|
7256
7383
|
200: MemoryInfo;
|
|
7257
7384
|
};
|
|
7258
7385
|
export type GetEndUserMemoryResponse = GetEndUserMemoryResponses[keyof GetEndUserMemoryResponses];
|
|
7386
|
+
export type CreateEndUserNoteData = {
|
|
7387
|
+
body: NoteCreateRequest;
|
|
7388
|
+
path: {
|
|
7389
|
+
end_user_id: string;
|
|
7390
|
+
};
|
|
7391
|
+
query?: never;
|
|
7392
|
+
url: '/v1/end-users/{end_user_id}/notes';
|
|
7393
|
+
};
|
|
7394
|
+
export type CreateEndUserNoteErrors = {
|
|
7395
|
+
/**
|
|
7396
|
+
* The request could not be read: malformed JSON
|
|
7397
|
+
*/
|
|
7398
|
+
400: ErrorResponse;
|
|
7399
|
+
/**
|
|
7400
|
+
* Missing or invalid credentials
|
|
7401
|
+
*/
|
|
7402
|
+
401: ErrorResponse;
|
|
7403
|
+
/**
|
|
7404
|
+
* 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
|
|
7405
|
+
*/
|
|
7406
|
+
403: ErrorResponse;
|
|
7407
|
+
/**
|
|
7408
|
+
* Unknown end user id, a person with no conversation, or not that one
|
|
7409
|
+
*/
|
|
7410
|
+
404: ErrorResponse;
|
|
7411
|
+
/**
|
|
7412
|
+
* As many notes as the platform allows already wait
|
|
7413
|
+
*/
|
|
7414
|
+
409: ErrorResponse;
|
|
7415
|
+
/**
|
|
7416
|
+
* The request failed validation
|
|
7417
|
+
*/
|
|
7418
|
+
422: ErrorResponse;
|
|
7419
|
+
/**
|
|
7420
|
+
* Rate limit exceeded
|
|
7421
|
+
*/
|
|
7422
|
+
429: ErrorResponse;
|
|
7423
|
+
};
|
|
7424
|
+
export type CreateEndUserNoteError = CreateEndUserNoteErrors[keyof CreateEndUserNoteErrors];
|
|
7425
|
+
export type CreateEndUserNoteResponses = {
|
|
7426
|
+
/**
|
|
7427
|
+
* Taken: told with the next reply, or now
|
|
7428
|
+
*/
|
|
7429
|
+
201: NoteTaken;
|
|
7430
|
+
};
|
|
7431
|
+
export type CreateEndUserNoteResponse = CreateEndUserNoteResponses[keyof CreateEndUserNoteResponses];
|
|
7432
|
+
export type GetEndUserPersonalizationData = {
|
|
7433
|
+
body?: never;
|
|
7434
|
+
path: {
|
|
7435
|
+
end_user_id: string;
|
|
7436
|
+
};
|
|
7437
|
+
query?: never;
|
|
7438
|
+
url: '/v1/end-users/{end_user_id}/personalization';
|
|
7439
|
+
};
|
|
7440
|
+
export type GetEndUserPersonalizationErrors = {
|
|
7441
|
+
/**
|
|
7442
|
+
* Missing or invalid credentials
|
|
7443
|
+
*/
|
|
7444
|
+
401: ErrorResponse;
|
|
7445
|
+
/**
|
|
7446
|
+
* 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
|
|
7447
|
+
*/
|
|
7448
|
+
403: ErrorResponse;
|
|
7449
|
+
/**
|
|
7450
|
+
* Unknown end user id
|
|
7451
|
+
*/
|
|
7452
|
+
404: ErrorResponse;
|
|
7453
|
+
/**
|
|
7454
|
+
* The request failed validation
|
|
7455
|
+
*/
|
|
7456
|
+
422: ErrorResponse;
|
|
7457
|
+
/**
|
|
7458
|
+
* Rate limit exceeded
|
|
7459
|
+
*/
|
|
7460
|
+
429: ErrorResponse;
|
|
7461
|
+
};
|
|
7462
|
+
export type GetEndUserPersonalizationError = GetEndUserPersonalizationErrors[keyof GetEndUserPersonalizationErrors];
|
|
7463
|
+
export type GetEndUserPersonalizationResponses = {
|
|
7464
|
+
/**
|
|
7465
|
+
* What is set for them
|
|
7466
|
+
*/
|
|
7467
|
+
200: EndUserPersonalization;
|
|
7468
|
+
};
|
|
7469
|
+
export type GetEndUserPersonalizationResponse = GetEndUserPersonalizationResponses[keyof GetEndUserPersonalizationResponses];
|
|
7470
|
+
export type UpdateEndUserPersonalizationData = {
|
|
7471
|
+
body: EndUserPersonalizationUpdate;
|
|
7472
|
+
path: {
|
|
7473
|
+
end_user_id: string;
|
|
7474
|
+
};
|
|
7475
|
+
query?: never;
|
|
7476
|
+
url: '/v1/end-users/{end_user_id}/personalization';
|
|
7477
|
+
};
|
|
7478
|
+
export type UpdateEndUserPersonalizationErrors = {
|
|
7479
|
+
/**
|
|
7480
|
+
* The request could not be read: malformed JSON
|
|
7481
|
+
*/
|
|
7482
|
+
400: ErrorResponse;
|
|
7483
|
+
/**
|
|
7484
|
+
* Missing or invalid credentials
|
|
7485
|
+
*/
|
|
7486
|
+
401: ErrorResponse;
|
|
7487
|
+
/**
|
|
7488
|
+
* 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
|
|
7489
|
+
*/
|
|
7490
|
+
403: ErrorResponse;
|
|
7491
|
+
/**
|
|
7492
|
+
* Unknown end user id
|
|
7493
|
+
*/
|
|
7494
|
+
404: ErrorResponse;
|
|
7495
|
+
/**
|
|
7496
|
+
* The request failed validation
|
|
7497
|
+
*/
|
|
7498
|
+
422: ErrorResponse;
|
|
7499
|
+
/**
|
|
7500
|
+
* Rate limit exceeded
|
|
7501
|
+
*/
|
|
7502
|
+
429: ErrorResponse;
|
|
7503
|
+
};
|
|
7504
|
+
export type UpdateEndUserPersonalizationError = UpdateEndUserPersonalizationErrors[keyof UpdateEndUserPersonalizationErrors];
|
|
7505
|
+
export type UpdateEndUserPersonalizationResponses = {
|
|
7506
|
+
/**
|
|
7507
|
+
* What is set for them now
|
|
7508
|
+
*/
|
|
7509
|
+
200: EndUserPersonalization;
|
|
7510
|
+
};
|
|
7511
|
+
export type UpdateEndUserPersonalizationResponse = UpdateEndUserPersonalizationResponses[keyof UpdateEndUserPersonalizationResponses];
|
|
7259
7512
|
export type PostToolResultData = {
|
|
7260
7513
|
body: ToolResultRequest;
|
|
7261
7514
|
path: {
|
|
@@ -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 { EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, ListEndUsersData, MemoriesDeleted, MemoryInfo, MemoryPage, SessionDetail, ToolResultRequest, ToolResultTaken } from "../gen/index.js";
|
|
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";
|
|
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";
|
|
@@ -105,10 +105,27 @@ export interface EndUserMemories {
|
|
|
105
105
|
/** Forgets every memory of theirs: how many went. Their facts and conversations stay. */
|
|
106
106
|
deleteAll(id: string, options?: RequestOptions): Promise<MemoriesDeleted>;
|
|
107
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* `endUsers.personalization`: what your server sets for one person rather
|
|
110
|
+
* than the agent — the instructions every agent follows with them, and the
|
|
111
|
+
* values a scripted opening line's blanks (`{{name|there}}`) are filled from —
|
|
112
|
+
* `/v1/end-users/{id}/personalization`. Only an API key reads or sets
|
|
113
|
+
* it: the person's own app cannot.
|
|
114
|
+
*/
|
|
115
|
+
export interface EndUserPersonalizations {
|
|
116
|
+
/** What is set for them; `instructions` `null` for none. */
|
|
117
|
+
get(id: string, options?: RequestOptions): Promise<EndUserPersonalization>;
|
|
118
|
+
/**
|
|
119
|
+
* Sets or clears it: absent fields are untouched, `null` clears one.
|
|
120
|
+
* Every agent reads it on its next reply, in conversations already open.
|
|
121
|
+
*/
|
|
122
|
+
update(id: string, body: EndUserPersonalizationUpdate, options?: RequestOptions): Promise<EndUserPersonalization>;
|
|
123
|
+
}
|
|
108
124
|
export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest, EndUserInfo, EndUserDeleted | null> {
|
|
109
125
|
private readonly keys;
|
|
110
126
|
readonly facts: EndUserFacts;
|
|
111
127
|
readonly memories: EndUserMemories;
|
|
128
|
+
readonly personalization: EndUserPersonalizations;
|
|
112
129
|
constructor(api: Transport, base: string, keys: EphemeralKeys);
|
|
113
130
|
/**
|
|
114
131
|
* Makes a person, or finds the one your `external_id` already names.
|
|
@@ -129,6 +146,15 @@ export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest
|
|
|
129
146
|
* its deadline a 410.
|
|
130
147
|
*/
|
|
131
148
|
toolResult(id: string, callId: string, body: ToolResultRequest, options?: RequestOptions): Promise<ToolResultTaken>;
|
|
149
|
+
/**
|
|
150
|
+
* A note to the agent that is not a message — "Her order shipped." — for
|
|
151
|
+
* one of the person's conversations (`session_id`, else the one open now
|
|
152
|
+
* or used last): told with the agent's next reply, or at once with
|
|
153
|
+
* `reply: true` when they are connected (`replying` says which). A
|
|
154
|
+
* `NotFoundError` when they have no conversation; a `ConflictError`
|
|
155
|
+
* (409) when the platform's `agents.notes.pending_max` already wait.
|
|
156
|
+
*/
|
|
157
|
+
note(id: string, body: NoteCreateRequest, options?: RequestOptions): Promise<NoteTaken>;
|
|
132
158
|
/** Deletes them and all they had: the counts, or `null` when there is no such person. */
|
|
133
159
|
delete(id: string, options?: RequestOptions): Promise<EndUserDeleted | null>;
|
|
134
160
|
/** Everything about one person, read with a key of their own (see the header). */
|
|
@@ -90,6 +90,10 @@ export class EndUsers extends Editable {
|
|
|
90
90
|
delete: (id, memoryId, options) => drop(memories(id, `/${segment(memoryId)}`), options),
|
|
91
91
|
deleteAll: (id, options) => this.send("DELETE", memories(id), options),
|
|
92
92
|
};
|
|
93
|
+
this.personalization = {
|
|
94
|
+
get: (id, options) => this.send("GET", this.at(id, "/personalization"), options),
|
|
95
|
+
update: (id, body, options) => this.send("PATCH", this.at(id, "/personalization"), options, body),
|
|
96
|
+
};
|
|
93
97
|
}
|
|
94
98
|
/**
|
|
95
99
|
* Makes a person, or finds the one your `external_id` already names.
|
|
@@ -125,6 +129,17 @@ export class EndUsers extends Editable {
|
|
|
125
129
|
toolResult(id, callId, body, options) {
|
|
126
130
|
return this.send("POST", this.at(id, `/tool-calls/${segment(callId)}/result`), options, body);
|
|
127
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* A note to the agent that is not a message — "Her order shipped." — for
|
|
134
|
+
* one of the person's conversations (`session_id`, else the one open now
|
|
135
|
+
* or used last): told with the agent's next reply, or at once with
|
|
136
|
+
* `reply: true` when they are connected (`replying` says which). A
|
|
137
|
+
* `NotFoundError` when they have no conversation; a `ConflictError`
|
|
138
|
+
* (409) when the platform's `agents.notes.pending_max` already wait.
|
|
139
|
+
*/
|
|
140
|
+
note(id, body, options) {
|
|
141
|
+
return this.send("POST", this.at(id, "/notes"), options, body);
|
|
142
|
+
}
|
|
128
143
|
/** Deletes them and all they had: the counts, or `null` when there is no such person. */
|
|
129
144
|
delete(id, options) {
|
|
130
145
|
return this.drop(id, options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.32.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",
|