@lumavox/server 0.66.0 → 0.70.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 CHANGED
@@ -1,9 +1,9 @@
1
1
  # @lumavox/server
2
2
 
3
3
  The Lumavox API from your server, with your organisation's API key: speech,
4
- images and video, voices, your asset library, agents, knowledge, tools, end users
5
- and the ephemeral keys their devices talk to agents with — every operation
6
- a key may call, typed from the published OpenAPI document. **Zero
4
+ text, images and video, voices, your asset library, agents, knowledge, tools,
5
+ end users and the ephemeral keys their devices talk to agents with — every
6
+ operation a key may call, typed from the published OpenAPI document. **Zero
7
7
  dependencies**: `fetch` and the web platform only — Node 20.3 or later,
8
8
  Cloudflare Workers, Deno, Bun.
9
9
 
@@ -57,8 +57,9 @@ Bodies and answers are the API's own JSON, field for field, as the API
57
57
  reference shows them; methods are camelCase, and the SDK's options go in a
58
58
  last argument on every call: `{ timeoutMs, signal, maxRetries, requestId }`.
59
59
  `stt.create`, a whole `tts.create` and `voices.design` wait at least 100,
60
- 70 and 90 seconds by themselves — the API holds them open that long — unless
61
- the call names its own `timeoutMs`. An id that is empty, `.` or `..` is a
60
+ 70 and 90 seconds by themselves, and `text.generate` and `text.stream` 130 —
61
+ the API holds them open that long — unless the call names its own
62
+ `timeoutMs`. An id that is empty, `.` or `..` is a
62
63
  `TypeError` before anything is sent.
63
64
  Credits are integers of micro-credits (`*_micros`; 1 credit is 1,000,000)
64
65
  and times ISO strings, as on the wire. Every schema is exported as a type:
@@ -67,12 +68,13 @@ list's page.
67
68
 
68
69
  | Resource | Methods |
69
70
  |---|---|
70
- | `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` |
71
72
  | `ephemeralKeys` | `limits`, `create`, `get`, `revoke`, `inspect`, `list`, `page` |
72
73
  | `images`, `videos`, `audio`, `skybox`, `transcriptions` | `create`, `get`, `wait`, `generate`; `images.draftLayout`, `images.findElements`; `skybox.styles` |
73
74
  | `generations` | `get`, `wait`, `list`, `page` |
74
75
  | `templates` | `list`, `page`, `get`, `create`, `generate`, `file` |
75
76
  | `tts`, `stt` | `create` |
77
+ | `text` | `generate`, `stream` |
76
78
  | `voices` | `list`, `page`, `get`, `create`, `uploadUrl`, `upload`, `update`, `delete`, `resample`, `design`, `saveDesign`, `wait` |
77
79
  | `assets` | `list`, `page`, `get`, `uploadUrl`, `confirm`, `upload`, `update`, `delete`, `deleteMany`, `move`, `wait`; `assets.folders.*` |
78
80
  | `agents` | `list`, `page`, `get`, `create`, `update`, `delete`; `agents.copy` — a new agent from one, or from its draft; `agents.prompt` — everything the agent is told and set to; `agents.testWebhook`; `agents.settings.get/update/rotateWebhookSecret`; `agents.knowledge.list/set`; `agents.tools.list/set`; `agents.versions.list/get/restore` — every change players see is a version, any kept one put back; `agents.draft.get/update/discard/publish` — changes players get only once published |
@@ -96,10 +98,47 @@ list's page.
96
98
  `audioSeconds`, `generationSeconds`, `totalSeconds`, `streamChunking`);
97
99
  **`stt.create(audio, { stream: true })`** an async iterator of the
98
100
  transcript's events.
101
+ - **`text.generate(body)`** asks a Gemini model and answers in the call —
102
+ nothing is queued; **`text.stream(body)`** is an async iterator of the
103
+ answer's lines as it is written ([Text](#text)).
99
104
  - **A `delete` of something already gone is done**: one thing's answers
100
105
  `true`, or `false` when there was none; one that reports counts (an end
101
106
  user's, a folder's) answers them, or `null` when there was none.
102
107
 
