@anchrd/colab-sdk 0.1.43 → 0.1.45
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/actions/actions.d.ts +55 -0
- package/dist/actions/actions.js +11 -0
- package/dist/boards/boards.d.ts +40 -0
- package/dist/boards/boards.js +26 -0
- package/dist/connectors/connectors.d.ts +3 -0
- package/dist/connectors/connectors.js +7 -0
- package/dist/files/files.d.ts +32 -1
- package/dist/files/files.js +89 -27
- package/dist/grammar/grammar.d.ts +6 -1
- package/dist/grammar/grammar.js +24 -0
- package/dist/grants/grants.d.ts +12 -4
- package/dist/grants/grants.js +23 -8
- package/dist/home/home.d.ts +3 -3
- package/dist/invitations/invitations.d.ts +1 -0
- package/dist/invitations/invitations.js +8 -0
- package/dist/jobs/jobs.d.ts +67 -0
- package/dist/jobs/jobs.js +45 -0
- package/dist/nodes/nodes.d.ts +2 -0
- package/dist/nodes/nodes.js +4 -0
- package/dist/operators/operators.d.ts +218 -1
- package/dist/operators/operators.js +101 -4
- package/dist/relations/relations.d.ts +336 -0
- package/dist/relations/relations.js +125 -0
- package/dist/sdk.d.ts +8 -4
- package/dist/sdk.js +8 -4
- package/dist/teams/teams.d.ts +120 -0
- package/dist/teams/teams.js +70 -0
- package/dist/types/types.d.ts +166 -0
- package/dist/types/types.js +112 -0
- package/dist/versions/versions.d.ts +22 -0
- package/dist/versions/versions.js +5 -0
- package/dist/written/written.d.ts +66 -0
- package/dist/written/written.js +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema } from "../ids/ids.js";
|
|
3
|
+
import { NodeId, NodeKindRead } from "../nodes/nodes.js";
|
|
4
|
+
import { IdempotencyKey } from "../primitives/primitives.js";
|
|
5
|
+
import { TypeId, TypeKind, TypeRef } from "../types/types.js";
|
|
6
|
+
// The ontology's relations (#1124, Nodes › Ontologie): what connects two things, a node or an actor,
|
|
7
|
+
// "Beziehung" in the UI. A relation is computed from a rule ("entsteht aus") or set by somebody; that
|
|
8
|
+
// is its origin, never a type of its own. The view "Ontologie" of a folder reads them through
|
|
9
|
+
// `intelligence_relation_list`.
|
|
10
|
+
// The rules Colab brings along, locked: each says where its relations come from. Their meaning is a
|
|
11
|
+
// word of the UI's catalogue (`ontology_relation_<id>`); an AI reads the English one here.
|
|
12
|
+
export const baseRelationTypes = {
|
|
13
|
+
// A node names another one in its text (a document's, a task's): `/n/node_…` or the bare id.
|
|
14
|
+
mentions: { from: "node", to: "node", meaning: "mentions", source: "text" },
|
|
15
|
+
// A field of a task's card kind points at a node.
|
|
16
|
+
refers: { from: "node", to: "node", meaning: "refers to", source: "field" },
|
|
17
|
+
// A task waits for another one.
|
|
18
|
+
waits: { from: "node", to: "node", meaning: "waits for", source: "dependency" },
|
|
19
|
+
// The person who answers for a document, table or file's content (its creator without one).
|
|
20
|
+
responsible: { from: "actor", to: "node", meaning: "answers for", source: "role" },
|
|
21
|
+
// The person or machine a task is assigned to.
|
|
22
|
+
assignee: { from: "actor", to: "node", meaning: "works on", source: "assignment" },
|
|
23
|
+
// The Operator that works on a goal.
|
|
24
|
+
operator: { from: "actor", to: "node", meaning: "pursues", source: "assignment" },
|
|
25
|
+
// A node shared with a person or machine directly.
|
|
26
|
+
grant: { from: "node", to: "actor", meaning: "shared with", source: "grant" },
|
|
27
|
+
};
|
|
28
|
+
export const BaseRelationType = z.enum(Object.keys(baseRelationTypes));
|
|
29
|
+
export const RelationListInput = z
|
|
30
|
+
.strictObject({
|
|
31
|
+
nodeId: NodeId.optional().describe("The node whose picture to read. A folder: the relations between the things directly in it, a subfolder standing for everything below it, and to people and machines. Any other node: all its own relations, in and out, with its actions."),
|
|
32
|
+
section: z
|
|
33
|
+
.literal("shared")
|
|
34
|
+
.optional()
|
|
35
|
+
.describe("Instead of a node: the picture of Shared, the tops of what others share with you."),
|
|
36
|
+
})
|
|
37
|
+
.refine((input) => (input.nodeId === undefined) !== (input.section === undefined), {
|
|
38
|
+
message: "Give exactly one of nodeId and section.",
|
|
39
|
+
});
|
|
40
|
+
// One end of a relation in the picture of a folder: a node directly in it (a subfolder stands for its
|
|
41
|
+
// whole content), an actor, or a node outside the folder.
|
|
42
|
+
export const RelationEnd = z.discriminatedUnion("kind", [
|
|
43
|
+
z.object({ kind: z.literal("node"), nodeId: NodeId }),
|
|
44
|
+
z.object({ kind: z.literal("actor"), userId: z.string() }),
|
|
45
|
+
z.object({ kind: z.literal("outside"), nodeId: NodeId }),
|
|
46
|
+
// An own object type standing for a thing of the real world, the end of a set relation.
|
|
47
|
+
z.object({ kind: z.literal("type"), typeId: TypeId }),
|
|
48
|
+
]);
|
|
49
|
+
export const RelationId = idSchema("relation").describe("A set relation's id, `relation_…`.");
|
|
50
|
+
export const Relation = z.object({
|
|
51
|
+
// A base rule by its word, or an own relation type.
|
|
52
|
+
type: z.union([BaseRelationType, TypeId]),
|
|
53
|
+
origin: z.enum(["computed", "set"]),
|
|
54
|
+
from: RelationEnd,
|
|
55
|
+
to: RelationEnd,
|
|
56
|
+
// How many single relations this line stands for: a subfolder bundles those of its content.
|
|
57
|
+
count: z.number().int().min(1),
|
|
58
|
+
// A set relation that stands alone (count 1): its id, to remove it. null otherwise.
|
|
59
|
+
relationId: RelationId.nullable(),
|
|
60
|
+
});
|
|
61
|
+
export const RelationActor = z.object({
|
|
62
|
+
userId: z.string(),
|
|
63
|
+
name: z.string(),
|
|
64
|
+
kind: z.enum(["human", "machine"]),
|
|
65
|
+
});
|
|
66
|
+
// A node outside the folder that a relation reaches, with the folder it lies in, as the caller reads it.
|
|
67
|
+
export const RelationOutside = z.object({
|
|
68
|
+
nodeId: NodeId,
|
|
69
|
+
name: z.string(),
|
|
70
|
+
kind: NodeKindRead,
|
|
71
|
+
folderId: NodeId.nullable(),
|
|
72
|
+
folderName: z.string().nullable(),
|
|
73
|
+
});
|
|
74
|
+
// An own type at the end of a relation, or naming one: its name for the picture.
|
|
75
|
+
export const RelationType = z.object({ typeId: TypeId, name: z.string(), kind: TypeKind });
|
|
76
|
+
// An action in the picture (#1124): what may change the cards it acts on. Derived ones come from a
|
|
77
|
+
// board's columns and from skills; own ones are action types. The base actions (create, update,
|
|
78
|
+
// archive) hold for every type and are never shown.
|
|
79
|
+
export const RelationAction = z.object({
|
|
80
|
+
// `type_…` for an action type; a derived one is keyed by where it comes from (`column:…`, `skill:…`).
|
|
81
|
+
actionId: z.string(),
|
|
82
|
+
name: z.string(),
|
|
83
|
+
description: z.string(),
|
|
84
|
+
origin: z.enum(["computed", "set"]),
|
|
85
|
+
approval: z.boolean(),
|
|
86
|
+
implementedBy: NodeId.nullable(),
|
|
87
|
+
// The cards of this picture it acts on.
|
|
88
|
+
on: z.array(NodeId),
|
|
89
|
+
});
|
|
90
|
+
export const RelationList = z.object({
|
|
91
|
+
items: z.array(Relation),
|
|
92
|
+
actors: z.array(RelationActor),
|
|
93
|
+
outside: z.array(RelationOutside),
|
|
94
|
+
types: z.array(RelationType),
|
|
95
|
+
actions: z.array(RelationAction),
|
|
96
|
+
nextCursor: z.null(),
|
|
97
|
+
});
|
|
98
|
+
// One end of a relation somebody sets: a node, a person or machine, or a thing of the real world (an
|
|
99
|
+
// own object type without a source).
|
|
100
|
+
export const RelationSetEnd = z.discriminatedUnion("kind", [
|
|
101
|
+
z.strictObject({ kind: z.literal("node"), nodeId: NodeId }),
|
|
102
|
+
z.strictObject({ kind: z.literal("actor"), userId: z.string().regex(/^user_/) }),
|
|
103
|
+
z.strictObject({ kind: z.literal("type"), typeId: TypeId }),
|
|
104
|
+
]);
|
|
105
|
+
export const RelationCreateInput = z.strictObject({
|
|
106
|
+
type: TypeRef.describe("What the relation means: a relation type, an own one `type_…` or a base rule `base:<word>` (base:mentions …). To write a new meaning, create the relation type first with intelligence_type_create."),
|
|
107
|
+
from: RelationSetEnd,
|
|
108
|
+
to: RelationSetEnd,
|
|
109
|
+
idempotencyKey: IdempotencyKey,
|
|
110
|
+
});
|
|
111
|
+
// The same ends in an answer: `z.object`, never strict (E113).
|
|
112
|
+
const SetRelationEnd = z.discriminatedUnion("kind", [
|
|
113
|
+
z.object({ kind: z.literal("node"), nodeId: NodeId }),
|
|
114
|
+
z.object({ kind: z.literal("actor"), userId: z.string() }),
|
|
115
|
+
z.object({ kind: z.literal("type"), typeId: TypeId }),
|
|
116
|
+
]);
|
|
117
|
+
export const SetRelation = z.object({
|
|
118
|
+
relationId: RelationId,
|
|
119
|
+
type: TypeRef,
|
|
120
|
+
from: SetRelationEnd,
|
|
121
|
+
to: SetRelationEnd,
|
|
122
|
+
createdBy: z.string(),
|
|
123
|
+
createdAt: z.iso.datetime(),
|
|
124
|
+
});
|
|
125
|
+
export const RelationRemoveInput = z.strictObject({ relationId: RelationId });
|
package/dist/sdk.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppLi
|
|
|
4
4
|
export { ArchivedGoalLink, 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, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, 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, maxRules, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskRule, TaskUpdateInput, } 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";
|
|
@@ -15,7 +15,7 @@ export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput,
|
|
|
15
15
|
export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
|
|
16
16
|
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
|
|
17
17
|
export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
|
|
18
|
-
export { FileCreateInput, FileDetail, type FileFormat, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
|
|
18
|
+
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";
|
|
19
19
|
export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
|
|
20
20
|
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
21
|
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";
|
|
@@ -26,6 +26,7 @@ export { createId, type Id, idSchema } from "./ids/ids.js";
|
|
|
26
26
|
export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, } from "./instructions/instructions.js";
|
|
27
27
|
export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
|
|
28
28
|
export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
|
|
29
|
+
export { Job, JobCreateInput, JobGetInput, JobId, JobKind, JobList, JobListInput, JobRefused, maxJobEntries, maxJobRefusedNamed, } from "./jobs/jobs.js";
|
|
29
30
|
export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput, GadgetLinkCreateInput, GadgetLinkList, GadgetLinkListInput, GadgetLinkPage, GadgetLinkRevokeInput, GadgetLinkVisit, GadgetLinkVisitInput, gadgetLinkLimits, gadgetLinkPath, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
|
|
30
31
|
export { Flag, Limit } from "./list-input.js";
|
|
31
32
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
@@ -33,12 +34,13 @@ export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, ty
|
|
|
33
34
|
export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
|
|
34
35
|
export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
|
|
35
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";
|
|
36
|
-
export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, type GatewayModel, type GatewayModelEntry, GatewayModelEntrySchema, type GatewayOutputLimit, 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, 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, offeredModels, operatorDefaults, operatorProviders, operatorVendors, outputLimitOf, PauseReason, planAnswerOf, type RetiredGatewayModel, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, vendorOfModel, } from "./operators/operators.js";
|
|
37
|
+
export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, compactRunLimit, type GatewayModel, type GatewayModelEntry, GatewayModelEntrySchema, type GatewayOutputLimit, 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, 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, outputLimitOf, PauseReason, planAnswerOf, type ReasoningEffort, ReasoningLevel, ReasoningStage, type RetiredGatewayModel, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningAdjustable, reasoningDefault, reasoningEffortOf, reasoningOfModel, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, UserCredentialCreateInput, UserCredentialRevokeInput, UserCredentialTestInput, UserCredentialUpdateInput, vendorOfModel, } from "./operators/operators.js";
|
|
37
38
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
38
39
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
39
40
|
export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
|
|
40
41
|
export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
|
|
41
42
|
export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
|
|
43
|
+
export { BaseRelationType, baseRelationTypes, Relation, RelationAction, RelationActor, RelationCreateInput, RelationEnd, RelationId, RelationList, RelationListInput, RelationOutside, RelationRemoveInput, RelationSetEnd, RelationType, SetRelation, } from "./relations/relations.js";
|
|
42
44
|
export { GrantChange, PermissionsResponse, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
|
|
43
45
|
export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
|
|
44
46
|
export { RuntimeConfig } from "./runtime-config.js";
|
|
@@ -49,9 +51,11 @@ export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceAr
|
|
|
49
51
|
export { SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
|
|
50
52
|
export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunFailureRead, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceFormHeaders, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
|
|
51
53
|
export { maxTableColumns, maxTableRows, RowLimit, TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableFilter, TableGetInput, TableId, TableSaved, TableSort, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
|
|
54
|
+
export { companyTeamId, MemberId, Team, TeamArchiveInput, TeamCreateInput, TeamId, TeamList, TeamListInput, TeamMember, TeamMemberCreateInput, TeamMemberRemoveInput, TeamRestoreInput, TeamRole, TeamUpdateInput, } from "./teams/teams.js";
|
|
52
55
|
export { type Actor, defineTool, type Permission, type Tool, type ToolAnnotations, type ToolContext, type ToolInput, type ToolSource, } from "./tool.js";
|
|
53
56
|
export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
|
|
57
|
+
export { baseActionTypes, baseActorTypes, baseObjectTypes, baseRef, Cardinality, cardinalities, OntologyType, TypeArchiveInput, TypeCreateInput, TypeId, TypeKind, TypeList, TypeListInput, TypeRef, TypeRestoreInput, TypeStatus, TypeUpdateInput, typeKinds, typeStatuses, } from "./types/types.js";
|
|
54
58
|
export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
|
|
55
59
|
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";
|
|
56
60
|
export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionExcerpt, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
|
|
57
|
-
export { Changed, Effects, Unblocked, Written, } from "./written/written.js";
|
|
61
|
+
export { Changed, Effects, Moved, Unblocked, Written, } from "./written/written.js";
|
package/dist/sdk.js
CHANGED
|
@@ -7,7 +7,7 @@ export { App, AppId, AppList, AppListInput, AppRevoked, AppRevokeInput, OwnAppLi
|
|
|
7
7
|
export { ArchivedGoalLink, 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, BoardTaskBrief, BoardTaskBriefList, BoardTaskCreated, BoardTaskCreateInput, BoardTaskItem, BoardTaskList, BoardTaskListInput, BoardTaskUpdated, BoardTaskUpdateInput, BoardUpdateInput, boardKinds, compactTaskLimit, LabelId, maxBulkTasks, 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, maxRules, TaskDetail, TaskGetInput, TaskId, TaskImage, TaskRule, TaskUpdateInput, } 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";
|
|
@@ -18,7 +18,7 @@ export { DocumentCreateInput, DocumentDetail, DocumentExcerpt, DocumentGetInput,
|
|
|
18
18
|
export { ErrorCode, ErrorCurrent, ErrorIssue, ErrorResponse, errorCodes, invalidInput, Warning, } from "./error/error.js";
|
|
19
19
|
export { ActorKind, Event, EventId, EventKind, EventList, EventListInput, EventSource, } from "./events/events.js";
|
|
20
20
|
export { ExcerptCursor, excerptChars, RowsExcerpt, TextExcerpt } from "./excerpt/excerpt.js";
|
|
21
|
-
export { FileCreateInput, FileDetail, FileGetInput, FileId, FileTextState, FileUpdateInput, FileUpload, fileFormatExtensions, fileFormatOf, fileTextStates, maxFileBytes, UploadTicket, uploadTicketHeader, uploadTicketLifetimeMs, } from "./files/files.js";
|
|
21
|
+
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";
|
|
22
22
|
export { FunctionRemoved, ServiceInterfaceFunctionCreateInput, ServiceInterfaceFunctionRemoveInput, ServiceInterfaceFunctionUpdateInput, } from "./functions/functions.js";
|
|
23
23
|
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
24
|
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";
|
|
@@ -29,6 +29,7 @@ export { createId, idSchema } from "./ids/ids.js";
|
|
|
29
29
|
export { Digest, InstructionRead, Instructions, InstructionsLink, InstructionsRead, InstructionText, instructionsNames, isInstructionsName, isKnownText, Known, KnownText, maxKnown, } from "./instructions/instructions.js";
|
|
30
30
|
export { FunctionNames, InterfaceRemoved, ServiceInterfaceCreateInput, ServiceInterfaceDeclared, ServiceInterfaceDeclareInput, ServiceInterfaceRemoveInput, ServiceInterfaceUndeclared, ServiceInterfaceUpdateInput, } from "./interfaces/interfaces.js";
|
|
31
31
|
export { Delivery, Invitation, InvitationAcceptInput, InvitationCreateInput, InvitationId, InvitationLookup, InvitationLookupQuery, InvitationResendInput, InvitationRevokeInput, InvitationSent, InvitationSocialInput, InvitationStatus, RoleChip, } from "./invitations/invitations.js";
|
|
32
|
+
export { Job, JobCreateInput, JobGetInput, JobId, JobKind, JobList, JobListInput, JobRefused, maxJobEntries, maxJobRefusedNamed, } from "./jobs/jobs.js";
|
|
32
33
|
export { defaultLinkDays, GadgetLink, GadgetLinkCallInput, GadgetLinkCodeInput, GadgetLinkCreateInput, GadgetLinkList, GadgetLinkListInput, GadgetLinkPage, GadgetLinkRevokeInput, GadgetLinkVisit, GadgetLinkVisitInput, gadgetLinkLimits, gadgetLinkPath, LinkId, LinkStatus, maxLinkDays, NodeLink, NodeLinkCreateInput, NodeLinkList, NodeLinkListInput, NodeLinkRevokeInput, NodeLinkUpdateInput, publicLinkPath, } from "./links/links.js";
|
|
33
34
|
export { Flag, Limit } from "./list-input.js";
|
|
34
35
|
export { MachineArchiveInput, MachineCreateInput, MachineId, MachineKey, MachinePurged, MachinePurgeInput, MachineRestoreInput, MachineRotateInput, MachineUpdateInput, } from "./machines/machines.js";
|
|
@@ -36,12 +37,13 @@ export { Mcp, McpAuth, McpCall, McpCallAction, McpCallList, McpCallListInput, Mc
|
|
|
36
37
|
export { ChatRead, ChatTopic, ChatUpdateInput, Message, MessageAuthor, MessageCreateInput, MessageId, MessageList, MessageListInput, messageMaxLength, TopicName, topicMaxLength, topicOf, } from "./messages/messages.js";
|
|
37
38
|
export { Missing, MissingCall, MissingCode, missingCodes, Reached, } from "./missing/missing.js";
|
|
38
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";
|
|
39
|
-
export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, 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, OperatorRunCostSource, OperatorRunFallbackReason, OperatorRunGetInput, OperatorRunId, OperatorRunInstructions, OperatorRunList, OperatorRunListInput, OperatorRunReason, OperatorRunStatus, OperatorRunStep, OperatorRunStepKind, OperatorRunStepList, OperatorRunTokens, OperatorRunTouched, OperatorRunTrigger, OperatorRunUsage, OperatorRunWoken, OperatorState, OperatorUser, OperatorUserList, OperatorUserListInput, OperatorUserUpdateInput, OperatorVendor, offeredModels, operatorDefaults, operatorProviders, operatorVendors, outputLimitOf, PauseReason, planAnswerOf, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningEffortOf, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, vendorOfModel, } from "./operators/operators.js";
|
|
40
|
+
export { ChangeTrigger, Credential, CredentialCreateInput, CredentialGetInput, CredentialId, CredentialKind, CredentialList, CredentialListInput, CredentialRevokeInput, CredentialState, CredentialTested, CredentialTestInput, CredentialTestResult, CredentialUpdateInput, cacheWritePriceOf, 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, 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, outputLimitOf, PauseReason, planAnswerOf, ReasoningLevel, ReasoningStage, RunCancelInput, RunPlanAnswer, RunPlanStep, RunStepListInput, RunUpdateInput, reasoningAdjustable, reasoningDefault, reasoningEffortOf, reasoningOfModel, retiredGatewayModels, runPlanMax, runSummaryChars, Subagents, scheduleQuietMinutes, Trigger, UserCredentialCreateInput, UserCredentialRevokeInput, UserCredentialTestInput, UserCredentialUpdateInput, vendorOfModel, } from "./operators/operators.js";
|
|
40
41
|
export { Currency, CurrencyRate, currencies, Organisation, OrganisationGetInput, OrganisationUpdateInput, } from "./organisation/organisation.js";
|
|
41
42
|
export { PageDetail, PageGetInput, PageHead, PageHeading, PageId, PageList, PageListInput, PageSummary, } from "./pages/pages.js";
|
|
42
43
|
export { AgentName, gatewayAgentsMax, IdempotencyKey, PlanSubstep, planEvidenceMax, Rev, } from "./primitives/primitives.js";
|
|
43
44
|
export { Locale, locales, Name, ProfileImageResponse, ProfileUpdateInput, profileImageMaxBytes, profileImageTypes, Theme, TimeZone, themes, } from "./profile/profile.js";
|
|
44
45
|
export { offersSignIn, Provider, ProviderId, ProviderList, ProviderListInput, ProviderRemoveInput, ProviderSource, ProviderTest, ProviderTestInput, ProviderUpdateInput, providerEndpoints, providerIds, SignInProviderId, SignInProviders, signInProviderIds, } from "./providers/providers.js";
|
|
46
|
+
export { BaseRelationType, baseRelationTypes, Relation, RelationAction, RelationActor, RelationCreateInput, RelationEnd, RelationId, RelationList, RelationListInput, RelationOutside, RelationRemoveInput, RelationSetEnd, RelationType, SetRelation, } from "./relations/relations.js";
|
|
45
47
|
export { GrantChange, PermissionsResponse, RightPath, RightTree, Role, RoleArchiveInput, RoleCreateInput, RoleDetail, RoleGetInput, RoleGrantCreateInput, RoleGrantRevokeInput, RoleId, RoleList, RoleListInput, RoleRestoreInput, RoleUpdateInput, } from "./roles/roles.js";
|
|
46
48
|
export { RunDetail, RunGetInput, RunId, RunItem, RunList, RunListInput, RunStatus, runStatuses, } from "./runs/runs.js";
|
|
47
49
|
export { RuntimeConfig } from "./runtime-config.js";
|
|
@@ -52,9 +54,11 @@ export { ConsentResource, FunctionId, InterfaceId, RightWord, Service, ServiceAr
|
|
|
52
54
|
export { SkillCallName, SkillCaseCalls, SkillCaseResult, SkillCreateInput, SkillDetail, SkillFields, SkillFile, SkillFilePath, SkillGetInput, SkillId, SkillOffer, SkillPoint, SkillRunCall, SkillRunDetail, SkillRunGetInput, SkillRunItem, SkillRunList, SkillRunListInput, SkillTestInput, SkillTestReport, SkillToken, SkillTokenCreateInput, SkillTokens, SkillTriggerHit, SkillUpdateInput, SkillWriteName, skillCaseStatuses, skillFilePattern, skillRunKinds, skillRunStatuses, } from "./skills/skills.js";
|
|
53
55
|
export { ItemId, QueryId, SourceAccess, SourceCreateInput, SourceDetail, SourceField, SourceFieldType, SourceGetInput, SourceItem, SourceItemList, SourceItemListInput, SourceManifest, SourcePaging, SourceParam, SourcePath, SourceProbe, SourcePublishInput, SourceQuery, SourceQueryArchiveInput, SourceQueryCreateInput, SourceQueryList, SourceQueryListInput, SourceQueryRestoreInput, SourceQueryUpdateInput, SourceRun, SourceRunCounts, SourceRunCreateInput, SourceRunFailure, SourceRunFailureRead, SourceRunGetInput, SourceRunList, SourceRunListInput, SourceSchedule, SourceSecretsInput, SourceStep, SourceTestInput, SourceUpdateInput, SourceVersionRef, SourceWhere, sourceCleans, sourceCodePath, sourceEvery, sourceFieldTypes, sourceFormHeaders, sourceKeepDays, sourceLimits, sourceManifestPath, sourceSchema, } from "./sources/sources.js";
|
|
54
56
|
export { maxTableColumns, maxTableRows, RowLimit, TableColumn, TableColumnChange, TableColumnType, TableCreateInput, TableDetail, TableExcerpt, TableFilter, TableGetInput, TableId, TableSaved, TableSort, TableUpdateInput, tableColumnTypes, tableFormats, } from "./tables/tables.js";
|
|
57
|
+
export { companyTeamId, MemberId, Team, TeamArchiveInput, TeamCreateInput, TeamId, TeamList, TeamListInput, TeamMember, TeamMemberCreateInput, TeamMemberRemoveInput, TeamRestoreInput, TeamRole, TeamUpdateInput, } from "./teams/teams.js";
|
|
55
58
|
export { defineTool, } from "./tool.js";
|
|
56
59
|
export { compareTreeNames, treeKindOrder, treeKindRank, } from "./tree-order/tree-order.js";
|
|
60
|
+
export { baseActionTypes, baseActorTypes, baseObjectTypes, baseRef, Cardinality, cardinalities, OntologyType, TypeArchiveInput, TypeCreateInput, TypeId, TypeKind, TypeList, TypeListInput, TypeRef, TypeRestoreInput, TypeStatus, TypeUpdateInput, typeKinds, typeStatuses, } from "./types/types.js";
|
|
57
61
|
export { IntelligenceUserGetInput, IntelligenceUserUpdateInput, NotifyMode, notifyModes, UserSettings, } from "./user-settings/user-settings.js";
|
|
58
62
|
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";
|
|
59
63
|
export { MoveColumn, NodeVersion, NodeVersionCreateInput, NodeVersionDetail, NodeVersionExcerpt, NodeVersionGetInput, NodeVersionList, NodeVersionListInput, TaskVersionChange, taskVersionChanges, VersionId, VersionMove, versionKinds, } from "./versions/versions.js";
|
|
60
|
-
export { Changed, Effects, Unblocked, Written, } from "./written/written.js";
|
|
64
|
+
export { Changed, Effects, Moved, Unblocked, Written, } from "./written/written.js";
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const TeamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
3
|
+
export type TeamId = z.infer<typeof TeamId>;
|
|
4
|
+
export declare const companyTeamId: TeamId;
|
|
5
|
+
export declare const MemberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
6
|
+
export type MemberId = z.infer<typeof MemberId>;
|
|
7
|
+
export declare const TeamListInput: z.ZodObject<{
|
|
8
|
+
archived: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean, unknown>>;
|
|
9
|
+
userId: z.ZodOptional<z.ZodTemplateLiteral<`user_${string}`>>;
|
|
10
|
+
query: z.ZodOptional<z.ZodString>;
|
|
11
|
+
cursor: z.ZodOptional<z.ZodTemplateLiteral<`team_${string}`>>;
|
|
12
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
13
|
+
}, z.core.$strict>;
|
|
14
|
+
export type TeamListInput = z.infer<typeof TeamListInput>;
|
|
15
|
+
export declare const TeamCreateInput: z.ZodObject<{
|
|
16
|
+
name: z.ZodString;
|
|
17
|
+
}, z.core.$strict>;
|
|
18
|
+
export type TeamCreateInput = z.infer<typeof TeamCreateInput>;
|
|
19
|
+
export declare const TeamUpdateInput: z.ZodObject<{
|
|
20
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
21
|
+
name: z.ZodOptional<z.ZodString>;
|
|
22
|
+
roleIds: z.ZodOptional<z.ZodArray<z.ZodTemplateLiteral<`role_${string}`>>>;
|
|
23
|
+
}, z.core.$strict>;
|
|
24
|
+
export type TeamUpdateInput = z.infer<typeof TeamUpdateInput>;
|
|
25
|
+
export declare const TeamArchiveInput: z.ZodObject<{
|
|
26
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
27
|
+
}, z.core.$strict>;
|
|
28
|
+
export type TeamArchiveInput = z.infer<typeof TeamArchiveInput>;
|
|
29
|
+
export declare const TeamRestoreInput: z.ZodObject<{
|
|
30
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
export type TeamRestoreInput = z.infer<typeof TeamRestoreInput>;
|
|
33
|
+
export declare const TeamMemberCreateInput: z.ZodObject<{
|
|
34
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
35
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
36
|
+
}, z.core.$strict>;
|
|
37
|
+
export type TeamMemberCreateInput = z.infer<typeof TeamMemberCreateInput>;
|
|
38
|
+
export declare const TeamMemberRemoveInput: z.ZodObject<{
|
|
39
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
40
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
41
|
+
}, z.core.$strict>;
|
|
42
|
+
export type TeamMemberRemoveInput = z.infer<typeof TeamMemberRemoveInput>;
|
|
43
|
+
export declare const TeamMember: z.ZodObject<{
|
|
44
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
45
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
kind: z.ZodEnum<{
|
|
48
|
+
machine: "machine";
|
|
49
|
+
human: "human";
|
|
50
|
+
}>;
|
|
51
|
+
email: z.ZodNullable<z.ZodString>;
|
|
52
|
+
machineKind: z.ZodNullable<z.ZodEnum<{
|
|
53
|
+
operator: "operator";
|
|
54
|
+
external: "external";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type TeamMember = z.infer<typeof TeamMember>;
|
|
58
|
+
export declare const TeamRole: z.ZodObject<{
|
|
59
|
+
roleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
description: z.ZodString;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type TeamRole = z.infer<typeof TeamRole>;
|
|
64
|
+
export declare const Team: z.ZodObject<{
|
|
65
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
66
|
+
name: z.ZodString;
|
|
67
|
+
members: z.ZodArray<z.ZodObject<{
|
|
68
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
69
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
70
|
+
name: z.ZodString;
|
|
71
|
+
kind: z.ZodEnum<{
|
|
72
|
+
machine: "machine";
|
|
73
|
+
human: "human";
|
|
74
|
+
}>;
|
|
75
|
+
email: z.ZodNullable<z.ZodString>;
|
|
76
|
+
machineKind: z.ZodNullable<z.ZodEnum<{
|
|
77
|
+
operator: "operator";
|
|
78
|
+
external: "external";
|
|
79
|
+
}>>;
|
|
80
|
+
}, z.core.$strip>>;
|
|
81
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
82
|
+
roleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
description: z.ZodString;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
87
|
+
createdAt: z.ZodISODateTime;
|
|
88
|
+
updatedAt: z.ZodISODateTime;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
export type Team = z.infer<typeof Team>;
|
|
91
|
+
export declare const TeamList: z.ZodObject<{
|
|
92
|
+
items: z.ZodArray<z.ZodObject<{
|
|
93
|
+
teamId: z.ZodTemplateLiteral<`team_${string}`>;
|
|
94
|
+
name: z.ZodString;
|
|
95
|
+
members: z.ZodArray<z.ZodObject<{
|
|
96
|
+
memberId: z.ZodTemplateLiteral<`member_${string}`>;
|
|
97
|
+
userId: z.ZodTemplateLiteral<`user_${string}`>;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
kind: z.ZodEnum<{
|
|
100
|
+
machine: "machine";
|
|
101
|
+
human: "human";
|
|
102
|
+
}>;
|
|
103
|
+
email: z.ZodNullable<z.ZodString>;
|
|
104
|
+
machineKind: z.ZodNullable<z.ZodEnum<{
|
|
105
|
+
operator: "operator";
|
|
106
|
+
external: "external";
|
|
107
|
+
}>>;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
110
|
+
roleId: z.ZodTemplateLiteral<`role_${string}`>;
|
|
111
|
+
name: z.ZodString;
|
|
112
|
+
description: z.ZodString;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
archivedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
115
|
+
createdAt: z.ZodISODateTime;
|
|
116
|
+
updatedAt: z.ZodISODateTime;
|
|
117
|
+
}, z.core.$strip>>;
|
|
118
|
+
nextCursor: z.ZodNullable<z.ZodTemplateLiteral<`team_${string}`>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
120
|
+
export type TeamList = z.infer<typeof TeamList>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { idSchema } from "../ids/ids.js";
|
|
3
|
+
import { Flag, Limit } from "../list-input.js";
|
|
4
|
+
import { RoleId } from "../roles/roles.js";
|
|
5
|
+
// ⚠️ Not imported from `users.ts`: that module imports the invitations, which import this one.
|
|
6
|
+
const UserId = idSchema("user");
|
|
7
|
+
// Teams (Einstellungen › Teams, #1121, E243): a named group of people and Operators that carries
|
|
8
|
+
// roles and can be given a node. The inputs of the `access_team_*` and `access_team_member_*` tools
|
|
9
|
+
// and their answers.
|
|
10
|
+
export const TeamId = idSchema("team").describe("The team's id, `team_…`, as access_team_list names it.");
|
|
11
|
+
// "Gesamte Firma" (#1121, E243): every installation has it once, made by access's migration 0020
|
|
12
|
+
// with every person, and every person who joins later becomes a member (`personCreated`). Otherwise
|
|
13
|
+
// a normal team: renamed, archived and left like any other. ⚠️ The migration writes this id as text.
|
|
14
|
+
export const companyTeamId = "team_01K0000000000000000000FRM1";
|
|
15
|
+
export const MemberId = idSchema("member").describe("The membership's id, `member_…`, as access_team_list names it under members.");
|
|
16
|
+
const TeamName = z.string().trim().min(1).max(64);
|
|
17
|
+
// The whole set of a team's roles, like `roleIds` of access_user_update: what is missing is taken
|
|
18
|
+
// away, an empty list takes every role.
|
|
19
|
+
const TeamRoleIds = z.array(RoleId).max(50);
|
|
20
|
+
export const TeamListInput = z.strictObject({
|
|
21
|
+
// The archive instead of the teams in use.
|
|
22
|
+
archived: Flag.optional(),
|
|
23
|
+
userId: UserId.optional().describe("Only the teams this person or machine is a member of."),
|
|
24
|
+
query: z
|
|
25
|
+
.string()
|
|
26
|
+
.trim()
|
|
27
|
+
.min(1)
|
|
28
|
+
.max(100)
|
|
29
|
+
.optional()
|
|
30
|
+
.describe("Only the teams whose name contains this text."),
|
|
31
|
+
cursor: TeamId.optional(),
|
|
32
|
+
limit: Limit.optional(),
|
|
33
|
+
});
|
|
34
|
+
export const TeamCreateInput = z.strictObject({ name: TeamName });
|
|
35
|
+
export const TeamUpdateInput = z
|
|
36
|
+
.strictObject({
|
|
37
|
+
teamId: TeamId,
|
|
38
|
+
name: TeamName.optional(),
|
|
39
|
+
roleIds: TeamRoleIds.optional().describe("The whole set of the team's roles: what is missing is taken away. Every member holds them as if they were their own. admin goes to no team."),
|
|
40
|
+
})
|
|
41
|
+
.refine((input) => input.name !== undefined || input.roleIds !== undefined, {
|
|
42
|
+
message: "Name a field to change: name or roleIds.",
|
|
43
|
+
});
|
|
44
|
+
export const TeamArchiveInput = z.strictObject({ teamId: TeamId });
|
|
45
|
+
export const TeamRestoreInput = z.strictObject({ teamId: TeamId });
|
|
46
|
+
export const TeamMemberCreateInput = z.strictObject({
|
|
47
|
+
teamId: TeamId,
|
|
48
|
+
userId: UserId.describe("The person or machine to add, `user_…`. A personal Operator is never a member: it holds its person's teams already."),
|
|
49
|
+
});
|
|
50
|
+
export const TeamMemberRemoveInput = z.strictObject({ teamId: TeamId, memberId: MemberId });
|
|
51
|
+
// A member as the team shows it: a person with their address, a machine with its kind.
|
|
52
|
+
export const TeamMember = z.object({
|
|
53
|
+
memberId: MemberId,
|
|
54
|
+
userId: UserId,
|
|
55
|
+
name: z.string(),
|
|
56
|
+
kind: z.enum(["human", "machine"]),
|
|
57
|
+
email: z.string().nullable(),
|
|
58
|
+
machineKind: z.enum(["operator", "external"]).nullable(),
|
|
59
|
+
});
|
|
60
|
+
export const TeamRole = z.object({ roleId: RoleId, name: z.string(), description: z.string() });
|
|
61
|
+
export const Team = z.object({
|
|
62
|
+
teamId: TeamId,
|
|
63
|
+
name: z.string(),
|
|
64
|
+
members: z.array(TeamMember),
|
|
65
|
+
roles: z.array(TeamRole),
|
|
66
|
+
archivedAt: z.iso.datetime().nullable(),
|
|
67
|
+
createdAt: z.iso.datetime(),
|
|
68
|
+
updatedAt: z.iso.datetime(),
|
|
69
|
+
});
|
|
70
|
+
export const TeamList = z.object({ items: z.array(Team), nextCursor: TeamId.nullable() });
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const typeKinds: readonly ["object", "relation", "action", "actor"];
|
|
3
|
+
export declare const TypeKind: z.ZodEnum<{
|
|
4
|
+
object: "object";
|
|
5
|
+
action: "action";
|
|
6
|
+
relation: "relation";
|
|
7
|
+
actor: "actor";
|
|
8
|
+
}>;
|
|
9
|
+
export type TypeKind = z.infer<typeof TypeKind>;
|
|
10
|
+
export declare const typeStatuses: readonly ["experimental", "active", "deprecated"];
|
|
11
|
+
export declare const TypeStatus: z.ZodEnum<{
|
|
12
|
+
active: "active";
|
|
13
|
+
experimental: "experimental";
|
|
14
|
+
deprecated: "deprecated";
|
|
15
|
+
}>;
|
|
16
|
+
export type TypeStatus = z.infer<typeof TypeStatus>;
|
|
17
|
+
export declare const cardinalities: readonly ["one", "optional", "many"];
|
|
18
|
+
export declare const Cardinality: z.ZodEnum<{
|
|
19
|
+
optional: "optional";
|
|
20
|
+
one: "one";
|
|
21
|
+
many: "many";
|
|
22
|
+
}>;
|
|
23
|
+
export type Cardinality = z.infer<typeof Cardinality>;
|
|
24
|
+
export declare const baseObjectTypes: readonly ["document", "file", "table", "board", "task", "gadget", "skill", "goal", "source"];
|
|
25
|
+
export declare const baseActorTypes: readonly ["person", "machine", "system"];
|
|
26
|
+
export declare const baseActionTypes: readonly ["create", "update", "archive"];
|
|
27
|
+
export declare const TypeId: z.ZodTemplateLiteral<`type_${string}`>;
|
|
28
|
+
export type TypeId = z.infer<typeof TypeId>;
|
|
29
|
+
export declare const TypeRef: z.ZodString;
|
|
30
|
+
export type TypeRef = z.infer<typeof TypeRef>;
|
|
31
|
+
export declare const baseRef: (word: string) => TypeRef;
|
|
32
|
+
export declare const OntologyType: z.ZodObject<{
|
|
33
|
+
typeId: z.ZodString;
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
object: "object";
|
|
36
|
+
action: "action";
|
|
37
|
+
relation: "relation";
|
|
38
|
+
actor: "actor";
|
|
39
|
+
}>;
|
|
40
|
+
base: z.ZodBoolean;
|
|
41
|
+
name: z.ZodString;
|
|
42
|
+
description: z.ZodString;
|
|
43
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
44
|
+
active: "active";
|
|
45
|
+
experimental: "experimental";
|
|
46
|
+
deprecated: "deprecated";
|
|
47
|
+
}>>;
|
|
48
|
+
sourceNodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
49
|
+
from: z.ZodNullable<z.ZodString>;
|
|
50
|
+
to: z.ZodNullable<z.ZodString>;
|
|
51
|
+
cardinality: z.ZodNullable<z.ZodEnum<{
|
|
52
|
+
optional: "optional";
|
|
53
|
+
one: "one";
|
|
54
|
+
many: "many";
|
|
55
|
+
}>>;
|
|
56
|
+
arisesFrom: z.ZodNullable<z.ZodString>;
|
|
57
|
+
on: z.ZodNullable<z.ZodString>;
|
|
58
|
+
implementedBy: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
59
|
+
approval: z.ZodBoolean;
|
|
60
|
+
rev: z.ZodNullable<z.ZodInt>;
|
|
61
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
export type OntologyType = z.infer<typeof OntologyType>;
|
|
64
|
+
export declare const TypeListInput: z.ZodObject<{
|
|
65
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
66
|
+
object: "object";
|
|
67
|
+
action: "action";
|
|
68
|
+
relation: "relation";
|
|
69
|
+
actor: "actor";
|
|
70
|
+
}>>;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export type TypeListInput = z.infer<typeof TypeListInput>;
|
|
73
|
+
export declare const TypeList: z.ZodObject<{
|
|
74
|
+
items: z.ZodArray<z.ZodObject<{
|
|
75
|
+
typeId: z.ZodString;
|
|
76
|
+
kind: z.ZodEnum<{
|
|
77
|
+
object: "object";
|
|
78
|
+
action: "action";
|
|
79
|
+
relation: "relation";
|
|
80
|
+
actor: "actor";
|
|
81
|
+
}>;
|
|
82
|
+
base: z.ZodBoolean;
|
|
83
|
+
name: z.ZodString;
|
|
84
|
+
description: z.ZodString;
|
|
85
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
86
|
+
active: "active";
|
|
87
|
+
experimental: "experimental";
|
|
88
|
+
deprecated: "deprecated";
|
|
89
|
+
}>>;
|
|
90
|
+
sourceNodeId: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
91
|
+
from: z.ZodNullable<z.ZodString>;
|
|
92
|
+
to: z.ZodNullable<z.ZodString>;
|
|
93
|
+
cardinality: z.ZodNullable<z.ZodEnum<{
|
|
94
|
+
optional: "optional";
|
|
95
|
+
one: "one";
|
|
96
|
+
many: "many";
|
|
97
|
+
}>>;
|
|
98
|
+
arisesFrom: z.ZodNullable<z.ZodString>;
|
|
99
|
+
on: z.ZodNullable<z.ZodString>;
|
|
100
|
+
implementedBy: z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
101
|
+
approval: z.ZodBoolean;
|
|
102
|
+
rev: z.ZodNullable<z.ZodInt>;
|
|
103
|
+
updatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
104
|
+
}, z.core.$strip>>;
|
|
105
|
+
nextCursor: z.ZodNull;
|
|
106
|
+
}, z.core.$strip>;
|
|
107
|
+
export type TypeList = z.infer<typeof TypeList>;
|
|
108
|
+
export declare const TypeCreateInput: z.ZodObject<{
|
|
109
|
+
kind: z.ZodEnum<{
|
|
110
|
+
object: "object";
|
|
111
|
+
action: "action";
|
|
112
|
+
relation: "relation";
|
|
113
|
+
actor: "actor";
|
|
114
|
+
}>;
|
|
115
|
+
name: z.ZodString;
|
|
116
|
+
description: z.ZodOptional<z.ZodString>;
|
|
117
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
118
|
+
active: "active";
|
|
119
|
+
experimental: "experimental";
|
|
120
|
+
deprecated: "deprecated";
|
|
121
|
+
}>>;
|
|
122
|
+
sourceNodeId: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
123
|
+
from: z.ZodOptional<z.ZodString>;
|
|
124
|
+
to: z.ZodOptional<z.ZodString>;
|
|
125
|
+
cardinality: z.ZodOptional<z.ZodEnum<{
|
|
126
|
+
optional: "optional";
|
|
127
|
+
one: "one";
|
|
128
|
+
many: "many";
|
|
129
|
+
}>>;
|
|
130
|
+
on: z.ZodOptional<z.ZodString>;
|
|
131
|
+
implementedBy: z.ZodOptional<z.ZodTemplateLiteral<`node_${string}`>>;
|
|
132
|
+
approval: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
idempotencyKey: z.ZodString;
|
|
134
|
+
}, z.core.$strict>;
|
|
135
|
+
export type TypeCreateInput = z.infer<typeof TypeCreateInput>;
|
|
136
|
+
export declare const TypeUpdateInput: z.ZodObject<{
|
|
137
|
+
typeId: z.ZodTemplateLiteral<`type_${string}`>;
|
|
138
|
+
rev: z.ZodNumber;
|
|
139
|
+
name: z.ZodOptional<z.ZodString>;
|
|
140
|
+
description: z.ZodOptional<z.ZodString>;
|
|
141
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
142
|
+
active: "active";
|
|
143
|
+
experimental: "experimental";
|
|
144
|
+
deprecated: "deprecated";
|
|
145
|
+
}>>>;
|
|
146
|
+
sourceNodeId: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
147
|
+
from: z.ZodOptional<z.ZodString>;
|
|
148
|
+
to: z.ZodOptional<z.ZodString>;
|
|
149
|
+
cardinality: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
150
|
+
optional: "optional";
|
|
151
|
+
one: "one";
|
|
152
|
+
many: "many";
|
|
153
|
+
}>>>;
|
|
154
|
+
on: z.ZodOptional<z.ZodString>;
|
|
155
|
+
implementedBy: z.ZodOptional<z.ZodNullable<z.ZodTemplateLiteral<`node_${string}`>>>;
|
|
156
|
+
approval: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
}, z.core.$strict>;
|
|
158
|
+
export type TypeUpdateInput = z.infer<typeof TypeUpdateInput>;
|
|
159
|
+
export declare const TypeArchiveInput: z.ZodObject<{
|
|
160
|
+
typeId: z.ZodTemplateLiteral<`type_${string}`>;
|
|
161
|
+
}, z.core.$strict>;
|
|
162
|
+
export type TypeArchiveInput = z.infer<typeof TypeArchiveInput>;
|
|
163
|
+
export declare const TypeRestoreInput: z.ZodObject<{
|
|
164
|
+
typeId: z.ZodTemplateLiteral<`type_${string}`>;
|
|
165
|
+
}, z.core.$strict>;
|
|
166
|
+
export type TypeRestoreInput = z.infer<typeof TypeRestoreInput>;
|