@anchrd/colab-sdk 0.1.16 → 0.1.18

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.
Files changed (38) hide show
  1. package/dist/actions/actions.d.ts +151 -2
  2. package/dist/actions/actions.js +50 -6
  3. package/dist/boards/boards.d.ts +253 -9
  4. package/dist/boards/boards.js +63 -12
  5. package/dist/card-kinds/card-kinds.d.ts +5 -5
  6. package/dist/documents/documents.d.ts +59 -2
  7. package/dist/documents/documents.js +18 -4
  8. package/dist/error/error.d.ts +58 -4
  9. package/dist/error/error.js +146 -3
  10. package/dist/events/events.d.ts +15 -0
  11. package/dist/events/events.js +10 -0
  12. package/dist/excerpt/excerpt.d.ts +16 -0
  13. package/dist/excerpt/excerpt.js +33 -0
  14. package/dist/files/files.d.ts +6 -0
  15. package/dist/files/files.js +5 -1
  16. package/dist/grammar/grammar.d.ts +6 -0
  17. package/dist/grammar/grammar.js +54 -0
  18. package/dist/instructions/instructions.d.ts +36 -0
  19. package/dist/instructions/instructions.js +29 -0
  20. package/dist/missing/missing.d.ts +56 -0
  21. package/dist/missing/missing.js +66 -0
  22. package/dist/nodes/nodes.d.ts +21 -5
  23. package/dist/nodes/nodes.js +10 -7
  24. package/dist/operators/operators.d.ts +13 -3
  25. package/dist/operators/operators.js +19 -4
  26. package/dist/primitives/primitives.js +1 -1
  27. package/dist/runs/runs.d.ts +1 -1
  28. package/dist/sdk.d.ts +13 -10
  29. package/dist/sdk.js +13 -10
  30. package/dist/sso/sso.js +3 -2
  31. package/dist/tables/tables.d.ts +32 -0
  32. package/dist/tables/tables.js +12 -1
  33. package/dist/tool.d.ts +5 -3
  34. package/dist/versions/versions.d.ts +102 -0
  35. package/dist/versions/versions.js +14 -0
  36. package/dist/written/written.d.ts +206 -0
  37. package/dist/written/written.js +90 -0
  38. package/package.json +1 -1
package/dist/sdk.d.ts CHANGED
@@ -1,33 +1,35 @@
1
- export { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, } from "./actions/actions.js";
1
+ export { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunHint, ActionRunTask, ActionSection, ActionTask, ActionValidation, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
2
2
  export { adminModeHeader, adminModeOn } from "./admin-mode.js";
3
3
  export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
4
4
  export { NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
5
5
  export { PasskeyDeleteInput, SetPasswordInput, SignUpInput, } from "./auth/auth.js";
6
6
  export { AuthorizationRequest, AuthorizationResponse, Identity, Rules, } from "./authorization/authorization.js";
7
- export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, } from "./boards/boards.js";
7
+ export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, TemplateNote, } from "./boards/boards.js";
8
8
  export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType, CardFieldValue, CardKind, CardKindIcon, CardKindId, CardKindInput, CardOptionId, ChecklistItem, cardFieldTypes, cardKindIcons, emptyValue, TaskFields, TaskKind, } from "./card-kinds/card-kinds.js";
9
9
  export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
10
10
  export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
11
11
  export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorField, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorTool, } from "./connectors/connectors.js";
12
12
  export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
13
- export { DocumentCreateInput, DocumentDetail, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
14
- export { ErrorCode, ErrorIssue, ErrorResponse, errorCodes } from "./error/error.js";
15
- export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, } from "./events/events.js";
13
+ export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
14
+ export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
15
+ export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
16
+ export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
16
17
  export { FileCreateInput, FileDetail, type FileFormat, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
17
18
  export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
18
19
  export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, } from "./gadgets/gadgets.js";
19
- export { type Action, actions, hasRoute, isAction, isPackage, isWord, type Package, packages, parseConnectorFunction, parseToolName, type Resource, type Route, resources, type ToolName, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
20
+ export { type Action, actions, hasRoute, isAction, isPackage, isWord, type Package, packages, parseConnectorFunction, parseToolName, type Resource, type Route, resources, type ToolName, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
20
21
  export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
21
22
  export { createId, type Id, idSchema } from "./ids/ids.js";
22
- export { Instructions, InstructionsLink, instructionsNames, isInstructionsName, validationSection, } from "./instructions/instructions.js";
23
+ export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, validationSection, } from "./instructions/instructions.js";
23
24
  export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
24
25
  export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
25
26
  export { defaultLinkDays, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
26
27
  export { Flag, Limit } from "./list-input.js";
27
28
  export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
28
29
  export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, } from "./messages/messages.js";
30
+ export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
29
31
  export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
30
- export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, Subagents, Trigger, } from "./operators/operators.js";
32
+ export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, type OperatorProviderEntry, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
31
33
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
32
34
  export { IdempotencyKey, Rev } from "./primitives/primitives.js";
