@synap-core/api-types 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated.d.ts +375 -29
- package/package.json +1 -1
- package/src/generated.d.ts +375 -29
package/dist/generated.d.ts
CHANGED
|
@@ -56,6 +56,21 @@ export interface Context {
|
|
|
56
56
|
socketIO?: any;
|
|
57
57
|
workspaceId?: string | null;
|
|
58
58
|
workspaceRole?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Request source — "intelligence" when the request comes from the Intelligence Hub
|
|
61
|
+
* via API key auth. Set automatically by api-key-auth middleware; never set by humans.
|
|
62
|
+
*/
|
|
63
|
+
source?: string | null;
|
|
64
|
+
/**
|
|
65
|
+
* Hard flag — true only when authenticated via a hub-protocol scoped API key.
|
|
66
|
+
* Cannot be spoofed by a human JWT session.
|
|
67
|
+
*/
|
|
68
|
+
isHubProtocol?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The message ID that triggered this hub-protocol request.
|
|
71
|
+
* When set, proposals created during this request are linked to this message.
|
|
72
|
+
*/
|
|
73
|
+
sourceMessageId?: string | null;
|
|
59
74
|
}
|
|
60
75
|
/**
|
|
61
76
|
* Users Table - Cache for Kratos Identity Data
|
|
@@ -95,7 +110,8 @@ declare enum ChannelType {
|
|
|
95
110
|
DOCUMENT_REVIEW = "document_review",
|
|
96
111
|
VIEW_DISCUSSION = "view_discussion",
|
|
97
112
|
DIRECT = "direct",
|
|
98
|
-
EXTERNAL_IMPORT = "external_import"
|
|
113
|
+
EXTERNAL_IMPORT = "external_import",
|
|
114
|
+
A2AI = "a2ai"
|
|
99
115
|
}
|
|
100
116
|
declare enum ChannelStatus {
|
|
101
117
|
ACTIVE = "active",
|
|
@@ -210,7 +226,8 @@ declare const channels: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
210
226
|
ChannelType.DOCUMENT_REVIEW,
|
|
211
227
|
ChannelType.VIEW_DISCUSSION,
|
|
212
228
|
ChannelType.DIRECT,
|
|
213
|
-
ChannelType.EXTERNAL_IMPORT
|
|
229
|
+
ChannelType.EXTERNAL_IMPORT,
|
|
230
|
+
ChannelType.A2AI
|
|
214
231
|
];
|
|
215
232
|
baseColumn: never;
|
|
216
233
|
identity: undefined;
|
|
@@ -569,11 +586,31 @@ export interface WorkspaceLayoutConfig {
|
|
|
569
586
|
defaultView?: string;
|
|
570
587
|
theme?: string;
|
|
571
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* MCP server configuration — stored per workspace.
|
|
591
|
+
* Agents in this workspace will have access to tools from these servers.
|
|
592
|
+
*/
|
|
593
|
+
export interface McpServerConfig {
|
|
594
|
+
/** Unique slug within the workspace, e.g. "playwright", "whatsapp" */
|
|
595
|
+
id: string;
|
|
596
|
+
/** Human-readable name shown in UI */
|
|
597
|
+
name: string;
|
|
598
|
+
/** Transport mechanism */
|
|
599
|
+
transport: "stdio" | "http";
|
|
600
|
+
command?: string;
|
|
601
|
+
args?: string[];
|
|
602
|
+
url?: string;
|
|
603
|
+
env?: Record<string, string>;
|
|
604
|
+
/** Set to false to disable without removing config. Default: true. */
|
|
605
|
+
enabled?: boolean;
|
|
606
|
+
}
|
|
572
607
|
export interface WorkspaceSettings {
|
|
573
608
|
defaultEntityTypes?: string[];
|
|
574
609
|
theme?: string;
|
|
575
610
|
aiEnabled?: boolean;
|
|
576
611
|
allowExternalSharing?: boolean;
|
|
612
|
+
/** External MCP servers whose tools will be available to AI agents in this workspace */
|
|
613
|
+
mcpServers?: McpServerConfig[];
|
|
577
614
|
layout?: WorkspaceLayoutConfig;
|
|
578
615
|
mainWhiteboardId?: string;
|
|
579
616
|
intelligenceServiceId?: string;
|
|
@@ -611,8 +648,23 @@ export interface WorkspaceSettings {
|
|
|
611
648
|
/** Current provisioning status */
|
|
612
649
|
provisioningStatus?: "pending" | "active" | "failed";
|
|
613
650
|
aiGovernance?: {
|
|
614
|
-
|
|
651
|
+
/**
|
|
652
|
+
* Whitelist of event keys that AI agents may execute WITHOUT a proposal.
|
|
653
|
+
* Everything else defaults to proposal-required.
|
|
654
|
+
*
|
|
655
|
+
* Format: "<subjectType>.<action>" or "<subjectType>.*" glob.
|
|
656
|
+
* Default (when field absent): ["search.*", "memory.recall", "entity.read", "document.read"]
|
|
657
|
+
*
|
|
658
|
+
* Examples:
|
|
659
|
+
* "entity.read" — agents can read entities without proposal
|
|
660
|
+
* "search.*" — all search operations bypass proposal
|
|
661
|
+
* "entity.create" — agents can create entities without proposal (high trust)
|
|
662
|
+
*/
|
|
663
|
+
autoApproveFor?: string[];
|
|
664
|
+
/** @deprecated Use autoApproveFor instead. Kept for migration reference only. */
|
|
615
665
|
requireReviewFor?: string[];
|
|
666
|
+
/** @deprecated Use autoApproveFor instead. */
|
|
667
|
+
autoApprove?: boolean;
|
|
616
668
|
maxAgentsPerUser?: number;
|
|
617
669
|
allowAgentCreation?: boolean;
|
|
618
670
|
/** Who can approve AI proposals. Default: "owner_and_admins" */
|
|
@@ -622,7 +674,9 @@ export interface WorkspaceSettings {
|
|
|
622
674
|
declare enum ProposalStatus {
|
|
623
675
|
PENDING = "pending",
|
|
624
676
|
APPROVED = "approved",
|
|
625
|
-
REJECTED = "rejected"
|
|
677
|
+
REJECTED = "rejected",
|
|
678
|
+
/** Action was on the autoApproveFor whitelist — executed immediately, audited here for traceability. */
|
|
679
|
+
AUTO_APPROVED = "auto_approved"
|
|
626
680
|
}
|
|
627
681
|
declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
628
682
|
name: "message_links";
|
|
@@ -995,8 +1049,9 @@ declare const propertyDefs: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
995
1049
|
}>;
|
|
996
1050
|
export type PropertyDef = typeof propertyDefs.$inferSelect;
|
|
997
1051
|
declare enum ProfileScope {
|
|
998
|
-
SYSTEM = "system",// Available to all users
|
|
999
|
-
|
|
1052
|
+
SYSTEM = "system",// Available to all users (pod-wide)
|
|
1053
|
+
SHARED = "shared",// Explicitly shared with specific workspaces via profile_workspace_access
|
|
1054
|
+
WORKSPACE = "workspace",// Owned by a single workspace
|
|
1000
1055
|
USER = "user"
|
|
1001
1056
|
}
|
|
1002
1057
|
/**
|
|
@@ -1109,7 +1164,9 @@ declare enum AgentType {
|
|
|
1109
1164
|
KNOWLEDGE_SEARCH = "knowledge-search",
|
|
1110
1165
|
CODE = "code",
|
|
1111
1166
|
WRITING = "writing",
|
|
1112
|
-
ACTION = "action"
|
|
1167
|
+
ACTION = "action",
|
|
1168
|
+
ONBOARDING = "onboarding",
|
|
1169
|
+
WORKSPACE_CREATION = "workspace-creation"
|
|
1113
1170
|
}
|
|
1114
1171
|
/**
|
|
1115
1172
|
* Agent type as string literal union (for flexibility)
|
|
@@ -1200,6 +1257,11 @@ export type BranchNodeResult = {
|
|
|
1200
1257
|
lastActivity: Date;
|
|
1201
1258
|
depth: number;
|
|
1202
1259
|
};
|
|
1260
|
+
/** Recursive node returned by getBranchTree — mirrors the frontend BranchNode shape */
|
|
1261
|
+
export type BranchTreeNode = {
|
|
1262
|
+
channel: Channel;
|
|
1263
|
+
children: BranchTreeNode[];
|
|
1264
|
+
};
|
|
1203
1265
|
/**
|
|
1204
1266
|
* @synap/events - Schema-Driven Event Generator
|
|
1205
1267
|
*
|
|
@@ -1392,7 +1454,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1392
1454
|
documentId?: string | undefined;
|
|
1393
1455
|
content?: string | undefined;
|
|
1394
1456
|
global?: boolean | undefined;
|
|
1395
|
-
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
1457
|
+
source?: "user" | "system" | "intelligence" | "ai" | "agent" | undefined;
|
|
1396
1458
|
reasoning?: string | undefined;
|
|
1397
1459
|
agentUserId?: string | undefined;
|
|
1398
1460
|
};
|
|
@@ -1489,6 +1551,48 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1489
1551
|
};
|
|
1490
1552
|
meta: object;
|
|
1491
1553
|
}>;
|
|
1554
|
+
listMulti: import("@trpc/server").TRPCQueryProcedure<{
|
|
1555
|
+
input: {
|
|
1556
|
+
workspaceIds?: string[] | undefined;
|
|
1557
|
+
profileSlug?: string | undefined;
|
|
1558
|
+
includeGlobal?: boolean | undefined;
|
|
1559
|
+
limit?: number | undefined;
|
|
1560
|
+
};
|
|
1561
|
+
output: {
|
|
1562
|
+
entities: {
|
|
1563
|
+
id: string;
|
|
1564
|
+
userId: string;
|
|
1565
|
+
workspaceId: string | null;
|
|
1566
|
+
type: string;
|
|
1567
|
+
profileId: string | null;
|
|
1568
|
+
title: string | null;
|
|
1569
|
+
preview: string | null;
|
|
1570
|
+
documentId: string | null;
|
|
1571
|
+
properties: Record<string, unknown>;
|
|
1572
|
+
fileUrl: string | null;
|
|
1573
|
+
filePath: string | null;
|
|
1574
|
+
fileSize: number | null;
|
|
1575
|
+
fileType: string | null;
|
|
1576
|
+
checksum: string | null;
|
|
1577
|
+
version: number;
|
|
1578
|
+
createdAt: Date;
|
|
1579
|
+
updatedAt: Date;
|
|
1580
|
+
deletedAt: Date | null;
|
|
1581
|
+
}[];
|
|
1582
|
+
};
|
|
1583
|
+
meta: object;
|
|
1584
|
+
}>;
|
|
1585
|
+
listSavedUrls: import("@trpc/server").TRPCQueryProcedure<{
|
|
1586
|
+
input: void;
|
|
1587
|
+
output: {
|
|
1588
|
+
id: string;
|
|
1589
|
+
url: string;
|
|
1590
|
+
title: string;
|
|
1591
|
+
profileSlug: string;
|
|
1592
|
+
createdAt: string;
|
|
1593
|
+
}[];
|
|
1594
|
+
meta: object;
|
|
1595
|
+
}>;
|
|
1492
1596
|
search: import("@trpc/server").TRPCQueryProcedure<{
|
|
1493
1597
|
input: {
|
|
1494
1598
|
query: string;
|
|
@@ -1547,7 +1651,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1547
1651
|
description?: string | undefined;
|
|
1548
1652
|
documentId?: string | null | undefined;
|
|
1549
1653
|
properties?: Record<string, unknown> | undefined;
|
|
1550
|
-
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
1654
|
+
source?: "user" | "system" | "intelligence" | "ai" | "agent" | undefined;
|
|
1551
1655
|
reasoning?: string | undefined;
|
|
1552
1656
|
agentUserId?: string | undefined;
|
|
1553
1657
|
};
|
|
@@ -1565,7 +1669,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1565
1669
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
1566
1670
|
input: {
|
|
1567
1671
|
id: string;
|
|
1568
|
-
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
1672
|
+
source?: "user" | "system" | "intelligence" | "ai" | "agent" | undefined;
|
|
1569
1673
|
reasoning?: string | undefined;
|
|
1570
1674
|
agentUserId?: string | undefined;
|
|
1571
1675
|
};
|
|
@@ -1580,6 +1684,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1580
1684
|
};
|
|
1581
1685
|
meta: object;
|
|
1582
1686
|
}>;
|
|
1687
|
+
setEntityViewMode: import("@trpc/server").TRPCMutationProcedure<{
|
|
1688
|
+
input: {
|
|
1689
|
+
entityId: string;
|
|
1690
|
+
mode: "document" | "bento";
|
|
1691
|
+
};
|
|
1692
|
+
output: {
|
|
1693
|
+
status: string;
|
|
1694
|
+
viewMode: "document" | "bento";
|
|
1695
|
+
bentoViewId: string | null;
|
|
1696
|
+
};
|
|
1697
|
+
meta: object;
|
|
1698
|
+
}>;
|
|
1583
1699
|
}>>;
|
|
1584
1700
|
chat: import("@trpc/server").TRPCBuiltRouter<{
|
|
1585
1701
|
ctx: Context;
|
|
@@ -1631,6 +1747,38 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1631
1747
|
};
|
|
1632
1748
|
meta: object;
|
|
1633
1749
|
}>;
|
|
1750
|
+
createExternalChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1751
|
+
input: {
|
|
1752
|
+
externalSource: string;
|
|
1753
|
+
externalChannelId: string;
|
|
1754
|
+
title: string;
|
|
1755
|
+
externalParticipants?: string[] | undefined;
|
|
1756
|
+
initialMessage?: string | undefined;
|
|
1757
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1758
|
+
};
|
|
1759
|
+
output: {
|
|
1760
|
+
channelId: string;
|
|
1761
|
+
status: "exists";
|
|
1762
|
+
} | {
|
|
1763
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1764
|
+
status: "created";
|
|
1765
|
+
};
|
|
1766
|
+
meta: object;
|
|
1767
|
+
}>;
|
|
1768
|
+
createA2AIChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1769
|
+
input: {
|
|
1770
|
+
topic: string;
|
|
1771
|
+
visibility?: "open" | "closed" | undefined;
|
|
1772
|
+
participants?: string[] | undefined;
|
|
1773
|
+
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | undefined;
|
|
1774
|
+
title?: string | undefined;
|
|
1775
|
+
};
|
|
1776
|
+
output: {
|
|
1777
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1778
|
+
status: "created";
|
|
1779
|
+
};
|
|
1780
|
+
meta: object;
|
|
1781
|
+
}>;
|
|
1634
1782
|
createDocumentComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
1635
1783
|
input: {
|
|
1636
1784
|
documentId: string;
|
|
@@ -1663,6 +1811,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1663
1811
|
threadId?: string | undefined;
|
|
1664
1812
|
workspaceId?: string | undefined;
|
|
1665
1813
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
1814
|
+
agentHandle?: string | undefined;
|
|
1815
|
+
parentChannelId?: string | undefined;
|
|
1666
1816
|
};
|
|
1667
1817
|
output: {
|
|
1668
1818
|
threadId: string;
|
|
@@ -1721,7 +1871,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1721
1871
|
}[];
|
|
1722
1872
|
executionSummaries: {
|
|
1723
1873
|
tool: string;
|
|
1724
|
-
status: "error" | "
|
|
1874
|
+
status: "error" | "success" | "skipped";
|
|
1725
1875
|
result?: unknown;
|
|
1726
1876
|
error?: string | undefined;
|
|
1727
1877
|
}[];
|
|
@@ -1784,6 +1934,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1784
1934
|
workspaceId?: string | undefined;
|
|
1785
1935
|
threadType?: "main" | "branch" | "ai_thread" | undefined;
|
|
1786
1936
|
limit?: number | undefined;
|
|
1937
|
+
contextObjectId?: string | undefined;
|
|
1938
|
+
contextObjectType?: "entity" | "view" | "document" | undefined;
|
|
1787
1939
|
};
|
|
1788
1940
|
output: {
|
|
1789
1941
|
threads: {
|
|
@@ -1904,10 +2056,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1904
2056
|
contextItems: {
|
|
1905
2057
|
workspaceId: string;
|
|
1906
2058
|
userId: string;
|
|
2059
|
+
sourceMessageId: string | null;
|
|
1907
2060
|
id: string;
|
|
1908
2061
|
createdAt: Date;
|
|
1909
2062
|
channelId: string;
|
|
1910
|
-
sourceMessageId: string | null;
|
|
1911
2063
|
objectType: ChannelContextObjectType;
|
|
1912
2064
|
objectId: string;
|
|
1913
2065
|
relationshipType: ChannelContextRelationshipType;
|
|
@@ -1946,10 +2098,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1946
2098
|
rootThreadId: string;
|
|
1947
2099
|
};
|
|
1948
2100
|
output: {
|
|
1949
|
-
tree:
|
|
1950
|
-
channel: Channel;
|
|
1951
|
-
children: any[];
|
|
1952
|
-
} | null;
|
|
2101
|
+
tree: BranchTreeNode | null;
|
|
1953
2102
|
flatBranches: {
|
|
1954
2103
|
workspaceId: string | null;
|
|
1955
2104
|
userId: string;
|
|
@@ -2032,10 +2181,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2032
2181
|
items: {
|
|
2033
2182
|
workspaceId: string;
|
|
2034
2183
|
userId: string;
|
|
2184
|
+
sourceMessageId: string | null;
|
|
2035
2185
|
id: string;
|
|
2036
2186
|
createdAt: Date;
|
|
2037
2187
|
channelId: string;
|
|
2038
|
-
sourceMessageId: string | null;
|
|
2039
2188
|
objectType: ChannelContextObjectType;
|
|
2040
2189
|
objectId: string;
|
|
2041
2190
|
relationshipType: ChannelContextRelationshipType;
|
|
@@ -2044,10 +2193,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2044
2193
|
entities: {
|
|
2045
2194
|
workspaceId: string;
|
|
2046
2195
|
userId: string;
|
|
2196
|
+
sourceMessageId: string | null;
|
|
2047
2197
|
id: string;
|
|
2048
2198
|
createdAt: Date;
|
|
2049
2199
|
channelId: string;
|
|
2050
|
-
sourceMessageId: string | null;
|
|
2051
2200
|
objectType: ChannelContextObjectType;
|
|
2052
2201
|
objectId: string;
|
|
2053
2202
|
relationshipType: ChannelContextRelationshipType;
|
|
@@ -2056,10 +2205,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2056
2205
|
documents: {
|
|
2057
2206
|
workspaceId: string;
|
|
2058
2207
|
userId: string;
|
|
2208
|
+
sourceMessageId: string | null;
|
|
2059
2209
|
id: string;
|
|
2060
2210
|
createdAt: Date;
|
|
2061
2211
|
channelId: string;
|
|
2062
|
-
sourceMessageId: string | null;
|
|
2063
2212
|
objectType: ChannelContextObjectType;
|
|
2064
2213
|
objectId: string;
|
|
2065
2214
|
relationshipType: ChannelContextRelationshipType;
|
|
@@ -2087,18 +2236,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2087
2236
|
output: {
|
|
2088
2237
|
proposals: {
|
|
2089
2238
|
workspaceId: string;
|
|
2239
|
+
sourceMessageId: string | null;
|
|
2090
2240
|
id: string;
|
|
2091
2241
|
data: unknown;
|
|
2092
2242
|
updatedAt: Date;
|
|
2093
2243
|
createdAt: Date;
|
|
2094
|
-
sourceMessageId: string | null;
|
|
2095
2244
|
status: ProposalStatus;
|
|
2245
|
+
expiresAt: Date | null;
|
|
2096
2246
|
createdBy: string | null;
|
|
2097
2247
|
threadId: string | null;
|
|
2098
2248
|
targetType: string;
|
|
2099
2249
|
targetId: string;
|
|
2100
2250
|
proposalType: string;
|
|
2101
2251
|
commandRunId: string | null;
|
|
2252
|
+
agentUserId: string | null;
|
|
2102
2253
|
reviewedBy: string | null;
|
|
2103
2254
|
reviewedAt: Date | null;
|
|
2104
2255
|
rejectionReason: string | null;
|
|
@@ -2474,7 +2625,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2474
2625
|
}>;
|
|
2475
2626
|
listUsers: import("@trpc/server").TRPCQueryProcedure<{
|
|
2476
2627
|
input: {
|
|
2477
|
-
type?: "
|
|
2628
|
+
type?: "agent" | "all" | "human" | undefined;
|
|
2478
2629
|
limit?: number | undefined;
|
|
2479
2630
|
offset?: number | undefined;
|
|
2480
2631
|
};
|
|
@@ -2890,7 +3041,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2890
3041
|
lastSavedVersion: number;
|
|
2891
3042
|
workingState: string | null;
|
|
2892
3043
|
workingStateUpdatedAt: Date | null;
|
|
2893
|
-
entityId: string | null;
|
|
2894
3044
|
metadata: unknown;
|
|
2895
3045
|
createdAt: Date;
|
|
2896
3046
|
updatedAt: Date;
|
|
@@ -3028,7 +3178,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3028
3178
|
lastSavedVersion: number;
|
|
3029
3179
|
workingState: string | null;
|
|
3030
3180
|
workingStateUpdatedAt: Date | null;
|
|
3031
|
-
entityId: string | null;
|
|
3032
3181
|
metadata: unknown;
|
|
3033
3182
|
createdAt: Date;
|
|
3034
3183
|
updatedAt: Date;
|
|
@@ -3314,10 +3463,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3314
3463
|
capabilities: string[];
|
|
3315
3464
|
serviceId: string;
|
|
3316
3465
|
webhookUrl: string;
|
|
3466
|
+
mcpEndpoint: string | null;
|
|
3317
3467
|
apiKey: string;
|
|
3318
3468
|
pricing: string | null;
|
|
3319
3469
|
enabled: boolean;
|
|
3470
|
+
mcpApproved: boolean;
|
|
3320
3471
|
lastHealthCheck: Date | null;
|
|
3472
|
+
lastHealthStatus: string | null;
|
|
3321
3473
|
};
|
|
3322
3474
|
meta: object;
|
|
3323
3475
|
}>;
|
|
@@ -3357,9 +3509,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3357
3509
|
capabilities: string[];
|
|
3358
3510
|
serviceId: string;
|
|
3359
3511
|
webhookUrl: string;
|
|
3512
|
+
mcpEndpoint: string | null;
|
|
3360
3513
|
pricing: string | null;
|
|
3361
3514
|
enabled: boolean;
|
|
3515
|
+
mcpApproved: boolean;
|
|
3362
3516
|
lastHealthCheck: Date | null;
|
|
3517
|
+
lastHealthStatus: string | null;
|
|
3363
3518
|
};
|
|
3364
3519
|
meta: object;
|
|
3365
3520
|
}>;
|
|
@@ -3382,15 +3537,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3382
3537
|
description: string | null;
|
|
3383
3538
|
version: string | null;
|
|
3384
3539
|
webhookUrl: string;
|
|
3540
|
+
mcpEndpoint: string | null;
|
|
3385
3541
|
apiKey: string;
|
|
3386
3542
|
capabilities: string[];
|
|
3387
3543
|
pricing: string | null;
|
|
3388
3544
|
status: string;
|
|
3389
3545
|
enabled: boolean;
|
|
3546
|
+
mcpApproved: boolean;
|
|
3390
3547
|
metadata: Record<string, unknown> | null;
|
|
3391
3548
|
createdAt: Date;
|
|
3392
3549
|
updatedAt: Date;
|
|
3393
3550
|
lastHealthCheck: Date | null;
|
|
3551
|
+
lastHealthStatus: string | null;
|
|
3394
3552
|
};
|
|
3395
3553
|
meta: object;
|
|
3396
3554
|
}>;
|
|
@@ -3403,6 +3561,58 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3403
3561
|
};
|
|
3404
3562
|
meta: object;
|
|
3405
3563
|
}>;
|
|
3564
|
+
rotateKey: import("@trpc/server").TRPCMutationProcedure<{
|
|
3565
|
+
input: {
|
|
3566
|
+
id: string;
|
|
3567
|
+
newApiKey: string;
|
|
3568
|
+
};
|
|
3569
|
+
output: {
|
|
3570
|
+
success: boolean;
|
|
3571
|
+
serviceId: string;
|
|
3572
|
+
};
|
|
3573
|
+
meta: object;
|
|
3574
|
+
}>;
|
|
3575
|
+
connectToWorkspace: import("@trpc/server").TRPCMutationProcedure<{
|
|
3576
|
+
input: {
|
|
3577
|
+
serviceId: string;
|
|
3578
|
+
capability?: "chat" | "analysis" | undefined;
|
|
3579
|
+
};
|
|
3580
|
+
output: {
|
|
3581
|
+
success: boolean;
|
|
3582
|
+
workspaceId: string;
|
|
3583
|
+
serviceId: string;
|
|
3584
|
+
capability: string;
|
|
3585
|
+
};
|
|
3586
|
+
meta: object;
|
|
3587
|
+
}>;
|
|
3588
|
+
disconnectFromWorkspace: import("@trpc/server").TRPCMutationProcedure<{
|
|
3589
|
+
input: {
|
|
3590
|
+
capability?: "chat" | "analysis" | undefined;
|
|
3591
|
+
};
|
|
3592
|
+
output: {
|
|
3593
|
+
success: boolean;
|
|
3594
|
+
};
|
|
3595
|
+
meta: object;
|
|
3596
|
+
}>;
|
|
3597
|
+
approveMcp: import("@trpc/server").TRPCMutationProcedure<{
|
|
3598
|
+
input: {
|
|
3599
|
+
serviceId: string;
|
|
3600
|
+
};
|
|
3601
|
+
output: {
|
|
3602
|
+
success: boolean;
|
|
3603
|
+
serviceId: string;
|
|
3604
|
+
};
|
|
3605
|
+
meta: object;
|
|
3606
|
+
}>;
|
|
3607
|
+
revokeMcp: import("@trpc/server").TRPCMutationProcedure<{
|
|
3608
|
+
input: {
|
|
3609
|
+
serviceId: string;
|
|
3610
|
+
};
|
|
3611
|
+
output: {
|
|
3612
|
+
success: boolean;
|
|
3613
|
+
};
|
|
3614
|
+
meta: object;
|
|
3615
|
+
}>;
|
|
3406
3616
|
findByCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3407
3617
|
input: {
|
|
3408
3618
|
capability: string;
|
|
@@ -3416,6 +3626,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3416
3626
|
}[];
|
|
3417
3627
|
meta: object;
|
|
3418
3628
|
}>;
|
|
3629
|
+
getMcpStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
3630
|
+
input: {
|
|
3631
|
+
serviceId: string;
|
|
3632
|
+
};
|
|
3633
|
+
output: {
|
|
3634
|
+
mcpEndpoint: string | null;
|
|
3635
|
+
mcpApproved: boolean;
|
|
3636
|
+
};
|
|
3637
|
+
meta: object;
|
|
3638
|
+
}>;
|
|
3419
3639
|
}>>;
|
|
3420
3640
|
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
3421
3641
|
ctx: Context;
|
|
@@ -3844,10 +4064,41 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3844
4064
|
capabilities: string[];
|
|
3845
4065
|
pricing: string;
|
|
3846
4066
|
version: string | null;
|
|
4067
|
+
webhookUrl: string | null;
|
|
4068
|
+
lastHealthCheck: Date | null;
|
|
4069
|
+
lastHealthStatus: any;
|
|
3847
4070
|
}[];
|
|
3848
4071
|
};
|
|
3849
4072
|
meta: object;
|
|
3850
4073
|
}>;
|
|
4074
|
+
checkHealth: import("@trpc/server").TRPCMutationProcedure<{
|
|
4075
|
+
input: {
|
|
4076
|
+
serviceId: string;
|
|
4077
|
+
};
|
|
4078
|
+
output: {
|
|
4079
|
+
serviceId: string;
|
|
4080
|
+
isHealthy: boolean;
|
|
4081
|
+
checkedAt: Date;
|
|
4082
|
+
};
|
|
4083
|
+
meta: object;
|
|
4084
|
+
}>;
|
|
4085
|
+
serviceUsageStats: import("@trpc/server").TRPCQueryProcedure<{
|
|
4086
|
+
input: {
|
|
4087
|
+
workspaceId?: string | undefined;
|
|
4088
|
+
days?: number | undefined;
|
|
4089
|
+
};
|
|
4090
|
+
output: {
|
|
4091
|
+
stats: {
|
|
4092
|
+
serviceId: string;
|
|
4093
|
+
messageCount: number;
|
|
4094
|
+
totalTokens: number;
|
|
4095
|
+
avgLatencyMs: number;
|
|
4096
|
+
}[];
|
|
4097
|
+
since: string;
|
|
4098
|
+
days: number;
|
|
4099
|
+
};
|
|
4100
|
+
meta: object;
|
|
4101
|
+
}>;
|
|
3851
4102
|
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3852
4103
|
input: {
|
|
3853
4104
|
capability: string;
|
|
@@ -4584,6 +4835,32 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4584
4835
|
} | null;
|
|
4585
4836
|
meta: object;
|
|
4586
4837
|
}>;
|
|
4838
|
+
getMcpServers: import("@trpc/server").TRPCQueryProcedure<{
|
|
4839
|
+
input: {
|
|
4840
|
+
workspaceId: string;
|
|
4841
|
+
};
|
|
4842
|
+
output: McpServerConfig[];
|
|
4843
|
+
meta: object;
|
|
4844
|
+
}>;
|
|
4845
|
+
updateMcpServers: import("@trpc/server").TRPCMutationProcedure<{
|
|
4846
|
+
input: {
|
|
4847
|
+
workspaceId: string;
|
|
4848
|
+
servers: {
|
|
4849
|
+
id: string;
|
|
4850
|
+
name: string;
|
|
4851
|
+
transport: "stdio" | "http";
|
|
4852
|
+
command?: string | undefined;
|
|
4853
|
+
args?: string[] | undefined;
|
|
4854
|
+
url?: string | undefined;
|
|
4855
|
+
env?: Record<string, string> | undefined;
|
|
4856
|
+
enabled?: boolean | undefined;
|
|
4857
|
+
}[];
|
|
4858
|
+
};
|
|
4859
|
+
output: {
|
|
4860
|
+
count: number;
|
|
4861
|
+
};
|
|
4862
|
+
meta: object;
|
|
4863
|
+
}>;
|
|
4587
4864
|
}>>;
|
|
4588
4865
|
views: import("@trpc/server").TRPCBuiltRouter<{
|
|
4589
4866
|
ctx: Context;
|
|
@@ -4594,7 +4871,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4594
4871
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4595
4872
|
input: {
|
|
4596
4873
|
name: string;
|
|
4597
|
-
type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "timeline" | "grid" | "kanban" | "gallery" | "gantt" | "mindmap" | "flow"
|
|
4874
|
+
type: "calendar" | "list" | "bento" | "table" | "whiteboard" | "graph" | "timeline" | "grid" | "kanban" | "gallery" | "gantt" | "mindmap" | "flow";
|
|
4598
4875
|
workspaceId?: string | undefined;
|
|
4599
4876
|
description?: string | undefined;
|
|
4600
4877
|
scopeProfileIds?: string[] | undefined;
|
|
@@ -4617,7 +4894,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4617
4894
|
};
|
|
4618
4895
|
output: {
|
|
4619
4896
|
view: any;
|
|
4620
|
-
documentId:
|
|
4897
|
+
documentId: null;
|
|
4621
4898
|
status: string;
|
|
4622
4899
|
message: string;
|
|
4623
4900
|
proposalId: string;
|
|
@@ -4648,7 +4925,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4648
4925
|
snapshotUpdatedAt: Date | null;
|
|
4649
4926
|
embeddedViewIds: string[] | null;
|
|
4650
4927
|
};
|
|
4651
|
-
documentId: string;
|
|
4928
|
+
documentId: string | null;
|
|
4652
4929
|
status: string;
|
|
4653
4930
|
message?: undefined;
|
|
4654
4931
|
proposalId?: undefined;
|
|
@@ -4657,7 +4934,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4657
4934
|
}>;
|
|
4658
4935
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4659
4936
|
input: {
|
|
4660
|
-
|
|
4937
|
+
workspaceIds?: string[] | undefined;
|
|
4661
4938
|
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "grid" | "kanban" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
4662
4939
|
};
|
|
4663
4940
|
output: {
|
|
@@ -4884,7 +5161,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4884
5161
|
embeddedViewIds?: string[] | undefined;
|
|
4885
5162
|
schemaSnapshot?: Record<string, any> | undefined;
|
|
4886
5163
|
snapshotUpdatedAt?: Date | undefined;
|
|
4887
|
-
type?: "calendar" | "list" | "table" | "whiteboard" | "graph" | "timeline" | "grid" | "kanban" | "gallery" | "gantt" | "mindmap" | "flow" |
|
|
5164
|
+
type?: "calendar" | "list" | "bento" | "table" | "whiteboard" | "graph" | "timeline" | "grid" | "kanban" | "gallery" | "gantt" | "mindmap" | "flow" | undefined;
|
|
4888
5165
|
};
|
|
4889
5166
|
output: {
|
|
4890
5167
|
status: string;
|
|
@@ -5866,6 +6143,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5866
6143
|
};
|
|
5867
6144
|
meta: object;
|
|
5868
6145
|
}>;
|
|
6146
|
+
installFromUrl: import("@trpc/server").TRPCMutationProcedure<{
|
|
6147
|
+
input: {
|
|
6148
|
+
url: string;
|
|
6149
|
+
workspaceId: string;
|
|
6150
|
+
};
|
|
6151
|
+
output: {
|
|
6152
|
+
id: string;
|
|
6153
|
+
name: string;
|
|
6154
|
+
status: "installed";
|
|
6155
|
+
skillType: "instruction";
|
|
6156
|
+
source: "custom" | "clawhub" | "zeroclaw";
|
|
6157
|
+
version: string;
|
|
6158
|
+
};
|
|
6159
|
+
meta: object;
|
|
6160
|
+
}>;
|
|
5869
6161
|
}>>;
|
|
5870
6162
|
backgroundTasks: import("@trpc/server").TRPCBuiltRouter<{
|
|
5871
6163
|
ctx: Context;
|
|
@@ -6103,6 +6395,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6103
6395
|
uiHints: unknown;
|
|
6104
6396
|
displayName: string;
|
|
6105
6397
|
parentProfileId: string | null;
|
|
6398
|
+
defaultValues: unknown;
|
|
6106
6399
|
}[];
|
|
6107
6400
|
};
|
|
6108
6401
|
meta: object;
|
|
@@ -6125,6 +6418,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6125
6418
|
uiHints: unknown;
|
|
6126
6419
|
displayName: string;
|
|
6127
6420
|
parentProfileId: string | null;
|
|
6421
|
+
defaultValues: unknown;
|
|
6128
6422
|
};
|
|
6129
6423
|
effectiveProperties: EffectiveProperty[];
|
|
6130
6424
|
};
|
|
@@ -6136,7 +6430,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6136
6430
|
displayName: string;
|
|
6137
6431
|
parentProfileId?: string | undefined;
|
|
6138
6432
|
uiHints?: Record<string, unknown> | undefined;
|
|
6139
|
-
|
|
6433
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6434
|
+
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6435
|
+
allowedWorkspaceIds?: string[] | undefined;
|
|
6140
6436
|
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
6141
6437
|
reasoning?: string | undefined;
|
|
6142
6438
|
agentUserId?: string | undefined;
|
|
@@ -6155,6 +6451,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6155
6451
|
uiHints: unknown;
|
|
6156
6452
|
displayName: string;
|
|
6157
6453
|
parentProfileId: string | null;
|
|
6454
|
+
defaultValues: unknown;
|
|
6158
6455
|
};
|
|
6159
6456
|
existing: boolean;
|
|
6160
6457
|
status?: undefined;
|
|
@@ -6180,6 +6477,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6180
6477
|
uiHints: unknown;
|
|
6181
6478
|
displayName: string;
|
|
6182
6479
|
parentProfileId: string | null;
|
|
6480
|
+
defaultValues: unknown;
|
|
6183
6481
|
};
|
|
6184
6482
|
existing?: undefined;
|
|
6185
6483
|
status?: undefined;
|
|
@@ -6194,6 +6492,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6194
6492
|
displayName?: string | undefined;
|
|
6195
6493
|
parentProfileId?: string | null | undefined;
|
|
6196
6494
|
uiHints?: Record<string, unknown> | undefined;
|
|
6495
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6496
|
+
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6497
|
+
allowedWorkspaceIds?: string[] | undefined;
|
|
6197
6498
|
};
|
|
6198
6499
|
output: {
|
|
6199
6500
|
profile: {
|
|
@@ -6209,6 +6510,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6209
6510
|
uiHints: unknown;
|
|
6210
6511
|
displayName: string;
|
|
6211
6512
|
parentProfileId: string | null;
|
|
6513
|
+
defaultValues: unknown;
|
|
6212
6514
|
};
|
|
6213
6515
|
};
|
|
6214
6516
|
meta: object;
|
|
@@ -6249,10 +6551,54 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6249
6551
|
uiHints: unknown;
|
|
6250
6552
|
displayName: string;
|
|
6251
6553
|
parentProfileId: string | null;
|
|
6554
|
+
defaultValues: unknown;
|
|
6555
|
+
}[];
|
|
6556
|
+
};
|
|
6557
|
+
meta: object;
|
|
6558
|
+
}>;
|
|
6559
|
+
grantAccess: import("@trpc/server").TRPCMutationProcedure<{
|
|
6560
|
+
input: {
|
|
6561
|
+
profileId: string;
|
|
6562
|
+
targetWorkspaceId: string;
|
|
6563
|
+
};
|
|
6564
|
+
output: {
|
|
6565
|
+
success: boolean;
|
|
6566
|
+
};
|
|
6567
|
+
meta: object;
|
|
6568
|
+
}>;
|
|
6569
|
+
listMulti: import("@trpc/server").TRPCQueryProcedure<{
|
|
6570
|
+
input: {
|
|
6571
|
+
workspaceIds?: string[] | undefined;
|
|
6572
|
+
};
|
|
6573
|
+
output: {
|
|
6574
|
+
profiles: {
|
|
6575
|
+
workspaceId: string | null;
|
|
6576
|
+
userId: string | null;
|
|
6577
|
+
id: string;
|
|
6578
|
+
updatedAt: Date;
|
|
6579
|
+
createdAt: Date;
|
|
6580
|
+
version: number;
|
|
6581
|
+
isActive: boolean;
|
|
6582
|
+
scope: ProfileScope;
|
|
6583
|
+
slug: string;
|
|
6584
|
+
uiHints: unknown;
|
|
6585
|
+
displayName: string;
|
|
6586
|
+
parentProfileId: string | null;
|
|
6587
|
+
defaultValues: unknown;
|
|
6252
6588
|
}[];
|
|
6253
6589
|
};
|
|
6254
6590
|
meta: object;
|
|
6255
6591
|
}>;
|
|
6592
|
+
revokeAccess: import("@trpc/server").TRPCMutationProcedure<{
|
|
6593
|
+
input: {
|
|
6594
|
+
profileId: string;
|
|
6595
|
+
targetWorkspaceId: string;
|
|
6596
|
+
};
|
|
6597
|
+
output: {
|
|
6598
|
+
success: boolean;
|
|
6599
|
+
};
|
|
6600
|
+
meta: object;
|
|
6601
|
+
}>;
|
|
6256
6602
|
}>>;
|
|
6257
6603
|
propertyDefs: import("@trpc/server").TRPCBuiltRouter<{
|
|
6258
6604
|
ctx: Context;
|