@lumavox/server 0.67.0 → 0.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -3
- package/dist/gen/index.d.ts +1 -1
- package/dist/gen/types.gen.d.ts +412 -9
- package/dist/index.d.ts +1 -1
- package/dist/resources/end-users.d.ts +48 -5
- package/dist/resources/end-users.js +28 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ list's page.
|
|
|
68
68
|
|
|
69
69
|
| Resource | Methods |
|
|
70
70
|
|---|---|
|
|
71
|
-
| `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; `relations.list`, `relations.reset` — how each agent feels about them, and one started over; `note`; `scheduledMessages.create`, `scheduledMessages.list`, `scheduledMessages.get`, `scheduledMessages.cancel`; `reports.list`, `reports.page`, `reports.get` |
|
|
71
|
+
| `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; `relations.list`, `relations.reset` — how each agent feels about them, and one started over; `note`; `scheduledMessages.create`, `scheduledMessages.list`, `scheduledMessages.get`, `scheduledMessages.update`, `scheduledMessages.skip`, `scheduledMessages.cancel`; `reports.list`, `reports.page`, `reports.get` |
|
|
72
72
|
| `ephemeralKeys` | `limits`, `create`, `get`, `revoke`, `inspect`, `list`, `page` |
|
|
73
73
|
| `images`, `videos`, `audio`, `skybox`, `transcriptions` | `create`, `get`, `wait`, `generate`; `images.draftLayout`, `images.findElements`; `skybox.styles` |
|
|
74
74
|
| `generations` | `get`, `wait`, `list`, `page` |
|
|
@@ -169,8 +169,10 @@ ours.
|
|
|
169
169
|
|
|
170
170
|
Only what cannot happen twice is retried, up to `maxRetries`: a GET, PUT,
|
|
171
171
|
PATCH or DELETE after a failed connection, a timeout, 429, 502, 503 or 504;
|
|
172
|
-
a POST after a 429 only, which is refused before any work — and
|
|
173
|
-
`endUsers.create` with an `external_id`,
|
|
172
|
+
a POST after a 429 only, which is refused before any work — and the two
|
|
173
|
+
the API takes twice as once: `endUsers.create` with an `external_id`, and
|
|
174
|
+
`endUsers.scheduledMessages.create`, sent with an `Idempotency-Key` (yours,
|
|
175
|
+
as `{ idempotencyKey }`, or one the SDK makes for the call). A change
|
|
174
176
|
that names its `expected_version`, and a scheduled message's `cancel`, are
|
|
175
177
|
sent once, but for a 429. When a call fails after it made something — a
|
|
176
178
|
`generate()` whose wait was aborted — `madeBy(error)` answers its `{ id }`. The wait
|
package/dist/gen/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { AgentCopyRequest, AgentCreateRequest, AgentDefaults, AgentDefaultsUpdate, AgentDraft, AgentDraftPublish, AgentDraftUpdate, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentPrompt, AgentPromptPart, AgentPromptVoice, AgentQuietHours, AgentRelationStart, 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, CopyAgentData, CopyAgentError, CopyAgentErrors, CopyAgentResponse, CopyAgentResponses, 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, GenerateTextData, GenerateTextError, GenerateTextErrors, GenerateTextResponse, GenerateTextResponses, 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, 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, ListEndUserRelationsData, ListEndUserRelationsError, ListEndUserRelationsErrors, ListEndUserRelationsResponse, ListEndUserRelationsResponses, 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, ResetEndUserRelationData, ResetEndUserRelationError, ResetEndUserRelationErrors, ResetEndUserRelationResponse, ResetEndUserRelationResponses, ResetRelationData, ResetRelationError, ResetRelationErrors, ResetRelationResponse, ResetRelationResponses, 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, TextMessage, TextRequest, TextResponse, TextStreamDelta, TextStreamDone, TextStreamError, TextStreamLine, 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 { AgentCopyRequest, AgentCreateRequest, AgentDefaults, AgentDefaultsUpdate, AgentDraft, AgentDraftPublish, AgentDraftUpdate, AgentHandoff, AgentHandoffInfo, AgentInfo, AgentKnowledgeUpdate, AgentPage, AgentPrompt, AgentPromptPart, AgentPromptVoice, AgentQuietHours, AgentRelationStart, AgentReportField, AgentReportFieldInfo, AgentRestored, AgentSettingInForce, AgentSettingsInfo, AgentSettingsUpdate, AgentsFollowing, AgentStt, AgentSttInfo, AgentSummary, AgentToolsUpdate, AgentUpdate, AgentVersion, AgentVersionPage, AgentVersionRestore, AgentVersionSummary, AgentVoice, AgentVoiceInfo, AgentWording, 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, CopyAgentData, CopyAgentError, CopyAgentErrors, CopyAgentResponse, CopyAgentResponses, 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, GenerateTextData, GenerateTextError, GenerateTextErrors, GenerateTextResponse, GenerateTextResponses, 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, 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, ListEndUserRelationsData, ListEndUserRelationsError, ListEndUserRelationsErrors, ListEndUserRelationsResponse, ListEndUserRelationsResponses, 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, ResetEndUserRelationData, ResetEndUserRelationError, ResetEndUserRelationErrors, ResetEndUserRelationResponse, ResetEndUserRelationResponses, ResetRelationData, ResetRelationError, ResetRelationErrors, ResetRelationResponse, ResetRelationResponses, 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, ScheduledMessageRepeat, ScheduledMessageRepeatInfo, ScheduledMessageSkipRequest, ScheduledMessageUpdateRequest, 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, SkipScheduledMessageData, SkipScheduledMessageError, SkipScheduledMessageErrors, SkipScheduledMessageResponse, SkipScheduledMessageResponses, 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, TextMessage, TextRequest, TextResponse, TextStreamDelta, TextStreamDone, TextStreamError, TextStreamLine, 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, UpdateScheduledMessageData, UpdateScheduledMessageError, UpdateScheduledMessageErrors, UpdateScheduledMessageResponse, UpdateScheduledMessageResponses, 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
|
@@ -2048,6 +2048,57 @@ export type AgentSummary = {
|
|
|
2048
2048
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. Always answered: `[]` for none.
|
|
2049
2049
|
*/
|
|
2050
2050
|
tools_off: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'>;
|
|
2051
|
+
/**
|
|
2052
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
2053
|
+
*
|
|
2054
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. Always answered, every key: `null` where the platform's own sentence is used.
|
|
2055
|
+
*/
|
|
2056
|
+
wording: {
|
|
2057
|
+
/**
|
|
2058
|
+
* The agent's own words for a held "ask first" call where the agent asks; `null` is the platform's.
|
|
2059
|
+
*/
|
|
2060
|
+
ask_first: string | null;
|
|
2061
|
+
/**
|
|
2062
|
+
* The agent's own words for a held "ask first" call where the app asks; `null` is the platform's.
|
|
2063
|
+
*/
|
|
2064
|
+
ask_first_app: string | null;
|
|
2065
|
+
/**
|
|
2066
|
+
* The agent's own words for a background task that started; `null` is the platform's.
|
|
2067
|
+
*/
|
|
2068
|
+
task_started: string | null;
|
|
2069
|
+
/**
|
|
2070
|
+
* The agent's own words for telling a background task's result with its reply; `null` is the platform's.
|
|
2071
|
+
*/
|
|
2072
|
+
task_result_reply: string | null;
|
|
2073
|
+
/**
|
|
2074
|
+
* The agent's own words for telling a background task's result in its greeting; `null` is the platform's.
|
|
2075
|
+
*/
|
|
2076
|
+
task_result_greeting: string | null;
|
|
2077
|
+
/**
|
|
2078
|
+
* The agent's own words for telling a background task's result on its own; `null` is the platform's.
|
|
2079
|
+
*/
|
|
2080
|
+
task_result_now: string | null;
|
|
2081
|
+
/**
|
|
2082
|
+
* The agent's own words for a knowledge lookup that could not be done; `null` is the platform's.
|
|
2083
|
+
*/
|
|
2084
|
+
lookup_failed: string | null;
|
|
2085
|
+
/**
|
|
2086
|
+
* The agent's own words for a memory search that could not be done; `null` is the platform's.
|
|
2087
|
+
*/
|
|
2088
|
+
memory_failed: string | null;
|
|
2089
|
+
/**
|
|
2090
|
+
* The agent's own words for a conversation handed to it; `null` is the platform's.
|
|
2091
|
+
*/
|
|
2092
|
+
taken_over: string | null;
|
|
2093
|
+
/**
|
|
2094
|
+
* The agent's own words for a reply that will be spoken; `null` is the platform's.
|
|
2095
|
+
*/
|
|
2096
|
+
speaking: string | null;
|
|
2097
|
+
/**
|
|
2098
|
+
* The agent's own words for a silence it speaks into; `null` is the platform's.
|
|
2099
|
+
*/
|
|
2100
|
+
silence: string | null;
|
|
2101
|
+
};
|
|
2051
2102
|
/**
|
|
2052
2103
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
|
|
2053
2104
|
*/
|
|
@@ -2363,7 +2414,7 @@ export type AgentSummary = {
|
|
|
2363
2414
|
*
|
|
2364
2415
|
* Answered field by field, a set's every field, each answered as the agent runs it. Always answered: `[]` for none.
|
|
2365
2416
|
*/
|
|
2366
|
-
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2417
|
+
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | 'url_context' | 'code_execution' | 'tools_off' | 'wording' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2367
2418
|
id: string;
|
|
2368
2419
|
created_at: string;
|
|
2369
2420
|
updated_at: string;
|
|
@@ -2585,6 +2636,57 @@ export type AgentInfo = {
|
|
|
2585
2636
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. Always answered: `[]` for none.
|
|
2586
2637
|
*/
|
|
2587
2638
|
tools_off: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'>;
|
|
2639
|
+
/**
|
|
2640
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
2641
|
+
*
|
|
2642
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. Always answered, every key: `null` where the platform's own sentence is used.
|
|
2643
|
+
*/
|
|
2644
|
+
wording: {
|
|
2645
|
+
/**
|
|
2646
|
+
* The agent's own words for a held "ask first" call where the agent asks; `null` is the platform's.
|
|
2647
|
+
*/
|
|
2648
|
+
ask_first: string | null;
|
|
2649
|
+
/**
|
|
2650
|
+
* The agent's own words for a held "ask first" call where the app asks; `null` is the platform's.
|
|
2651
|
+
*/
|
|
2652
|
+
ask_first_app: string | null;
|
|
2653
|
+
/**
|
|
2654
|
+
* The agent's own words for a background task that started; `null` is the platform's.
|
|
2655
|
+
*/
|
|
2656
|
+
task_started: string | null;
|
|
2657
|
+
/**
|
|
2658
|
+
* The agent's own words for telling a background task's result with its reply; `null` is the platform's.
|
|
2659
|
+
*/
|
|
2660
|
+
task_result_reply: string | null;
|
|
2661
|
+
/**
|
|
2662
|
+
* The agent's own words for telling a background task's result in its greeting; `null` is the platform's.
|
|
2663
|
+
*/
|
|
2664
|
+
task_result_greeting: string | null;
|
|
2665
|
+
/**
|
|
2666
|
+
* The agent's own words for telling a background task's result on its own; `null` is the platform's.
|
|
2667
|
+
*/
|
|
2668
|
+
task_result_now: string | null;
|
|
2669
|
+
/**
|
|
2670
|
+
* The agent's own words for a knowledge lookup that could not be done; `null` is the platform's.
|
|
2671
|
+
*/
|
|
2672
|
+
lookup_failed: string | null;
|
|
2673
|
+
/**
|
|
2674
|
+
* The agent's own words for a memory search that could not be done; `null` is the platform's.
|
|
2675
|
+
*/
|
|
2676
|
+
memory_failed: string | null;
|
|
2677
|
+
/**
|
|
2678
|
+
* The agent's own words for a conversation handed to it; `null` is the platform's.
|
|
2679
|
+
*/
|
|
2680
|
+
taken_over: string | null;
|
|
2681
|
+
/**
|
|
2682
|
+
* The agent's own words for a reply that will be spoken; `null` is the platform's.
|
|
2683
|
+
*/
|
|
2684
|
+
speaking: string | null;
|
|
2685
|
+
/**
|
|
2686
|
+
* The agent's own words for a silence it speaks into; `null` is the platform's.
|
|
2687
|
+
*/
|
|
2688
|
+
silence: string | null;
|
|
2689
|
+
};
|
|
2588
2690
|
/**
|
|
2589
2691
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. `[]` for none. A target deleted since is gone from the list.
|
|
2590
2692
|
*/
|
|
@@ -2900,7 +3002,7 @@ export type AgentInfo = {
|
|
|
2900
3002
|
*
|
|
2901
3003
|
* Answered field by field, a set's every field, each answered as the agent runs it. Always answered: `[]` for none.
|
|
2902
3004
|
*/
|
|
2903
|
-
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
3005
|
+
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | 'url_context' | 'code_execution' | 'tools_off' | 'wording' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message'>;
|
|
2904
3006
|
id: string;
|
|
2905
3007
|
created_at: string;
|
|
2906
3008
|
updated_at: string;
|
|
@@ -3010,6 +3112,12 @@ export type AgentCreateRequest = {
|
|
|
3010
3112
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
|
|
3011
3113
|
*/
|
|
3012
3114
|
tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
|
|
3115
|
+
/**
|
|
3116
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
3117
|
+
*
|
|
3118
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. The complete object: a key left out is the platform's, and `null` or `{}` clears every key.
|
|
3119
|
+
*/
|
|
3120
|
+
wording?: AgentWording | null;
|
|
3013
3121
|
/**
|
|
3014
3122
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
|
|
3015
3123
|
*/
|
|
@@ -3325,7 +3433,7 @@ export type AgentCreateRequest = {
|
|
|
3325
3433
|
*
|
|
3326
3434
|
* 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.
|
|
3327
3435
|
*/
|
|
3328
|
-
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
3436
|
+
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | 'url_context' | 'code_execution' | 'tools_off' | 'wording' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
3329
3437
|
};
|
|
3330
3438
|
export type AgentReportField = {
|
|
3331
3439
|
/**
|
|
@@ -3345,6 +3453,52 @@ export type AgentReportField = {
|
|
|
3345
3453
|
*/
|
|
3346
3454
|
choices?: Array<string> | null;
|
|
3347
3455
|
};
|
|
3456
|
+
export type AgentWording = {
|
|
3457
|
+
/**
|
|
3458
|
+
* What the agent is told when one of its "ask first" tools is called and waits for the person's yes, on a connection where the agent asks (`ask_first_by: "agent"`, the default). The agent's next words to the person come from it. It should have the agent ask whether to go ahead, and call the tool again with the same inputs if they agree: a yes the person says or types runs the tool only through that second call. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3459
|
+
*/
|
|
3460
|
+
ask_first?: string | null;
|
|
3461
|
+
/**
|
|
3462
|
+
* The same on a connection whose app draws the question itself (`ask_first_by: "app"`): what the agent says beside your Yes and No. It should have the agent say what it will do without asking a question and without saying the thing is done, and call the tool again with the same inputs if they agree. The platform's own sentence tells the agent that the person's app is asking them, and the agent may say so; write your own to keep the app out of what it says. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3463
|
+
*/
|
|
3464
|
+
ask_first_app?: string | null;
|
|
3465
|
+
/**
|
|
3466
|
+
* What the agent is told when one of its background tools has started: what it says while the work runs. It should have the agent say it is on it, and neither wait for the result nor make one up. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3467
|
+
*/
|
|
3468
|
+
task_started?: string | null;
|
|
3469
|
+
/**
|
|
3470
|
+
* The last line of a background task's results when they are placed in front of the person's next message: what the agent does with them in its reply. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3471
|
+
*/
|
|
3472
|
+
task_result_reply?: string | null;
|
|
3473
|
+
/**
|
|
3474
|
+
* The same when the results arrive as a conversation opens: what the agent does with them in its greeting. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3475
|
+
*/
|
|
3476
|
+
task_result_greeting?: string | null;
|
|
3477
|
+
/**
|
|
3478
|
+
* The same when a result arrives while the person has said nothing, and the agent speaks on its own to tell it. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3479
|
+
*/
|
|
3480
|
+
task_result_now?: string | null;
|
|
3481
|
+
/**
|
|
3482
|
+
* What the agent is told when a search of its knowledge could not be done: what it says instead of an answer. It should keep the agent from guessing one. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3483
|
+
*/
|
|
3484
|
+
lookup_failed?: string | null;
|
|
3485
|
+
/**
|
|
3486
|
+
* What the agent is told when a search of what it remembers of the person could not be done. It should keep the agent from guessing. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3487
|
+
*/
|
|
3488
|
+
memory_failed?: string | null;
|
|
3489
|
+
/**
|
|
3490
|
+
* What this agent is told when another agent hands it a conversation: its first words to the person come from it. `{from}` in your text is replaced by the name of the agent that passed the conversation on. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3491
|
+
*/
|
|
3492
|
+
taken_over?: string | null;
|
|
3493
|
+
/**
|
|
3494
|
+
* What the agent is told in front of a message whose reply it will speak, when it writes for speech (`voice_config.write_for_speech`): how to write what will be heard and not read. The platform's has it write numbers, dates and times in words and leave out lists, links and symbols, and keep a line its instructions tell a reply to begin with — its mood — as written; yours should keep that last point. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3495
|
+
*/
|
|
3496
|
+
speaking?: string | null;
|
|
3497
|
+
/**
|
|
3498
|
+
* What the agent is told when the person has said nothing for `silence_after_seconds` and it writes its own line (`silence_generated`): `{seconds}` in your text is replaced by how long they have been quiet. The agent's direction (`silence_message`) follows it on a line of its own. At most the platform's `limits.agent.wording_chars` characters ([Limits](/limits)); `null` or left out is the platform's own sentence.
|
|
3499
|
+
*/
|
|
3500
|
+
silence?: string | null;
|
|
3501
|
+
};
|
|
3348
3502
|
export type AgentHandoff = {
|
|
3349
3503
|
/**
|
|
3350
3504
|
* Another agent of yours: never this one, nor one already listed.
|
|
@@ -3627,6 +3781,57 @@ export type AgentDefaults = {
|
|
|
3627
3781
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. Always answered: `[]` for none.
|
|
3628
3782
|
*/
|
|
3629
3783
|
tools_off: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
|
|
3784
|
+
/**
|
|
3785
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
3786
|
+
*
|
|
3787
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. Always answered, every key: `null` where the platform's own sentence is used.
|
|
3788
|
+
*/
|
|
3789
|
+
wording: {
|
|
3790
|
+
/**
|
|
3791
|
+
* The agent's own words for a held "ask first" call where the agent asks; `null` is the platform's.
|
|
3792
|
+
*/
|
|
3793
|
+
ask_first: string | null;
|
|
3794
|
+
/**
|
|
3795
|
+
* The agent's own words for a held "ask first" call where the app asks; `null` is the platform's.
|
|
3796
|
+
*/
|
|
3797
|
+
ask_first_app: string | null;
|
|
3798
|
+
/**
|
|
3799
|
+
* The agent's own words for a background task that started; `null` is the platform's.
|
|
3800
|
+
*/
|
|
3801
|
+
task_started: string | null;
|
|
3802
|
+
/**
|
|
3803
|
+
* The agent's own words for telling a background task's result with its reply; `null` is the platform's.
|
|
3804
|
+
*/
|
|
3805
|
+
task_result_reply: string | null;
|
|
3806
|
+
/**
|
|
3807
|
+
* The agent's own words for telling a background task's result in its greeting; `null` is the platform's.
|
|
3808
|
+
*/
|
|
3809
|
+
task_result_greeting: string | null;
|
|
3810
|
+
/**
|
|
3811
|
+
* The agent's own words for telling a background task's result on its own; `null` is the platform's.
|
|
3812
|
+
*/
|
|
3813
|
+
task_result_now: string | null;
|
|
3814
|
+
/**
|
|
3815
|
+
* The agent's own words for a knowledge lookup that could not be done; `null` is the platform's.
|
|
3816
|
+
*/
|
|
3817
|
+
lookup_failed: string | null;
|
|
3818
|
+
/**
|
|
3819
|
+
* The agent's own words for a memory search that could not be done; `null` is the platform's.
|
|
3820
|
+
*/
|
|
3821
|
+
memory_failed: string | null;
|
|
3822
|
+
/**
|
|
3823
|
+
* The agent's own words for a conversation handed to it; `null` is the platform's.
|
|
3824
|
+
*/
|
|
3825
|
+
taken_over: string | null;
|
|
3826
|
+
/**
|
|
3827
|
+
* The agent's own words for a reply that will be spoken; `null` is the platform's.
|
|
3828
|
+
*/
|
|
3829
|
+
speaking: string | null;
|
|
3830
|
+
/**
|
|
3831
|
+
* The agent's own words for a silence it speaks into; `null` is the platform's.
|
|
3832
|
+
*/
|
|
3833
|
+
silence: string | null;
|
|
3834
|
+
} | null;
|
|
3630
3835
|
/**
|
|
3631
3836
|
* Compact automatically once a reply's first model call reads this many tokens — the conversation, its summary and the instruction, without the inline knowledge or the turn's looked-up passages, which no summary shrinks. Tool results do not count. Unset uses the platform's default, `agents.memory.compaction.default_threshold_tokens` on the Limits page. At most 200,000, and at least twice what the instruction costs on its own. `POST /v1/agent/sessions/{id}/compact` works whatever it is.
|
|
3632
3837
|
*/
|
|
@@ -3821,6 +4026,7 @@ export type AgentsFollowing = {
|
|
|
3821
4026
|
url_context: number;
|
|
3822
4027
|
code_execution: number;
|
|
3823
4028
|
tools_off: number;
|
|
4029
|
+
wording: number;
|
|
3824
4030
|
compact_threshold_tokens: number;
|
|
3825
4031
|
compact_instruction: number;
|
|
3826
4032
|
compact_model: number;
|
|
@@ -4052,6 +4258,12 @@ export type AgentDefaultsUpdate = {
|
|
|
4052
4258
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
|
|
4053
4259
|
*/
|
|
4054
4260
|
tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
|
|
4261
|
+
/**
|
|
4262
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
4263
|
+
*
|
|
4264
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. The complete object: a key left out is the platform's, and `null` or `{}` clears every key.
|
|
4265
|
+
*/
|
|
4266
|
+
wording?: AgentWording | null;
|
|
4055
4267
|
/**
|
|
4056
4268
|
* Compact automatically once a reply's first model call reads this many tokens — the conversation, its summary and the instruction, without the inline knowledge or the turn's looked-up passages, which no summary shrinks. Tool results do not count. Unset uses the platform's default, `agents.memory.compaction.default_threshold_tokens` on the Limits page. At most 200,000, and at least twice what the instruction costs on its own. `POST /v1/agent/sessions/{id}/compact` works whatever it is.
|
|
4057
4269
|
*/
|
|
@@ -4316,6 +4528,12 @@ export type AgentUpdate = {
|
|
|
4316
4528
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
|
|
4317
4529
|
*/
|
|
4318
4530
|
tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
|
|
4531
|
+
/**
|
|
4532
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
4533
|
+
*
|
|
4534
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. The complete object: a key left out is the platform's, and `null` or `{}` clears every key.
|
|
4535
|
+
*/
|
|
4536
|
+
wording?: AgentWording | null;
|
|
4319
4537
|
/**
|
|
4320
4538
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
|
|
4321
4539
|
*/
|
|
@@ -4631,7 +4849,7 @@ export type AgentUpdate = {
|
|
|
4631
4849
|
*
|
|
4632
4850
|
* 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.
|
|
4633
4851
|
*/
|
|
4634
|
-
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
4852
|
+
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | 'url_context' | 'code_execution' | 'tools_off' | 'wording' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
4635
4853
|
/**
|
|
4636
4854
|
* 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.
|
|
4637
4855
|
*/
|
|
@@ -5047,6 +5265,12 @@ export type AgentDraftUpdate = {
|
|
|
5047
5265
|
* The platform's own tools this agent is not offered, while the feature each belongs to stays on: `search_knowledge` (its knowledge is still looked up before replies when `knowledge_lookup_first` is on), `forget_fact` (it cannot forget a fact when asked), `remember_conversation` (memories are still read from its conversations), `search_memories` (it knows a topic by its line alone) and `remember_relation` (the relationship stays as it is, and is still told to it). `hand_off` and `schedule_message` have switches of their own: `handoffs` and `outreach_tool`. The complete list: `null` or `[]` clears it.
|
|
5048
5266
|
*/
|
|
5049
5267
|
tools_off?: Array<'search_knowledge' | 'forget_fact' | 'remember_conversation' | 'search_memories' | 'remember_relation'> | null;
|
|
5268
|
+
/**
|
|
5269
|
+
* **The agent's own words for what the platform tells it**, a key a sentence: the platform writes a few sentences of its own for the model — what an agent is told when a tool waits for the person's yes, when a background task starts or ends, when a lookup cannot be done, when a conversation is handed to it, when its reply will be spoken, when the person goes quiet — and the agent says something to the person by each. Write your own here to change what it says; what the platform does is the same whatever the words (a held tool still runs only on the person's yes).
|
|
5270
|
+
*
|
|
5271
|
+
* An agent may take it from your organisation's `agent_defaults` instead (`org_defaults`), whole. The complete object: a key left out is the platform's, and `null` or `{}` clears every key.
|
|
5272
|
+
*/
|
|
5273
|
+
wording?: AgentWording | null;
|
|
5050
5274
|
/**
|
|
5051
5275
|
* Other agents of yours this one may pass the conversation to, each with when: the agent is offered a tool to hand off, and the agent it hands to answers the person's last message and carries the conversation on, with its own instructions, voice, knowledge and tools. At most 10. The complete list, in order: `null` or `[]` clears it.
|
|
5052
5276
|
*/
|
|
@@ -5362,7 +5586,7 @@ export type AgentDraftUpdate = {
|
|
|
5362
5586
|
*
|
|
5363
5587
|
* 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.
|
|
5364
5588
|
*/
|
|
5365
|
-
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
5589
|
+
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' | 'turn_end_ms' | 'silence_after_seconds' | 'silence_max' | 'emotion_enabled' | 'emotion_instruction' | 'moods' | 'relation_enabled' | 'relation_instruction' | 'relation_start' | 'knowledge_enabled' | 'knowledge_mode' | 'knowledge_lookup_first' | 'knowledge_max_results' | 'person_knowledge' | 'url_context' | 'code_execution' | 'tools_off' | 'wording' | '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' | 'instructions' | 'guardrails' | 'age_level' | 'blocked_topics' | 'fallback_message' | 'time' | 'voice' | 'hearing' | 'emotion' | 'relationship' | 'knowledge' | 'builtin_tools' | 'compaction' | 'facts' | 'memories' | 'reports' | 'outreach' | 'safety'> | null;
|
|
5366
5590
|
/**
|
|
5367
5591
|
* The whole set of tools the agent would have, by `tl_…`; omitted, the draft's as they are. Ids not yours are left out.
|
|
5368
5592
|
*/
|
|
@@ -5867,7 +6091,7 @@ export type ScheduledMessage = {
|
|
|
5867
6091
|
[key: string]: unknown;
|
|
5868
6092
|
} | null;
|
|
5869
6093
|
/**
|
|
5870
|
-
* When you asked for it.
|
|
6094
|
+
* When you asked for it; for a message that repeats, its next occurrence.
|
|
5871
6095
|
*/
|
|
5872
6096
|
send_at: string;
|
|
5873
6097
|
/**
|
|
@@ -5886,6 +6110,14 @@ export type ScheduledMessage = {
|
|
|
5886
6110
|
* The agent's [version](/agents/versions) that wrote it; null until it is written.
|
|
5887
6111
|
*/
|
|
5888
6112
|
agent_version: number | null;
|
|
6113
|
+
/**
|
|
6114
|
+
* Its rule, when it repeats: it stays `scheduled` under this id for as long as it does, `send_at` and `due_at` its next occurrence's. Null for a message written once, and for an occurrence.
|
|
6115
|
+
*/
|
|
6116
|
+
repeat: ScheduledMessageRepeatInfo | null;
|
|
6117
|
+
/**
|
|
6118
|
+
* For one occurrence of a message that repeats — written, skipped by a limit or failed — that message's id: each occurrence is kept under an id of its own, which is what your webhook is sent. Null otherwise.
|
|
6119
|
+
*/
|
|
6120
|
+
repeat_of: string | null;
|
|
5889
6121
|
/**
|
|
5890
6122
|
* `away` when it was written with no app connected — show it as a notification; `socket` when the person's app was on the conversation and heard it there. Null until written.
|
|
5891
6123
|
*/
|
|
@@ -5893,6 +6125,16 @@ export type ScheduledMessage = {
|
|
|
5893
6125
|
webhook: ScheduledMessageDelivery;
|
|
5894
6126
|
created_at: string;
|
|
5895
6127
|
};
|
|
6128
|
+
export type ScheduledMessageRepeatInfo = {
|
|
6129
|
+
/**
|
|
6130
|
+
* The time of day it is written, `HH:MM` on a 24-hour clock, **in the person's own time zone** — the one your server set, else the one their app reported, else the agent's `outreach_time_zone` — read again at each occurrence.
|
|
6131
|
+
*/
|
|
6132
|
+
at: string;
|
|
6133
|
+
/**
|
|
6134
|
+
* The weekdays it is written on, any of `mon` to `sun`; `null` is every day. In the week's order.
|
|
6135
|
+
*/
|
|
6136
|
+
weekdays: Array<'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun'> | null;
|
|
6137
|
+
};
|
|
5896
6138
|
/**
|
|
5897
6139
|
* Its delivery to your webhook as `outreach.message`, posted once it is written — where it stands, as a report's.
|
|
5898
6140
|
*/
|
|
@@ -5924,9 +6166,10 @@ export type ScheduledMessageCreateRequest = {
|
|
|
5924
6166
|
*/
|
|
5925
6167
|
agent_id: string;
|
|
5926
6168
|
/**
|
|
5927
|
-
* When to write it: an instant with its zone, at least a minute from now and at most `agents.outreach.ahead_max_days` ahead (the Limits page). Inside the agent's quiet hours, in the person's time zone, it waits for their end.
|
|
6169
|
+
* When to write it, for a message written once: an instant with its zone, at least a minute from now and at most `agents.outreach.ahead_max_days` ahead (the Limits page). Inside the agent's quiet hours, in the person's time zone, it waits for their end. **Give `send_at` or `repeat`, never both.**
|
|
5928
6170
|
*/
|
|
5929
|
-
send_at
|
|
6171
|
+
send_at?: string;
|
|
6172
|
+
repeat?: ScheduledMessageRepeat;
|
|
5930
6173
|
/**
|
|
5931
6174
|
* What the agent should write about, in its own words and character: "Tell them their tomatoes are ready to harvest." The model reads it as your direction, never as the person's words, and the person never sees it. 1 to 1,000 characters.
|
|
5932
6175
|
*/
|
|
@@ -5942,6 +6185,19 @@ export type ScheduledMessageCreateRequest = {
|
|
|
5942
6185
|
[key: string]: unknown;
|
|
5943
6186
|
} | null;
|
|
5944
6187
|
};
|
|
6188
|
+
/**
|
|
6189
|
+
* For a message that repeats, in place of `send_at`: written at this time of day until you cancel it, its first occurrence the next one at least a minute away. Each occurrence is a message as any other — the quiet hours, the day's and the unanswered limits, your webhook — paid for as it comes due.
|
|
6190
|
+
*/
|
|
6191
|
+
export type ScheduledMessageRepeat = {
|
|
6192
|
+
/**
|
|
6193
|
+
* The time of day it is written, `HH:MM` on a 24-hour clock, **in the person's own time zone** — the one your server set, else the one their app reported, else the agent's `outreach_time_zone` — read again at each occurrence.
|
|
6194
|
+
*/
|
|
6195
|
+
at: string;
|
|
6196
|
+
/**
|
|
6197
|
+
* The weekdays it is written on, any of `mon` to `sun`; `null` is every day. Unset is every day too.
|
|
6198
|
+
*/
|
|
6199
|
+
weekdays?: Array<'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun'> | null;
|
|
6200
|
+
};
|
|
5945
6201
|
export type ScheduledMessagePage = {
|
|
5946
6202
|
data: Array<ScheduledMessage>;
|
|
5947
6203
|
/**
|
|
@@ -5949,6 +6205,29 @@ export type ScheduledMessagePage = {
|
|
|
5949
6205
|
*/
|
|
5950
6206
|
next_cursor: string | null;
|
|
5951
6207
|
};
|
|
6208
|
+
export type ScheduledMessageUpdateRequest = {
|
|
6209
|
+
/**
|
|
6210
|
+
* A new time, for a message written once, as a create's: at least a minute from now and at most `agents.outreach.ahead_max_days` ahead. What was set aside for the message comes back, and it is paid for when it is written — skipped as `unfunded` if your balance cannot pay then.
|
|
6211
|
+
*/
|
|
6212
|
+
send_at?: string;
|
|
6213
|
+
repeat?: ScheduledMessageRepeat & unknown;
|
|
6214
|
+
/**
|
|
6215
|
+
* What the agent should write about, in its own words and character: "Tell them their tomatoes are ready to harvest." The model reads it as your direction, never as the person's words, and the person never sees it. 1 to 1,000 characters.
|
|
6216
|
+
*/
|
|
6217
|
+
note?: string;
|
|
6218
|
+
/**
|
|
6219
|
+
* Your own JSON object, up to 1 KB, given back as it is with the message — in the webhook too — so your server knows what it was for (`{"kind": "harvest"}`). `null` for none.
|
|
6220
|
+
*/
|
|
6221
|
+
metadata?: {
|
|
6222
|
+
[key: string]: unknown;
|
|
6223
|
+
} | null;
|
|
6224
|
+
};
|
|
6225
|
+
export type ScheduledMessageSkipRequest = {
|
|
6226
|
+
/**
|
|
6227
|
+
* The calendar day, in the person's time zone, whose occurrence is not written. Unset, the next occurrence. **Send it, and the call is safe to make again**: a day already behind the message changes nothing.
|
|
6228
|
+
*/
|
|
6229
|
+
date?: string;
|
|
6230
|
+
};
|
|
5952
6231
|
export type KnowledgeCategoryPage = {
|
|
5953
6232
|
data: Array<string>;
|
|
5954
6233
|
/**
|
|
@@ -11615,6 +11894,12 @@ export type ListScheduledMessagesResponses = {
|
|
|
11615
11894
|
export type ListScheduledMessagesResponse = ListScheduledMessagesResponses[keyof ListScheduledMessagesResponses];
|
|
11616
11895
|
export type CreateScheduledMessageData = {
|
|
11617
11896
|
body: ScheduledMessageCreateRequest;
|
|
11897
|
+
headers?: {
|
|
11898
|
+
/**
|
|
11899
|
+
* Yours, unique per message for this end user: send it again with a retry, and the message is not scheduled twice — the one already kept is answered as it stands, with `200`. The same key for a different message is a 409. Remembered for as long as the message is kept.
|
|
11900
|
+
*/
|
|
11901
|
+
'idempotency-key'?: string;
|
|
11902
|
+
};
|
|
11618
11903
|
path: {
|
|
11619
11904
|
/**
|
|
11620
11905
|
* The end user's `eu_...` id, or your own id for them.
|
|
@@ -11646,7 +11931,7 @@ export type CreateScheduledMessageErrors = {
|
|
|
11646
11931
|
*/
|
|
11647
11932
|
404: ErrorResponse;
|
|
11648
11933
|
/**
|
|
11649
|
-
* The agent does not write first,
|
|
11934
|
+
* The agent does not write first, the person's day or queue is full, or the `Idempotency-Key` was used for a different message
|
|
11650
11935
|
*/
|
|
11651
11936
|
409: ErrorResponse;
|
|
11652
11937
|
/**
|
|
@@ -11664,6 +11949,10 @@ export type CreateScheduledMessageErrors = {
|
|
|
11664
11949
|
};
|
|
11665
11950
|
export type CreateScheduledMessageError = CreateScheduledMessageErrors[keyof CreateScheduledMessageErrors];
|
|
11666
11951
|
export type CreateScheduledMessageResponses = {
|
|
11952
|
+
/**
|
|
11953
|
+
* Already scheduled by an earlier request with this `Idempotency-Key`: that message, as it stands
|
|
11954
|
+
*/
|
|
11955
|
+
200: ScheduledMessage;
|
|
11667
11956
|
/**
|
|
11668
11957
|
* Scheduled
|
|
11669
11958
|
*/
|
|
@@ -11772,6 +12061,120 @@ export type GetScheduledMessageResponses = {
|
|
|
11772
12061
|
200: ScheduledMessage;
|
|
11773
12062
|
};
|
|
11774
12063
|
export type GetScheduledMessageResponse = GetScheduledMessageResponses[keyof GetScheduledMessageResponses];
|
|
12064
|
+
export type UpdateScheduledMessageData = {
|
|
12065
|
+
body: ScheduledMessageUpdateRequest;
|
|
12066
|
+
path: {
|
|
12067
|
+
/**
|
|
12068
|
+
* The end user's `eu_...` id, or your own id for them.
|
|
12069
|
+
*/
|
|
12070
|
+
end_user_id: string;
|
|
12071
|
+
/**
|
|
12072
|
+
* The message's `om_...` id.
|
|
12073
|
+
*/
|
|
12074
|
+
message_id: string;
|
|
12075
|
+
};
|
|
12076
|
+
query?: never;
|
|
12077
|
+
url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}';
|
|
12078
|
+
};
|
|
12079
|
+
export type UpdateScheduledMessageErrors = {
|
|
12080
|
+
/**
|
|
12081
|
+
* The request could not be read: malformed JSON
|
|
12082
|
+
*/
|
|
12083
|
+
400: ErrorResponse;
|
|
12084
|
+
/**
|
|
12085
|
+
* Missing or invalid credentials
|
|
12086
|
+
*/
|
|
12087
|
+
401: ErrorResponse;
|
|
12088
|
+
/**
|
|
12089
|
+
* 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
|
|
12090
|
+
*/
|
|
12091
|
+
403: ErrorResponse;
|
|
12092
|
+
/**
|
|
12093
|
+
* Unknown end user id Or: No such scheduled message for this end user.
|
|
12094
|
+
*/
|
|
12095
|
+
404: ErrorResponse;
|
|
12096
|
+
/**
|
|
12097
|
+
* Already written, skipped, cancelled or failed; being written now; the new day is full; or a time for one that repeats, a rule for one that does not
|
|
12098
|
+
*/
|
|
12099
|
+
409: ErrorResponse;
|
|
12100
|
+
/**
|
|
12101
|
+
* The request failed validation
|
|
12102
|
+
*/
|
|
12103
|
+
422: ErrorResponse;
|
|
12104
|
+
/**
|
|
12105
|
+
* Rate limit exceeded
|
|
12106
|
+
*/
|
|
12107
|
+
429: ErrorResponse;
|
|
12108
|
+
/**
|
|
12109
|
+
* The end user's store could not be reached for a moment; retry shortly
|
|
12110
|
+
*/
|
|
12111
|
+
503: ErrorResponse;
|
|
12112
|
+
};
|
|
12113
|
+
export type UpdateScheduledMessageError = UpdateScheduledMessageErrors[keyof UpdateScheduledMessageErrors];
|
|
12114
|
+
export type UpdateScheduledMessageResponses = {
|
|
12115
|
+
/**
|
|
12116
|
+
* Changed
|
|
12117
|
+
*/
|
|
12118
|
+
200: ScheduledMessage;
|
|
12119
|
+
};
|
|
12120
|
+
export type UpdateScheduledMessageResponse = UpdateScheduledMessageResponses[keyof UpdateScheduledMessageResponses];
|
|
12121
|
+
export type SkipScheduledMessageData = {
|
|
12122
|
+
body: ScheduledMessageSkipRequest;
|
|
12123
|
+
path: {
|
|
12124
|
+
/**
|
|
12125
|
+
* The end user's `eu_...` id, or your own id for them.
|
|
12126
|
+
*/
|
|
12127
|
+
end_user_id: string;
|
|
12128
|
+
/**
|
|
12129
|
+
* The message's `om_...` id.
|
|
12130
|
+
*/
|
|
12131
|
+
message_id: string;
|
|
12132
|
+
};
|
|
12133
|
+
query?: never;
|
|
12134
|
+
url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}/skip';
|
|
12135
|
+
};
|
|
12136
|
+
export type SkipScheduledMessageErrors = {
|
|
12137
|
+
/**
|
|
12138
|
+
* The request could not be read: malformed JSON
|
|
12139
|
+
*/
|
|
12140
|
+
400: ErrorResponse;
|
|
12141
|
+
/**
|
|
12142
|
+
* Missing or invalid credentials
|
|
12143
|
+
*/
|
|
12144
|
+
401: ErrorResponse;
|
|
12145
|
+
/**
|
|
12146
|
+
* 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
|
|
12147
|
+
*/
|
|
12148
|
+
403: ErrorResponse;
|
|
12149
|
+
/**
|
|
12150
|
+
* Unknown end user id Or: No such scheduled message for this end user.
|
|
12151
|
+
*/
|
|
12152
|
+
404: ErrorResponse;
|
|
12153
|
+
/**
|
|
12154
|
+
* It does not repeat; it is no longer scheduled; it is being written now; or the day is later than its next occurrence's
|
|
12155
|
+
*/
|
|
12156
|
+
409: ErrorResponse;
|
|
12157
|
+
/**
|
|
12158
|
+
* The request failed validation
|
|
12159
|
+
*/
|
|
12160
|
+
422: ErrorResponse;
|
|
12161
|
+
/**
|
|
12162
|
+
* Rate limit exceeded
|
|
12163
|
+
*/
|
|
12164
|
+
429: ErrorResponse;
|
|
12165
|
+
/**
|
|
12166
|
+
* The end user's store could not be reached for a moment; retry shortly
|
|
12167
|
+
*/
|
|
12168
|
+
503: ErrorResponse;
|
|
12169
|
+
};
|
|
12170
|
+
export type SkipScheduledMessageError = SkipScheduledMessageErrors[keyof SkipScheduledMessageErrors];
|
|
12171
|
+
export type SkipScheduledMessageResponses = {
|
|
12172
|
+
/**
|
|
12173
|
+
* The message, at its next occurrence
|
|
12174
|
+
*/
|
|
12175
|
+
200: ScheduledMessage;
|
|
12176
|
+
};
|
|
12177
|
+
export type SkipScheduledMessageResponse = SkipScheduledMessageResponses[keyof SkipScheduledMessageResponses];
|
|
11775
12178
|
export type ListKnowledgeCategoriesData = {
|
|
11776
12179
|
body?: never;
|
|
11777
12180
|
path?: never;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export type * from "./gen/index.js";
|
|
|
10
10
|
export type { Page } from "./paging.js";
|
|
11
11
|
export type { 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, EndUserStates, EndUsers, FactAdded, } from "./resources/end-users.js";
|
|
13
|
+
export type { EndUserCreated, EndUserExport, EndUserFacts, EndUserListParams, EndUserMemories, EndUserMemoryListParams, EndUserPersonalizations, EndUserReportListParams, EndUserReports, EndUserScheduledMessages, EndUserStates, EndUsers, FactAdded, ScheduleOptions, } from "./resources/end-users.js";
|
|
14
14
|
export type { EphemeralKeyCreateOptions, EphemeralKeyListParams, EphemeralKeyRevokeOptions, EphemeralKeys, } from "./resources/ephemeral-keys.js";
|
|
15
15
|
export type { GenerationListParams, Generations, Images, Jobs, Skybox, } from "./resources/generations.js";
|
|
16
16
|
export type { Knowledge, KnowledgeInsightsParams, KnowledgeListParams, KnowledgeUploadFields, } from "./resources/knowledge.js";
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* read fails with a 401; its one micro-credit is set aside like any key's,
|
|
35
35
|
* so an organisation with no balance cannot export (402).
|
|
36
36
|
*/
|
|
37
|
-
import type { ConversationReport, ConversationReportPage, EndUserCreateRequest, EndUserDeleted, EndUserInfo, EndUserPage, EndUserPersonalization, EndUserPersonalizationUpdate, 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";
|
|
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, ScheduledMessageUpdateRequest, 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";
|
|
@@ -212,21 +212,64 @@ export interface EndUserReports {
|
|
|
212
212
|
* `/v1/end-users/{id}/scheduled-messages`. The agent needs
|
|
213
213
|
* `outreach_enabled`; each message is one model call, paid from your
|
|
214
214
|
* balance; your webhook is sent it to show as a notification.
|
|
215
|
+
*
|
|
216
|
+
* **One may repeat**: `create` with `repeat` in place of `send_at`. It
|
|
217
|
+
* keeps the id `create` answers for as long as it repeats — `get`,
|
|
218
|
+
* `update`, `skip` and `cancel` by that one id — and each occurrence, once
|
|
219
|
+
* it ends, is a message of its own with `repeat_of`, which your webhook
|
|
220
|
+
* is sent.
|
|
215
221
|
*/
|
|
222
|
+
/** A create's options: any call's, and the key that makes it safe to send again. */
|
|
223
|
+
export interface ScheduleOptions extends RequestOptions {
|
|
224
|
+
/**
|
|
225
|
+
* Sent as `Idempotency-Key`: yours, one per message for this person. The
|
|
226
|
+
* same create sent again with it — after a crash, from a job that ran
|
|
227
|
+
* twice — never schedules a second: the message already kept is
|
|
228
|
+
* answered, as it stands. For a different message it is a 409. Letters,
|
|
229
|
+
* digits, `.`, `_`, `:` and `-`, at most 64. Unset, the SDK makes one for
|
|
230
|
+
* the call, which covers this call's own retries and nothing later.
|
|
231
|
+
*/
|
|
232
|
+
idempotencyKey?: string;
|
|
233
|
+
}
|
|
216
234
|
export interface EndUserScheduledMessages {
|
|
217
235
|
/**
|
|
218
236
|
* Schedules one: the agent writes about `note`, in character, at
|
|
219
|
-
* `send_at
|
|
220
|
-
*
|
|
237
|
+
* `send_at` — or, with `repeat`, at that time of day in the person's
|
|
238
|
+
* time zone until you cancel it. 409 when the agent does not write
|
|
239
|
+
* first or the person's day or queue is full; 402 when your balance
|
|
240
|
+
* cannot set its reserve aside (one that repeats sets nothing aside:
|
|
241
|
+
* each occurrence is paid for as it comes due).
|
|
242
|
+
* **Sent with an `Idempotency-Key`**, so it is retried like a GET: a
|
|
243
|
+
* send whose answer was lost is sent again and answers the one message.
|
|
221
244
|
*/
|
|
222
|
-
create(id: string, body: ScheduledMessageCreateRequest, options?:
|
|
245
|
+
create(id: string, body: ScheduledMessageCreateRequest, options?: ScheduleOptions): Promise<ScheduledMessage>;
|
|
223
246
|
/** Every message, newest `send_at` first; `status` to filter. */
|
|
224
247
|
list(id: string, params?: {
|
|
225
248
|
status?: ScheduledMessage["status"];
|
|
226
249
|
}, options?: RequestOptions): AsyncGenerator<ScheduledMessage, void, undefined>;
|
|
227
250
|
/** One message. */
|
|
228
251
|
get(id: string, messageId: string, options?: RequestOptions): Promise<ScheduledMessage>;
|
|
229
|
-
/**
|
|
252
|
+
/**
|
|
253
|
+
* Changes one still waiting: any of its `send_at`, `note` and
|
|
254
|
+
* `metadata` — `repeat` in place of `send_at` for one that repeats; what
|
|
255
|
+
* you leave out stays. Given a new time, what was set aside for it comes
|
|
256
|
+
* back and it is paid for when it is written. 409 one no longer waiting,
|
|
257
|
+
* one being written at this moment, a new day already full, or a time
|
|
258
|
+
* for one that repeats and a rule for one that does not.
|
|
259
|
+
*/
|
|
260
|
+
update(id: string, messageId: string, body: ScheduledMessageUpdateRequest, options?: RequestOptions): Promise<ScheduledMessage>;
|
|
261
|
+
/**
|
|
262
|
+
* Skips one occurrence of a message that repeats: the one on `date`, a
|
|
263
|
+
* calendar day in the person's time zone (`YYYY-MM-DD`), or with none
|
|
264
|
+
* the next. It answers the message at its next occurrence. **With a
|
|
265
|
+
* `date` it is safe to call again**: once the message is past that day,
|
|
266
|
+
* nothing changes. 409 a message that does not repeat, and a day later
|
|
267
|
+
* than its next occurrence's.
|
|
268
|
+
*/
|
|
269
|
+
skip(id: string, messageId: string, params?: {
|
|
270
|
+
date?: string;
|
|
271
|
+
}, options?: RequestOptions): Promise<ScheduledMessage>;
|
|
272
|
+
/** Cancels one still waiting — one that repeats stops; 409 one no longer waiting. */
|
|
230
273
|
cancel(id: string, messageId: string, options?: RequestOptions): Promise<ScheduledMessage>;
|
|
231
274
|
}
|
|
232
275
|
export declare class EndUsers extends Editable<EndUserInfo, EndUserUpdateRequest, EndUserInfo, EndUserDeleted | null> {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
* so an organisation with no balance cannot export (402).
|
|
36
36
|
*/
|
|
37
37
|
import { pages } from "../paging.js";
|
|
38
|
-
import { orNull, segment, } from "../transport.js";
|
|
38
|
+
import { newRequestId, orNull, segment, } from "../transport.js";
|
|
39
39
|
import { Editable } from "./resource.js";
|
|
40
40
|
/** The routes' largest page, for end users, sessions and transcripts alike. */
|
|
41
41
|
const PAGE = 200;
|
|
@@ -116,9 +116,35 @@ export class EndUsers extends Editable {
|
|
|
116
116
|
};
|
|
117
117
|
const message = (id, messageId) => this.at(id, `/scheduled-messages/${segment(messageId)}`);
|
|
118
118
|
this.scheduledMessages = {
|
|
119
|
-
|
|
119
|
+
// A POST the API takes twice as once: with a key, the second send
|
|
120
|
+
// answers the first's message. Without one a `503` whose message was
|
|
121
|
+
// kept, sent again, scheduled a second — so the transport sent it
|
|
122
|
+
// once, and the caller's own retry was the second.
|
|
123
|
+
create: (id, body, { idempotencyKey, ...options } = {}) => this.api
|
|
124
|
+
.request({
|
|
125
|
+
method: "POST",
|
|
126
|
+
path: this.base + this.at(id, "/scheduled-messages"),
|
|
127
|
+
body,
|
|
128
|
+
headers: {
|
|
129
|
+
"Idempotency-Key": idempotencyKey ?? `sdk-${newRequestId()}${newRequestId()}`,
|
|
130
|
+
},
|
|
131
|
+
idempotent: true,
|
|
132
|
+
}, options)
|
|
133
|
+
.then((answer) => answer.data),
|
|
120
134
|
list: (id, params = {}, options) => this.each(this.at(id, "/scheduled-messages"), params, options, PAGE),
|
|
121
135
|
get: (id, messageId, options) => this.send("GET", message(id, messageId), options),
|
|
136
|
+
// The same change twice leaves what one does: retried like a GET.
|
|
137
|
+
update: (id, messageId, body, options) => this.send("PATCH", message(id, messageId), options, body),
|
|
138
|
+
// Safe to send again only by its day: with none, a second send
|
|
139
|
+
// skips the occurrence after — so only that one is sent once.
|
|
140
|
+
skip: (id, messageId, params = {}, options) => this.api
|
|
141
|
+
.request({
|
|
142
|
+
method: "POST",
|
|
143
|
+
path: `${this.base}${message(id, messageId)}/skip`,
|
|
144
|
+
body: params,
|
|
145
|
+
idempotent: params.date !== undefined,
|
|
146
|
+
}, options)
|
|
147
|
+
.then((answer) => answer.data),
|
|
122
148
|
// Sent once: cancelled, its answer lost, a second send is a 409 —
|
|
123
149
|
// "no longer waiting" — for a message this very call cancelled.
|
|
124
150
|
cancel: (id, messageId, options) => this.api
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lumavox/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "The Lumavox API from your server: end users, ephemeral keys and the rest, typed from the published OpenAPI document. Zero dependencies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|