@synap-core/api-types 1.3.1 → 1.4.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.
@@ -116,49 +116,6 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
116
116
  identity: undefined;
117
117
  generated: undefined;
118
118
  }, {}, {}>;
119
- projectIds: import("drizzle-orm/pg-core").PgColumn<{
120
- name: "project_ids";
121
- tableName: "chat_threads";
122
- dataType: "array";
123
- columnType: "PgArray";
124
- data: string[];
125
- driverParam: string | string[];
126
- notNull: false;
127
- hasDefault: false;
128
- isPrimaryKey: false;
129
- isAutoincrement: false;
130
- hasRuntimeDefault: false;
131
- enumValues: undefined;
132
- baseColumn: import("drizzle-orm").Column<{
133
- name: "project_ids";
134
- tableName: "chat_threads";
135
- dataType: "string";
136
- columnType: "PgUUID";
137
- data: string;
138
- driverParam: string;
139
- notNull: false;
140
- hasDefault: false;
141
- isPrimaryKey: false;
142
- isAutoincrement: false;
143
- hasRuntimeDefault: false;
144
- enumValues: undefined;
145
- baseColumn: never;
146
- identity: undefined;
147
- generated: undefined;
148
- }, {}, {}>;
149
- identity: undefined;
150
- generated: undefined;
151
- }, {}, {
152
- baseBuilder: import("drizzle-orm/pg-core").PgColumnBuilder<{
153
- name: "project_ids";
154
- dataType: "string";
155
- columnType: "PgUUID";
156
- data: string;
157
- driverParam: string;
158
- enumValues: undefined;
159
- }, {}, {}, import("drizzle-orm").ColumnBuilderExtraConfig>;
160
- size: undefined;
161
- }>;
162
119
  title: import("drizzle-orm/pg-core").PgColumn<{
163
120
  name: "title";
164
121
  tableName: "chat_threads";
@@ -500,6 +457,193 @@ declare enum ProposalStatus {
500
457
  APPROVED = "approved",
501
458
  REJECTED = "rejected"
502
459
  }
460
+ declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
461
+ name: "message_links";
462
+ schema: undefined;
463
+ columns: {
464
+ id: import("drizzle-orm/pg-core").PgColumn<{
465
+ name: "id";
466
+ tableName: "message_links";
467
+ dataType: "string";
468
+ columnType: "PgUUID";
469
+ data: string;
470
+ driverParam: string;
471
+ notNull: true;
472
+ hasDefault: true;
473
+ isPrimaryKey: true;
474
+ isAutoincrement: false;
475
+ hasRuntimeDefault: false;
476
+ enumValues: undefined;
477
+ baseColumn: never;
478
+ identity: undefined;
479
+ generated: undefined;
480
+ }, {}, {}>;
481
+ messageId: import("drizzle-orm/pg-core").PgColumn<{
482
+ name: "message_id";
483
+ tableName: "message_links";
484
+ dataType: "string";
485
+ columnType: "PgUUID";
486
+ data: string;
487
+ driverParam: string;
488
+ notNull: true;
489
+ hasDefault: false;
490
+ isPrimaryKey: false;
491
+ isAutoincrement: false;
492
+ hasRuntimeDefault: false;
493
+ enumValues: undefined;
494
+ baseColumn: never;
495
+ identity: undefined;
496
+ generated: undefined;
497
+ }, {}, {}>;
498
+ targetType: import("drizzle-orm/pg-core").PgColumn<{
499
+ name: "target_type";
500
+ tableName: "message_links";
501
+ dataType: "string";
502
+ columnType: "PgText";
503
+ data: string;
504
+ driverParam: string;
505
+ notNull: true;
506
+ hasDefault: false;
507
+ isPrimaryKey: false;
508
+ isAutoincrement: false;
509
+ hasRuntimeDefault: false;
510
+ enumValues: [
511
+ string,
512
+ ...string[]
513
+ ];
514
+ baseColumn: never;
515
+ identity: undefined;
516
+ generated: undefined;
517
+ }, {}, {}>;
518
+ targetId: import("drizzle-orm/pg-core").PgColumn<{
519
+ name: "target_id";
520
+ tableName: "message_links";
521
+ dataType: "string";
522
+ columnType: "PgUUID";
523
+ data: string;
524
+ driverParam: string;
525
+ notNull: true;
526
+ hasDefault: false;
527
+ isPrimaryKey: false;
528
+ isAutoincrement: false;
529
+ hasRuntimeDefault: false;
530
+ enumValues: undefined;
531
+ baseColumn: never;
532
+ identity: undefined;
533
+ generated: undefined;
534
+ }, {}, {}>;
535
+ relationshipType: import("drizzle-orm/pg-core").PgColumn<{
536
+ name: "relationship_type";
537
+ tableName: "message_links";
538
+ dataType: "string";
539
+ columnType: "PgText";
540
+ data: string;
541
+ driverParam: string;
542
+ notNull: true;
543
+ hasDefault: false;
544
+ isPrimaryKey: false;
545
+ isAutoincrement: false;
546
+ hasRuntimeDefault: false;
547
+ enumValues: [
548
+ string,
549
+ ...string[]
550
+ ];
551
+ baseColumn: never;
552
+ identity: undefined;
553
+ generated: undefined;
554
+ }, {}, {}>;
555
+ position: import("drizzle-orm/pg-core").PgColumn<{
556
+ name: "position";
557
+ tableName: "message_links";
558
+ dataType: "json";
559
+ columnType: "PgJsonb";
560
+ data: unknown;
561
+ driverParam: unknown;
562
+ notNull: false;
563
+ hasDefault: false;
564
+ isPrimaryKey: false;
565
+ isAutoincrement: false;
566
+ hasRuntimeDefault: false;
567
+ enumValues: undefined;
568
+ baseColumn: never;
569
+ identity: undefined;
570
+ generated: undefined;
571
+ }, {}, {}>;
572
+ metadata: import("drizzle-orm/pg-core").PgColumn<{
573
+ name: "metadata";
574
+ tableName: "message_links";
575
+ dataType: "json";
576
+ columnType: "PgJsonb";
577
+ data: unknown;
578
+ driverParam: unknown;
579
+ notNull: false;
580
+ hasDefault: false;
581
+ isPrimaryKey: false;
582
+ isAutoincrement: false;
583
+ hasRuntimeDefault: false;
584
+ enumValues: undefined;
585
+ baseColumn: never;
586
+ identity: undefined;
587
+ generated: undefined;
588
+ }, {}, {}>;
589
+ userId: import("drizzle-orm/pg-core").PgColumn<{
590
+ name: "user_id";
591
+ tableName: "message_links";
592
+ dataType: "string";
593
+ columnType: "PgText";
594
+ data: string;
595
+ driverParam: string;
596
+ notNull: true;
597
+ hasDefault: false;
598
+ isPrimaryKey: false;
599
+ isAutoincrement: false;
600
+ hasRuntimeDefault: false;
601
+ enumValues: [
602
+ string,
603
+ ...string[]
604
+ ];
605
+ baseColumn: never;
606
+ identity: undefined;
607
+ generated: undefined;
608
+ }, {}, {}>;
609
+ workspaceId: import("drizzle-orm/pg-core").PgColumn<{
610
+ name: "workspace_id";
611
+ tableName: "message_links";
612
+ dataType: "string";
613
+ columnType: "PgUUID";
614
+ data: string;
615
+ driverParam: string;
616
+ notNull: true;
617
+ hasDefault: false;
618
+ isPrimaryKey: false;
619
+ isAutoincrement: false;
620
+ hasRuntimeDefault: false;
621
+ enumValues: undefined;
622
+ baseColumn: never;
623
+ identity: undefined;
624
+ generated: undefined;
625
+ }, {}, {}>;
626
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
627
+ name: "created_at";
628
+ tableName: "message_links";
629
+ dataType: "date";
630
+ columnType: "PgTimestamp";
631
+ data: Date;
632
+ driverParam: string;
633
+ notNull: true;
634
+ hasDefault: true;
635
+ isPrimaryKey: false;
636
+ isAutoincrement: false;
637
+ hasRuntimeDefault: false;
638
+ enumValues: undefined;
639
+ baseColumn: never;
640
+ identity: undefined;
641
+ generated: undefined;
642
+ }, {}, {}>;
643
+ };
644
+ dialect: "pg";
645
+ }>;
646
+ export type MessageLink = typeof messageLinks.$inferSelect;
503
647
  declare enum PropertyValueType {
504
648
  STRING = "string",
505
649
  NUMBER = "number",
@@ -672,6 +816,19 @@ export interface EventRecord {
672
816
  correlationId?: string;
673
817
  source: string;
674
818
  }
819
+ /** Minimal message fields for list/preview */
820
+ export interface LinkedMessagePreview {
821
+ id: string;
822
+ threadId: string;
823
+ role: string;
824
+ content: string;
825
+ timestamp: Date;
826
+ userId: string;
827
+ }
828
+ export interface LinkedMessageItem {
829
+ link: MessageLink;
830
+ message: LinkedMessagePreview;
831
+ }
675
832
  export interface EffectiveProperty extends PropertyDef {
676
833
  required: boolean;
677
834
  defaultValue: unknown;
@@ -752,8 +909,9 @@ export interface EntityQuery {
752
909
  * View category determines content structure and rendering approach
753
910
  * - structured: Query-based views with interchangeable layouts (table, kanban, graph, etc.)
754
911
  * - canvas: Freeform drawing views (whiteboard, mindmap)
912
+ * - composite: Views that compose other views (bento grid, dashboard)
755
913
  */
756
- export type ViewCategory = "structured" | "canvas";
914
+ export type ViewCategory = "structured" | "canvas" | "composite";
757
915
  declare enum AgentType {
758
916
  DEFAULT = "default",
759
917
  META = "meta",
@@ -941,7 +1099,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
941
1099
  log: import("@trpc/server").TRPCMutationProcedure<{
942
1100
  input: {
943
1101
  subjectId: string;
944
- subjectType: "user" | "system" | "entity" | "relation";
1102
+ subjectType: unknown;
945
1103
  eventType: string;
946
1104
  data: Record<string, unknown>;
947
1105
  version: number;
@@ -961,6 +1119,36 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
961
1119
  output: EventRecord[];
962
1120
  meta: object;
963
1121
  }>;
1122
+ search: import("@trpc/server").TRPCQueryProcedure<{
1123
+ input: {
1124
+ userId?: string | undefined;
1125
+ eventType?: string | undefined;
1126
+ subjectType?: unknown;
1127
+ subjectId?: string | undefined;
1128
+ correlationId?: string | undefined;
1129
+ fromDate?: Date | undefined;
1130
+ toDate?: Date | undefined;
1131
+ limit?: number | undefined;
1132
+ offset?: number | undefined;
1133
+ workspaceId?: string | undefined;
1134
+ };
1135
+ output: EventRecord[];
1136
+ meta: object;
1137
+ }>;
1138
+ count: import("@trpc/server").TRPCQueryProcedure<{
1139
+ input: {
1140
+ userId?: string | undefined;
1141
+ eventType?: string | undefined;
1142
+ subjectType?: unknown;
1143
+ fromDate?: Date | undefined;
1144
+ toDate?: Date | undefined;
1145
+ workspaceId?: string | undefined;
1146
+ };
1147
+ output: {
1148
+ count: number;
1149
+ };
1150
+ meta: object;
1151
+ }>;
964
1152
  }>>;
965
1153
  capture: import("@trpc/server").TRPCBuiltRouter<{
966
1154
  ctx: Context;
@@ -1031,7 +1219,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1031
1219
  fileSize: number | null;
1032
1220
  fileType: string | null;
1033
1221
  checksum: string | null;
1034
- projectIds: string[] | null;
1035
1222
  version: number;
1036
1223
  createdAt: Date;
1037
1224
  updatedAt: Date;
@@ -1062,7 +1249,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1062
1249
  fileSize: number | null;
1063
1250
  fileType: string | null;
1064
1251
  checksum: string | null;
1065
- projectIds: string[] | null;
1066
1252
  version: number;
1067
1253
  createdAt: Date;
1068
1254
  updatedAt: Date;
@@ -1071,6 +1257,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1071
1257
  };
1072
1258
  meta: object;
1073
1259
  }>;
1260
+ getByDocumentId: import("@trpc/server").TRPCQueryProcedure<{
1261
+ input: {
1262
+ documentId: string;
1263
+ };
1264
+ output: {
1265
+ entity: any;
1266
+ };
1267
+ meta: object;
1268
+ }>;
1074
1269
  get: import("@trpc/server").TRPCQueryProcedure<{
1075
1270
  input: {
1076
1271
  id: string;
@@ -1112,7 +1307,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1112
1307
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1113
1308
  createThread: import("@trpc/server").TRPCMutationProcedure<{
1114
1309
  input: {
1115
- projectId?: string | undefined;
1116
1310
  parentThreadId?: string | undefined;
1117
1311
  branchPurpose?: string | undefined;
1118
1312
  agentId?: string | undefined;
@@ -1133,7 +1327,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1133
1327
  updatedAt: Date;
1134
1328
  createdAt: Date;
1135
1329
  metadata: unknown;
1136
- projectIds: string[] | null;
1137
1330
  title: string | null;
1138
1331
  status: ChatThreadStatus;
1139
1332
  threadType: ChatThreadType;
@@ -1155,6 +1348,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1155
1348
  input: {
1156
1349
  threadId: string;
1157
1350
  content: string;
1351
+ workspaceId?: string | undefined;
1158
1352
  };
1159
1353
  output: {
1160
1354
  messageId: `${string}-${string}-${string}-${string}-${string}`;
@@ -1171,7 +1365,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1171
1365
  updatedAt: Date;
1172
1366
  createdAt: Date;
1173
1367
  metadata: unknown;
1174
- projectIds: string[] | null;
1175
1368
  title: string | null;
1176
1369
  status: ChatThreadStatus;
1177
1370
  threadType: ChatThreadType;
@@ -1264,7 +1457,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1264
1457
  }>;
1265
1458
  listThreads: import("@trpc/server").TRPCQueryProcedure<{
1266
1459
  input: {
1267
- projectId?: string | undefined;
1268
1460
  threadType?: "main" | "branch" | undefined;
1269
1461
  limit?: number | undefined;
1270
1462
  };
@@ -1275,7 +1467,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1275
1467
  updatedAt: Date;
1276
1468
  createdAt: Date;
1277
1469
  metadata: unknown;
1278
- projectIds: string[] | null;
1279
1470
  title: string | null;
1280
1471
  status: ChatThreadStatus;
1281
1472
  threadType: ChatThreadType;
@@ -1302,7 +1493,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1302
1493
  updatedAt: Date;
1303
1494
  createdAt: Date;
1304
1495
  metadata: unknown;
1305
- projectIds: string[] | null;
1306
1496
  title: string | null;
1307
1497
  status: ChatThreadStatus;
1308
1498
  threadType: ChatThreadType;
@@ -1342,7 +1532,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1342
1532
  updatedAt: Date;
1343
1533
  createdAt: Date;
1344
1534
  metadata: unknown;
1345
- projectIds: string[] | null;
1346
1535
  title: string | null;
1347
1536
  status: ChatThreadStatus;
1348
1537
  threadType: ChatThreadType;
@@ -1356,8 +1545,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1356
1545
  mergedAt: Date | null;
1357
1546
  };
1358
1547
  entities: {
1359
- userId: string;
1360
1548
  workspaceId: string;
1549
+ userId: string;
1361
1550
  id: string;
1362
1551
  createdAt: Date;
1363
1552
  entityId: string;
@@ -1368,8 +1557,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1368
1557
  sourceEventId: string | null;
1369
1558
  }[] | undefined;
1370
1559
  documents: {
1371
- userId: string;
1372
1560
  workspaceId: string;
1561
+ userId: string;
1373
1562
  id: string;
1374
1563
  createdAt: Date;
1375
1564
  documentId: string;
@@ -1422,7 +1611,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1422
1611
  updatedAt: Date;
1423
1612
  createdAt: Date;
1424
1613
  metadata: unknown;
1425
- projectIds: string[] | null;
1426
1614
  title: string | null;
1427
1615
  status: ChatThreadStatus;
1428
1616
  threadType: ChatThreadType;
@@ -1441,7 +1629,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1441
1629
  updatedAt: Date;
1442
1630
  createdAt: Date;
1443
1631
  metadata: unknown;
1444
- projectIds: string[] | null;
1445
1632
  title: string | null;
1446
1633
  status: ChatThreadStatus;
1447
1634
  threadType: ChatThreadType;
@@ -1460,7 +1647,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1460
1647
  updatedAt: Date;
1461
1648
  createdAt: Date;
1462
1649
  metadata: unknown;
1463
- projectIds: string[] | null;
1464
1650
  title: string | null;
1465
1651
  status: ChatThreadStatus;
1466
1652
  threadType: ChatThreadType;
@@ -1483,8 +1669,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1483
1669
  };
1484
1670
  output: {
1485
1671
  entities: {
1486
- userId: string;
1487
1672
  workspaceId: string;
1673
+ userId: string;
1488
1674
  id: string;
1489
1675
  createdAt: Date;
1490
1676
  entityId: string;
@@ -1495,8 +1681,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1495
1681
  sourceEventId: string | null;
1496
1682
  }[];
1497
1683
  documents: {
1498
- userId: string;
1499
1684
  workspaceId: string;
1685
+ userId: string;
1500
1686
  id: string;
1501
1687
  createdAt: Date;
1502
1688
  documentId: string;
@@ -1519,7 +1705,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1519
1705
  list: import("@trpc/server").TRPCQueryProcedure<{
1520
1706
  input: {
1521
1707
  workspaceId?: string | undefined;
1522
- targetType?: "entity" | "document" | "whiteboard" | "view" | undefined;
1708
+ targetType?: "entity" | "document" | "view" | "whiteboard" | undefined;
1523
1709
  targetId?: string | undefined;
1524
1710
  status?: "pending" | "validated" | "rejected" | "all" | undefined;
1525
1711
  limit?: number | undefined;
@@ -1565,7 +1751,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1565
1751
  }>;
1566
1752
  submit: import("@trpc/server").TRPCMutationProcedure<{
1567
1753
  input: {
1568
- targetType: "entity" | "relation" | "document" | "view" | "workspace";
1754
+ targetType: "workspace" | "entity" | "document" | "view" | "relation";
1569
1755
  changeType: "create" | "update" | "delete";
1570
1756
  data: Record<string, any>;
1571
1757
  targetId?: string | undefined;
@@ -1988,6 +2174,50 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1988
2174
  };
1989
2175
  meta: object;
1990
2176
  }>;
2177
+ listSystemKeys: import("@trpc/server").TRPCQueryProcedure<{
2178
+ input: void;
2179
+ output: {
2180
+ id: string;
2181
+ keyName: string;
2182
+ keyPrefix: string;
2183
+ hubId: string | null;
2184
+ scope: string[];
2185
+ isActive: boolean;
2186
+ expiresAt: Date | null;
2187
+ lastUsedAt: Date | null;
2188
+ usageCount: number;
2189
+ createdAt: Date;
2190
+ user: {
2191
+ id: string;
2192
+ email: string;
2193
+ name: string | null;
2194
+ };
2195
+ }[];
2196
+ meta: object;
2197
+ }>;
2198
+ listWorkspaceKeys: import("@trpc/server").TRPCQueryProcedure<{
2199
+ input: {
2200
+ workspaceId: string;
2201
+ };
2202
+ output: {
2203
+ id: string;
2204
+ keyName: string;
2205
+ keyPrefix: string;
2206
+ hubId: string | null;
2207
+ scope: string[];
2208
+ isActive: boolean;
2209
+ expiresAt: Date | null;
2210
+ lastUsedAt: Date | null;
2211
+ usageCount: number;
2212
+ createdAt: Date;
2213
+ user: {
2214
+ id: string;
2215
+ email: string;
2216
+ name: string | null;
2217
+ };
2218
+ }[];
2219
+ meta: object;
2220
+ }>;
1991
2221
  }>>;
1992
2222
  health: import("@trpc/server").TRPCBuiltRouter<{
1993
2223
  ctx: Context;
@@ -2130,6 +2360,23 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2130
2360
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2131
2361
  transformer: true;
2132
2362
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2363
+ create: import("@trpc/server").TRPCMutationProcedure<{
2364
+ input: {
2365
+ title: string;
2366
+ content?: string | undefined;
2367
+ type?: "code" | "text" | "markdown" | "pdf" | "docx" | undefined;
2368
+ projectId?: string | undefined;
2369
+ };
2370
+ output: {
2371
+ status: string;
2372
+ message: string;
2373
+ document: {
2374
+ id: `${string}-${string}-${string}-${string}-${string}`;
2375
+ title: string;
2376
+ };
2377
+ };
2378
+ meta: object;
2379
+ }>;
2133
2380
  upload: import("@trpc/server").TRPCMutationProcedure<{
2134
2381
  input: {
2135
2382
  type: "code" | "text" | "markdown" | "pdf" | "docx";
@@ -2155,7 +2402,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2155
2402
  id: string;
2156
2403
  userId: string;
2157
2404
  workspaceId: string;
2158
- projectIds: string[] | null;
2159
2405
  title: string;
2160
2406
  type: string;
2161
2407
  language: string | null;
@@ -2279,7 +2525,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2279
2525
  id: string;
2280
2526
  userId: string;
2281
2527
  workspaceId: string;
2282
- projectIds: string[] | null;
2283
2528
  title: string;
2284
2529
  type: string;
2285
2530
  language: string | null;
@@ -2491,16 +2736,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2491
2736
  offset?: number | undefined;
2492
2737
  };
2493
2738
  output: {
2494
- userId: string;
2495
2739
  workspaceId: string;
2740
+ userId: string;
2496
2741
  id: string;
2497
2742
  data: unknown;
2498
2743
  updatedAt: Date;
2499
- tags: string[] | null;
2500
2744
  createdAt: Date;
2501
2745
  timestamp: Date;
2502
2746
  type: string;
2503
- projectIds: string[] | null;
2504
2747
  title: string;
2505
2748
  preview: string | null;
2506
2749
  status: string | null;
@@ -2510,6 +2753,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2510
2753
  deepLink: string | null;
2511
2754
  snoozedUntil: Date | null;
2512
2755
  priority: string | null;
2756
+ tags: string[] | null;
2513
2757
  processedAt: Date | null;
2514
2758
  }[];
2515
2759
  meta: object;
@@ -2728,18 +2972,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2728
2972
  entities: import("@trpc/server").TRPCQueryProcedure<{
2729
2973
  input: {
2730
2974
  query: string;
2731
- type?: "task" | "document" | "note" | "project" | undefined;
2975
+ type?: "task" | "document" | "project" | "note" | undefined;
2732
2976
  limit?: number | undefined;
2733
2977
  };
2734
2978
  output: {
2735
2979
  entities: {
2736
- userId: string;
2737
2980
  workspaceId: string;
2981
+ userId: string;
2738
2982
  id: string;
2739
2983
  updatedAt: Date;
2740
2984
  createdAt: Date;
2741
2985
  type: string;
2742
- projectIds: string[] | null;
2743
2986
  profileId: string | null;
2744
2987
  title: string | null;
2745
2988
  preview: string | null;
@@ -2754,7 +2997,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2754
2997
  semantic: import("@trpc/server").TRPCQueryProcedure<{
2755
2998
  input: {
2756
2999
  query: string;
2757
- type?: "task" | "document" | "note" | "project" | undefined;
3000
+ type?: "task" | "document" | "project" | "note" | undefined;
2758
3001
  limit?: number | undefined;
2759
3002
  threshold?: number | undefined;
2760
3003
  };
@@ -2771,13 +3014,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2771
3014
  };
2772
3015
  output: {
2773
3016
  entities: {
2774
- userId: string;
2775
3017
  workspaceId: string;
3018
+ userId: string;
2776
3019
  id: string;
2777
3020
  updatedAt: Date;
2778
3021
  createdAt: Date;
2779
3022
  type: string;
2780
- projectIds: string[] | null;
2781
3023
  profileId: string | null;
2782
3024
  title: string | null;
2783
3025
  preview: string | null;
@@ -2806,21 +3048,34 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2806
3048
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2807
3049
  transformer: true;
2808
3050
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3051
+ listTypes: import("@trpc/server").TRPCQueryProcedure<{
3052
+ input: void;
3053
+ output: {
3054
+ types: {
3055
+ label: string;
3056
+ description: string;
3057
+ directionality: "unidirectional" | "bidirectional";
3058
+ category: "workflow" | "social" | "reference" | "hierarchy";
3059
+ type: string;
3060
+ }[];
3061
+ };
3062
+ meta: object;
3063
+ }>;
2809
3064
  get: import("@trpc/server").TRPCQueryProcedure<{
2810
3065
  input: {
2811
3066
  entityId: string;
2812
- type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | undefined;
3067
+ type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references" | undefined;
2813
3068
  direction?: "source" | "target" | "both" | undefined;
2814
3069
  limit?: number | undefined;
2815
3070
  };
2816
3071
  output: {
2817
3072
  relations: {
2818
- userId: string;
2819
3073
  workspaceId: string;
3074
+ userId: string;
2820
3075
  id: string;
2821
3076
  createdAt: Date;
2822
3077
  type: string;
2823
- projectIds: string[] | null;
3078
+ metadata: unknown;
2824
3079
  sourceEntityId: string;
2825
3080
  targetEntityId: string;
2826
3081
  }[];
@@ -2830,19 +3085,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2830
3085
  getRelated: import("@trpc/server").TRPCQueryProcedure<{
2831
3086
  input: {
2832
3087
  entityId: string;
2833
- type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | undefined;
3088
+ type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references" | undefined;
2834
3089
  direction?: "source" | "target" | "both" | undefined;
2835
3090
  limit?: number | undefined;
2836
3091
  };
2837
3092
  output: {
2838
3093
  entities: {
2839
- userId: string;
2840
3094
  workspaceId: string;
3095
+ userId: string;
2841
3096
  id: string;
2842
3097
  updatedAt: Date;
2843
3098
  createdAt: Date;
2844
3099
  type: string;
2845
- projectIds: string[] | null;
2846
3100
  profileId: string | null;
2847
3101
  title: string | null;
2848
3102
  preview: string | null;
@@ -2870,7 +3124,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2870
3124
  input: {
2871
3125
  sourceEntityId: string;
2872
3126
  targetEntityId: string;
2873
- type: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks";
3127
+ type: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references";
3128
+ workspaceId: string;
2874
3129
  metadata?: Record<string, any> | undefined;
2875
3130
  };
2876
3131
  output: {
@@ -2906,13 +3161,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2906
3161
  };
2907
3162
  output: {
2908
3163
  entity: {
2909
- userId: string;
2910
3164
  workspaceId: string;
3165
+ userId: string;
2911
3166
  id: string;
2912
3167
  updatedAt: Date;
2913
3168
  createdAt: Date;
2914
3169
  type: string;
2915
- projectIds: string[] | null;
2916
3170
  profileId: string | null;
2917
3171
  title: string | null;
2918
3172
  preview: string | null;
@@ -2926,13 +3180,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2926
3180
  stats: null;
2927
3181
  } | {
2928
3182
  entity: {
2929
- userId: string;
2930
3183
  workspaceId: string;
3184
+ userId: string;
2931
3185
  id: string;
2932
3186
  updatedAt: Date;
2933
3187
  createdAt: Date;
2934
3188
  type: string;
2935
- projectIds: string[] | null;
2936
3189
  profileId: string | null;
2937
3190
  title: string | null;
2938
3191
  preview: string | null;
@@ -2942,12 +3195,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2942
3195
  deletedAt: Date | null;
2943
3196
  };
2944
3197
  relations: {
2945
- userId: string;
2946
3198
  workspaceId: string;
3199
+ userId: string;
2947
3200
  id: string;
2948
3201
  createdAt: Date;
2949
3202
  type: string;
2950
- projectIds: string[] | null;
3203
+ metadata: unknown;
2951
3204
  sourceEntityId: string;
2952
3205
  targetEntityId: string;
2953
3206
  }[];
@@ -2969,13 +3222,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2969
3222
  };
2970
3223
  output: {
2971
3224
  entities: {
2972
- userId: string;
2973
3225
  workspaceId: string;
3226
+ userId: string;
2974
3227
  id: string;
2975
3228
  updatedAt: Date;
2976
3229
  createdAt: Date;
2977
3230
  type: string;
2978
- projectIds: string[] | null;
2979
3231
  profileId: string | null;
2980
3232
  title: string | null;
2981
3233
  preview: string | null;
@@ -2985,12 +3237,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2985
3237
  deletedAt: Date | null;
2986
3238
  }[];
2987
3239
  relations: {
2988
- userId: string;
2989
3240
  workspaceId: string;
3241
+ userId: string;
2990
3242
  id: string;
2991
3243
  createdAt: Date;
2992
3244
  type: string;
2993
- projectIds: string[] | null;
3245
+ metadata: unknown;
2994
3246
  sourceEntityId: string;
2995
3247
  targetEntityId: string;
2996
3248
  }[];
@@ -3125,12 +3377,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3125
3377
  workspaceId: string;
3126
3378
  };
3127
3379
  output: {
3128
- userId: string;
3129
3380
  workspaceId: string;
3381
+ userId: string;
3130
3382
  id: string;
3131
3383
  role: string;
3132
3384
  joinedAt: Date;
3133
3385
  invitedBy: string | null;
3386
+ user: {
3387
+ email: string;
3388
+ name: string | null;
3389
+ id: string;
3390
+ updatedAt: Date;
3391
+ emailVerified: boolean;
3392
+ avatarUrl: string | null;
3393
+ timezone: string;
3394
+ locale: string;
3395
+ kratosIdentityId: string;
3396
+ lastSyncedAt: Date | null;
3397
+ createdAt: Date;
3398
+ };
3134
3399
  }[];
3135
3400
  meta: object;
3136
3401
  }>;
@@ -3149,7 +3414,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3149
3414
  input: {
3150
3415
  workspaceId: string;
3151
3416
  userId: string;
3152
- role: "editor" | "viewer" | "admin";
3417
+ role: "admin" | "editor" | "viewer";
3153
3418
  };
3154
3419
  output: {
3155
3420
  status: string;
@@ -3161,7 +3426,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3161
3426
  input: {
3162
3427
  workspaceId: string;
3163
3428
  email: string;
3164
- role: "editor" | "viewer" | "admin";
3429
+ role: "admin" | "editor" | "viewer";
3165
3430
  };
3166
3431
  output: {
3167
3432
  email: string;
@@ -3221,7 +3486,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3221
3486
  create: import("@trpc/server").TRPCMutationProcedure<{
3222
3487
  input: {
3223
3488
  name: string;
3224
- type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap";
3489
+ type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "grid" | "timeline" | "kanban" | "gallery" | "gantt" | "mindmap" | "bento";
3225
3490
  workspaceId?: string | undefined;
3226
3491
  description?: string | undefined;
3227
3492
  scopeProfileIds?: string[] | undefined;
@@ -3235,6 +3500,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3235
3500
  groupBy?: string | undefined;
3236
3501
  } | undefined;
3237
3502
  config?: Record<string, any> | undefined;
3503
+ embeddedViewIds?: string[] | undefined;
3238
3504
  initialContent?: any;
3239
3505
  };
3240
3506
  output: {
@@ -3242,7 +3508,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3242
3508
  id: `${string}-${string}-${string}-${string}-${string}`;
3243
3509
  workspaceId: string | undefined;
3244
3510
  userId: string;
3245
- type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap";
3511
+ type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "grid" | "timeline" | "kanban" | "gallery" | "gantt" | "mindmap" | "bento";
3246
3512
  category: ViewCategory;
3247
3513
  name: string;
3248
3514
  description: string | undefined;
@@ -3262,12 +3528,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3262
3528
  list: import("@trpc/server").TRPCQueryProcedure<{
3263
3529
  input: {
3264
3530
  workspaceId?: string | undefined;
3265
- type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
3531
+ type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "grid" | "timeline" | "kanban" | "gallery" | "gantt" | "mindmap" | undefined;
3266
3532
  };
3267
3533
  output: {
3268
3534
  name: string;
3269
- userId: string;
3270
3535
  workspaceId: string | null;
3536
+ userId: string;
3271
3537
  id: string;
3272
3538
  query: unknown;
3273
3539
  columns: unknown;
@@ -3275,7 +3541,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3275
3541
  createdAt: Date;
3276
3542
  type: string;
3277
3543
  metadata: unknown;
3278
- projectIds: string[] | null;
3279
3544
  documentId: string | null;
3280
3545
  description: string | null;
3281
3546
  category: string;
@@ -3289,6 +3554,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3289
3554
  thumbnailUrl: string | null;
3290
3555
  schemaSnapshot: unknown;
3291
3556
  snapshotUpdatedAt: Date | null;
3557
+ embeddedViewIds: string[] | null;
3292
3558
  }[];
3293
3559
  meta: object;
3294
3560
  }>;
@@ -3299,8 +3565,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3299
3565
  output: {
3300
3566
  view: {
3301
3567
  name: string;
3302
- userId: string;
3303
3568
  workspaceId: string | null;
3569
+ userId: string;
3304
3570
  id: string;
3305
3571
  query: unknown;
3306
3572
  columns: unknown;
@@ -3308,7 +3574,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3308
3574
  createdAt: Date;
3309
3575
  type: string;
3310
3576
  metadata: unknown;
3311
- projectIds: string[] | null;
3312
3577
  documentId: string | null;
3313
3578
  description: string | null;
3314
3579
  category: string;
@@ -3322,6 +3587,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3322
3587
  thumbnailUrl: string | null;
3323
3588
  schemaSnapshot: unknown;
3324
3589
  snapshotUpdatedAt: Date | null;
3590
+ embeddedViewIds: string[] | null;
3325
3591
  };
3326
3592
  content: {};
3327
3593
  };
@@ -3334,8 +3600,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3334
3600
  output: {
3335
3601
  view: {
3336
3602
  name: string;
3337
- userId: string;
3338
3603
  workspaceId: string | null;
3604
+ userId: string;
3339
3605
  id: string;
3340
3606
  query: unknown;
3341
3607
  columns: unknown;
@@ -3343,7 +3609,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3343
3609
  createdAt: Date;
3344
3610
  type: string;
3345
3611
  metadata: unknown;
3346
- projectIds: string[] | null;
3347
3612
  documentId: string | null;
3348
3613
  description: string | null;
3349
3614
  category: string;
@@ -3357,6 +3622,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3357
3622
  thumbnailUrl: string | null;
3358
3623
  schemaSnapshot: unknown;
3359
3624
  snapshotUpdatedAt: Date | null;
3625
+ embeddedViewIds: string[] | null;
3360
3626
  };
3361
3627
  content: {};
3362
3628
  entities: never[];
@@ -3367,8 +3633,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3367
3633
  } | {
3368
3634
  view: {
3369
3635
  name: string;
3370
- userId: string;
3371
3636
  workspaceId: string | null;
3637
+ userId: string;
3372
3638
  id: string;
3373
3639
  query: unknown;
3374
3640
  columns: unknown;
@@ -3376,7 +3642,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3376
3642
  createdAt: Date;
3377
3643
  type: string;
3378
3644
  metadata: unknown;
3379
- projectIds: string[] | null;
3380
3645
  documentId: string | null;
3381
3646
  description: string | null;
3382
3647
  category: string;
@@ -3390,6 +3655,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3390
3655
  thumbnailUrl: string | null;
3391
3656
  schemaSnapshot: unknown;
3392
3657
  snapshotUpdatedAt: Date | null;
3658
+ embeddedViewIds: string[] | null;
3393
3659
  };
3394
3660
  query: EntityQuery;
3395
3661
  config: {};
@@ -3397,7 +3663,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3397
3663
  id: string;
3398
3664
  userId: string;
3399
3665
  workspaceId: string;
3400
- projectIds: string[] | null;
3401
3666
  profileId: string | null;
3402
3667
  type: string;
3403
3668
  title: string | null;
@@ -3413,10 +3678,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3413
3678
  id: string;
3414
3679
  userId: string;
3415
3680
  workspaceId: string;
3416
- projectIds: string[] | null;
3417
3681
  sourceEntityId: string;
3418
3682
  targetEntityId: string;
3419
3683
  type: string;
3684
+ metadata: unknown;
3420
3685
  createdAt: Date;
3421
3686
  }[];
3422
3687
  columns: ViewColumn[];
@@ -3440,6 +3705,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3440
3705
  id: string;
3441
3706
  name?: string | undefined;
3442
3707
  description?: string | undefined;
3708
+ scopeProfileIds?: string[] | undefined;
3709
+ scopeMode?: "explicit" | "observed" | undefined;
3710
+ query?: {
3711
+ filters?: any[] | undefined;
3712
+ sorts?: any[] | undefined;
3713
+ search?: string | undefined;
3714
+ limit?: number | undefined;
3715
+ offset?: number | undefined;
3716
+ groupBy?: string | undefined;
3717
+ } | undefined;
3718
+ config?: Record<string, any> | undefined;
3719
+ embeddedViewIds?: string[] | undefined;
3720
+ schemaSnapshot?: Record<string, any> | undefined;
3721
+ snapshotUpdatedAt?: Date | undefined;
3722
+ type?: "calendar" | "list" | "table" | "whiteboard" | "graph" | "grid" | "timeline" | "kanban" | "gallery" | "gantt" | "mindmap" | "bento" | undefined;
3443
3723
  };
3444
3724
  output: {
3445
3725
  status: string;
@@ -3530,7 +3810,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3530
3810
  compactMode?: boolean | undefined;
3531
3811
  fontSize?: string | undefined;
3532
3812
  animations?: boolean | undefined;
3533
- defaultView?: "list" | "timeline" | "grid" | undefined;
3813
+ defaultView?: "list" | "grid" | "timeline" | undefined;
3534
3814
  } | undefined;
3535
3815
  graphPreferences?: {
3536
3816
  forceSettings?: {
@@ -3737,6 +4017,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3737
4017
  resourceType: "entity" | "document" | "view";
3738
4018
  resourceId: string;
3739
4019
  expiresInDays?: number | undefined;
4020
+ access?: "workspace_only" | "anyone_with_link" | undefined;
4021
+ password?: string | undefined;
3740
4022
  };
3741
4023
  output: {
3742
4024
  status: string;
@@ -3769,16 +4051,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3769
4051
  getPublic: import("@trpc/server").TRPCQueryProcedure<{
3770
4052
  input: {
3771
4053
  token: string;
4054
+ password?: string | undefined;
3772
4055
  };
3773
4056
  output: {
3774
4057
  resource: {
3775
- userId: string;
3776
4058
  workspaceId: string;
4059
+ userId: string;
3777
4060
  id: string;
3778
4061
  updatedAt: Date;
3779
4062
  createdAt: Date;
3780
4063
  type: string;
3781
- projectIds: string[] | null;
3782
4064
  profileId: string | null;
3783
4065
  title: string | null;
3784
4066
  preview: string | null;
@@ -3788,8 +4070,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3788
4070
  deletedAt: Date | null;
3789
4071
  } | {
3790
4072
  name: string;
3791
- userId: string;
3792
4073
  workspaceId: string | null;
4074
+ userId: string;
3793
4075
  id: string;
3794
4076
  query: unknown;
3795
4077
  columns: unknown;
@@ -3797,7 +4079,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3797
4079
  createdAt: Date;
3798
4080
  type: string;
3799
4081
  metadata: unknown;
3800
- projectIds: string[] | null;
3801
4082
  documentId: string | null;
3802
4083
  description: string | null;
3803
4084
  category: string;
@@ -3811,12 +4092,42 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3811
4092
  thumbnailUrl: string | null;
3812
4093
  schemaSnapshot: unknown;
3813
4094
  snapshotUpdatedAt: Date | null;
4095
+ embeddedViewIds: string[] | null;
3814
4096
  document: never;
3815
4097
  };
4098
+ resourceType: string;
3816
4099
  permissions: unknown;
3817
4100
  };
3818
4101
  meta: object;
3819
4102
  }>;
4103
+ listByWorkspace: import("@trpc/server").TRPCQueryProcedure<{
4104
+ input: {
4105
+ workspaceId: string;
4106
+ };
4107
+ output: {
4108
+ shares: {
4109
+ id: string;
4110
+ updatedAt: Date;
4111
+ createdAt: Date;
4112
+ expiresAt: Date | null;
4113
+ createdBy: string;
4114
+ revokedAt: Date | null;
4115
+ permissions: unknown;
4116
+ resourceType: string;
4117
+ resourceId: string;
4118
+ visibility: string;
4119
+ publicToken: string | null;
4120
+ tokenHash: string | null;
4121
+ passwordHash: string | null;
4122
+ access: string | null;
4123
+ invitedUsers: string[] | null;
4124
+ viewCount: number | null;
4125
+ lastAccessedAt: Date | null;
4126
+ }[];
4127
+ resourceLabels: Record<string, string>;
4128
+ };
4129
+ meta: object;
4130
+ }>;
3820
4131
  list: import("@trpc/server").TRPCQueryProcedure<{
3821
4132
  input: {
3822
4133
  resourceType: "entity" | "document" | "view";
@@ -3830,11 +4141,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3830
4141
  createdAt: Date;
3831
4142
  expiresAt: Date | null;
3832
4143
  createdBy: string;
4144
+ revokedAt: Date | null;
3833
4145
  permissions: unknown;
3834
4146
  resourceType: string;
3835
4147
  resourceId: string;
3836
4148
  visibility: string;
3837
4149
  publicToken: string | null;
4150
+ tokenHash: string | null;
4151
+ passwordHash: string | null;
4152
+ access: string | null;
3838
4153
  invitedUsers: string[] | null;
3839
4154
  viewCount: number | null;
3840
4155
  lastAccessedAt: Date | null;
@@ -3850,6 +4165,27 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3850
4165
  };
3851
4166
  meta: object;
3852
4167
  }>;
4168
+ extendShareLink: import("@trpc/server").TRPCMutationProcedure<{
4169
+ input: {
4170
+ shareId: string;
4171
+ expiresInDays: number;
4172
+ };
4173
+ output: {
4174
+ status: string;
4175
+ expiresAt: Date;
4176
+ };
4177
+ meta: object;
4178
+ }>;
4179
+ rotateShareLinkToken: import("@trpc/server").TRPCMutationProcedure<{
4180
+ input: {
4181
+ shareId: string;
4182
+ };
4183
+ output: {
4184
+ status: string;
4185
+ url: string;
4186
+ };
4187
+ meta: object;
4188
+ }>;
3853
4189
  }>>;
3854
4190
  templates: import("@trpc/server").TRPCBuiltRouter<{
3855
4191
  ctx: Context;
@@ -3859,7 +4195,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3859
4195
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3860
4196
  list: import("@trpc/server").TRPCQueryProcedure<{
3861
4197
  input: {
3862
- targetType?: "entity" | "document" | "project" | "inbox_item" | undefined;
4198
+ targetType?: "entity" | "inbox_item" | "document" | "project" | undefined;
3863
4199
  entityType?: string | undefined;
3864
4200
  inboxItemType?: string | undefined;
3865
4201
  workspaceId?: string | undefined;
@@ -3871,7 +4207,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3871
4207
  description: string | null;
3872
4208
  userId: string | null;
3873
4209
  workspaceId: string | null;
3874
- projectIds: string[] | null;
3875
4210
  targetType: string;
3876
4211
  entityType: string | null;
3877
4212
  inboxItemType: string | null;
@@ -3887,7 +4222,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3887
4222
  }>;
3888
4223
  getDefault: import("@trpc/server").TRPCQueryProcedure<{
3889
4224
  input: {
3890
- targetType: "entity" | "document" | "project" | "inbox_item";
4225
+ targetType: "entity" | "inbox_item" | "document" | "project";
3891
4226
  entityType?: string | undefined;
3892
4227
  inboxItemType?: string | undefined;
3893
4228
  workspaceId?: string | undefined;
@@ -3898,7 +4233,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3898
4233
  create: import("@trpc/server").TRPCMutationProcedure<{
3899
4234
  input: {
3900
4235
  name: string;
3901
- targetType: "entity" | "document" | "project" | "inbox_item";
4236
+ targetType: "entity" | "inbox_item" | "document" | "project";
3902
4237
  config: {
3903
4238
  layout?: {
3904
4239
  structure: {
@@ -4132,12 +4467,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4132
4467
  };
4133
4468
  output: {
4134
4469
  name: string;
4135
- userId: string | null;
4136
4470
  workspaceId: string | null;
4471
+ userId: string | null;
4137
4472
  id: string;
4138
4473
  updatedAt: Date;
4139
4474
  createdAt: Date;
4140
- projectIds: string[] | null;
4141
4475
  version: number;
4142
4476
  entityType: string | null;
4143
4477
  description: string | null;
@@ -4193,6 +4527,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4193
4527
  authorId: string;
4194
4528
  message: string | null;
4195
4529
  }[];
4530
+ latest: {
4531
+ currentVersion: number;
4532
+ lastSavedVersion: number;
4533
+ };
4196
4534
  };
4197
4535
  meta: object;
4198
4536
  }>;
@@ -4406,8 +4744,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4406
4744
  metadata?: Record<string, unknown> | undefined;
4407
4745
  };
4408
4746
  output: {
4409
- userId: string;
4410
4747
  workspaceId: string;
4748
+ userId: string;
4411
4749
  id: string;
4412
4750
  createdAt: Date;
4413
4751
  metadata: unknown;
@@ -4433,8 +4771,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4433
4771
  messageId: string;
4434
4772
  };
4435
4773
  output: {
4436
- userId: string;
4437
4774
  workspaceId: string;
4775
+ userId: string;
4438
4776
  id: string;
4439
4777
  createdAt: Date;
4440
4778
  metadata: unknown;
@@ -4452,8 +4790,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4452
4790
  targetId: string;
4453
4791
  };
4454
4792
  output: {
4455
- userId: string;
4456
4793
  workspaceId: string;
4794
+ userId: string;
4457
4795
  id: string;
4458
4796
  createdAt: Date;
4459
4797
  metadata: unknown;
@@ -4470,8 +4808,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4470
4808
  proposalId: string;
4471
4809
  };
4472
4810
  output: {
4473
- userId: string;
4474
4811
  workspaceId: string;
4812
+ userId: string;
4475
4813
  id: string;
4476
4814
  createdAt: Date;
4477
4815
  metadata: unknown;
@@ -4491,8 +4829,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4491
4829
  relationshipType?: MessageLinkRelationshipType | undefined;
4492
4830
  };
4493
4831
  output: {
4494
- userId: string;
4495
4832
  workspaceId: string;
4833
+ userId: string;
4496
4834
  id: string;
4497
4835
  createdAt: Date;
4498
4836
  metadata: unknown;
@@ -4504,6 +4842,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4504
4842
  }[];
4505
4843
  meta: object;
4506
4844
  }>;
4845
+ listLinkedMessages: import("@trpc/server").TRPCQueryProcedure<{
4846
+ input: {
4847
+ targetType: MessageLinkTargetType;
4848
+ targetId: string;
4849
+ limit?: number | undefined;
4850
+ cursor?: string | undefined;
4851
+ };
4852
+ output: {
4853
+ items: LinkedMessageItem[];
4854
+ nextCursor: string | undefined;
4855
+ hasMore: boolean;
4856
+ };
4857
+ meta: object;
4858
+ }>;
4507
4859
  }>>;
4508
4860
  profiles: import("@trpc/server").TRPCBuiltRouter<{
4509
4861
  ctx: Context;
@@ -4515,8 +4867,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4515
4867
  input: void;
4516
4868
  output: {
4517
4869
  profiles: {
4518
- userId: string | null;
4519
4870
  workspaceId: string | null;
4871
+ userId: string | null;
4520
4872
  id: string;
4521
4873
  updatedAt: Date;
4522
4874
  createdAt: Date;
@@ -4537,8 +4889,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4537
4889
  };
4538
4890
  output: {
4539
4891
  profile: {
4540
- userId: string | null;
4541
4892
  workspaceId: string | null;
4893
+ userId: string | null;
4542
4894
  id: string;
4543
4895
  updatedAt: Date;
4544
4896
  createdAt: Date;
@@ -4560,12 +4912,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4560
4912
  displayName: string;
4561
4913
  parentProfileId?: string | undefined;
4562
4914
  uiHints?: Record<string, unknown> | undefined;
4563
- scope?: "user" | "system" | "workspace" | undefined;
4915
+ scope?: "workspace" | "user" | "system" | undefined;
4564
4916
  };
4565
4917
  output: {
4566
4918
  profile: {
4567
- userId: string | null;
4568
4919
  workspaceId: string | null;
4920
+ userId: string | null;
4569
4921
  id: string;
4570
4922
  updatedAt: Date;
4571
4923
  createdAt: Date;
@@ -4589,8 +4941,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4589
4941
  };
4590
4942
  output: {
4591
4943
  profile: {
4592
- userId: string | null;
4593
4944
  workspaceId: string | null;
4945
+ userId: string | null;
4594
4946
  id: string;
4595
4947
  updatedAt: Date;
4596
4948
  createdAt: Date;
@@ -4629,8 +4981,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4629
4981
  };
4630
4982
  output: {
4631
4983
  hierarchy: {
4632
- userId: string | null;
4633
4984
  workspaceId: string | null;
4985
+ userId: string | null;
4634
4986
  id: string;
4635
4987
  updatedAt: Date;
4636
4988
  createdAt: Date;