108
+ ## Text
109
+
110
+ A prompt, or a chat as messages, to a Gemini model — over plain HTTP, with
111
+ nothing remembered between calls and nothing of yours stored. Charged per
112
+ token; the answer says what it cost. The key needs the `text` scope.
113
+
114
+ ```ts
115
+ const answer = await lumavox.text.generate({
116
+ input: "Write a tagline for a bakery.",
117
+ instructions: "You write short, warm copy for small shops.",
118
+ });
119
+ console.log(answer.text, answer.finish_reason, answer.credits_micros);
120
+
121
+ // As it is written: pieces, then one `done` carrying the whole answer.
122
+ let whole = false;
123
+ for await (const line of lumavox.text.stream({ input: "Write a tagline for a bakery." })) {
124
+ if (line.type === "text.delta") process.stdout.write(line.text);
125
+ if (line.type === "done") whole = true;
126
+ if (line.type === "error") console.error(line.code, line.message);
127
+ }
128
+ if (!whole) console.error("The answer is not whole.");
129
+ ```
130
+
131
+ - **A stream with no `done` line is not whole** — an `error` line, or a
132
+ connection that dropped — and is charged for what was written. Leaving
133
+ the loop early hangs up.
134
+ - **`input`** is a string, or `[{ role: "user" | "assistant", content }]`
135
+ ending with a `user` message; send the whole chat each time.
136
+ **`response_schema`** (a JSON Schema) makes `text` JSON that fits it,
137
+ still a string: parse it.
138
+ - **`stream` is the method's, never the body's.** Neither call is sent
139
+ twice but after a 429; a 503 for the model provider's own rate limit is
140
+ a `ServerError` with its `retryAfter`, and nothing was charged.
141
+
103
142
  ## Errors
104
143
 
