@synap-core/api-types 1.8.0 → 1.10.1
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 +696 -124
- package/package.json +1 -1
- package/src/generated.d.ts +696 -124
package/dist/generated.d.ts
CHANGED
|
@@ -110,7 +110,8 @@ declare enum ChannelType {
|
|
|
110
110
|
DOCUMENT_REVIEW = "document_review",
|
|
111
111
|
VIEW_DISCUSSION = "view_discussion",
|
|
112
112
|
DIRECT = "direct",
|
|
113
|
-
EXTERNAL_IMPORT = "external_import"
|
|
113
|
+
EXTERNAL_IMPORT = "external_import",
|
|
114
|
+
A2AI = "a2ai"
|
|
114
115
|
}
|
|
115
116
|
declare enum ChannelStatus {
|
|
116
117
|
ACTIVE = "active",
|
|
@@ -225,7 +226,8 @@ declare const channels: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
225
226
|
ChannelType.DOCUMENT_REVIEW,
|
|
226
227
|
ChannelType.VIEW_DISCUSSION,
|
|
227
228
|
ChannelType.DIRECT,
|
|
228
|
-
ChannelType.EXTERNAL_IMPORT
|
|
229
|
+
ChannelType.EXTERNAL_IMPORT,
|
|
230
|
+
ChannelType.A2AI
|
|
229
231
|
];
|
|
230
232
|
baseColumn: never;
|
|
231
233
|
identity: undefined;
|
|
@@ -578,11 +580,25 @@ export interface InputOverride {
|
|
|
578
580
|
* - Team (multiple users with roles)
|
|
579
581
|
* - Enterprise (advanced features)
|
|
580
582
|
*/
|
|
583
|
+
export interface WorkspaceSidebarItem {
|
|
584
|
+
kind: "app" | "view" | "external";
|
|
585
|
+
/** App ID for kind='app' (e.g. 'dashboard', 'intelligence', 'data') */
|
|
586
|
+
appId?: string;
|
|
587
|
+
/** View name for kind='view' — resolved lazily at click time */
|
|
588
|
+
viewName?: string;
|
|
589
|
+
/** URL template for kind='external'. Use __POD_URL__ as a placeholder. */
|
|
590
|
+
url?: string;
|
|
591
|
+
/** Display label shown in the sidebar */
|
|
592
|
+
label?: string;
|
|
593
|
+
/** Lucide icon name override */
|
|
594
|
+
icon?: string;
|
|
595
|
+
}
|
|
581
596
|
export interface WorkspaceLayoutConfig {
|
|
582
597
|
pinnedApps?: string[];
|
|
583
|
-
sidebarApps?: string[];
|
|
584
598
|
defaultView?: string;
|
|
585
599
|
theme?: string;
|
|
600
|
+
/** Ordered list of sidebar items. When set, replaces the generic app list. */
|
|
601
|
+
sidebarItems?: WorkspaceSidebarItem[];
|
|
586
602
|
}
|
|
587
603
|
/**
|
|
588
604
|
* MCP server configuration — stored per workspace.
|
|
@@ -637,6 +653,12 @@ export interface WorkspaceSettings {
|
|
|
637
653
|
templateName?: string;
|
|
638
654
|
/** Slug of the control plane package used to create this workspace. */
|
|
639
655
|
packageSlug?: string;
|
|
656
|
+
/**
|
|
657
|
+
* System-reserved slug identifying built-in workspaces created by the backend.
|
|
658
|
+
* Used for idempotent re-creation (e.g. 'pod-admin').
|
|
659
|
+
* Never set by users.
|
|
660
|
+
*/
|
|
661
|
+
systemSlug?: string;
|
|
640
662
|
/** Version of the package at time of creation. */
|
|
641
663
|
packageVersion?: string;
|
|
642
664
|
/** Who/what created this workspace: user, control-plane provisioning, or plugin seed */
|
|
@@ -672,7 +694,9 @@ export interface WorkspaceSettings {
|
|
|
672
694
|
declare enum ProposalStatus {
|
|
673
695
|
PENDING = "pending",
|
|
674
696
|
APPROVED = "approved",
|
|
675
|
-
REJECTED = "rejected"
|
|
697
|
+
REJECTED = "rejected",
|
|
698
|
+
/** Action was on the autoApproveFor whitelist — executed immediately, audited here for traceability. */
|
|
699
|
+
AUTO_APPROVED = "auto_approved"
|
|
676
700
|
}
|
|
677
701
|
declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
678
702
|
name: "message_links";
|
|
@@ -861,6 +885,20 @@ declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
861
885
|
dialect: "pg";
|
|
862
886
|
}>;
|
|
863
887
|
export type MessageLink = typeof messageLinks.$inferSelect;
|
|
888
|
+
/**
|
|
889
|
+
* MCP Servers Schema
|
|
890
|
+
*
|
|
891
|
+
* Workspace-level MCP (Model Context Protocol) server configurations.
|
|
892
|
+
* Promoted from workspaces.settings.mcpServers[] (JSONB array) to a
|
|
893
|
+
* proper table for per-server status tracking, approval gating, and
|
|
894
|
+
* efficient queries.
|
|
895
|
+
*
|
|
896
|
+
* An MCP server exposes tools that AI agents can call. Each server must
|
|
897
|
+
* be explicitly approved by a workspace owner before its tools are injected
|
|
898
|
+
* into LLM requests.
|
|
899
|
+
*/
|
|
900
|
+
export type McpTransport = "stdio" | "http" | "sse";
|
|
901
|
+
export type McpStatus = "connected" | "disconnected" | "error" | "unknown";
|
|
864
902
|
declare enum PropertyValueType {
|
|
865
903
|
STRING = "string",
|
|
866
904
|
NUMBER = "number",
|
|
@@ -1160,7 +1198,9 @@ declare enum AgentType {
|
|
|
1160
1198
|
KNOWLEDGE_SEARCH = "knowledge-search",
|
|
1161
1199
|
CODE = "code",
|
|
1162
1200
|
WRITING = "writing",
|
|
1163
|
-
ACTION = "action"
|
|
1201
|
+
ACTION = "action",
|
|
1202
|
+
ONBOARDING = "onboarding",
|
|
1203
|
+
WORKSPACE_CREATION = "workspace-creation"
|
|
1164
1204
|
}
|
|
1165
1205
|
/**
|
|
1166
1206
|
* Agent type as string literal union (for flexibility)
|
|
@@ -1251,6 +1291,11 @@ export type BranchNodeResult = {
|
|
|
1251
1291
|
lastActivity: Date;
|
|
1252
1292
|
depth: number;
|
|
1253
1293
|
};
|
|
1294
|
+
/** Recursive node returned by getBranchTree — mirrors the frontend BranchNode shape */
|
|
1295
|
+
export type BranchTreeNode = {
|
|
1296
|
+
channel: Channel;
|
|
1297
|
+
children: BranchTreeNode[];
|
|
1298
|
+
};
|
|
1254
1299
|
/**
|
|
1255
1300
|
* @synap/events - Schema-Driven Event Generator
|
|
1256
1301
|
*
|
|
@@ -1318,6 +1363,39 @@ export interface WorkerMetadata {
|
|
|
1318
1363
|
outputs?: string[];
|
|
1319
1364
|
category: "table" | "shared" | "ai";
|
|
1320
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* Intelligence Router
|
|
1368
|
+
*
|
|
1369
|
+
* Commands (Raycast-style), runs (audit), effective service (manifest),
|
|
1370
|
+
* and proxy procedures for intelligence service management APIs
|
|
1371
|
+
* (agents, tools, memory, skills, executions, proposals).
|
|
1372
|
+
*/
|
|
1373
|
+
export interface ToolLog {
|
|
1374
|
+
id?: string;
|
|
1375
|
+
toolName?: string;
|
|
1376
|
+
tool_name?: string;
|
|
1377
|
+
durationMs?: number;
|
|
1378
|
+
error?: string;
|
|
1379
|
+
input?: Record<string, unknown>;
|
|
1380
|
+
output?: unknown;
|
|
1381
|
+
}
|
|
1382
|
+
export interface ExecutionRecord {
|
|
1383
|
+
id: string;
|
|
1384
|
+
agentType?: string;
|
|
1385
|
+
status?: string;
|
|
1386
|
+
durationMs?: number;
|
|
1387
|
+
createdAt?: string;
|
|
1388
|
+
completedAt?: string;
|
|
1389
|
+
messageCount?: number;
|
|
1390
|
+
[key: string]: unknown;
|
|
1391
|
+
}
|
|
1392
|
+
export interface ExecutionStats {
|
|
1393
|
+
totalRuns?: number;
|
|
1394
|
+
successRate?: number;
|
|
1395
|
+
avgDurationMs?: number;
|
|
1396
|
+
toolCallCount?: number;
|
|
1397
|
+
[key: string]: unknown;
|
|
1398
|
+
}
|
|
1321
1399
|
/**
|
|
1322
1400
|
* Core API Router
|
|
1323
1401
|
*/
|
|
@@ -1356,7 +1434,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1356
1434
|
data: Record<string, unknown>;
|
|
1357
1435
|
version: number;
|
|
1358
1436
|
metadata?: Record<string, unknown> | undefined;
|
|
1359
|
-
source?: "
|
|
1437
|
+
source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
|
|
1360
1438
|
causationId?: string | undefined;
|
|
1361
1439
|
correlationId?: string | undefined;
|
|
1362
1440
|
};
|
|
@@ -1673,6 +1751,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1673
1751
|
};
|
|
1674
1752
|
meta: object;
|
|
1675
1753
|
}>;
|
|
1754
|
+
setEntityViewMode: import("@trpc/server").TRPCMutationProcedure<{
|
|
1755
|
+
input: {
|
|
1756
|
+
entityId: string;
|
|
1757
|
+
mode: "document" | "bento";
|
|
1758
|
+
};
|
|
1759
|
+
output: {
|
|
1760
|
+
status: string;
|
|
1761
|
+
viewMode: "document" | "bento";
|
|
1762
|
+
bentoViewId: string | null;
|
|
1763
|
+
};
|
|
1764
|
+
meta: object;
|
|
1765
|
+
}>;
|
|
1676
1766
|
}>>;
|
|
1677
1767
|
chat: import("@trpc/server").TRPCBuiltRouter<{
|
|
1678
1768
|
ctx: Context;
|
|
@@ -1680,9 +1770,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1680
1770
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1681
1771
|
transformer: true;
|
|
1682
1772
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1683
|
-
|
|
1773
|
+
createChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1684
1774
|
input: {
|
|
1685
|
-
|
|
1775
|
+
parentChannelId?: string | undefined;
|
|
1686
1776
|
branchPurpose?: string | undefined;
|
|
1687
1777
|
agentId?: string | undefined;
|
|
1688
1778
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
@@ -1690,13 +1780,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1690
1780
|
inheritContext?: boolean | undefined;
|
|
1691
1781
|
};
|
|
1692
1782
|
output: {
|
|
1693
|
-
|
|
1783
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1694
1784
|
status: string;
|
|
1695
1785
|
message: string;
|
|
1696
|
-
|
|
1786
|
+
channel?: undefined;
|
|
1697
1787
|
} | {
|
|
1698
|
-
|
|
1699
|
-
|
|
1788
|
+
channelId: string;
|
|
1789
|
+
channel: {
|
|
1700
1790
|
workspaceId: string | null;
|
|
1701
1791
|
userId: string;
|
|
1702
1792
|
id: string;
|
|
@@ -1724,6 +1814,38 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1724
1814
|
};
|
|
1725
1815
|
meta: object;
|
|
1726
1816
|
}>;
|
|
1817
|
+
createExternalChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1818
|
+
input: {
|
|
1819
|
+
externalSource: string;
|
|
1820
|
+
externalChannelId: string;
|
|
1821
|
+
title: string;
|
|
1822
|
+
externalParticipants?: string[] | undefined;
|
|
1823
|
+
initialMessage?: string | undefined;
|
|
1824
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1825
|
+
};
|
|
1826
|
+
output: {
|
|
1827
|
+
channelId: string;
|
|
1828
|
+
status: "exists";
|
|
1829
|
+
} | {
|
|
1830
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1831
|
+
status: "created";
|
|
1832
|
+
};
|
|
1833
|
+
meta: object;
|
|
1834
|
+
}>;
|
|
1835
|
+
createA2AIChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1836
|
+
input: {
|
|
1837
|
+
topic: string;
|
|
1838
|
+
visibility?: "open" | "closed" | undefined;
|
|
1839
|
+
participants?: string[] | undefined;
|
|
1840
|
+
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | undefined;
|
|
1841
|
+
title?: string | undefined;
|
|
1842
|
+
};
|
|
1843
|
+
output: {
|
|
1844
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1845
|
+
status: "created";
|
|
1846
|
+
};
|
|
1847
|
+
meta: object;
|
|
1848
|
+
}>;
|
|
1727
1849
|
createDocumentComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
1728
1850
|
input: {
|
|
1729
1851
|
documentId: string;
|
|
@@ -1734,7 +1856,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1734
1856
|
content: string;
|
|
1735
1857
|
};
|
|
1736
1858
|
output: {
|
|
1737
|
-
|
|
1859
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1738
1860
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1739
1861
|
};
|
|
1740
1862
|
meta: object;
|
|
@@ -1745,7 +1867,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1745
1867
|
content: string;
|
|
1746
1868
|
};
|
|
1747
1869
|
output: {
|
|
1748
|
-
|
|
1870
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1749
1871
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1750
1872
|
};
|
|
1751
1873
|
meta: object;
|
|
@@ -1753,7 +1875,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1753
1875
|
sendMessage: import("@trpc/server").TRPCMutationProcedure<{
|
|
1754
1876
|
input: {
|
|
1755
1877
|
content: string;
|
|
1756
|
-
|
|
1878
|
+
channelId?: string | undefined;
|
|
1757
1879
|
workspaceId?: string | undefined;
|
|
1758
1880
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
1759
1881
|
agentHandle?: string | undefined;
|
|
@@ -1874,16 +1996,53 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1874
1996
|
};
|
|
1875
1997
|
meta: object;
|
|
1876
1998
|
}>;
|
|
1877
|
-
|
|
1999
|
+
listChannels: import("@trpc/server").TRPCQueryProcedure<{
|
|
1878
2000
|
input: {
|
|
1879
2001
|
workspaceId?: string | undefined;
|
|
1880
|
-
|
|
2002
|
+
channelType?: "main" | "branch" | "ai_thread" | undefined;
|
|
1881
2003
|
limit?: number | undefined;
|
|
1882
2004
|
contextObjectId?: string | undefined;
|
|
1883
2005
|
contextObjectType?: "entity" | "view" | "document" | undefined;
|
|
1884
2006
|
};
|
|
1885
2007
|
output: {
|
|
1886
|
-
|
|
2008
|
+
channels: {
|
|
2009
|
+
hasAssistantMessage: boolean;
|
|
2010
|
+
origin: string;
|
|
2011
|
+
workspaceId: string | null;
|
|
2012
|
+
userId: string;
|
|
2013
|
+
id: string;
|
|
2014
|
+
updatedAt: Date;
|
|
2015
|
+
createdAt: Date;
|
|
2016
|
+
metadata: unknown;
|
|
2017
|
+
title: string | null;
|
|
2018
|
+
externalSource: string | null;
|
|
2019
|
+
status: ChannelStatus;
|
|
2020
|
+
channelType: ChannelType;
|
|
2021
|
+
contextObjectType: string | null;
|
|
2022
|
+
contextObjectId: string | null;
|
|
2023
|
+
parentChannelId: string | null;
|
|
2024
|
+
branchedFromMessageId: string | null;
|
|
2025
|
+
branchPurpose: string | null;
|
|
2026
|
+
agentId: string;
|
|
2027
|
+
agentType: ChannelAgentType;
|
|
2028
|
+
agentConfig: unknown;
|
|
2029
|
+
contextSummary: string | null;
|
|
2030
|
+
externalChannelId: string | null;
|
|
2031
|
+
mergedAt: Date | null;
|
|
2032
|
+
}[];
|
|
2033
|
+
};
|
|
2034
|
+
meta: object;
|
|
2035
|
+
}>;
|
|
2036
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2037
|
+
input: {
|
|
2038
|
+
workspaceId?: string | undefined;
|
|
2039
|
+
channelType?: "main" | "branch" | "ai_thread" | undefined;
|
|
2040
|
+
limit?: number | undefined;
|
|
2041
|
+
contextObjectId?: string | undefined;
|
|
2042
|
+
contextObjectType?: "entity" | "view" | "document" | undefined;
|
|
2043
|
+
};
|
|
2044
|
+
output: {
|
|
2045
|
+
channels: {
|
|
1887
2046
|
hasAssistantMessage: boolean;
|
|
1888
2047
|
origin: string;
|
|
1889
2048
|
workspaceId: string | null;
|
|
@@ -1913,7 +2072,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1913
2072
|
}>;
|
|
1914
2073
|
getBranches: import("@trpc/server").TRPCQueryProcedure<{
|
|
1915
2074
|
input: {
|
|
1916
|
-
|
|
2075
|
+
parentChannelId: string;
|
|
1917
2076
|
};
|
|
1918
2077
|
output: {
|
|
1919
2078
|
branches: {
|
|
@@ -1949,8 +2108,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1949
2108
|
output: {
|
|
1950
2109
|
roots: BranchNodeResult[];
|
|
1951
2110
|
stats: {
|
|
1952
|
-
|
|
1953
|
-
|
|
2111
|
+
totalChannels: number;
|
|
2112
|
+
activeChannels: number;
|
|
1954
2113
|
pendingProposalsTotal: number;
|
|
1955
2114
|
};
|
|
1956
2115
|
proposalCounts: Record<string, number>;
|
|
@@ -1968,14 +2127,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1968
2127
|
};
|
|
1969
2128
|
meta: object;
|
|
1970
2129
|
}>;
|
|
1971
|
-
|
|
2130
|
+
getChannel: import("@trpc/server").TRPCQueryProcedure<{
|
|
1972
2131
|
input: {
|
|
1973
|
-
|
|
2132
|
+
channelId: string;
|
|
1974
2133
|
includeContext?: boolean | undefined;
|
|
1975
2134
|
includeBranches?: boolean | undefined;
|
|
1976
2135
|
};
|
|
1977
2136
|
output: {
|
|
1978
|
-
|
|
2137
|
+
channel: {
|
|
1979
2138
|
workspaceId: string | null;
|
|
1980
2139
|
userId: string;
|
|
1981
2140
|
id: string;
|
|
@@ -2014,9 +2173,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2014
2173
|
};
|
|
2015
2174
|
meta: object;
|
|
2016
2175
|
}>;
|
|
2017
|
-
|
|
2176
|
+
updateChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2018
2177
|
input: {
|
|
2019
|
-
|
|
2178
|
+
channelId: string;
|
|
2020
2179
|
title?: string | undefined;
|
|
2021
2180
|
agentId?: string | undefined;
|
|
2022
2181
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
@@ -2024,29 +2183,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2024
2183
|
};
|
|
2025
2184
|
output: {
|
|
2026
2185
|
status: string;
|
|
2027
|
-
|
|
2186
|
+
channelId: string;
|
|
2028
2187
|
};
|
|
2029
2188
|
meta: object;
|
|
2030
2189
|
}>;
|
|
2031
|
-
|
|
2190
|
+
archiveChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2032
2191
|
input: {
|
|
2033
|
-
|
|
2192
|
+
channelId: string;
|
|
2034
2193
|
};
|
|
2035
2194
|
output: {
|
|
2036
2195
|
status: string;
|
|
2037
|
-
|
|
2196
|
+
channelId: string;
|
|
2038
2197
|
};
|
|
2039
2198
|
meta: object;
|
|
2040
2199
|
}>;
|
|
2041
2200
|
getBranchTree: import("@trpc/server").TRPCQueryProcedure<{
|
|
2042
2201
|
input: {
|
|
2043
|
-
|
|
2202
|
+
rootChannelId: string;
|
|
2044
2203
|
};
|
|
2045
2204
|
output: {
|
|
2046
|
-
tree:
|
|
2047
|
-
channel: Channel;
|
|
2048
|
-
children: any[];
|
|
2049
|
-
} | null;
|
|
2205
|
+
tree: BranchTreeNode | null;
|
|
2050
2206
|
flatBranches: {
|
|
2051
2207
|
workspaceId: string | null;
|
|
2052
2208
|
userId: string;
|
|
@@ -2119,9 +2275,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2119
2275
|
};
|
|
2120
2276
|
meta: object;
|
|
2121
2277
|
}>;
|
|
2122
|
-
|
|
2278
|
+
getChannelContext: import("@trpc/server").TRPCQueryProcedure<{
|
|
2123
2279
|
input: {
|
|
2124
|
-
|
|
2280
|
+
channelId: string;
|
|
2125
2281
|
objectTypes?: ("entity" | "proposal" | "view" | "inbox_item" | "document")[] | undefined;
|
|
2126
2282
|
relationshipTypes?: ("created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent")[] | undefined;
|
|
2127
2283
|
};
|
|
@@ -2356,7 +2512,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2356
2512
|
data: Record<string, unknown>;
|
|
2357
2513
|
userId: string;
|
|
2358
2514
|
subjectId?: string | undefined;
|
|
2359
|
-
source?: "
|
|
2515
|
+
source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
|
|
2360
2516
|
correlationId?: string | undefined;
|
|
2361
2517
|
causationId?: string | undefined;
|
|
2362
2518
|
};
|
|
@@ -2989,7 +3145,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2989
3145
|
lastSavedVersion: number;
|
|
2990
3146
|
workingState: string | null;
|
|
2991
3147
|
workingStateUpdatedAt: Date | null;
|
|
2992
|
-
entityId: string | null;
|
|
2993
3148
|
metadata: unknown;
|
|
2994
3149
|
createdAt: Date;
|
|
2995
3150
|
updatedAt: Date;
|
|
@@ -3127,7 +3282,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3127
3282
|
lastSavedVersion: number;
|
|
3128
3283
|
workingState: string | null;
|
|
3129
3284
|
workingStateUpdatedAt: Date | null;
|
|
3130
|
-
entityId: string | null;
|
|
3131
3285
|
metadata: unknown;
|
|
3132
3286
|
createdAt: Date;
|
|
3133
3287
|
updatedAt: Date;
|
|
@@ -3417,7 +3571,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3417
3571
|
apiKey: string;
|
|
3418
3572
|
pricing: string | null;
|
|
3419
3573
|
enabled: boolean;
|
|
3574
|
+
mcpApproved: boolean;
|
|
3420
3575
|
lastHealthCheck: Date | null;
|
|
3576
|
+
lastHealthStatus: string | null;
|
|
3421
3577
|
};
|
|
3422
3578
|
meta: object;
|
|
3423
3579
|
}>;
|
|
@@ -3460,7 +3616,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3460
3616
|
mcpEndpoint: string | null;
|
|
3461
3617
|
pricing: string | null;
|
|
3462
3618
|
enabled: boolean;
|
|
3619
|
+
mcpApproved: boolean;
|
|
3463
3620
|
lastHealthCheck: Date | null;
|
|
3621
|
+
lastHealthStatus: string | null;
|
|
3464
3622
|
};
|
|
3465
3623
|
meta: object;
|
|
3466
3624
|
}>;
|
|
@@ -3489,10 +3647,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3489
3647
|
pricing: string | null;
|
|
3490
3648
|
status: string;
|
|
3491
3649
|
enabled: boolean;
|
|
3650
|
+
mcpApproved: boolean;
|
|
3492
3651
|
metadata: Record<string, unknown> | null;
|
|
3493
3652
|
createdAt: Date;
|
|
3494
3653
|
updatedAt: Date;
|
|
3495
3654
|
lastHealthCheck: Date | null;
|
|
3655
|
+
lastHealthStatus: string | null;
|
|
3496
3656
|
};
|
|
3497
3657
|
meta: object;
|
|
3498
3658
|
}>;
|
|
@@ -3538,6 +3698,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3538
3698
|
};
|
|
3539
3699
|
meta: object;
|
|
3540
3700
|
}>;
|
|
3701
|
+
approveMcp: import("@trpc/server").TRPCMutationProcedure<{
|
|
3702
|
+
input: {
|
|
3703
|
+
serviceId: string;
|
|
3704
|
+
};
|
|
3705
|
+
output: {
|
|
3706
|
+
success: boolean;
|
|
3707
|
+
serviceId: string;
|
|
3708
|
+
};
|
|
3709
|
+
meta: object;
|
|
3710
|
+
}>;
|
|
3711
|
+
revokeMcp: import("@trpc/server").TRPCMutationProcedure<{
|
|
3712
|
+
input: {
|
|
3713
|
+
serviceId: string;
|
|
3714
|
+
};
|
|
3715
|
+
output: {
|
|
3716
|
+
success: boolean;
|
|
3717
|
+
};
|
|
3718
|
+
meta: object;
|
|
3719
|
+
}>;
|
|
3541
3720
|
findByCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3542
3721
|
input: {
|
|
3543
3722
|
capability: string;
|
|
@@ -3551,6 +3730,103 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3551
3730
|
}[];
|
|
3552
3731
|
meta: object;
|
|
3553
3732
|
}>;
|
|
3733
|
+
getMcpStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
3734
|
+
input: {
|
|
3735
|
+
serviceId: string;
|
|
3736
|
+
};
|
|
3737
|
+
output: {
|
|
3738
|
+
mcpEndpoint: string | null;
|
|
3739
|
+
mcpApproved: boolean;
|
|
3740
|
+
};
|
|
3741
|
+
meta: object;
|
|
3742
|
+
}>;
|
|
3743
|
+
provisionAgent: import("@trpc/server").TRPCMutationProcedure<{
|
|
3744
|
+
input: {
|
|
3745
|
+
serviceType: string;
|
|
3746
|
+
};
|
|
3747
|
+
output: {
|
|
3748
|
+
status: "already_provisioned";
|
|
3749
|
+
agentUserId: string;
|
|
3750
|
+
agentEmail: string;
|
|
3751
|
+
workspaceId: string;
|
|
3752
|
+
podUrl: string;
|
|
3753
|
+
configUrl: string;
|
|
3754
|
+
serviceId?: undefined;
|
|
3755
|
+
apiKey?: undefined;
|
|
3756
|
+
} | {
|
|
3757
|
+
status: "provisioned";
|
|
3758
|
+
agentUserId: `${string}-${string}-${string}-${string}-${string}`;
|
|
3759
|
+
agentEmail: string;
|
|
3760
|
+
serviceId: string;
|
|
3761
|
+
workspaceId: string;
|
|
3762
|
+
podUrl: string;
|
|
3763
|
+
configUrl: string;
|
|
3764
|
+
apiKey: string | null;
|
|
3765
|
+
};
|
|
3766
|
+
meta: object;
|
|
3767
|
+
}>;
|
|
3768
|
+
deprovisionAgent: import("@trpc/server").TRPCMutationProcedure<{
|
|
3769
|
+
input: {
|
|
3770
|
+
serviceType: string;
|
|
3771
|
+
};
|
|
3772
|
+
output: {
|
|
3773
|
+
status: "deprovisioned";
|
|
3774
|
+
};
|
|
3775
|
+
meta: object;
|
|
3776
|
+
}>;
|
|
3777
|
+
rotateAgentKey: import("@trpc/server").TRPCMutationProcedure<{
|
|
3778
|
+
input: {
|
|
3779
|
+
serviceType: string;
|
|
3780
|
+
};
|
|
3781
|
+
output: {
|
|
3782
|
+
status: "rotated";
|
|
3783
|
+
serviceId: string;
|
|
3784
|
+
configUrl: string;
|
|
3785
|
+
apiKey: string;
|
|
3786
|
+
};
|
|
3787
|
+
meta: object;
|
|
3788
|
+
}>;
|
|
3789
|
+
getAgentStatus: import("@trpc/server").TRPCQueryProcedure<{
|
|
3790
|
+
input: {
|
|
3791
|
+
serviceType: string;
|
|
3792
|
+
};
|
|
3793
|
+
output: {
|
|
3794
|
+
provisioned: false;
|
|
3795
|
+
serviceRegistered: boolean;
|
|
3796
|
+
mcpEndpoint: string | null;
|
|
3797
|
+
mcpApproved: boolean;
|
|
3798
|
+
agentUserId: string | null;
|
|
3799
|
+
agentEmail: string | null;
|
|
3800
|
+
podUrl: string;
|
|
3801
|
+
workspaceId: string;
|
|
3802
|
+
} | {
|
|
3803
|
+
provisioned: true;
|
|
3804
|
+
serviceRegistered: boolean;
|
|
3805
|
+
mcpEndpoint: string | null;
|
|
3806
|
+
mcpApproved: boolean;
|
|
3807
|
+
agentUserId: string;
|
|
3808
|
+
agentEmail: string;
|
|
3809
|
+
podUrl: string;
|
|
3810
|
+
workspaceId: string;
|
|
3811
|
+
};
|
|
3812
|
+
meta: object;
|
|
3813
|
+
}>;
|
|
3814
|
+
getServiceConfig: import("@trpc/server").TRPCQueryProcedure<{
|
|
3815
|
+
input: void;
|
|
3816
|
+
output: Record<string, string>;
|
|
3817
|
+
meta: object;
|
|
3818
|
+
}>;
|
|
3819
|
+
storeServiceSecret: import("@trpc/server").TRPCMutationProcedure<{
|
|
3820
|
+
input: {
|
|
3821
|
+
serviceId: string;
|
|
3822
|
+
config: Record<string, unknown>;
|
|
3823
|
+
};
|
|
3824
|
+
output: {
|
|
3825
|
+
stored: boolean;
|
|
3826
|
+
secretId: string;
|
|
3827
|
+
};
|
|
3828
|
+
meta: object;
|
|
3829
|
+
}>;
|
|
3554
3830
|
}>>;
|
|
3555
3831
|
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
3556
3832
|
ctx: Context;
|
|
@@ -3775,50 +4051,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3775
4051
|
meta: object;
|
|
3776
4052
|
}>;
|
|
3777
4053
|
agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
3778
|
-
input:
|
|
4054
|
+
input: void;
|
|
3779
4055
|
output: {
|
|
3780
4056
|
agents: unknown[];
|
|
3781
4057
|
};
|
|
3782
4058
|
meta: object;
|
|
3783
4059
|
}>;
|
|
3784
|
-
toolDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
3785
|
-
input: Record<string, never>;
|
|
3786
|
-
output: {
|
|
3787
|
-
tools: unknown[];
|
|
3788
|
-
};
|
|
3789
|
-
meta: object;
|
|
3790
|
-
}>;
|
|
3791
|
-
agentConfig: import("@trpc/server").TRPCQueryProcedure<{
|
|
3792
|
-
input: {
|
|
3793
|
-
agentType: string;
|
|
3794
|
-
};
|
|
3795
|
-
output: {
|
|
3796
|
-
config: unknown;
|
|
3797
|
-
};
|
|
3798
|
-
meta: object;
|
|
3799
|
-
}>;
|
|
3800
|
-
saveAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
|
|
3801
|
-
input: {
|
|
3802
|
-
agentType: string;
|
|
3803
|
-
promptAppend?: string | null | undefined;
|
|
3804
|
-
extraToolIds?: string[] | undefined;
|
|
3805
|
-
disabledToolIds?: string[] | undefined;
|
|
3806
|
-
maxStepsOverride?: number | null | undefined;
|
|
3807
|
-
};
|
|
3808
|
-
output: {
|
|
3809
|
-
config: unknown;
|
|
3810
|
-
};
|
|
3811
|
-
meta: object;
|
|
3812
|
-
}>;
|
|
3813
|
-
deleteAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
|
|
3814
|
-
input: {
|
|
3815
|
-
agentType: string;
|
|
3816
|
-
};
|
|
3817
|
-
output: {
|
|
3818
|
-
success: boolean;
|
|
3819
|
-
};
|
|
3820
|
-
meta: object;
|
|
3821
|
-
}>;
|
|
3822
4060
|
memoryFacts: import("@trpc/server").TRPCQueryProcedure<{
|
|
3823
4061
|
input: {
|
|
3824
4062
|
limit?: number | undefined;
|
|
@@ -3857,31 +4095,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3857
4095
|
};
|
|
3858
4096
|
meta: object;
|
|
3859
4097
|
}>;
|
|
3860
|
-
skills: import("@trpc/server").TRPCQueryProcedure<{
|
|
3861
|
-
input: Record<string, never>;
|
|
3862
|
-
output: {
|
|
3863
|
-
skills: any[];
|
|
3864
|
-
};
|
|
3865
|
-
meta: object;
|
|
3866
|
-
}>;
|
|
3867
|
-
createSkill: import("@trpc/server").TRPCMutationProcedure<{
|
|
3868
|
-
input: {
|
|
3869
|
-
name: string;
|
|
3870
|
-
description: string;
|
|
3871
|
-
parameters?: Record<string, string> | undefined;
|
|
3872
|
-
category?: "context" | "action" | undefined;
|
|
3873
|
-
};
|
|
3874
|
-
output: {
|
|
3875
|
-
skill: any;
|
|
3876
|
-
};
|
|
3877
|
-
meta: object;
|
|
3878
|
-
}>;
|
|
3879
4098
|
executionStats: import("@trpc/server").TRPCQueryProcedure<{
|
|
3880
4099
|
input: {
|
|
3881
4100
|
since?: string | undefined;
|
|
3882
4101
|
};
|
|
3883
4102
|
output: {
|
|
3884
|
-
stats:
|
|
4103
|
+
stats: ExecutionStats;
|
|
3885
4104
|
};
|
|
3886
4105
|
meta: object;
|
|
3887
4106
|
}>;
|
|
@@ -3892,7 +4111,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3892
4111
|
agentType?: string | undefined;
|
|
3893
4112
|
};
|
|
3894
4113
|
output: {
|
|
3895
|
-
executions:
|
|
4114
|
+
executions: ExecutionRecord[];
|
|
3896
4115
|
};
|
|
3897
4116
|
meta: object;
|
|
3898
4117
|
}>;
|
|
@@ -3901,14 +4120,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3901
4120
|
id: string;
|
|
3902
4121
|
};
|
|
3903
4122
|
output: {
|
|
3904
|
-
execution:
|
|
3905
|
-
toolLogs:
|
|
4123
|
+
execution: ExecutionRecord;
|
|
4124
|
+
toolLogs: ToolLog[];
|
|
3906
4125
|
};
|
|
3907
4126
|
meta: object;
|
|
3908
4127
|
}>;
|
|
3909
4128
|
proposals: import("@trpc/server").TRPCQueryProcedure<{
|
|
3910
4129
|
input: {
|
|
3911
|
-
status?: "
|
|
4130
|
+
status?: "approved" | "denied" | "pending" | undefined;
|
|
3912
4131
|
};
|
|
3913
4132
|
output: {
|
|
3914
4133
|
proposals: any[];
|
|
@@ -3979,19 +4198,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3979
4198
|
capabilities: string[];
|
|
3980
4199
|
pricing: string;
|
|
3981
4200
|
version: string | null;
|
|
4201
|
+
webhookUrl: string | null;
|
|
4202
|
+
lastHealthCheck: Date | null;
|
|
4203
|
+
lastHealthStatus: any;
|
|
3982
4204
|
}[];
|
|
3983
4205
|
};
|
|
3984
4206
|
meta: object;
|
|
3985
4207
|
}>;
|
|
3986
|
-
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3987
|
-
input: {
|
|
3988
|
-
capability: string;
|
|
3989
|
-
};
|
|
3990
|
-
output: {
|
|
3991
|
-
available: boolean;
|
|
3992
|
-
};
|
|
3993
|
-
meta: object;
|
|
3994
|
-
}>;
|
|
3995
4208
|
checkHealth: import("@trpc/server").TRPCMutationProcedure<{
|
|
3996
4209
|
input: {
|
|
3997
4210
|
serviceId: string;
|
|
@@ -4020,6 +4233,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4020
4233
|
};
|
|
4021
4234
|
meta: object;
|
|
4022
4235
|
}>;
|
|
4236
|
+
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
4237
|
+
input: {
|
|
4238
|
+
capability: string;
|
|
4239
|
+
};
|
|
4240
|
+
output: {
|
|
4241
|
+
available: boolean;
|
|
4242
|
+
};
|
|
4243
|
+
meta: object;
|
|
4244
|
+
}>;
|
|
4023
4245
|
}>>;
|
|
4024
4246
|
search: import("@trpc/server").TRPCBuiltRouter<{
|
|
4025
4247
|
ctx: Context;
|
|
@@ -4041,13 +4263,19 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4041
4263
|
semantic: import("@trpc/server").TRPCQueryProcedure<{
|
|
4042
4264
|
input: {
|
|
4043
4265
|
query: string;
|
|
4044
|
-
type?:
|
|
4266
|
+
type?: string | undefined;
|
|
4045
4267
|
limit?: number | undefined;
|
|
4046
4268
|
threshold?: number | undefined;
|
|
4047
4269
|
};
|
|
4048
4270
|
output: {
|
|
4049
|
-
entities:
|
|
4050
|
-
|
|
4271
|
+
entities: {
|
|
4272
|
+
id: any;
|
|
4273
|
+
type: any;
|
|
4274
|
+
title: any;
|
|
4275
|
+
preview: any;
|
|
4276
|
+
similarity: number;
|
|
4277
|
+
createdAt: any;
|
|
4278
|
+
}[];
|
|
4051
4279
|
};
|
|
4052
4280
|
meta: object;
|
|
4053
4281
|
}>;
|
|
@@ -4092,6 +4320,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4092
4320
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
4093
4321
|
transformer: true;
|
|
4094
4322
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4323
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4324
|
+
input: {
|
|
4325
|
+
type?: string | undefined;
|
|
4326
|
+
limit?: number | undefined;
|
|
4327
|
+
offset?: number | undefined;
|
|
4328
|
+
};
|
|
4329
|
+
output: {
|
|
4330
|
+
relations: {
|
|
4331
|
+
workspaceId: string;
|
|
4332
|
+
userId: string;
|
|
4333
|
+
id: string;
|
|
4334
|
+
createdAt: Date;
|
|
4335
|
+
type: string;
|
|
4336
|
+
metadata: unknown;
|
|
4337
|
+
sourceEntityId: string;
|
|
4338
|
+
targetEntityId: string;
|
|
4339
|
+
}[];
|
|
4340
|
+
};
|
|
4341
|
+
meta: object;
|
|
4342
|
+
}>;
|
|
4095
4343
|
listTypes: import("@trpc/server").TRPCQueryProcedure<{
|
|
4096
4344
|
input: void;
|
|
4097
4345
|
output: {
|
|
@@ -4695,9 +4943,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4695
4943
|
}[] | undefined;
|
|
4696
4944
|
layoutConfig?: {
|
|
4697
4945
|
pinnedApps?: string[] | undefined;
|
|
4698
|
-
sidebarApps?: string[] | undefined;
|
|
4699
4946
|
defaultView?: string | undefined;
|
|
4700
4947
|
theme?: string | undefined;
|
|
4948
|
+
sidebarItems?: {
|
|
4949
|
+
kind: "view" | "external" | "app";
|
|
4950
|
+
appId?: string | undefined;
|
|
4951
|
+
viewName?: string | undefined;
|
|
4952
|
+
url?: string | undefined;
|
|
4953
|
+
label?: string | undefined;
|
|
4954
|
+
icon?: string | undefined;
|
|
4955
|
+
}[] | undefined;
|
|
4701
4956
|
} | undefined;
|
|
4702
4957
|
entityLinks?: {
|
|
4703
4958
|
sourceProfileSlug: string;
|
|
@@ -4719,6 +4974,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4719
4974
|
};
|
|
4720
4975
|
meta: object;
|
|
4721
4976
|
}>;
|
|
4977
|
+
ensurePodAdminWorkspace: import("@trpc/server").TRPCMutationProcedure<{
|
|
4978
|
+
input: void;
|
|
4979
|
+
output: {
|
|
4980
|
+
workspaceId: string;
|
|
4981
|
+
created: boolean;
|
|
4982
|
+
};
|
|
4983
|
+
meta: object;
|
|
4984
|
+
}>;
|
|
4722
4985
|
seedPlugin: import("@trpc/server").TRPCMutationProcedure<{
|
|
4723
4986
|
input: {
|
|
4724
4987
|
pluginId: string;
|
|
@@ -4747,6 +5010,32 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4747
5010
|
} | null;
|
|
4748
5011
|
meta: object;
|
|
4749
5012
|
}>;
|
|
5013
|
+
getMcpServers: import("@trpc/server").TRPCQueryProcedure<{
|
|
5014
|
+
input: {
|
|
5015
|
+
workspaceId: string;
|
|
5016
|
+
};
|
|
5017
|
+
output: McpServerConfig[];
|
|
5018
|
+
meta: object;
|
|
5019
|
+
}>;
|
|
5020
|
+
updateMcpServers: import("@trpc/server").TRPCMutationProcedure<{
|
|
5021
|
+
input: {
|
|
5022
|
+
workspaceId: string;
|
|
5023
|
+
servers: {
|
|
5024
|
+
id: string;
|
|
5025
|
+
name: string;
|
|
5026
|
+
transport: "stdio" | "http";
|
|
5027
|
+
command?: string | undefined;
|
|
5028
|
+
args?: string[] | undefined;
|
|
5029
|
+
url?: string | undefined;
|
|
5030
|
+
env?: Record<string, string> | undefined;
|
|
5031
|
+
enabled?: boolean | undefined;
|
|
5032
|
+
}[];
|
|
5033
|
+
};
|
|
5034
|
+
output: {
|
|
5035
|
+
count: number;
|
|
5036
|
+
};
|
|
5037
|
+
meta: object;
|
|
5038
|
+
}>;
|
|
4750
5039
|
}>>;
|
|
4751
5040
|
views: import("@trpc/server").TRPCBuiltRouter<{
|
|
4752
5041
|
ctx: Context;
|
|
@@ -4757,7 +5046,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4757
5046
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4758
5047
|
input: {
|
|
4759
5048
|
name: string;
|
|
4760
|
-
type:
|
|
5049
|
+
type: string;
|
|
4761
5050
|
workspaceId?: string | undefined;
|
|
4762
5051
|
description?: string | undefined;
|
|
4763
5052
|
scopeProfileIds?: string[] | undefined;
|
|
@@ -4780,7 +5069,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4780
5069
|
};
|
|
4781
5070
|
output: {
|
|
4782
5071
|
view: any;
|
|
4783
|
-
documentId:
|
|
5072
|
+
documentId: null;
|
|
4784
5073
|
status: string;
|
|
4785
5074
|
message: string;
|
|
4786
5075
|
proposalId: string;
|
|
@@ -4811,7 +5100,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4811
5100
|
snapshotUpdatedAt: Date | null;
|
|
4812
5101
|
embeddedViewIds: string[] | null;
|
|
4813
5102
|
};
|
|
4814
|
-
documentId: string;
|
|
5103
|
+
documentId: string | null;
|
|
4815
5104
|
status: string;
|
|
4816
5105
|
message?: undefined;
|
|
4817
5106
|
proposalId?: undefined;
|
|
@@ -4821,7 +5110,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4821
5110
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4822
5111
|
input: {
|
|
4823
5112
|
workspaceIds?: string[] | undefined;
|
|
4824
|
-
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "
|
|
5113
|
+
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
4825
5114
|
};
|
|
4826
5115
|
output: {
|
|
4827
5116
|
name: string;
|
|
@@ -5047,7 +5336,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5047
5336
|
embeddedViewIds?: string[] | undefined;
|
|
5048
5337
|
schemaSnapshot?: Record<string, any> | undefined;
|
|
5049
5338
|
snapshotUpdatedAt?: Date | undefined;
|
|
5050
|
-
type?:
|
|
5339
|
+
type?: string | undefined;
|
|
5051
5340
|
};
|
|
5052
5341
|
output: {
|
|
5053
5342
|
status: string;
|
|
@@ -5664,7 +5953,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5664
5953
|
fieldMapping: Record<string, {
|
|
5665
5954
|
slot: string;
|
|
5666
5955
|
renderer?: {
|
|
5667
|
-
type: "number" | "date" | "relations" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5956
|
+
type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5668
5957
|
variant?: string | undefined;
|
|
5669
5958
|
size?: string | undefined;
|
|
5670
5959
|
format?: string | undefined;
|
|
@@ -5778,7 +6067,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5778
6067
|
fieldMapping: Record<string, {
|
|
5779
6068
|
slot: string;
|
|
5780
6069
|
renderer?: {
|
|
5781
|
-
type: "number" | "date" | "relations" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
6070
|
+
type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5782
6071
|
variant?: string | undefined;
|
|
5783
6072
|
size?: string | undefined;
|
|
5784
6073
|
format?: string | undefined;
|
|
@@ -5956,6 +6245,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5956
6245
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
5957
6246
|
input: {
|
|
5958
6247
|
workspaceId?: string | undefined;
|
|
6248
|
+
kind?: "code" | "instruction" | undefined;
|
|
6249
|
+
scope?: "workspace" | "user" | undefined;
|
|
5959
6250
|
status?: "error" | "active" | "inactive" | "all" | undefined;
|
|
5960
6251
|
limit?: number | undefined;
|
|
5961
6252
|
offset?: number | undefined;
|
|
@@ -5979,6 +6270,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5979
6270
|
name: string;
|
|
5980
6271
|
code: string;
|
|
5981
6272
|
workspaceId?: string | undefined;
|
|
6273
|
+
kind?: "code" | "instruction" | undefined;
|
|
6274
|
+
scope?: "workspace" | "user" | undefined;
|
|
6275
|
+
agentTypes?: string[] | undefined;
|
|
5982
6276
|
description?: string | undefined;
|
|
5983
6277
|
parameters?: Record<string, unknown> | undefined;
|
|
5984
6278
|
category?: string | undefined;
|
|
@@ -5999,6 +6293,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5999
6293
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6000
6294
|
input: {
|
|
6001
6295
|
id: string;
|
|
6296
|
+
kind?: "code" | "instruction" | undefined;
|
|
6297
|
+
scope?: "workspace" | "user" | undefined;
|
|
6298
|
+
agentTypes?: string[] | null | undefined;
|
|
6002
6299
|
name?: string | undefined;
|
|
6003
6300
|
description?: string | undefined;
|
|
6004
6301
|
code?: string | undefined;
|
|
@@ -6029,6 +6326,19 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6029
6326
|
};
|
|
6030
6327
|
meta: object;
|
|
6031
6328
|
}>;
|
|
6329
|
+
execute: import("@trpc/server").TRPCMutationProcedure<{
|
|
6330
|
+
input: {
|
|
6331
|
+
id: string;
|
|
6332
|
+
input?: Record<string, unknown> | undefined;
|
|
6333
|
+
};
|
|
6334
|
+
output: {
|
|
6335
|
+
success: boolean;
|
|
6336
|
+
result?: unknown;
|
|
6337
|
+
error?: string;
|
|
6338
|
+
executionTimeMs: number;
|
|
6339
|
+
};
|
|
6340
|
+
meta: object;
|
|
6341
|
+
}>;
|
|
6032
6342
|
installFromUrl: import("@trpc/server").TRPCMutationProcedure<{
|
|
6033
6343
|
input: {
|
|
6034
6344
|
url: string;
|
|
@@ -6038,7 +6348,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6038
6348
|
id: string;
|
|
6039
6349
|
name: string;
|
|
6040
6350
|
status: "installed";
|
|
6041
|
-
|
|
6351
|
+
kind: "instruction";
|
|
6042
6352
|
source: "custom" | "clawhub" | "zeroclaw";
|
|
6043
6353
|
version: string;
|
|
6044
6354
|
};
|
|
@@ -6281,6 +6591,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6281
6591
|
uiHints: unknown;
|
|
6282
6592
|
displayName: string;
|
|
6283
6593
|
parentProfileId: string | null;
|
|
6594
|
+
defaultValues: unknown;
|
|
6284
6595
|
}[];
|
|
6285
6596
|
};
|
|
6286
6597
|
meta: object;
|
|
@@ -6303,6 +6614,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6303
6614
|
uiHints: unknown;
|
|
6304
6615
|
displayName: string;
|
|
6305
6616
|
parentProfileId: string | null;
|
|
6617
|
+
defaultValues: unknown;
|
|
6306
6618
|
};
|
|
6307
6619
|
effectiveProperties: EffectiveProperty[];
|
|
6308
6620
|
};
|
|
@@ -6314,6 +6626,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6314
6626
|
displayName: string;
|
|
6315
6627
|
parentProfileId?: string | undefined;
|
|
6316
6628
|
uiHints?: Record<string, unknown> | undefined;
|
|
6629
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6317
6630
|
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6318
6631
|
allowedWorkspaceIds?: string[] | undefined;
|
|
6319
6632
|
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
@@ -6334,6 +6647,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6334
6647
|
uiHints: unknown;
|
|
6335
6648
|
displayName: string;
|
|
6336
6649
|
parentProfileId: string | null;
|
|
6650
|
+
defaultValues: unknown;
|
|
6337
6651
|
};
|
|
6338
6652
|
existing: boolean;
|
|
6339
6653
|
status?: undefined;
|
|
@@ -6359,6 +6673,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6359
6673
|
uiHints: unknown;
|
|
6360
6674
|
displayName: string;
|
|
6361
6675
|
parentProfileId: string | null;
|
|
6676
|
+
defaultValues: unknown;
|
|
6362
6677
|
};
|
|
6363
6678
|
existing?: undefined;
|
|
6364
6679
|
status?: undefined;
|
|
@@ -6373,6 +6688,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6373
6688
|
displayName?: string | undefined;
|
|
6374
6689
|
parentProfileId?: string | null | undefined;
|
|
6375
6690
|
uiHints?: Record<string, unknown> | undefined;
|
|
6691
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6376
6692
|
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6377
6693
|
allowedWorkspaceIds?: string[] | undefined;
|
|
6378
6694
|
};
|
|
@@ -6390,6 +6706,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6390
6706
|
uiHints: unknown;
|
|
6391
6707
|
displayName: string;
|
|
6392
6708
|
parentProfileId: string | null;
|
|
6709
|
+
defaultValues: unknown;
|
|
6393
6710
|
};
|
|
6394
6711
|
};
|
|
6395
6712
|
meta: object;
|
|
@@ -6430,6 +6747,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6430
6747
|
uiHints: unknown;
|
|
6431
6748
|
displayName: string;
|
|
6432
6749
|
parentProfileId: string | null;
|
|
6750
|
+
defaultValues: unknown;
|
|
6433
6751
|
}[];
|
|
6434
6752
|
};
|
|
6435
6753
|
meta: object;
|
|
@@ -6462,6 +6780,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6462
6780
|
uiHints: unknown;
|
|
6463
6781
|
displayName: string;
|
|
6464
6782
|
parentProfileId: string | null;
|
|
6783
|
+
defaultValues: unknown;
|
|
6465
6784
|
}[];
|
|
6466
6785
|
};
|
|
6467
6786
|
meta: object;
|
|
@@ -6845,6 +7164,259 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6845
7164
|
meta: object;
|
|
6846
7165
|
}>;
|
|
6847
7166
|
}>>;
|
|
7167
|
+
mcpServers: import("@trpc/server").TRPCBuiltRouter<{
|
|
7168
|
+
ctx: Context;
|
|
7169
|
+
meta: object;
|
|
7170
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
7171
|
+
transformer: true;
|
|
7172
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7173
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7174
|
+
input: void;
|
|
7175
|
+
output: {
|
|
7176
|
+
servers: {
|
|
7177
|
+
name: string;
|
|
7178
|
+
workspaceId: string;
|
|
7179
|
+
id: string;
|
|
7180
|
+
errorMessage: string | null;
|
|
7181
|
+
updatedAt: Date;
|
|
7182
|
+
createdAt: Date;
|
|
7183
|
+
metadata: Record<string, unknown>;
|
|
7184
|
+
status: McpStatus;
|
|
7185
|
+
description: string | null;
|
|
7186
|
+
url: string | null;
|
|
7187
|
+
enabled: boolean;
|
|
7188
|
+
slug: string;
|
|
7189
|
+
transport: McpTransport;
|
|
7190
|
+
command: string | null;
|
|
7191
|
+
args: string[];
|
|
7192
|
+
env: Record<string, string>;
|
|
7193
|
+
approved: boolean;
|
|
7194
|
+
lastPingAt: Date | null;
|
|
7195
|
+
}[];
|
|
7196
|
+
};
|
|
7197
|
+
meta: object;
|
|
7198
|
+
}>;
|
|
7199
|
+
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
7200
|
+
input: {
|
|
7201
|
+
slug: string;
|
|
7202
|
+
name: string;
|
|
7203
|
+
transport: "sse" | "stdio" | "http";
|
|
7204
|
+
description?: string | undefined;
|
|
7205
|
+
command?: string | undefined;
|
|
7206
|
+
args?: string[] | undefined;
|
|
7207
|
+
url?: string | undefined;
|
|
7208
|
+
env?: Record<string, string> | undefined;
|
|
7209
|
+
};
|
|
7210
|
+
output: {
|
|
7211
|
+
server: {
|
|
7212
|
+
name: string;
|
|
7213
|
+
workspaceId: string;
|
|
7214
|
+
id: string;
|
|
7215
|
+
errorMessage: string | null;
|
|
7216
|
+
updatedAt: Date;
|
|
7217
|
+
createdAt: Date;
|
|
7218
|
+
metadata: Record<string, unknown>;
|
|
7219
|
+
status: McpStatus;
|
|
7220
|
+
description: string | null;
|
|
7221
|
+
url: string | null;
|
|
7222
|
+
enabled: boolean;
|
|
7223
|
+
slug: string;
|
|
7224
|
+
transport: McpTransport;
|
|
7225
|
+
command: string | null;
|
|
7226
|
+
args: string[];
|
|
7227
|
+
env: Record<string, string>;
|
|
7228
|
+
approved: boolean;
|
|
7229
|
+
lastPingAt: Date | null;
|
|
7230
|
+
};
|
|
7231
|
+
};
|
|
7232
|
+
meta: object;
|
|
7233
|
+
}>;
|
|
7234
|
+
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
7235
|
+
input: {
|
|
7236
|
+
id: string;
|
|
7237
|
+
enabled?: boolean | undefined;
|
|
7238
|
+
slug?: string | undefined;
|
|
7239
|
+
name?: string | undefined;
|
|
7240
|
+
description?: string | undefined;
|
|
7241
|
+
transport?: "sse" | "stdio" | "http" | undefined;
|
|
7242
|
+
command?: string | undefined;
|
|
7243
|
+
args?: string[] | undefined;
|
|
7244
|
+
url?: string | undefined;
|
|
7245
|
+
env?: Record<string, string> | undefined;
|
|
7246
|
+
};
|
|
7247
|
+
output: {
|
|
7248
|
+
server: {
|
|
7249
|
+
id: string;
|
|
7250
|
+
workspaceId: string;
|
|
7251
|
+
slug: string;
|
|
7252
|
+
name: string;
|
|
7253
|
+
description: string | null;
|
|
7254
|
+
transport: McpTransport;
|
|
7255
|
+
command: string | null;
|
|
7256
|
+
args: string[];
|
|
7257
|
+
url: string | null;
|
|
7258
|
+
env: Record<string, string>;
|
|
7259
|
+
enabled: boolean;
|
|
7260
|
+
approved: boolean;
|
|
7261
|
+
status: McpStatus;
|
|
7262
|
+
lastPingAt: Date | null;
|
|
7263
|
+
errorMessage: string | null;
|
|
7264
|
+
metadata: Record<string, unknown>;
|
|
7265
|
+
createdAt: Date;
|
|
7266
|
+
updatedAt: Date;
|
|
7267
|
+
};
|
|
7268
|
+
};
|
|
7269
|
+
meta: object;
|
|
7270
|
+
}>;
|
|
7271
|
+
setApproved: import("@trpc/server").TRPCMutationProcedure<{
|
|
7272
|
+
input: {
|
|
7273
|
+
id: string;
|
|
7274
|
+
approved: boolean;
|
|
7275
|
+
};
|
|
7276
|
+
output: {
|
|
7277
|
+
server: {
|
|
7278
|
+
id: string;
|
|
7279
|
+
workspaceId: string;
|
|
7280
|
+
slug: string;
|
|
7281
|
+
name: string;
|
|
7282
|
+
description: string | null;
|
|
7283
|
+
transport: McpTransport;
|
|
7284
|
+
command: string | null;
|
|
7285
|
+
args: string[];
|
|
7286
|
+
url: string | null;
|
|
7287
|
+
env: Record<string, string>;
|
|
7288
|
+
enabled: boolean;
|
|
7289
|
+
approved: boolean;
|
|
7290
|
+
status: McpStatus;
|
|
7291
|
+
lastPingAt: Date | null;
|
|
7292
|
+
errorMessage: string | null;
|
|
7293
|
+
metadata: Record<string, unknown>;
|
|
7294
|
+
createdAt: Date;
|
|
7295
|
+
updatedAt: Date;
|
|
7296
|
+
};
|
|
7297
|
+
};
|
|
7298
|
+
meta: object;
|
|
7299
|
+
}>;
|
|
7300
|
+
ping: import("@trpc/server").TRPCMutationProcedure<{
|
|
7301
|
+
input: {
|
|
7302
|
+
id: string;
|
|
7303
|
+
};
|
|
7304
|
+
output: {
|
|
7305
|
+
server: {
|
|
7306
|
+
id: string;
|
|
7307
|
+
workspaceId: string;
|
|
7308
|
+
slug: string;
|
|
7309
|
+
name: string;
|
|
7310
|
+
description: string | null;
|
|
7311
|
+
transport: McpTransport;
|
|
7312
|
+
command: string | null;
|
|
7313
|
+
args: string[];
|
|
7314
|
+
url: string | null;
|
|
7315
|
+
env: Record<string, string>;
|
|
7316
|
+
enabled: boolean;
|
|
7317
|
+
approved: boolean;
|
|
7318
|
+
status: McpStatus;
|
|
7319
|
+
lastPingAt: Date | null;
|
|
7320
|
+
errorMessage: string | null;
|
|
7321
|
+
metadata: Record<string, unknown>;
|
|
7322
|
+
createdAt: Date;
|
|
7323
|
+
updatedAt: Date;
|
|
7324
|
+
};
|
|
7325
|
+
};
|
|
7326
|
+
meta: object;
|
|
7327
|
+
}>;
|
|
7328
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
7329
|
+
input: {
|
|
7330
|
+
id: string;
|
|
7331
|
+
};
|
|
7332
|
+
output: {
|
|
7333
|
+
success: boolean;
|
|
7334
|
+
};
|
|
7335
|
+
meta: object;
|
|
7336
|
+
}>;
|
|
7337
|
+
}>>;
|
|
7338
|
+
agentConfigs: import("@trpc/server").TRPCBuiltRouter<{
|
|
7339
|
+
ctx: Context;
|
|
7340
|
+
meta: object;
|
|
7341
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
7342
|
+
transformer: true;
|
|
7343
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7344
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7345
|
+
input: void;
|
|
7346
|
+
output: {
|
|
7347
|
+
configs: {
|
|
7348
|
+
workspaceId: string;
|
|
7349
|
+
userId: string;
|
|
7350
|
+
id: string;
|
|
7351
|
+
updatedAt: Date;
|
|
7352
|
+
createdAt: Date;
|
|
7353
|
+
agentType: string;
|
|
7354
|
+
promptAppend: string | null;
|
|
7355
|
+
extraToolIds: string[];
|
|
7356
|
+
disabledToolIds: string[];
|
|
7357
|
+
maxStepsOverride: number | null;
|
|
7358
|
+
modelOverride: string | null;
|
|
7359
|
+
}[];
|
|
7360
|
+
};
|
|
7361
|
+
meta: object;
|
|
7362
|
+
}>;
|
|
7363
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
7364
|
+
input: {
|
|
7365
|
+
agentType: string;
|
|
7366
|
+
};
|
|
7367
|
+
output: {
|
|
7368
|
+
config: {
|
|
7369
|
+
workspaceId: string;
|
|
7370
|
+
userId: string;
|
|
7371
|
+
id: string;
|
|
7372
|
+
updatedAt: Date;
|
|
7373
|
+
createdAt: Date;
|
|
7374
|
+
agentType: string;
|
|
7375
|
+
promptAppend: string | null;
|
|
7376
|
+
extraToolIds: string[];
|
|
7377
|
+
disabledToolIds: string[];
|
|
7378
|
+
maxStepsOverride: number | null;
|
|
7379
|
+
modelOverride: string | null;
|
|
7380
|
+
} | null;
|
|
7381
|
+
};
|
|
7382
|
+
meta: object;
|
|
7383
|
+
}>;
|
|
7384
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
7385
|
+
input: {
|
|
7386
|
+
agentType: string;
|
|
7387
|
+
promptAppend?: string | null | undefined;
|
|
7388
|
+
extraToolIds?: string[] | undefined;
|
|
7389
|
+
disabledToolIds?: string[] | undefined;
|
|
7390
|
+
maxStepsOverride?: number | null | undefined;
|
|
7391
|
+
modelOverride?: string | null | undefined;
|
|
7392
|
+
};
|
|
7393
|
+
output: {
|
|
7394
|
+
config: {
|
|
7395
|
+
workspaceId: string;
|
|
7396
|
+
userId: string;
|
|
7397
|
+
id: string;
|
|
7398
|
+
updatedAt: Date;
|
|
7399
|
+
createdAt: Date;
|
|
7400
|
+
agentType: string;
|
|
7401
|
+
promptAppend: string | null;
|
|
7402
|
+
extraToolIds: string[];
|
|
7403
|
+
disabledToolIds: string[];
|
|
7404
|
+
maxStepsOverride: number | null;
|
|
7405
|
+
modelOverride: string | null;
|
|
7406
|
+
};
|
|
7407
|
+
};
|
|
7408
|
+
meta: object;
|
|
7409
|
+
}>;
|
|
7410
|
+
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
7411
|
+
input: {
|
|
7412
|
+
agentType: string;
|
|
7413
|
+
};
|
|
7414
|
+
output: {
|
|
7415
|
+
success: boolean;
|
|
7416
|
+
};
|
|
7417
|
+
meta: object;
|
|
7418
|
+
}>;
|
|
7419
|
+
}>>;
|
|
6848
7420
|
}>>;
|
|
6849
7421
|
export type AppRouter = typeof coreRouter;
|
|
6850
7422
|
|