@synap-core/api-types 1.8.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 +146 -23
- package/package.json +1 -1
- package/src/generated.d.ts +146 -23
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;
|
|
@@ -672,7 +674,9 @@ export interface WorkspaceSettings {
|
|
|
672
674
|
declare enum ProposalStatus {
|
|
673
675
|
PENDING = "pending",
|
|
674
676
|
APPROVED = "approved",
|
|
675
|
-
REJECTED = "rejected"
|
|
677
|
+
REJECTED = "rejected",
|
|
678
|
+
/** Action was on the autoApproveFor whitelist — executed immediately, audited here for traceability. */
|
|
679
|
+
AUTO_APPROVED = "auto_approved"
|
|
676
680
|
}
|
|
677
681
|
declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
678
682
|
name: "message_links";
|
|
@@ -1160,7 +1164,9 @@ declare enum AgentType {
|
|
|
1160
1164
|
KNOWLEDGE_SEARCH = "knowledge-search",
|
|
1161
1165
|
CODE = "code",
|
|
1162
1166
|
WRITING = "writing",
|
|
1163
|
-
ACTION = "action"
|
|
1167
|
+
ACTION = "action",
|
|
1168
|
+
ONBOARDING = "onboarding",
|
|
1169
|
+
WORKSPACE_CREATION = "workspace-creation"
|
|
1164
1170
|
}
|
|
1165
1171
|
/**
|
|
1166
1172
|
* Agent type as string literal union (for flexibility)
|
|
@@ -1251,6 +1257,11 @@ export type BranchNodeResult = {
|
|
|
1251
1257
|
lastActivity: Date;
|
|
1252
1258
|
depth: number;
|
|
1253
1259
|
};
|
|
1260
|
+
/** Recursive node returned by getBranchTree — mirrors the frontend BranchNode shape */
|
|
1261
|
+
export type BranchTreeNode = {
|
|
1262
|
+
channel: Channel;
|
|
1263
|
+
children: BranchTreeNode[];
|
|
1264
|
+
};
|
|
1254
1265
|
/**
|
|
1255
1266
|
* @synap/events - Schema-Driven Event Generator
|
|
1256
1267
|
*
|
|
@@ -1673,6 +1684,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1673
1684
|
};
|
|
1674
1685
|
meta: object;
|
|
1675
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
|
+
}>;
|
|
1676
1699
|
}>>;
|
|
1677
1700
|
chat: import("@trpc/server").TRPCBuiltRouter<{
|
|
1678
1701
|
ctx: Context;
|
|
@@ -1724,6 +1747,38 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1724
1747
|
};
|
|
1725
1748
|
meta: object;
|
|
1726
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
|
+
}>;
|
|
1727
1782
|
createDocumentComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
1728
1783
|
input: {
|
|
1729
1784
|
documentId: string;
|
|
@@ -2043,10 +2098,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2043
2098
|
rootThreadId: string;
|
|
2044
2099
|
};
|
|
2045
2100
|
output: {
|
|
2046
|
-
tree:
|
|
2047
|
-
channel: Channel;
|
|
2048
|
-
children: any[];
|
|
2049
|
-
} | null;
|
|
2101
|
+
tree: BranchTreeNode | null;
|
|
2050
2102
|
flatBranches: {
|
|
2051
2103
|
workspaceId: string | null;
|
|
2052
2104
|
userId: string;
|
|
@@ -2989,7 +3041,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2989
3041
|
lastSavedVersion: number;
|
|
2990
3042
|
workingState: string | null;
|
|
2991
3043
|
workingStateUpdatedAt: Date | null;
|
|
2992
|
-
entityId: string | null;
|
|
2993
3044
|
metadata: unknown;
|
|
2994
3045
|
createdAt: Date;
|
|
2995
3046
|
updatedAt: Date;
|
|
@@ -3127,7 +3178,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3127
3178
|
lastSavedVersion: number;
|
|
3128
3179
|
workingState: string | null;
|
|
3129
3180
|
workingStateUpdatedAt: Date | null;
|
|
3130
|
-
entityId: string | null;
|
|
3131
3181
|
metadata: unknown;
|
|
3132
3182
|
createdAt: Date;
|
|
3133
3183
|
updatedAt: Date;
|
|
@@ -3417,7 +3467,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3417
3467
|
apiKey: string;
|
|
3418
3468
|
pricing: string | null;
|
|
3419
3469
|
enabled: boolean;
|
|
3470
|
+
mcpApproved: boolean;
|
|
3420
3471
|
lastHealthCheck: Date | null;
|
|
3472
|
+
lastHealthStatus: string | null;
|
|
3421
3473
|
};
|
|
3422
3474
|
meta: object;
|
|
3423
3475
|
}>;
|
|
@@ -3460,7 +3512,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3460
3512
|
mcpEndpoint: string | null;
|
|
3461
3513
|
pricing: string | null;
|
|
3462
3514
|
enabled: boolean;
|
|
3515
|
+
mcpApproved: boolean;
|
|
3463
3516
|
lastHealthCheck: Date | null;
|
|
3517
|
+
lastHealthStatus: string | null;
|
|
3464
3518
|
};
|
|
3465
3519
|
meta: object;
|
|
3466
3520
|
}>;
|
|
@@ -3489,10 +3543,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3489
3543
|
pricing: string | null;
|
|
3490
3544
|
status: string;
|
|
3491
3545
|
enabled: boolean;
|
|
3546
|
+
mcpApproved: boolean;
|
|
3492
3547
|
metadata: Record<string, unknown> | null;
|
|
3493
3548
|
createdAt: Date;
|
|
3494
3549
|
updatedAt: Date;
|
|
3495
3550
|
lastHealthCheck: Date | null;
|
|
3551
|
+
lastHealthStatus: string | null;
|
|
3496
3552
|
};
|
|
3497
3553
|
meta: object;
|
|
3498
3554
|
}>;
|
|
@@ -3538,6 +3594,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3538
3594
|
};
|
|
3539
3595
|
meta: object;
|
|
3540
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
|
+
}>;
|
|
3541
3616
|
findByCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3542
3617
|
input: {
|
|
3543
3618
|
capability: string;
|
|
@@ -3551,6 +3626,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3551
3626
|
}[];
|
|
3552
3627
|
meta: object;
|
|
3553
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
|
+
}>;
|
|
3554
3639
|
}>>;
|
|
3555
3640
|
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
3556
3641
|
ctx: Context;
|
|
@@ -3979,19 +4064,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3979
4064
|
capabilities: string[];
|
|
3980
4065
|
pricing: string;
|
|
3981
4066
|
version: string | null;
|
|
4067
|
+
webhookUrl: string | null;
|
|
4068
|
+
lastHealthCheck: Date | null;
|
|
4069
|
+
lastHealthStatus: any;
|
|
3982
4070
|
}[];
|
|
3983
4071
|
};
|
|
3984
4072
|
meta: object;
|
|
3985
4073
|
}>;
|
|
3986
|
-
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3987
|
-
input: {
|
|
3988
|
-
capability: string;
|
|
3989
|
-
};
|
|
3990
|
-
output: {
|
|
3991
|
-
available: boolean;
|
|
3992
|
-
};
|
|
3993
|
-
meta: object;
|
|
3994
|
-
}>;
|
|
3995
4074
|
checkHealth: import("@trpc/server").TRPCMutationProcedure<{
|
|
3996
4075
|
input: {
|
|
3997
4076
|
serviceId: string;
|
|
@@ -4020,6 +4099,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4020
4099
|
};
|
|
4021
4100
|
meta: object;
|
|
4022
4101
|
}>;
|
|
4102
|
+
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
4103
|
+
input: {
|
|
4104
|
+
capability: string;
|
|
4105
|
+
};
|
|
4106
|
+
output: {
|
|
4107
|
+
available: boolean;
|
|
4108
|
+
};
|
|
4109
|
+
meta: object;
|
|
4110
|
+
}>;
|
|
4023
4111
|
}>>;
|
|
4024
4112
|
search: import("@trpc/server").TRPCBuiltRouter<{
|
|
4025
4113
|
ctx: Context;
|
|
@@ -4747,6 +4835,32 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4747
4835
|
} | null;
|
|
4748
4836
|
meta: object;
|
|
4749
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
|
+
}>;
|
|
4750
4864
|
}>>;
|
|
4751
4865
|
views: import("@trpc/server").TRPCBuiltRouter<{
|
|
4752
4866
|
ctx: Context;
|
|
@@ -4757,7 +4871,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4757
4871
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4758
4872
|
input: {
|
|
4759
4873
|
name: string;
|
|
4760
|
-
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";
|
|
4761
4875
|
workspaceId?: string | undefined;
|
|
4762
4876
|
description?: string | undefined;
|
|
4763
4877
|
scopeProfileIds?: string[] | undefined;
|
|
@@ -4780,7 +4894,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4780
4894
|
};
|
|
4781
4895
|
output: {
|
|
4782
4896
|
view: any;
|
|
4783
|
-
documentId:
|
|
4897
|
+
documentId: null;
|
|
4784
4898
|
status: string;
|
|
4785
4899
|
message: string;
|
|
4786
4900
|
proposalId: string;
|
|
@@ -4811,7 +4925,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4811
4925
|
snapshotUpdatedAt: Date | null;
|
|
4812
4926
|
embeddedViewIds: string[] | null;
|
|
4813
4927
|
};
|
|
4814
|
-
documentId: string;
|
|
4928
|
+
documentId: string | null;
|
|
4815
4929
|
status: string;
|
|
4816
4930
|
message?: undefined;
|
|
4817
4931
|
proposalId?: undefined;
|
|
@@ -5047,7 +5161,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5047
5161
|
embeddedViewIds?: string[] | undefined;
|
|
5048
5162
|
schemaSnapshot?: Record<string, any> | undefined;
|
|
5049
5163
|
snapshotUpdatedAt?: Date | undefined;
|
|
5050
|
-
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;
|
|
5051
5165
|
};
|
|
5052
5166
|
output: {
|
|
5053
5167
|
status: string;
|
|
@@ -6281,6 +6395,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6281
6395
|
uiHints: unknown;
|
|
6282
6396
|
displayName: string;
|
|
6283
6397
|
parentProfileId: string | null;
|
|
6398
|
+
defaultValues: unknown;
|
|
6284
6399
|
}[];
|
|
6285
6400
|
};
|
|
6286
6401
|
meta: object;
|
|
@@ -6303,6 +6418,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6303
6418
|
uiHints: unknown;
|
|
6304
6419
|
displayName: string;
|
|
6305
6420
|
parentProfileId: string | null;
|
|
6421
|
+
defaultValues: unknown;
|
|
6306
6422
|
};
|
|
6307
6423
|
effectiveProperties: EffectiveProperty[];
|
|
6308
6424
|
};
|
|
@@ -6314,6 +6430,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6314
6430
|
displayName: string;
|
|
6315
6431
|
parentProfileId?: string | undefined;
|
|
6316
6432
|
uiHints?: Record<string, unknown> | undefined;
|
|
6433
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6317
6434
|
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6318
6435
|
allowedWorkspaceIds?: string[] | undefined;
|
|
6319
6436
|
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
@@ -6334,6 +6451,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6334
6451
|
uiHints: unknown;
|
|
6335
6452
|
displayName: string;
|
|
6336
6453
|
parentProfileId: string | null;
|
|
6454
|
+
defaultValues: unknown;
|
|
6337
6455
|
};
|
|
6338
6456
|
existing: boolean;
|
|
6339
6457
|
status?: undefined;
|
|
@@ -6359,6 +6477,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6359
6477
|
uiHints: unknown;
|
|
6360
6478
|
displayName: string;
|
|
6361
6479
|
parentProfileId: string | null;
|
|
6480
|
+
defaultValues: unknown;
|
|
6362
6481
|
};
|
|
6363
6482
|
existing?: undefined;
|
|
6364
6483
|
status?: undefined;
|
|
@@ -6373,6 +6492,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6373
6492
|
displayName?: string | undefined;
|
|
6374
6493
|
parentProfileId?: string | null | undefined;
|
|
6375
6494
|
uiHints?: Record<string, unknown> | undefined;
|
|
6495
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6376
6496
|
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6377
6497
|
allowedWorkspaceIds?: string[] | undefined;
|
|
6378
6498
|
};
|
|
@@ -6390,6 +6510,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6390
6510
|
uiHints: unknown;
|
|
6391
6511
|
displayName: string;
|
|
6392
6512
|
parentProfileId: string | null;
|
|
6513
|
+
defaultValues: unknown;
|
|
6393
6514
|
};
|
|
6394
6515
|
};
|
|
6395
6516
|
meta: object;
|
|
@@ -6430,6 +6551,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6430
6551
|
uiHints: unknown;
|
|
6431
6552
|
displayName: string;
|
|
6432
6553
|
parentProfileId: string | null;
|
|
6554
|
+
defaultValues: unknown;
|
|
6433
6555
|
}[];
|
|
6434
6556
|
};
|
|
6435
6557
|
meta: object;
|
|
@@ -6462,6 +6584,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6462
6584
|
uiHints: unknown;
|
|
6463
6585
|
displayName: string;
|
|
6464
6586
|
parentProfileId: string | null;
|
|
6587
|
+
defaultValues: unknown;
|
|
6465
6588
|
}[];
|
|
6466
6589
|
};
|
|
6467
6590
|
meta: object;
|
package/package.json
CHANGED
package/src/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;
|
|
@@ -672,7 +674,9 @@ export interface WorkspaceSettings {
|
|
|
672
674
|
declare enum ProposalStatus {
|
|
673
675
|
PENDING = "pending",
|
|
674
676
|
APPROVED = "approved",
|
|
675
|
-
REJECTED = "rejected"
|
|
677
|
+
REJECTED = "rejected",
|
|
678
|
+
/** Action was on the autoApproveFor whitelist — executed immediately, audited here for traceability. */
|
|
679
|
+
AUTO_APPROVED = "auto_approved"
|
|
676
680
|
}
|
|
677
681
|
declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
678
682
|
name: "message_links";
|
|
@@ -1160,7 +1164,9 @@ declare enum AgentType {
|
|
|
1160
1164
|
KNOWLEDGE_SEARCH = "knowledge-search",
|
|
1161
1165
|
CODE = "code",
|
|
1162
1166
|
WRITING = "writing",
|
|
1163
|
-
ACTION = "action"
|
|
1167
|
+
ACTION = "action",
|
|
1168
|
+
ONBOARDING = "onboarding",
|
|
1169
|
+
WORKSPACE_CREATION = "workspace-creation"
|
|
1164
1170
|
}
|
|
1165
1171
|
/**
|
|
1166
1172
|
* Agent type as string literal union (for flexibility)
|
|
@@ -1251,6 +1257,11 @@ export type BranchNodeResult = {
|
|
|
1251
1257
|
lastActivity: Date;
|
|
1252
1258
|
depth: number;
|
|
1253
1259
|
};
|
|
1260
|
+
/** Recursive node returned by getBranchTree — mirrors the frontend BranchNode shape */
|
|
1261
|
+
export type BranchTreeNode = {
|
|
1262
|
+
channel: Channel;
|
|
1263
|
+
children: BranchTreeNode[];
|
|
1264
|
+
};
|
|
1254
1265
|
/**
|
|
1255
1266
|
* @synap/events - Schema-Driven Event Generator
|
|
1256
1267
|
*
|
|
@@ -1673,6 +1684,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1673
1684
|
};
|
|
1674
1685
|
meta: object;
|
|
1675
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
|
+
}>;
|
|
1676
1699
|
}>>;
|
|
1677
1700
|
chat: import("@trpc/server").TRPCBuiltRouter<{
|
|
1678
1701
|
ctx: Context;
|
|
@@ -1724,6 +1747,38 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1724
1747
|
};
|
|
1725
1748
|
meta: object;
|
|
1726
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
|
+
}>;
|
|
1727
1782
|
createDocumentComment: import("@trpc/server").TRPCMutationProcedure<{
|
|
1728
1783
|
input: {
|
|
1729
1784
|
documentId: string;
|
|
@@ -2043,10 +2098,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2043
2098
|
rootThreadId: string;
|
|
2044
2099
|
};
|
|
2045
2100
|
output: {
|
|
2046
|
-
tree:
|
|
2047
|
-
channel: Channel;
|
|
2048
|
-
children: any[];
|
|
2049
|
-
} | null;
|
|
2101
|
+
tree: BranchTreeNode | null;
|
|
2050
2102
|
flatBranches: {
|
|
2051
2103
|
workspaceId: string | null;
|
|
2052
2104
|
userId: string;
|
|
@@ -2989,7 +3041,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2989
3041
|
lastSavedVersion: number;
|
|
2990
3042
|
workingState: string | null;
|
|
2991
3043
|
workingStateUpdatedAt: Date | null;
|
|
2992
|
-
entityId: string | null;
|
|
2993
3044
|
metadata: unknown;
|
|
2994
3045
|
createdAt: Date;
|
|
2995
3046
|
updatedAt: Date;
|
|
@@ -3127,7 +3178,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3127
3178
|
lastSavedVersion: number;
|
|
3128
3179
|
workingState: string | null;
|
|
3129
3180
|
workingStateUpdatedAt: Date | null;
|
|
3130
|
-
entityId: string | null;
|
|
3131
3181
|
metadata: unknown;
|
|
3132
3182
|
createdAt: Date;
|
|
3133
3183
|
updatedAt: Date;
|
|
@@ -3417,7 +3467,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3417
3467
|
apiKey: string;
|
|
3418
3468
|
pricing: string | null;
|
|
3419
3469
|
enabled: boolean;
|
|
3470
|
+
mcpApproved: boolean;
|
|
3420
3471
|
lastHealthCheck: Date | null;
|
|
3472
|
+
lastHealthStatus: string | null;
|
|
3421
3473
|
};
|
|
3422
3474
|
meta: object;
|
|
3423
3475
|
}>;
|
|
@@ -3460,7 +3512,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3460
3512
|
mcpEndpoint: string | null;
|
|
3461
3513
|
pricing: string | null;
|
|
3462
3514
|
enabled: boolean;
|
|
3515
|
+
mcpApproved: boolean;
|
|
3463
3516
|
lastHealthCheck: Date | null;
|
|
3517
|
+
lastHealthStatus: string | null;
|
|
3464
3518
|
};
|
|
3465
3519
|
meta: object;
|
|
3466
3520
|
}>;
|
|
@@ -3489,10 +3543,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3489
3543
|
pricing: string | null;
|
|
3490
3544
|
status: string;
|
|
3491
3545
|
enabled: boolean;
|
|
3546
|
+
mcpApproved: boolean;
|
|
3492
3547
|
metadata: Record<string, unknown> | null;
|
|
3493
3548
|
createdAt: Date;
|
|
3494
3549
|
updatedAt: Date;
|
|
3495
3550
|
lastHealthCheck: Date | null;
|
|
3551
|
+
lastHealthStatus: string | null;
|
|
3496
3552
|
};
|
|
3497
3553
|
meta: object;
|
|
3498
3554
|
}>;
|
|
@@ -3538,6 +3594,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3538
3594
|
};
|
|
3539
3595
|
meta: object;
|
|
3540
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
|
+
}>;
|
|
3541
3616
|
findByCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3542
3617
|
input: {
|
|
3543
3618
|
capability: string;
|
|
@@ -3551,6 +3626,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3551
3626
|
}[];
|
|
3552
3627
|
meta: object;
|
|
3553
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
|
+
}>;
|
|
3554
3639
|
}>>;
|
|
3555
3640
|
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
3556
3641
|
ctx: Context;
|
|
@@ -3979,19 +4064,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3979
4064
|
capabilities: string[];
|
|
3980
4065
|
pricing: string;
|
|
3981
4066
|
version: string | null;
|
|
4067
|
+
webhookUrl: string | null;
|
|
4068
|
+
lastHealthCheck: Date | null;
|
|
4069
|
+
lastHealthStatus: any;
|
|
3982
4070
|
}[];
|
|
3983
4071
|
};
|
|
3984
4072
|
meta: object;
|
|
3985
4073
|
}>;
|
|
3986
|
-
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
3987
|
-
input: {
|
|
3988
|
-
capability: string;
|
|
3989
|
-
};
|
|
3990
|
-
output: {
|
|
3991
|
-
available: boolean;
|
|
3992
|
-
};
|
|
3993
|
-
meta: object;
|
|
3994
|
-
}>;
|
|
3995
4074
|
checkHealth: import("@trpc/server").TRPCMutationProcedure<{
|
|
3996
4075
|
input: {
|
|
3997
4076
|
serviceId: string;
|
|
@@ -4020,6 +4099,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4020
4099
|
};
|
|
4021
4100
|
meta: object;
|
|
4022
4101
|
}>;
|
|
4102
|
+
hasCapability: import("@trpc/server").TRPCQueryProcedure<{
|
|
4103
|
+
input: {
|
|
4104
|
+
capability: string;
|
|
4105
|
+
};
|
|
4106
|
+
output: {
|
|
4107
|
+
available: boolean;
|
|
4108
|
+
};
|
|
4109
|
+
meta: object;
|
|
4110
|
+
}>;
|
|
4023
4111
|
}>>;
|
|
4024
4112
|
search: import("@trpc/server").TRPCBuiltRouter<{
|
|
4025
4113
|
ctx: Context;
|
|
@@ -4747,6 +4835,32 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4747
4835
|
} | null;
|
|
4748
4836
|
meta: object;
|
|
4749
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
|
+
}>;
|
|
4750
4864
|
}>>;
|
|
4751
4865
|
views: import("@trpc/server").TRPCBuiltRouter<{
|
|
4752
4866
|
ctx: Context;
|
|
@@ -4757,7 +4871,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4757
4871
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
4758
4872
|
input: {
|
|
4759
4873
|
name: string;
|
|
4760
|
-
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";
|
|
4761
4875
|
workspaceId?: string | undefined;
|
|
4762
4876
|
description?: string | undefined;
|
|
4763
4877
|
scopeProfileIds?: string[] | undefined;
|
|
@@ -4780,7 +4894,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4780
4894
|
};
|
|
4781
4895
|
output: {
|
|
4782
4896
|
view: any;
|
|
4783
|
-
documentId:
|
|
4897
|
+
documentId: null;
|
|
4784
4898
|
status: string;
|
|
4785
4899
|
message: string;
|
|
4786
4900
|
proposalId: string;
|
|
@@ -4811,7 +4925,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4811
4925
|
snapshotUpdatedAt: Date | null;
|
|
4812
4926
|
embeddedViewIds: string[] | null;
|
|
4813
4927
|
};
|
|
4814
|
-
documentId: string;
|
|
4928
|
+
documentId: string | null;
|
|
4815
4929
|
status: string;
|
|
4816
4930
|
message?: undefined;
|
|
4817
4931
|
proposalId?: undefined;
|
|
@@ -5047,7 +5161,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5047
5161
|
embeddedViewIds?: string[] | undefined;
|
|
5048
5162
|
schemaSnapshot?: Record<string, any> | undefined;
|
|
5049
5163
|
snapshotUpdatedAt?: Date | undefined;
|
|
5050
|
-
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;
|
|
5051
5165
|
};
|
|
5052
5166
|
output: {
|
|
5053
5167
|
status: string;
|
|
@@ -6281,6 +6395,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6281
6395
|
uiHints: unknown;
|
|
6282
6396
|
displayName: string;
|
|
6283
6397
|
parentProfileId: string | null;
|
|
6398
|
+
defaultValues: unknown;
|
|
6284
6399
|
}[];
|
|
6285
6400
|
};
|
|
6286
6401
|
meta: object;
|
|
@@ -6303,6 +6418,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6303
6418
|
uiHints: unknown;
|
|
6304
6419
|
displayName: string;
|
|
6305
6420
|
parentProfileId: string | null;
|
|
6421
|
+
defaultValues: unknown;
|
|
6306
6422
|
};
|
|
6307
6423
|
effectiveProperties: EffectiveProperty[];
|
|
6308
6424
|
};
|
|
@@ -6314,6 +6430,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6314
6430
|
displayName: string;
|
|
6315
6431
|
parentProfileId?: string | undefined;
|
|
6316
6432
|
uiHints?: Record<string, unknown> | undefined;
|
|
6433
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6317
6434
|
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6318
6435
|
allowedWorkspaceIds?: string[] | undefined;
|
|
6319
6436
|
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
@@ -6334,6 +6451,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6334
6451
|
uiHints: unknown;
|
|
6335
6452
|
displayName: string;
|
|
6336
6453
|
parentProfileId: string | null;
|
|
6454
|
+
defaultValues: unknown;
|
|
6337
6455
|
};
|
|
6338
6456
|
existing: boolean;
|
|
6339
6457
|
status?: undefined;
|
|
@@ -6359,6 +6477,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6359
6477
|
uiHints: unknown;
|
|
6360
6478
|
displayName: string;
|
|
6361
6479
|
parentProfileId: string | null;
|
|
6480
|
+
defaultValues: unknown;
|
|
6362
6481
|
};
|
|
6363
6482
|
existing?: undefined;
|
|
6364
6483
|
status?: undefined;
|
|
@@ -6373,6 +6492,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6373
6492
|
displayName?: string | undefined;
|
|
6374
6493
|
parentProfileId?: string | null | undefined;
|
|
6375
6494
|
uiHints?: Record<string, unknown> | undefined;
|
|
6495
|
+
defaultValues?: Record<string, unknown> | undefined;
|
|
6376
6496
|
scope?: "workspace" | "user" | "shared" | "system" | undefined;
|
|
6377
6497
|
allowedWorkspaceIds?: string[] | undefined;
|
|
6378
6498
|
};
|
|
@@ -6390,6 +6510,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6390
6510
|
uiHints: unknown;
|
|
6391
6511
|
displayName: string;
|
|
6392
6512
|
parentProfileId: string | null;
|
|
6513
|
+
defaultValues: unknown;
|
|
6393
6514
|
};
|
|
6394
6515
|
};
|
|
6395
6516
|
meta: object;
|
|
@@ -6430,6 +6551,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6430
6551
|
uiHints: unknown;
|
|
6431
6552
|
displayName: string;
|
|
6432
6553
|
parentProfileId: string | null;
|
|
6554
|
+
defaultValues: unknown;
|
|
6433
6555
|
}[];
|
|
6434
6556
|
};
|
|
6435
6557
|
meta: object;
|
|
@@ -6462,6 +6584,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6462
6584
|
uiHints: unknown;
|
|
6463
6585
|
displayName: string;
|
|
6464
6586
|
parentProfileId: string | null;
|
|
6587
|
+
defaultValues: unknown;
|
|
6465
6588
|
}[];
|
|
6466
6589
|
};
|
|
6467
6590
|
meta: object;
|