@synap-core/api-types 1.9.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 +552 -103
- package/package.json +1 -1
- package/src/generated.d.ts +552 -103
package/dist/generated.d.ts
CHANGED
|
@@ -580,11 +580,25 @@ export interface InputOverride {
|
|
|
580
580
|
* - Team (multiple users with roles)
|
|
581
581
|
* - Enterprise (advanced features)
|
|
582
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
|
+
}
|
|
583
596
|
export interface WorkspaceLayoutConfig {
|
|
584
597
|
pinnedApps?: string[];
|
|
585
|
-
sidebarApps?: string[];
|
|
586
598
|
defaultView?: string;
|
|
587
599
|
theme?: string;
|
|
600
|
+
/** Ordered list of sidebar items. When set, replaces the generic app list. */
|
|
601
|
+
sidebarItems?: WorkspaceSidebarItem[];
|
|
588
602
|
}
|
|
589
603
|
/**
|
|
590
604
|
* MCP server configuration — stored per workspace.
|
|
@@ -639,6 +653,12 @@ export interface WorkspaceSettings {
|
|
|
639
653
|
templateName?: string;
|
|
640
654
|
/** Slug of the control plane package used to create this workspace. */
|
|
641
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;
|
|
642
662
|
/** Version of the package at time of creation. */
|
|
643
663
|
packageVersion?: string;
|
|
644
664
|
/** Who/what created this workspace: user, control-plane provisioning, or plugin seed */
|
|
@@ -865,6 +885,20 @@ declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
865
885
|
dialect: "pg";
|
|
866
886
|
}>;
|
|
867
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";
|
|
868
902
|
declare enum PropertyValueType {
|
|
869
903
|
STRING = "string",
|
|
870
904
|
NUMBER = "number",
|
|
@@ -1329,6 +1363,39 @@ export interface WorkerMetadata {
|
|
|
1329
1363
|
outputs?: string[];
|
|
1330
1364
|
category: "table" | "shared" | "ai";
|
|
1331
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
|
+
}
|
|
1332
1399
|
/**
|
|
1333
1400
|
* Core API Router
|
|
1334
1401
|
*/
|
|
@@ -1367,7 +1434,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1367
1434
|
data: Record<string, unknown>;
|
|
1368
1435
|
version: number;
|
|
1369
1436
|
metadata?: Record<string, unknown> | undefined;
|
|
1370
|
-
source?: "
|
|
1437
|
+
source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
|
|
1371
1438
|
causationId?: string | undefined;
|
|
1372
1439
|
correlationId?: string | undefined;
|
|
1373
1440
|
};
|
|
@@ -1703,9 +1770,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1703
1770
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
1704
1771
|
transformer: true;
|
|
1705
1772
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1706
|
-
|
|
1773
|
+
createChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1707
1774
|
input: {
|
|
1708
|
-
|
|
1775
|
+
parentChannelId?: string | undefined;
|
|
1709
1776
|
branchPurpose?: string | undefined;
|
|
1710
1777
|
agentId?: string | undefined;
|
|
1711
1778
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
@@ -1713,13 +1780,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1713
1780
|
inheritContext?: boolean | undefined;
|
|
1714
1781
|
};
|
|
1715
1782
|
output: {
|
|
1716
|
-
|
|
1783
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1717
1784
|
status: string;
|
|
1718
1785
|
message: string;
|
|
1719
|
-
|
|
1786
|
+
channel?: undefined;
|
|
1720
1787
|
} | {
|
|
1721
|
-
|
|
1722
|
-
|
|
1788
|
+
channelId: string;
|
|
1789
|
+
channel: {
|
|
1723
1790
|
workspaceId: string | null;
|
|
1724
1791
|
userId: string;
|
|
1725
1792
|
id: string;
|
|
@@ -1789,7 +1856,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1789
1856
|
content: string;
|
|
1790
1857
|
};
|
|
1791
1858
|
output: {
|
|
1792
|
-
|
|
1859
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1793
1860
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1794
1861
|
};
|
|
1795
1862
|
meta: object;
|
|
@@ -1800,7 +1867,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1800
1867
|
content: string;
|
|
1801
1868
|
};
|
|
1802
1869
|
output: {
|
|
1803
|
-
|
|
1870
|
+
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1804
1871
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1805
1872
|
};
|
|
1806
1873
|
meta: object;
|
|
@@ -1808,7 +1875,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1808
1875
|
sendMessage: import("@trpc/server").TRPCMutationProcedure<{
|
|
1809
1876
|
input: {
|
|
1810
1877
|
content: string;
|
|
1811
|
-
|
|
1878
|
+
channelId?: string | undefined;
|
|
1812
1879
|
workspaceId?: string | undefined;
|
|
1813
1880
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
1814
1881
|
agentHandle?: string | undefined;
|
|
@@ -1929,16 +1996,53 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1929
1996
|
};
|
|
1930
1997
|
meta: object;
|
|
1931
1998
|
}>;
|
|
1932
|
-
|
|
1999
|
+
listChannels: import("@trpc/server").TRPCQueryProcedure<{
|
|
1933
2000
|
input: {
|
|
1934
2001
|
workspaceId?: string | undefined;
|
|
1935
|
-
|
|
2002
|
+
channelType?: "main" | "branch" | "ai_thread" | undefined;
|
|
1936
2003
|
limit?: number | undefined;
|
|
1937
2004
|
contextObjectId?: string | undefined;
|
|
1938
2005
|
contextObjectType?: "entity" | "view" | "document" | undefined;
|
|
1939
2006
|
};
|
|
1940
2007
|
output: {
|
|
1941
|
-
|
|
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: {
|
|
1942
2046
|
hasAssistantMessage: boolean;
|
|
1943
2047
|
origin: string;
|
|
1944
2048
|
workspaceId: string | null;
|
|
@@ -1968,7 +2072,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1968
2072
|
}>;
|
|
1969
2073
|
getBranches: import("@trpc/server").TRPCQueryProcedure<{
|
|
1970
2074
|
input: {
|
|
1971
|
-
|
|
2075
|
+
parentChannelId: string;
|
|
1972
2076
|
};
|
|
1973
2077
|
output: {
|
|
1974
2078
|
branches: {
|
|
@@ -2004,8 +2108,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2004
2108
|
output: {
|
|
2005
2109
|
roots: BranchNodeResult[];
|
|
2006
2110
|
stats: {
|
|
2007
|
-
|
|
2008
|
-
|
|
2111
|
+
totalChannels: number;
|
|
2112
|
+
activeChannels: number;
|
|
2009
2113
|
pendingProposalsTotal: number;
|
|
2010
2114
|
};
|
|
2011
2115
|
proposalCounts: Record<string, number>;
|
|
@@ -2023,14 +2127,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2023
2127
|
};
|
|
2024
2128
|
meta: object;
|
|
2025
2129
|
}>;
|
|
2026
|
-
|
|
2130
|
+
getChannel: import("@trpc/server").TRPCQueryProcedure<{
|
|
2027
2131
|
input: {
|
|
2028
|
-
|
|
2132
|
+
channelId: string;
|
|
2029
2133
|
includeContext?: boolean | undefined;
|
|
2030
2134
|
includeBranches?: boolean | undefined;
|
|
2031
2135
|
};
|
|
2032
2136
|
output: {
|
|
2033
|
-
|
|
2137
|
+
channel: {
|
|
2034
2138
|
workspaceId: string | null;
|
|
2035
2139
|
userId: string;
|
|
2036
2140
|
id: string;
|
|
@@ -2069,9 +2173,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2069
2173
|
};
|
|
2070
2174
|
meta: object;
|
|
2071
2175
|
}>;
|
|
2072
|
-
|
|
2176
|
+
updateChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2073
2177
|
input: {
|
|
2074
|
-
|
|
2178
|
+
channelId: string;
|
|
2075
2179
|
title?: string | undefined;
|
|
2076
2180
|
agentId?: string | undefined;
|
|
2077
2181
|
agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | "onboarding" | undefined;
|
|
@@ -2079,23 +2183,23 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2079
2183
|
};
|
|
2080
2184
|
output: {
|
|
2081
2185
|
status: string;
|
|
2082
|
-
|
|
2186
|
+
channelId: string;
|
|
2083
2187
|
};
|
|
2084
2188
|
meta: object;
|
|
2085
2189
|
}>;
|
|
2086
|
-
|
|
2190
|
+
archiveChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2087
2191
|
input: {
|
|
2088
|
-
|
|
2192
|
+
channelId: string;
|
|
2089
2193
|
};
|
|
2090
2194
|
output: {
|
|
2091
2195
|
status: string;
|
|
2092
|
-
|
|
2196
|
+
channelId: string;
|
|
2093
2197
|
};
|
|
2094
2198
|
meta: object;
|
|
2095
2199
|
}>;
|
|
2096
2200
|
getBranchTree: import("@trpc/server").TRPCQueryProcedure<{
|
|
2097
2201
|
input: {
|
|
2098
|
-
|
|
2202
|
+
rootChannelId: string;
|
|
2099
2203
|
};
|
|
2100
2204
|
output: {
|
|
2101
2205
|
tree: BranchTreeNode | null;
|
|
@@ -2171,9 +2275,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2171
2275
|
};
|
|
2172
2276
|
meta: object;
|
|
2173
2277
|
}>;
|
|
2174
|
-
|
|
2278
|
+
getChannelContext: import("@trpc/server").TRPCQueryProcedure<{
|
|
2175
2279
|
input: {
|
|
2176
|
-
|
|
2280
|
+
channelId: string;
|
|
2177
2281
|
objectTypes?: ("entity" | "proposal" | "view" | "inbox_item" | "document")[] | undefined;
|
|
2178
2282
|
relationshipTypes?: ("created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent")[] | undefined;
|
|
2179
2283
|
};
|
|
@@ -2408,7 +2512,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2408
2512
|
data: Record<string, unknown>;
|
|
2409
2513
|
userId: string;
|
|
2410
2514
|
subjectId?: string | undefined;
|
|
2411
|
-
source?: "
|
|
2515
|
+
source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
|
|
2412
2516
|
correlationId?: string | undefined;
|
|
2413
2517
|
causationId?: string | undefined;
|
|
2414
2518
|
};
|
|
@@ -3636,6 +3740,93 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3636
3740
|
};
|
|
3637
3741
|
meta: object;
|
|
3638
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
|
+
}>;
|
|
3639
3830
|
}>>;
|
|
3640
3831
|
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
3641
3832
|
ctx: Context;
|
|
@@ -3860,50 +4051,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3860
4051
|
meta: object;
|
|
3861
4052
|
}>;
|
|
3862
4053
|
agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
3863
|
-
input:
|
|
4054
|
+
input: void;
|
|
3864
4055
|
output: {
|
|
3865
4056
|
agents: unknown[];
|
|
3866
4057
|
};
|
|
3867
4058
|
meta: object;
|
|
3868
4059
|
}>;
|
|
3869
|
-
toolDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
3870
|
-
input: Record<string, never>;
|
|
3871
|
-
output: {
|
|
3872
|
-
tools: unknown[];
|
|
3873
|
-
};
|
|
3874
|
-
meta: object;
|
|
3875
|
-
}>;
|
|
3876
|
-
agentConfig: import("@trpc/server").TRPCQueryProcedure<{
|
|
3877
|
-
input: {
|
|
3878
|
-
agentType: string;
|
|
3879
|
-
};
|
|
3880
|
-
output: {
|
|
3881
|
-
config: unknown;
|
|
3882
|
-
};
|
|
3883
|
-
meta: object;
|
|
3884
|
-
}>;
|
|
3885
|
-
saveAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
|
|
3886
|
-
input: {
|
|
3887
|
-
agentType: string;
|
|
3888
|
-
promptAppend?: string | null | undefined;
|
|
3889
|
-
extraToolIds?: string[] | undefined;
|
|
3890
|
-
disabledToolIds?: string[] | undefined;
|
|
3891
|
-
maxStepsOverride?: number | null | undefined;
|
|
3892
|
-
};
|
|
3893
|
-
output: {
|
|
3894
|
-
config: unknown;
|
|
3895
|
-
};
|
|
3896
|
-
meta: object;
|
|
3897
|
-
}>;
|
|
3898
|
-
deleteAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
|
|
3899
|
-
input: {
|
|
3900
|
-
agentType: string;
|
|
3901
|
-
};
|
|
3902
|
-
output: {
|
|
3903
|
-
success: boolean;
|
|
3904
|
-
};
|
|
3905
|
-
meta: object;
|
|
3906
|
-
}>;
|
|
3907
4060
|
memoryFacts: import("@trpc/server").TRPCQueryProcedure<{
|
|
3908
4061
|
input: {
|
|
3909
4062
|
limit?: number | undefined;
|
|
@@ -3942,31 +4095,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3942
4095
|
};
|
|
3943
4096
|
meta: object;
|
|
3944
4097
|
}>;
|
|
3945
|
-
skills: import("@trpc/server").TRPCQueryProcedure<{
|
|
3946
|
-
input: Record<string, never>;
|
|
3947
|
-
output: {
|
|
3948
|
-
skills: any[];
|
|
3949
|
-
};
|
|
3950
|
-
meta: object;
|
|
3951
|
-
}>;
|
|
3952
|
-
createSkill: import("@trpc/server").TRPCMutationProcedure<{
|
|
3953
|
-
input: {
|
|
3954
|
-
name: string;
|
|
3955
|
-
description: string;
|
|
3956
|
-
parameters?: Record<string, string> | undefined;
|
|
3957
|
-
category?: "context" | "action" | undefined;
|
|
3958
|
-
};
|
|
3959
|
-
output: {
|
|
3960
|
-
skill: any;
|
|
3961
|
-
};
|
|
3962
|
-
meta: object;
|
|
3963
|
-
}>;
|
|
3964
4098
|
executionStats: import("@trpc/server").TRPCQueryProcedure<{
|
|
3965
4099
|
input: {
|
|
3966
4100
|
since?: string | undefined;
|
|
3967
4101
|
};
|
|
3968
4102
|
output: {
|
|
3969
|
-
stats:
|
|
4103
|
+
stats: ExecutionStats;
|
|
3970
4104
|
};
|
|
3971
4105
|
meta: object;
|
|
3972
4106
|
}>;
|
|
@@ -3977,7 +4111,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3977
4111
|
agentType?: string | undefined;
|
|
3978
4112
|
};
|
|
3979
4113
|
output: {
|
|
3980
|
-
executions:
|
|
4114
|
+
executions: ExecutionRecord[];
|
|
3981
4115
|
};
|
|
3982
4116
|
meta: object;
|
|
3983
4117
|
}>;
|
|
@@ -3986,14 +4120,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3986
4120
|
id: string;
|
|
3987
4121
|
};
|
|
3988
4122
|
output: {
|
|
3989
|
-
execution:
|
|
3990
|
-
toolLogs:
|
|
4123
|
+
execution: ExecutionRecord;
|
|
4124
|
+
toolLogs: ToolLog[];
|
|
3991
4125
|
};
|
|
3992
4126
|
meta: object;
|
|
3993
4127
|
}>;
|
|
3994
4128
|
proposals: import("@trpc/server").TRPCQueryProcedure<{
|
|
3995
4129
|
input: {
|
|
3996
|
-
status?: "
|
|
4130
|
+
status?: "approved" | "denied" | "pending" | undefined;
|
|
3997
4131
|
};
|
|
3998
4132
|
output: {
|
|
3999
4133
|
proposals: any[];
|
|
@@ -4129,13 +4263,19 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4129
4263
|
semantic: import("@trpc/server").TRPCQueryProcedure<{
|
|
4130
4264
|
input: {
|
|
4131
4265
|
query: string;
|
|
4132
|
-
type?:
|
|
4266
|
+
type?: string | undefined;
|
|
4133
4267
|
limit?: number | undefined;
|
|
4134
4268
|
threshold?: number | undefined;
|
|
4135
4269
|
};
|
|
4136
4270
|
output: {
|
|
4137
|
-
entities:
|
|
4138
|
-
|
|
4271
|
+
entities: {
|
|
4272
|
+
id: any;
|
|
4273
|
+
type: any;
|
|
4274
|
+
title: any;
|
|
4275
|
+
preview: any;
|
|
4276
|
+
similarity: number;
|
|
4277
|
+
createdAt: any;
|
|
4278
|
+
}[];
|
|
4139
4279
|
};
|
|
4140
4280
|
meta: object;
|
|
4141
4281
|
}>;
|
|
@@ -4180,6 +4320,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4180
4320
|
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
4181
4321
|
transformer: true;
|
|
4182
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
|
+
}>;
|
|
4183
4343
|
listTypes: import("@trpc/server").TRPCQueryProcedure<{
|
|
4184
4344
|
input: void;
|
|
4185
4345
|
output: {
|
|
@@ -4783,9 +4943,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4783
4943
|
}[] | undefined;
|
|
4784
4944
|
layoutConfig?: {
|
|
4785
4945
|
pinnedApps?: string[] | undefined;
|
|
4786
|
-
sidebarApps?: string[] | undefined;
|
|
4787
4946
|
defaultView?: string | undefined;
|
|
4788
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;
|
|
4789
4956
|
} | undefined;
|
|
4790
4957
|
entityLinks?: {
|
|
4791
4958
|
sourceProfileSlug: string;
|
|
@@ -4807,6 +4974,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4807
4974
|
};
|
|
4808
4975
|
meta: object;
|
|
4809
4976
|
}>;
|
|
4977
|
+
ensurePodAdminWorkspace: import("@trpc/server").TRPCMutationProcedure<{
|
|
4978
|
+
input: void;
|
|
4979
|
+
output: {
|
|
4980
|
+
workspaceId: string;
|
|
4981
|
+
created: boolean;
|
|
4982
|
+
};
|
|
4983
|
+
meta: object;
|
|
4984
|
+
}>;
|
|
4810
4985
|
seedPlugin: import("@trpc/server").TRPCMutationProcedure<{
|
|
4811
4986
|
input: {
|
|
4812
4987
|
pluginId: string;
|
|
@@ -4871,7 +5046,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4871
5046
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4872
5047
|
input: {
|
|
4873
5048
|
name: string;
|
|
4874
|
-
type:
|
|
5049
|
+
type: string;
|
|
4875
5050
|
workspaceId?: string | undefined;
|
|
4876
5051
|
description?: string | undefined;
|
|
4877
5052
|
scopeProfileIds?: string[] | undefined;
|
|
@@ -4935,7 +5110,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4935
5110
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4936
5111
|
input: {
|
|
4937
5112
|
workspaceIds?: string[] | undefined;
|
|
4938
|
-
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "
|
|
5113
|
+
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
4939
5114
|
};
|
|
4940
5115
|
output: {
|
|
4941
5116
|
name: string;
|
|
@@ -5161,7 +5336,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5161
5336
|
embeddedViewIds?: string[] | undefined;
|
|
5162
5337
|
schemaSnapshot?: Record<string, any> | undefined;
|
|
5163
5338
|
snapshotUpdatedAt?: Date | undefined;
|
|
5164
|
-
type?:
|
|
5339
|
+
type?: string | undefined;
|
|
5165
5340
|
};
|
|
5166
5341
|
output: {
|
|
5167
5342
|
status: string;
|
|
@@ -5778,7 +5953,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5778
5953
|
fieldMapping: Record<string, {
|
|
5779
5954
|
slot: string;
|
|
5780
5955
|
renderer?: {
|
|
5781
|
-
type: "number" | "date" | "relations" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5956
|
+
type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5782
5957
|
variant?: string | undefined;
|
|
5783
5958
|
size?: string | undefined;
|
|
5784
5959
|
format?: string | undefined;
|
|
@@ -5892,7 +6067,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5892
6067
|
fieldMapping: Record<string, {
|
|
5893
6068
|
slot: string;
|
|
5894
6069
|
renderer?: {
|
|
5895
|
-
type: "number" | "date" | "relations" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
6070
|
+
type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5896
6071
|
variant?: string | undefined;
|
|
5897
6072
|
size?: string | undefined;
|
|
5898
6073
|
format?: string | undefined;
|
|
@@ -6070,6 +6245,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6070
6245
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
6071
6246
|
input: {
|
|
6072
6247
|
workspaceId?: string | undefined;
|
|
6248
|
+
kind?: "code" | "instruction" | undefined;
|
|
6249
|
+
scope?: "workspace" | "user" | undefined;
|
|
6073
6250
|
status?: "error" | "active" | "inactive" | "all" | undefined;
|
|
6074
6251
|
limit?: number | undefined;
|
|
6075
6252
|
offset?: number | undefined;
|
|
@@ -6093,6 +6270,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6093
6270
|
name: string;
|
|
6094
6271
|
code: string;
|
|
6095
6272
|
workspaceId?: string | undefined;
|
|
6273
|
+
kind?: "code" | "instruction" | undefined;
|
|
6274
|
+
scope?: "workspace" | "user" | undefined;
|
|
6275
|
+
agentTypes?: string[] | undefined;
|
|
6096
6276
|
description?: string | undefined;
|
|
6097
6277
|
parameters?: Record<string, unknown> | undefined;
|
|
6098
6278
|
category?: string | undefined;
|
|
@@ -6113,6 +6293,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6113
6293
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
6114
6294
|
input: {
|
|
6115
6295
|
id: string;
|
|
6296
|
+
kind?: "code" | "instruction" | undefined;
|
|
6297
|
+
scope?: "workspace" | "user" | undefined;
|
|
6298
|
+
agentTypes?: string[] | null | undefined;
|
|
6116
6299
|
name?: string | undefined;
|
|
6117
6300
|
description?: string | undefined;
|
|
6118
6301
|
code?: string | undefined;
|
|
@@ -6143,6 +6326,19 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6143
6326
|
};
|
|
6144
6327
|
meta: object;
|
|
6145
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
|
+
}>;
|
|
6146
6342
|
installFromUrl: import("@trpc/server").TRPCMutationProcedure<{
|
|
6147
6343
|
input: {
|
|
6148
6344
|
url: string;
|
|
@@ -6152,7 +6348,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6152
6348
|
id: string;
|
|
6153
6349
|
name: string;
|
|
6154
6350
|
status: "installed";
|
|
6155
|
-
|
|
6351
|
+
kind: "instruction";
|
|
6156
6352
|
source: "custom" | "clawhub" | "zeroclaw";
|
|
6157
6353
|
version: string;
|
|
6158
6354
|
};
|
|
@@ -6968,6 +7164,259 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6968
7164
|
meta: object;
|
|
6969
7165
|
}>;
|
|
6970
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
|
+
}>>;
|
|
6971
7420
|
}>>;
|
|
6972
7421
|
export type AppRouter = typeof coreRouter;
|
|
6973
7422
|
|