@synap-core/api-types 1.4.0 → 1.4.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 +315 -6
- package/package.json +1 -1
- package/src/generated.d.ts +315 -6
package/dist/generated.d.ts
CHANGED
|
@@ -116,6 +116,23 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
116
116
|
identity: undefined;
|
|
117
117
|
generated: undefined;
|
|
118
118
|
}, {}, {}>;
|
|
119
|
+
workspaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
120
|
+
name: "workspace_id";
|
|
121
|
+
tableName: "chat_threads";
|
|
122
|
+
dataType: "string";
|
|
123
|
+
columnType: "PgUUID";
|
|
124
|
+
data: string;
|
|
125
|
+
driverParam: string;
|
|
126
|
+
notNull: false;
|
|
127
|
+
hasDefault: false;
|
|
128
|
+
isPrimaryKey: false;
|
|
129
|
+
isAutoincrement: false;
|
|
130
|
+
hasRuntimeDefault: false;
|
|
131
|
+
enumValues: undefined;
|
|
132
|
+
baseColumn: never;
|
|
133
|
+
identity: undefined;
|
|
134
|
+
generated: undefined;
|
|
135
|
+
}, {}, {}>;
|
|
119
136
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
120
137
|
name: "title";
|
|
121
138
|
tableName: "chat_threads";
|
|
@@ -409,6 +426,18 @@ declare enum ThreadDocumentConflictStatus {
|
|
|
409
426
|
PENDING = "pending",
|
|
410
427
|
RESOLVED = "resolved"
|
|
411
428
|
}
|
|
429
|
+
export interface DerivedInput {
|
|
430
|
+
name: string;
|
|
431
|
+
label?: string;
|
|
432
|
+
type?: string;
|
|
433
|
+
options?: string[];
|
|
434
|
+
default?: string;
|
|
435
|
+
}
|
|
436
|
+
export interface InputOverride {
|
|
437
|
+
label?: string;
|
|
438
|
+
default?: string;
|
|
439
|
+
options?: string[];
|
|
440
|
+
}
|
|
412
441
|
/**
|
|
413
442
|
* Workspaces Schema - Multi-user workspace support
|
|
414
443
|
*
|
|
@@ -1322,6 +1351,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1322
1351
|
} | {
|
|
1323
1352
|
threadId: string;
|
|
1324
1353
|
thread: {
|
|
1354
|
+
workspaceId: string | null;
|
|
1325
1355
|
userId: string;
|
|
1326
1356
|
id: string;
|
|
1327
1357
|
updatedAt: Date;
|
|
@@ -1346,11 +1376,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1346
1376
|
}>;
|
|
1347
1377
|
sendMessage: import("@trpc/server").TRPCMutationProcedure<{
|
|
1348
1378
|
input: {
|
|
1349
|
-
threadId: string;
|
|
1350
1379
|
content: string;
|
|
1380
|
+
threadId?: string | undefined;
|
|
1351
1381
|
workspaceId?: string | undefined;
|
|
1352
1382
|
};
|
|
1353
1383
|
output: {
|
|
1384
|
+
threadId: string;
|
|
1354
1385
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1355
1386
|
content: string;
|
|
1356
1387
|
entities: {
|
|
@@ -1360,6 +1391,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1360
1391
|
}[];
|
|
1361
1392
|
branchDecision: BranchDecision | undefined;
|
|
1362
1393
|
branchThread: {
|
|
1394
|
+
workspaceId: string | null;
|
|
1363
1395
|
userId: string;
|
|
1364
1396
|
id: string;
|
|
1365
1397
|
updatedAt: Date;
|
|
@@ -1457,11 +1489,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1457
1489
|
}>;
|
|
1458
1490
|
listThreads: import("@trpc/server").TRPCQueryProcedure<{
|
|
1459
1491
|
input: {
|
|
1492
|
+
workspaceId?: string | undefined;
|
|
1460
1493
|
threadType?: "main" | "branch" | undefined;
|
|
1461
1494
|
limit?: number | undefined;
|
|
1462
1495
|
};
|
|
1463
1496
|
output: {
|
|
1464
1497
|
threads: {
|
|
1498
|
+
workspaceId: string | null;
|
|
1465
1499
|
userId: string;
|
|
1466
1500
|
id: string;
|
|
1467
1501
|
updatedAt: Date;
|
|
@@ -1488,6 +1522,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1488
1522
|
};
|
|
1489
1523
|
output: {
|
|
1490
1524
|
branches: {
|
|
1525
|
+
workspaceId: string | null;
|
|
1491
1526
|
userId: string;
|
|
1492
1527
|
id: string;
|
|
1493
1528
|
updatedAt: Date;
|
|
@@ -1527,6 +1562,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1527
1562
|
};
|
|
1528
1563
|
output: {
|
|
1529
1564
|
thread: {
|
|
1565
|
+
workspaceId: string | null;
|
|
1530
1566
|
userId: string;
|
|
1531
1567
|
id: string;
|
|
1532
1568
|
updatedAt: Date;
|
|
@@ -1606,6 +1642,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1606
1642
|
children: any[];
|
|
1607
1643
|
} | null;
|
|
1608
1644
|
flatBranches: {
|
|
1645
|
+
workspaceId: string | null;
|
|
1609
1646
|
userId: string;
|
|
1610
1647
|
id: string;
|
|
1611
1648
|
updatedAt: Date;
|
|
@@ -1624,6 +1661,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1624
1661
|
mergedAt: Date | null;
|
|
1625
1662
|
}[];
|
|
1626
1663
|
activeBranches: {
|
|
1664
|
+
workspaceId: string | null;
|
|
1627
1665
|
userId: string;
|
|
1628
1666
|
id: string;
|
|
1629
1667
|
updatedAt: Date;
|
|
@@ -1642,6 +1680,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1642
1680
|
mergedAt: Date | null;
|
|
1643
1681
|
}[];
|
|
1644
1682
|
mergedBranches: {
|
|
1683
|
+
workspaceId: string | null;
|
|
1645
1684
|
userId: string;
|
|
1646
1685
|
id: string;
|
|
1647
1686
|
updatedAt: Date;
|
|
@@ -1705,7 +1744,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1705
1744
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
1706
1745
|
input: {
|
|
1707
1746
|
workspaceId?: string | undefined;
|
|
1708
|
-
targetType?: "entity" | "
|
|
1747
|
+
targetType?: "entity" | "view" | "document" | "whiteboard" | undefined;
|
|
1709
1748
|
targetId?: string | undefined;
|
|
1710
1749
|
status?: "pending" | "validated" | "rejected" | "all" | undefined;
|
|
1711
1750
|
limit?: number | undefined;
|
|
@@ -1751,7 +1790,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1751
1790
|
}>;
|
|
1752
1791
|
submit: import("@trpc/server").TRPCMutationProcedure<{
|
|
1753
1792
|
input: {
|
|
1754
|
-
targetType: "workspace" | "entity" | "
|
|
1793
|
+
targetType: "workspace" | "entity" | "view" | "document" | "relation";
|
|
1755
1794
|
changeType: "create" | "update" | "delete";
|
|
1756
1795
|
data: Record<string, any>;
|
|
1757
1796
|
targetId?: string | undefined;
|
|
@@ -2924,6 +2963,228 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2924
2963
|
meta: object;
|
|
2925
2964
|
}>;
|
|
2926
2965
|
}>>;
|
|
2966
|
+
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
2967
|
+
ctx: Context;
|
|
2968
|
+
meta: object;
|
|
2969
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
2970
|
+
transformer: true;
|
|
2971
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2972
|
+
listCommands: import("@trpc/server").TRPCQueryProcedure<{
|
|
2973
|
+
input: {
|
|
2974
|
+
limit?: number | undefined;
|
|
2975
|
+
};
|
|
2976
|
+
output: {
|
|
2977
|
+
commands: {
|
|
2978
|
+
workspaceId: string;
|
|
2979
|
+
id: string;
|
|
2980
|
+
updatedAt: Date;
|
|
2981
|
+
createdAt: Date;
|
|
2982
|
+
title: string;
|
|
2983
|
+
createdBy: string;
|
|
2984
|
+
promptTemplate: string;
|
|
2985
|
+
compiledTemplateAst: unknown;
|
|
2986
|
+
derivedInputs: DerivedInput[] | null;
|
|
2987
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
2988
|
+
allowedTools: string[] | null;
|
|
2989
|
+
allowedEntityTypes: string[] | null;
|
|
2990
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
2991
|
+
canCreateViews: boolean;
|
|
2992
|
+
outputMode: "text" | "proposal" | "view";
|
|
2993
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
2994
|
+
sharedScope: "workspace" | "user";
|
|
2995
|
+
}[];
|
|
2996
|
+
};
|
|
2997
|
+
meta: object;
|
|
2998
|
+
}>;
|
|
2999
|
+
getCommand: import("@trpc/server").TRPCQueryProcedure<{
|
|
3000
|
+
input: {
|
|
3001
|
+
id: string;
|
|
3002
|
+
};
|
|
3003
|
+
output: {
|
|
3004
|
+
workspaceId: string;
|
|
3005
|
+
id: string;
|
|
3006
|
+
updatedAt: Date;
|
|
3007
|
+
createdAt: Date;
|
|
3008
|
+
title: string;
|
|
3009
|
+
createdBy: string;
|
|
3010
|
+
promptTemplate: string;
|
|
3011
|
+
compiledTemplateAst: unknown;
|
|
3012
|
+
derivedInputs: DerivedInput[] | null;
|
|
3013
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
3014
|
+
allowedTools: string[] | null;
|
|
3015
|
+
allowedEntityTypes: string[] | null;
|
|
3016
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
3017
|
+
canCreateViews: boolean;
|
|
3018
|
+
outputMode: "text" | "proposal" | "view";
|
|
3019
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
3020
|
+
sharedScope: "workspace" | "user";
|
|
3021
|
+
};
|
|
3022
|
+
meta: object;
|
|
3023
|
+
}>;
|
|
3024
|
+
createCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3025
|
+
input: {
|
|
3026
|
+
title: string;
|
|
3027
|
+
promptTemplate: string;
|
|
3028
|
+
inputOverrides?: Record<string, any> | undefined;
|
|
3029
|
+
allowedTools?: string[] | undefined;
|
|
3030
|
+
allowedEntityTypes?: string[] | undefined;
|
|
3031
|
+
maxEntitiesCreatedPerRun?: number | undefined;
|
|
3032
|
+
canCreateViews?: boolean | undefined;
|
|
3033
|
+
outputMode?: "text" | "proposal" | "view" | undefined;
|
|
3034
|
+
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
3035
|
+
sharedScope?: "workspace" | "user" | undefined;
|
|
3036
|
+
};
|
|
3037
|
+
output: {
|
|
3038
|
+
workspaceId: string;
|
|
3039
|
+
id: string;
|
|
3040
|
+
updatedAt: Date;
|
|
3041
|
+
createdAt: Date;
|
|
3042
|
+
title: string;
|
|
3043
|
+
createdBy: string;
|
|
3044
|
+
promptTemplate: string;
|
|
3045
|
+
compiledTemplateAst: unknown;
|
|
3046
|
+
derivedInputs: DerivedInput[] | null;
|
|
3047
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
3048
|
+
allowedTools: string[] | null;
|
|
3049
|
+
allowedEntityTypes: string[] | null;
|
|
3050
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
3051
|
+
canCreateViews: boolean;
|
|
3052
|
+
outputMode: "text" | "proposal" | "view";
|
|
3053
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
3054
|
+
sharedScope: "workspace" | "user";
|
|
3055
|
+
};
|
|
3056
|
+
meta: object;
|
|
3057
|
+
}>;
|
|
3058
|
+
updateCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3059
|
+
input: {
|
|
3060
|
+
id: string;
|
|
3061
|
+
title?: string | undefined;
|
|
3062
|
+
promptTemplate?: string | undefined;
|
|
3063
|
+
inputOverrides?: Record<string, any> | undefined;
|
|
3064
|
+
allowedTools?: string[] | undefined;
|
|
3065
|
+
allowedEntityTypes?: string[] | undefined;
|
|
3066
|
+
maxEntitiesCreatedPerRun?: number | null | undefined;
|
|
3067
|
+
canCreateViews?: boolean | undefined;
|
|
3068
|
+
outputMode?: "text" | "proposal" | "view" | undefined;
|
|
3069
|
+
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
3070
|
+
sharedScope?: "workspace" | "user" | undefined;
|
|
3071
|
+
};
|
|
3072
|
+
output: {
|
|
3073
|
+
id: string;
|
|
3074
|
+
workspaceId: string;
|
|
3075
|
+
createdBy: string;
|
|
3076
|
+
title: string;
|
|
3077
|
+
promptTemplate: string;
|
|
3078
|
+
compiledTemplateAst: unknown;
|
|
3079
|
+
derivedInputs: DerivedInput[] | null;
|
|
3080
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
3081
|
+
allowedTools: string[] | null;
|
|
3082
|
+
allowedEntityTypes: string[] | null;
|
|
3083
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
3084
|
+
canCreateViews: boolean;
|
|
3085
|
+
outputMode: "text" | "proposal" | "view";
|
|
3086
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
3087
|
+
sharedScope: "workspace" | "user";
|
|
3088
|
+
createdAt: Date;
|
|
3089
|
+
updatedAt: Date;
|
|
3090
|
+
};
|
|
3091
|
+
meta: object;
|
|
3092
|
+
}>;
|
|
3093
|
+
deleteCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3094
|
+
input: {
|
|
3095
|
+
id: string;
|
|
3096
|
+
};
|
|
3097
|
+
output: {
|
|
3098
|
+
success: boolean;
|
|
3099
|
+
};
|
|
3100
|
+
meta: object;
|
|
3101
|
+
}>;
|
|
3102
|
+
runCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3103
|
+
input: {
|
|
3104
|
+
commandId: string;
|
|
3105
|
+
argumentValues: Record<string, string>;
|
|
3106
|
+
selectionContext?: {
|
|
3107
|
+
type: "entities" | "documents" | "text" | "viewRows";
|
|
3108
|
+
entityIds?: string[] | undefined;
|
|
3109
|
+
viewId?: string | undefined;
|
|
3110
|
+
rowEntityIds?: string[] | undefined;
|
|
3111
|
+
documentIds?: string[] | undefined;
|
|
3112
|
+
text?: string | undefined;
|
|
3113
|
+
} | undefined;
|
|
3114
|
+
};
|
|
3115
|
+
output: {
|
|
3116
|
+
runId: string;
|
|
3117
|
+
threadId: string;
|
|
3118
|
+
};
|
|
3119
|
+
meta: object;
|
|
3120
|
+
}>;
|
|
3121
|
+
listRuns: import("@trpc/server").TRPCQueryProcedure<{
|
|
3122
|
+
input: {
|
|
3123
|
+
limit?: number | undefined;
|
|
3124
|
+
cursor?: string | undefined;
|
|
3125
|
+
};
|
|
3126
|
+
output: {
|
|
3127
|
+
runs: {
|
|
3128
|
+
workspaceId: string;
|
|
3129
|
+
userId: string;
|
|
3130
|
+
id: string;
|
|
3131
|
+
errorMessage: string | null;
|
|
3132
|
+
startedAt: Date;
|
|
3133
|
+
threadId: string;
|
|
3134
|
+
status: "completed" | "running" | "failed";
|
|
3135
|
+
commandId: string;
|
|
3136
|
+
permissionsSnapshot: Record<string, unknown> | null;
|
|
3137
|
+
inputs: Record<string, unknown> | null;
|
|
3138
|
+
selectionContextSnapshot: unknown;
|
|
3139
|
+
outputSummary: string | null;
|
|
3140
|
+
proposedActions: unknown[] | null;
|
|
3141
|
+
approvedActions: unknown[] | null;
|
|
3142
|
+
completedAt: Date | null;
|
|
3143
|
+
}[];
|
|
3144
|
+
nextCursor: string | undefined;
|
|
3145
|
+
hasMore: boolean;
|
|
3146
|
+
};
|
|
3147
|
+
meta: object;
|
|
3148
|
+
}>;
|
|
3149
|
+
getRun: import("@trpc/server").TRPCQueryProcedure<{
|
|
3150
|
+
input: {
|
|
3151
|
+
id: string;
|
|
3152
|
+
};
|
|
3153
|
+
output: {
|
|
3154
|
+
workspaceId: string;
|
|
3155
|
+
userId: string;
|
|
3156
|
+
id: string;
|
|
3157
|
+
errorMessage: string | null;
|
|
3158
|
+
startedAt: Date;
|
|
3159
|
+
threadId: string;
|
|
3160
|
+
status: "completed" | "running" | "failed";
|
|
3161
|
+
commandId: string;
|
|
3162
|
+
permissionsSnapshot: Record<string, unknown> | null;
|
|
3163
|
+
inputs: Record<string, unknown> | null;
|
|
3164
|
+
selectionContextSnapshot: unknown;
|
|
3165
|
+
outputSummary: string | null;
|
|
3166
|
+
proposedActions: unknown[] | null;
|
|
3167
|
+
approvedActions: unknown[] | null;
|
|
3168
|
+
completedAt: Date | null;
|
|
3169
|
+
};
|
|
3170
|
+
meta: object;
|
|
3171
|
+
}>;
|
|
3172
|
+
getEffectiveService: import("@trpc/server").TRPCQueryProcedure<{
|
|
3173
|
+
input: Record<string, never>;
|
|
3174
|
+
output: {
|
|
3175
|
+
serviceId: string;
|
|
3176
|
+
endpoint: string;
|
|
3177
|
+
manifest: {
|
|
3178
|
+
name: string;
|
|
3179
|
+
version?: string;
|
|
3180
|
+
capabilities: string[];
|
|
3181
|
+
endpoints?: string[];
|
|
3182
|
+
authType?: string;
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
3185
|
+
meta: object;
|
|
3186
|
+
}>;
|
|
3187
|
+
}>>;
|
|
2927
3188
|
capabilities: import("@trpc/server").TRPCBuiltRouter<{
|
|
2928
3189
|
ctx: Context;
|
|
2929
3190
|
meta: object;
|
|
@@ -3350,6 +3611,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3350
3611
|
};
|
|
3351
3612
|
meta: object;
|
|
3352
3613
|
}>;
|
|
3614
|
+
setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
|
|
3615
|
+
input: {
|
|
3616
|
+
workspaceId: string;
|
|
3617
|
+
serviceId: string | null;
|
|
3618
|
+
};
|
|
3619
|
+
output: {
|
|
3620
|
+
status: string;
|
|
3621
|
+
message: string;
|
|
3622
|
+
};
|
|
3623
|
+
meta: object;
|
|
3624
|
+
}>;
|
|
3353
3625
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3354
3626
|
input: {
|
|
3355
3627
|
id: string;
|
|
@@ -3501,6 +3773,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3501
3773
|
} | undefined;
|
|
3502
3774
|
config?: Record<string, any> | undefined;
|
|
3503
3775
|
embeddedViewIds?: string[] | undefined;
|
|
3776
|
+
metadata?: Record<string, any> | undefined;
|
|
3504
3777
|
initialContent?: any;
|
|
3505
3778
|
};
|
|
3506
3779
|
output: {
|
|
@@ -3558,6 +3831,41 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3558
3831
|
}[];
|
|
3559
3832
|
meta: object;
|
|
3560
3833
|
}>;
|
|
3834
|
+
getHome: import("@trpc/server").TRPCQueryProcedure<{
|
|
3835
|
+
input: {
|
|
3836
|
+
workspaceId: string;
|
|
3837
|
+
scope?: "workspace" | "user" | "effective" | undefined;
|
|
3838
|
+
};
|
|
3839
|
+
output: {
|
|
3840
|
+
view: {
|
|
3841
|
+
name: string;
|
|
3842
|
+
workspaceId: string | null;
|
|
3843
|
+
userId: string;
|
|
3844
|
+
id: string;
|
|
3845
|
+
query: unknown;
|
|
3846
|
+
columns: unknown;
|
|
3847
|
+
updatedAt: Date;
|
|
3848
|
+
createdAt: Date;
|
|
3849
|
+
type: string;
|
|
3850
|
+
metadata: unknown;
|
|
3851
|
+
documentId: string | null;
|
|
3852
|
+
description: string | null;
|
|
3853
|
+
category: string;
|
|
3854
|
+
scopeProfileIds: string[] | null;
|
|
3855
|
+
scopeMode: string | null;
|
|
3856
|
+
config: unknown;
|
|
3857
|
+
filter: unknown;
|
|
3858
|
+
sort: unknown;
|
|
3859
|
+
layoutConfig: unknown;
|
|
3860
|
+
yjsRoomId: string | null;
|
|
3861
|
+
thumbnailUrl: string | null;
|
|
3862
|
+
schemaSnapshot: unknown;
|
|
3863
|
+
snapshotUpdatedAt: Date | null;
|
|
3864
|
+
embeddedViewIds: string[] | null;
|
|
3865
|
+
} | null;
|
|
3866
|
+
};
|
|
3867
|
+
meta: object;
|
|
3868
|
+
}>;
|
|
3561
3869
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3562
3870
|
input: {
|
|
3563
3871
|
id: string;
|
|
@@ -3811,6 +4119,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3811
4119
|
fontSize?: string | undefined;
|
|
3812
4120
|
animations?: boolean | undefined;
|
|
3813
4121
|
defaultView?: "list" | "grid" | "timeline" | undefined;
|
|
4122
|
+
entityOpenMode?: "floating" | "side" | "modal" | undefined;
|
|
3814
4123
|
} | undefined;
|
|
3815
4124
|
graphPreferences?: {
|
|
3816
4125
|
forceSettings?: {
|
|
@@ -4014,7 +4323,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4014
4323
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4015
4324
|
createPublicLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
4016
4325
|
input: {
|
|
4017
|
-
resourceType: "entity" | "
|
|
4326
|
+
resourceType: "entity" | "view" | "document";
|
|
4018
4327
|
resourceId: string;
|
|
4019
4328
|
expiresInDays?: number | undefined;
|
|
4020
4329
|
access?: "workspace_only" | "anyone_with_link" | undefined;
|
|
@@ -4029,7 +4338,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4029
4338
|
}>;
|
|
4030
4339
|
invite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4031
4340
|
input: {
|
|
4032
|
-
resourceType: "entity" | "
|
|
4341
|
+
resourceType: "entity" | "view" | "document";
|
|
4033
4342
|
resourceId: string;
|
|
4034
4343
|
userEmail: string;
|
|
4035
4344
|
};
|
|
@@ -4130,7 +4439,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4130
4439
|
}>;
|
|
4131
4440
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4132
4441
|
input: {
|
|
4133
|
-
resourceType: "entity" | "
|
|
4442
|
+
resourceType: "entity" | "view" | "document";
|
|
4134
4443
|
resourceId: string;
|
|
4135
4444
|
visibility?: "public" | "private" | undefined;
|
|
4136
4445
|
expiresAt?: Date | undefined;
|
package/package.json
CHANGED
package/src/generated.d.ts
CHANGED
|
@@ -116,6 +116,23 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
|
116
116
|
identity: undefined;
|
|
117
117
|
generated: undefined;
|
|
118
118
|
}, {}, {}>;
|
|
119
|
+
workspaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
120
|
+
name: "workspace_id";
|
|
121
|
+
tableName: "chat_threads";
|
|
122
|
+
dataType: "string";
|
|
123
|
+
columnType: "PgUUID";
|
|
124
|
+
data: string;
|
|
125
|
+
driverParam: string;
|
|
126
|
+
notNull: false;
|
|
127
|
+
hasDefault: false;
|
|
128
|
+
isPrimaryKey: false;
|
|
129
|
+
isAutoincrement: false;
|
|
130
|
+
hasRuntimeDefault: false;
|
|
131
|
+
enumValues: undefined;
|
|
132
|
+
baseColumn: never;
|
|
133
|
+
identity: undefined;
|
|
134
|
+
generated: undefined;
|
|
135
|
+
}, {}, {}>;
|
|
119
136
|
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
120
137
|
name: "title";
|
|
121
138
|
tableName: "chat_threads";
|
|
@@ -409,6 +426,18 @@ declare enum ThreadDocumentConflictStatus {
|
|
|
409
426
|
PENDING = "pending",
|
|
410
427
|
RESOLVED = "resolved"
|
|
411
428
|
}
|
|
429
|
+
export interface DerivedInput {
|
|
430
|
+
name: string;
|
|
431
|
+
label?: string;
|
|
432
|
+
type?: string;
|
|
433
|
+
options?: string[];
|
|
434
|
+
default?: string;
|
|
435
|
+
}
|
|
436
|
+
export interface InputOverride {
|
|
437
|
+
label?: string;
|
|
438
|
+
default?: string;
|
|
439
|
+
options?: string[];
|
|
440
|
+
}
|
|
412
441
|
/**
|
|
413
442
|
* Workspaces Schema - Multi-user workspace support
|
|
414
443
|
*
|
|
@@ -1322,6 +1351,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1322
1351
|
} | {
|
|
1323
1352
|
threadId: string;
|
|
1324
1353
|
thread: {
|
|
1354
|
+
workspaceId: string | null;
|
|
1325
1355
|
userId: string;
|
|
1326
1356
|
id: string;
|
|
1327
1357
|
updatedAt: Date;
|
|
@@ -1346,11 +1376,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1346
1376
|
}>;
|
|
1347
1377
|
sendMessage: import("@trpc/server").TRPCMutationProcedure<{
|
|
1348
1378
|
input: {
|
|
1349
|
-
threadId: string;
|
|
1350
1379
|
content: string;
|
|
1380
|
+
threadId?: string | undefined;
|
|
1351
1381
|
workspaceId?: string | undefined;
|
|
1352
1382
|
};
|
|
1353
1383
|
output: {
|
|
1384
|
+
threadId: string;
|
|
1354
1385
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1355
1386
|
content: string;
|
|
1356
1387
|
entities: {
|
|
@@ -1360,6 +1391,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1360
1391
|
}[];
|
|
1361
1392
|
branchDecision: BranchDecision | undefined;
|
|
1362
1393
|
branchThread: {
|
|
1394
|
+
workspaceId: string | null;
|
|
1363
1395
|
userId: string;
|
|
1364
1396
|
id: string;
|
|
1365
1397
|
updatedAt: Date;
|
|
@@ -1457,11 +1489,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1457
1489
|
}>;
|
|
1458
1490
|
listThreads: import("@trpc/server").TRPCQueryProcedure<{
|
|
1459
1491
|
input: {
|
|
1492
|
+
workspaceId?: string | undefined;
|
|
1460
1493
|
threadType?: "main" | "branch" | undefined;
|
|
1461
1494
|
limit?: number | undefined;
|
|
1462
1495
|
};
|
|
1463
1496
|
output: {
|
|
1464
1497
|
threads: {
|
|
1498
|
+
workspaceId: string | null;
|
|
1465
1499
|
userId: string;
|
|
1466
1500
|
id: string;
|
|
1467
1501
|
updatedAt: Date;
|
|
@@ -1488,6 +1522,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1488
1522
|
};
|
|
1489
1523
|
output: {
|
|
1490
1524
|
branches: {
|
|
1525
|
+
workspaceId: string | null;
|
|
1491
1526
|
userId: string;
|
|
1492
1527
|
id: string;
|
|
1493
1528
|
updatedAt: Date;
|
|
@@ -1527,6 +1562,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1527
1562
|
};
|
|
1528
1563
|
output: {
|
|
1529
1564
|
thread: {
|
|
1565
|
+
workspaceId: string | null;
|
|
1530
1566
|
userId: string;
|
|
1531
1567
|
id: string;
|
|
1532
1568
|
updatedAt: Date;
|
|
@@ -1606,6 +1642,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1606
1642
|
children: any[];
|
|
1607
1643
|
} | null;
|
|
1608
1644
|
flatBranches: {
|
|
1645
|
+
workspaceId: string | null;
|
|
1609
1646
|
userId: string;
|
|
1610
1647
|
id: string;
|
|
1611
1648
|
updatedAt: Date;
|
|
@@ -1624,6 +1661,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1624
1661
|
mergedAt: Date | null;
|
|
1625
1662
|
}[];
|
|
1626
1663
|
activeBranches: {
|
|
1664
|
+
workspaceId: string | null;
|
|
1627
1665
|
userId: string;
|
|
1628
1666
|
id: string;
|
|
1629
1667
|
updatedAt: Date;
|
|
@@ -1642,6 +1680,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1642
1680
|
mergedAt: Date | null;
|
|
1643
1681
|
}[];
|
|
1644
1682
|
mergedBranches: {
|
|
1683
|
+
workspaceId: string | null;
|
|
1645
1684
|
userId: string;
|
|
1646
1685
|
id: string;
|
|
1647
1686
|
updatedAt: Date;
|
|
@@ -1705,7 +1744,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1705
1744
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
1706
1745
|
input: {
|
|
1707
1746
|
workspaceId?: string | undefined;
|
|
1708
|
-
targetType?: "entity" | "
|
|
1747
|
+
targetType?: "entity" | "view" | "document" | "whiteboard" | undefined;
|
|
1709
1748
|
targetId?: string | undefined;
|
|
1710
1749
|
status?: "pending" | "validated" | "rejected" | "all" | undefined;
|
|
1711
1750
|
limit?: number | undefined;
|
|
@@ -1751,7 +1790,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1751
1790
|
}>;
|
|
1752
1791
|
submit: import("@trpc/server").TRPCMutationProcedure<{
|
|
1753
1792
|
input: {
|
|
1754
|
-
targetType: "workspace" | "entity" | "
|
|
1793
|
+
targetType: "workspace" | "entity" | "view" | "document" | "relation";
|
|
1755
1794
|
changeType: "create" | "update" | "delete";
|
|
1756
1795
|
data: Record<string, any>;
|
|
1757
1796
|
targetId?: string | undefined;
|
|
@@ -2924,6 +2963,228 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2924
2963
|
meta: object;
|
|
2925
2964
|
}>;
|
|
2926
2965
|
}>>;
|
|
2966
|
+
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
2967
|
+
ctx: Context;
|
|
2968
|
+
meta: object;
|
|
2969
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
2970
|
+
transformer: true;
|
|
2971
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2972
|
+
listCommands: import("@trpc/server").TRPCQueryProcedure<{
|
|
2973
|
+
input: {
|
|
2974
|
+
limit?: number | undefined;
|
|
2975
|
+
};
|
|
2976
|
+
output: {
|
|
2977
|
+
commands: {
|
|
2978
|
+
workspaceId: string;
|
|
2979
|
+
id: string;
|
|
2980
|
+
updatedAt: Date;
|
|
2981
|
+
createdAt: Date;
|
|
2982
|
+
title: string;
|
|
2983
|
+
createdBy: string;
|
|
2984
|
+
promptTemplate: string;
|
|
2985
|
+
compiledTemplateAst: unknown;
|
|
2986
|
+
derivedInputs: DerivedInput[] | null;
|
|
2987
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
2988
|
+
allowedTools: string[] | null;
|
|
2989
|
+
allowedEntityTypes: string[] | null;
|
|
2990
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
2991
|
+
canCreateViews: boolean;
|
|
2992
|
+
outputMode: "text" | "proposal" | "view";
|
|
2993
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
2994
|
+
sharedScope: "workspace" | "user";
|
|
2995
|
+
}[];
|
|
2996
|
+
};
|
|
2997
|
+
meta: object;
|
|
2998
|
+
}>;
|
|
2999
|
+
getCommand: import("@trpc/server").TRPCQueryProcedure<{
|
|
3000
|
+
input: {
|
|
3001
|
+
id: string;
|
|
3002
|
+
};
|
|
3003
|
+
output: {
|
|
3004
|
+
workspaceId: string;
|
|
3005
|
+
id: string;
|
|
3006
|
+
updatedAt: Date;
|
|
3007
|
+
createdAt: Date;
|
|
3008
|
+
title: string;
|
|
3009
|
+
createdBy: string;
|
|
3010
|
+
promptTemplate: string;
|
|
3011
|
+
compiledTemplateAst: unknown;
|
|
3012
|
+
derivedInputs: DerivedInput[] | null;
|
|
3013
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
3014
|
+
allowedTools: string[] | null;
|
|
3015
|
+
allowedEntityTypes: string[] | null;
|
|
3016
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
3017
|
+
canCreateViews: boolean;
|
|
3018
|
+
outputMode: "text" | "proposal" | "view";
|
|
3019
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
3020
|
+
sharedScope: "workspace" | "user";
|
|
3021
|
+
};
|
|
3022
|
+
meta: object;
|
|
3023
|
+
}>;
|
|
3024
|
+
createCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3025
|
+
input: {
|
|
3026
|
+
title: string;
|
|
3027
|
+
promptTemplate: string;
|
|
3028
|
+
inputOverrides?: Record<string, any> | undefined;
|
|
3029
|
+
allowedTools?: string[] | undefined;
|
|
3030
|
+
allowedEntityTypes?: string[] | undefined;
|
|
3031
|
+
maxEntitiesCreatedPerRun?: number | undefined;
|
|
3032
|
+
canCreateViews?: boolean | undefined;
|
|
3033
|
+
outputMode?: "text" | "proposal" | "view" | undefined;
|
|
3034
|
+
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
3035
|
+
sharedScope?: "workspace" | "user" | undefined;
|
|
3036
|
+
};
|
|
3037
|
+
output: {
|
|
3038
|
+
workspaceId: string;
|
|
3039
|
+
id: string;
|
|
3040
|
+
updatedAt: Date;
|
|
3041
|
+
createdAt: Date;
|
|
3042
|
+
title: string;
|
|
3043
|
+
createdBy: string;
|
|
3044
|
+
promptTemplate: string;
|
|
3045
|
+
compiledTemplateAst: unknown;
|
|
3046
|
+
derivedInputs: DerivedInput[] | null;
|
|
3047
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
3048
|
+
allowedTools: string[] | null;
|
|
3049
|
+
allowedEntityTypes: string[] | null;
|
|
3050
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
3051
|
+
canCreateViews: boolean;
|
|
3052
|
+
outputMode: "text" | "proposal" | "view";
|
|
3053
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
3054
|
+
sharedScope: "workspace" | "user";
|
|
3055
|
+
};
|
|
3056
|
+
meta: object;
|
|
3057
|
+
}>;
|
|
3058
|
+
updateCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3059
|
+
input: {
|
|
3060
|
+
id: string;
|
|
3061
|
+
title?: string | undefined;
|
|
3062
|
+
promptTemplate?: string | undefined;
|
|
3063
|
+
inputOverrides?: Record<string, any> | undefined;
|
|
3064
|
+
allowedTools?: string[] | undefined;
|
|
3065
|
+
allowedEntityTypes?: string[] | undefined;
|
|
3066
|
+
maxEntitiesCreatedPerRun?: number | null | undefined;
|
|
3067
|
+
canCreateViews?: boolean | undefined;
|
|
3068
|
+
outputMode?: "text" | "proposal" | "view" | undefined;
|
|
3069
|
+
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
3070
|
+
sharedScope?: "workspace" | "user" | undefined;
|
|
3071
|
+
};
|
|
3072
|
+
output: {
|
|
3073
|
+
id: string;
|
|
3074
|
+
workspaceId: string;
|
|
3075
|
+
createdBy: string;
|
|
3076
|
+
title: string;
|
|
3077
|
+
promptTemplate: string;
|
|
3078
|
+
compiledTemplateAst: unknown;
|
|
3079
|
+
derivedInputs: DerivedInput[] | null;
|
|
3080
|
+
inputOverrides: Record<string, InputOverride> | null;
|
|
3081
|
+
allowedTools: string[] | null;
|
|
3082
|
+
allowedEntityTypes: string[] | null;
|
|
3083
|
+
maxEntitiesCreatedPerRun: number | null;
|
|
3084
|
+
canCreateViews: boolean;
|
|
3085
|
+
outputMode: "text" | "proposal" | "view";
|
|
3086
|
+
permissionsProfile: "read_only" | "propose_writes";
|
|
3087
|
+
sharedScope: "workspace" | "user";
|
|
3088
|
+
createdAt: Date;
|
|
3089
|
+
updatedAt: Date;
|
|
3090
|
+
};
|
|
3091
|
+
meta: object;
|
|
3092
|
+
}>;
|
|
3093
|
+
deleteCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3094
|
+
input: {
|
|
3095
|
+
id: string;
|
|
3096
|
+
};
|
|
3097
|
+
output: {
|
|
3098
|
+
success: boolean;
|
|
3099
|
+
};
|
|
3100
|
+
meta: object;
|
|
3101
|
+
}>;
|
|
3102
|
+
runCommand: import("@trpc/server").TRPCMutationProcedure<{
|
|
3103
|
+
input: {
|
|
3104
|
+
commandId: string;
|
|
3105
|
+
argumentValues: Record<string, string>;
|
|
3106
|
+
selectionContext?: {
|
|
3107
|
+
type: "entities" | "documents" | "text" | "viewRows";
|
|
3108
|
+
entityIds?: string[] | undefined;
|
|
3109
|
+
viewId?: string | undefined;
|
|
3110
|
+
rowEntityIds?: string[] | undefined;
|
|
3111
|
+
documentIds?: string[] | undefined;
|
|
3112
|
+
text?: string | undefined;
|
|
3113
|
+
} | undefined;
|
|
3114
|
+
};
|
|
3115
|
+
output: {
|
|
3116
|
+
runId: string;
|
|
3117
|
+
threadId: string;
|
|
3118
|
+
};
|
|
3119
|
+
meta: object;
|
|
3120
|
+
}>;
|
|
3121
|
+
listRuns: import("@trpc/server").TRPCQueryProcedure<{
|
|
3122
|
+
input: {
|
|
3123
|
+
limit?: number | undefined;
|
|
3124
|
+
cursor?: string | undefined;
|
|
3125
|
+
};
|
|
3126
|
+
output: {
|
|
3127
|
+
runs: {
|
|
3128
|
+
workspaceId: string;
|
|
3129
|
+
userId: string;
|
|
3130
|
+
id: string;
|
|
3131
|
+
errorMessage: string | null;
|
|
3132
|
+
startedAt: Date;
|
|
3133
|
+
threadId: string;
|
|
3134
|
+
status: "completed" | "running" | "failed";
|
|
3135
|
+
commandId: string;
|
|
3136
|
+
permissionsSnapshot: Record<string, unknown> | null;
|
|
3137
|
+
inputs: Record<string, unknown> | null;
|
|
3138
|
+
selectionContextSnapshot: unknown;
|
|
3139
|
+
outputSummary: string | null;
|
|
3140
|
+
proposedActions: unknown[] | null;
|
|
3141
|
+
approvedActions: unknown[] | null;
|
|
3142
|
+
completedAt: Date | null;
|
|
3143
|
+
}[];
|
|
3144
|
+
nextCursor: string | undefined;
|
|
3145
|
+
hasMore: boolean;
|
|
3146
|
+
};
|
|
3147
|
+
meta: object;
|
|
3148
|
+
}>;
|
|
3149
|
+
getRun: import("@trpc/server").TRPCQueryProcedure<{
|
|
3150
|
+
input: {
|
|
3151
|
+
id: string;
|
|
3152
|
+
};
|
|
3153
|
+
output: {
|
|
3154
|
+
workspaceId: string;
|
|
3155
|
+
userId: string;
|
|
3156
|
+
id: string;
|
|
3157
|
+
errorMessage: string | null;
|
|
3158
|
+
startedAt: Date;
|
|
3159
|
+
threadId: string;
|
|
3160
|
+
status: "completed" | "running" | "failed";
|
|
3161
|
+
commandId: string;
|
|
3162
|
+
permissionsSnapshot: Record<string, unknown> | null;
|
|
3163
|
+
inputs: Record<string, unknown> | null;
|
|
3164
|
+
selectionContextSnapshot: unknown;
|
|
3165
|
+
outputSummary: string | null;
|
|
3166
|
+
proposedActions: unknown[] | null;
|
|
3167
|
+
approvedActions: unknown[] | null;
|
|
3168
|
+
completedAt: Date | null;
|
|
3169
|
+
};
|
|
3170
|
+
meta: object;
|
|
3171
|
+
}>;
|
|
3172
|
+
getEffectiveService: import("@trpc/server").TRPCQueryProcedure<{
|
|
3173
|
+
input: Record<string, never>;
|
|
3174
|
+
output: {
|
|
3175
|
+
serviceId: string;
|
|
3176
|
+
endpoint: string;
|
|
3177
|
+
manifest: {
|
|
3178
|
+
name: string;
|
|
3179
|
+
version?: string;
|
|
3180
|
+
capabilities: string[];
|
|
3181
|
+
endpoints?: string[];
|
|
3182
|
+
authType?: string;
|
|
3183
|
+
};
|
|
3184
|
+
};
|
|
3185
|
+
meta: object;
|
|
3186
|
+
}>;
|
|
3187
|
+
}>>;
|
|
2927
3188
|
capabilities: import("@trpc/server").TRPCBuiltRouter<{
|
|
2928
3189
|
ctx: Context;
|
|
2929
3190
|
meta: object;
|
|
@@ -3350,6 +3611,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3350
3611
|
};
|
|
3351
3612
|
meta: object;
|
|
3352
3613
|
}>;
|
|
3614
|
+
setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
|
|
3615
|
+
input: {
|
|
3616
|
+
workspaceId: string;
|
|
3617
|
+
serviceId: string | null;
|
|
3618
|
+
};
|
|
3619
|
+
output: {
|
|
3620
|
+
status: string;
|
|
3621
|
+
message: string;
|
|
3622
|
+
};
|
|
3623
|
+
meta: object;
|
|
3624
|
+
}>;
|
|
3353
3625
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3354
3626
|
input: {
|
|
3355
3627
|
id: string;
|
|
@@ -3501,6 +3773,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3501
3773
|
} | undefined;
|
|
3502
3774
|
config?: Record<string, any> | undefined;
|
|
3503
3775
|
embeddedViewIds?: string[] | undefined;
|
|
3776
|
+
metadata?: Record<string, any> | undefined;
|
|
3504
3777
|
initialContent?: any;
|
|
3505
3778
|
};
|
|
3506
3779
|
output: {
|
|
@@ -3558,6 +3831,41 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3558
3831
|
}[];
|
|
3559
3832
|
meta: object;
|
|
3560
3833
|
}>;
|
|
3834
|
+
getHome: import("@trpc/server").TRPCQueryProcedure<{
|
|
3835
|
+
input: {
|
|
3836
|
+
workspaceId: string;
|
|
3837
|
+
scope?: "workspace" | "user" | "effective" | undefined;
|
|
3838
|
+
};
|
|
3839
|
+
output: {
|
|
3840
|
+
view: {
|
|
3841
|
+
name: string;
|
|
3842
|
+
workspaceId: string | null;
|
|
3843
|
+
userId: string;
|
|
3844
|
+
id: string;
|
|
3845
|
+
query: unknown;
|
|
3846
|
+
columns: unknown;
|
|
3847
|
+
updatedAt: Date;
|
|
3848
|
+
createdAt: Date;
|
|
3849
|
+
type: string;
|
|
3850
|
+
metadata: unknown;
|
|
3851
|
+
documentId: string | null;
|
|
3852
|
+
description: string | null;
|
|
3853
|
+
category: string;
|
|
3854
|
+
scopeProfileIds: string[] | null;
|
|
3855
|
+
scopeMode: string | null;
|
|
3856
|
+
config: unknown;
|
|
3857
|
+
filter: unknown;
|
|
3858
|
+
sort: unknown;
|
|
3859
|
+
layoutConfig: unknown;
|
|
3860
|
+
yjsRoomId: string | null;
|
|
3861
|
+
thumbnailUrl: string | null;
|
|
3862
|
+
schemaSnapshot: unknown;
|
|
3863
|
+
snapshotUpdatedAt: Date | null;
|
|
3864
|
+
embeddedViewIds: string[] | null;
|
|
3865
|
+
} | null;
|
|
3866
|
+
};
|
|
3867
|
+
meta: object;
|
|
3868
|
+
}>;
|
|
3561
3869
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3562
3870
|
input: {
|
|
3563
3871
|
id: string;
|
|
@@ -3811,6 +4119,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3811
4119
|
fontSize?: string | undefined;
|
|
3812
4120
|
animations?: boolean | undefined;
|
|
3813
4121
|
defaultView?: "list" | "grid" | "timeline" | undefined;
|
|
4122
|
+
entityOpenMode?: "floating" | "side" | "modal" | undefined;
|
|
3814
4123
|
} | undefined;
|
|
3815
4124
|
graphPreferences?: {
|
|
3816
4125
|
forceSettings?: {
|
|
@@ -4014,7 +4323,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4014
4323
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4015
4324
|
createPublicLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
4016
4325
|
input: {
|
|
4017
|
-
resourceType: "entity" | "
|
|
4326
|
+
resourceType: "entity" | "view" | "document";
|
|
4018
4327
|
resourceId: string;
|
|
4019
4328
|
expiresInDays?: number | undefined;
|
|
4020
4329
|
access?: "workspace_only" | "anyone_with_link" | undefined;
|
|
@@ -4029,7 +4338,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4029
4338
|
}>;
|
|
4030
4339
|
invite: import("@trpc/server").TRPCMutationProcedure<{
|
|
4031
4340
|
input: {
|
|
4032
|
-
resourceType: "entity" | "
|
|
4341
|
+
resourceType: "entity" | "view" | "document";
|
|
4033
4342
|
resourceId: string;
|
|
4034
4343
|
userEmail: string;
|
|
4035
4344
|
};
|
|
@@ -4130,7 +4439,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4130
4439
|
}>;
|
|
4131
4440
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4132
4441
|
input: {
|
|
4133
|
-
resourceType: "entity" | "
|
|
4442
|
+
resourceType: "entity" | "view" | "document";
|
|
4134
4443
|
resourceId: string;
|
|
4135
4444
|
visibility?: "public" | "private" | undefined;
|
|
4136
4445
|
expiresAt?: Date | undefined;
|