@anchrd/colab-sdk 0.1.50 → 0.1.52
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/dist/action-blocks/action-blocks.d.ts +57 -0
- package/dist/action-blocks/action-blocks.js +42 -0
- package/dist/actions/actions.d.ts +28 -0
- package/dist/actions/actions.js +11 -1
- package/dist/conversations/conversations.d.ts +566 -0
- package/dist/conversations/conversations.js +191 -0
- package/dist/dictations/dictations.d.ts +8 -0
- package/dist/dictations/dictations.js +12 -0
- package/dist/error/error.d.ts +2 -0
- package/dist/error/error.js +2 -0
- package/dist/goals/goals.d.ts +20 -0
- package/dist/grammar/grammar.d.ts +3 -0
- package/dist/grammar/grammar.js +11 -0
- package/dist/machines/machines.d.ts +1 -0
- package/dist/messages/messages.d.ts +69 -1
- package/dist/messages/messages.js +91 -7
- package/dist/nodes/nodes.d.ts +1 -0
- package/dist/nodes/nodes.js +11 -1
- package/dist/operators/operators.d.ts +89 -137
- package/dist/operators/operators.js +19 -43
- package/dist/sdk.d.ts +5 -2
- package/dist/sdk.js +5 -2
- package/dist/users/users.d.ts +5 -0
- package/dist/users/users.js +3 -0
- package/dist/written/written.d.ts +4 -0
- package/dist/written/written.js +6 -1
- package/package.json +1 -1
|
@@ -45,19 +45,12 @@ import { OperatorProvider, UserId } from "../users/users.js";
|
|
|
45
45
|
// (#1139); since #1161 it goes through `/anthropic` (E252), where every Claude takes the stage, and
|
|
46
46
|
// Opus 5.5 and Fable 5.2 think unasked (probes of 2026-11-12). GPT goes through Responses since #1162
|
|
47
47
|
// (E253), takes the stage there and thinks unasked at `medium` (probes of 2026-11-12). Grok, Kimi,
|
|
48
|
-
// GLM
|
|
48
|
+
// GLM and Qwen think by themselves, but no stage of theirs is proven.
|
|
49
49
|
export const gatewayCatalog = [
|
|
50
50
|
{
|
|
51
51
|
gateway: "cloudflare",
|
|
52
52
|
name: "Cloudflare",
|
|
53
53
|
models: [
|
|
54
|
-
{
|
|
55
|
-
model: "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813",
|
|
56
|
-
name: "DeepSeek V4 Pro",
|
|
57
|
-
context: 1_000_000,
|
|
58
|
-
price: { input: 1.32, cacheRead: 0.044, output: 3.96 },
|
|
59
|
-
reasoning: { level: "medium", adjustable: true },
|
|
60
|
-
},
|
|
61
54
|
{
|
|
62
55
|
model: "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017",
|
|
63
56
|
name: "DeepSeek V4.1 Flash",
|
|
@@ -114,20 +107,6 @@ export const gatewayCatalog = [
|
|
|
114
107
|
price: { input: 3, cacheRead: 0.3, output: 15 },
|
|
115
108
|
reasoning: { level: "medium", adjustable: false },
|
|
116
109
|
},
|
|
117
|
-
{
|
|
118
|
-
model: "workers-ai/@cf/moonshotai/kimi-k2.7-code",
|
|
119
|
-
name: "Kimi K2.7 Code",
|
|
120
|
-
context: 262_144,
|
|
121
|
-
price: { input: 0.95, cacheRead: 0.19, output: 4 },
|
|
122
|
-
reasoning: { level: "medium", adjustable: false },
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
model: "workers-ai/@cf/moonshotai/kimi-k2.6",
|
|
126
|
-
name: "Kimi K2.6",
|
|
127
|
-
context: 262_144,
|
|
128
|
-
price: { input: 0.95, cacheRead: 0.16, output: 4 },
|
|
129
|
-
reasoning: { level: "medium", adjustable: false },
|
|
130
|
-
},
|
|
131
110
|
{
|
|
132
111
|
model: "workers-ai/@cf/zai-org/glm-5.3",
|
|
133
112
|
name: "GLM 5.3",
|
|
@@ -135,13 +114,6 @@ export const gatewayCatalog = [
|
|
|
135
114
|
price: { input: 1.4, cacheRead: 0.26, output: 4.4 },
|
|
136
115
|
reasoning: { level: "medium", adjustable: false },
|
|
137
116
|
},
|
|
138
|
-
{
|
|
139
|
-
model: "workers-ai/@cf/zai-org/glm-5.3-flash",
|
|
140
|
-
name: "GLM 5.3 Flash",
|
|
141
|
-
context: 1_048_576,
|
|
142
|
-
price: { input: 0.15, cacheRead: 0.03, output: 0.5 },
|
|
143
|
-
reasoning: { level: "medium", adjustable: false },
|
|
144
|
-
},
|
|
145
117
|
{
|
|
146
118
|
model: "workers-ai/@cf/qwen/qwen3.8-27b",
|
|
147
119
|
name: "Qwen3.8 27B",
|
|
@@ -156,13 +128,6 @@ export const gatewayCatalog = [
|
|
|
156
128
|
price: { input: 0.1, cacheRead: 0.1, output: 0.3 },
|
|
157
129
|
reasoning: { level: "off", adjustable: false },
|
|
158
130
|
},
|
|
159
|
-
{
|
|
160
|
-
model: "workers-ai/@cf/nvidia/nemotron-3-120b-a12b",
|
|
161
|
-
name: "Nemotron 3 120B",
|
|
162
|
-
context: 256_000,
|
|
163
|
-
price: { input: 0.5, cacheRead: 0.5, output: 1.5 },
|
|
164
|
-
reasoning: { level: "medium", adjustable: false },
|
|
165
|
-
},
|
|
166
131
|
{
|
|
167
132
|
model: "workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
168
133
|
name: "Llama 4 Scout",
|
|
@@ -211,7 +176,8 @@ export const gatewayCatalog = [
|
|
|
211
176
|
function gatewayModelIds() {
|
|
212
177
|
return gatewayCatalog.flatMap((entry) => entry.models.map((model) => model.model));
|
|
213
178
|
}
|
|
214
|
-
// The models the catalog held before (#1011) and no longer holds
|
|
179
|
+
// The models the catalog held before (#1011) and no longer holds: Claude 4.x and Gemini 2.5 (#1059),
|
|
180
|
+
// and the five Workers AI models Cloudflare switched off on 2026-11-20 (#1200).
|
|
215
181
|
// They stay in `OperatorModel`, so an Operator stored on one still reads; it pauses with the reason
|
|
216
182
|
// `model` ("Modell nicht mehr im Katalog") until it gets a model of the catalog, and no run starts.
|
|
217
183
|
export const retiredGatewayModels = [
|
|
@@ -220,6 +186,12 @@ export const retiredGatewayModels = [
|
|
|
220
186
|
{ model: "anthropic/claude-haiku-4-5", name: "Claude Haiku 4.5" },
|
|
221
187
|
{ model: "google-ai-studio/gemini-2.5-pro", name: "Gemini 2.5 Pro" },
|
|
222
188
|
{ model: "google-ai-studio/gemini-2.5-flash", name: "Gemini 2.5 Flash" },
|
|
189
|
+
// Workers AI switched these off on 2026-11-20; a request answers 410 (#1200).
|
|
190
|
+
{ model: "workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813", name: "DeepSeek V4 Pro" },
|
|
191
|
+
{ model: "workers-ai/@cf/moonshotai/kimi-k2.7-code", name: "Kimi K2.7 Code" },
|
|
192
|
+
{ model: "workers-ai/@cf/moonshotai/kimi-k2.6", name: "Kimi K2.6" },
|
|
193
|
+
{ model: "workers-ai/@cf/zai-org/glm-5.3-flash", name: "GLM 5.3 Flash" },
|
|
194
|
+
{ model: "workers-ai/@cf/nvidia/nemotron-3-120b-a12b", name: "Nemotron 3 120B" },
|
|
223
195
|
];
|
|
224
196
|
// The entry of a model of the kind Gateway, or null for every other model.
|
|
225
197
|
export function gatewayModelOf(model) {
|
|
@@ -299,7 +271,7 @@ export const operatorProviders = [
|
|
|
299
271
|
kinds: ["gateway"],
|
|
300
272
|
beta: false,
|
|
301
273
|
models: gatewayModelIds(),
|
|
302
|
-
defaultModel: "workers-ai/@cf/deepseek-ai/deepseek-v4-
|
|
274
|
+
defaultModel: "workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017",
|
|
303
275
|
subagents: false,
|
|
304
276
|
costs: true,
|
|
305
277
|
},
|
|
@@ -431,7 +403,6 @@ export const OperatorModel = z.enum([
|
|
|
431
403
|
"gemini-2.5-flash",
|
|
432
404
|
"gemini-2.5-flash-lite",
|
|
433
405
|
// The kind Gateway (#1011, #1059), `gatewayCatalog`.
|
|
434
|
-
"workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813",
|
|
435
406
|
"workers-ai/@cf/deepseek-ai/deepseek-v4.1-flash-1017",
|
|
436
407
|
"anthropic/claude-haiku-5-5",
|
|
437
408
|
"anthropic/claude-sonnet-5-5",
|
|
@@ -440,13 +411,9 @@ export const OperatorModel = z.enum([
|
|
|
440
411
|
"anthropic/claude-fable-5-2",
|
|
441
412
|
"xai/grok-4.7",
|
|
442
413
|
"moonshotai/kimi-k3",
|
|
443
|
-
"workers-ai/@cf/moonshotai/kimi-k2.7-code",
|
|
444
|
-
"workers-ai/@cf/moonshotai/kimi-k2.6",
|
|
445
414
|
"workers-ai/@cf/zai-org/glm-5.3",
|
|
446
|
-
"workers-ai/@cf/zai-org/glm-5.3-flash",
|
|
447
415
|
"workers-ai/@cf/qwen/qwen3.8-27b",
|
|
448
416
|
"workers-ai/@cf/google/gemma-4-26b-a4b-it",
|
|
449
|
-
"workers-ai/@cf/nvidia/nemotron-3-120b-a12b",
|
|
450
417
|
"workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct",
|
|
451
418
|
"workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct",
|
|
452
419
|
// OpenAI through the gateway (#1018).
|
|
@@ -460,6 +427,12 @@ export const OperatorModel = z.enum([
|
|
|
460
427
|
"google-ai-studio/gemini-2.5-pro",
|
|
461
428
|
"google-ai-studio/gemini-2.5-flash",
|
|
462
429
|
"google-ai-studio/gemini-3.8-flash",
|
|
430
|
+
// Switched off by Cloudflare on 2026-11-20 (#1200): requests answer 410.
|
|
431
|
+
"workers-ai/@cf/deepseek-ai/deepseek-v4-pro-0813",
|
|
432
|
+
"workers-ai/@cf/moonshotai/kimi-k2.7-code",
|
|
433
|
+
"workers-ai/@cf/moonshotai/kimi-k2.6",
|
|
434
|
+
"workers-ai/@cf/zai-org/glm-5.3-flash",
|
|
435
|
+
"workers-ai/@cf/nvidia/nemotron-3-120b-a12b",
|
|
463
436
|
]);
|
|
464
437
|
export const CredentialId = idSchema("credential");
|
|
465
438
|
const CredentialName = z.string().trim().min(1).max(64);
|
|
@@ -742,6 +715,9 @@ export const Operator = z.object({
|
|
|
742
715
|
machineId: MachineId,
|
|
743
716
|
// The machine's name in `access`, read now.
|
|
744
717
|
name: z.string(),
|
|
718
|
+
// Its picture in `access` (`/auth/profile-image/…`, E263), drawn in the orange ring; null without.
|
|
719
|
+
// Optional only for the readers' sake: the server always names it.
|
|
720
|
+
image: z.string().nullable().optional(),
|
|
745
721
|
provider: OperatorProvider,
|
|
746
722
|
credentialId: CredentialId.nullable(),
|
|
747
723
|
// The person a personal Operator works for, with their rights (E143); null for the company's.
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { ActionBlock, ActionButton, actionBlockLanguage, ButtonsBlock, ChecklistBlock, ChoiceBlock, InputBlock, } from "./action-blocks/action-blocks.js";
|
|
1
2
|
export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionGoalRun, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionSource, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
|
|
2
3
|
export { adminModeHeader, adminModeOn } from "./admin-mode.js";
|
|
3
4
|
export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
|
|
@@ -9,7 +10,9 @@ export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType,
|
|
|
9
10
|
export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
|
|
10
11
|
export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
|
|
11
12
|
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorAccess, type ConnectorAccessKind, ConnectorArchiveInput, ConnectorCreateInput, ConnectorDetail, ConnectorField, ConnectorFieldName, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorManifest, ConnectorManifestField, ConnectorManifestTool, ConnectorPublishInput, ConnectorRestoreInput, ConnectorTestAnswer, ConnectorTestInput, ConnectorTestRun, ConnectorTool, ConnectorUpdateInput, ConnectorVersionRef, connectorAccessKinds, connectorCodePath, connectorManifestPath, } from "./connectors/connectors.js";
|
|
13
|
+
export { Conversation, ConversationArchiveInput, ConversationAttachmentCreateInput, ConversationClientMessage, ConversationCreateInput, ConversationGetAnswer, ConversationGetInput, ConversationHit, ConversationId, ConversationListAnswer, ConversationListInput, ConversationMessage, ConversationMessageId, ConversationMessageStatus, ConversationPurgeInput, ConversationServerMessage, ConversationStatus, ConversationStep, ConversationStepId, ConversationUpdateInput, conversationClose, conversationTextMax, conversationTitleMax, } from "./conversations/conversations.js";
|
|
12
14
|
export { Crawl, CrawlCreateInput, CrawlDetail, CrawlFailure, CrawlGetInput, CrawlHit, CrawlId, CrawlPage, CrawlRead, CrawlStatus, crawlDays, crawlPassageChars, defaultCrawlPages, maxCrawlHits, maxCrawlPages, maxCrawlPagesPerDay, maxCrawlReads, } from "./crawls/crawls.js";
|
|
15
|
+
export { DictationCreateOutput, dictationMaxBytes, dictationMaxSeconds, dictationSampleRate, } from "./dictations/dictations.js";
|
|
13
16
|
export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
|
|
14
17
|
export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
|
15
18
|
export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
|
|
@@ -31,9 +34,9 @@ export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput,
|
|
|
31
34
|
export { Flag, Limit } from "./list-input.js";
|
|
32
35
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
33
36
|
export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, type McpCatalogEntry, McpCatalogId, McpCreateInput, McpGetInput, McpId, McpList, McpListInput, McpRevokeInput, McpState, McpTestInput, McpTool, McpUpdateInput, mcpCatalog, } from "./mcps/mcps.js";
|
|
34
|
-
export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
|
|
37
|
+
export { AttachmentId, attachmentMaxBytes, attachmentsMax, ChatAttachmentCreateInput, ChatAttachmentGetInput, ChatAttachmentRead, ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAttachment, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
|
|
35
38
|
export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
|
|
36
|
-
export { BoardShownKind, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
|
|
39
|
+
export { BoardShownKind, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, nodeKinds, nodeListLimitMax, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
|
|
37
40
|
export { ChangeTrigger, ClosureCause, ClosureFound, ClosureKind, ClosureLine, ClosureOutcome, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, closureKinds, closureOutcomes, compactRunLimit, type GatewayModel, type GatewayModelEntry, GatewayModelEntrySchema, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, modelsOfVendor, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunClosures, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, OperatorVendor, type OperatorVendorEntry, OwnCredentialState, offeredModels, operatorDefaults, operatorProviders, operatorVendors, PauseReason, planAnswerOf, type ReasoningEffort, ReasoningLevel, ReasoningStage, type RetiredGatewayModel, RunCancelInput, RunCompleteAnswer, RunCompleteInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningAdjustable, reasoningDefault, reasoningEffortOf, reasoningOfModel, retiredGatewayModels, runClosureMax, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, UserCredentialCreateInput, UserCredentialRevokeInput, UserCredentialTestInput, UserCredentialUpdateInput, vendorOfModel, } from "./operators/operators.js";
|
|
38
41
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
39
42
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
package/dist/sdk.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// The contract between UI, backends and outside services, published as `@anchrd/colab-sdk`. The
|
|
2
2
|
// package exports only this file, so everything public is named here once.
|
|
3
3
|
// biome-ignore lint/performance/noBarrelFile: this file IS the entry point of the package.
|
|
4
|
+
export { ActionBlock, ActionButton, actionBlockLanguage, ButtonsBlock, ChecklistBlock, ChoiceBlock, InputBlock, } from "./action-blocks/action-blocks.js";
|
|
4
5
|
export { ActionAbort, ActionAbortReason, ActionChat, ActionGadget, ActionGoalRun, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionRow, ActionRunTask, ActionSection, ActionSource, ActionTask, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
|
|
5
6
|
export { adminModeHeader, adminModeOn } from "./admin-mode.js";
|
|
6
7
|
export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
|
|
@@ -12,7 +13,9 @@ export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType,
|
|
|
12
13
|
export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
|
|
13
14
|
export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
|
|
14
15
|
export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorAccess, ConnectorArchiveInput, ConnectorCreateInput, ConnectorDetail, ConnectorField, ConnectorFieldName, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorManifest, ConnectorManifestField, ConnectorManifestTool, ConnectorPublishInput, ConnectorRestoreInput, ConnectorTestAnswer, ConnectorTestInput, ConnectorTestRun, ConnectorTool, ConnectorUpdateInput, ConnectorVersionRef, connectorAccessKinds, connectorCodePath, connectorManifestPath, } from "./connectors/connectors.js";
|
|
16
|
+
export { Conversation, ConversationArchiveInput, ConversationAttachmentCreateInput, ConversationClientMessage, ConversationCreateInput, ConversationGetAnswer, ConversationGetInput, ConversationHit, ConversationId, ConversationListAnswer, ConversationListInput, ConversationMessage, ConversationMessageId, ConversationMessageStatus, ConversationPurgeInput, ConversationServerMessage, ConversationStatus, ConversationStep, ConversationStepId, ConversationUpdateInput, conversationClose, conversationTextMax, conversationTitleMax, } from "./conversations/conversations.js";
|
|
15
17
|
export { Crawl, CrawlCreateInput, CrawlDetail, CrawlFailure, CrawlGetInput, CrawlHit, CrawlId, CrawlPage, CrawlRead, CrawlStatus, crawlDays, crawlPassageChars, defaultCrawlPages, maxCrawlHits, maxCrawlPages, maxCrawlPagesPerDay, maxCrawlReads, } from "./crawls/crawls.js";
|
|
18
|
+
export { DictationCreateOutput, dictationMaxBytes, dictationMaxSeconds, dictationSampleRate, } from "./dictations/dictations.js";
|
|
16
19
|
export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
|
|
17
20
|
export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
|
|
18
21
|
export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
|
|
@@ -34,9 +37,9 @@ export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput,
|
|
|
34
37
|
export { Flag, Limit } from "./list-input.js";
|
|
35
38
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
36
39
|
export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, McpCatalogId, McpCreateInput, McpGetInput, McpId, McpList, McpListInput, McpRevokeInput, McpState, McpTestInput, McpTool, McpUpdateInput, mcpCatalog, } from "./mcps/mcps.js";
|
|
37
|
-
export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
|
|
40
|
+
export { AttachmentId, attachmentMaxBytes, attachmentsMax, ChatAttachmentCreateInput, ChatAttachmentGetInput, ChatAttachmentRead, ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAttachment, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
|
|
38
41
|
export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
|
|
39
|
-
export { BoardShownKind, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
|
|
42
|
+
export { BoardShownKind, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeKindRead, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, nodeKinds, nodeListLimitMax, responsibleKinds, SearchIndexState, SecretFields, SecretId, unknownNodeKind, } from "./nodes/nodes.js";
|
|
40
43
|
export { ChangeTrigger, ClosureCause, ClosureFound, ClosureKind, ClosureLine, ClosureOutcome, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, closureKinds, closureOutcomes, compactRunLimit, GatewayModelEntrySchema, GatewayRight, GatewayRightCheck, GatewayTarget, gatewayCatalog, gatewayModelOf, inCatalog, KeepStepsDays, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, modelsOfVendor, Operator, OperatorBudget, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineRestoreInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunClosures, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, OperatorVendor, OwnCredentialState, offeredModels, operatorDefaults, operatorProviders, operatorVendors, PauseReason, planAnswerOf, ReasoningLevel, ReasoningStage, RunCancelInput, RunCompleteAnswer, RunCompleteInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningAdjustable, reasoningDefault, reasoningEffortOf, reasoningOfModel, retiredGatewayModels, runClosureMax, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, UserCredentialCreateInput, UserCredentialRevokeInput, UserCredentialTestInput, UserCredentialUpdateInput, vendorOfModel, } from "./operators/operators.js";
|
|
41
44
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
42
45
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
package/dist/users/users.d.ts
CHANGED
|
@@ -43,6 +43,7 @@ export declare const MachineFacts: z.ZodObject<{
|
|
|
43
43
|
external: "external";
|
|
44
44
|
}>;
|
|
45
45
|
responsibleId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
46
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
46
47
|
}, z.core.$strip>;
|
|
47
48
|
export type MachineFacts = z.infer<typeof MachineFacts>;
|
|
48
49
|
export declare const UserListInput: z.ZodObject<{
|
|
@@ -81,6 +82,7 @@ export declare const UserListItem: z.ZodObject<{
|
|
|
81
82
|
external: "external";
|
|
82
83
|
}>;
|
|
83
84
|
responsibleId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
85
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
84
86
|
}, z.core.$strip>>;
|
|
85
87
|
statusAt: z.ZodNullable<z.ZodISODateTime>;
|
|
86
88
|
createdAt: z.ZodISODateTime;
|
|
@@ -112,6 +114,7 @@ export declare const UserList: z.ZodObject<{
|
|
|
112
114
|
external: "external";
|
|
113
115
|
}>;
|
|
114
116
|
responsibleId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
117
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
115
118
|
}, z.core.$strip>>;
|
|
116
119
|
statusAt: z.ZodNullable<z.ZodISODateTime>;
|
|
117
120
|
createdAt: z.ZodISODateTime;
|
|
@@ -162,6 +165,7 @@ export declare const User: z.ZodObject<{
|
|
|
162
165
|
external: "external";
|
|
163
166
|
}>;
|
|
164
167
|
responsibleId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
168
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
165
169
|
}, z.core.$strip>>;
|
|
166
170
|
createdAt: z.ZodISODateTime;
|
|
167
171
|
updatedAt: z.ZodISODateTime;
|
|
@@ -202,6 +206,7 @@ export declare const UserDetail: z.ZodObject<{
|
|
|
202
206
|
external: "external";
|
|
203
207
|
}>;
|
|
204
208
|
responsibleId: z.ZodNullable<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
209
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
205
210
|
}, z.core.$strip>>;
|
|
206
211
|
createdAt: z.ZodISODateTime;
|
|
207
212
|
updatedAt: z.ZodISODateTime;
|
package/dist/users/users.js
CHANGED
|
@@ -33,6 +33,9 @@ export const MachineFacts = z.object({
|
|
|
33
33
|
kind: MachineKind,
|
|
34
34
|
// At first whoever created it; null for one whose responsible person is unknown.
|
|
35
35
|
responsibleId: UserId.nullable(),
|
|
36
|
+
// Its picture (`/auth/profile-image/…`, E263), drawn in the orange ring; null without. Optional
|
|
37
|
+
// only for the readers' sake: the server always names it.
|
|
38
|
+
image: z.string().nullable().optional(),
|
|
36
39
|
});
|
|
37
40
|
export const UserListInput = z.strictObject({
|
|
38
41
|
// An open invitation always goes to a person: it is listed under `human`, never under `machine`.
|
|
@@ -13,6 +13,7 @@ export declare const Changed: z.ZodObject<{
|
|
|
13
13
|
queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
|
|
14
14
|
runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
15
15
|
messageId: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
|
|
16
|
+
attachmentId: z.ZodOptional<z.ZodTemplateLiteral<`attachment_${string}`>>;
|
|
16
17
|
chatId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
17
18
|
grantId: z.ZodOptional<z.ZodTemplateLiteral<`grant_${string}`>>;
|
|
18
19
|
linkId: z.ZodOptional<z.ZodTemplateLiteral<`link_${string}`>>;
|
|
@@ -37,6 +38,7 @@ export declare const Changed: z.ZodObject<{
|
|
|
37
38
|
connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
|
|
38
39
|
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
39
40
|
mcpId: z.ZodOptional<z.ZodTemplateLiteral<`mcp_${string}`>>;
|
|
41
|
+
conversationId: z.ZodOptional<z.ZodTemplateLiteral<`conversation_${string}`>>;
|
|
40
42
|
typeId: z.ZodOptional<z.ZodTemplateLiteral<`type_${string}`>>;
|
|
41
43
|
relationId: z.ZodOptional<z.ZodTemplateLiteral<`relation_${string}`>>;
|
|
42
44
|
ref: z.ZodOptional<z.ZodString>;
|
|
@@ -149,6 +151,7 @@ export declare const Written: z.ZodObject<{
|
|
|
149
151
|
queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
|
|
150
152
|
runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
151
153
|
messageId: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
|
|
154
|
+
attachmentId: z.ZodOptional<z.ZodTemplateLiteral<`attachment_${string}`>>;
|
|
152
155
|
chatId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
153
156
|
grantId: z.ZodOptional<z.ZodTemplateLiteral<`grant_${string}`>>;
|
|
154
157
|
linkId: z.ZodOptional<z.ZodTemplateLiteral<`link_${string}`>>;
|
|
@@ -173,6 +176,7 @@ export declare const Written: z.ZodObject<{
|
|
|
173
176
|
connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
|
|
174
177
|
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
175
178
|
mcpId: z.ZodOptional<z.ZodTemplateLiteral<`mcp_${string}`>>;
|
|
179
|
+
conversationId: z.ZodOptional<z.ZodTemplateLiteral<`conversation_${string}`>>;
|
|
176
180
|
typeId: z.ZodOptional<z.ZodTemplateLiteral<`type_${string}`>>;
|
|
177
181
|
relationId: z.ZodOptional<z.ZodTemplateLiteral<`relation_${string}`>>;
|
|
178
182
|
ref: z.ZodOptional<z.ZodString>;
|
package/dist/written/written.js
CHANGED
|
@@ -5,11 +5,12 @@ import { ConnectionId } from "../connections/connections.js";
|
|
|
5
5
|
import { ConnectorId } from "../connectors/connectors.js";
|
|
6
6
|
import { Warning } from "../error/error.js";
|
|
7
7
|
import { GrantId } from "../grants/grants.js";
|
|
8
|
+
import { idSchema } from "../ids/ids.js";
|
|
8
9
|
import { InvitationId } from "../invitations/invitations.js";
|
|
9
10
|
import { LinkId } from "../links/links.js";
|
|
10
11
|
import { MachineId } from "../machines/machines.js";
|
|
11
12
|
import { McpId } from "../mcps/mcps.js";
|
|
12
|
-
import { MessageId } from "../messages/messages.js";
|
|
13
|
+
import { AttachmentId, MessageId } from "../messages/messages.js";
|
|
13
14
|
import { Missing, Reached } from "../missing/missing.js";
|
|
14
15
|
import { NodeId, NodeReader } from "../nodes/nodes.js";
|
|
15
16
|
import { CredentialId } from "../operators/operators.js";
|
|
@@ -42,6 +43,8 @@ export const Changed = z.object({
|
|
|
42
43
|
queryId: QueryId.optional(),
|
|
43
44
|
runId: RunId.optional(),
|
|
44
45
|
messageId: MessageId.optional(),
|
|
46
|
+
// A file uploaded into a chat for a message (#1210).
|
|
47
|
+
attachmentId: AttachmentId.optional(),
|
|
45
48
|
// A chat is its node's (#45).
|
|
46
49
|
chatId: NodeId.optional(),
|
|
47
50
|
grantId: GrantId.optional(),
|
|
@@ -69,6 +72,8 @@ export const Changed = z.object({
|
|
|
69
72
|
credentialId: CredentialId.optional(),
|
|
70
73
|
// A person's own MCP (#802).
|
|
71
74
|
mcpId: McpId.optional(),
|
|
75
|
+
// A person's conversation with a personal Operator (#1212).
|
|
76
|
+
conversationId: idSchema("conversation").optional(),
|
|
72
77
|
// The ontology (#1124): an own type and a relation somebody set.
|
|
73
78
|
typeId: TypeId.optional(),
|
|
74
79
|
relationId: RelationId.optional(),
|
package/package.json
CHANGED