@anchrd/colab-sdk 0.1.51 → 0.1.53
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 +63 -0
- package/dist/action-blocks/action-blocks.js +47 -0
- package/dist/actions/actions.d.ts +31 -0
- package/dist/actions/actions.js +11 -1
- package/dist/conversations/conversations.d.ts +574 -0
- package/dist/conversations/conversations.js +196 -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 +50 -3
- package/dist/flows/flow-runs.d.ts +2313 -0
- package/dist/flows/flow-runs.js +424 -0
- package/dist/flows/flows.d.ts +2761 -0
- package/dist/flows/flows.js +471 -0
- package/dist/goals/goals.d.ts +23 -0
- package/dist/grammar/grammar.d.ts +4 -0
- package/dist/grammar/grammar.js +15 -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 +9 -1
- package/dist/nodes/nodes.js +13 -1
- package/dist/operators/operators.d.ts +89 -137
- package/dist/operators/operators.js +19 -43
- package/dist/relations/relations.d.ts +2 -0
- package/dist/schedule/schedule.d.ts +1 -0
- package/dist/schedule/schedule.js +1 -1
- package/dist/sdk.d.ts +7 -2
- package/dist/sdk.js +7 -2
- package/dist/tree-order/tree-order.d.ts +1 -1
- package/dist/tree-order/tree-order.js +1 -0
- package/dist/users/users.d.ts +5 -0
- package/dist/users/users.js +3 -0
- package/dist/written/written.d.ts +8 -0
- package/dist/written/written.js +10 -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.
|
|
@@ -142,6 +142,7 @@ export declare const RelationOutside: z.ZodObject<{
|
|
|
142
142
|
goal: "goal";
|
|
143
143
|
skill: "skill";
|
|
144
144
|
source: "source";
|
|
145
|
+
flow: "flow";
|
|
145
146
|
}>>;
|
|
146
147
|
folderId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
147
148
|
folderName: z.ZodNullable<z.ZodString>;
|
|
@@ -238,6 +239,7 @@ export declare const RelationList: z.ZodObject<{
|
|
|
238
239
|
goal: "goal";
|
|
239
240
|
skill: "skill";
|
|
240
241
|
source: "source";
|
|
242
|
+
flow: "flow";
|
|
241
243
|
}>>;
|
|
242
244
|
folderId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
243
245
|
folderName: z.ZodNullable<z.ZodString>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const rhythms: readonly ["manual", "daily", "weekly", "monthly", "dates"];
|
|
3
3
|
export declare const weekdays: readonly ["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"];
|
|
4
|
+
export declare const TimeOfDay: z.ZodString;
|
|
4
5
|
export declare const weeksOfMonth: readonly ["first", "second", "third", "fourth", "last"];
|
|
5
6
|
export declare const whileOpenModes: readonly ["wait", "continue"];
|
|
6
7
|
export declare const WhileOpen: z.ZodEnum<{
|
|
@@ -15,7 +15,7 @@ export const weekdays = [
|
|
|
15
15
|
// No seconds and no zone on the string: a run happens at eight, and the zone is the schedule's own.
|
|
16
16
|
// `24:00` is refused rather than read as midnight, so one moment has one spelling (anchrd/intel
|
|
17
17
|
// `contract/process.ts`, f4eccd16).
|
|
18
|
-
const TimeOfDay = z
|
|
18
|
+
export const TimeOfDay = z
|
|
19
19
|
.string()
|
|
20
20
|
.regex(/^([01]\d|2[0-3]):[0-5]\d$/, "A time of day is HH:MM, from 00:00 to 23:59, like 08:00.");
|
|
21
21
|
// A fixed moment on the wall clock of the schedule's zone, without seconds and without an offset.
|
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,13 +10,17 @@ 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";
|
|
16
19
|
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
|
|
17
20
|
export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
|
|
18
21
|
export { FileCreateInput, FileDescribeInput, FileDescription, FileDetail, type FileEncoding, type FileFormat, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileEncodings, fileFormatExtensions, fileFormatOf, fileTextStates, maxContentFileBytes, maxDescribeBytes, maxDescribeQuestionChars, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
|
|
22
|
+
export { FlowBox, FlowElementRef, FlowFreeAction, FlowLiveClientMessage, FlowLiveServerMessage, FlowRun, FlowRunActed, FlowRunActionCreateInput, FlowRunCancelInput, FlowRunCompleted, FlowRunCompleteInput, FlowRunCreateInput, FlowRunDetail, FlowRunGetInput, FlowRunId, FlowRunList, FlowRunListInput, FlowRunPage, FlowRunPageGetInput, FlowRunPicture, FlowRunStarted, type FlowRunStatus, FlowRunStep, FlowRunStepCreateInput, FlowRunStepResult, FlowRunStepStarted, type FlowRunStepStatus, FlowRunStepUpdateInput, flowLivePath, flowPicturePath, flowRunKinds, flowRunStatuses, flowRunStepStatuses, flowRunTriggers, } from "./flows/flow-runs.js";
|
|
23
|
+
export { FlowAction, FlowActions, type FlowActionType, FlowCreateInput, FlowDetail, FlowGetInput, FlowHost, FlowHour, FlowPublishInput, FlowReachedPath, FlowSchedule, FlowScheduleDetail, FlowSecret, FlowSecretCreateInput, FlowSecretList, FlowSecretListInput, FlowSecretName, FlowSecretRemoved, FlowSecretRemoveInput, FlowSecretUpdateInput, FlowStep, FlowStepCreateInput, FlowStepId, FlowStepMoveInput, FlowStepRemoveInput, FlowStepState, FlowStepUpdateInput, FlowSubStep, FlowTarget, FlowUpdateInput, FlowVersionContent, flowActionTypes, flowLimits, flowReadTakes, flowRecordingDays, flowRhythms, flowScheduleProblem, flowStepStates, } from "./flows/flows.js";
|
|
19
24
|
export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
|
|
20
25
|
export { GadgetAccess, GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetDiffFile, GadgetDistAnswer, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetRequires, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetUseRight, GadgetUses, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
|
|
21
26
|
export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalProof, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
|
|
@@ -31,9 +36,9 @@ export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput,
|
|
|
31
36
|
export { Flag, Limit } from "./list-input.js";
|
|
32
37
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
33
38
|
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";
|
|
39
|
+
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
40
|
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";
|
|
41
|
+
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
42
|
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
43
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
39
44
|
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,13 +13,17 @@ 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";
|
|
19
22
|
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
|
|
20
23
|
export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
|
|
21
24
|
export { FileCreateInput, FileDescribeInput, FileDescription, FileDetail, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileEncodings, fileFormatExtensions, fileFormatOf, fileTextStates, maxContentFileBytes, maxDescribeBytes, maxDescribeQuestionChars, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
|
|
25
|
+
export { FlowBox, FlowElementRef, FlowFreeAction, FlowLiveClientMessage, FlowLiveServerMessage, FlowRun, FlowRunActed, FlowRunActionCreateInput, FlowRunCancelInput, FlowRunCompleted, FlowRunCompleteInput, FlowRunCreateInput, FlowRunDetail, FlowRunGetInput, FlowRunId, FlowRunList, FlowRunListInput, FlowRunPage, FlowRunPageGetInput, FlowRunPicture, FlowRunStarted, FlowRunStep, FlowRunStepCreateInput, FlowRunStepResult, FlowRunStepStarted, FlowRunStepUpdateInput, flowLivePath, flowPicturePath, flowRunKinds, flowRunStatuses, flowRunStepStatuses, flowRunTriggers, } from "./flows/flow-runs.js";
|
|
26
|
+
export { FlowAction, FlowActions, FlowCreateInput, FlowDetail, FlowGetInput, FlowHost, FlowHour, FlowPublishInput, FlowReachedPath, FlowSchedule, FlowScheduleDetail, FlowSecret, FlowSecretCreateInput, FlowSecretList, FlowSecretListInput, FlowSecretName, FlowSecretRemoved, FlowSecretRemoveInput, FlowSecretUpdateInput, FlowStep, FlowStepCreateInput, FlowStepId, FlowStepMoveInput, FlowStepRemoveInput, FlowStepState, FlowStepUpdateInput, FlowSubStep, FlowTarget, FlowUpdateInput, FlowVersionContent, flowActionTypes, flowLimits, flowReadTakes, flowRecordingDays, flowRhythms, flowScheduleProblem, flowStepStates, } from "./flows/flows.js";
|
|
22
27
|
export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
|
|
23
28
|
export { GadgetAccess, GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetDiffFile, GadgetDistAnswer, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetRequires, GadgetSettings, GadgetTestHooks, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetUseRight, GadgetUses, GadgetVersionRef, gadgetLimits, gadgetLogDays, TestLimits, testLimits, testLimitsText, } from "./gadgets/gadgets.js";
|
|
24
29
|
export { GoalCheck, GoalCreateInput, GoalDetail, GoalFields, GoalFollowUp, GoalGetInput, GoalId, GoalPlanning, GoalPlanStep, GoalProof, GoalReady, GoalReport, GoalRunCancelInput, GoalRunCompleteInput, GoalRunCreateInput, GoalRunDetail, GoalRunGetInput, GoalRunItem, GoalRunList, GoalRunListInput, GoalRunStatus, GoalRunTrigger, GoalRunUpdateInput, GoalSession, GoalUpdateInput, goalPlannings, goalRunStatuses, } from "./goals/goals.js";
|
|
@@ -34,9 +39,9 @@ export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput,
|
|
|
34
39
|
export { Flag, Limit } from "./list-input.js";
|
|
35
40
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
36
41
|
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";
|
|
42
|
+
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
43
|
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";
|
|
44
|
+
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
45
|
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
46
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
42
47
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { NodeKindRead } from "../nodes/nodes.js";
|
|
2
|
-
export declare const treeKindOrder: readonly ["folder", "document", "table", "board", "gadget", "source", "file", "skill", "goal"];
|
|
2
|
+
export declare const treeKindOrder: readonly ["folder", "document", "table", "board", "gadget", "source", "flow", "file", "skill", "goal"];
|
|
3
3
|
export declare function treeKindRank(kind: NodeKindRead): number;
|
|
4
4
|
export declare function compareTreeNames(a: string, b: string): number;
|
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`.
|
|
@@ -10,9 +10,12 @@ export declare const Changed: z.ZodObject<{
|
|
|
10
10
|
goalId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
11
11
|
skillId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
12
12
|
sourceId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
13
|
+
flowId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
14
|
+
stepId: z.ZodOptional<z.ZodTemplateLiteral<`step_${string}`>>;
|
|
13
15
|
queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
|
|
14
16
|
runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
15
17
|
messageId: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
|
|
18
|
+
attachmentId: z.ZodOptional<z.ZodTemplateLiteral<`attachment_${string}`>>;
|
|
16
19
|
chatId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
17
20
|
grantId: z.ZodOptional<z.ZodTemplateLiteral<`grant_${string}`>>;
|
|
18
21
|
linkId: z.ZodOptional<z.ZodTemplateLiteral<`link_${string}`>>;
|
|
@@ -37,6 +40,7 @@ export declare const Changed: z.ZodObject<{
|
|
|
37
40
|
connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
|
|
38
41
|
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
39
42
|
mcpId: z.ZodOptional<z.ZodTemplateLiteral<`mcp_${string}`>>;
|
|
43
|
+
conversationId: z.ZodOptional<z.ZodTemplateLiteral<`conversation_${string}`>>;
|
|
40
44
|
typeId: z.ZodOptional<z.ZodTemplateLiteral<`type_${string}`>>;
|
|
41
45
|
relationId: z.ZodOptional<z.ZodTemplateLiteral<`relation_${string}`>>;
|
|
42
46
|
ref: z.ZodOptional<z.ZodString>;
|
|
@@ -146,9 +150,12 @@ export declare const Written: z.ZodObject<{
|
|
|
146
150
|
goalId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
147
151
|
skillId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
148
152
|
sourceId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
153
|
+
flowId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
154
|
+
stepId: z.ZodOptional<z.ZodTemplateLiteral<`step_${string}`>>;
|
|
149
155
|
queryId: z.ZodOptional<z.ZodTemplateLiteral<`query_${string}`>>;
|
|
150
156
|
runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
|
|
151
157
|
messageId: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
|
|
158
|
+
attachmentId: z.ZodOptional<z.ZodTemplateLiteral<`attachment_${string}`>>;
|
|
152
159
|
chatId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
153
160
|
grantId: z.ZodOptional<z.ZodTemplateLiteral<`grant_${string}`>>;
|
|
154
161
|
linkId: z.ZodOptional<z.ZodTemplateLiteral<`link_${string}`>>;
|
|
@@ -173,6 +180,7 @@ export declare const Written: z.ZodObject<{
|
|
|
173
180
|
connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
|
|
174
181
|
credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
|
|
175
182
|
mcpId: z.ZodOptional<z.ZodTemplateLiteral<`mcp_${string}`>>;
|
|
183
|
+
conversationId: z.ZodOptional<z.ZodTemplateLiteral<`conversation_${string}`>>;
|
|
176
184
|
typeId: z.ZodOptional<z.ZodTemplateLiteral<`type_${string}`>>;
|
|
177
185
|
relationId: z.ZodOptional<z.ZodTemplateLiteral<`relation_${string}`>>;
|
|
178
186
|
ref: z.ZodOptional<z.ZodString>;
|
package/dist/written/written.js
CHANGED
|
@@ -4,12 +4,14 @@ import { TaskColumn } from "../columns/columns.js";
|
|
|
4
4
|
import { ConnectionId } from "../connections/connections.js";
|
|
5
5
|
import { ConnectorId } from "../connectors/connectors.js";
|
|
6
6
|
import { Warning } from "../error/error.js";
|
|
7
|
+
import { FlowStepId } from "../flows/flows.js";
|
|
7
8
|
import { GrantId } from "../grants/grants.js";
|
|
9
|
+
import { idSchema } from "../ids/ids.js";
|
|
8
10
|
import { InvitationId } from "../invitations/invitations.js";
|
|
9
11
|
import { LinkId } from "../links/links.js";
|
|
10
12
|
import { MachineId } from "../machines/machines.js";
|
|
11
13
|
import { McpId } from "../mcps/mcps.js";
|
|
12
|
-
import { MessageId } from "../messages/messages.js";
|
|
14
|
+
import { AttachmentId, MessageId } from "../messages/messages.js";
|
|
13
15
|
import { Missing, Reached } from "../missing/missing.js";
|
|
14
16
|
import { NodeId, NodeReader } from "../nodes/nodes.js";
|
|
15
17
|
import { CredentialId } from "../operators/operators.js";
|
|
@@ -39,9 +41,14 @@ export const Changed = z.object({
|
|
|
39
41
|
goalId: NodeId.optional(),
|
|
40
42
|
skillId: NodeId.optional(),
|
|
41
43
|
sourceId: NodeId.optional(),
|
|
44
|
+
// A flow and a step of it (#1228).
|
|
45
|
+
flowId: NodeId.optional(),
|
|
46
|
+
stepId: FlowStepId.optional(),
|
|
42
47
|
queryId: QueryId.optional(),
|
|
43
48
|
runId: RunId.optional(),
|
|
44
49
|
messageId: MessageId.optional(),
|
|
50
|
+
// A file uploaded into a chat for a message (#1210).
|
|
51
|
+
attachmentId: AttachmentId.optional(),
|
|
45
52
|
// A chat is its node's (#45).
|
|
46
53
|
chatId: NodeId.optional(),
|
|
47
54
|
grantId: GrantId.optional(),
|
|
@@ -69,6 +76,8 @@ export const Changed = z.object({
|
|
|
69
76
|
credentialId: CredentialId.optional(),
|
|
70
77
|
// A person's own MCP (#802).
|
|
71
78
|
mcpId: McpId.optional(),
|
|
79
|
+
// A person's conversation with a personal Operator (#1212).
|
|
80
|
+
conversationId: idSchema("conversation").optional(),
|
|
72
81
|
// The ontology (#1124): an own type and a relation somebody set.
|
|
73
82
|
typeId: TypeId.optional(),
|
|
74
83
|
relationId: RelationId.optional(),
|
package/package.json
CHANGED