33
35
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
@@ -39,9 +41,10 @@ export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput
39
41
  export { type Authorized, type AuthorizeResult, createServiceClient, type InterfaceDeclaredResult, type InterfaceRemovedResult, type ServiceClient, type ServiceClientDeps, type ServiceClientFailure, } from "./service-client/service-client.js";
40
42
  export { FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
41
43
  export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
42
- export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
44
+ export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
43
45
  export { type Actor, defineTool, type Permission, type Tool, type ToolAnnotations, type ToolContext, type ToolInput, type ToolSource, } from "./tool.js";
44
46
  export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
45
47
  export { MachineFacts, MachineKeyFacts, MachineKind, MessageMachine, OperatorProvider, OwnRoleList, SignInMethod, User, UserDetail, UserDisableInput, UserEnableInput, UserGetInput, UserId, UserKind, UserList, UserListInput, UserListItem, UserStatus, UserTestInput, UserTestResult, UserUpdateInput, } from "./users/users.js";
46
48
  export { TicketSubject, TicketSubjectRef, ValidationBoardId, validationBoardId, } from "./validation/validation.js";
47
- export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
49
+ export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionExcerpt, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
50
+ export { Changed, Effects, Unblocked, Written, } from "./written/written.js";
package/dist/sdk.js CHANGED
@@ -1,36 +1,38 @@
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 { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionSection, ActionTask, actionFilters, isNodeRow, MachineInstructions, } from "./actions/actions.js";
4
+ export { ActionChat, ActionGadget, ActionItem, ActionList, ActionListInput, ActionNotice, ActionNoticeButton, ActionNoticeCrumb, ActionNoticeItem, ActionNoticeKind, ActionNoticeReason, ActionNoticeTitle, ActionProcess, ActionRow, ActionRun, ActionRunHint, ActionRunTask, ActionSection, ActionTask, ActionValidation, actionFilters, isNodeRow, MachineInstructions, MachineInstructionsRead, } from "./actions/actions.js";
5
5
  export { adminModeHeader, adminModeOn } from "./admin-mode.js";
6
6
  export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppListQuery, OwnSessionListQuery, Session, SessionId, SessionList, SessionListInput, SessionRevokeInput, SessionsRevoked, } from "./apps/apps.js";
7
7
  export { NodeArchived, NodeArchiveInput, NodePurged, NodePurgeInput, NodeRestoreInput, } from "./archive/archive.js";
8
8
  export { PasskeyDeleteInput, SetPasswordInput, SignUpInput, } from "./auth/auth.js";
9
9
  export { AuthorizationRequest, AuthorizationResponse, Identity, Rules, } from "./authorization/authorization.js";
10
- export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, } from "./boards/boards.js";
10
+ export { BoardColumn, BoardCreateInput, BoardDetail, BoardGetInput, BoardId, BoardKind, BoardLabel, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, ProcessCheck, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskUpdateInput, TemplateNote, } from "./boards/boards.js";
11
11
  export { CardField, CardFieldId, CardFieldInput, CardFieldOption, CardFieldType, CardFieldValue, CardKind, CardKindIcon, CardKindId, CardKindInput, CardOptionId, ChecklistItem, cardFieldTypes, cardKindIcons, emptyValue, TaskFields, TaskKind, } from "./card-kinds/card-kinds.js";
12
12
  export { ColumnId, ColumnType, columnTypes, TaskColumn } from "./columns/columns.js";
13
13
  export { Connection, ConnectionCreateInput, ConnectionCredential, ConnectionDetail, ConnectionGetInput, ConnectionId, ConnectionList, ConnectionListInput, ConnectionRevokeInput, ConnectionState, ConnectionTested, ConnectionTestInput, ConnectionTestResult, ConnectionUpdateInput, } from "./connections/connections.js";
14
14
  export { Call, CallId, CallList, CallListInput, CallSource, Connector, ConnectorField, ConnectorGetInput, ConnectorId, ConnectorList, ConnectorListInput, ConnectorTool, } from "./connectors/connectors.js";
15
15
  export { DirectoryPrincipal, DirectorySearchInput } from "./directory/directory.js";
