@lumavox/server 0.26.0 → 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 +450 -1
- package/dist/resources/end-users.d.ts +36 -1
- package/dist/resources/end-users.js +26 -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`; `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, 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, 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, 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
|
@@ -29,7 +29,7 @@ export type ErrorInfo = {
|
|
|
29
29
|
/**
|
|
30
30
|
* What went wrong, for a client to switch on: one per HTTP status, except `waitlisted`, a 403 of its own. New codes may be added.
|
|
31
31
|
*/
|
|
32
|
-
export type ErrorCode = 'invalid_request' | 'unauthenticated' | 'insufficient_credits' | 'forbidden' | 'waitlisted' | 'not_found' | 'method_not_allowed' | 'conflict' | 'too_large' | 'validation_failed' | 'rate_limited' | 'internal' | 'provider_failed' | 'unavailable';
|
|
32
|
+
export type ErrorCode = 'invalid_request' | 'unauthenticated' | 'insufficient_credits' | 'forbidden' | 'waitlisted' | 'not_found' | 'method_not_allowed' | 'conflict' | 'gone' | 'too_large' | 'validation_failed' | 'rate_limited' | 'internal' | 'provider_failed' | 'unavailable';
|
|
33
33
|
export type ValidationIssue = {
|
|
34
34
|
location: 'body' | 'query' | 'path' | 'header';
|
|
35
35
|
/**
|
|
@@ -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
|
/**
|
|
@@ -1328,6 +1368,10 @@ export type MessageInfo = {
|
|
|
1328
1368
|
*/
|
|
1329
1369
|
mood_intensity: number | null;
|
|
1330
1370
|
role: 'user' | 'assistant';
|
|
1371
|
+
/**
|
|
1372
|
+
* The agent that had the conversation when this was said: the conversation's own, or — after one agent handed it to another — the one that had it then. A person's message names the agent that answered it.
|
|
1373
|
+
*/
|
|
1374
|
+
agent_id: string;
|
|
1331
1375
|
/**
|
|
1332
1376
|
* On a reply: the web pages it read, with the agent's `url_context` switch on. Empty when it read none, and on the person's messages.
|
|
1333
1377
|
*/
|
|
@@ -1337,6 +1381,25 @@ export type MessageInfo = {
|
|
|
1337
1381
|
*/
|
|
1338
1382
|
tool_calls: Array<MessageToolCall>;
|
|
1339
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
|
+
};
|
|
1340
1403
|
export type MessageKnowledge = {
|
|
1341
1404
|
lookups: Array<KnowledgeLookupInfo>;
|
|
1342
1405
|
/**
|
|
@@ -1734,6 +1797,38 @@ export type RelationPage = {
|
|
|
1734
1797
|
*/
|
|
1735
1798
|
next_cursor: string | null;
|
|
1736
1799
|
};
|
|
1800
|
+
export type ToolResultTaken = {
|
|
1801
|
+
/**
|
|
1802
|
+
* The call, `call_…`: the one your server was sent.
|
|
1803
|
+
*/
|
|
1804
|
+
call_id: string;
|
|
1805
|
+
/**
|
|
1806
|
+
* The conversation it was called in.
|
|
1807
|
+
*/
|
|
1808
|
+
session_id: string;
|
|
1809
|
+
/**
|
|
1810
|
+
* The tool's name.
|
|
1811
|
+
*/
|
|
1812
|
+
name: string;
|
|
1813
|
+
/**
|
|
1814
|
+
* It came with a `result`, not an `error`.
|
|
1815
|
+
*/
|
|
1816
|
+
ok: boolean;
|
|
1817
|
+
/**
|
|
1818
|
+
* When the result was taken.
|
|
1819
|
+
*/
|
|
1820
|
+
ended_at: string;
|
|
1821
|
+
};
|
|
1822
|
+
export type ToolResultRequest = {
|
|
1823
|
+
/**
|
|
1824
|
+
* What the task came to, as any JSON — the picture's link, the booking's reference. The agent reads it, cut at the platform's `agents.tools.result_max_bytes` (`GET /v1/platform/limits`) as a quick tool's answer is. Send this or `error`.
|
|
1825
|
+
*/
|
|
1826
|
+
result?: unknown;
|
|
1827
|
+
/**
|
|
1828
|
+
* What failed, in words the agent can pass on: `The printer is out of paper.` Send this or `result`.
|
|
1829
|
+
*/
|
|
1830
|
+
error?: string | null;
|
|
1831
|
+
};
|
|
1737
1832
|
export type AgentPage = {
|
|
1738
1833
|
data: Array<AgentSummary>;
|
|
1739
1834
|
/**
|
|
@@ -1742,6 +1837,10 @@ export type AgentPage = {
|
|
|
1742
1837
|
next_cursor: string | null;
|
|
1743
1838
|
};
|
|
1744
1839
|
export type AgentSummary = {
|
|
1840
|
+
/**
|
|
1841
|
+
* 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
|
+
*/
|
|
1843
|
+
handoffs: Array<AgentHandoffInfo>;
|
|
1745
1844
|
/**
|
|
1746
1845
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
1747
1846
|
*
|
|
@@ -1992,6 +2091,14 @@ export type AgentSummary = {
|
|
|
1992
2091
|
*/
|
|
1993
2092
|
last_used_at: string | null;
|
|
1994
2093
|
};
|
|
2094
|
+
export type AgentHandoffInfo = {
|
|
2095
|
+
agent_id: string;
|
|
2096
|
+
/**
|
|
2097
|
+
* The target agent's name as it is now.
|
|
2098
|
+
*/
|
|
2099
|
+
name: string;
|
|
2100
|
+
when: string;
|
|
2101
|
+
};
|
|
1995
2102
|
export type AgentSttInfo = {
|
|
1996
2103
|
/**
|
|
1997
2104
|
* ISO-639-1 or -639-3 code the agent's spoken turns are transcribed in. Omit it and the language is detected per turn. A `language` on `user_audio.start` overrides it.
|
|
@@ -2039,6 +2146,10 @@ export type AgentVoiceInfo = {
|
|
|
2039
2146
|
voice_id: string | null;
|
|
2040
2147
|
};
|
|
2041
2148
|
export type AgentInfo = {
|
|
2149
|
+
/**
|
|
2150
|
+
* 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
|
+
*/
|
|
2152
|
+
handoffs: Array<AgentHandoffInfo>;
|
|
2042
2153
|
/**
|
|
2043
2154
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
2044
2155
|
*
|
|
@@ -2278,6 +2389,10 @@ export type AgentInfo = {
|
|
|
2278
2389
|
version: number;
|
|
2279
2390
|
};
|
|
2280
2391
|
export type AgentCreateRequest = {
|
|
2392
|
+
/**
|
|
2393
|
+
* 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
|
+
*/
|
|
2395
|
+
handoffs?: Array<AgentHandoff> | null;
|
|
2281
2396
|
/**
|
|
2282
2397
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
2283
2398
|
*
|
|
@@ -2509,6 +2624,16 @@ export type AgentCreateRequest = {
|
|
|
2509
2624
|
*/
|
|
2510
2625
|
voice_enabled?: boolean | null;
|
|
2511
2626
|
};
|
|
2627
|
+
export type AgentHandoff = {
|
|
2628
|
+
/**
|
|
2629
|
+
* Another agent of yours: never this one, nor one already listed.
|
|
2630
|
+
*/
|
|
2631
|
+
agent_id: string;
|
|
2632
|
+
/**
|
|
2633
|
+
* When to hand to it, in a line the agent reads: `when the person asks about invoices or refunds`. 1 to 200 characters.
|
|
2634
|
+
*/
|
|
2635
|
+
when: string;
|
|
2636
|
+
};
|
|
2512
2637
|
export type AgentStt = {
|
|
2513
2638
|
/**
|
|
2514
2639
|
* ISO-639-1 or -639-3 code the agent's spoken turns are transcribed in. Omit it and the language is detected per turn. A `language` on `user_audio.start` overrides it.
|
|
@@ -2656,6 +2781,10 @@ export type AgentSettingsUpdate = {
|
|
|
2656
2781
|
resume_max_age_days?: number | null;
|
|
2657
2782
|
};
|
|
2658
2783
|
export type AgentUpdate = {
|
|
2784
|
+
/**
|
|
2785
|
+
* 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
|
+
*/
|
|
2787
|
+
handoffs?: Array<AgentHandoff> | null;
|
|
2659
2788
|
/**
|
|
2660
2789
|
* Whether the model may write and run Python while it replies — sums, unit conversions, dates — and answer from what it printed. Gemini's own tool: it runs at Google, with no network, and nothing of yours.
|
|
2661
2790
|
*
|
|
@@ -2971,6 +3100,74 @@ export type EndUserDeleted = {
|
|
|
2971
3100
|
*/
|
|
2972
3101
|
sessions_deleted: number;
|
|
2973
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
|
+
};
|
|
2974
3171
|
export type KnowledgeCategoryPage = {
|
|
2975
3172
|
data: Array<string>;
|
|
2976
3173
|
/**
|
|
@@ -3298,6 +3495,14 @@ export type ToolInfo = {
|
|
|
3298
3495
|
* An app's tool only: the app is told to act and the reply carries on at once, with no answer awaited.
|
|
3299
3496
|
*/
|
|
3300
3497
|
action_only: boolean;
|
|
3498
|
+
/**
|
|
3499
|
+
* The call only starts the work: a 2xx within `timeout_ms` means started, the agent tells the person it is on it, and your server posts the result later to the call's `callback_url` (`POST /v1/end-users/{end_user_id}/tool-calls/{call_id}/result`); the agent tells the person when it arrives. Never with `action_only`.
|
|
3500
|
+
*/
|
|
3501
|
+
background: boolean;
|
|
3502
|
+
/**
|
|
3503
|
+
* How long a background task may run before it counts as failed, in minutes: 1 to 1,440, 10 by default; the platform's `agents.tools.background_max_minutes` (`GET /v1/platform/limits`) cuts it.
|
|
3504
|
+
*/
|
|
3505
|
+
background_minutes: number;
|
|
3301
3506
|
/**
|
|
3302
3507
|
* The line said before the call; `null` for none.
|
|
3303
3508
|
*/
|
|
@@ -3374,6 +3579,14 @@ export type ToolCreate = {
|
|
|
3374
3579
|
* An app's tool only: the app is told to act and the reply carries on at once, with no answer awaited.
|
|
3375
3580
|
*/
|
|
3376
3581
|
action_only?: boolean;
|
|
3582
|
+
/**
|
|
3583
|
+
* The call only starts the work: a 2xx within `timeout_ms` means started, the agent tells the person it is on it, and your server posts the result later to the call's `callback_url` (`POST /v1/end-users/{end_user_id}/tool-calls/{call_id}/result`); the agent tells the person when it arrives. Never with `action_only`.
|
|
3584
|
+
*/
|
|
3585
|
+
background?: boolean;
|
|
3586
|
+
/**
|
|
3587
|
+
* How long a background task may run before it counts as failed, in minutes: 1 to 1,440, 10 by default; the platform's `agents.tools.background_max_minutes` (`GET /v1/platform/limits`) cuts it.
|
|
3588
|
+
*/
|
|
3589
|
+
background_minutes?: number;
|
|
3377
3590
|
/**
|
|
3378
3591
|
* A line the agent says before the call, while it waits: `Let me check that for you.` `null`: none.
|
|
3379
3592
|
*/
|
|
@@ -3451,6 +3664,14 @@ export type ToolUpdate = {
|
|
|
3451
3664
|
* An app's tool only: the app is told to act and the reply carries on at once, with no answer awaited.
|
|
3452
3665
|
*/
|
|
3453
3666
|
action_only?: boolean;
|
|
3667
|
+
/**
|
|
3668
|
+
* The call only starts the work: a 2xx within `timeout_ms` means started, the agent tells the person it is on it, and your server posts the result later to the call's `callback_url` (`POST /v1/end-users/{end_user_id}/tool-calls/{call_id}/result`); the agent tells the person when it arrives. Never with `action_only`.
|
|
3669
|
+
*/
|
|
3670
|
+
background?: boolean;
|
|
3671
|
+
/**
|
|
3672
|
+
* How long a background task may run before it counts as failed, in minutes: 1 to 1,440, 10 by default; the platform's `agents.tools.background_max_minutes` (`GET /v1/platform/limits`) cuts it.
|
|
3673
|
+
*/
|
|
3674
|
+
background_minutes?: number;
|
|
3454
3675
|
/**
|
|
3455
3676
|
* A line the agent says before the call, while it waits: `Let me check that for you.` `null`: none.
|
|
3456
3677
|
*/
|
|
@@ -6292,6 +6513,57 @@ export type ListRelationsResponses = {
|
|
|
6292
6513
|
200: RelationPage;
|
|
6293
6514
|
};
|
|
6294
6515
|
export type ListRelationsResponse = ListRelationsResponses[keyof ListRelationsResponses];
|
|
6516
|
+
export type PostSessionToolResultData = {
|
|
6517
|
+
body: ToolResultRequest;
|
|
6518
|
+
path: {
|
|
6519
|
+
session_id: string;
|
|
6520
|
+
call_id: string;
|
|
6521
|
+
};
|
|
6522
|
+
query?: never;
|
|
6523
|
+
url: '/v1/agent/sessions/{session_id}/tool-calls/{call_id}/result';
|
|
6524
|
+
};
|
|
6525
|
+
export type PostSessionToolResultErrors = {
|
|
6526
|
+
/**
|
|
6527
|
+
* The request could not be read: malformed JSON
|
|
6528
|
+
*/
|
|
6529
|
+
400: ErrorResponse;
|
|
6530
|
+
/**
|
|
6531
|
+
* Missing or invalid credentials
|
|
6532
|
+
*/
|
|
6533
|
+
401: ErrorResponse;
|
|
6534
|
+
/**
|
|
6535
|
+
* The key is valid but its scopes do not cover this capability
|
|
6536
|
+
*/
|
|
6537
|
+
403: ErrorResponse;
|
|
6538
|
+
/**
|
|
6539
|
+
* No such call of your app's in this conversation
|
|
6540
|
+
*/
|
|
6541
|
+
404: ErrorResponse;
|
|
6542
|
+
/**
|
|
6543
|
+
* The call's result was already taken
|
|
6544
|
+
*/
|
|
6545
|
+
409: ErrorResponse;
|
|
6546
|
+
/**
|
|
6547
|
+
* The call ran past its expires_at and ended as failed
|
|
6548
|
+
*/
|
|
6549
|
+
410: ErrorResponse;
|
|
6550
|
+
/**
|
|
6551
|
+
* The request failed validation
|
|
6552
|
+
*/
|
|
6553
|
+
422: ErrorResponse;
|
|
6554
|
+
/**
|
|
6555
|
+
* Rate limit exceeded
|
|
6556
|
+
*/
|
|
6557
|
+
429: ErrorResponse;
|
|
6558
|
+
};
|
|
6559
|
+
export type PostSessionToolResultError = PostSessionToolResultErrors[keyof PostSessionToolResultErrors];
|
|
6560
|
+
export type PostSessionToolResultResponses = {
|
|
6561
|
+
/**
|
|
6562
|
+
* Taken: the agent will tell the person
|
|
6563
|
+
*/
|
|
6564
|
+
200: ToolResultTaken;
|
|
6565
|
+
};
|
|
6566
|
+
export type PostSessionToolResultResponse = PostSessionToolResultResponses[keyof PostSessionToolResultResponses];
|
|
6295
6567
|
export type ListAgentsData = {
|
|
6296
6568
|
body?: never;
|
|
6297
6569
|
path?: never;
|
|
@@ -7111,6 +7383,183 @@ export type GetEndUserMemoryResponses = {
|
|
|
7111
7383
|
200: MemoryInfo;
|
|
7112
7384
|
};
|
|
7113
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];
|
|
7512
|
+
export type PostToolResultData = {
|
|
7513
|
+
body: ToolResultRequest;
|
|
7514
|
+
path: {
|
|
7515
|
+
end_user_id: string;
|
|
7516
|
+
call_id: string;
|
|
7517
|
+
};
|
|
7518
|
+
query?: never;
|
|
7519
|
+
url: '/v1/end-users/{end_user_id}/tool-calls/{call_id}/result';
|
|
7520
|
+
};
|
|
7521
|
+
export type PostToolResultErrors = {
|
|
7522
|
+
/**
|
|
7523
|
+
* The request could not be read: malformed JSON
|
|
7524
|
+
*/
|
|
7525
|
+
400: ErrorResponse;
|
|
7526
|
+
/**
|
|
7527
|
+
* Missing or invalid credentials
|
|
7528
|
+
*/
|
|
7529
|
+
401: ErrorResponse;
|
|
7530
|
+
/**
|
|
7531
|
+
* 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
|
|
7532
|
+
*/
|
|
7533
|
+
403: ErrorResponse;
|
|
7534
|
+
/**
|
|
7535
|
+
* Unknown end user id, or no such call of theirs
|
|
7536
|
+
*/
|
|
7537
|
+
404: ErrorResponse;
|
|
7538
|
+
/**
|
|
7539
|
+
* The call's result was already taken
|
|
7540
|
+
*/
|
|
7541
|
+
409: ErrorResponse;
|
|
7542
|
+
/**
|
|
7543
|
+
* The call ran past its expires_at and ended as failed
|
|
7544
|
+
*/
|
|
7545
|
+
410: ErrorResponse;
|
|
7546
|
+
/**
|
|
7547
|
+
* The request failed validation
|
|
7548
|
+
*/
|
|
7549
|
+
422: ErrorResponse;
|
|
7550
|
+
/**
|
|
7551
|
+
* Rate limit exceeded
|
|
7552
|
+
*/
|
|
7553
|
+
429: ErrorResponse;
|
|
7554
|
+
};
|
|
7555
|
+
export type PostToolResultError = PostToolResultErrors[keyof PostToolResultErrors];
|
|
7556
|
+
export type PostToolResultResponses = {
|
|
7557
|
+
/**
|
|
7558
|
+
* Taken: the agent will tell the person
|
|
7559
|
+
*/
|
|
7560
|
+
200: ToolResultTaken;
|
|
7561
|
+
};
|
|
7562
|
+
export type PostToolResultResponse = PostToolResultResponses[keyof PostToolResultResponses];
|
|
7114
7563
|
export type ListKnowledgeCategoriesData = {
|
|
7115
7564
|
body?: never;
|
|
7116
7565
|
path?: never;
|
|
@@ -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 } 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.
|
|
@@ -120,6 +137,24 @@ export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest
|
|
|
120
137
|
page(params?: EndUserListParams, options?: RequestOptions): Promise<EndUserPage>;
|
|
121
138
|
/** Every person, newest first, page after page (`limit` a page, 200 by default). */
|
|
122
139
|
list(params?: Omit<EndUserListParams, "cursor">, options?: RequestOptions): AsyncGenerator<EndUserInfo, void, undefined>;
|
|
140
|
+
/**
|
|
141
|
+
* A background tool's result (`background: true` on the tool): your
|
|
142
|
+
* server posts it to the call's `callback_url`, which is this — the
|
|
143
|
+
* `end_user_id` and `call_id` the call was sent — before its
|
|
144
|
+
* `expires_at`, with `result` or `error`. The agent tells the person.
|
|
145
|
+
* A call has one result: a second is a `ConflictError` (409), one past
|
|
146
|
+
* its deadline a 410.
|
|
147
|
+
*/
|
|
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>;
|
|
123
158
|
/** Deletes them and all they had: the counts, or `null` when there is no such person. */
|
|
124
159
|
delete(id: string, options?: RequestOptions): Promise<EndUserDeleted | null>;
|
|
125
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.
|
|
@@ -114,6 +118,28 @@ export class EndUsers extends Editable {
|
|
|
114
118
|
list(params = {}, options) {
|
|
115
119
|
return this.each("", params, options, PAGE);
|
|
116
120
|
}
|
|
121
|
+
/**
|
|
122
|
+
* A background tool's result (`background: true` on the tool): your
|
|
123
|
+
* server posts it to the call's `callback_url`, which is this — the
|
|
124
|
+
* `end_user_id` and `call_id` the call was sent — before its
|
|
125
|
+
* `expires_at`, with `result` or `error`. The agent tells the person.
|
|
126
|
+
* A call has one result: a second is a `ConflictError` (409), one past
|
|
127
|
+
* its deadline a 410.
|
|
128
|
+
*/
|
|
129
|
+
toolResult(id, callId, body, options) {
|
|
130
|
+
return this.send("POST", this.at(id, `/tool-calls/${segment(callId)}/result`), options, body);
|
|
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
|
+
}
|
|
117
143
|
/** Deletes them and all they had: the counts, or `null` when there is no such person. */
|
|
118
144
|
delete(id, options) {
|
|
119
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",
|