@lumavox/server 0.54.0 → 0.58.1
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 +5 -2
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/types.gen.d.ts +272 -5
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/resources/end-users.d.ts +28 -1
- package/dist/resources/end-users.js +11 -1
- package/dist/webhooks.d.ts +110 -0
- package/dist/webhooks.js +121 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -64,7 +64,7 @@ list's page.
|
|
|
64
64
|
|
|
65
65
|
| Resource | Methods |
|
|
66
66
|
|---|---|
|
|
67
|
-
| `endUsers` | `create`, `get`, `update`, `delete`, `list`, `page`, `export`, `toolResult`; `facts.list`, `facts.add`, `facts.update`, `facts.delete`; `memories.list`, `memories.page`, `memories.get`, `memories.create`, `memories.update`, `memories.delete`, `memories.deleteAll`; `personalization.get`, `personalization.update`, `note`; `scheduledMessages.create`, `scheduledMessages.list`, `scheduledMessages.get`, `scheduledMessages.cancel`; `reports.list`, `reports.page`, `reports.get` |
|
|
67
|
+
| `endUsers` | `create`, `get`, `update`, `delete`, `list`, `page`, `export`, `toolResult`; `facts.list`, `facts.add`, `facts.update`, `facts.delete`; `memories.list`, `memories.page`, `memories.get`, `memories.create`, `memories.update`, `memories.delete`, `memories.deleteAll`; `personalization.get`, `personalization.update`, `states.list`, `states.get`, `states.set`, `states.delete` — where a person stands with one agent, which that agent reads on every reply; `note`; `scheduledMessages.create`, `scheduledMessages.list`, `scheduledMessages.get`, `scheduledMessages.cancel`; `reports.list`, `reports.page`, `reports.get` |
|
|
68
68
|
| `ephemeralKeys` | `limits`, `create`, `get`, `revoke`, `inspect`, `list`, `page` |
|
|
69
69
|
| `images`, `videos`, `audio`, `skybox`, `transcriptions` | `create`, `get`, `wait`, `generate`; `images.draftLayout`, `images.findElements`; `skybox.styles` |
|
|
70
70
|
| `generations` | `get`, `wait`, `list`, `page` |
|
|
@@ -77,6 +77,7 @@ list's page.
|
|
|
77
77
|
| `knowledge` | `list`, `page`, `get`, `create`, `bulk`, `fromUrl`, `uploadUrl`, `fromFile`, `upload`, `update`, `delete`, `reindex`, `refresh`, `setAgents`, `search`, `categories`, `insights`, `wait` |
|
|
78
78
|
| `usage` | `get`, `plan` |
|
|
79
79
|
| the client | `health()`, `limits()` (the platform's limits, each by its key) |
|
|
80
|
+
| no client | `verifyWebhook`, `verifyToolCall`: a post from the platform, checked and typed, or a `SignatureError` |
|
|
80
81
|
|
|
81
82
|
- **`list()` is an async iterator over every item**, page after page by
|
|
82
83
|
each page's `next_cursor`; `page()` is one page, `{ data, next_cursor }`.
|
|
@@ -114,6 +115,7 @@ the API did not answer: `connection_error`, `timeout`, …), `message`,
|
|
|
114
115
|
| `ServerError` | 5xx |
|
|
115
116
|
| `ConnectionError` | no response; `cause` is what `fetch` threw |
|
|
116
117
|
| `TimeoutError` | no response within `timeoutMs`, on the last attempt |
|
|
118
|
+
| `SignatureError` | a post `verifyWebhook` or `verifyToolCall` could not take as the platform's; its `status` is 401 |
|
|
117
119
|
|
|
118
120
|
Quote `requestId` when you report a problem: every attempt of a call carries
|
|
119
121
|
the same one. Your own `signal` aborting throws its reason, not an error of
|
|
@@ -147,7 +149,8 @@ and a longer one is thrown at once as a `RateLimitError` with its
|
|
|
147
149
|
- **`endUsers.export(id)`** reads everything the API holds about a
|
|
148
150
|
person — their record, every conversation, fact and memory (replaced
|
|
149
151
|
facts too, until they are deleted), how each agent stands with them,
|
|
150
|
-
their reports, what you set
|
|
152
|
+
their reports, what you set for them — their state with each agent
|
|
153
|
+
too — and scheduled for them — with a
|
|
151
154
|
five-minute key of their own, revoked after — on failure
|
|
152
155
|
too. The key is an ordinary one: at the person's live-key cap the export
|
|
153
156
|
fails as the mint does.
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AgentCreateRequest, AgentDefaults, AgentDefaultsUpdate, AgentDraft, AgentDraftPublish, AgentDraftUpdate, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentPrompt, AgentPromptPart, AgentPromptVoice, AgentQuietHours, AgentReportField, AgentReportFieldInfo, AgentRestored, AgentSettingInForce, AgentSettingsInfo, AgentSettingsUpdate, AgentsFollowing, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVersion, AgentVersionPage, AgentVersionRestore, AgentVersionSummary, AgentVoice, AgentVoiceInfo, ApiKeySelf, AssetBulkRequest, AssetDetail, AssetMoveRequest, AssetPage, AssetsAffected, AssetSummary, AssetUpdate, AssignedAgent, AudioRequest, BulkEditKnowledgeData, BulkEditKnowledgeError, BulkEditKnowledgeErrors, BulkEditKnowledgeResponse, BulkEditKnowledgeResponses, CancelScheduledMessageData, CancelScheduledMessageError, CancelScheduledMessageErrors, CancelScheduledMessageResponse, CancelScheduledMessageResponses, ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, ConfirmAssetUploadData, ConfirmAssetUploadError, ConfirmAssetUploadErrors, ConfirmAssetUploadResponse, ConfirmAssetUploadResponses, ConversationReport, ConversationReportPage, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentResponse, CreateAgentResponses, CreateAssetFolderData, CreateAssetFolderError, CreateAssetFolderErrors, CreateAssetFolderResponse, CreateAssetFolderResponses, CreateAssetUploadUrlData, CreateAssetUploadUrlError, CreateAssetUploadUrlErrors, CreateAssetUploadUrlResponse, CreateAssetUploadUrlResponses, CreateAudioData, CreateAudioError, CreateAudioErrors, CreateAudioResponse, CreateAudioResponses, CreateEndUserData, CreateEndUserError, CreateEndUserErrors, CreateEndUserFactData, CreateEndUserFactError, CreateEndUserFactErrors, CreateEndUserFactResponse, CreateEndUserFactResponses, CreateEndUserMemoryData, CreateEndUserMemoryError, CreateEndUserMemoryErrors, CreateEndUserMemoryResponse, CreateEndUserMemoryResponses, CreateEndUserNoteData, CreateEndUserNoteError, CreateEndUserNoteErrors, CreateEndUserNoteResponse, CreateEndUserNoteResponses, CreateEndUserResponse, CreateEndUserResponses, CreateEphemeralKeyData, CreateEphemeralKeyError, CreateEphemeralKeyErrors, CreateEphemeralKeyResponse, CreateEphemeralKeyResponses, CreateFactData, CreateFactError, CreateFactErrors, CreateFactResponse, CreateFactResponses, CreateImageData, CreateImageError, CreateImageErrors, CreateImageResponse, CreateImageResponses, CreateKnowledgeData, CreateKnowledgeError, CreateKnowledgeErrors, CreateKnowledgeFromFileData, CreateKnowledgeFromFileError, CreateKnowledgeFromFileErrors, CreateKnowledgeFromFileResponse, CreateKnowledgeFromFileResponses, CreateKnowledgeFromUrlData, CreateKnowledgeFromUrlError, CreateKnowledgeFromUrlErrors, CreateKnowledgeFromUrlResponse, CreateKnowledgeFromUrlResponses, CreateKnowledgeResponse, CreateKnowledgeResponses, CreateKnowledgeUploadUrlData, CreateKnowledgeUploadUrlError, CreateKnowledgeUploadUrlErrors, CreateKnowledgeUploadUrlResponse, CreateKnowledgeUploadUrlResponses, CreateScheduledMessageData, CreateScheduledMessageError, CreateScheduledMessageErrors, CreateScheduledMessageResponse, CreateScheduledMessageResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSkyboxData, CreateSkyboxError, CreateSkyboxErrors, CreateSkyboxResponse, CreateSkyboxResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolResponse, CreateToolResponses, CreateTranscriptionData, CreateTranscriptionError, CreateTranscriptionErrors, CreateTranscriptionResponse, CreateTranscriptionResponses, CreateVideoData, CreateVideoError, CreateVideoErrors, CreateVideoResponse, CreateVideoResponses, CreateVoiceData, CreateVoiceError, CreateVoiceErrors, CreateVoiceResponse, CreateVoiceResponses, CreateVoiceUploadUrlData, CreateVoiceUploadUrlError, CreateVoiceUploadUrlErrors, CreateVoiceUploadUrlResponse, CreateVoiceUploadUrlResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAllEndUserMemoriesData, DeleteAllEndUserMemoriesError, DeleteAllEndUserMemoriesErrors, DeleteAllEndUserMemoriesResponse, DeleteAllEndUserMemoriesResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteAllMemoriesData, DeleteAllMemoriesError, DeleteAllMemoriesErrors, DeleteAllMemoriesResponse, DeleteAllMemoriesResponses, DeleteAssetData, DeleteAssetError, DeleteAssetErrors, DeleteAssetFolderData, DeleteAssetFolderError, DeleteAssetFolderErrors, DeleteAssetFolderResponse, DeleteAssetFolderResponses, DeleteAssetResponse, DeleteAssetResponses, DeleteAssetsData, DeleteAssetsError, DeleteAssetsErrors, DeleteAssetsResponse, DeleteAssetsResponses, DeleteEndUserData, DeleteEndUserError, DeleteEndUserErrors, DeleteEndUserFactData, DeleteEndUserFactError, DeleteEndUserFactErrors, DeleteEndUserFactResponse, DeleteEndUserFactResponses, DeleteEndUserMemoryData, DeleteEndUserMemoryError, DeleteEndUserMemoryErrors, DeleteEndUserMemoryResponse, DeleteEndUserMemoryResponses, DeleteEndUserResponse, DeleteEndUserResponses, DeleteFactData, DeleteFactError, DeleteFactErrors, DeleteFactResponse, DeleteFactResponses, DeleteKnowledgeData, DeleteKnowledgeError, DeleteKnowledgeErrors, DeleteKnowledgeResponse, DeleteKnowledgeResponses, DeleteMemoryData, DeleteMemoryError, DeleteMemoryErrors, DeleteMemoryResponse, DeleteMemoryResponses, DeleteSessionData, DeleteSessionError, DeleteSessionErrors, DeleteSessionResponse, DeleteSessionResponses, DeleteToolData, DeleteToolError, DeleteToolErrors, DeleteToolResponse, DeleteToolResponses, DeleteVoiceData, DeleteVoiceError, DeleteVoiceErrors, DeleteVoiceResponse, DeleteVoiceResponses, DesignVoiceData, DesignVoiceError, DesignVoiceErrors, DesignVoiceResponse, DesignVoiceResponses, DiscardAgentDraftData, DiscardAgentDraftError, DiscardAgentDraftErrors, DiscardAgentDraftResponse, DiscardAgentDraftResponses, 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, GetAgentDraftData, GetAgentDraftError, GetAgentDraftErrors, GetAgentDraftResponse, GetAgentDraftResponses, GetAgentError, GetAgentErrors, GetAgentPromptData, GetAgentPromptError, GetAgentPromptErrors, GetAgentPromptResponse, GetAgentPromptResponses, GetAgentResponse, GetAgentResponses, GetAgentSettingsData, GetAgentSettingsError, GetAgentSettingsErrors, GetAgentSettingsResponse, GetAgentSettingsResponses, GetAgentVersionData, GetAgentVersionError, GetAgentVersionErrors, GetAgentVersionResponse, GetAgentVersionResponses, GetAssetData, GetAssetError, GetAssetErrors, GetAssetFolderData, GetAssetFolderError, GetAssetFolderErrors, GetAssetFolderResponse, GetAssetFolderResponses, GetAssetResponse, GetAssetResponses, GetAudioData, GetAudioError, GetAudioErrors, GetAudioResponse, GetAudioResponses, GetEndUserData, GetEndUserError, GetEndUserErrors, GetEndUserMemoryData, GetEndUserMemoryError, GetEndUserMemoryErrors, GetEndUserMemoryResponse, GetEndUserMemoryResponses, GetEndUserPersonalizationData, GetEndUserPersonalizationError, GetEndUserPersonalizationErrors, GetEndUserPersonalizationResponse, GetEndUserPersonalizationResponses, GetEndUserReportData, GetEndUserReportError, GetEndUserReportErrors, GetEndUserReportResponse, GetEndUserReportResponses, GetEndUserResponse, GetEndUserResponses, GetEphemeralKeyData, GetEphemeralKeyError, GetEphemeralKeyErrors, GetEphemeralKeyLimitsData, GetEphemeralKeyLimitsError, GetEphemeralKeyLimitsErrors, GetEphemeralKeyLimitsResponse, GetEphemeralKeyLimitsResponses, GetEphemeralKeyResponse, GetEphemeralKeyResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetHealthData, GetHealthResponse, GetHealthResponses, GetImageData, GetImageError, GetImageErrors, GetImageResponse, GetImageResponses, GetKnowledgeData, GetKnowledgeError, GetKnowledgeErrors, GetKnowledgeInsightsData, GetKnowledgeInsightsError, GetKnowledgeInsightsErrors, GetKnowledgeInsightsResponse, GetKnowledgeInsightsResponses, GetKnowledgeResponse, GetKnowledgeResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetPlatformLimitsData, GetPlatformLimitsResponse, GetPlatformLimitsResponses, GetScheduledMessageData, GetScheduledMessageError, GetScheduledMessageErrors, GetScheduledMessageResponse, GetScheduledMessageResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSkyboxData, GetSkyboxError, GetSkyboxErrors, GetSkyboxResponse, GetSkyboxResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateFileData, GetTemplateFileError, GetTemplateFileErrors, GetTemplateFileResponses, GetTemplateResponse, GetTemplateResponses, GetTokenData, GetTokenError, GetTokenErrors, GetTokenResponse, GetTokenResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTranscriptionData, GetTranscriptionError, GetTranscriptionErrors, GetTranscriptionResponse, GetTranscriptionResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetVideoData, GetVideoError, GetVideoErrors, GetVideoResponse, GetVideoResponses, GetVoiceData, GetVoiceError, GetVoiceErrors, GetVoiceResponse, GetVoiceResponses, HealthResponse, ImageRequest, KnowledgeAgentsUpdate, KnowledgeAssigned, KnowledgeBulk, KnowledgeBulkResult, KnowledgeCategoryPage, KnowledgeCitation, KnowledgeCreate, KnowledgeEntryUsage, KnowledgeFileCreate, KnowledgeInfo, KnowledgeInsights, KnowledgeLookupInfo, KnowledgePage, KnowledgeSearchHit, KnowledgeSearchRequest, KnowledgeSearchResult, KnowledgeUpdate, KnowledgeUploadRequest, KnowledgeUploadTicket, KnowledgeUrlCreate, LayoutDraft, LayoutDraftRequest, LayoutElement, LayoutElementInfo, LayoutFindRequest, LayoutFound, LayoutSourceInfo, ListAgentKnowledgeData, ListAgentKnowledgeError, ListAgentKnowledgeErrors, ListAgentKnowledgeResponse, ListAgentKnowledgeResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAgentToolsData, ListAgentToolsError, ListAgentToolsErrors, ListAgentToolsResponse, ListAgentToolsResponses, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsErrors, ListAgentVersionsResponse, ListAgentVersionsResponses, ListAssetFoldersData, ListAssetFoldersError, ListAssetFoldersErrors, ListAssetFoldersResponse, ListAssetFoldersResponses, ListAssetsData, ListAssetsError, ListAssetsErrors, ListAssetsResponse, ListAssetsResponses, ListEndUserFactsData, ListEndUserFactsError, ListEndUserFactsErrors, ListEndUserFactsResponse, ListEndUserFactsResponses, ListEndUserMemoriesData, ListEndUserMemoriesError, ListEndUserMemoriesErrors, ListEndUserMemoriesResponse, ListEndUserMemoriesResponses, ListEndUserReportsData, ListEndUserReportsError, ListEndUserReportsErrors, ListEndUserReportsResponse, ListEndUserReportsResponses, ListEndUsersData, ListEndUsersError, ListEndUsersErrors, ListEndUsersResponse, ListEndUsersResponses, ListEphemeralKeysData, ListEphemeralKeysError, ListEphemeralKeysErrors, ListEphemeralKeysResponse, ListEphemeralKeysResponses, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListKnowledgeCategoriesData, ListKnowledgeCategoriesError, ListKnowledgeCategoriesErrors, ListKnowledgeCategoriesResponse, ListKnowledgeCategoriesResponses, ListKnowledgeData, ListKnowledgeError, ListKnowledgeErrors, ListKnowledgeResponse, ListKnowledgeResponses, ListMemoriesData, ListMemoriesError, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListScheduledMessagesData, ListScheduledMessagesError, ListScheduledMessagesErrors, ListScheduledMessagesResponse, ListScheduledMessagesResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListSkyboxStylesData, ListSkyboxStylesError, ListSkyboxStylesErrors, ListSkyboxStylesResponse, ListSkyboxStylesResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListToolCallsData, ListToolCallsError, ListToolCallsErrors, ListToolCallsResponse, ListToolCallsResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListVoicesData, ListVoicesError, ListVoicesErrors, ListVoicesResponse, ListVoicesResponses, MemoriesDeleted, MemoriesWrittenInfo, MemoryCitation, MemoryCreateRequest, MemoryInfo, MemoryPage, MemoryUpdateRequest, 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, PublishAgentDraftData, PublishAgentDraftError, PublishAgentDraftErrors, PublishAgentDraftResponse, PublishAgentDraftResponses, Reference, ReferenceInfo, RefreshKnowledgeData, RefreshKnowledgeError, RefreshKnowledgeErrors, RefreshKnowledgeResponse, RefreshKnowledgeResponses, ReindexKnowledgeData, ReindexKnowledgeError, ReindexKnowledgeErrors, ReindexKnowledgeResponse, ReindexKnowledgeResponses, RelationInfo, RelationPage, ReportAgentVersion, ReportDelivery, ReportLine, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RestoreAgentVersionData, RestoreAgentVersionError, RestoreAgentVersionErrors, RestoreAgentVersionResponse, RestoreAgentVersionResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SafetyInfo, SaveDesignedVoiceData, SaveDesignedVoiceError, SaveDesignedVoiceErrors, SaveDesignedVoiceResponse, SaveDesignedVoiceResponses, ScheduledMessage, ScheduledMessageCreateRequest, ScheduledMessageDelivery, ScheduledMessagePage, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, SetAgentKnowledgeData, SetAgentKnowledgeError, SetAgentKnowledgeErrors, SetAgentKnowledgeResponse, SetAgentKnowledgeResponses, SetAgentToolsData, SetAgentToolsError, SetAgentToolsErrors, SetAgentToolsResponse, SetAgentToolsResponses, SetKnowledgeAgentsData, SetKnowledgeAgentsError, SetKnowledgeAgentsErrors, SetKnowledgeAgentsResponse, SetKnowledgeAgentsResponses, SkyboxFile, SkyboxRequest, SkyboxStyle, SkyboxStylePage, SpeechProvider, StreamDone, StreamError, StreamSegment, StreamTranscript, SynthesizeSpeechData, SynthesizeSpeechError, SynthesizeSpeechErrors, SynthesizeSpeechResponse, SynthesizeSpeechResponses, TemplateGenerateRequest, TemplateInfo, TemplateInput, TemplatePage, TestAgentWebhookData, TestAgentWebhookError, TestAgentWebhookErrors, TestAgentWebhookResponse, TestAgentWebhookResponses, TestToolData, TestToolError, TestToolErrors, TestToolResponse, TestToolResponses, TokenSelf, ToolCall, ToolCallPage, ToolCreate, ToolInfo, ToolPage, ToolResultRequest, ToolResultTaken, ToolsAssigned, ToolTestRequest, ToolTestResult, ToolUpdate, ToolWithSecret, TranscribeAssetRequest, TranscribeData, TranscribeError, TranscribeErrors, TranscribeResponse, TranscribeResponses, Transcription, TranscriptionStreamLine, TranscriptWord, TtsOptions, TtsRequest, UnansweredQuestion, UpdateAgentData, UpdateAgentDraftData, UpdateAgentDraftError, UpdateAgentDraftErrors, UpdateAgentDraftResponse, UpdateAgentDraftResponses, 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, UpdateEndUserMemoryData, UpdateEndUserMemoryError, UpdateEndUserMemoryErrors, UpdateEndUserMemoryResponse, UpdateEndUserMemoryResponses, UpdateEndUserPersonalizationData, UpdateEndUserPersonalizationError, UpdateEndUserPersonalizationErrors, UpdateEndUserPersonalizationResponse, UpdateEndUserPersonalizationResponses, UpdateEndUserResponse, UpdateEndUserResponses, UpdateFactData, UpdateFactError, UpdateFactErrors, UpdateFactResponse, UpdateFactResponses, UpdateKnowledgeData, UpdateKnowledgeError, UpdateKnowledgeErrors, UpdateKnowledgeResponse, UpdateKnowledgeResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolResponse, UpdateToolResponses, UpdateVoiceData, UpdateVoiceError, UpdateVoiceErrors, UpdateVoiceResponse, UpdateVoiceResponses, UploadConfirm, UploadTicket, UploadTicketRequest, UsageByKey, UsageDay, UsageResponse, UsageSummary, ValidationIssue, Variables, VariantInfo, VideoRequest, VoiceDesignPreview, VoiceDesignRequest, VoiceDesignResult, VoiceDesignSaveRequest, VoiceDetail, VoiceInfo, VoiceInfoPage, VoiceKind, VoiceSample, VoiceSource, VoiceStatus, VoiceUpdate, VoiceUpload, VoiceUploadRequest, VoiceUploadTicket, WebhookSecret, WebhookTestResult, WriteSessionMemoriesData, WriteSessionMemoriesError, WriteSessionMemoriesErrors, WriteSessionMemoriesResponse, WriteSessionMemoriesResponses } from './types.gen.js';
|
|
1
|
+
export type { AgentCreateRequest, AgentDefaults, AgentDefaultsUpdate, AgentDraft, AgentDraftPublish, AgentDraftUpdate, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentPrompt, AgentPromptPart, AgentPromptVoice, AgentQuietHours, AgentReportField, AgentReportFieldInfo, AgentRestored, AgentSettingInForce, AgentSettingsInfo, AgentSettingsUpdate, AgentsFollowing, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVersion, AgentVersionPage, AgentVersionRestore, AgentVersionSummary, AgentVoice, AgentVoiceInfo, ApiKeySelf, AssetBulkRequest, AssetDetail, AssetMoveRequest, AssetPage, AssetsAffected, AssetSummary, AssetUpdate, AssignedAgent, AudioRequest, BulkEditKnowledgeData, BulkEditKnowledgeError, BulkEditKnowledgeErrors, BulkEditKnowledgeResponse, BulkEditKnowledgeResponses, CancelScheduledMessageData, CancelScheduledMessageError, CancelScheduledMessageErrors, CancelScheduledMessageResponse, CancelScheduledMessageResponses, ClientOptions, CompactionInfo, CompactRequest, CompactSessionData, CompactSessionError, CompactSessionErrors, CompactSessionResponse, CompactSessionResponses, ConfirmAssetUploadData, ConfirmAssetUploadError, ConfirmAssetUploadErrors, ConfirmAssetUploadResponse, ConfirmAssetUploadResponses, ConversationReport, ConversationReportPage, CreateAgentData, CreateAgentError, CreateAgentErrors, CreateAgentResponse, CreateAgentResponses, CreateAssetFolderData, CreateAssetFolderError, CreateAssetFolderErrors, CreateAssetFolderResponse, CreateAssetFolderResponses, CreateAssetUploadUrlData, CreateAssetUploadUrlError, CreateAssetUploadUrlErrors, CreateAssetUploadUrlResponse, CreateAssetUploadUrlResponses, CreateAudioData, CreateAudioError, CreateAudioErrors, CreateAudioResponse, CreateAudioResponses, CreateEndUserData, CreateEndUserError, CreateEndUserErrors, CreateEndUserFactData, CreateEndUserFactError, CreateEndUserFactErrors, CreateEndUserFactResponse, CreateEndUserFactResponses, CreateEndUserMemoryData, CreateEndUserMemoryError, CreateEndUserMemoryErrors, CreateEndUserMemoryResponse, CreateEndUserMemoryResponses, CreateEndUserNoteData, CreateEndUserNoteError, CreateEndUserNoteErrors, CreateEndUserNoteResponse, CreateEndUserNoteResponses, CreateEndUserResponse, CreateEndUserResponses, CreateEphemeralKeyData, CreateEphemeralKeyError, CreateEphemeralKeyErrors, CreateEphemeralKeyResponse, CreateEphemeralKeyResponses, CreateFactData, CreateFactError, CreateFactErrors, CreateFactResponse, CreateFactResponses, CreateImageData, CreateImageError, CreateImageErrors, CreateImageResponse, CreateImageResponses, CreateKnowledgeData, CreateKnowledgeError, CreateKnowledgeErrors, CreateKnowledgeFromFileData, CreateKnowledgeFromFileError, CreateKnowledgeFromFileErrors, CreateKnowledgeFromFileResponse, CreateKnowledgeFromFileResponses, CreateKnowledgeFromUrlData, CreateKnowledgeFromUrlError, CreateKnowledgeFromUrlErrors, CreateKnowledgeFromUrlResponse, CreateKnowledgeFromUrlResponses, CreateKnowledgeResponse, CreateKnowledgeResponses, CreateKnowledgeUploadUrlData, CreateKnowledgeUploadUrlError, CreateKnowledgeUploadUrlErrors, CreateKnowledgeUploadUrlResponse, CreateKnowledgeUploadUrlResponses, CreateScheduledMessageData, CreateScheduledMessageError, CreateScheduledMessageErrors, CreateScheduledMessageResponse, CreateScheduledMessageResponses, CreateSessionData, CreateSessionError, CreateSessionErrors, CreateSessionResponse, CreateSessionResponses, CreateSkyboxData, CreateSkyboxError, CreateSkyboxErrors, CreateSkyboxResponse, CreateSkyboxResponses, CreateToolData, CreateToolError, CreateToolErrors, CreateToolResponse, CreateToolResponses, CreateTranscriptionData, CreateTranscriptionError, CreateTranscriptionErrors, CreateTranscriptionResponse, CreateTranscriptionResponses, CreateVideoData, CreateVideoError, CreateVideoErrors, CreateVideoResponse, CreateVideoResponses, CreateVoiceData, CreateVoiceError, CreateVoiceErrors, CreateVoiceResponse, CreateVoiceResponses, CreateVoiceUploadUrlData, CreateVoiceUploadUrlError, CreateVoiceUploadUrlErrors, CreateVoiceUploadUrlResponse, CreateVoiceUploadUrlResponses, DeleteAgentData, DeleteAgentError, DeleteAgentErrors, DeleteAgentResponse, DeleteAgentResponses, DeleteAllEndUserMemoriesData, DeleteAllEndUserMemoriesError, DeleteAllEndUserMemoriesErrors, DeleteAllEndUserMemoriesResponse, DeleteAllEndUserMemoriesResponses, DeleteAllFactsData, DeleteAllFactsError, DeleteAllFactsErrors, DeleteAllFactsResponse, DeleteAllFactsResponses, DeleteAllMemoriesData, DeleteAllMemoriesError, DeleteAllMemoriesErrors, DeleteAllMemoriesResponse, DeleteAllMemoriesResponses, DeleteAssetData, DeleteAssetError, DeleteAssetErrors, DeleteAssetFolderData, DeleteAssetFolderError, DeleteAssetFolderErrors, DeleteAssetFolderResponse, DeleteAssetFolderResponses, DeleteAssetResponse, DeleteAssetResponses, DeleteAssetsData, DeleteAssetsError, DeleteAssetsErrors, DeleteAssetsResponse, DeleteAssetsResponses, DeleteEndUserData, DeleteEndUserError, DeleteEndUserErrors, DeleteEndUserFactData, DeleteEndUserFactError, DeleteEndUserFactErrors, DeleteEndUserFactResponse, DeleteEndUserFactResponses, DeleteEndUserMemoryData, DeleteEndUserMemoryError, DeleteEndUserMemoryErrors, DeleteEndUserMemoryResponse, DeleteEndUserMemoryResponses, DeleteEndUserResponse, DeleteEndUserResponses, DeleteEndUserStateData, DeleteEndUserStateError, DeleteEndUserStateErrors, DeleteEndUserStateResponse, DeleteEndUserStateResponses, 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, DiscardAgentDraftData, DiscardAgentDraftError, DiscardAgentDraftErrors, DiscardAgentDraftResponse, DiscardAgentDraftResponses, DraftLayoutData, DraftLayoutError, DraftLayoutErrors, DraftLayoutResponse, DraftLayoutResponses, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserState, EndUserStatePage, EndUserStateUpdate, 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, GetAgentDraftData, GetAgentDraftError, GetAgentDraftErrors, GetAgentDraftResponse, GetAgentDraftResponses, GetAgentError, GetAgentErrors, GetAgentPromptData, GetAgentPromptError, GetAgentPromptErrors, GetAgentPromptResponse, GetAgentPromptResponses, GetAgentResponse, GetAgentResponses, GetAgentSettingsData, GetAgentSettingsError, GetAgentSettingsErrors, GetAgentSettingsResponse, GetAgentSettingsResponses, GetAgentVersionData, GetAgentVersionError, GetAgentVersionErrors, GetAgentVersionResponse, GetAgentVersionResponses, GetAssetData, GetAssetError, GetAssetErrors, GetAssetFolderData, GetAssetFolderError, GetAssetFolderErrors, GetAssetFolderResponse, GetAssetFolderResponses, GetAssetResponse, GetAssetResponses, GetAudioData, GetAudioError, GetAudioErrors, GetAudioResponse, GetAudioResponses, GetEndUserData, GetEndUserError, GetEndUserErrors, GetEndUserMemoryData, GetEndUserMemoryError, GetEndUserMemoryErrors, GetEndUserMemoryResponse, GetEndUserMemoryResponses, GetEndUserPersonalizationData, GetEndUserPersonalizationError, GetEndUserPersonalizationErrors, GetEndUserPersonalizationResponse, GetEndUserPersonalizationResponses, GetEndUserReportData, GetEndUserReportError, GetEndUserReportErrors, GetEndUserReportResponse, GetEndUserReportResponses, GetEndUserResponse, GetEndUserResponses, GetEndUserStateData, GetEndUserStateError, GetEndUserStateErrors, GetEndUserStateResponse, GetEndUserStateResponses, GetEphemeralKeyData, GetEphemeralKeyError, GetEphemeralKeyErrors, GetEphemeralKeyLimitsData, GetEphemeralKeyLimitsError, GetEphemeralKeyLimitsErrors, GetEphemeralKeyLimitsResponse, GetEphemeralKeyLimitsResponses, GetEphemeralKeyResponse, GetEphemeralKeyResponses, GetGenerationData, GetGenerationError, GetGenerationErrors, GetGenerationResponse, GetGenerationResponses, GetHealthData, GetHealthResponse, GetHealthResponses, GetImageData, GetImageError, GetImageErrors, GetImageResponse, GetImageResponses, GetKnowledgeData, GetKnowledgeError, GetKnowledgeErrors, GetKnowledgeInsightsData, GetKnowledgeInsightsError, GetKnowledgeInsightsErrors, GetKnowledgeInsightsResponse, GetKnowledgeInsightsResponses, GetKnowledgeResponse, GetKnowledgeResponses, GetMemoryData, GetMemoryError, GetMemoryErrors, GetMemoryResponse, GetMemoryResponses, GetPlanData, GetPlanError, GetPlanErrors, GetPlanResponse, GetPlanResponses, GetPlatformLimitsData, GetPlatformLimitsResponse, GetPlatformLimitsResponses, GetScheduledMessageData, GetScheduledMessageError, GetScheduledMessageErrors, GetScheduledMessageResponse, GetScheduledMessageResponses, GetSessionData, GetSessionError, GetSessionErrors, GetSessionResponse, GetSessionResponses, GetSkyboxData, GetSkyboxError, GetSkyboxErrors, GetSkyboxResponse, GetSkyboxResponses, GetTemplateData, GetTemplateError, GetTemplateErrors, GetTemplateFileData, GetTemplateFileError, GetTemplateFileErrors, GetTemplateFileResponses, GetTemplateResponse, GetTemplateResponses, GetTokenData, GetTokenError, GetTokenErrors, GetTokenResponse, GetTokenResponses, GetToolData, GetToolError, GetToolErrors, GetToolResponse, GetToolResponses, GetTranscriptionData, GetTranscriptionError, GetTranscriptionErrors, GetTranscriptionResponse, GetTranscriptionResponses, GetUsageData, GetUsageError, GetUsageErrors, GetUsageResponse, GetUsageResponses, GetVideoData, GetVideoError, GetVideoErrors, GetVideoResponse, GetVideoResponses, GetVoiceData, GetVoiceError, GetVoiceErrors, GetVoiceResponse, GetVoiceResponses, HealthResponse, ImageRequest, KnowledgeAgentsUpdate, KnowledgeAssigned, KnowledgeBulk, KnowledgeBulkResult, KnowledgeCategoryPage, KnowledgeCitation, KnowledgeCreate, KnowledgeEntryUsage, KnowledgeFileCreate, KnowledgeInfo, KnowledgeInsights, KnowledgeLookupInfo, KnowledgePage, KnowledgeSearchHit, KnowledgeSearchRequest, KnowledgeSearchResult, KnowledgeUpdate, KnowledgeUploadRequest, KnowledgeUploadTicket, KnowledgeUrlCreate, LayoutDraft, LayoutDraftRequest, LayoutElement, LayoutElementInfo, LayoutFindRequest, LayoutFound, LayoutSourceInfo, ListAgentKnowledgeData, ListAgentKnowledgeError, ListAgentKnowledgeErrors, ListAgentKnowledgeResponse, ListAgentKnowledgeResponses, ListAgentsData, ListAgentsError, ListAgentsErrors, ListAgentsResponse, ListAgentsResponses, ListAgentToolsData, ListAgentToolsError, ListAgentToolsErrors, ListAgentToolsResponse, ListAgentToolsResponses, ListAgentVersionsData, ListAgentVersionsError, ListAgentVersionsErrors, ListAgentVersionsResponse, ListAgentVersionsResponses, ListAssetFoldersData, ListAssetFoldersError, ListAssetFoldersErrors, ListAssetFoldersResponse, ListAssetFoldersResponses, ListAssetsData, ListAssetsError, ListAssetsErrors, ListAssetsResponse, ListAssetsResponses, ListEndUserFactsData, ListEndUserFactsError, ListEndUserFactsErrors, ListEndUserFactsResponse, ListEndUserFactsResponses, ListEndUserMemoriesData, ListEndUserMemoriesError, ListEndUserMemoriesErrors, ListEndUserMemoriesResponse, ListEndUserMemoriesResponses, ListEndUserReportsData, ListEndUserReportsError, ListEndUserReportsErrors, ListEndUserReportsResponse, ListEndUserReportsResponses, ListEndUsersData, ListEndUsersError, ListEndUsersErrors, ListEndUsersResponse, ListEndUsersResponses, ListEndUserStatesData, ListEndUserStatesError, ListEndUserStatesErrors, ListEndUserStatesResponse, ListEndUserStatesResponses, ListEphemeralKeysData, ListEphemeralKeysError, ListEphemeralKeysErrors, ListEphemeralKeysResponse, ListEphemeralKeysResponses, ListFactsData, ListFactsError, ListFactsErrors, ListFactsResponse, ListFactsResponses, ListGenerationsData, ListGenerationsError, ListGenerationsErrors, ListGenerationsResponse, ListGenerationsResponses, ListKnowledgeCategoriesData, ListKnowledgeCategoriesError, ListKnowledgeCategoriesErrors, ListKnowledgeCategoriesResponse, ListKnowledgeCategoriesResponses, ListKnowledgeData, ListKnowledgeError, ListKnowledgeErrors, ListKnowledgeResponse, ListKnowledgeResponses, ListMemoriesData, ListMemoriesError, ListMemoriesErrors, ListMemoriesResponse, ListMemoriesResponses, ListRelationsData, ListRelationsError, ListRelationsErrors, ListRelationsResponse, ListRelationsResponses, ListScheduledMessagesData, ListScheduledMessagesError, ListScheduledMessagesErrors, ListScheduledMessagesResponse, ListScheduledMessagesResponses, ListSessionsData, ListSessionsError, ListSessionsErrors, ListSessionsResponse, ListSessionsResponses, ListSkyboxStylesData, ListSkyboxStylesError, ListSkyboxStylesErrors, ListSkyboxStylesResponse, ListSkyboxStylesResponses, ListTemplatesData, ListTemplatesError, ListTemplatesErrors, ListTemplatesResponse, ListTemplatesResponses, ListToolCallsData, ListToolCallsError, ListToolCallsErrors, ListToolCallsResponse, ListToolCallsResponses, ListToolsData, ListToolsError, ListToolsErrors, ListToolsResponse, ListToolsResponses, ListVoicesData, ListVoicesError, ListVoicesErrors, ListVoicesResponse, ListVoicesResponses, MemoriesDeleted, MemoriesWrittenInfo, MemoryCitation, MemoryCreateRequest, MemoryInfo, MemoryPage, MemoryUpdateRequest, 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, PublishAgentDraftData, PublishAgentDraftError, PublishAgentDraftErrors, PublishAgentDraftResponse, PublishAgentDraftResponses, Reference, ReferenceInfo, RefreshKnowledgeData, RefreshKnowledgeError, RefreshKnowledgeErrors, RefreshKnowledgeResponse, RefreshKnowledgeResponses, ReindexKnowledgeData, ReindexKnowledgeError, ReindexKnowledgeErrors, ReindexKnowledgeResponse, ReindexKnowledgeResponses, RelationInfo, RelationPage, ReportAgentVersion, ReportDelivery, ReportLine, ResampleVoiceData, ResampleVoiceError, ResampleVoiceErrors, ResampleVoiceResponse, ResampleVoiceResponses, RestoreAgentVersionData, RestoreAgentVersionError, RestoreAgentVersionErrors, RestoreAgentVersionResponse, RestoreAgentVersionResponses, RevokeEphemeralKeyData, RevokeEphemeralKeyError, RevokeEphemeralKeyErrors, RevokeEphemeralKeyResponse, RevokeEphemeralKeyResponses, RotateToolSecretData, RotateToolSecretError, RotateToolSecretErrors, RotateToolSecretResponse, RotateToolSecretResponses, RotateWebhookSecretData, RotateWebhookSecretError, RotateWebhookSecretErrors, RotateWebhookSecretResponse, RotateWebhookSecretResponses, SafetyInfo, SaveDesignedVoiceData, SaveDesignedVoiceError, SaveDesignedVoiceErrors, SaveDesignedVoiceResponse, SaveDesignedVoiceResponses, ScheduledMessage, ScheduledMessageCreateRequest, ScheduledMessageDelivery, ScheduledMessagePage, SearchKnowledgeData, SearchKnowledgeError, SearchKnowledgeErrors, SearchKnowledgeResponse, SearchKnowledgeResponses, SessionCreateRequest, SessionDetail, SessionInfo, SessionPage, SetAgentKnowledgeData, SetAgentKnowledgeError, SetAgentKnowledgeErrors, SetAgentKnowledgeResponse, SetAgentKnowledgeResponses, SetAgentToolsData, SetAgentToolsError, SetAgentToolsErrors, SetAgentToolsResponse, SetAgentToolsResponses, SetEndUserStateData, SetEndUserStateError, SetEndUserStateErrors, SetEndUserStateResponse, SetEndUserStateResponses, SetKnowledgeAgentsData, SetKnowledgeAgentsError, SetKnowledgeAgentsErrors, SetKnowledgeAgentsResponse, SetKnowledgeAgentsResponses, SkyboxFile, SkyboxRequest, SkyboxStyle, SkyboxStylePage, SpeechProvider, StreamDone, StreamError, StreamSegment, StreamTranscript, SynthesizeSpeechData, SynthesizeSpeechError, SynthesizeSpeechErrors, SynthesizeSpeechResponse, SynthesizeSpeechResponses, TemplateGenerateRequest, TemplateInfo, TemplateInput, TemplatePage, TestAgentWebhookData, TestAgentWebhookError, TestAgentWebhookErrors, TestAgentWebhookResponse, TestAgentWebhookResponses, TestToolData, TestToolError, TestToolErrors, TestToolResponse, TestToolResponses, TokenSelf, ToolCall, ToolCallPage, ToolCreate, ToolInfo, ToolPage, ToolResultRequest, ToolResultTaken, ToolsAssigned, ToolTestRequest, ToolTestResult, ToolUpdate, ToolWithSecret, TranscribeAssetRequest, TranscribeData, TranscribeError, TranscribeErrors, TranscribeResponse, TranscribeResponses, Transcription, TranscriptionStreamLine, TranscriptWord, TtsOptions, TtsRequest, UnansweredQuestion, UpdateAgentData, UpdateAgentDraftData, UpdateAgentDraftError, UpdateAgentDraftErrors, UpdateAgentDraftResponse, UpdateAgentDraftResponses, 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, UpdateEndUserMemoryData, UpdateEndUserMemoryError, UpdateEndUserMemoryErrors, UpdateEndUserMemoryResponse, UpdateEndUserMemoryResponses, UpdateEndUserPersonalizationData, UpdateEndUserPersonalizationError, UpdateEndUserPersonalizationErrors, UpdateEndUserPersonalizationResponse, UpdateEndUserPersonalizationResponses, UpdateEndUserResponse, UpdateEndUserResponses, UpdateFactData, UpdateFactError, UpdateFactErrors, UpdateFactResponse, UpdateFactResponses, UpdateKnowledgeData, UpdateKnowledgeError, UpdateKnowledgeErrors, UpdateKnowledgeResponse, UpdateKnowledgeResponses, UpdateToolData, UpdateToolError, UpdateToolErrors, UpdateToolResponse, UpdateToolResponses, UpdateVoiceData, UpdateVoiceError, UpdateVoiceErrors, UpdateVoiceResponse, UpdateVoiceResponses, UploadConfirm, UploadTicket, UploadTicketRequest, UsageByKey, UsageDay, UsageResponse, UsageSummary, ValidationIssue, Variables, VariantInfo, VideoRequest, VoiceDesignPreview, VoiceDesignRequest, VoiceDesignResult, VoiceDesignSaveRequest, VoiceDetail, VoiceInfo, VoiceInfoPage, VoiceKind, VoiceSample, VoiceSource, VoiceStatus, VoiceUpdate, VoiceUpload, VoiceUploadRequest, VoiceUploadTicket, WebhookSecret, WebhookTestResult, WriteSessionMemoriesData, WriteSessionMemoriesError, WriteSessionMemoriesErrors, WriteSessionMemoriesResponse, WriteSessionMemoriesResponses } from './types.gen.js';
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -338,6 +338,14 @@ export type OrgPlan = {
|
|
|
338
338
|
*/
|
|
339
339
|
credit_balance_micros: number;
|
|
340
340
|
period_end: string;
|
|
341
|
+
/**
|
|
342
|
+
* The most agents the plan allows; `null` for no limit. Creating one past it is a 409.
|
|
343
|
+
*/
|
|
344
|
+
max_agents: number | null;
|
|
345
|
+
/**
|
|
346
|
+
* How many agents the organisation has now — read it against `max_agents` before a create, rather than learning from the 409.
|
|
347
|
+
*/
|
|
348
|
+
agent_count: number;
|
|
341
349
|
};
|
|
342
350
|
export type UsageSummary = {
|
|
343
351
|
capability: string;
|
|
@@ -1996,6 +2004,14 @@ export type AgentSummary = {
|
|
|
1996
2004
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
1997
2005
|
*/
|
|
1998
2006
|
language: string | null;
|
|
2007
|
+
/**
|
|
2008
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
2009
|
+
*
|
|
2010
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
2011
|
+
*
|
|
2012
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
2013
|
+
*/
|
|
2014
|
+
local_time: boolean;
|
|
1999
2015
|
/**
|
|
2000
2016
|
* Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. Always answered: `[]` for none.
|
|
2001
2017
|
*/
|
|
@@ -2291,7 +2307,7 @@ export type AgentSummary = {
|
|
|
2291
2307
|
*
|
|
2292
2308
|
* Answered field by field, a set's every field, each answered as the agent runs it. Always answered: `[]` for none.
|
|
2293
2309
|
*/
|
|
2294
|
-
org_defaults: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2310
|
+
org_defaults: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'local_time' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2295
2311
|
id: string;
|
|
2296
2312
|
created_at: string;
|
|
2297
2313
|
updated_at: string;
|
|
@@ -2463,6 +2479,14 @@ export type AgentInfo = {
|
|
|
2463
2479
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
2464
2480
|
*/
|
|
2465
2481
|
language: string | null;
|
|
2482
|
+
/**
|
|
2483
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
2484
|
+
*
|
|
2485
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
2486
|
+
*
|
|
2487
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
2488
|
+
*/
|
|
2489
|
+
local_time: boolean;
|
|
2466
2490
|
/**
|
|
2467
2491
|
* Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. Always answered: `[]` for none.
|
|
2468
2492
|
*/
|
|
@@ -2758,7 +2782,7 @@ export type AgentInfo = {
|
|
|
2758
2782
|
*
|
|
2759
2783
|
* Answered field by field, a set's every field, each answered as the agent runs it. Always answered: `[]` for none.
|
|
2760
2784
|
*/
|
|
2761
|
-
org_defaults: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2785
|
+
org_defaults: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'local_time' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2762
2786
|
id: string;
|
|
2763
2787
|
created_at: string;
|
|
2764
2788
|
updated_at: string;
|
|
@@ -2828,6 +2852,14 @@ export type AgentCreateRequest = {
|
|
|
2828
2852
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
2829
2853
|
*/
|
|
2830
2854
|
language?: string | null;
|
|
2855
|
+
/**
|
|
2856
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
2857
|
+
*
|
|
2858
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
2859
|
+
*
|
|
2860
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
2861
|
+
*/
|
|
2862
|
+
local_time?: boolean | null;
|
|
2831
2863
|
/**
|
|
2832
2864
|
* Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. The complete list: `null` or `[]` clears it.
|
|
2833
2865
|
*/
|
|
@@ -3123,7 +3155,7 @@ export type AgentCreateRequest = {
|
|
|
3123
3155
|
*
|
|
3124
3156
|
* Naming one field of a set names all of it. A section's name — `voice`, `safety` and the rest of the console's tabs — stands for every field of it.
|
|
3125
3157
|
*/
|
|
3126
|
-
org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
3158
|
+
org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'local_time' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
3127
3159
|
};
|
|
3128
3160
|
export type AgentReportField = {
|
|
3129
3161
|
/**
|
|
@@ -3323,6 +3355,14 @@ export type AgentDefaults = {
|
|
|
3323
3355
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
3324
3356
|
*/
|
|
3325
3357
|
language: string | null;
|
|
3358
|
+
/**
|
|
3359
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
3360
|
+
*
|
|
3361
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
3362
|
+
*
|
|
3363
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
3364
|
+
*/
|
|
3365
|
+
local_time: boolean | null;
|
|
3326
3366
|
/**
|
|
3327
3367
|
* Whether replies come back as audio as well as text.
|
|
3328
3368
|
*
|
|
@@ -3555,6 +3595,7 @@ export type AgentsFollowing = {
|
|
|
3555
3595
|
seed: number;
|
|
3556
3596
|
stop_sequences: number;
|
|
3557
3597
|
language: number;
|
|
3598
|
+
local_time: number;
|
|
3558
3599
|
voice_enabled: number;
|
|
3559
3600
|
voice_config: number;
|
|
3560
3601
|
stream_chunk_schedule: number;
|
|
@@ -3698,6 +3739,14 @@ export type AgentDefaultsUpdate = {
|
|
|
3698
3739
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
3699
3740
|
*/
|
|
3700
3741
|
language?: string | null;
|
|
3742
|
+
/**
|
|
3743
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
3744
|
+
*
|
|
3745
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
3746
|
+
*
|
|
3747
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
3748
|
+
*/
|
|
3749
|
+
local_time?: boolean | null;
|
|
3701
3750
|
/**
|
|
3702
3751
|
* Whether replies come back as audio as well as text.
|
|
3703
3752
|
*
|
|
@@ -3982,6 +4031,14 @@ export type AgentUpdate = {
|
|
|
3982
4031
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
3983
4032
|
*/
|
|
3984
4033
|
language?: string | null;
|
|
4034
|
+
/**
|
|
4035
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
4036
|
+
*
|
|
4037
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
4038
|
+
*
|
|
4039
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
4040
|
+
*/
|
|
4041
|
+
local_time?: boolean | null;
|
|
3985
4042
|
/**
|
|
3986
4043
|
* Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. The complete list: `null` or `[]` clears it.
|
|
3987
4044
|
*/
|
|
@@ -4277,7 +4334,7 @@ export type AgentUpdate = {
|
|
|
4277
4334
|
*
|
|
4278
4335
|
* Naming one field of a set names all of it. A section's name — `voice`, `safety` and the rest of the console's tabs — stands for every field of it.
|
|
4279
4336
|
*/
|
|
4280
|
-
org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
4337
|
+
org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'local_time' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
4281
4338
|
/**
|
|
4282
4339
|
* The `version` you last read for this agent. When set and the agent has been changed since, the update is refused with 409 and nothing is written - re-read it and decide again. Omit it to write unconditionally.
|
|
4283
4340
|
*/
|
|
@@ -4643,6 +4700,14 @@ export type AgentDraftUpdate = {
|
|
|
4643
4700
|
* The language the agent replies in, as a tag — `es`, `pt-BR` — whatever language the person writes in: told to the model, spoken by the voice where `voice_config` names no `language` of its own, and the hint its hearing transcribes with (the language alone, `pt` of `pt-BR`) where `stt_config` names none. **A conversation whose key names a `language` uses that instead.** Unset, the agent answers in the language it is spoken to in.
|
|
4644
4701
|
*/
|
|
4645
4702
|
language?: string | null;
|
|
4703
|
+
/**
|
|
4704
|
+
* Whether the model is told the person's local date and time with every reply — "Friday, 20 November 2026, 12:40" — so the agent can say good evening, notice it is nearly lunch, or know that today is not over. **Off by default**, and off changes nothing.
|
|
4705
|
+
*
|
|
4706
|
+
* On, it is told in front of each message the agent answers, in an opening line it writes and in a message it writes to the person first — never in its instructions, so the part of the prompt the model's provider caches stays whole. It is read in the person's own time zone: the one your server set (`time_zone` on `/v1/end-users/{end_user_id}/personalization`), else the one their app reported when it connected, which the client SDK sends by itself. **With no time zone of theirs, nothing is told**: a guessed hour is worse than none.
|
|
4707
|
+
*
|
|
4708
|
+
* About 20 input tokens on each reply, and no extra model call.
|
|
4709
|
+
*/
|
|
4710
|
+
local_time?: boolean | null;
|
|
4646
4711
|
/**
|
|
4647
4712
|
* Lines in the agent's voice, to show the model how it talks — its manner, not lines to repeat: at most 20, of 500 characters each, each read as one line. Part of its instructions on every turn, so they are prompt tokens on every reply. The complete list: `null` or `[]` clears it.
|
|
4648
4713
|
*/
|
|
@@ -4938,7 +5003,7 @@ export type AgentDraftUpdate = {
|
|
|
4938
5003
|
*
|
|
4939
5004
|
* Naming one field of a set names all of it. A section's name — `voice`, `safety` and the rest of the console's tabs — stands for every field of it.
|
|
4940
5005
|
*/
|
|
4941
|
-
org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
5006
|
+
org_defaults?: Array<'model' | 'thinking_level' | 'thinking_summaries' | 'max_output_tokens' | 'temperature' | 'top_p' | 'top_k' | 'seed' | 'stop_sequences' | 'language' | 'local_time' | 'voice_enabled' | 'voice_config' | 'stream_chunk_schedule' | 'stt_config' | 'emotion_enabled' | 'emotion_instruction' | 'relation_enabled' | 'relation_instruction' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'url_context' | 'code_execution' | 'tools_off' | 'compact_threshold_tokens' | 'compact_instruction' | 'compact_model' | 'compact_thinking_level' | 'compact_max_output_tokens' | 'fact_instruction' | 'fact_model' | 'fact_thinking_level' | 'fact_max_output_tokens' | 'max_facts' | 'facts_enabled' | 'facts_scope' | 'memories_enabled' | 'memories_scope' | 'memory_model' | 'memory_thinking_level' | 'memory_max_output_tokens' | 'memory_instruction' | 'memory_categories' | 'report_enabled' | 'report_fields' | 'report_success' | 'report_instruction' | 'report_model' | 'report_thinking_level' | 'report_max_output_tokens' | 'report_transcript' | 'outreach_enabled' | 'outreach_quiet_hours' | 'outreach_time_zone' | 'outreach_tool' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
4942
5007
|
/**
|
|
4943
5008
|
* The whole set of tools the agent would have, by `tl_…`; omitted, the draft's as they are. Ids not yours are left out.
|
|
4944
5009
|
*/
|
|
@@ -5343,6 +5408,49 @@ export type ReportLine = {
|
|
|
5343
5408
|
agent_version: number | null;
|
|
5344
5409
|
created_at: string;
|
|
5345
5410
|
};
|
|
5411
|
+
export type EndUserStatePage = {
|
|
5412
|
+
data: Array<EndUserState>;
|
|
5413
|
+
/**
|
|
5414
|
+
* Pass as `cursor` for the next page; `null` when this is the last.
|
|
5415
|
+
*/
|
|
5416
|
+
next_cursor: string | null;
|
|
5417
|
+
};
|
|
5418
|
+
export type EndUserState = {
|
|
5419
|
+
/**
|
|
5420
|
+
* The end user's `eu_...` id.
|
|
5421
|
+
*/
|
|
5422
|
+
end_user_id: string;
|
|
5423
|
+
/**
|
|
5424
|
+
* The agent it is for.
|
|
5425
|
+
*/
|
|
5426
|
+
agent_id: string;
|
|
5427
|
+
/**
|
|
5428
|
+
* Your own record of where this person stands with this agent, in plain words: "Cooking: cooked 1 of 3 this week. Persian history: off." Up to 2,000 characters.
|
|
5429
|
+
*
|
|
5430
|
+
* **Only this agent reads it, with this person, and always**: on every reply, in an opening line it writes, and in a message it writes to them first. A change reaches a conversation already open on its next reply.
|
|
5431
|
+
*
|
|
5432
|
+
* **Yours alone to write**: only an API key sets or reads it — never the person's app, a conversation or the model. Each write replaces the whole text, and nothing of the old one is kept, so it suits what changes often: a count, a streak, a step in a course. It sits in the agent's instructions after yours for the person and before what the agent remembers of them: about 250 input tokens on every reply at 1,000 characters.
|
|
5433
|
+
*
|
|
5434
|
+
* Null for none.
|
|
5435
|
+
*/
|
|
5436
|
+
text: string | null;
|
|
5437
|
+
/**
|
|
5438
|
+
* When it was last set. Null with none.
|
|
5439
|
+
*/
|
|
5440
|
+
updated_at: string | null;
|
|
5441
|
+
};
|
|
5442
|
+
export type EndUserStateUpdate = {
|
|
5443
|
+
/**
|
|
5444
|
+
* Your own record of where this person stands with this agent, in plain words: "Cooking: cooked 1 of 3 this week. Persian history: off." Up to 2,000 characters.
|
|
5445
|
+
*
|
|
5446
|
+
* **Only this agent reads it, with this person, and always**: on every reply, in an opening line it writes, and in a message it writes to them first. A change reaches a conversation already open on its next reply.
|
|
5447
|
+
*
|
|
5448
|
+
* **Yours alone to write**: only an API key sets or reads it — never the person's app, a conversation or the model. Each write replaces the whole text, and nothing of the old one is kept, so it suits what changes often: a count, a streak, a step in a course. It sits in the agent's instructions after yours for the person and before what the agent remembers of them: about 250 input tokens on every reply at 1,000 characters.
|
|
5449
|
+
*
|
|
5450
|
+
* The whole text, each time: to clear it, `DELETE` it.
|
|
5451
|
+
*/
|
|
5452
|
+
text: string;
|
|
5453
|
+
};
|
|
5346
5454
|
export type ScheduledMessage = {
|
|
5347
5455
|
/**
|
|
5348
5456
|
* The message's id, `om_…`.
|
|
@@ -10482,6 +10590,165 @@ export type PostToolResultResponses = {
|
|
|
10482
10590
|
200: ToolResultTaken;
|
|
10483
10591
|
};
|
|
10484
10592
|
export type PostToolResultResponse = PostToolResultResponses[keyof PostToolResultResponses];
|
|
10593
|
+
export type ListEndUserStatesData = {
|
|
10594
|
+
body?: never;
|
|
10595
|
+
path: {
|
|
10596
|
+
end_user_id: string;
|
|
10597
|
+
};
|
|
10598
|
+
query?: never;
|
|
10599
|
+
url: '/v1/end-users/{end_user_id}/states';
|
|
10600
|
+
};
|
|
10601
|
+
export type ListEndUserStatesErrors = {
|
|
10602
|
+
/**
|
|
10603
|
+
* Missing or invalid credentials
|
|
10604
|
+
*/
|
|
10605
|
+
401: ErrorResponse;
|
|
10606
|
+
/**
|
|
10607
|
+
* 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
|
|
10608
|
+
*/
|
|
10609
|
+
403: ErrorResponse;
|
|
10610
|
+
/**
|
|
10611
|
+
* Unknown end user id
|
|
10612
|
+
*/
|
|
10613
|
+
404: ErrorResponse;
|
|
10614
|
+
/**
|
|
10615
|
+
* The request failed validation
|
|
10616
|
+
*/
|
|
10617
|
+
422: ErrorResponse;
|
|
10618
|
+
/**
|
|
10619
|
+
* Rate limit exceeded
|
|
10620
|
+
*/
|
|
10621
|
+
429: ErrorResponse;
|
|
10622
|
+
};
|
|
10623
|
+
export type ListEndUserStatesError = ListEndUserStatesErrors[keyof ListEndUserStatesErrors];
|
|
10624
|
+
export type ListEndUserStatesResponses = {
|
|
10625
|
+
/**
|
|
10626
|
+
* Their state with each agent that has one
|
|
10627
|
+
*/
|
|
10628
|
+
200: EndUserStatePage;
|
|
10629
|
+
};
|
|
10630
|
+
export type ListEndUserStatesResponse = ListEndUserStatesResponses[keyof ListEndUserStatesResponses];
|
|
10631
|
+
export type DeleteEndUserStateData = {
|
|
10632
|
+
body?: never;
|
|
10633
|
+
path: {
|
|
10634
|
+
end_user_id: string;
|
|
10635
|
+
agent_id: string;
|
|
10636
|
+
};
|
|
10637
|
+
query?: never;
|
|
10638
|
+
url: '/v1/end-users/{end_user_id}/states/{agent_id}';
|
|
10639
|
+
};
|
|
10640
|
+
export type DeleteEndUserStateErrors = {
|
|
10641
|
+
/**
|
|
10642
|
+
* Missing or invalid credentials
|
|
10643
|
+
*/
|
|
10644
|
+
401: ErrorResponse;
|
|
10645
|
+
/**
|
|
10646
|
+
* 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
|
|
10647
|
+
*/
|
|
10648
|
+
403: ErrorResponse;
|
|
10649
|
+
/**
|
|
10650
|
+
* Unknown end user id, or Unknown agent id
|
|
10651
|
+
*/
|
|
10652
|
+
404: ErrorResponse;
|
|
10653
|
+
/**
|
|
10654
|
+
* The request failed validation
|
|
10655
|
+
*/
|
|
10656
|
+
422: ErrorResponse;
|
|
10657
|
+
/**
|
|
10658
|
+
* Rate limit exceeded
|
|
10659
|
+
*/
|
|
10660
|
+
429: ErrorResponse;
|
|
10661
|
+
};
|
|
10662
|
+
export type DeleteEndUserStateError = DeleteEndUserStateErrors[keyof DeleteEndUserStateErrors];
|
|
10663
|
+
export type DeleteEndUserStateResponses = {
|
|
10664
|
+
/**
|
|
10665
|
+
* Cleared, or there was none
|
|
10666
|
+
*/
|
|
10667
|
+
204: void;
|
|
10668
|
+
};
|
|
10669
|
+
export type DeleteEndUserStateResponse = DeleteEndUserStateResponses[keyof DeleteEndUserStateResponses];
|
|
10670
|
+
export type GetEndUserStateData = {
|
|
10671
|
+
body?: never;
|
|
10672
|
+
path: {
|
|
10673
|
+
end_user_id: string;
|
|
10674
|
+
agent_id: string;
|
|
10675
|
+
};
|
|
10676
|
+
query?: never;
|
|
10677
|
+
url: '/v1/end-users/{end_user_id}/states/{agent_id}';
|
|
10678
|
+
};
|
|
10679
|
+
export type GetEndUserStateErrors = {
|
|
10680
|
+
/**
|
|
10681
|
+
* Missing or invalid credentials
|
|
10682
|
+
*/
|
|
10683
|
+
401: ErrorResponse;
|
|
10684
|
+
/**
|
|
10685
|
+
* 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
|
|
10686
|
+
*/
|
|
10687
|
+
403: ErrorResponse;
|
|
10688
|
+
/**
|
|
10689
|
+
* Unknown end user id, or Unknown agent id
|
|
10690
|
+
*/
|
|
10691
|
+
404: ErrorResponse;
|
|
10692
|
+
/**
|
|
10693
|
+
* The request failed validation
|
|
10694
|
+
*/
|
|
10695
|
+
422: ErrorResponse;
|
|
10696
|
+
/**
|
|
10697
|
+
* Rate limit exceeded
|
|
10698
|
+
*/
|
|
10699
|
+
429: ErrorResponse;
|
|
10700
|
+
};
|
|
10701
|
+
export type GetEndUserStateError = GetEndUserStateErrors[keyof GetEndUserStateErrors];
|
|
10702
|
+
export type GetEndUserStateResponses = {
|
|
10703
|
+
/**
|
|
10704
|
+
* The state, or none
|
|
10705
|
+
*/
|
|
10706
|
+
200: EndUserState;
|
|
10707
|
+
};
|
|
10708
|
+
export type GetEndUserStateResponse = GetEndUserStateResponses[keyof GetEndUserStateResponses];
|
|
10709
|
+
export type SetEndUserStateData = {
|
|
10710
|
+
body: EndUserStateUpdate;
|
|
10711
|
+
path: {
|
|
10712
|
+
end_user_id: string;
|
|
10713
|
+
agent_id: string;
|
|
10714
|
+
};
|
|
10715
|
+
query?: never;
|
|
10716
|
+
url: '/v1/end-users/{end_user_id}/states/{agent_id}';
|
|
10717
|
+
};
|
|
10718
|
+
export type SetEndUserStateErrors = {
|
|
10719
|
+
/**
|
|
10720
|
+
* The request could not be read: malformed JSON
|
|
10721
|
+
*/
|
|
10722
|
+
400: ErrorResponse;
|
|
10723
|
+
/**
|
|
10724
|
+
* Missing or invalid credentials
|
|
10725
|
+
*/
|
|
10726
|
+
401: ErrorResponse;
|
|
10727
|
+
/**
|
|
10728
|
+
* 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
|
|
10729
|
+
*/
|
|
10730
|
+
403: ErrorResponse;
|
|
10731
|
+
/**
|
|
10732
|
+
* Unknown end user id, or Unknown agent id
|
|
10733
|
+
*/
|
|
10734
|
+
404: ErrorResponse;
|
|
10735
|
+
/**
|
|
10736
|
+
* The request failed validation
|
|
10737
|
+
*/
|
|
10738
|
+
422: ErrorResponse;
|
|
10739
|
+
/**
|
|
10740
|
+
* Rate limit exceeded
|
|
10741
|
+
*/
|
|
10742
|
+
429: ErrorResponse;
|
|
10743
|
+
};
|
|
10744
|
+
export type SetEndUserStateError = SetEndUserStateErrors[keyof SetEndUserStateErrors];
|
|
10745
|
+
export type SetEndUserStateResponses = {
|
|
10746
|
+
/**
|
|
10747
|
+
* The state, as it is now
|
|
10748
|
+
*/
|
|
10749
|
+
200: EndUserState;
|
|
10750
|
+
};
|
|
10751
|
+
export type SetEndUserStateResponse = SetEndUserStateResponses[keyof SetEndUserStateResponses];
|
|
10485
10752
|
export type ListScheduledMessagesData = {
|
|
10486
10753
|
body?: never;
|
|
10487
10754
|
path: {
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type * from "./gen/index.js";
|
|
|
10
10
|
export type { Page } from "./paging.js";
|
|
11
11
|
export type { AgentDrafts, AgentKnowledge, AgentSettings, Agents, AgentTools, AgentVersions, } from "./resources/agents.js";
|
|
12
12
|
export type { AssetListParams, Assets, AssetUploadFields, FolderListParams, Folders, } from "./resources/assets.js";
|
|
13
|
-
export type { EndUserCreated, EndUserExport, EndUserFacts, EndUserListParams, EndUserMemories, EndUserMemoryListParams, EndUserPersonalizations, EndUserReportListParams, EndUserReports, EndUserScheduledMessages, EndUsers, FactAdded, } from "./resources/end-users.js";
|
|
13
|
+
export type { EndUserCreated, EndUserExport, EndUserFacts, EndUserListParams, EndUserMemories, EndUserMemoryListParams, EndUserPersonalizations, EndUserReportListParams, EndUserReports, EndUserScheduledMessages, EndUserStates, EndUsers, FactAdded, } from "./resources/end-users.js";
|
|
14
14
|
export type { EphemeralKeyCreateOptions, EphemeralKeyListParams, EphemeralKeyRevokeOptions, EphemeralKeys, } from "./resources/ephemeral-keys.js";
|
|
15
15
|
export type { GenerationListParams, Generations, Images, Jobs, Skybox, } from "./resources/generations.js";
|
|
16
16
|
export type { Knowledge, KnowledgeInsightsParams, KnowledgeListParams, KnowledgeUploadFields, } from "./resources/knowledge.js";
|
|
@@ -23,3 +23,4 @@ export type { Voices, VoiceUploadFields } from "./resources/voices.js";
|
|
|
23
23
|
export type { Fetch, RequestOptions } from "./transport.js";
|
|
24
24
|
export type { UploadData, UploadOptions } from "./upload.js";
|
|
25
25
|
export { type Job, type Made, madeBy } from "./wait.js";
|
|
26
|
+
export { type ConversationReportEvent, type HeadersLike, type OutreachMessageEvent, SignatureError, type ToolWebhookCall, type VerifyOptions, verifyToolCall, verifyWebhook, type WebhookEvent, } from "./webhooks.js";
|
package/dist/index.js
CHANGED
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
export { createClient, DEFAULT_BASE_URL, } from "./client.js";
|
|
8
8
|
export { AuthenticationError, ConflictError, ConnectionError, InsufficientCreditsError, NotFoundError, PermissionError, PlatformError, RateLimitError, ServerError, TimeoutError, ValidationError, } from "./errors.js";
|
|
9
9
|
export { madeBy } from "./wait.js";
|
|
10
|
+
export { SignatureError, verifyToolCall, verifyWebhook, } from "./webhooks.js";
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* read fails with a 401; its one micro-credit is set aside like any key's,
|
|
35
35
|
* so an organisation with no balance cannot export (402).
|
|
36
36
|
*/
|
|
37
|
-
import type { ConversationReport, ConversationReportPage, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, ListEndUserReportsData, ListEndUsersData, MemoriesDeleted, MemoryCreateRequest, MemoryInfo, MemoryPage, MemoryUpdateRequest, NoteCreateRequest, NoteTaken, RelationInfo, ScheduledMessage, ScheduledMessageCreateRequest, SessionDetail, ToolResultRequest, ToolResultTaken } from "../gen/index.js";
|
|
37
|
+
import type { ConversationReport, ConversationReportPage, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, EndUserState, EndUserStateUpdate, EndUserUpdateRequest, FactCreateRequest, FactInfo, FactUpdateRequest, ListEndUserMemoriesData, ListEndUserReportsData, ListEndUsersData, MemoriesDeleted, MemoryCreateRequest, MemoryInfo, MemoryPage, MemoryUpdateRequest, NoteCreateRequest, NoteTaken, RelationInfo, ScheduledMessage, ScheduledMessageCreateRequest, SessionDetail, ToolResultRequest, ToolResultTaken } from "../gen/index.js";
|
|
38
38
|
import { type RequestOptions, type Transport } from "../transport.js";
|
|
39
39
|
import type { EphemeralKeys } from "./ephemeral-keys.js";
|
|
40
40
|
import { Editable } from "./resource.js";
|
|
@@ -77,6 +77,8 @@ export interface EndUserExport {
|
|
|
77
77
|
reports: ConversationReport[];
|
|
78
78
|
/** What your server set for them: the instructions every agent follows, an opening line's blanks. */
|
|
79
79
|
personalization: EndUserPersonalization;
|
|
80
|
+
/** Where your server says they stand with each agent that has a state, by agent id. */
|
|
81
|
+
states: EndUserState[];
|
|
80
82
|
/** The messages an agent was to write to them first, sent or still waiting, newest `send_at` first. */
|
|
81
83
|
scheduled_messages: ScheduledMessage[];
|
|
82
84
|
}
|
|
@@ -150,6 +152,29 @@ export interface EndUserPersonalizations {
|
|
|
150
152
|
*/
|
|
151
153
|
update(id: string, body: EndUserPersonalizationUpdate, options?: RequestOptions): Promise<EndUserPersonalization>;
|
|
152
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* `endUsers.states`: your own record of where one person stands with one
|
|
157
|
+
* agent — "Cooking: cooked 1 of 3 this week." — which that agent alone
|
|
158
|
+
* reads, with them, on every reply, in an opening line it writes and in a
|
|
159
|
+
* message it writes first: `/v1/end-users/{id}/states`. One an agent,
|
|
160
|
+
* replaced whole each time; only an API key reads or sets it.
|
|
161
|
+
*/
|
|
162
|
+
export interface EndUserStates {
|
|
163
|
+
/** Every agent's state with them, by agent id: one page, an agent with none left out. */
|
|
164
|
+
list(id: string, options?: RequestOptions): AsyncGenerator<EndUserState, void, undefined>;
|
|
165
|
+
/** Their state with `agentId`; `text` `null` for none. */
|
|
166
|
+
get(id: string, agentId: string, options?: RequestOptions): Promise<EndUserState>;
|
|
167
|
+
/**
|
|
168
|
+
* Sets it — the whole text, over whatever was there. The agent reads it
|
|
169
|
+
* on its next reply with them, in a conversation already open too.
|
|
170
|
+
*/
|
|
171
|
+
set(id: string, agentId: string, body: EndUserStateUpdate, options?: RequestOptions): Promise<EndUserState>;
|
|
172
|
+
/**
|
|
173
|
+
* Clears it: `true`, with one or none; `false` when there is no such
|
|
174
|
+
* person or agent.
|
|
175
|
+
*/
|
|
176
|
+
delete(id: string, agentId: string, options?: RequestOptions): Promise<boolean>;
|
|
177
|
+
}
|
|
153
178
|
/**
|
|
154
179
|
* `endUsers.reports`: what an agent with `report_enabled` wrote after each
|
|
155
180
|
* of one person's conversations — a summary, your fields, success by your
|
|
@@ -191,6 +216,8 @@ export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest
|
|
|
191
216
|
readonly facts: EndUserFacts;
|
|
192
217
|
readonly memories: EndUserMemories;
|
|
193
218
|
readonly personalization: EndUserPersonalizations;
|
|
219
|
+
/** Where your server says a person stands with one agent: `endUsers.states`. */
|
|
220
|
+
readonly states: EndUserStates;
|
|
194
221
|
/** Messages an agent writes to the person first: `endUsers.scheduledMessages`. */
|
|
195
222
|
readonly scheduledMessages: EndUserScheduledMessages;
|
|
196
223
|
readonly reports: EndUserReports;
|
|
@@ -96,6 +96,14 @@ export class EndUsers extends Editable {
|
|
|
96
96
|
get: (id, options) => this.send("GET", this.at(id, "/personalization"), options),
|
|
97
97
|
update: (id, body, options) => this.send("PATCH", this.at(id, "/personalization"), options, body),
|
|
98
98
|
};
|
|
99
|
+
const state = (id, agentId) => this.at(id, `/states/${segment(agentId)}`);
|
|
100
|
+
this.states = {
|
|
101
|
+
// One page by nature, an agent's row each: no `limit` to send.
|
|
102
|
+
list: (id, options) => this.each(this.at(id, "/states"), {}, options),
|
|
103
|
+
get: (id, agentId, options) => this.send("GET", state(id, agentId), options),
|
|
104
|
+
set: (id, agentId, body, options) => this.send("PUT", state(id, agentId), options, body),
|
|
105
|
+
delete: (id, agentId, options) => drop(state(id, agentId), options),
|
|
106
|
+
};
|
|
99
107
|
const reports = (id, rest = "") => this.at(id, `/reports${rest}`);
|
|
100
108
|
this.reports = {
|
|
101
109
|
list: (id, params = {}, options) => this.each(reports(id), params, options, MEMORY_PAGE),
|
|
@@ -212,9 +220,10 @@ export class EndUsers extends Editable {
|
|
|
212
220
|
// Their own record, and what your server set, scheduled and was
|
|
213
221
|
// sent about them: the API key's to read, by the id the key named.
|
|
214
222
|
const person = key.end_user_id ?? id;
|
|
215
|
-
const [end_user, personalization, reports, scheduled_messages] = await Promise.all([
|
|
223
|
+
const [end_user, personalization, states, reports, scheduled_messages] = await Promise.all([
|
|
216
224
|
this.get(person, options),
|
|
217
225
|
this.personalization.get(person, options),
|
|
226
|
+
all(this.states.list(person, options)),
|
|
218
227
|
all(this.reports.list(person, {}, options)),
|
|
219
228
|
all(this.scheduledMessages.list(person, {}, options)),
|
|
220
229
|
]);
|
|
@@ -227,6 +236,7 @@ export class EndUsers extends Editable {
|
|
|
227
236
|
relations,
|
|
228
237
|
reports,
|
|
229
238
|
personalization,
|
|
239
|
+
states,
|
|
230
240
|
scheduled_messages,
|
|
231
241
|
};
|
|
232
242
|
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the platform posts to your server, checked before it is believed:
|
|
3
|
+
* an event on your organisation's webhook (`verifyWebhook`) and a webhook
|
|
4
|
+
* tool's call (`verifyToolCall`).
|
|
5
|
+
*
|
|
6
|
+
* - **Both are signed one way** (`packages/core/src/tools/webhook.ts`'s
|
|
7
|
+
* `signature`): `t=<unix seconds>,v1=<hex>`, the HMAC-SHA256 of
|
|
8
|
+
* `<t>.<the raw body>` under the secret's UTF-8 bytes — an event's in
|
|
9
|
+
* `X-Webhook-Signature` under the organisation's one webhook secret, a
|
|
10
|
+
* tool call's in `X-Tool-Signature` under that tool's own.
|
|
11
|
+
* - **The body is the bytes that arrived**: one parsed and written again
|
|
12
|
+
* is other bytes, and fails. So the check comes first and the parse
|
|
13
|
+
* after, here.
|
|
14
|
+
* - **A `t` more than five minutes from now is refused**, which stops a
|
|
15
|
+
* post being replayed.
|
|
16
|
+
* - **Web Crypto only** — `crypto.subtle`, on Workers, Node, Deno and Bun
|
|
17
|
+
* alike — and its `verify` compares in constant time.
|
|
18
|
+
* - **Held to the platform's own signer**: `apps/api/test/sdk.test.ts`
|
|
19
|
+
* checks what `signedEvent` and `webhookRequest` sign, and each body's
|
|
20
|
+
* fields against the types here.
|
|
21
|
+
*/
|
|
22
|
+
import { PlatformError } from "./errors.js";
|
|
23
|
+
import type { ConversationReport, ScheduledMessage } from "./gen/index.js";
|
|
24
|
+
/** One event as it is posted: `data` is the thing itself, as the API answers it. */
|
|
25
|
+
interface Envelope<Type extends string, Data> {
|
|
26
|
+
/** Unique per event, the same on every retry: your key to take it once. */
|
|
27
|
+
id: string;
|
|
28
|
+
type: Type;
|
|
29
|
+
/** When it was made: ISO 8601 UTC. */
|
|
30
|
+
created_at: string;
|
|
31
|
+
/** Sent by a test button, or from a test chat on an agent's draft: not a player's. */
|
|
32
|
+
test: boolean;
|
|
33
|
+
data: Data;
|
|
34
|
+
}
|
|
35
|
+
/** A conversation's report, written after it ended. */
|
|
36
|
+
export type ConversationReportEvent = Envelope<"conversation.report", ConversationReport>;
|
|
37
|
+
/** A message an agent wrote to a person first, at a set time. */
|
|
38
|
+
export type OutreachMessageEvent = Envelope<"outreach.message", ScheduledMessage>;
|
|
39
|
+
/**
|
|
40
|
+
* Every event your webhook is posted; `type` says which, and narrows
|
|
41
|
+
* `data`. A later platform may post a type this version does not name:
|
|
42
|
+
* give your `switch` a `default` that answers 2xx and does nothing.
|
|
43
|
+
*/
|
|
44
|
+
export type WebhookEvent = ConversationReportEvent | OutreachMessageEvent;
|
|
45
|
+
/** One call to a webhook tool, as your server is posted it. */
|
|
46
|
+
export interface ToolWebhookCall {
|
|
47
|
+
/** The tool's name. */
|
|
48
|
+
tool: string;
|
|
49
|
+
/** The call's id: a background tool's result is posted under it. */
|
|
50
|
+
call_id: string;
|
|
51
|
+
/** What the model called it with, as the tool's `parameters` describe. */
|
|
52
|
+
arguments: Record<string, unknown>;
|
|
53
|
+
/** `null` on a call from the test button, as the three below. */
|
|
54
|
+
agent_id: string | null;
|
|
55
|
+
session_id: string | null;
|
|
56
|
+
turn_id: string | null;
|
|
57
|
+
/** The person: their `eu_…` id, and your own id for them. */
|
|
58
|
+
end_user: {
|
|
59
|
+
id: string;
|
|
60
|
+
external_id: string | null;
|
|
61
|
+
} | null;
|
|
62
|
+
/** A call from the test button, not a conversation. */
|
|
63
|
+
test: boolean;
|
|
64
|
+
/** When it was sent: ISO 8601 UTC. */
|
|
65
|
+
sent_at: string;
|
|
66
|
+
/** A background tool's: where its result goes; else `null`. */
|
|
67
|
+
callback_url: string | null;
|
|
68
|
+
/** A background tool's: its deadline, ISO 8601 UTC; else `null`. */
|
|
69
|
+
expires_at: string | null;
|
|
70
|
+
}
|
|
71
|
+
/** A request's headers: a `Headers`, or a plain object such as Node's `req.headers`. */
|
|
72
|
+
export type HeadersLike = {
|
|
73
|
+
get(name: string): string | null;
|
|
74
|
+
} | Readonly<Record<string, string | readonly string[] | undefined>>;
|
|
75
|
+
export interface VerifyOptions {
|
|
76
|
+
/**
|
|
77
|
+
* The post's body exactly as it arrived, text or bytes: `await
|
|
78
|
+
* request.text()`, or the raw `Buffer` — never an object parsed and
|
|
79
|
+
* written again.
|
|
80
|
+
*/
|
|
81
|
+
body: string | ArrayBuffer | ArrayBufferView;
|
|
82
|
+
headers: HeadersLike;
|
|
83
|
+
/** Your organisation's webhook secret; for a tool's call, that tool's. */
|
|
84
|
+
secret: string;
|
|
85
|
+
/** How far from now a signature's time may be, in seconds: 300. */
|
|
86
|
+
toleranceSeconds?: number;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* A post that was not the platform's, or not this one: no signature, one
|
|
90
|
+
* made too long ago, or one that does not match the body and the secret.
|
|
91
|
+
* A `PlatformError` like every failure here; its `status`, 401, is what to
|
|
92
|
+
* answer the post with.
|
|
93
|
+
*/
|
|
94
|
+
export declare class SignatureError extends PlatformError {
|
|
95
|
+
name: string;
|
|
96
|
+
constructor(message: string);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* An event posted to your organisation's webhook, checked against its
|
|
100
|
+
* `X-Webhook-Signature` and your webhook secret: the event, typed by its
|
|
101
|
+
* `type`, or a `SignatureError`.
|
|
102
|
+
*/
|
|
103
|
+
export declare const verifyWebhook: (options: VerifyOptions) => Promise<WebhookEvent>;
|
|
104
|
+
/**
|
|
105
|
+
* A call posted to a webhook tool of yours, checked against its
|
|
106
|
+
* `X-Tool-Signature` and that tool's secret: the call, or a
|
|
107
|
+
* `SignatureError`.
|
|
108
|
+
*/
|
|
109
|
+
export declare const verifyToolCall: (options: VerifyOptions) => Promise<ToolWebhookCall>;
|
|
110
|
+
export {};
|
package/dist/webhooks.js
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the platform posts to your server, checked before it is believed:
|
|
3
|
+
* an event on your organisation's webhook (`verifyWebhook`) and a webhook
|
|
4
|
+
* tool's call (`verifyToolCall`).
|
|
5
|
+
*
|
|
6
|
+
* - **Both are signed one way** (`packages/core/src/tools/webhook.ts`'s
|
|
7
|
+
* `signature`): `t=<unix seconds>,v1=<hex>`, the HMAC-SHA256 of
|
|
8
|
+
* `<t>.<the raw body>` under the secret's UTF-8 bytes — an event's in
|
|
9
|
+
* `X-Webhook-Signature` under the organisation's one webhook secret, a
|
|
10
|
+
* tool call's in `X-Tool-Signature` under that tool's own.
|
|
11
|
+
* - **The body is the bytes that arrived**: one parsed and written again
|
|
12
|
+
* is other bytes, and fails. So the check comes first and the parse
|
|
13
|
+
* after, here.
|
|
14
|
+
* - **A `t` more than five minutes from now is refused**, which stops a
|
|
15
|
+
* post being replayed.
|
|
16
|
+
* - **Web Crypto only** — `crypto.subtle`, on Workers, Node, Deno and Bun
|
|
17
|
+
* alike — and its `verify` compares in constant time.
|
|
18
|
+
* - **Held to the platform's own signer**: `apps/api/test/sdk.test.ts`
|
|
19
|
+
* checks what `signedEvent` and `webhookRequest` sign, and each body's
|
|
20
|
+
* fields against the types here.
|
|
21
|
+
*/
|
|
22
|
+
import { PlatformError } from "./errors.js";
|
|
23
|
+
/**
|
|
24
|
+
* A post that was not the platform's, or not this one: no signature, one
|
|
25
|
+
* made too long ago, or one that does not match the body and the secret.
|
|
26
|
+
* A `PlatformError` like every failure here; its `status`, 401, is what to
|
|
27
|
+
* answer the post with.
|
|
28
|
+
*/
|
|
29
|
+
export class SignatureError extends PlatformError {
|
|
30
|
+
name = "SignatureError";
|
|
31
|
+
constructor(message) {
|
|
32
|
+
super({ status: 401, code: "unauthenticated", message, requestId: null });
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/** How old a signed `t` is taken: the platform's own five minutes. */
|
|
36
|
+
const TOLERANCE_SECONDS = 300;
|
|
37
|
+
const header = (headers, name) => {
|
|
38
|
+
if (typeof headers.get === "function") {
|
|
39
|
+
return headers.get(name);
|
|
40
|
+
}
|
|
41
|
+
// A plain object's names are as its server wrote them: Node's lowercase.
|
|
42
|
+
const wanted = name.toLowerCase();
|
|
43
|
+
const all = headers;
|
|
44
|
+
for (const key in all) {
|
|
45
|
+
if (key.toLowerCase() !== wanted)
|
|
46
|
+
continue;
|
|
47
|
+
const value = all[key];
|
|
48
|
+
return (typeof value === "string" ? value : value?.[0]) ?? null;
|
|
49
|
+
}
|
|
50
|
+
return null;
|
|
51
|
+
};
|
|
52
|
+
const bytesOf = (body) => typeof body === "string"
|
|
53
|
+
? new TextEncoder().encode(body)
|
|
54
|
+
: body instanceof ArrayBuffer
|
|
55
|
+
? new Uint8Array(body)
|
|
56
|
+
: new Uint8Array(body.buffer, body.byteOffset, body.byteLength);
|
|
57
|
+
/** A signature's bytes — SHA-256's 32, as 64 hex digits; `null` for anything else. */
|
|
58
|
+
const unhex = (text) => {
|
|
59
|
+
if (!/^[0-9a-f]{64}$/i.test(text))
|
|
60
|
+
return null;
|
|
61
|
+
const out = new Uint8Array(32);
|
|
62
|
+
for (let i = 0; i < out.length; i++) {
|
|
63
|
+
out[i] = Number.parseInt(text.slice(i * 2, i * 2 + 2), 16);
|
|
64
|
+
}
|
|
65
|
+
return out;
|
|
66
|
+
};
|
|
67
|
+
/** The body, parsed, once `name`'s signature is the platform's; else a `SignatureError`. */
|
|
68
|
+
async function verified(name, options) {
|
|
69
|
+
const given = header(options.headers, name);
|
|
70
|
+
if (!given)
|
|
71
|
+
throw new SignatureError(`This post has no ${name} header.`);
|
|
72
|
+
let t = Number.NaN;
|
|
73
|
+
const signatures = [];
|
|
74
|
+
for (const part of given.split(",")) {
|
|
75
|
+
const cut = part.indexOf("=");
|
|
76
|
+
if (cut < 0)
|
|
77
|
+
continue;
|
|
78
|
+
const key = part.slice(0, cut).trim();
|
|
79
|
+
const value = part.slice(cut + 1).trim();
|
|
80
|
+
if (key === "t" && Number.isNaN(t))
|
|
81
|
+
t = Number(value || Number.NaN);
|
|
82
|
+
const signature = key === "v1" ? unhex(value) : null;
|
|
83
|
+
if (signature)
|
|
84
|
+
signatures.push(signature);
|
|
85
|
+
}
|
|
86
|
+
const tolerance = options.toleranceSeconds ?? TOLERANCE_SECONDS;
|
|
87
|
+
if (!Number.isSafeInteger(t) || !signatures.length) {
|
|
88
|
+
throw new SignatureError(`This post's ${name} is not a signature.`);
|
|
89
|
+
}
|
|
90
|
+
if (Math.abs(Date.now() / 1000 - t) > tolerance) {
|
|
91
|
+
throw new SignatureError(`This post was signed more than ${tolerance} seconds from now: a replay, or a clock that is wrong.`);
|
|
92
|
+
}
|
|
93
|
+
const body = bytesOf(options.body);
|
|
94
|
+
const lead = new TextEncoder().encode(`${t}.`);
|
|
95
|
+
const signed = new Uint8Array(lead.length + body.length);
|
|
96
|
+
signed.set(lead);
|
|
97
|
+
signed.set(body, lead.length);
|
|
98
|
+
const key = await crypto.subtle.importKey("raw", new TextEncoder().encode(options.secret), { name: "HMAC", hash: "SHA-256" }, false, ["verify"]);
|
|
99
|
+
let ours = false;
|
|
100
|
+
for (const signature of signatures) {
|
|
101
|
+
ours ||= await crypto.subtle.verify("HMAC", key, signature, signed);
|
|
102
|
+
}
|
|
103
|
+
if (!ours) {
|
|
104
|
+
throw new SignatureError(`This post's ${name} does not match its body under this secret. Check the raw body, before anything parses it, and that the secret is the one in use.`);
|
|
105
|
+
}
|
|
106
|
+
return JSON.parse(typeof options.body === "string"
|
|
107
|
+
? options.body
|
|
108
|
+
: new TextDecoder().decode(body));
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* An event posted to your organisation's webhook, checked against its
|
|
112
|
+
* `X-Webhook-Signature` and your webhook secret: the event, typed by its
|
|
113
|
+
* `type`, or a `SignatureError`.
|
|
114
|
+
*/
|
|
115
|
+
export const verifyWebhook = (options) => verified("X-Webhook-Signature", options);
|
|
116
|
+
/**
|
|
117
|
+
* A call posted to a webhook tool of yours, checked against its
|
|
118
|
+
* `X-Tool-Signature` and that tool's secret: the call, or a
|
|
119
|
+
* `SignatureError`.
|
|
120
|
+
*/
|
|
121
|
+
export const verifyToolCall = (options) => verified("X-Tool-Signature", options);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.1",
|
|
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",
|