105
144
  Everything thrown is a `PlatformError`: `status`, `code` (the API's —
@@ -130,8 +169,10 @@ ours.
130
169
 
131
170
  Only what cannot happen twice is retried, up to `maxRetries`: a GET, PUT,
132
171
  PATCH or DELETE after a failed connection, a timeout, 429, 502, 503 or 504;
133
- a POST after a 429 only, which is refused before any work — and
134
- `endUsers.create` with an `external_id`, which is idempotent. A change
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
135
176
  that names its `expected_version`, and a scheduled message's `cancel`, are
136
177
  sent once, but for a 429. When a call fails after it made something — a
137
178
  `generate()` whose wait was aborted — `madeBy(error)` answers its `{ id }`. The wait
package/dist/client.d.ts CHANGED
@@ -21,6 +21,7 @@ import { Generations, Images, Jobs, Skybox } from "./resources/generations.js";
21
21
  import { Knowledge } from "./resources/knowledge.js";
22
22
  import { Stt, Tts } from "./resources/speech.js";
23
23
  import { Templates } from "./resources/templates.js";
24
+ import { Text } from "./resources/text.js";
24
25
  import { Tools } from "./resources/tools.js";
25
26
  import { Usage } from "./resources/usage.js";
26
27
  import { Voices } from "./resources/voices.js";
@@ -51,6 +52,7 @@ export interface Client {
51
52
  readonly templates: Templates;
52
53
  readonly tts: Tts;
53
54
  readonly stt: Stt;
55
+ readonly text: Text;
54
56
  readonly voices: Voices;
55
57
  readonly assets: Assets;
56
58
  readonly agents: Agents;
package/dist/client.js CHANGED
@@ -6,6 +6,7 @@ import { Generations, Images, Jobs, Skybox } from "./resources/generations.js";
6
6
  import { Knowledge } from "./resources/knowledge.js";
7
7
  import { Stt, Tts } from "./resources/speech.js";
8
8
  import { Templates } from "./resources/templates.js";
9
+ import { Text } from "./resources/text.js";
9
10
  import { Tools } from "./resources/tools.js";
10
11
  import { Usage } from "./resources/usage.js";
11
12
  import { Voices } from "./resources/voices.js";
@@ -42,6 +43,7 @@ export function createClient(options) {
42
43
  templates: new Templates(transport, "/v1/templates", generations),
43
44
  tts: new Tts(transport, "/v1/tts"),
44
45
  stt: new Stt(transport, "/v1/stt"),
46
+ text: new Text(transport, "/v1/text"),
45
47
  voices: new Voices(transport, "/v1/voices"),
46
48
  assets: new Assets(transport, "/v1/assets"),
47
49
  agents: new Agents(transport, "/v1/agents"),
@@ -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, 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, 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, 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';
@@ -5867,7 +5867,7 @@ export type ScheduledMessage = {
5867
5867
  [key: string]: unknown;
5868
5868
  } | null;
5869
5869
  /**
5870
- * When you asked for it.
5870
+ * When you asked for it; for a message that repeats, its next occurrence.
5871
5871
  */
5872
5872
  send_at: string;
5873
5873
  /**
@@ -5886,6 +5886,14 @@ export type ScheduledMessage = {
5886
5886
  * The agent's [version](/agents/versions) that wrote it; null until it is written.
5887
5887
  */
5888
5888
  agent_version: number | null;
5889
+ /**
5890
+ * 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.
5891
+ */
5892
+ repeat: ScheduledMessageRepeatInfo | null;
5893
+ /**
5894
+ * 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.
5895
+ */
5896
+ repeat_of: string | null;
5889
5897
  /**
5890
5898
  * `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
5899
  */
@@ -5893,6 +5901,16 @@ export type ScheduledMessage = {
5893
5901
  webhook: ScheduledMessageDelivery;
5894
5902
  created_at: string;
5895
5903
  };
5904
+ export type ScheduledMessageRepeatInfo = {
5905
+ /**
5906
+ * 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.
5907
+ */
5908
+ at: string;
5909
+ /**
5910
+ * The weekdays it is written on, any of `mon` to `sun`; `null` is every day. In the week's order.
5911
+ */
5912
+ weekdays: Array<'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun'> | null;
5913
+ };
5896
5914
  /**
5897
5915
  * Its delivery to your webhook as `outreach.message`, posted once it is written — where it stands, as a report's.
5898
5916
  */
@@ -5924,9 +5942,10 @@ export type ScheduledMessageCreateRequest = {
5924
5942
  */
5925
5943
  agent_id: string;
5926
5944
  /**
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.
5945
+ * 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
5946
  */
5929
- send_at: string;
5947
+ send_at?: string;
5948
+ repeat?: ScheduledMessageRepeat;
5930
5949
  /**
5931
5950
  * 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
5951
  */
@@ -5942,6 +5961,19 @@ export type ScheduledMessageCreateRequest = {
5942
5961
  [key: string]: unknown;
5943
5962
  } | null;
5944
5963
  };
5964
+ /**
5965
+ * 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.
5966
+ */
5967
+ export type ScheduledMessageRepeat = {
5968
+ /**
5969
+ * 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.
5970
+ */
5971
+ at: string;
5972
+ /**
5973
+ * The weekdays it is written on, any of `mon` to `sun`; `null` is every day. Unset is every day too.
5974
+ */
5975
+ weekdays?: Array<'mon' | 'tue' | 'wed' | 'thu' | 'fri' | 'sat' | 'sun'> | null;
5976
+ };
5945
5977
  export type ScheduledMessagePage = {
5946
5978
  data: Array<ScheduledMessage>;
5947
5979
  /**
@@ -5949,6 +5981,29 @@ export type ScheduledMessagePage = {
5949
5981
  */
5950
5982
  next_cursor: string | null;
5951
5983
  };
5984
+ export type ScheduledMessageUpdateRequest = {
5985
+ /**
5986
+ * 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.
5987
+ */
5988
+ send_at?: string;
5989
+ repeat?: ScheduledMessageRepeat & unknown;
5990
+ /**
5991
+ * 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.
5992
+ */
5993
+ note?: string;
5994
+ /**
5995
+ * 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.
5996
+ */
5997
+ metadata?: {
5998
+ [key: string]: unknown;
5999
+ } | null;
6000
+ };
6001
+ export type ScheduledMessageSkipRequest = {
6002
+ /**
6003
+ * 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.
6004
+ */
6005
+ date?: string;
6006
+ };
5952
6007
  export type KnowledgeCategoryPage = {
5953
6008
  data: Array<string>;
5954
6009
  /**
@@ -6841,6 +6896,168 @@ export type VoiceUpdate = {
6841
6896
  models?: Array<string>;
6842
6897
  provider_defaults?: ProviderVoiceSettings | null;
6843
6898
  };
6899
+ export type TextResponse = {
6900
+ /**
6901
+ * `txt_…` — this call's id, and its row in your request history.
6902
+ */
6903
+ id: string;
6904
+ /**
6905
+ * The model that answered.
6906
+ */
6907
+ model: string;
6908
+ /**
6909
+ * The answer. With `response_schema`, JSON as text. Empty when the model stopped before writing anything.
6910
+ */
6911
+ text: string;
6912
+ /**
6913
+ * How it ended. `stop`: the model finished. `length`: cut at `max_output_tokens` — `text` is real, and shorter than the model meant. `blocked`: the model's own safety stopped the answer, and `text` is empty. A request the model refuses outright is a 502 with its words instead.
6914
+ */
6915
+ finish_reason: 'stop' | 'length' | 'blocked';
6916
+ /**
6917
+ * Tokens sent to the model: charged at its input price.
6918
+ */
6919
+ input_tokens: number;
6920
+ /**
6921
+ * Tokens of the answer: charged at its output price.
6922
+ */
6923
+ output_tokens: number;
6924
+ /**
6925
+ * Tokens the model spent thinking, which are not in `text`: charged at its thinking price.
6926
+ */
6927
+ thought_tokens: number;
6928
+ /**
6929
+ * How many of `input_tokens` the model's provider read from its cache. A count only: they are charged as any input.
6930
+ */
6931
+ cached_tokens: number;
6932
+ /**
6933
+ * What this call was charged, in micro-credits: its tokens at the model's prices, less your plan's discount.
6934
+ */
6935
+ credits_micros: number;
6936
+ /**
6937
+ * When the request arrived.
6938
+ */
6939
+ created_at: string;
6940
+ };
6941
+ export type TextStreamLine = ({
6942
+ type: 'text.delta';
6943
+ } & TextStreamDelta) | ({
6944
+ type: 'done';
6945
+ } & TextStreamDone) | ({
6946
+ type: 'error';
6947
+ } & TextStreamError);
6948
+ export type TextStreamDelta = {
6949
+ type: 'text.delta';
6950
+ /**
6951
+ * The next piece of the answer: append it to the last.
6952
+ */
6953
+ text: string;
6954
+ };
6955
+ export type TextStreamDone = {
6956
+ type: 'done';
6957
+ /**
6958
+ * `txt_…` — this call's id, and its row in your request history.
6959
+ */
6960
+ id: string;
6961
+ /**
6962
+ * The model that answered.
6963
+ */
6964
+ model: string;
6965
+ /**
6966
+ * The answer. With `response_schema`, JSON as text. Empty when the model stopped before writing anything.
6967
+ */
6968
+ text: string;
6969
+ /**
6970
+ * How it ended. `stop`: the model finished. `length`: cut at `max_output_tokens` — `text` is real, and shorter than the model meant. `blocked`: the model's own safety stopped the answer, and `text` is empty. A request the model refuses outright is a 502 with its words instead.
6971
+ */
6972
+ finish_reason: 'stop' | 'length' | 'blocked';
6973
+ /**
6974
+ * Tokens sent to the model: charged at its input price.
6975
+ */
6976
+ input_tokens: number;
6977
+ /**
6978
+ * Tokens of the answer: charged at its output price.
6979
+ */
6980
+ output_tokens: number;
6981
+ /**
6982
+ * Tokens the model spent thinking, which are not in `text`: charged at its thinking price.
6983
+ */
6984
+ thought_tokens: number;
6985
+ /**
6986
+ * How many of `input_tokens` the model's provider read from its cache. A count only: they are charged as any input.
6987
+ */
6988
+ cached_tokens: number;
6989
+ /**
6990
+ * What this call was charged, in micro-credits: its tokens at the model's prices, less your plan's discount.
6991
+ */
6992
+ credits_micros: number;
6993
+ /**
6994
+ * When the request arrived.
6995
+ */
6996
+ created_at: string;
6997
+ };
6998
+ export type TextStreamError = {
6999
+ type: 'error';
7000
+ code: ErrorCode;
7001
+ message: string;
7002
+ };
7003
+ export type TextRequest = {
7004
+ /**
7005
+ * The prompt, as a string — or a chat: a list of messages, oldest first, **ending with a `user` message**. Nothing is remembered between calls: send the whole chat each time. `input` and `instructions` together are at most the platform's `limits.text.input_chars` characters, and a chat at most `limits.text.messages` messages (`GET /v1/platform/limits`).
7006
+ */
7007
+ input: string | Array<TextMessage>;
7008
+ /**
7009
+ * The system prompt: who the model is and how it answers, apart from what it is asked.
7010
+ */
7011
+ instructions?: string | null;
7012
+ /**
7013
+ * The Gemini model that answers. Unset is the platform's `text.model` (`GET /v1/platform/limits`), and the answer's `model` says which it was.
7014
+ */
7015
+ model?: 'gemini-3.1-flash-lite' | 'gemini-3.5-flash-lite' | 'gemini-3.5-flash' | 'gemini-3.6-flash' | 'gemini-3.7-flash' | 'gemini-3.8-flash' | null;
7016
+ /**
7017
+ * How hard the model thinks before answering: `minimal` is fastest. Unset, the model decides. Thinking is charged as `thought_tokens`. Not every model takes `minimal`: one that does not refuses it (422), naming the lowest level it takes.
7018
+ */
7019
+ thinking_level?: 'minimal' | 'low' | 'medium' | 'high' | null;
7020
+ /**
7021
+ * The most tokens the answer may be, the model's thinking included. Unset is the platform's `text.max_output_tokens` (`GET /v1/platform/limits`). An answer cut here has `finish_reason` `length`. It is also what the request is checked against before the model is asked: an organisation that could not pay for this many is refused (402).
7022
+ */
7023
+ max_output_tokens?: number | null;
7024
+ /**
7025
+ * How random the answer is, 0 to 2. **Only `gemini-3.1-flash-lite` takes it**: Google retired it from its newer models, and with any other this is refused (422), never dropped.
7026
+ */
7027
+ temperature?: number | null;
7028
+ /**
7029
+ * How much of the likeliest words the model picks from, by their total probability, 0 to 1. **Only `gemini-3.1-flash-lite` takes it**, as `temperature`.
7030
+ */
7031
+ top_p?: number | null;
7032
+ /**
7033
+ * The same seed makes the same request answer more alike. Never a guarantee. Unset is a new one each time.
7034
+ */
7035
+ seed?: number | null;
7036
+ /**
7037
+ * Where the model stops writing: at the first of these it writes, which is left out. At most 5, of 100 characters each.
7038
+ */
7039
+ stop_sequences?: Array<string> | null;
7040
+ /**
7041
+ * A JSON Schema. With one, the answer's `text` is JSON that fits it — still a string: parse it. The model reads a subset of JSON Schema, and one it cannot use is refused with its words (502).
7042
+ */
7043
+ response_schema?: {
7044
+ [key: string]: unknown;
7045
+ } | null;
7046
+ /**
7047
+ * `true` answers `application/x-ndjson`: the answer piece by piece as it is written, one `TextStreamLine` a line.
7048
+ */
7049
+ stream?: boolean;
7050
+ };
7051
+ export type TextMessage = {
7052
+ /**
7053
+ * Who said it: `user` for what you or your user wrote, `assistant` for an earlier answer of the model's.
7054
+ */
7055
+ role: 'user' | 'assistant';
7056
+ /**
7057
+ * The message's text.
7058
+ */
7059
+ content: string;
7060
+ };
6844
7061
  export type GetHealthData = {
6845
7062
  body?: never;
6846
7063
  path?: never;
@@ -11453,6 +11670,12 @@ export type ListScheduledMessagesResponses = {
11453
11670
  export type ListScheduledMessagesResponse = ListScheduledMessagesResponses[keyof ListScheduledMessagesResponses];
11454
11671
  export type CreateScheduledMessageData = {
11455
11672
  body: ScheduledMessageCreateRequest;
11673
+ headers?: {
11674
+ /**
11675
+ * 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.
11676
+ */
11677
+ 'idempotency-key'?: string;
11678
+ };
11456
11679
  path: {
11457
11680
  /**
11458
11681
  * The end user's `eu_...` id, or your own id for them.
@@ -11484,7 +11707,7 @@ export type CreateScheduledMessageErrors = {
11484
11707
  */
11485
11708
  404: ErrorResponse;
11486
11709
  /**
11487
- * The agent does not write first, or the person's day or queue is full
11710
+ * The agent does not write first, the person's day or queue is full, or the `Idempotency-Key` was used for a different message
11488
11711
  */
11489
11712
  409: ErrorResponse;
11490
11713
  /**
@@ -11502,6 +11725,10 @@ export type CreateScheduledMessageErrors = {
11502
11725
  };
11503
11726
  export type CreateScheduledMessageError = CreateScheduledMessageErrors[keyof CreateScheduledMessageErrors];
11504
11727
  export type CreateScheduledMessageResponses = {
11728
+ /**
11729
+ * Already scheduled by an earlier request with this `Idempotency-Key`: that message, as it stands
11730
+ */
11731
+ 200: ScheduledMessage;
11505
11732
  /**
11506
11733
  * Scheduled
11507
11734
  */
@@ -11610,6 +11837,120 @@ export type GetScheduledMessageResponses = {
11610
11837
  200: ScheduledMessage;
11611
11838
  };
11612
11839
  export type GetScheduledMessageResponse = GetScheduledMessageResponses[keyof GetScheduledMessageResponses];
11840
+ export type UpdateScheduledMessageData = {
11841
+ body: ScheduledMessageUpdateRequest;
11842
+ path: {
11843
+ /**
11844
+ * The end user's `eu_...` id, or your own id for them.
11845
+ */
11846
+ end_user_id: string;
11847
+ /**
11848
+ * The message's `om_...` id.
11849
+ */
11850
+ message_id: string;
11851
+ };
11852
+ query?: never;
11853
+ url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}';
11854
+ };
11855
+ export type UpdateScheduledMessageErrors = {
11856
+ /**
11857
+ * The request could not be read: malformed JSON
11858
+ */
11859
+ 400: ErrorResponse;
11860
+ /**
11861
+ * Missing or invalid credentials
11862
+ */
11863
+ 401: ErrorResponse;
11864
+ /**
11865
+ * 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
11866
+ */
11867
+ 403: ErrorResponse;
11868
+ /**
11869
+ * Unknown end user id Or: No such scheduled message for this end user.
11870
+ */
11871
+ 404: ErrorResponse;
11872
+ /**
11873
+ * 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
11874
+ */
11875
+ 409: ErrorResponse;
11876
+ /**
11877
+ * The request failed validation
11878
+ */
11879
+ 422: ErrorResponse;
11880
+ /**
11881
+ * Rate limit exceeded
11882
+ */
11883
+ 429: ErrorResponse;
11884
+ /**
11885
+ * The end user's store could not be reached for a moment; retry shortly
11886
+ */
11887
+ 503: ErrorResponse;
11888
+ };
11889
+ export type UpdateScheduledMessageError = UpdateScheduledMessageErrors[keyof UpdateScheduledMessageErrors];
11890
+ export type UpdateScheduledMessageResponses = {
11891
+ /**
11892
+ * Changed
11893
+ */
11894
+ 200: ScheduledMessage;
11895
+ };
11896
+ export type UpdateScheduledMessageResponse = UpdateScheduledMessageResponses[keyof UpdateScheduledMessageResponses];
11897
+ export type SkipScheduledMessageData = {
11898
+ body: ScheduledMessageSkipRequest;
11899
+ path: {
11900
+ /**
11901
+ * The end user's `eu_...` id, or your own id for them.
11902
+ */
11903
+ end_user_id: string;
11904
+ /**
11905
+ * The message's `om_...` id.
11906
+ */
11907
+ message_id: string;
11908
+ };
11909
+ query?: never;
11910
+ url: '/v1/end-users/{end_user_id}/scheduled-messages/{message_id}/skip';
11911
+ };
11912
+ export type SkipScheduledMessageErrors = {
11913
+ /**
11914
+ * The request could not be read: malformed JSON
11915
+ */
11916
+ 400: ErrorResponse;
11917
+ /**
11918
+ * Missing or invalid credentials
11919
+ */
11920
+ 401: ErrorResponse;
11921
+ /**
11922
+ * 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
11923
+ */
11924
+ 403: ErrorResponse;
11925
+ /**
11926
+ * Unknown end user id Or: No such scheduled message for this end user.
11927
+ */
11928
+ 404: ErrorResponse;
11929
+ /**
11930
+ * It does not repeat; it is no longer scheduled; it is being written now; or the day is later than its next occurrence's
11931
+ */
11932
+ 409: ErrorResponse;
11933
+ /**
11934
+ * The request failed validation
11935
+ */
11936
+ 422: ErrorResponse;
11937
+ /**
11938
+ * Rate limit exceeded
11939
+ */
11940
+ 429: ErrorResponse;
11941
+ /**
11942
+ * The end user's store could not be reached for a moment; retry shortly
11943
+ */
11944
+ 503: ErrorResponse;
11945
+ };
11946
+ export type SkipScheduledMessageError = SkipScheduledMessageErrors[keyof SkipScheduledMessageErrors];
11947
+ export type SkipScheduledMessageResponses = {
11948
+ /**
11949
+ * The message, at its next occurrence
11950
+ */
11951
+ 200: ScheduledMessage;
11952
+ };
11953
+ export type SkipScheduledMessageResponse = SkipScheduledMessageResponses[keyof SkipScheduledMessageResponses];
11613
11954
  export type ListKnowledgeCategoriesData = {
11614
11955
  body?: never;
11615
11956
  path?: never;
@@ -13301,3 +13642,55 @@ export type ResampleVoiceResponses = {
13301
13642
  200: VoiceDetail;
13302
13643
  };
13303
13644
  export type ResampleVoiceResponse = ResampleVoiceResponses[keyof ResampleVoiceResponses];
13645
+ export type GenerateTextData = {
13646
+ body: TextRequest;
13647
+ path?: never;
13648
+ query?: never;
13649
+ url: '/v1/text';
13650
+ };
13651
+ export type GenerateTextErrors = {
13652
+ /**
13653
+ * The request could not be read: malformed JSON
13654
+ */
13655
+ 400: ErrorResponse;
13656
+ /**
13657
+ * Missing or invalid credentials
13658
+ */
13659
+ 401: ErrorResponse;
13660
+ /**
13661
+ * Out of credits, the organisation is suspended, or it could not pay for what this request could cost at most — nothing was charged
13662
+ */
13663
+ 402: ErrorResponse;
13664
+ /**
13665
+ * 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
13666
+ */
13667
+ 403: ErrorResponse;
13668
+ /**
13669
+ * The body is larger than the platform's `limits.text.request_bytes`
13670
+ */
13671
+ 413: ErrorResponse;
13672
+ /**
13673
+ * The request failed validation: a field out of bounds, an unknown model, a chat that does not end with a `user` message, input past the platform's limits, or a setting the model does not take
13674
+ */
13675
+ 422: ErrorResponse;
13676
+ /**
13677
+ * Rate limit exceeded
13678
+ */
13679
+ 429: ErrorResponse;
13680
+ /**
13681
+ * The model failed, or refused the request outright; the message says why. Nothing was charged
13682
+ */
13683
+ 502: ErrorResponse;
13684
+ /**
13685
+ * Text is not configured on this platform, or the model provider is at its rate limit — then with `Retry-After`
13686
+ */
13687
+ 503: ErrorResponse;
13688
+ };
13689
+ export type GenerateTextError = GenerateTextErrors[keyof GenerateTextErrors];
13690
+ export type GenerateTextResponses = {
13691
+ /**
13692
+ * The answer — one JSON body, or with `stream: true` a line a piece
13693
+ */
13694
+ 200: TextResponse;
13695
+ };
13696
+ export type GenerateTextResponse = GenerateTextResponses[keyof GenerateTextResponses];
package/dist/index.d.ts CHANGED
@@ -10,13 +10,14 @@ 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";
17
17
  export type { Library, Listing, Resource, Waitable, WaitableLibrary, } from "./resources/resource.js";
18
18
  export type { Speech, Stt, SttEvent, SttParams, Transcript, Tts, } from "./resources/speech.js";
19
19
  export type { TemplateFile, Templates } from "./resources/templates.js";
20
+ export type { Text, TextParams } from "./resources/text.js";
20
21
  export type { ToolCallsParams, Tools } from "./resources/tools.js";
21
22
  export type { Usage, UsageParams } from "./resources/usage.js";
22
23
  export type { Voices, VoiceUploadFields } from "./resources/voices.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`. 409 when the agent does not write first or the person's day
220
- * or queue is full; 402 when your balance cannot set its reserve aside.
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?: RequestOptions): Promise<ScheduledMessage>;
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
- /** Cancels one still waiting; 409 one no longer waiting. */
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
- create: (id, body, options) => this.send("POST", this.at(id, "/scheduled-messages"), options, body),
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
@@ -0,0 +1,44 @@
1
+ /**
2
+ * `client.text` — `POST /v1/text`: a prompt or a chat in, a Gemini model's
3
+ * answer out, charged per token. A metered POST, resent only after a 429:
4
+ * a 503 for the model provider's own rate limit is thrown with its
5
+ * `retryAfter`, the caller's to wait for.
6
+ *
7
+ * - **`generate(body)` answers it whole**, with its tokens and what it
8
+ * cost (`credits_micros`). **`stream(body)` answers it as it is
9
+ * written**: an async iterator of the stream's NDJSON lines —
10
+ * `text.delta` pieces, then one `done` carrying the whole answer, or one
11
+ * `error` and no `done`. **A stream that ends with no `done` is not
12
+ * whole**, and is charged for what was written.
13
+ * - **`stream` is the method's, never the body's**: a body that named one
14
+ * would be answered in the other method's shape, so it is not sent on.
15
+ * - **Nothing is sent until the iterator is read**, and one left early
16
+ * hangs up (`../stream.ts`).
17
+ * - **Both wait `TEXT_WAIT_MS` for their answer's headers**: a stream's
18
+ * arrive with the model's first piece, not at once, and its timer ends
19
+ * there; `signal` still ends it.
20
+ */
21
+ import type { TextRequest, TextResponse, TextStreamLine } from "../gen/index.js";
22
+ import type { RequestOptions } from "../transport.js";
23
+ import { Resource } from "./resource.js";
24
+ /** `POST /v1/text`'s body without `stream`, which the method chosen says. */
25
+ export type TextParams = Omit<TextRequest, "stream">;
26
+ /**
27
+ * The least these calls wait for their answer, in ms. **The API holds a
28
+ * whole answer open past the client's 30 s**: for the platform's
29
+ * `text.timeout_ms`, 120 s unless its staff changed it — here with room
30
+ * for the answer to arrive. Hung up on at 30 s, the model's work went on
31
+ * and was charged, and its answer was lost: a POST is not sent again.
32
+ * `apps/api/test/sdk.test.ts` holds it above the API's own. A platform
33
+ * that waits longer, or a model that thinks for longer before a stream's
34
+ * first piece, is a call's own `timeoutMs`.
35
+ */
36
+ export declare const TEXT_WAIT_MS = 130000;
37
+ export declare class Text extends Resource {
38
+ /** The answer whole, once it is all written. */
39
+ generate(body: TextParams, options?: RequestOptions): Promise<TextResponse>;
40
+ /** The answer as it is written: an iterator of its lines. */
41
+ stream(body: TextParams, options?: RequestOptions): AsyncGenerator<TextStreamLine, void, undefined>;
42
+ /** The one call both make: `stream` set for a stream, left out for an answer whole. */
43
+ private ask;
44
+ }
@@ -0,0 +1,35 @@
1
+ import { ndjson } from "../stream.js";
2
+ import { Resource } from "./resource.js";
3
+ /**
4
+ * The least these calls wait for their answer, in ms. **The API holds a
5
+ * whole answer open past the client's 30 s**: for the platform's
6
+ * `text.timeout_ms`, 120 s unless its staff changed it — here with room
7
+ * for the answer to arrive. Hung up on at 30 s, the model's work went on
8
+ * and was charged, and its answer was lost: a POST is not sent again.
9
+ * `apps/api/test/sdk.test.ts` holds it above the API's own. A platform
10
+ * that waits longer, or a model that thinks for longer before a stream's
11
+ * first piece, is a call's own `timeoutMs`.
12
+ */
13
+ export const TEXT_WAIT_MS = 130_000;
14
+ export class Text extends Resource {
15
+ /** The answer whole, once it is all written. */
16
+ generate(body, options) {
17
+ return this.ask(body, options).then((answer) => answer.data);
18
+ }
19
+ /** The answer as it is written: an iterator of its lines. */
20
+ async *stream(body, options) {
21
+ const answer = await this.ask(body, options, true);
22
+ yield* ndjson(answer.data, answer.requestId);
23
+ }
24
+ /** The one call both make: `stream` set for a stream, left out for an answer whole. */
25
+ ask(body, options, stream) {
26
+ return this.api.request({
27
+ method: "POST",
28
+ path: this.base,
29
+ // An `undefined` is not written into JSON: the API's default, whole.
30
+ body: { ...body, stream },
31
+ read: stream && "stream",
32
+ waitMs: TEXT_WAIT_MS,
33
+ }, options);
34
+ }
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lumavox/server",
3
- "version": "0.66.0",
3
+ "version": "0.70.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",