16
- export { DocumentCreateInput, DocumentDetail, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
17
- export { ErrorCode, ErrorIssue, ErrorResponse, errorCodes } from "./error/error.js";
18
- export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, } from "./events/events.js";
16
+ export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput, DocumentUpdateInput, } from "./documents/documents.js";
17
+ export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
18
+ export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
19
+ export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
19
20
  export { FileCreateInput, FileDetail, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
20
21
  export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
21
22
  export { GadgetCall, GadgetCallCreateInput, GadgetCallEntry, GadgetCallGetInput, GadgetCallItem, GadgetCallList, GadgetCallListInput, GadgetCallStatus, GadgetChange, GadgetClientLog, GadgetConsoleLine, GadgetCreateInput, GadgetDetail, GadgetFile, GadgetFilePath, GadgetFunction, GadgetFunctionName, GadgetGetInput, GadgetLevel, GadgetManifest, GadgetPublishInput, GadgetSettings, GadgetTestInput, GadgetTestResult, GadgetTestRun, GadgetToolUse, GadgetUpdateInput, GadgetVersionRef, gadgetLimits, gadgetLogDays, } from "./gadgets/gadgets.js";
22
- export { actions, hasRoute, isAction, isPackage, isWord, packages, parseConnectorFunction, parseToolName, resources, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
23
+ export { actions, hasRoute, isAction, isPackage, isWord, packages, parseConnectorFunction, parseToolName, resources, toolAnnotations, toolEvent, toolPermission, toolRoute, toolSchemaName, verbs, } from "./grammar/grammar.js";
23
24
  export { GrantId, GrantRight, NodeGrant, NodeGrantList, NodeGrantListInput, NodeGrantRevoked, NodeGrantRevokeInput, NodeShared, NodeShareInput, } from "./grants/grants.js";
24
25
  export { createId, idSchema } from "./ids/ids.js";
25
- export { Instructions, InstructionsLink, instructionsNames, isInstructionsName, validationSection, } from "./instructions/instructions.js";
26
+ export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, validationSection, } from "./instructions/instructions.js";
26
27
  export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
27
28
  export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
28
29
  export { defaultLinkDays, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
29
30
  export { Flag, Limit } from "./list-input.js";
30
31
  export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
31
32
  export { ChatRead, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, } from "./messages/messages.js";
33
+ export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
32
34
  export { BoardShownKind, BoardSystem, FolderCreated, FolderCreateInput, IntelligenceUser, IntelligenceUserList, IntelligenceUserListInput, NodeDetail, NodeGetInput, NodeHit, NodeHitFoundIn, NodeHitGroup, NodeId, NodeKind, NodeList, NodeListInput, NodeListItem, NodeMoved, NodeMoveInput, NodePath, NodePerson, NodeQuery, NodeReader, NodeSearch, NodeSection, NodeSort, NodeUpdateInput, NodeValidation, nodeKinds, responsibleKinds, SearchIndexState, SecretFields, SecretId, } from "./nodes/nodes.js";
33
- export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, Subagents, Trigger, } from "./operators/operators.js";
35
+ export { Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, compactRunLimit, GatewayTarget, MachineDisableInput, MachineEnableInput, MachineGetInput, MachineListInput, modelsOf, Operator, OperatorLimits, OperatorList, OperatorMachineArchiveInput, OperatorMachineCreateInput, OperatorMachineUpdateInput, OperatorModel, OperatorRun, OperatorRunAgents, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorState, operatorDefaults, operatorProviders, PauseReason, RunCancelInput, RunStepListInput, runSummaryChars, Subagents, Trigger, } from "./operators/operators.js";
34
36
  export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
35
37
  export { IdempotencyKey, Rev } from "./primitives/primitives.js";
36
38
  export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
@@ -42,9 +44,10 @@ export { NodeSecret, NodeSecretCreateInput, NodeSecretDetail, NodeSecretGetInput
42
44
  export { createServiceClient, } from "./service-client/service-client.js";
43
45
  export { FunctionId, InterfaceId, RightWord, Service, ServiceArchiveInput, ServiceCreateInput, ServiceFunction, ServiceId, ServiceInterface, ServiceKeyIssued, ServiceList, ServiceListInput, ServiceName, ServicePurged, ServicePurgeInput, ServiceRestoreInput, ServiceRotateInput, ServiceUpdateInput, } from "./services/services.js";
44
46
  export { SignInProviders, Sso, SsoId, SsoList, SsoListInput, SsoRemoveInput, SsoSource, SsoUpdateInput, ssoIds, } from "./sso/sso.js";
45
- export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
47
+ export { TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableGetInput, TableId, TableSaved, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
46
48
  export { defineTool, } from "./tool.js";
47
49
  export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
48
50
  export { MachineFacts, MachineKeyFacts, MachineKind, MessageMachine, OperatorProvider, OwnRoleList, SignInMethod, User, UserDetail, UserDisableInput, UserEnableInput, UserGetInput, UserId, UserKind, UserList, UserListInput, UserListItem, UserStatus, UserTestInput, UserTestResult, UserUpdateInput, } from "./users/users.js";
49
51
  export { TicketSubject, TicketSubjectRef, ValidationBoardId, validationBoardId, } from "./validation/validation.js";
50
- export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
52
+ export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionExcerpt, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskMove, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
53
+ export { Changed, Effects, Unblocked, Written, } from "./written/written.js";
package/dist/sso/sso.js CHANGED
@@ -50,8 +50,9 @@ export const SsoList = z.object({
50
50
  nextCursor: z.null(),
51
51
  });
52
52
  // `GET /auth/providers`, public: which buttons the sign-in page shows, in their order. Nothing else
53
- // of a provider travels here. `signUp` is true only while no person exists: the first one signs up
54
- // on the page and becomes the main admin (E9, #539); after that it says nothing about anybody.
53
+ // of a provider travels here. `signUp` is true only while no person exists, or only one whose sign-up
54
+ // lapsed unconfirmed (E131): the first one signs up on the page and becomes the main admin (E9,
55
+ // #539); after that it says nothing about anybody.
55
56
  export const SignInProviders = z.object({
56
57
  providers: z.array(SsoId),
57
58
  signUp: z.boolean(),
@@ -58,6 +58,7 @@ export declare const TableGetInput: z.ZodObject<{
58
58
  rows: "rows";
59
59
  csv: "csv";
60
60
  }>>;
61
+ cursor: z.ZodOptional<z.ZodString>;
61
62
  }, z.core.$strict>;
62
63
  export type TableGetInput = z.infer<typeof TableGetInput>;
63
64
  export declare const TableUpdateInput: z.ZodObject<{
@@ -117,6 +118,37 @@ export declare const TableDetail: z.ZodObject<{
117
118
  updatedAt: z.ZodISODateTime;
118
119
  }, z.core.$strip>;
119
120
  export type TableDetail = z.infer<typeof TableDetail>;
121
+ export declare const TableExcerpt: z.ZodObject<{
122
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
123
+ locked: z.ZodOptional<z.ZodBoolean>;
124
+ tableId: z.ZodTemplateLiteral<`node_${string}`>;
125
+ name: z.ZodString;
126
+ columns: z.ZodArray<z.ZodObject<{
127
+ name: z.ZodString;
128
+ type: z.ZodEnum<{
129
+ number: "number";
130
+ date: "date";
131
+ email: "email";
132
+ text: "text";
133
+ chip: "chip";
134
+ }>;
135
+ }, z.core.$strict>>;
136
+ rows: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodString>>>;
137
+ csv: z.ZodOptional<z.ZodString>;
138
+ version: z.ZodNumber;
139
+ rights: z.ZodObject<{
140
+ write: z.ZodBoolean;
141
+ }, z.core.$strip>;
142
+ updatedAt: z.ZodISODateTime;
143
+ excerpt: z.ZodObject<{
144
+ firstRow: z.ZodNumber;
145
+ lastRow: z.ZodNumber;
146
+ rowCount: z.ZodNumber;
147
+ nextCursor: z.ZodNullable<z.ZodString>;
148
+ }, z.core.$strip>;
149
+ rev: z.ZodOptional<z.ZodNumber>;
150
+ }, z.core.$strip>;
151
+ export type TableExcerpt = z.infer<typeof TableExcerpt>;
120
152
  export declare const TableSaved: z.ZodObject<{
121
153
  tableId: z.ZodTemplateLiteral<`node_${string}`>;
122
154
  name: z.ZodString;
@@ -1,4 +1,5 @@
1
1
  import { z } from "zod";
2
+ import { ExcerptCursor, RowsExcerpt } from "../excerpt/excerpt.js";
2
3
  import { NodeId, SecretFields } from "../nodes/nodes.js";
3
4
  import { IdempotencyKey, Rev } from "../primitives/primitives.js";
4
5
  // Tables (#40, Nodes › Tabelle, E39, E59, E70): the inputs of `intelligence_table_create`, `_get`
@@ -36,7 +37,7 @@ const Cells = z
36
37
  const Rows = z.array(Cells).max(10_000);
37
38
  const Csv = z
38
39
  .string()
39
- .describe("The whole table as CSV: the header line with the column names first, then one line per row, as intelligence_table_get with format csv answers it. At most 1 MB in UTF-8.");
40
+ .describe("The whole table as CSV: the header line with the column names first, then one line per row, as intelligence_table_get with format csv answers it; a table read in excerpts is every excerpt joined, read until nextCursor is null. At most 1 MB in UTF-8.");
40
41
  // Counted from 1 at the first data row; the header line is no row.
41
42
  const Position = z
42
43
  .number()
@@ -65,6 +66,7 @@ export const TableGetInput = z.strictObject({
65
66
  .enum(tableFormats)
66
67
  .optional()
67
68
  .describe("rows (the default) answers the rows as lists of cells; csv answers the whole table as CSV text instead, the header line first."),
69
+ cursor: ExcerptCursor.optional(),
68
70
  });
69
71
  // One cell of a `set` entry (#630, E120): the new text and the text that was read. The cell is
70
72
  // checked on its own, so a change elsewhere in the table is no conflict.
@@ -138,6 +140,15 @@ export const TableDetail = z.object({
138
140
  // caller.
139
141
  ...SecretFields,
140
142
  });
143
+ // One excerpt of a large table over MCP (E127, #674): whole rows, `rows` or `csv` some of them (the
144
+ // CSV's header line in the first excerpt only), `excerpt` which they are and the cursor of the next.
145
+ // ⚠️ `rev` comes with the last excerpt only: `csv` and `replace` replace by the state a `rev` names,
146
+ // and a `rev` beside a part of the table would let a save of that part drop the rest without a
147
+ // conflict. `set` and `append` need no `rev`.
148
+ export const TableExcerpt = TableDetail.extend({
149
+ excerpt: RowsExcerpt,
150
+ rev: z.number().int().optional(),
151
+ });
141
152
  // The answer of a create and an update: the state after it, without the rows, so appending one row
142
153
  // to a large table does not send the table back.
143
154
  export const TableSaved = z.object({
package/dist/tool.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { z } from "zod";
2
- import type { Package } from "./grammar/grammar.js";
2
+ import type { ErrorResponse } from "./error/error.js";
3
+ import type { ActionAnnotations, Package } from "./grammar/grammar.js";
4
+ import type { Written } from "./written/written.js";
3
5
  export type ToolInput = z.ZodObject<z.core.$ZodShape, z.core.$strict>;
4
6
  export type Permission = `${Package} / ${string} / ${string}`;
5
7
  export type Actor = {
@@ -14,8 +16,7 @@ export type ToolContext = {
14
16
  actor: Actor;
15
17
  source?: ToolSource;
16
18
  };
17
- export type ToolAnnotations = {
18
- readOnlyHint?: boolean;
19
+ export type ToolAnnotations = Partial<ActionAnnotations> & {
19
20
  openWorldHint?: boolean;
20
21
  };
21
22
  export type Tool<Input extends ToolInput = ToolInput> = {
@@ -27,5 +28,6 @@ export type Tool<Input extends ToolInput = ToolInput> = {
27
28
  browserOnly?: true;
28
29
  annotations?: ToolAnnotations;
29
30
  handler(input: z.output<Input>, context: ToolContext): Promise<unknown>;
31
+ written?(input: z.output<Input>, context: ToolContext): Promise<Written | ErrorResponse>;
30
32
  };
31
33
  export declare function defineTool<Input extends ToolInput>(tool: Tool<Input>): Tool;
@@ -107,6 +107,7 @@ export type NodeVersionListInput = z.infer<typeof NodeVersionListInput>;
107
107
  export declare const NodeVersionGetInput: z.ZodObject<{
108
108
  nodeId: z.ZodTemplateLiteral<`node_${string}`>;
109
109
  versionId: z.ZodTemplateLiteral<`version_${string}`>;
110
+ cursor: z.ZodOptional<z.ZodString>;
110
111
  }, z.core.$strict>;
111
112
  export type NodeVersionGetInput = z.infer<typeof NodeVersionGetInput>;
112
113
  export declare const NodeVersionCreateInput: z.ZodObject<{
@@ -330,3 +331,104 @@ export declare const NodeVersionDetail: z.ZodObject<{
330
331
  rev: z.ZodNumber;
331
332
  }, z.core.$strip>;
332
333
  export type NodeVersionDetail = z.infer<typeof NodeVersionDetail>;
334
+ export declare const NodeVersionExcerpt: z.ZodObject<{
335
+ versionId: z.ZodTemplateLiteral<`version_${string}`>;
336
+ nodeId: z.ZodTemplateLiteral<`node_${string}`>;
337
+ number: z.ZodNumber;
338
+ createdAt: z.ZodISODateTime;
339
+ updatedAt: z.ZodISODateTime;
340
+ createdBy: z.ZodObject<{
341
+ userId: z.ZodString;
342
+ name: z.ZodNullable<z.ZodString>;
343
+ kind: z.ZodNullable<z.ZodEnum<{
344
+ machine: "machine";
345
+ human: "human";
346
+ }>>;
347
+ }, z.core.$strip>;
348
+ appHandle: z.ZodNullable<z.ZodString>;
349
+ restoredFrom: z.ZodNullable<z.ZodNumber>;
350
+ current: z.ZodBoolean;
351
+ size: z.ZodNumber;
352
+ move: z.ZodNullable<z.ZodObject<{
353
+ from: z.ZodNullable<z.ZodObject<{
354
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
355
+ name: z.ZodNullable<z.ZodString>;
356
+ type: z.ZodNullable<z.ZodEnum<{
357
+ backlog: "backlog";
358
+ open: "open";
359
+ progress: "progress";
360
+ done: "done";
361
+ discarded: "discarded";
362
+ blocked: "blocked";
363
+ archive: "archive";
364
+ }>>;
365
+ }, z.core.$strip>>;
366
+ to: z.ZodObject<{
367
+ columnId: z.ZodTemplateLiteral<`column_${string}`>;
368
+ name: z.ZodNullable<z.ZodString>;
369
+ type: z.ZodNullable<z.ZodEnum<{
370
+ backlog: "backlog";
371
+ open: "open";
372
+ progress: "progress";
373
+ done: "done";
374
+ discarded: "discarded";
375
+ blocked: "blocked";
376
+ archive: "archive";
377
+ }>>;
378
+ }, z.core.$strip>;
379
+ comment: z.ZodNullable<z.ZodString>;
380
+ }, z.core.$strip>>;
381
+ changes: z.ZodNullable<z.ZodArray<z.ZodEnum<{
382
+ fields: "fields";
383
+ title: "title";
384
+ text: "text";
385
+ dates: "dates";
386
+ assignee: "assignee";
387
+ labels: "labels";
388
+ parent: "parent";
389
+ dependencies: "dependencies";
390
+ waiting: "waiting";
391
+ }>>>;
392
+ secret: z.ZodOptional<z.ZodLiteral<true>>;
393
+ locked: z.ZodOptional<z.ZodBoolean>;
394
+ content: z.ZodNullable<z.ZodString>;
395
+ mediaType: z.ZodNullable<z.ZodString>;
396
+ columns: z.ZodNullable<z.ZodArray<z.ZodObject<{
397
+ name: z.ZodString;
398
+ type: z.ZodEnum<{
399
+ number: "number";
400
+ date: "date";
401
+ email: "email";
402
+ text: "text";
403
+ chip: "chip";
404
+ }>;
405
+ }, z.core.$strict>>>;
406
+ fields: z.ZodNullable<z.ZodArray<z.ZodObject<{
407
+ name: z.ZodString;
408
+ type: z.ZodEnum<{
409
+ number: "number";
410
+ date: "date";
411
+ list: "list";
412
+ link: "link";
413
+ text: "text";
414
+ checklist: "checklist";
415
+ select: "select";
416
+ }>;
417
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodArray<z.ZodString>, z.ZodArray<z.ZodObject<{
418
+ text: z.ZodString;
419
+ done: z.ZodBoolean;
420
+ }, z.core.$strip>>]>;
421
+ }, z.core.$strip>>>;
422
+ excerpt: z.ZodUnion<readonly [z.ZodObject<{
423
+ offset: z.ZodNumber;
424
+ length: z.ZodNumber;
425
+ nextCursor: z.ZodNullable<z.ZodString>;
426
+ }, z.core.$strip>, z.ZodObject<{
427
+ firstRow: z.ZodNumber;
428
+ lastRow: z.ZodNumber;
429
+ rowCount: z.ZodNumber;
430
+ nextCursor: z.ZodNullable<z.ZodString>;
431
+ }, z.core.$strip>]>;
432
+ rev: z.ZodOptional<z.ZodNumber>;
433
+ }, z.core.$strip>;
434
+ export type NodeVersionExcerpt = z.infer<typeof NodeVersionExcerpt>;
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { CardFieldType, CardFieldValue } from "../card-kinds/card-kinds.js";
3
3
  import { ColumnId, ColumnType } from "../columns/columns.js";
4
+ import { ExcerptCursor, RowsExcerpt, TextExcerpt } from "../excerpt/excerpt.js";
4
5
  import { idSchema } from "../ids/ids.js";
5
6
  import { Limit as PageSize } from "../list-input.js";
6
7
  import { NodeId, NodePerson, SecretFields } from "../nodes/nodes.js";
@@ -61,6 +62,7 @@ export const NodeVersionListInput = z.strictObject({
61
62
  export const NodeVersionGetInput = z.strictObject({
62
63
  nodeId: NodeId.describe("The document, table, file or task the version belongs to."),
63
64
  versionId: VersionId.describe("The version to read, from intelligence_node_version_list. A version of another node answers not_found."),
65
+ cursor: ExcerptCursor.optional(),
64
66
  });
65
67
  export const NodeVersionCreateInput = z.strictObject({
66
68
  nodeId: NodeId.describe("The document, table, file or task to restore an earlier state of."),
@@ -99,6 +101,7 @@ export const NodeVersionList = z.object({
99
101
  });
100
102
  export const NodeVersionDetail = NodeVersion.extend({
101
103
  // The text of a document or a task (Markdown) or a table; null for a file, whose bytes come with #41.
104
+ // Over MCP a text above `excerptChars` comes in excerpts (E127, #762): see `NodeVersionExcerpt`.
102
105
  content: z.string().nullable(),
103
106
  // Only for a file: its media type.
104
107
  mediaType: z.string().nullable(),
@@ -115,3 +118,14 @@ export const NodeVersionDetail = NodeVersion.extend({
115
118
  // this caller.
116
119
  ...SecretFields,
117
120
  });
121
+ // One excerpt of a version over MCP whose content is above `excerptChars` (E127, #762), cut like the
122
+ // read of its kind (#674): a table's CSV in whole rows (`RowsExcerpt`, the header line in the first
123
+ // excerpt), every other text by characters (`TextExcerpt`). ⚠️ `rev` comes with the last excerpt
124
+ // only: it is the node's `rev`, which `_document_update`, `_table_update` with `csv` and
125
+ // `_task_update` take beside a whole new text, and beside a part of an old version it would let a
126
+ // save of that part cut the rest away without a conflict. A restore takes the `rev` of
127
+ // `intelligence_node_version_list`.
128
+ export const NodeVersionExcerpt = NodeVersionDetail.extend({
129
+ excerpt: z.union([TextExcerpt, RowsExcerpt]),
130
+ rev: z.number().int().optional(),
131
+ });
@@ -0,0 +1,206 @@
1
+ import { z } from "zod";
2
+ export declare const Changed: z.ZodObject<{
3
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
4
+ documentId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
5
+ tableId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
6
+ fileId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
7
+ boardId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
8
+ taskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
9
+ gadgetId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
10
+ runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
11
+ messageId: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
12
+ chatId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
13
+ grantId: z.ZodOptional<z.ZodTemplateLiteral<`grant_${string}`>>;
14
+ linkId: z.ZodOptional<z.ZodTemplateLiteral<`link_${string}`>>;
15
+ userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
16
+ machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
17
+ roleId: z.ZodOptional<z.ZodTemplateLiteral<`role_${string}`>>;
18
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
19
+ invitationId: z.ZodOptional<z.ZodTemplateLiteral<`invitation_${string}`>>;
20
+ serviceId: z.ZodOptional<z.ZodTemplateLiteral<`service_${string}`>>;
21
+ interfaceId: z.ZodOptional<z.ZodTemplateLiteral<`interface_${string}`>>;
22
+ functionId: z.ZodOptional<z.ZodTemplateLiteral<`function_${string}`>>;
23
+ appId: z.ZodOptional<z.ZodTemplateLiteral<`app_${string}`>>;
24
+ sessionId: z.ZodOptional<z.ZodTemplateLiteral<`session_${string}`>>;
25
+ ssoId: z.ZodOptional<z.ZodEnum<{
26
+ google: "google";
27
+ microsoft: "microsoft";
28
+ }>>;
29
+ connectorId: z.ZodOptional<z.ZodString>;
30
+ connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
31
+ credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
32
+ ref: z.ZodOptional<z.ZodString>;
33
+ rev: z.ZodOptional<z.ZodNumber>;
34
+ version: z.ZodOptional<z.ZodNumber>;
35
+ }, z.core.$strip>;
36
+ export type Changed = z.infer<typeof Changed>;
37
+ export declare const Unblocked: z.ZodObject<{
38
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
39
+ title: z.ZodString;
40
+ assignee: z.ZodObject<{
41
+ userId: z.ZodString;
42
+ name: z.ZodString;
43
+ }, z.core.$strip>;
44
+ rev: z.ZodNumber;
45
+ own: z.ZodOptional<z.ZodLiteral<true>>;
46
+ }, z.core.$strip>;
47
+ export type Unblocked = z.infer<typeof Unblocked>;
48
+ export declare const Effects: z.ZodObject<{
49
+ woken: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
+ userId: z.ZodString;
51
+ name: z.ZodString;
52
+ }, z.core.$strip>>>;
53
+ notified: z.ZodOptional<z.ZodArray<z.ZodObject<{
54
+ userId: z.ZodString;
55
+ name: z.ZodString;
56
+ }, z.core.$strip>>>;
57
+ unblocked: z.ZodOptional<z.ZodArray<z.ZodObject<{
58
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
59
+ title: z.ZodString;
60
+ assignee: z.ZodObject<{
61
+ userId: z.ZodString;
62
+ name: z.ZodString;
63
+ }, z.core.$strip>;
64
+ rev: z.ZodNumber;
65
+ own: z.ZodOptional<z.ZodLiteral<true>>;
66
+ }, z.core.$strip>>>;
67
+ validationReset: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
68
+ readers: z.ZodOptional<z.ZodArray<z.ZodObject<{
69
+ userId: z.ZodString;
70
+ name: z.ZodNullable<z.ZodString>;
71
+ kind: z.ZodNullable<z.ZodEnum<{
72
+ machine: "machine";
73
+ human: "human";
74
+ }>>;
75
+ right: z.ZodEnum<{
76
+ share: "share";
77
+ write: "write";
78
+ read: "read";
79
+ }>;
80
+ origin: z.ZodEnum<{
81
+ creator: "creator";
82
+ direct: "direct";
83
+ inherited: "inherited";
84
+ }>;
85
+ fromNodeId: z.ZodTemplateLiteral<`node_${string}`>;
86
+ }, z.core.$strip>>>;
87
+ }, z.core.$strip>;
88
+ export type Effects = z.infer<typeof Effects>;
89
+ export declare const Written: z.ZodObject<{
90
+ changed: z.ZodArray<z.ZodObject<{
91
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
92
+ documentId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
93
+ tableId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
94
+ fileId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
95
+ boardId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
96
+ taskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
97
+ gadgetId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
98
+ runId: z.ZodOptional<z.ZodTemplateLiteral<`run_${string}`>>;
99
+ messageId: z.ZodOptional<z.ZodTemplateLiteral<`message_${string}`>>;
100
+ chatId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
101
+ grantId: z.ZodOptional<z.ZodTemplateLiteral<`grant_${string}`>>;
102
+ linkId: z.ZodOptional<z.ZodTemplateLiteral<`link_${string}`>>;
103
+ userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
104
+ machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
105
+ roleId: z.ZodOptional<z.ZodTemplateLiteral<`role_${string}`>>;
106
+ permissions: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ invitationId: z.ZodOptional<z.ZodTemplateLiteral<`invitation_${string}`>>;
108
+ serviceId: z.ZodOptional<z.ZodTemplateLiteral<`service_${string}`>>;
109
+ interfaceId: z.ZodOptional<z.ZodTemplateLiteral<`interface_${string}`>>;
110
+ functionId: z.ZodOptional<z.ZodTemplateLiteral<`function_${string}`>>;
111
+ appId: z.ZodOptional<z.ZodTemplateLiteral<`app_${string}`>>;
112
+ sessionId: z.ZodOptional<z.ZodTemplateLiteral<`session_${string}`>>;
113
+ ssoId: z.ZodOptional<z.ZodEnum<{
114
+ google: "google";
115
+ microsoft: "microsoft";
116
+ }>>;
117
+ connectorId: z.ZodOptional<z.ZodString>;
118
+ connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
119
+ credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
120
+ ref: z.ZodOptional<z.ZodString>;
121
+ rev: z.ZodOptional<z.ZodNumber>;
122
+ version: z.ZodOptional<z.ZodNumber>;
123
+ }, z.core.$strip>>;
124
+ effects: z.ZodOptional<z.ZodObject<{
125
+ woken: z.ZodOptional<z.ZodArray<z.ZodObject<{
126
+ userId: z.ZodString;
127
+ name: z.ZodString;
128
+ }, z.core.$strip>>>;
129
+ notified: z.ZodOptional<z.ZodArray<z.ZodObject<{
130
+ userId: z.ZodString;
131
+ name: z.ZodString;
132
+ }, z.core.$strip>>>;
133
+ unblocked: z.ZodOptional<z.ZodArray<z.ZodObject<{
134
+ taskId: z.ZodTemplateLiteral<`node_${string}`>;
135
+ title: z.ZodString;
136
+ assignee: z.ZodObject<{
137
+ userId: z.ZodString;
138
+ name: z.ZodString;
139
+ }, z.core.$strip>;
140
+ rev: z.ZodNumber;
141
+ own: z.ZodOptional<z.ZodLiteral<true>>;
142
+ }, z.core.$strip>>>;
143
+ validationReset: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`node_${string}`>>>;
144
+ readers: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
+ userId: z.ZodString;
146
+ name: z.ZodNullable<z.ZodString>;
147
+ kind: z.ZodNullable<z.ZodEnum<{
148
+ machine: "machine";
149
+ human: "human";
150
+ }>>;
151
+ right: z.ZodEnum<{
152
+ share: "share";
153
+ write: "write";
154
+ read: "read";
155
+ }>;
156
+ origin: z.ZodEnum<{
157
+ creator: "creator";
158
+ direct: "direct";
159
+ inherited: "inherited";
160
+ }>;
161
+ fromNodeId: z.ZodTemplateLiteral<`node_${string}`>;
162
+ }, z.core.$strip>>>;
163
+ }, z.core.$strip>>;
164
+ missing: z.ZodOptional<z.ZodArray<z.ZodObject<{
165
+ code: z.ZodEnum<{
166
+ test_failed: "test_failed";
167
+ no_role: "no_role";
168
+ no_folder: "no_folder";
169
+ credential_invalid: "credential_invalid";
170
+ incomplete: "incomplete";
171
+ no_right: "no_right";
172
+ no_kind: "no_kind";
173
+ no_assignee: "no_assignee";
174
+ no_machine: "no_machine";
175
+ }>;
176
+ machineId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
177
+ credentialId: z.ZodOptional<z.ZodTemplateLiteral<`credential_${string}`>>;
178
+ connectorId: z.ZodOptional<z.ZodString>;
179
+ connectionId: z.ZodOptional<z.ZodTemplateLiteral<`connection_${string}`>>;
180
+ taskId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
181
+ documentId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
182
+ userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
183
+ nodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
184
+ message: z.ZodString;
185
+ right: z.ZodOptional<z.ZodString>;
186
+ givenBy: z.ZodOptional<z.ZodArray<z.ZodObject<{
187
+ userId: z.ZodString;
188
+ name: z.ZodString;
189
+ }, z.core.$strip>>>;
190
+ call: z.ZodOptional<z.ZodObject<{
191
+ tool: z.ZodString;
192
+ arguments: z.ZodRecord<z.ZodString, z.ZodUnknown>;
193
+ }, z.core.$strip>>;
194
+ }, z.core.$strip>>>;
195
+ warnings: z.ZodOptional<z.ZodArray<z.ZodObject<{
196
+ code: z.ZodEnum<{
197
+ followup_failed: "followup_failed";
198
+ test_failed: "test_failed";
199
+ mail_failed: "mail_failed";
200
+ unused: "unused";
201
+ too_long: "too_long";
202
+ }>;
203
+ message: z.ZodString;
204
+ }, z.core.$strip>>>;
205
+ }, z.core.$strip>;
206
+ export type Written = z.infer<typeof Written>;