@synap-core/api-types 1.2.1 → 1.3.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.
Files changed (3) hide show
  1. package/dist/generated.d.ts +1418 -1791
  2. package/package.json +2 -2
  3. package/src/generated.d.ts +5206 -5008
@@ -54,6 +54,26 @@ export interface Context {
54
54
  session?: KratosSession | null;
55
55
  req?: Request;
56
56
  socketIO?: any;
57
+ workspaceId?: string | null;
58
+ workspaceRole?: string | null;
59
+ }
60
+ declare enum ChatThreadType {
61
+ MAIN = "main",
62
+ BRANCH = "branch"
63
+ }
64
+ declare enum ChatThreadStatus {
65
+ ACTIVE = "active",
66
+ MERGED = "merged",
67
+ ARCHIVED = "archived"
68
+ }
69
+ declare enum ChatThreadAgentType {
70
+ DEFAULT = "default",
71
+ META = "meta",
72
+ PROMPTING = "prompting",
73
+ KNOWLEDGE_SEARCH = "knowledge-search",
74
+ CODE = "code",
75
+ WRITING = "writing",
76
+ ACTION = "action"
57
77
  }
58
78
  declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
59
79
  name: "chat_threads";
@@ -96,23 +116,49 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
96
116
  identity: undefined;
97
117
  generated: undefined;
98
118
  }, {}, {}>;
99
- projectId: import("drizzle-orm/pg-core").PgColumn<{
100
- name: "project_id";
119
+ projectIds: import("drizzle-orm/pg-core").PgColumn<{
120
+ name: "project_ids";
101
121
  tableName: "chat_threads";
102
- dataType: "string";
103
- columnType: "PgUUID";
104
- data: string;
105
- driverParam: string;
122
+ dataType: "array";
123
+ columnType: "PgArray";
124
+ data: string[];
125
+ driverParam: string | string[];
106
126
  notNull: false;
107
127
  hasDefault: false;
108
128
  isPrimaryKey: false;
109
129
  isAutoincrement: false;
110
130
  hasRuntimeDefault: false;
111
131
  enumValues: undefined;
112
- baseColumn: never;
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
+ }, {}, {}>;
113
149
  identity: undefined;
114
150
  generated: undefined;
115
- }, {}, {}>;
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
+ }>;
116
162
  title: import("drizzle-orm/pg-core").PgColumn<{
117
163
  name: "title";
118
164
  tableName: "chat_threads";
@@ -138,7 +184,7 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
138
184
  tableName: "chat_threads";
139
185
  dataType: "string";
140
186
  columnType: "PgText";
141
- data: "main" | "branch";
187
+ data: ChatThreadType;
142
188
  driverParam: string;
143
189
  notNull: true;
144
190
  hasDefault: true;
@@ -146,8 +192,8 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
146
192
  isAutoincrement: false;
147
193
  hasRuntimeDefault: false;
148
194
  enumValues: [
149
- "main",
150
- "branch"
195
+ ChatThreadType.MAIN,
196
+ ChatThreadType.BRANCH
151
197
  ];
152
198
  baseColumn: never;
153
199
  identity: undefined;
@@ -232,7 +278,7 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
232
278
  tableName: "chat_threads";
233
279
  dataType: "string";
234
280
  columnType: "PgText";
235
- data: "active" | "archived" | "merged";
281
+ data: ChatThreadStatus;
236
282
  driverParam: string;
237
283
  notNull: true;
238
284
  hasDefault: true;
@@ -240,9 +286,9 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
240
286
  isAutoincrement: false;
241
287
  hasRuntimeDefault: false;
242
288
  enumValues: [
243
- "active",
244
- "merged",
245
- "archived"
289
+ ChatThreadStatus.ACTIVE,
290
+ ChatThreadStatus.MERGED,
291
+ ChatThreadStatus.ARCHIVED
246
292
  ];
247
293
  baseColumn: never;
248
294
  identity: undefined;
@@ -253,7 +299,7 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
253
299
  tableName: "chat_threads";
254
300
  dataType: "string";
255
301
  columnType: "PgText";
256
- data: "default" | "meta" | "prompting" | "knowledge-search" | "code" | "writing" | "action";
302
+ data: ChatThreadAgentType;
257
303
  driverParam: string;
258
304
  notNull: true;
259
305
  hasDefault: true;
@@ -261,13 +307,13 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
261
307
  isAutoincrement: false;
262
308
  hasRuntimeDefault: false;
263
309
  enumValues: [
264
- "default",
265
- "meta",
266
- "prompting",
267
- "knowledge-search",
268
- "code",
269
- "writing",
270
- "action"
310
+ ChatThreadAgentType.DEFAULT,
311
+ ChatThreadAgentType.META,
312
+ ChatThreadAgentType.PROMPTING,
313
+ ChatThreadAgentType.KNOWLEDGE_SEARCH,
314
+ ChatThreadAgentType.CODE,
315
+ ChatThreadAgentType.WRITING,
316
+ ChatThreadAgentType.ACTION
271
317
  ];
272
318
  baseColumn: never;
273
319
  identity: undefined;
@@ -382,6 +428,30 @@ declare const chatThreads: import("drizzle-orm/pg-core").PgTableWithColumns<{
382
428
  dialect: "pg";
383
429
  }>;
384
430
  export type ChatThread = typeof chatThreads.$inferSelect;
431
+ declare enum ThreadEntityRelationshipType {
432
+ USED_AS_CONTEXT = "used_as_context",
433
+ CREATED = "created",
434
+ UPDATED = "updated",
435
+ REFERENCED = "referenced",
436
+ INHERITED_FROM_PARENT = "inherited_from_parent"
437
+ }
438
+ declare enum ThreadEntityConflictStatus {
439
+ NONE = "none",
440
+ PENDING = "pending",
441
+ RESOLVED = "resolved"
442
+ }
443
+ declare enum ThreadDocumentRelationshipType {
444
+ USED_AS_CONTEXT = "used_as_context",
445
+ CREATED = "created",
446
+ UPDATED = "updated",
447
+ REFERENCED = "referenced",
448
+ INHERITED_FROM_PARENT = "inherited_from_parent"
449
+ }
450
+ declare enum ThreadDocumentConflictStatus {
451
+ NONE = "none",
452
+ PENDING = "pending",
453
+ RESOLVED = "resolved"
454
+ }
385
455
  /**
386
456
  * Workspaces Schema - Multi-user workspace support
387
457
  *
@@ -395,6 +465,7 @@ export interface WorkspaceSettings {
395
465
  theme?: string;
396
466
  aiEnabled?: boolean;
397
467
  allowExternalSharing?: boolean;
468
+ mainWhiteboardId?: string;
398
469
  intelligenceServiceId?: string;
399
470
  intelligenceServiceOverrides?: {
400
471
  chat?: string;
@@ -424,6 +495,163 @@ export interface WorkspaceSettings {
424
495
  allowAgentCreation?: boolean;
425
496
  };
426
497
  }
498
+ declare enum ProposalStatus {
499
+ PENDING = "pending",
500
+ APPROVED = "approved",
501
+ REJECTED = "rejected"
502
+ }
503
+ declare enum PropertyValueType {
504
+ STRING = "string",
505
+ NUMBER = "number",
506
+ BOOLEAN = "boolean",
507
+ DATE = "date",
508
+ ENTITY_ID = "entity_id",
509
+ ARRAY = "array",
510
+ OBJECT = "object"
511
+ }
512
+ declare const propertyDefs: import("drizzle-orm/pg-core").PgTableWithColumns<{
513
+ name: "property_defs";
514
+ schema: undefined;
515
+ columns: {
516
+ id: import("drizzle-orm/pg-core").PgColumn<{
517
+ name: "id";
518
+ tableName: "property_defs";
519
+ dataType: "string";
520
+ columnType: "PgUUID";
521
+ data: string;
522
+ driverParam: string;
523
+ notNull: true;
524
+ hasDefault: true;
525
+ isPrimaryKey: true;
526
+ isAutoincrement: false;
527
+ hasRuntimeDefault: false;
528
+ enumValues: undefined;
529
+ baseColumn: never;
530
+ identity: undefined;
531
+ generated: undefined;
532
+ }, {}, {}>;
533
+ slug: import("drizzle-orm/pg-core").PgColumn<{
534
+ name: "slug";
535
+ tableName: "property_defs";
536
+ dataType: "string";
537
+ columnType: "PgText";
538
+ data: string;
539
+ driverParam: string;
540
+ notNull: true;
541
+ hasDefault: false;
542
+ isPrimaryKey: false;
543
+ isAutoincrement: false;
544
+ hasRuntimeDefault: false;
545
+ enumValues: [
546
+ string,
547
+ ...string[]
548
+ ];
549
+ baseColumn: never;
550
+ identity: undefined;
551
+ generated: undefined;
552
+ }, {}, {}>;
553
+ valueType: import("drizzle-orm/pg-core").PgColumn<{
554
+ name: "value_type";
555
+ tableName: "property_defs";
556
+ dataType: "string";
557
+ columnType: "PgText";
558
+ data: PropertyValueType;
559
+ driverParam: string;
560
+ notNull: true;
561
+ hasDefault: false;
562
+ isPrimaryKey: false;
563
+ isAutoincrement: false;
564
+ hasRuntimeDefault: false;
565
+ enumValues: [
566
+ PropertyValueType.STRING,
567
+ PropertyValueType.NUMBER,
568
+ PropertyValueType.BOOLEAN,
569
+ PropertyValueType.DATE,
570
+ PropertyValueType.ENTITY_ID,
571
+ PropertyValueType.ARRAY,
572
+ PropertyValueType.OBJECT
573
+ ];
574
+ baseColumn: never;
575
+ identity: undefined;
576
+ generated: undefined;
577
+ }, {}, {}>;
578
+ constraints: import("drizzle-orm/pg-core").PgColumn<{
579
+ name: "constraints";
580
+ tableName: "property_defs";
581
+ dataType: "json";
582
+ columnType: "PgJsonb";
583
+ data: unknown;
584
+ driverParam: unknown;
585
+ notNull: true;
586
+ hasDefault: true;
587
+ isPrimaryKey: false;
588
+ isAutoincrement: false;
589
+ hasRuntimeDefault: false;
590
+ enumValues: undefined;
591
+ baseColumn: never;
592
+ identity: undefined;
593
+ generated: undefined;
594
+ }, {}, {}>;
595
+ uiHints: import("drizzle-orm/pg-core").PgColumn<{
596
+ name: "ui_hints";
597
+ tableName: "property_defs";
598
+ dataType: "json";
599
+ columnType: "PgJsonb";
600
+ data: unknown;
601
+ driverParam: unknown;
602
+ notNull: true;
603
+ hasDefault: true;
604
+ isPrimaryKey: false;
605
+ isAutoincrement: false;
606
+ hasRuntimeDefault: false;
607
+ enumValues: undefined;
608
+ baseColumn: never;
609
+ identity: undefined;
610
+ generated: undefined;
611
+ }, {}, {}>;
612
+ createdAt: import("drizzle-orm/pg-core").PgColumn<{
613
+ name: "created_at";
614
+ tableName: "property_defs";
615
+ dataType: "date";
616
+ columnType: "PgTimestamp";
617
+ data: Date;
618
+ driverParam: string;
619
+ notNull: true;
620
+ hasDefault: true;
621
+ isPrimaryKey: false;
622
+ isAutoincrement: false;
623
+ hasRuntimeDefault: false;
624
+ enumValues: undefined;
625
+ baseColumn: never;
626
+ identity: undefined;
627
+ generated: undefined;
628
+ }, {}, {}>;
629
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
630
+ name: "updated_at";
631
+ tableName: "property_defs";
632
+ dataType: "date";
633
+ columnType: "PgTimestamp";
634
+ data: Date;
635
+ driverParam: string;
636
+ notNull: true;
637
+ hasDefault: true;
638
+ isPrimaryKey: false;
639
+ isAutoincrement: false;
640
+ hasRuntimeDefault: false;
641
+ enumValues: undefined;
642
+ baseColumn: never;
643
+ identity: undefined;
644
+ generated: undefined;
645
+ }, {}, {}>;
646
+ };
647
+ dialect: "pg";
648
+ }>;
649
+ export type PropertyDef = typeof propertyDefs.$inferSelect;
650
+ declare enum ProfileScope {
651
+ SYSTEM = "system",// Available to all users
652
+ WORKSPACE = "workspace",// Shared within workspace
653
+ USER = "user"
654
+ }
427
655
  /**
428
656
  * EventRecord - Database representation of an event
429
657
  *
@@ -444,6 +672,23 @@ export interface EventRecord {
444
672
  correlationId?: string;
445
673
  source: string;
446
674
  }
675
+ export interface EffectiveProperty extends PropertyDef {
676
+ required: boolean;
677
+ defaultValue: unknown;
678
+ displayOrder: number;
679
+ }
680
+ /**
681
+ * Column definition for views
682
+ */
683
+ export interface ViewColumn {
684
+ id: string;
685
+ field: string;
686
+ title?: string;
687
+ valueType?: string;
688
+ indexed?: boolean;
689
+ visible?: boolean;
690
+ width?: number;
691
+ }
447
692
  /**
448
693
  * View Query Types
449
694
  *
@@ -471,9 +716,16 @@ export interface SortRule {
471
716
  /**
472
717
  * Query definition for structured views
473
718
  * Defines which entities to show and how to filter them
719
+ *
720
+ * NOTE: profileIds/profileSlugs are now stored in views.scopeProfileIds
721
+ * This query structure only contains filters, sorts, search, pagination, and groupBy
474
722
  */
475
723
  export interface EntityQuery {
476
- /** Entity types to include */
724
+ /** @deprecated - Profile IDs now stored in views.scopeProfileIds */
725
+ profileIds?: string[];
726
+ /** @deprecated - Profile slugs now stored in views.scopeProfileIds (resolved to IDs) */
727
+ profileSlugs?: string[];
728
+ /** @deprecated - Use profileSlugs instead, which is also deprecated */
477
729
  entityTypes?: string[];
478
730
  /** Specific entity IDs (for fixed sets) */
479
731
  entityIds?: string[];
@@ -502,71 +754,6 @@ export interface EntityQuery {
502
754
  * - canvas: Freeform drawing views (whiteboard, mindmap)
503
755
  */
504
756
  export type ViewCategory = "structured" | "canvas";
505
- /**
506
- * View Configuration Types
507
- *
508
- * Discriminated union for view configurations.
509
- */
510
- export interface ColumnDisplayConfig {
511
- type: "text" | "badge" | "date" | "user" | "url" | "boolean" | "progress" | "rating" | "image" | "file";
512
- params?: {
513
- colors?: Record<string, string>;
514
- format?: string;
515
- relative?: boolean;
516
- wrap?: boolean;
517
- lines?: number;
518
- precision?: number;
519
- currency?: string;
520
- align?: "left" | "center" | "right";
521
- icon?: string;
522
- };
523
- }
524
- export interface ColumnConfig {
525
- id: string;
526
- field: string;
527
- width?: number;
528
- visible?: boolean;
529
- title?: string;
530
- display?: ColumnDisplayConfig;
531
- }
532
- export interface FormattingRule {
533
- id: string;
534
- name?: string;
535
- target: "row" | "cell" | "card";
536
- filter: EntityFilter;
537
- style: {
538
- color?: string;
539
- backgroundColor?: string;
540
- fontWeight?: "bold" | "normal";
541
- fontStyle?: "italic" | "normal";
542
- strikeThrough?: boolean;
543
- icon?: string;
544
- };
545
- }
546
- export interface RenderSettings {
547
- rowHeight?: "compact" | "default" | "tall";
548
- formatting?: FormattingRule[];
549
- columns?: ColumnConfig[];
550
- groupByField?: string;
551
- cardFields?: string[];
552
- cardSettings?: {
553
- coverField?: string;
554
- showAvatars?: boolean;
555
- visibleFields?: string[];
556
- colorField?: string;
557
- };
558
- dateField?: string;
559
- endDateField?: string;
560
- colorField?: string;
561
- layout?: "force" | "hierarchical" | "circular";
562
- nodeColorField?: string;
563
- edgeLabelField?: string;
564
- }
565
- export interface StructuredViewConfig {
566
- category: "structured";
567
- query: EntityQuery;
568
- render?: RenderSettings;
569
- }
570
757
  declare enum AgentType {
571
758
  DEFAULT = "default",
572
759
  META = "meta",
@@ -621,6 +808,39 @@ export interface BranchDecision {
621
808
  suggestedTitle?: string;
622
809
  suggestedPurpose?: string;
623
810
  }
811
+ declare enum MessageLinkTargetType {
812
+ ENTITY = "entity",
813
+ DOCUMENT = "document",
814
+ PROPOSAL = "proposal",
815
+ MESSAGE = "message",
816
+ EVENT = "event",
817
+ USER = "user",
818
+ WORKSPACE = "workspace",
819
+ VIEW = "view",
820
+ RELATION = "relation",
821
+ PROJECT = "project",
822
+ TAG = "tag",
823
+ ROLE = "role",
824
+ API_KEY = "apiKey",
825
+ SKILL = "skill",
826
+ BACKGROUND_TASK = "backgroundTask",
827
+ AGENT = "agent",
828
+ CHAT_THREAD = "chatThread",
829
+ TEMPLATE = "template",
830
+ INBOX_ITEM = "inboxItem"
831
+ }
832
+ declare enum MessageLinkRelationshipType {
833
+ CREATED = "created",// Message created this object
834
+ UPDATED = "updated",// Message updated this object
835
+ REFERENCES = "references",// Message references/mentions this object
836
+ APPROVES = "approves",// Message approves this proposal
837
+ REJECTS = "rejects",// Message rejects this proposal
838
+ COMMENTS = "comments",// Message is a comment on this object
839
+ REVIEWS = "reviews",// Message reviews this object
840
+ RESPONDS_TO = "responds_to",// Message responds to another message
841
+ QUOTES = "quotes",// Message quotes this object
842
+ CONTEXT = "context"
843
+ }
624
844
  /**
625
845
  * @synap/events - Schema-Driven Event Generator
626
846
  *
@@ -721,12 +941,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
721
941
  log: import("@trpc/server").TRPCMutationProcedure<{
722
942
  input: {
723
943
  subjectId: string;
724
- subjectType: "user" | "entity" | "relation" | "system";
944
+ subjectType: "user" | "system" | "entity" | "relation";
725
945
  eventType: string;
726
946
  data: Record<string, unknown>;
727
947
  version: number;
728
948
  metadata?: Record<string, unknown> | undefined;
729
- source?: "system" | "api" | "automation" | "sync" | "migration" | undefined;
949
+ source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
730
950
  causationId?: string | undefined;
731
951
  correlationId?: string | undefined;
732
952
  };
@@ -775,23 +995,37 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
775
995
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
776
996
  create: import("@trpc/server").TRPCMutationProcedure<{
777
997
  input: {
778
- type: "event" | "file" | "project" | "task" | "contact" | "meeting" | "idea" | "note" | "person" | "code" | "bookmark" | "company";
998
+ profileSlug?: string | undefined;
999
+ profileId?: string | undefined;
779
1000
  title?: string | undefined;
780
1001
  description?: string | undefined;
781
- workspaceId?: string | undefined;
1002
+ properties?: Record<string, unknown> | undefined;
782
1003
  documentId?: string | undefined;
783
1004
  };
784
1005
  output: {
785
1006
  status: string;
786
1007
  message: string;
787
1008
  id: string;
788
- entity: {
1009
+ entity: any;
1010
+ };
1011
+ meta: object;
1012
+ }>;
1013
+ list: import("@trpc/server").TRPCQueryProcedure<{
1014
+ input: {
1015
+ profileSlug?: string | undefined;
1016
+ limit?: number | undefined;
1017
+ };
1018
+ output: {
1019
+ entities: {
789
1020
  id: string;
790
1021
  userId: string;
791
1022
  workspaceId: string | null;
1023
+ type: string;
1024
+ profileId: string | null;
792
1025
  title: string | null;
793
1026
  preview: string | null;
794
1027
  documentId: string | null;
1028
+ properties: Record<string, unknown>;
795
1029
  fileUrl: string | null;
796
1030
  filePath: string | null;
797
1031
  fileSize: number | null;
@@ -802,23 +1036,27 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
802
1036
  createdAt: Date;
803
1037
  updatedAt: Date;
804
1038
  deletedAt: Date | null;
805
- type: "task";
806
- metadata: {
807
- status: "todo" | "in_progress" | "done" | "archived";
808
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
809
- dueDate?: string | undefined;
810
- completedAt?: string | undefined;
811
- assignee?: string | undefined;
812
- estimatedMinutes?: number | undefined;
813
- actualMinutes?: number | undefined;
814
- };
815
- } | {
1039
+ }[];
1040
+ };
1041
+ meta: object;
1042
+ }>;
1043
+ search: import("@trpc/server").TRPCQueryProcedure<{
1044
+ input: {
1045
+ query: string;
1046
+ profileSlug?: string | undefined;
1047
+ limit?: number | undefined;
1048
+ };
1049
+ output: {
1050
+ entities: {
816
1051
  id: string;
817
1052
  userId: string;
818
1053
  workspaceId: string | null;
1054
+ type: string;
1055
+ profileId: string | null;
819
1056
  title: string | null;
820
1057
  preview: string | null;
821
1058
  documentId: string | null;
1059
+ properties: Record<string, unknown>;
822
1060
  fileUrl: string | null;
823
1061
  filePath: string | null;
824
1062
  fileSize: number | null;
@@ -829,1264 +1067,87 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
829
1067
  createdAt: Date;
830
1068
  updatedAt: Date;
831
1069
  deletedAt: Date | null;
832
- type: "note";
833
- metadata: {
834
- tags: string[];
835
- format: "markdown" | "plain" | "rich";
836
- isFavorite: boolean;
837
- linkedEntities?: string[] | undefined;
838
- };
839
- } | {
840
- id: string;
841
- userId: string;
842
- workspaceId: string | null;
843
- title: string | null;
844
- preview: string | null;
845
- documentId: string | null;
846
- fileUrl: string | null;
847
- filePath: string | null;
848
- fileSize: number | null;
849
- fileType: string | null;
850
- checksum: string | null;
851
- projectIds: string[] | null;
852
- version: number;
853
- createdAt: Date;
854
- updatedAt: Date;
855
- deletedAt: Date | null;
856
- type: "person";
857
- metadata: {
858
- email?: string | undefined;
859
- phone?: string | undefined;
860
- company?: string | undefined;
861
- role?: string | undefined;
862
- linkedInUrl?: string | undefined;
863
- twitterHandle?: string | undefined;
864
- notes?: string | undefined;
865
- };
866
- } | {
867
- id: string;
868
- userId: string;
869
- workspaceId: string | null;
870
- title: string | null;
871
- preview: string | null;
872
- documentId: string | null;
873
- fileUrl: string | null;
874
- filePath: string | null;
875
- fileSize: number | null;
876
- fileType: string | null;
877
- checksum: string | null;
878
- projectIds: string[] | null;
879
- version: number;
880
- createdAt: Date;
881
- updatedAt: Date;
882
- deletedAt: Date | null;
883
- type: "event";
884
- metadata: {
885
- startTime: string;
886
- endTime: string;
887
- recurring: boolean;
888
- isAllDay: boolean;
889
- location?: string | undefined;
890
- attendees?: string[] | undefined;
891
- recurrenceRule?: string | undefined;
892
- reminderMinutes?: number | undefined;
893
- };
894
- } | {
895
- id: string;
896
- userId: string;
897
- workspaceId: string | null;
898
- title: string | null;
899
- preview: string | null;
900
- documentId: string | null;
901
- fileUrl: string | null;
902
- filePath: string | null;
903
- fileSize: number | null;
904
- fileType: string | null;
905
- checksum: string | null;
906
- projectIds: string[] | null;
907
- version: number;
908
- createdAt: Date;
909
- updatedAt: Date;
910
- deletedAt: Date | null;
911
- type: "file";
912
- metadata: {
913
- mimeType: string;
914
- sizeBytes: number;
915
- extension: string;
916
- thumbnailUrl?: string | undefined;
917
- downloadUrl?: string | undefined;
918
- };
919
- } | {
920
- id: string;
921
- userId: string;
922
- workspaceId: string | null;
923
- title: string | null;
924
- preview: string | null;
925
- documentId: string | null;
926
- fileUrl: string | null;
927
- filePath: string | null;
928
- fileSize: number | null;
929
- fileType: string | null;
930
- checksum: string | null;
931
- projectIds: string[] | null;
932
- version: number;
933
- createdAt: Date;
934
- updatedAt: Date;
935
- deletedAt: Date | null;
936
- type: "code";
937
- metadata: {
938
- language: string;
939
- snippet?: string | undefined;
940
- };
941
- } | {
942
- id: string;
943
- userId: string;
944
- workspaceId: string | null;
945
- title: string | null;
946
- preview: string | null;
947
- documentId: string | null;
948
- fileUrl: string | null;
949
- filePath: string | null;
950
- fileSize: number | null;
951
- fileType: string | null;
952
- checksum: string | null;
953
- projectIds: string[] | null;
954
- version: number;
955
- createdAt: Date;
956
- updatedAt: Date;
957
- deletedAt: Date | null;
958
- type: "bookmark";
959
- metadata: {
960
- url: string;
961
- favicon?: string | undefined;
962
- };
963
- } | {
964
- id: string;
965
- userId: string;
966
- workspaceId: string | null;
967
- title: string | null;
968
- preview: string | null;
969
- documentId: string | null;
970
- fileUrl: string | null;
971
- filePath: string | null;
972
- fileSize: number | null;
973
- fileType: string | null;
974
- checksum: string | null;
975
- projectIds: string[] | null;
976
- version: number;
977
- createdAt: Date;
978
- updatedAt: Date;
979
- deletedAt: Date | null;
980
- type: "company";
981
- metadata: {
982
- website?: string | undefined;
983
- industry?: string | undefined;
984
- foundedYear?: number | undefined;
985
- };
986
- } | {
987
- id: string;
988
- userId: string;
989
- workspaceId: string | null;
990
- title: string | null;
991
- preview: string | null;
992
- documentId: string | null;
993
- fileUrl: string | null;
994
- filePath: string | null;
995
- fileSize: number | null;
996
- fileType: string | null;
997
- checksum: string | null;
998
- projectIds: string[] | null;
999
- version: number;
1000
- createdAt: Date;
1001
- updatedAt: Date;
1002
- deletedAt: Date | null;
1003
- type: "contact";
1004
- metadata: {
1005
- email?: string | undefined;
1006
- phone?: string | undefined;
1007
- company?: string | undefined;
1008
- role?: string | undefined;
1009
- linkedInUrl?: string | undefined;
1010
- twitterHandle?: string | undefined;
1011
- notes?: string | undefined;
1012
- };
1013
- } | {
1014
- id: string;
1015
- userId: string;
1016
- workspaceId: string | null;
1017
- title: string | null;
1018
- preview: string | null;
1019
- documentId: string | null;
1020
- fileUrl: string | null;
1021
- filePath: string | null;
1022
- fileSize: number | null;
1023
- fileType: string | null;
1024
- checksum: string | null;
1025
- projectIds: string[] | null;
1026
- version: number;
1027
- createdAt: Date;
1028
- updatedAt: Date;
1029
- deletedAt: Date | null;
1030
- type: "meeting";
1031
- metadata: {
1032
- startTime: string;
1033
- endTime: string;
1034
- recurring: boolean;
1035
- isAllDay: boolean;
1036
- location?: string | undefined;
1037
- attendees?: string[] | undefined;
1038
- recurrenceRule?: string | undefined;
1039
- reminderMinutes?: number | undefined;
1040
- };
1041
- } | {
1042
- id: string;
1043
- userId: string;
1044
- workspaceId: string | null;
1045
- title: string | null;
1046
- preview: string | null;
1047
- documentId: string | null;
1048
- fileUrl: string | null;
1049
- filePath: string | null;
1050
- fileSize: number | null;
1051
- fileType: string | null;
1052
- checksum: string | null;
1053
- projectIds: string[] | null;
1054
- version: number;
1055
- createdAt: Date;
1056
- updatedAt: Date;
1057
- deletedAt: Date | null;
1058
- type: "idea";
1059
- metadata: {
1060
- tags: string[];
1061
- impact?: "low" | "medium" | "high" | undefined;
1062
- effort?: "low" | "medium" | "high" | undefined;
1063
- };
1064
- } | {
1065
- id: string;
1066
- userId: string;
1067
- workspaceId: string | null;
1068
- title: string | null;
1069
- preview: string | null;
1070
- documentId: string | null;
1071
- fileUrl: string | null;
1072
- filePath: string | null;
1073
- fileSize: number | null;
1074
- fileType: string | null;
1075
- checksum: string | null;
1076
- projectIds: string[] | null;
1077
- version: number;
1078
- createdAt: Date;
1079
- updatedAt: Date;
1080
- deletedAt: Date | null;
1081
- type: "project";
1082
- metadata: {
1083
- status: "archived" | "active" | "on_hold" | "completed";
1084
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
1085
- dueDate?: string | undefined;
1086
- completedAt?: string | undefined;
1087
- owner?: string | undefined;
1088
- };
1089
- };
1090
- };
1091
- meta: object;
1092
- }>;
1093
- list: import("@trpc/server").TRPCQueryProcedure<{
1094
- input: {
1095
- type?: "event" | "file" | "project" | "task" | "contact" | "meeting" | "idea" | "note" | "person" | "code" | "bookmark" | "company" | undefined;
1096
- workspaceId?: string | undefined;
1097
- limit?: number | undefined;
1098
- };
1099
- output: {
1100
- entities: ({
1101
- id: string;
1102
- userId: string;
1103
- workspaceId: string | null;
1104
- title: string | null;
1105
- preview: string | null;
1106
- documentId: string | null;
1107
- fileUrl: string | null;
1108
- filePath: string | null;
1109
- fileSize: number | null;
1110
- fileType: string | null;
1111
- checksum: string | null;
1112
- projectIds: string[] | null;
1113
- version: number;
1114
- createdAt: Date;
1115
- updatedAt: Date;
1116
- deletedAt: Date | null;
1117
- type: "task";
1118
- metadata: {
1119
- status: "todo" | "in_progress" | "done" | "archived";
1120
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
1121
- dueDate?: string | undefined;
1122
- completedAt?: string | undefined;
1123
- assignee?: string | undefined;
1124
- estimatedMinutes?: number | undefined;
1125
- actualMinutes?: number | undefined;
1126
- };
1127
- } | {
1128
- id: string;
1129
- userId: string;
1130
- workspaceId: string | null;
1131
- title: string | null;
1132
- preview: string | null;
1133
- documentId: string | null;
1134
- fileUrl: string | null;
1135
- filePath: string | null;
1136
- fileSize: number | null;
1137
- fileType: string | null;
1138
- checksum: string | null;
1139
- projectIds: string[] | null;
1140
- version: number;
1141
- createdAt: Date;
1142
- updatedAt: Date;
1143
- deletedAt: Date | null;
1144
- type: "note";
1145
- metadata: {
1146
- tags: string[];
1147
- format: "markdown" | "plain" | "rich";
1148
- isFavorite: boolean;
1149
- linkedEntities?: string[] | undefined;
1150
- };
1151
- } | {
1152
- id: string;
1153
- userId: string;
1154
- workspaceId: string | null;
1155
- title: string | null;
1156
- preview: string | null;
1157
- documentId: string | null;
1158
- fileUrl: string | null;
1159
- filePath: string | null;
1160
- fileSize: number | null;
1161
- fileType: string | null;
1162
- checksum: string | null;
1163
- projectIds: string[] | null;
1164
- version: number;
1165
- createdAt: Date;
1166
- updatedAt: Date;
1167
- deletedAt: Date | null;
1168
- type: "person";
1169
- metadata: {
1170
- email?: string | undefined;
1171
- phone?: string | undefined;
1172
- company?: string | undefined;
1173
- role?: string | undefined;
1174
- linkedInUrl?: string | undefined;
1175
- twitterHandle?: string | undefined;
1176
- notes?: string | undefined;
1177
- };
1178
- } | {
1179
- id: string;
1180
- userId: string;
1181
- workspaceId: string | null;
1182
- title: string | null;
1183
- preview: string | null;
1184
- documentId: string | null;
1185
- fileUrl: string | null;
1186
- filePath: string | null;
1187
- fileSize: number | null;
1188
- fileType: string | null;
1189
- checksum: string | null;
1190
- projectIds: string[] | null;
1191
- version: number;
1192
- createdAt: Date;
1193
- updatedAt: Date;
1194
- deletedAt: Date | null;
1195
- type: "event";
1196
- metadata: {
1197
- startTime: string;
1198
- endTime: string;
1199
- recurring: boolean;
1200
- isAllDay: boolean;
1201
- location?: string | undefined;
1202
- attendees?: string[] | undefined;
1203
- recurrenceRule?: string | undefined;
1204
- reminderMinutes?: number | undefined;
1205
- };
1206
- } | {
1207
- id: string;
1208
- userId: string;
1209
- workspaceId: string | null;
1210
- title: string | null;
1211
- preview: string | null;
1212
- documentId: string | null;
1213
- fileUrl: string | null;
1214
- filePath: string | null;
1215
- fileSize: number | null;
1216
- fileType: string | null;
1217
- checksum: string | null;
1218
- projectIds: string[] | null;
1219
- version: number;
1220
- createdAt: Date;
1221
- updatedAt: Date;
1222
- deletedAt: Date | null;
1223
- type: "file";
1224
- metadata: {
1225
- mimeType: string;
1226
- sizeBytes: number;
1227
- extension: string;
1228
- thumbnailUrl?: string | undefined;
1229
- downloadUrl?: string | undefined;
1230
- };
1231
- } | {
1232
- id: string;
1233
- userId: string;
1234
- workspaceId: string | null;
1235
- title: string | null;
1236
- preview: string | null;
1237
- documentId: string | null;
1238
- fileUrl: string | null;
1239
- filePath: string | null;
1240
- fileSize: number | null;
1241
- fileType: string | null;
1242
- checksum: string | null;
1243
- projectIds: string[] | null;
1244
- version: number;
1245
- createdAt: Date;
1246
- updatedAt: Date;
1247
- deletedAt: Date | null;
1248
- type: "code";
1249
- metadata: {
1250
- language: string;
1251
- snippet?: string | undefined;
1252
- };
1253
- } | {
1254
- id: string;
1255
- userId: string;
1256
- workspaceId: string | null;
1257
- title: string | null;
1258
- preview: string | null;
1259
- documentId: string | null;
1260
- fileUrl: string | null;
1261
- filePath: string | null;
1262
- fileSize: number | null;
1263
- fileType: string | null;
1264
- checksum: string | null;
1265
- projectIds: string[] | null;
1266
- version: number;
1267
- createdAt: Date;
1268
- updatedAt: Date;
1269
- deletedAt: Date | null;
1270
- type: "bookmark";
1271
- metadata: {
1272
- url: string;
1273
- favicon?: string | undefined;
1274
- };
1275
- } | {
1276
- id: string;
1277
- userId: string;
1278
- workspaceId: string | null;
1279
- title: string | null;
1280
- preview: string | null;
1281
- documentId: string | null;
1282
- fileUrl: string | null;
1283
- filePath: string | null;
1284
- fileSize: number | null;
1285
- fileType: string | null;
1286
- checksum: string | null;
1287
- projectIds: string[] | null;
1288
- version: number;
1289
- createdAt: Date;
1290
- updatedAt: Date;
1291
- deletedAt: Date | null;
1292
- type: "company";
1293
- metadata: {
1294
- website?: string | undefined;
1295
- industry?: string | undefined;
1296
- foundedYear?: number | undefined;
1297
- };
1298
- } | {
1299
- id: string;
1300
- userId: string;
1301
- workspaceId: string | null;
1302
- title: string | null;
1303
- preview: string | null;
1304
- documentId: string | null;
1305
- fileUrl: string | null;
1306
- filePath: string | null;
1307
- fileSize: number | null;
1308
- fileType: string | null;
1309
- checksum: string | null;
1310
- projectIds: string[] | null;
1311
- version: number;
1312
- createdAt: Date;
1313
- updatedAt: Date;
1314
- deletedAt: Date | null;
1315
- type: "contact";
1316
- metadata: {
1317
- email?: string | undefined;
1318
- phone?: string | undefined;
1319
- company?: string | undefined;
1320
- role?: string | undefined;
1321
- linkedInUrl?: string | undefined;
1322
- twitterHandle?: string | undefined;
1323
- notes?: string | undefined;
1324
- };
1325
- } | {
1326
- id: string;
1327
- userId: string;
1328
- workspaceId: string | null;
1329
- title: string | null;
1330
- preview: string | null;
1331
- documentId: string | null;
1332
- fileUrl: string | null;
1333
- filePath: string | null;
1334
- fileSize: number | null;
1335
- fileType: string | null;
1336
- checksum: string | null;
1337
- projectIds: string[] | null;
1338
- version: number;
1339
- createdAt: Date;
1340
- updatedAt: Date;
1341
- deletedAt: Date | null;
1342
- type: "meeting";
1343
- metadata: {
1344
- startTime: string;
1345
- endTime: string;
1346
- recurring: boolean;
1347
- isAllDay: boolean;
1348
- location?: string | undefined;
1349
- attendees?: string[] | undefined;
1350
- recurrenceRule?: string | undefined;
1351
- reminderMinutes?: number | undefined;
1352
- };
1353
- } | {
1354
- id: string;
1355
- userId: string;
1356
- workspaceId: string | null;
1357
- title: string | null;
1358
- preview: string | null;
1359
- documentId: string | null;
1360
- fileUrl: string | null;
1361
- filePath: string | null;
1362
- fileSize: number | null;
1363
- fileType: string | null;
1364
- checksum: string | null;
1365
- projectIds: string[] | null;
1366
- version: number;
1367
- createdAt: Date;
1368
- updatedAt: Date;
1369
- deletedAt: Date | null;
1370
- type: "idea";
1371
- metadata: {
1372
- tags: string[];
1373
- impact?: "low" | "medium" | "high" | undefined;
1374
- effort?: "low" | "medium" | "high" | undefined;
1375
- };
1376
- } | {
1377
- id: string;
1378
- userId: string;
1379
- workspaceId: string | null;
1380
- title: string | null;
1381
- preview: string | null;
1382
- documentId: string | null;
1383
- fileUrl: string | null;
1384
- filePath: string | null;
1385
- fileSize: number | null;
1386
- fileType: string | null;
1387
- checksum: string | null;
1388
- projectIds: string[] | null;
1389
- version: number;
1390
- createdAt: Date;
1391
- updatedAt: Date;
1392
- deletedAt: Date | null;
1393
- type: "project";
1394
- metadata: {
1395
- status: "archived" | "active" | "on_hold" | "completed";
1396
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
1397
- dueDate?: string | undefined;
1398
- completedAt?: string | undefined;
1399
- owner?: string | undefined;
1400
- };
1401
- })[];
1402
- };
1403
- meta: object;
1404
- }>;
1405
- search: import("@trpc/server").TRPCQueryProcedure<{
1406
- input: {
1407
- query: string;
1408
- type?: "event" | "file" | "project" | "task" | "contact" | "meeting" | "idea" | "note" | "person" | "code" | "bookmark" | "company" | undefined;
1409
- limit?: number | undefined;
1410
- };
1411
- output: {
1412
- entities: ({
1413
- id: string;
1414
- userId: string;
1415
- workspaceId: string | null;
1416
- title: string | null;
1417
- preview: string | null;
1418
- documentId: string | null;
1419
- fileUrl: string | null;
1420
- filePath: string | null;
1421
- fileSize: number | null;
1422
- fileType: string | null;
1423
- checksum: string | null;
1424
- projectIds: string[] | null;
1425
- version: number;
1426
- createdAt: Date;
1427
- updatedAt: Date;
1428
- deletedAt: Date | null;
1429
- type: "task";
1430
- metadata: {
1431
- status: "todo" | "in_progress" | "done" | "archived";
1432
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
1433
- dueDate?: string | undefined;
1434
- completedAt?: string | undefined;
1435
- assignee?: string | undefined;
1436
- estimatedMinutes?: number | undefined;
1437
- actualMinutes?: number | undefined;
1438
- };
1439
- } | {
1440
- id: string;
1441
- userId: string;
1442
- workspaceId: string | null;
1443
- title: string | null;
1444
- preview: string | null;
1445
- documentId: string | null;
1446
- fileUrl: string | null;
1447
- filePath: string | null;
1448
- fileSize: number | null;
1449
- fileType: string | null;
1450
- checksum: string | null;
1451
- projectIds: string[] | null;
1452
- version: number;
1453
- createdAt: Date;
1454
- updatedAt: Date;
1455
- deletedAt: Date | null;
1456
- type: "note";
1457
- metadata: {
1458
- tags: string[];
1459
- format: "markdown" | "plain" | "rich";
1460
- isFavorite: boolean;
1461
- linkedEntities?: string[] | undefined;
1462
- };
1463
- } | {
1464
- id: string;
1465
- userId: string;
1466
- workspaceId: string | null;
1467
- title: string | null;
1468
- preview: string | null;
1469
- documentId: string | null;
1470
- fileUrl: string | null;
1471
- filePath: string | null;
1472
- fileSize: number | null;
1473
- fileType: string | null;
1474
- checksum: string | null;
1475
- projectIds: string[] | null;
1476
- version: number;
1477
- createdAt: Date;
1478
- updatedAt: Date;
1479
- deletedAt: Date | null;
1480
- type: "person";
1481
- metadata: {
1482
- email?: string | undefined;
1483
- phone?: string | undefined;
1484
- company?: string | undefined;
1485
- role?: string | undefined;
1486
- linkedInUrl?: string | undefined;
1487
- twitterHandle?: string | undefined;
1488
- notes?: string | undefined;
1489
- };
1490
- } | {
1491
- id: string;
1492
- userId: string;
1493
- workspaceId: string | null;
1494
- title: string | null;
1495
- preview: string | null;
1496
- documentId: string | null;
1497
- fileUrl: string | null;
1498
- filePath: string | null;
1499
- fileSize: number | null;
1500
- fileType: string | null;
1501
- checksum: string | null;
1502
- projectIds: string[] | null;
1503
- version: number;
1504
- createdAt: Date;
1505
- updatedAt: Date;
1506
- deletedAt: Date | null;
1507
- type: "event";
1508
- metadata: {
1509
- startTime: string;
1510
- endTime: string;
1511
- recurring: boolean;
1512
- isAllDay: boolean;
1513
- location?: string | undefined;
1514
- attendees?: string[] | undefined;
1515
- recurrenceRule?: string | undefined;
1516
- reminderMinutes?: number | undefined;
1517
- };
1518
- } | {
1519
- id: string;
1520
- userId: string;
1521
- workspaceId: string | null;
1522
- title: string | null;
1523
- preview: string | null;
1524
- documentId: string | null;
1525
- fileUrl: string | null;
1526
- filePath: string | null;
1527
- fileSize: number | null;
1528
- fileType: string | null;
1529
- checksum: string | null;
1530
- projectIds: string[] | null;
1531
- version: number;
1532
- createdAt: Date;
1533
- updatedAt: Date;
1534
- deletedAt: Date | null;
1535
- type: "file";
1536
- metadata: {
1537
- mimeType: string;
1538
- sizeBytes: number;
1539
- extension: string;
1540
- thumbnailUrl?: string | undefined;
1541
- downloadUrl?: string | undefined;
1542
- };
1543
- } | {
1544
- id: string;
1545
- userId: string;
1546
- workspaceId: string | null;
1547
- title: string | null;
1548
- preview: string | null;
1549
- documentId: string | null;
1550
- fileUrl: string | null;
1551
- filePath: string | null;
1552
- fileSize: number | null;
1553
- fileType: string | null;
1554
- checksum: string | null;
1555
- projectIds: string[] | null;
1556
- version: number;
1557
- createdAt: Date;
1558
- updatedAt: Date;
1559
- deletedAt: Date | null;
1560
- type: "code";
1561
- metadata: {
1562
- language: string;
1563
- snippet?: string | undefined;
1564
- };
1565
- } | {
1566
- id: string;
1567
- userId: string;
1568
- workspaceId: string | null;
1569
- title: string | null;
1570
- preview: string | null;
1571
- documentId: string | null;
1572
- fileUrl: string | null;
1573
- filePath: string | null;
1574
- fileSize: number | null;
1575
- fileType: string | null;
1576
- checksum: string | null;
1577
- projectIds: string[] | null;
1578
- version: number;
1579
- createdAt: Date;
1580
- updatedAt: Date;
1581
- deletedAt: Date | null;
1582
- type: "bookmark";
1583
- metadata: {
1584
- url: string;
1585
- favicon?: string | undefined;
1586
- };
1587
- } | {
1588
- id: string;
1589
- userId: string;
1590
- workspaceId: string | null;
1591
- title: string | null;
1592
- preview: string | null;
1593
- documentId: string | null;
1594
- fileUrl: string | null;
1595
- filePath: string | null;
1596
- fileSize: number | null;
1597
- fileType: string | null;
1598
- checksum: string | null;
1599
- projectIds: string[] | null;
1600
- version: number;
1601
- createdAt: Date;
1602
- updatedAt: Date;
1603
- deletedAt: Date | null;
1604
- type: "company";
1605
- metadata: {
1606
- website?: string | undefined;
1607
- industry?: string | undefined;
1608
- foundedYear?: number | undefined;
1609
- };
1610
- } | {
1611
- id: string;
1612
- userId: string;
1613
- workspaceId: string | null;
1614
- title: string | null;
1615
- preview: string | null;
1616
- documentId: string | null;
1617
- fileUrl: string | null;
1618
- filePath: string | null;
1619
- fileSize: number | null;
1620
- fileType: string | null;
1621
- checksum: string | null;
1622
- projectIds: string[] | null;
1623
- version: number;
1624
- createdAt: Date;
1625
- updatedAt: Date;
1626
- deletedAt: Date | null;
1627
- type: "contact";
1628
- metadata: {
1629
- email?: string | undefined;
1630
- phone?: string | undefined;
1631
- company?: string | undefined;
1632
- role?: string | undefined;
1633
- linkedInUrl?: string | undefined;
1634
- twitterHandle?: string | undefined;
1635
- notes?: string | undefined;
1636
- };
1637
- } | {
1638
- id: string;
1639
- userId: string;
1640
- workspaceId: string | null;
1641
- title: string | null;
1642
- preview: string | null;
1643
- documentId: string | null;
1644
- fileUrl: string | null;
1645
- filePath: string | null;
1646
- fileSize: number | null;
1647
- fileType: string | null;
1648
- checksum: string | null;
1649
- projectIds: string[] | null;
1650
- version: number;
1651
- createdAt: Date;
1652
- updatedAt: Date;
1653
- deletedAt: Date | null;
1654
- type: "meeting";
1655
- metadata: {
1656
- startTime: string;
1657
- endTime: string;
1658
- recurring: boolean;
1659
- isAllDay: boolean;
1660
- location?: string | undefined;
1661
- attendees?: string[] | undefined;
1662
- recurrenceRule?: string | undefined;
1663
- reminderMinutes?: number | undefined;
1664
- };
1665
- } | {
1666
- id: string;
1667
- userId: string;
1668
- workspaceId: string | null;
1669
- title: string | null;
1670
- preview: string | null;
1671
- documentId: string | null;
1672
- fileUrl: string | null;
1673
- filePath: string | null;
1674
- fileSize: number | null;
1675
- fileType: string | null;
1676
- checksum: string | null;
1677
- projectIds: string[] | null;
1678
- version: number;
1679
- createdAt: Date;
1680
- updatedAt: Date;
1681
- deletedAt: Date | null;
1682
- type: "idea";
1683
- metadata: {
1684
- tags: string[];
1685
- impact?: "low" | "medium" | "high" | undefined;
1686
- effort?: "low" | "medium" | "high" | undefined;
1687
- };
1688
- } | {
1689
- id: string;
1690
- userId: string;
1691
- workspaceId: string | null;
1692
- title: string | null;
1693
- preview: string | null;
1694
- documentId: string | null;
1695
- fileUrl: string | null;
1696
- filePath: string | null;
1697
- fileSize: number | null;
1698
- fileType: string | null;
1699
- checksum: string | null;
1700
- projectIds: string[] | null;
1701
- version: number;
1702
- createdAt: Date;
1703
- updatedAt: Date;
1704
- deletedAt: Date | null;
1705
- type: "project";
1706
- metadata: {
1707
- status: "archived" | "active" | "on_hold" | "completed";
1708
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
1709
- dueDate?: string | undefined;
1710
- completedAt?: string | undefined;
1711
- owner?: string | undefined;
1712
- };
1713
- })[];
1714
- };
1715
- meta: object;
1716
- }>;
1717
- get: import("@trpc/server").TRPCQueryProcedure<{
1718
- input: {
1719
- id: string;
1720
- };
1721
- output: {
1722
- entity: {
1723
- id: string;
1724
- userId: string;
1725
- workspaceId: string | null;
1726
- title: string | null;
1727
- preview: string | null;
1728
- documentId: string | null;
1729
- fileUrl: string | null;
1730
- filePath: string | null;
1731
- fileSize: number | null;
1732
- fileType: string | null;
1733
- checksum: string | null;
1734
- projectIds: string[] | null;
1735
- version: number;
1736
- createdAt: Date;
1737
- updatedAt: Date;
1738
- deletedAt: Date | null;
1739
- type: "task";
1740
- metadata: {
1741
- status: "todo" | "in_progress" | "done" | "archived";
1742
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
1743
- dueDate?: string | undefined;
1744
- completedAt?: string | undefined;
1745
- assignee?: string | undefined;
1746
- estimatedMinutes?: number | undefined;
1747
- actualMinutes?: number | undefined;
1748
- };
1749
- } | {
1750
- id: string;
1751
- userId: string;
1752
- workspaceId: string | null;
1753
- title: string | null;
1754
- preview: string | null;
1755
- documentId: string | null;
1756
- fileUrl: string | null;
1757
- filePath: string | null;
1758
- fileSize: number | null;
1759
- fileType: string | null;
1760
- checksum: string | null;
1761
- projectIds: string[] | null;
1762
- version: number;
1763
- createdAt: Date;
1764
- updatedAt: Date;
1765
- deletedAt: Date | null;
1766
- type: "note";
1767
- metadata: {
1768
- tags: string[];
1769
- format: "markdown" | "plain" | "rich";
1770
- isFavorite: boolean;
1771
- linkedEntities?: string[] | undefined;
1772
- };
1773
- } | {
1774
- id: string;
1775
- userId: string;
1776
- workspaceId: string | null;
1777
- title: string | null;
1778
- preview: string | null;
1779
- documentId: string | null;
1780
- fileUrl: string | null;
1781
- filePath: string | null;
1782
- fileSize: number | null;
1783
- fileType: string | null;
1784
- checksum: string | null;
1785
- projectIds: string[] | null;
1786
- version: number;
1787
- createdAt: Date;
1788
- updatedAt: Date;
1789
- deletedAt: Date | null;
1790
- type: "person";
1791
- metadata: {
1792
- email?: string | undefined;
1793
- phone?: string | undefined;
1794
- company?: string | undefined;
1795
- role?: string | undefined;
1796
- linkedInUrl?: string | undefined;
1797
- twitterHandle?: string | undefined;
1798
- notes?: string | undefined;
1799
- };
1800
- } | {
1801
- id: string;
1802
- userId: string;
1803
- workspaceId: string | null;
1804
- title: string | null;
1805
- preview: string | null;
1806
- documentId: string | null;
1807
- fileUrl: string | null;
1808
- filePath: string | null;
1809
- fileSize: number | null;
1810
- fileType: string | null;
1811
- checksum: string | null;
1812
- projectIds: string[] | null;
1813
- version: number;
1814
- createdAt: Date;
1815
- updatedAt: Date;
1816
- deletedAt: Date | null;
1817
- type: "event";
1818
- metadata: {
1819
- startTime: string;
1820
- endTime: string;
1821
- recurring: boolean;
1822
- isAllDay: boolean;
1823
- location?: string | undefined;
1824
- attendees?: string[] | undefined;
1825
- recurrenceRule?: string | undefined;
1826
- reminderMinutes?: number | undefined;
1827
- };
1828
- } | {
1829
- id: string;
1830
- userId: string;
1831
- workspaceId: string | null;
1832
- title: string | null;
1833
- preview: string | null;
1834
- documentId: string | null;
1835
- fileUrl: string | null;
1836
- filePath: string | null;
1837
- fileSize: number | null;
1838
- fileType: string | null;
1839
- checksum: string | null;
1840
- projectIds: string[] | null;
1841
- version: number;
1842
- createdAt: Date;
1843
- updatedAt: Date;
1844
- deletedAt: Date | null;
1845
- type: "file";
1846
- metadata: {
1847
- mimeType: string;
1848
- sizeBytes: number;
1849
- extension: string;
1850
- thumbnailUrl?: string | undefined;
1851
- downloadUrl?: string | undefined;
1852
- };
1853
- } | {
1854
- id: string;
1855
- userId: string;
1856
- workspaceId: string | null;
1857
- title: string | null;
1858
- preview: string | null;
1859
- documentId: string | null;
1860
- fileUrl: string | null;
1861
- filePath: string | null;
1862
- fileSize: number | null;
1863
- fileType: string | null;
1864
- checksum: string | null;
1865
- projectIds: string[] | null;
1866
- version: number;
1867
- createdAt: Date;
1868
- updatedAt: Date;
1869
- deletedAt: Date | null;
1870
- type: "code";
1871
- metadata: {
1872
- language: string;
1873
- snippet?: string | undefined;
1874
- };
1875
- } | {
1876
- id: string;
1877
- userId: string;
1878
- workspaceId: string | null;
1879
- title: string | null;
1880
- preview: string | null;
1881
- documentId: string | null;
1882
- fileUrl: string | null;
1883
- filePath: string | null;
1884
- fileSize: number | null;
1885
- fileType: string | null;
1886
- checksum: string | null;
1887
- projectIds: string[] | null;
1888
- version: number;
1889
- createdAt: Date;
1890
- updatedAt: Date;
1891
- deletedAt: Date | null;
1892
- type: "bookmark";
1893
- metadata: {
1894
- url: string;
1895
- favicon?: string | undefined;
1896
- };
1897
- } | {
1898
- id: string;
1899
- userId: string;
1900
- workspaceId: string | null;
1901
- title: string | null;
1902
- preview: string | null;
1903
- documentId: string | null;
1904
- fileUrl: string | null;
1905
- filePath: string | null;
1906
- fileSize: number | null;
1907
- fileType: string | null;
1908
- checksum: string | null;
1909
- projectIds: string[] | null;
1910
- version: number;
1911
- createdAt: Date;
1912
- updatedAt: Date;
1913
- deletedAt: Date | null;
1914
- type: "company";
1915
- metadata: {
1916
- website?: string | undefined;
1917
- industry?: string | undefined;
1918
- foundedYear?: number | undefined;
1919
- };
1920
- } | {
1921
- id: string;
1922
- userId: string;
1923
- workspaceId: string | null;
1924
- title: string | null;
1925
- preview: string | null;
1926
- documentId: string | null;
1927
- fileUrl: string | null;
1928
- filePath: string | null;
1929
- fileSize: number | null;
1930
- fileType: string | null;
1931
- checksum: string | null;
1932
- projectIds: string[] | null;
1933
- version: number;
1934
- createdAt: Date;
1935
- updatedAt: Date;
1936
- deletedAt: Date | null;
1937
- type: "contact";
1938
- metadata: {
1939
- email?: string | undefined;
1940
- phone?: string | undefined;
1941
- company?: string | undefined;
1942
- role?: string | undefined;
1943
- linkedInUrl?: string | undefined;
1944
- twitterHandle?: string | undefined;
1945
- notes?: string | undefined;
1946
- };
1947
- } | {
1948
- id: string;
1949
- userId: string;
1950
- workspaceId: string | null;
1951
- title: string | null;
1952
- preview: string | null;
1953
- documentId: string | null;
1954
- fileUrl: string | null;
1955
- filePath: string | null;
1956
- fileSize: number | null;
1957
- fileType: string | null;
1958
- checksum: string | null;
1959
- projectIds: string[] | null;
1960
- version: number;
1961
- createdAt: Date;
1962
- updatedAt: Date;
1963
- deletedAt: Date | null;
1964
- type: "meeting";
1965
- metadata: {
1966
- startTime: string;
1967
- endTime: string;
1968
- recurring: boolean;
1969
- isAllDay: boolean;
1970
- location?: string | undefined;
1971
- attendees?: string[] | undefined;
1972
- recurrenceRule?: string | undefined;
1973
- reminderMinutes?: number | undefined;
1974
- };
1975
- } | {
1976
- id: string;
1977
- userId: string;
1978
- workspaceId: string | null;
1979
- title: string | null;
1980
- preview: string | null;
1981
- documentId: string | null;
1982
- fileUrl: string | null;
1983
- filePath: string | null;
1984
- fileSize: number | null;
1985
- fileType: string | null;
1986
- checksum: string | null;
1987
- projectIds: string[] | null;
1988
- version: number;
1989
- createdAt: Date;
1990
- updatedAt: Date;
1991
- deletedAt: Date | null;
1992
- type: "idea";
1993
- metadata: {
1994
- tags: string[];
1995
- impact?: "low" | "medium" | "high" | undefined;
1996
- effort?: "low" | "medium" | "high" | undefined;
1997
- };
1998
- } | {
1999
- id: string;
2000
- userId: string;
2001
- workspaceId: string | null;
2002
- title: string | null;
2003
- preview: string | null;
2004
- documentId: string | null;
2005
- fileUrl: string | null;
2006
- filePath: string | null;
2007
- fileSize: number | null;
2008
- fileType: string | null;
2009
- checksum: string | null;
2010
- projectIds: string[] | null;
2011
- version: number;
2012
- createdAt: Date;
2013
- updatedAt: Date;
2014
- deletedAt: Date | null;
2015
- type: "project";
2016
- metadata: {
2017
- status: "archived" | "active" | "on_hold" | "completed";
2018
- priority?: "low" | "medium" | "high" | "urgent" | undefined;
2019
- dueDate?: string | undefined;
2020
- completedAt?: string | undefined;
2021
- owner?: string | undefined;
2022
- };
2023
- };
2024
- };
2025
- meta: object;
2026
- }>;
2027
- update: import("@trpc/server").TRPCMutationProcedure<{
2028
- input: {
2029
- id: string;
2030
- type?: "project" | "task" | "contact" | "meeting" | "idea" | "note" | undefined;
2031
- title?: string | undefined;
2032
- preview?: string | undefined;
2033
- workspaceId?: string | undefined;
2034
- documentId?: string | undefined;
2035
- };
2036
- output: {
2037
- status: string;
2038
- message: string;
2039
- };
2040
- meta: object;
2041
- }>;
2042
- delete: import("@trpc/server").TRPCMutationProcedure<{
2043
- input: {
2044
- id: string;
2045
- };
2046
- output: {
2047
- status: string;
2048
- message: string;
2049
- };
2050
- meta: object;
2051
- }>;
2052
- }>>;
2053
- chat: import("@trpc/server").TRPCBuiltRouter<{
2054
- ctx: Context;
2055
- meta: object;
2056
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2057
- transformer: true;
2058
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2059
- createThread: import("@trpc/server").TRPCMutationProcedure<{
2060
- input: {
2061
- projectId?: string | undefined;
2062
- parentThreadId?: string | undefined;
2063
- branchPurpose?: string | undefined;
2064
- agentId?: string | undefined;
2065
- agentType?: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action" | undefined;
2066
- agentConfig?: Record<string, any> | undefined;
2067
- inheritContext?: boolean | undefined;
2068
- };
2069
- output: {
2070
- threadId: `${string}-${string}-${string}-${string}-${string}`;
2071
- thread: {
1070
+ }[];
1071
+ };
1072
+ meta: object;
1073
+ }>;
1074
+ get: import("@trpc/server").TRPCQueryProcedure<{
1075
+ input: {
1076
+ id: string;
1077
+ };
1078
+ output: {
1079
+ entity: any;
1080
+ };
1081
+ meta: object;
1082
+ }>;
1083
+ update: import("@trpc/server").TRPCMutationProcedure<{
1084
+ input: {
1085
+ id: string;
1086
+ title?: string | undefined;
1087
+ description?: string | undefined;
1088
+ properties?: Record<string, unknown> | undefined;
1089
+ };
1090
+ output: {
1091
+ status: string;
1092
+ message: string;
1093
+ };
1094
+ meta: object;
1095
+ }>;
1096
+ delete: import("@trpc/server").TRPCMutationProcedure<{
1097
+ input: {
1098
+ id: string;
1099
+ };
1100
+ output: {
1101
+ status: string;
1102
+ message: string;
1103
+ };
1104
+ meta: object;
1105
+ }>;
1106
+ }>>;
1107
+ chat: import("@trpc/server").TRPCBuiltRouter<{
1108
+ ctx: Context;
1109
+ meta: object;
1110
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
1111
+ transformer: true;
1112
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1113
+ createThread: import("@trpc/server").TRPCMutationProcedure<{
1114
+ input: {
1115
+ projectId?: string | undefined;
1116
+ parentThreadId?: string | undefined;
1117
+ branchPurpose?: string | undefined;
1118
+ agentId?: string | undefined;
1119
+ agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | undefined;
1120
+ agentConfig?: Record<string, any> | undefined;
1121
+ inheritContext?: boolean | undefined;
1122
+ };
1123
+ output: {
1124
+ threadId: undefined;
1125
+ status: string;
1126
+ message: string;
1127
+ thread?: undefined;
1128
+ } | {
1129
+ threadId: string;
1130
+ thread: {
2072
1131
  userId: string;
2073
1132
  id: string;
2074
- status: "archived" | "active" | "merged";
2075
- createdAt: Date;
2076
1133
  updatedAt: Date;
1134
+ createdAt: Date;
2077
1135
  metadata: unknown;
1136
+ projectIds: string[] | null;
2078
1137
  title: string | null;
2079
- projectId: string | null;
2080
- threadType: "main" | "branch";
1138
+ status: ChatThreadStatus;
1139
+ threadType: ChatThreadType;
2081
1140
  parentThreadId: string | null;
2082
1141
  branchedFromMessageId: string | null;
2083
1142
  branchPurpose: string | null;
2084
1143
  agentId: string;
2085
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1144
+ agentType: ChatThreadAgentType;
2086
1145
  agentConfig: unknown;
2087
1146
  contextSummary: string | null;
2088
1147
  mergedAt: Date | null;
2089
1148
  };
1149
+ status?: undefined;
1150
+ message?: undefined;
2090
1151
  };
2091
1152
  meta: object;
2092
1153
  }>;
@@ -2107,18 +1168,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2107
1168
  branchThread: {
2108
1169
  userId: string;
2109
1170
  id: string;
2110
- status: "archived" | "active" | "merged";
2111
- createdAt: Date;
2112
1171
  updatedAt: Date;
1172
+ createdAt: Date;
2113
1173
  metadata: unknown;
1174
+ projectIds: string[] | null;
2114
1175
  title: string | null;
2115
- projectId: string | null;
2116
- threadType: "main" | "branch";
1176
+ status: ChatThreadStatus;
1177
+ threadType: ChatThreadType;
2117
1178
  parentThreadId: string | null;
2118
1179
  branchedFromMessageId: string | null;
2119
1180
  branchPurpose: string | null;
2120
1181
  agentId: string;
2121
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1182
+ agentType: ChatThreadAgentType;
2122
1183
  agentConfig: unknown;
2123
1184
  contextSummary: string | null;
2124
1185
  mergedAt: Date | null;
@@ -2137,13 +1198,62 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2137
1198
  messages: {
2138
1199
  userId: string;
2139
1200
  id: string;
2140
- metadata: any;
2141
1201
  timestamp: Date;
2142
- content: string;
2143
- role: "user" | "system" | "assistant";
1202
+ metadata: {
1203
+ agentState?: {
1204
+ plan: {
1205
+ tool: string;
1206
+ params: Record<string, unknown>;
1207
+ reasoning: string;
1208
+ }[];
1209
+ executionSummaries: {
1210
+ tool: string;
1211
+ status: "error" | "skipped" | "success";
1212
+ result?: unknown;
1213
+ error?: string | undefined;
1214
+ }[];
1215
+ finalResponse: string;
1216
+ intentAnalysis?: {
1217
+ label: string;
1218
+ confidence: number;
1219
+ reasoning?: string | undefined;
1220
+ needsFollowUp?: boolean | undefined;
1221
+ } | undefined;
1222
+ context?: {
1223
+ retrievedNotesCount: number;
1224
+ retrievedFactsCount: number;
1225
+ } | undefined;
1226
+ suggestedActions?: {
1227
+ type: string;
1228
+ description: string;
1229
+ params: Record<string, unknown>;
1230
+ }[] | undefined;
1231
+ model?: string | undefined;
1232
+ tokens?: number | undefined;
1233
+ latency?: number | undefined;
1234
+ } | undefined;
1235
+ suggestedActions?: {
1236
+ type: string;
1237
+ description: string;
1238
+ params: Record<string, unknown>;
1239
+ }[] | undefined;
1240
+ executedAction?: {
1241
+ type: string;
1242
+ result: unknown;
1243
+ } | undefined;
1244
+ attachments?: {
1245
+ type: string;
1246
+ url: string;
1247
+ }[] | undefined;
1248
+ model?: string | undefined;
1249
+ tokens?: number | undefined;
1250
+ latency?: number | undefined;
1251
+ } | null;
2144
1252
  deletedAt: Date | null;
1253
+ content: string;
2145
1254
  threadId: string;
2146
1255
  parentId: string | null;
1256
+ role: "user" | "assistant" | "system";
2147
1257
  previousHash: string | null;
2148
1258
  hash: string;
2149
1259
  }[];
@@ -2162,18 +1272,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2162
1272
  threads: {
2163
1273
  userId: string;
2164
1274
  id: string;
2165
- status: "archived" | "active" | "merged";
2166
- createdAt: Date;
2167
1275
  updatedAt: Date;
1276
+ createdAt: Date;
2168
1277
  metadata: unknown;
1278
+ projectIds: string[] | null;
2169
1279
  title: string | null;
2170
- projectId: string | null;
2171
- threadType: "main" | "branch";
1280
+ status: ChatThreadStatus;
1281
+ threadType: ChatThreadType;
2172
1282
  parentThreadId: string | null;
2173
1283
  branchedFromMessageId: string | null;
2174
1284
  branchPurpose: string | null;
2175
1285
  agentId: string;
2176
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1286
+ agentType: ChatThreadAgentType;
2177
1287
  agentConfig: unknown;
2178
1288
  contextSummary: string | null;
2179
1289
  mergedAt: Date | null;
@@ -2189,18 +1299,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2189
1299
  branches: {
2190
1300
  userId: string;
2191
1301
  id: string;
2192
- status: "archived" | "active" | "merged";
2193
- createdAt: Date;
2194
1302
  updatedAt: Date;
1303
+ createdAt: Date;
2195
1304
  metadata: unknown;
1305
+ projectIds: string[] | null;
2196
1306
  title: string | null;
2197
- projectId: string | null;
2198
- threadType: "main" | "branch";
1307
+ status: ChatThreadStatus;
1308
+ threadType: ChatThreadType;
2199
1309
  parentThreadId: string | null;
2200
1310
  branchedFromMessageId: string | null;
2201
1311
  branchPurpose: string | null;
2202
1312
  agentId: string;
2203
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1313
+ agentType: ChatThreadAgentType;
2204
1314
  agentConfig: unknown;
2205
1315
  contextSummary: string | null;
2206
1316
  mergedAt: Date | null;
@@ -2211,9 +1321,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2211
1321
  mergeBranch: import("@trpc/server").TRPCMutationProcedure<{
2212
1322
  input: {
2213
1323
  branchId: string;
1324
+ summary?: string | undefined;
2214
1325
  };
2215
1326
  output: {
2216
- summary: string;
1327
+ status: string;
1328
+ message: string;
2217
1329
  };
2218
1330
  meta: object;
2219
1331
  }>;
@@ -2227,44 +1339,44 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2227
1339
  thread: {
2228
1340
  userId: string;
2229
1341
  id: string;
2230
- status: "archived" | "active" | "merged";
2231
- createdAt: Date;
2232
1342
  updatedAt: Date;
1343
+ createdAt: Date;
2233
1344
  metadata: unknown;
1345
+ projectIds: string[] | null;
2234
1346
  title: string | null;
2235
- projectId: string | null;
2236
- threadType: "main" | "branch";
1347
+ status: ChatThreadStatus;
1348
+ threadType: ChatThreadType;
2237
1349
  parentThreadId: string | null;
2238
1350
  branchedFromMessageId: string | null;
2239
1351
  branchPurpose: string | null;
2240
1352
  agentId: string;
2241
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1353
+ agentType: ChatThreadAgentType;
2242
1354
  agentConfig: unknown;
2243
1355
  contextSummary: string | null;
2244
1356
  mergedAt: Date | null;
2245
1357
  };
2246
1358
  entities: {
2247
1359
  userId: string;
1360
+ workspaceId: string;
2248
1361
  id: string;
2249
1362
  createdAt: Date;
2250
- workspaceId: string;
2251
1363
  entityId: string;
2252
1364
  threadId: string;
2253
1365
  sourceMessageId: string | null;
2254
- relationshipType: "used_as_context" | "created" | "updated" | "referenced" | "inherited_from_parent";
2255
- conflictStatus: "none" | "pending" | "resolved";
1366
+ relationshipType: ThreadEntityRelationshipType;
1367
+ conflictStatus: ThreadEntityConflictStatus;
2256
1368
  sourceEventId: string | null;
2257
1369
  }[] | undefined;
2258
1370
  documents: {
2259
1371
  userId: string;
1372
+ workspaceId: string;
2260
1373
  id: string;
2261
1374
  createdAt: Date;
2262
- workspaceId: string;
2263
1375
  documentId: string;
2264
1376
  threadId: string;
2265
1377
  sourceMessageId: string | null;
2266
- relationshipType: "used_as_context" | "created" | "updated" | "referenced" | "inherited_from_parent";
2267
- conflictStatus: "none" | "pending" | "resolved";
1378
+ relationshipType: ThreadDocumentRelationshipType;
1379
+ conflictStatus: ThreadDocumentConflictStatus;
2268
1380
  sourceEventId: string | null;
2269
1381
  }[] | undefined;
2270
1382
  branchTree: any;
@@ -2276,7 +1388,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2276
1388
  threadId: string;
2277
1389
  title?: string | undefined;
2278
1390
  agentId?: string | undefined;
2279
- agentType?: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action" | undefined;
1391
+ agentType?: "code" | "action" | "meta" | "default" | "prompting" | "knowledge-search" | "writing" | undefined;
2280
1392
  agentConfig?: Record<string, unknown> | undefined;
2281
1393
  };
2282
1394
  output: {
@@ -2307,18 +1419,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2307
1419
  flatBranches: {
2308
1420
  userId: string;
2309
1421
  id: string;
2310
- status: "archived" | "active" | "merged";
2311
- createdAt: Date;
2312
1422
  updatedAt: Date;
1423
+ createdAt: Date;
2313
1424
  metadata: unknown;
1425
+ projectIds: string[] | null;
2314
1426
  title: string | null;
2315
- projectId: string | null;
2316
- threadType: "main" | "branch";
1427
+ status: ChatThreadStatus;
1428
+ threadType: ChatThreadType;
2317
1429
  parentThreadId: string | null;
2318
1430
  branchedFromMessageId: string | null;
2319
1431
  branchPurpose: string | null;
2320
1432
  agentId: string;
2321
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1433
+ agentType: ChatThreadAgentType;
2322
1434
  agentConfig: unknown;
2323
1435
  contextSummary: string | null;
2324
1436
  mergedAt: Date | null;
@@ -2326,18 +1438,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2326
1438
  activeBranches: {
2327
1439
  userId: string;
2328
1440
  id: string;
2329
- status: "archived" | "active" | "merged";
2330
- createdAt: Date;
2331
1441
  updatedAt: Date;
1442
+ createdAt: Date;
2332
1443
  metadata: unknown;
1444
+ projectIds: string[] | null;
2333
1445
  title: string | null;
2334
- projectId: string | null;
2335
- threadType: "main" | "branch";
1446
+ status: ChatThreadStatus;
1447
+ threadType: ChatThreadType;
2336
1448
  parentThreadId: string | null;
2337
1449
  branchedFromMessageId: string | null;
2338
1450
  branchPurpose: string | null;
2339
1451
  agentId: string;
2340
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1452
+ agentType: ChatThreadAgentType;
2341
1453
  agentConfig: unknown;
2342
1454
  contextSummary: string | null;
2343
1455
  mergedAt: Date | null;
@@ -2345,18 +1457,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2345
1457
  mergedBranches: {
2346
1458
  userId: string;
2347
1459
  id: string;
2348
- status: "archived" | "active" | "merged";
2349
- createdAt: Date;
2350
1460
  updatedAt: Date;
1461
+ createdAt: Date;
2351
1462
  metadata: unknown;
1463
+ projectIds: string[] | null;
2352
1464
  title: string | null;
2353
- projectId: string | null;
2354
- threadType: "main" | "branch";
1465
+ status: ChatThreadStatus;
1466
+ threadType: ChatThreadType;
2355
1467
  parentThreadId: string | null;
2356
1468
  branchedFromMessageId: string | null;
2357
1469
  branchPurpose: string | null;
2358
1470
  agentId: string;
2359
- agentType: "meta" | "default" | "code" | "prompting" | "knowledge-search" | "writing" | "action";
1471
+ agentType: ChatThreadAgentType;
2360
1472
  agentConfig: unknown;
2361
1473
  contextSummary: string | null;
2362
1474
  mergedAt: Date | null;
@@ -2372,26 +1484,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2372
1484
  output: {
2373
1485
  entities: {
2374
1486
  userId: string;
1487
+ workspaceId: string;
2375
1488
  id: string;
2376
1489
  createdAt: Date;
2377
- workspaceId: string;
2378
1490
  entityId: string;
2379
1491
  threadId: string;
2380
1492
  sourceMessageId: string | null;
2381
- relationshipType: "used_as_context" | "created" | "updated" | "referenced" | "inherited_from_parent";
2382
- conflictStatus: "none" | "pending" | "resolved";
1493
+ relationshipType: ThreadEntityRelationshipType;
1494
+ conflictStatus: ThreadEntityConflictStatus;
2383
1495
  sourceEventId: string | null;
2384
1496
  }[];
2385
1497
  documents: {
2386
1498
  userId: string;
1499
+ workspaceId: string;
2387
1500
  id: string;
2388
1501
  createdAt: Date;
2389
- workspaceId: string;
2390
1502
  documentId: string;
2391
1503
  threadId: string;
2392
1504
  sourceMessageId: string | null;
2393
- relationshipType: "used_as_context" | "created" | "updated" | "referenced" | "inherited_from_parent";
2394
- conflictStatus: "none" | "pending" | "resolved";
1505
+ relationshipType: ThreadDocumentRelationshipType;
1506
+ conflictStatus: ThreadDocumentConflictStatus;
2395
1507
  sourceEventId: string | null;
2396
1508
  }[];
2397
1509
  };
@@ -2407,24 +1519,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2407
1519
  list: import("@trpc/server").TRPCQueryProcedure<{
2408
1520
  input: {
2409
1521
  workspaceId?: string | undefined;
2410
- targetType?: "entity" | "document" | "view" | "whiteboard" | undefined;
1522
+ targetType?: "entity" | "document" | "whiteboard" | "view" | undefined;
2411
1523
  targetId?: string | undefined;
2412
1524
  status?: "pending" | "validated" | "rejected" | "all" | undefined;
2413
1525
  limit?: number | undefined;
2414
1526
  };
2415
1527
  output: {
2416
1528
  proposals: {
1529
+ workspaceId: string;
2417
1530
  id: string;
2418
- status: string;
2419
- createdAt: Date;
1531
+ data: unknown;
2420
1532
  updatedAt: Date;
2421
- workspaceId: string;
1533
+ createdAt: Date;
1534
+ status: ProposalStatus;
2422
1535
  targetType: string;
2423
1536
  targetId: string;
2424
- request: unknown;
1537
+ proposalType: string;
2425
1538
  reviewedBy: string | null;
2426
1539
  reviewedAt: Date | null;
2427
1540
  rejectionReason: string | null;
1541
+ comments: unknown;
2428
1542
  }[];
2429
1543
  };
2430
1544
  meta: object;
@@ -2451,7 +1565,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2451
1565
  }>;
2452
1566
  submit: import("@trpc/server").TRPCMutationProcedure<{
2453
1567
  input: {
2454
- targetType: "entity" | "relation" | "document" | "workspace" | "view";
1568
+ targetType: "entity" | "relation" | "document" | "view" | "workspace";
2455
1569
  changeType: "create" | "update" | "delete";
2456
1570
  data: Record<string, any>;
2457
1571
  targetId?: string | undefined;
@@ -2543,7 +1657,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2543
1657
  data: Record<string, unknown>;
2544
1658
  userId: string;
2545
1659
  subjectId?: string | undefined;
2546
- source?: "system" | "api" | "automation" | "sync" | "migration" | undefined;
1660
+ source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
2547
1661
  correlationId?: string | undefined;
2548
1662
  causationId?: string | undefined;
2549
1663
  };
@@ -2737,6 +1851,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2737
1851
  output: any[];
2738
1852
  meta: object;
2739
1853
  }>;
1854
+ getServiceHealth: import("@trpc/server").TRPCQueryProcedure<{
1855
+ input: void;
1856
+ output: {
1857
+ name: string;
1858
+ status: "healthy" | "unhealthy" | "degraded";
1859
+ message?: string;
1860
+ latency?: number;
1861
+ }[];
1862
+ meta: object;
1863
+ }>;
2740
1864
  }>>;
2741
1865
  hub: import("@trpc/server").TRPCBuiltRouter<{
2742
1866
  ctx: Context;
@@ -2747,7 +1871,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2747
1871
  generateAccessToken: import("@trpc/server").TRPCMutationProcedure<{
2748
1872
  input: {
2749
1873
  requestId: string;
2750
- scope: ("entities" | "notes" | "relations" | "projects" | "preferences" | "calendar" | "tasks" | "conversations" | "knowledge_facts")[];
1874
+ scope: ("entities" | "relations" | "projects" | "preferences" | "calendar" | "notes" | "tasks" | "conversations" | "knowledge_facts")[];
2751
1875
  expiresIn?: number | undefined;
2752
1876
  };
2753
1877
  output: {
@@ -2761,7 +1885,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2761
1885
  input: {
2762
1886
  [x: string]: unknown;
2763
1887
  token: string;
2764
- scope: ("entities" | "notes" | "relations" | "projects" | "preferences" | "calendar" | "tasks" | "conversations" | "knowledge_facts")[];
1888
+ scope: ("entities" | "relations" | "projects" | "preferences" | "calendar" | "notes" | "tasks" | "conversations" | "knowledge_facts")[];
2765
1889
  filters?: {
2766
1890
  dateRange?: {
2767
1891
  start: string;
@@ -2778,7 +1902,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2778
1902
  data: Record<string, unknown>;
2779
1903
  metadata: {
2780
1904
  retrievedAt: string;
2781
- scope: ("entities" | "notes" | "relations" | "projects" | "preferences" | "calendar" | "tasks" | "conversations" | "knowledge_facts")[];
1905
+ scope: ("entities" | "relations" | "projects" | "preferences" | "calendar" | "notes" | "tasks" | "conversations" | "knowledge_facts")[];
2782
1906
  recordCount: number;
2783
1907
  };
2784
1908
  };
@@ -2944,9 +2068,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2944
2068
  id: string;
2945
2069
  createdAt: Date;
2946
2070
  url: string;
2947
- active: boolean;
2948
2071
  eventTypes: string[];
2949
2072
  secret: string;
2073
+ active: boolean;
2950
2074
  retryConfig: unknown;
2951
2075
  lastTriggeredAt: Date | null;
2952
2076
  };
@@ -2962,8 +2086,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2962
2086
  id: string;
2963
2087
  createdAt: Date;
2964
2088
  url: string;
2965
- active: boolean;
2966
2089
  eventTypes: string[];
2090
+ active: boolean;
2967
2091
  retryConfig: unknown;
2968
2092
  lastTriggeredAt: Date | null;
2969
2093
  }[];
@@ -3008,7 +2132,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3008
2132
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3009
2133
  upload: import("@trpc/server").TRPCMutationProcedure<{
3010
2134
  input: {
3011
- type: "text" | "code" | "markdown" | "pdf" | "docx";
2135
+ type: "code" | "text" | "markdown" | "pdf" | "docx";
3012
2136
  content: string;
3013
2137
  title?: string | undefined;
3014
2138
  language?: string | undefined;
@@ -3035,15 +2159,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3035
2159
  title: string;
3036
2160
  type: string;
3037
2161
  language: string | null;
3038
- storageUrl: string;
3039
- storageKey: string;
2162
+ storageUrl: string | null;
2163
+ storageKey: string | null;
3040
2164
  size: number;
3041
2165
  mimeType: string | null;
3042
2166
  currentVersion: number;
3043
2167
  lastSavedVersion: number;
3044
2168
  workingState: string | null;
3045
2169
  workingStateUpdatedAt: Date | null;
3046
- projectId: string | null;
3047
2170
  metadata: unknown;
3048
2171
  createdAt: Date;
3049
2172
  updatedAt: Date;
@@ -3125,15 +2248,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3125
2248
  };
3126
2249
  output: {
3127
2250
  id: string;
3128
- version: number;
3129
2251
  createdAt: Date;
3130
- type: string;
3131
- message: string | null;
3132
- content: string;
3133
2252
  documentId: string;
3134
- delta: unknown;
2253
+ version: number;
2254
+ content: string;
3135
2255
  author: string;
3136
2256
  authorId: string;
2257
+ message: string | null;
3137
2258
  };
3138
2259
  meta: object;
3139
2260
  }>;
@@ -3150,7 +2271,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3150
2271
  list: import("@trpc/server").TRPCQueryProcedure<{
3151
2272
  input: {
3152
2273
  projectId?: string | undefined;
3153
- type?: "text" | "code" | "markdown" | "pdf" | "docx" | undefined;
2274
+ type?: "code" | "text" | "markdown" | "pdf" | "docx" | undefined;
3154
2275
  limit?: number | undefined;
3155
2276
  };
3156
2277
  output: {
@@ -3162,15 +2283,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3162
2283
  title: string;
3163
2284
  type: string;
3164
2285
  language: string | null;
3165
- storageUrl: string;
3166
- storageKey: string;
2286
+ storageUrl: string | null;
2287
+ storageKey: string | null;
3167
2288
  size: number;
3168
2289
  mimeType: string | null;
3169
2290
  currentVersion: number;
3170
2291
  lastSavedVersion: number;
3171
2292
  workingState: string | null;
3172
2293
  workingStateUpdatedAt: Date | null;
3173
- projectId: string | null;
3174
2294
  metadata: unknown;
3175
2295
  createdAt: Date;
3176
2296
  updatedAt: Date;
@@ -3372,24 +2492,24 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3372
2492
  };
3373
2493
  output: {
3374
2494
  userId: string;
2495
+ workspaceId: string;
3375
2496
  id: string;
3376
2497
  data: unknown;
3377
- status: string | null;
3378
- createdAt: Date;
3379
2498
  updatedAt: Date;
3380
- priority: string | null;
3381
- type: string;
2499
+ tags: string[] | null;
2500
+ createdAt: Date;
3382
2501
  timestamp: Date;
2502
+ type: string;
2503
+ projectIds: string[] | null;
3383
2504
  title: string;
3384
- workspaceId: string;
3385
2505
  preview: string | null;
3386
- projectIds: string[] | null;
3387
- tags: string[] | null;
2506
+ status: string | null;
3388
2507
  provider: string;
3389
2508
  account: string;
3390
2509
  externalId: string;
3391
2510
  deepLink: string | null;
3392
2511
  snoozedUntil: Date | null;
2512
+ priority: string | null;
3393
2513
  processedAt: Date | null;
3394
2514
  }[];
3395
2515
  meta: object;
@@ -3448,12 +2568,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3448
2568
  output: {
3449
2569
  name: string;
3450
2570
  id: string;
3451
- status: string;
3452
- version: string | null;
3453
- createdAt: Date;
3454
2571
  updatedAt: Date;
3455
- description: string | null;
2572
+ createdAt: Date;
3456
2573
  metadata: Record<string, unknown> | null;
2574
+ version: string | null;
2575
+ status: string;
2576
+ description: string | null;
3457
2577
  capabilities: string[];
3458
2578
  serviceId: string;
3459
2579
  webhookUrl: string;
@@ -3491,217 +2611,110 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3491
2611
  output: {
3492
2612
  name: string;
3493
2613
  id: string;
3494
- status: string;
3495
- version: string | null;
3496
- createdAt: Date;
3497
2614
  updatedAt: Date;
3498
- description: string | null;
2615
+ createdAt: Date;
3499
2616
  metadata: Record<string, unknown> | null;
3500
- capabilities: string[];
3501
- serviceId: string;
3502
- webhookUrl: string;
3503
- pricing: string | null;
3504
- enabled: boolean;
3505
- lastHealthCheck: Date | null;
3506
- };
3507
- meta: object;
3508
- }>;
3509
- update: import("@trpc/server").TRPCMutationProcedure<{
3510
- input: {
3511
- id: string;
3512
- name?: string | undefined;
3513
- description?: string | undefined;
3514
- version?: string | undefined;
3515
- webhookUrl?: string | undefined;
3516
- capabilities?: string[] | undefined;
3517
- status?: "active" | "inactive" | "suspended" | undefined;
3518
- enabled?: boolean | undefined;
3519
- metadata?: Record<string, unknown> | undefined;
3520
- };
3521
- output: {
3522
- id: string;
3523
- serviceId: string;
3524
- name: string;
3525
- description: string | null;
3526
2617
  version: string | null;
3527
- webhookUrl: string;
3528
- apiKey: string;
3529
- capabilities: string[];
3530
- pricing: string | null;
3531
2618
  status: string;
3532
- enabled: boolean;
3533
- metadata: Record<string, unknown> | null;
3534
- createdAt: Date;
3535
- updatedAt: Date;
3536
- lastHealthCheck: Date | null;
3537
- };
3538
- meta: object;
3539
- }>;
3540
- unregister: import("@trpc/server").TRPCMutationProcedure<{
3541
- input: {
3542
- id: string;
3543
- };
3544
- output: {
3545
- success: boolean;
3546
- };
3547
- meta: object;
3548
- }>;
3549
- findByCapability: import("@trpc/server").TRPCQueryProcedure<{
3550
- input: {
3551
- capability: string;
3552
- };
3553
- output: {
3554
- id: string;
3555
- serviceId: string;
3556
- name: string;
2619
+ description: string | null;
3557
2620
  capabilities: string[];
2621
+ serviceId: string;
3558
2622
  webhookUrl: string;
3559
- }[];
3560
- meta: object;
3561
- }>;
3562
- }>>;
3563
- capabilities: import("@trpc/server").TRPCBuiltRouter<{
3564
- ctx: Context;
3565
- meta: object;
3566
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3567
- transformer: true;
3568
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3569
- list: import("@trpc/server").TRPCQueryProcedure<{
3570
- input: void;
3571
- output: {
3572
- core: {
3573
- version: string;
3574
- features: string[];
3575
- };
3576
- plugins: {
3577
- name: string;
3578
- version: string;
3579
- enabled: boolean;
3580
- }[];
3581
- intelligenceServices: {
3582
- id: string;
3583
- serviceId: string;
3584
- name: string;
3585
- capabilities: string[];
3586
- pricing: string;
3587
- version: string | null;
3588
- }[];
3589
- };
3590
- meta: object;
3591
- }>;
3592
- hasCapability: import("@trpc/server").TRPCQueryProcedure<{
3593
- input: {
3594
- capability: string;
3595
- };
3596
- output: {
3597
- available: boolean;
3598
- };
3599
- meta: object;
3600
- }>;
3601
- }>>;
3602
- tags: import("@trpc/server").TRPCBuiltRouter<{
3603
- ctx: Context;
3604
- meta: object;
3605
- errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3606
- transformer: true;
3607
- }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3608
- list: import("@trpc/server").TRPCQueryProcedure<{
3609
- input: void;
3610
- output: {
3611
- tags: {
3612
- name: string;
3613
- userId: string;
3614
- id: string;
3615
- createdAt: Date;
3616
- workspaceId: string;
3617
- projectIds: string[] | null;
3618
- color: string | null;
3619
- }[];
3620
- };
3621
- meta: object;
3622
- }>;
3623
- create: import("@trpc/server").TRPCMutationProcedure<{
3624
- input: {
3625
- name: string;
3626
- color?: string | undefined;
3627
- };
3628
- output: {
3629
- tag: {
3630
- id: `${string}-${string}-${string}-${string}-${string}`;
3631
- userId: string;
3632
- name: string;
3633
- color: string;
3634
- createdAt: Date;
3635
- updatedAt: Date;
3636
- };
3637
- };
3638
- meta: object;
3639
- }>;
3640
- update: import("@trpc/server").TRPCMutationProcedure<{
3641
- input: {
3642
- id: string;
3643
- name?: string | undefined;
3644
- color?: string | undefined;
3645
- };
3646
- output: {
3647
- tag: {
3648
- name: string;
3649
- color: string | null;
3650
- updatedAt: Date;
3651
- userId: string;
3652
- id: string;
3653
- createdAt: Date;
3654
- workspaceId: string;
3655
- projectIds: string[] | null;
3656
- };
2623
+ pricing: string | null;
2624
+ enabled: boolean;
2625
+ lastHealthCheck: Date | null;
3657
2626
  };
3658
2627
  meta: object;
3659
2628
  }>;
3660
- delete: import("@trpc/server").TRPCMutationProcedure<{
2629
+ update: import("@trpc/server").TRPCMutationProcedure<{
3661
2630
  input: {
3662
2631
  id: string;
2632
+ name?: string | undefined;
2633
+ description?: string | undefined;
2634
+ version?: string | undefined;
2635
+ webhookUrl?: string | undefined;
2636
+ capabilities?: string[] | undefined;
2637
+ status?: "active" | "inactive" | "suspended" | undefined;
2638
+ enabled?: boolean | undefined;
2639
+ metadata?: Record<string, unknown> | undefined;
3663
2640
  };
3664
2641
  output: {
3665
- success: boolean;
2642
+ id: string;
2643
+ serviceId: string;
2644
+ name: string;
2645
+ description: string | null;
2646
+ version: string | null;
2647
+ webhookUrl: string;
2648
+ apiKey: string;
2649
+ capabilities: string[];
2650
+ pricing: string | null;
2651
+ status: string;
2652
+ enabled: boolean;
2653
+ metadata: Record<string, unknown> | null;
2654
+ createdAt: Date;
2655
+ updatedAt: Date;
2656
+ lastHealthCheck: Date | null;
3666
2657
  };
3667
2658
  meta: object;
3668
2659
  }>;
3669
- attach: import("@trpc/server").TRPCMutationProcedure<{
2660
+ unregister: import("@trpc/server").TRPCMutationProcedure<{
3670
2661
  input: {
3671
- tagId: string;
3672
- entityId: string;
2662
+ id: string;
3673
2663
  };
3674
2664
  output: {
3675
- status: string;
2665
+ success: boolean;
3676
2666
  };
3677
2667
  meta: object;
3678
2668
  }>;
3679
- detach: import("@trpc/server").TRPCMutationProcedure<{
2669
+ findByCapability: import("@trpc/server").TRPCQueryProcedure<{
3680
2670
  input: {
3681
- tagId: string;
3682
- entityId: string;
2671
+ capability: string;
3683
2672
  };
3684
2673
  output: {
3685
- status: string;
3686
- };
2674
+ id: string;
2675
+ serviceId: string;
2676
+ name: string;
2677
+ capabilities: string[];
2678
+ webhookUrl: string;
2679
+ }[];
3687
2680
  meta: object;
3688
2681
  }>;
3689
- getForEntity: import("@trpc/server").TRPCQueryProcedure<{
3690
- input: {
3691
- entityId: string;
3692
- };
2682
+ }>>;
2683
+ capabilities: import("@trpc/server").TRPCBuiltRouter<{
2684
+ ctx: Context;
2685
+ meta: object;
2686
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2687
+ transformer: true;
2688
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2689
+ list: import("@trpc/server").TRPCQueryProcedure<{
2690
+ input: void;
3693
2691
  output: {
3694
- tags: any[];
2692
+ core: {
2693
+ version: string;
2694
+ features: string[];
2695
+ };
2696
+ plugins: {
2697
+ name: string;
2698
+ version: string;
2699
+ enabled: boolean;
2700
+ }[];
2701
+ intelligenceServices: {
2702
+ id: string;
2703
+ serviceId: string;
2704
+ name: string;
2705
+ capabilities: string[];
2706
+ pricing: string;
2707
+ version: string | null;
2708
+ }[];
3695
2709
  };
3696
2710
  meta: object;
3697
2711
  }>;
3698
- getEntitiesWithTag: import("@trpc/server").TRPCQueryProcedure<{
2712
+ hasCapability: import("@trpc/server").TRPCQueryProcedure<{
3699
2713
  input: {
3700
- tagId: string;
3701
- limit?: number | undefined;
2714
+ capability: string;
3702
2715
  };
3703
2716
  output: {
3704
- entities: any[];
2717
+ available: boolean;
3705
2718
  };
3706
2719
  meta: object;
3707
2720
  }>;
@@ -3715,23 +2728,24 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3715
2728
  entities: import("@trpc/server").TRPCQueryProcedure<{
3716
2729
  input: {
3717
2730
  query: string;
3718
- type?: "document" | "project" | "task" | "note" | undefined;
2731
+ type?: "task" | "document" | "note" | "project" | undefined;
3719
2732
  limit?: number | undefined;
3720
2733
  };
3721
2734
  output: {
3722
2735
  entities: {
3723
2736
  userId: string;
2737
+ workspaceId: string;
3724
2738
  id: string;
3725
- version: number;
3726
- createdAt: Date;
3727
2739
  updatedAt: Date;
2740
+ createdAt: Date;
3728
2741
  type: string;
3729
- metadata: unknown;
2742
+ projectIds: string[] | null;
2743
+ profileId: string | null;
3730
2744
  title: string | null;
3731
- workspaceId: string;
3732
- documentId: string | null;
3733
2745
  preview: string | null;
3734
- projectIds: string[] | null;
2746
+ documentId: string | null;
2747
+ properties: unknown;
2748
+ version: number;
3735
2749
  deletedAt: Date | null;
3736
2750
  }[];
3737
2751
  };
@@ -3740,7 +2754,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3740
2754
  semantic: import("@trpc/server").TRPCQueryProcedure<{
3741
2755
  input: {
3742
2756
  query: string;
3743
- type?: "document" | "project" | "task" | "note" | undefined;
2757
+ type?: "task" | "document" | "note" | "project" | undefined;
3744
2758
  limit?: number | undefined;
3745
2759
  threshold?: number | undefined;
3746
2760
  };
@@ -3758,17 +2772,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3758
2772
  output: {
3759
2773
  entities: {
3760
2774
  userId: string;
2775
+ workspaceId: string;
3761
2776
  id: string;
3762
- version: number;
3763
- createdAt: Date;
3764
2777
  updatedAt: Date;
2778
+ createdAt: Date;
3765
2779
  type: string;
3766
- metadata: unknown;
2780
+ projectIds: string[] | null;
2781
+ profileId: string | null;
3767
2782
  title: string | null;
3768
- workspaceId: string;
3769
- documentId: string | null;
3770
2783
  preview: string | null;
3771
- projectIds: string[] | null;
2784
+ documentId: string | null;
2785
+ properties: unknown;
2786
+ version: number;
3772
2787
  deletedAt: Date | null;
3773
2788
  }[];
3774
2789
  };
@@ -3801,10 +2816,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3801
2816
  output: {
3802
2817
  relations: {
3803
2818
  userId: string;
2819
+ workspaceId: string;
3804
2820
  id: string;
3805
2821
  createdAt: Date;
3806
2822
  type: string;
3807
- workspaceId: string;
3808
2823
  projectIds: string[] | null;
3809
2824
  sourceEntityId: string;
3810
2825
  targetEntityId: string;
@@ -3822,17 +2837,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3822
2837
  output: {
3823
2838
  entities: {
3824
2839
  userId: string;
2840
+ workspaceId: string;
3825
2841
  id: string;
3826
- version: number;
3827
- createdAt: Date;
3828
2842
  updatedAt: Date;
2843
+ createdAt: Date;
3829
2844
  type: string;
3830
- metadata: unknown;
2845
+ projectIds: string[] | null;
2846
+ profileId: string | null;
3831
2847
  title: string | null;
3832
- workspaceId: string;
3833
- documentId: string | null;
3834
2848
  preview: string | null;
3835
- projectIds: string[] | null;
2849
+ documentId: string | null;
2850
+ properties: unknown;
2851
+ version: number;
3836
2852
  deletedAt: Date | null;
3837
2853
  }[];
3838
2854
  };
@@ -3891,17 +2907,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3891
2907
  output: {
3892
2908
  entity: {
3893
2909
  userId: string;
2910
+ workspaceId: string;
3894
2911
  id: string;
3895
- version: number;
3896
- createdAt: Date;
3897
2912
  updatedAt: Date;
2913
+ createdAt: Date;
3898
2914
  type: string;
3899
- metadata: unknown;
2915
+ projectIds: string[] | null;
2916
+ profileId: string | null;
3900
2917
  title: string | null;
3901
- workspaceId: string;
3902
- documentId: string | null;
3903
2918
  preview: string | null;
3904
- projectIds: string[] | null;
2919
+ documentId: string | null;
2920
+ properties: unknown;
2921
+ version: number;
3905
2922
  deletedAt: Date | null;
3906
2923
  };
3907
2924
  relations: never[];
@@ -3910,25 +2927,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3910
2927
  } | {
3911
2928
  entity: {
3912
2929
  userId: string;
2930
+ workspaceId: string;
3913
2931
  id: string;
3914
- version: number;
3915
- createdAt: Date;
3916
2932
  updatedAt: Date;
2933
+ createdAt: Date;
3917
2934
  type: string;
3918
- metadata: unknown;
2935
+ projectIds: string[] | null;
2936
+ profileId: string | null;
3919
2937
  title: string | null;
3920
- workspaceId: string;
3921
- documentId: string | null;
3922
2938
  preview: string | null;
3923
- projectIds: string[] | null;
2939
+ documentId: string | null;
2940
+ properties: unknown;
2941
+ version: number;
3924
2942
  deletedAt: Date | null;
3925
2943
  };
3926
2944
  relations: {
3927
2945
  userId: string;
2946
+ workspaceId: string;
3928
2947
  id: string;
3929
2948
  createdAt: Date;
3930
2949
  type: string;
3931
- workspaceId: string;
3932
2950
  projectIds: string[] | null;
3933
2951
  sourceEntityId: string;
3934
2952
  targetEntityId: string;
@@ -3952,25 +2970,26 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3952
2970
  output: {
3953
2971
  entities: {
3954
2972
  userId: string;
2973
+ workspaceId: string;
3955
2974
  id: string;
3956
- version: number;
3957
- createdAt: Date;
3958
2975
  updatedAt: Date;
2976
+ createdAt: Date;
3959
2977
  type: string;
3960
- metadata: unknown;
2978
+ projectIds: string[] | null;
2979
+ profileId: string | null;
3961
2980
  title: string | null;
3962
- workspaceId: string;
3963
- documentId: string | null;
3964
2981
  preview: string | null;
3965
- projectIds: string[] | null;
2982
+ documentId: string | null;
2983
+ properties: unknown;
2984
+ version: number;
3966
2985
  deletedAt: Date | null;
3967
2986
  }[];
3968
2987
  relations: {
3969
2988
  userId: string;
2989
+ workspaceId: string;
3970
2990
  id: string;
3971
2991
  createdAt: Date;
3972
2992
  type: string;
3973
- workspaceId: string;
3974
2993
  projectIds: string[] | null;
3975
2994
  sourceEntityId: string;
3976
2995
  targetEntityId: string;
@@ -4034,12 +3053,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4034
3053
  joinedAt: Date;
4035
3054
  name: string;
4036
3055
  id: string;
4037
- createdAt: Date;
4038
3056
  updatedAt: Date;
4039
- description: string | null;
3057
+ createdAt: Date;
4040
3058
  type: string;
4041
- ownerId: string;
3059
+ description: string | null;
4042
3060
  settings: WorkspaceSettings;
3061
+ ownerId: string;
4043
3062
  subscriptionTier: string | null;
4044
3063
  subscriptionStatus: string | null;
4045
3064
  stripeCustomerId: string | null;
@@ -4054,12 +3073,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4054
3073
  role: string;
4055
3074
  name: string;
4056
3075
  id: string;
4057
- createdAt: Date;
4058
3076
  updatedAt: Date;
4059
- description: string | null;
3077
+ createdAt: Date;
4060
3078
  type: string;
4061
- ownerId: string;
3079
+ description: string | null;
4062
3080
  settings: WorkspaceSettings;
3081
+ ownerId: string;
4063
3082
  subscriptionTier: string | null;
4064
3083
  subscriptionStatus: string | null;
4065
3084
  stripeCustomerId: string | null;
@@ -4107,9 +3126,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4107
3126
  };
4108
3127
  output: {
4109
3128
  userId: string;
3129
+ workspaceId: string;
4110
3130
  id: string;
4111
3131
  role: string;
4112
- workspaceId: string;
4113
3132
  joinedAt: Date;
4114
3133
  invitedBy: string | null;
4115
3134
  }[];
@@ -4146,10 +3165,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4146
3165
  };
4147
3166
  output: {
4148
3167
  email: string;
3168
+ workspaceId: string;
4149
3169
  id: string;
4150
3170
  createdAt: Date;
4151
3171
  role: string;
4152
- workspaceId: string;
4153
3172
  expiresAt: Date;
4154
3173
  invitedBy: string;
4155
3174
  token: string;
@@ -4162,10 +3181,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4162
3181
  };
4163
3182
  output: {
4164
3183
  email: string;
3184
+ workspaceId: string;
4165
3185
  id: string;
4166
3186
  createdAt: Date;
4167
3187
  role: string;
4168
- workspaceId: string;
4169
3188
  expiresAt: Date;
4170
3189
  invitedBy: string;
4171
3190
  token: string;
@@ -4202,9 +3221,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4202
3221
  create: import("@trpc/server").TRPCMutationProcedure<{
4203
3222
  input: {
4204
3223
  name: string;
4205
- type: "list" | "calendar" | "table" | "whiteboard" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | "graph";
3224
+ type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap";
4206
3225
  workspaceId?: string | undefined;
4207
3226
  description?: string | undefined;
3227
+ scopeProfileIds?: string[] | undefined;
3228
+ scopeMode?: "explicit" | "observed" | undefined;
3229
+ query?: {
3230
+ filters?: any[] | undefined;
3231
+ sorts?: any[] | undefined;
3232
+ search?: string | undefined;
3233
+ limit?: number | undefined;
3234
+ offset?: number | undefined;
3235
+ groupBy?: string | undefined;
3236
+ } | undefined;
3237
+ config?: Record<string, any> | undefined;
4208
3238
  initialContent?: any;
4209
3239
  };
4210
3240
  output: {
@@ -4212,7 +3242,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4212
3242
  id: `${string}-${string}-${string}-${string}-${string}`;
4213
3243
  workspaceId: string | undefined;
4214
3244
  userId: string;
4215
- type: "list" | "calendar" | "table" | "whiteboard" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | "graph";
3245
+ type: "calendar" | "list" | "table" | "whiteboard" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap";
4216
3246
  category: ViewCategory;
4217
3247
  name: string;
4218
3248
  description: string | undefined;
@@ -4232,23 +3262,33 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4232
3262
  list: import("@trpc/server").TRPCQueryProcedure<{
4233
3263
  input: {
4234
3264
  workspaceId?: string | undefined;
4235
- type?: "list" | "calendar" | "table" | "whiteboard" | "all" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | "graph" | undefined;
3265
+ type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
4236
3266
  };
4237
3267
  output: {
4238
3268
  name: string;
4239
3269
  userId: string;
3270
+ workspaceId: string | null;
4240
3271
  id: string;
4241
- createdAt: Date;
3272
+ query: unknown;
3273
+ columns: unknown;
4242
3274
  updatedAt: Date;
4243
- description: string | null;
3275
+ createdAt: Date;
4244
3276
  type: string;
4245
3277
  metadata: unknown;
4246
- workspaceId: string | null;
4247
- documentId: string | null;
4248
3278
  projectIds: string[] | null;
4249
- thumbnailUrl: string | null;
3279
+ documentId: string | null;
3280
+ description: string | null;
4250
3281
  category: string;
3282
+ scopeProfileIds: string[] | null;
3283
+ scopeMode: string | null;
3284
+ config: unknown;
3285
+ filter: unknown;
3286
+ sort: unknown;
3287
+ layoutConfig: unknown;
4251
3288
  yjsRoomId: string | null;
3289
+ thumbnailUrl: string | null;
3290
+ schemaSnapshot: unknown;
3291
+ snapshotUpdatedAt: Date | null;
4252
3292
  }[];
4253
3293
  meta: object;
4254
3294
  }>;
@@ -4260,18 +3300,28 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4260
3300
  view: {
4261
3301
  name: string;
4262
3302
  userId: string;
3303
+ workspaceId: string | null;
4263
3304
  id: string;
4264
- createdAt: Date;
3305
+ query: unknown;
3306
+ columns: unknown;
4265
3307
  updatedAt: Date;
4266
- description: string | null;
3308
+ createdAt: Date;
4267
3309
  type: string;
4268
3310
  metadata: unknown;
4269
- workspaceId: string | null;
4270
- documentId: string | null;
4271
3311
  projectIds: string[] | null;
4272
- thumbnailUrl: string | null;
3312
+ documentId: string | null;
3313
+ description: string | null;
4273
3314
  category: string;
3315
+ scopeProfileIds: string[] | null;
3316
+ scopeMode: string | null;
3317
+ config: unknown;
3318
+ filter: unknown;
3319
+ sort: unknown;
3320
+ layoutConfig: unknown;
4274
3321
  yjsRoomId: string | null;
3322
+ thumbnailUrl: string | null;
3323
+ schemaSnapshot: unknown;
3324
+ snapshotUpdatedAt: Date | null;
4275
3325
  };
4276
3326
  content: {};
4277
3327
  };
@@ -4285,72 +3335,75 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4285
3335
  view: {
4286
3336
  name: string;
4287
3337
  userId: string;
3338
+ workspaceId: string | null;
4288
3339
  id: string;
4289
- createdAt: Date;
3340
+ query: unknown;
3341
+ columns: unknown;
4290
3342
  updatedAt: Date;
4291
- description: string | null;
3343
+ createdAt: Date;
4292
3344
  type: string;
4293
3345
  metadata: unknown;
4294
- workspaceId: string | null;
4295
- documentId: string | null;
4296
3346
  projectIds: string[] | null;
4297
- thumbnailUrl: string | null;
3347
+ documentId: string | null;
3348
+ description: string | null;
4298
3349
  category: string;
3350
+ scopeProfileIds: string[] | null;
3351
+ scopeMode: string | null;
3352
+ config: unknown;
3353
+ filter: unknown;
3354
+ sort: unknown;
3355
+ layoutConfig: unknown;
4299
3356
  yjsRoomId: string | null;
3357
+ thumbnailUrl: string | null;
3358
+ schemaSnapshot: unknown;
3359
+ snapshotUpdatedAt: Date | null;
4300
3360
  };
4301
3361
  content: {};
4302
3362
  entities: never[];
4303
3363
  relations: never[];
3364
+ query?: undefined;
4304
3365
  config?: undefined;
3366
+ columns?: undefined;
4305
3367
  } | {
4306
3368
  view: {
4307
3369
  name: string;
4308
3370
  userId: string;
4309
- id: string;
4310
- createdAt: Date;
4311
- updatedAt: Date;
4312
- description: string | null;
4313
- type: string;
4314
- metadata: unknown;
4315
3371
  workspaceId: string | null;
4316
- documentId: string | null;
4317
- projectIds: string[] | null;
4318
- thumbnailUrl: string | null;
4319
- category: string;
4320
- yjsRoomId: string | null;
4321
- };
4322
- config: StructuredViewConfig | undefined;
4323
- entities: never[];
4324
- relations: never[];
4325
- content?: undefined;
4326
- } | {
4327
- view: {
4328
- name: string;
4329
- userId: string;
4330
3372
  id: string;
4331
- createdAt: Date;
3373
+ query: unknown;
3374
+ columns: unknown;
4332
3375
  updatedAt: Date;
4333
- description: string | null;
3376
+ createdAt: Date;
4334
3377
  type: string;
4335
3378
  metadata: unknown;
4336
- workspaceId: string | null;
4337
- documentId: string | null;
4338
3379
  projectIds: string[] | null;
4339
- thumbnailUrl: string | null;
3380
+ documentId: string | null;
3381
+ description: string | null;
4340
3382
  category: string;
3383
+ scopeProfileIds: string[] | null;
3384
+ scopeMode: string | null;
3385
+ config: unknown;
3386
+ filter: unknown;
3387
+ sort: unknown;
3388
+ layoutConfig: unknown;
4341
3389
  yjsRoomId: string | null;
3390
+ thumbnailUrl: string | null;
3391
+ schemaSnapshot: unknown;
3392
+ snapshotUpdatedAt: Date | null;
4342
3393
  };
4343
- config: StructuredViewConfig;
3394
+ query: EntityQuery;
3395
+ config: {};
4344
3396
  entities: {
4345
3397
  id: string;
4346
3398
  userId: string;
4347
3399
  workspaceId: string;
4348
3400
  projectIds: string[] | null;
3401
+ profileId: string | null;
4349
3402
  type: string;
4350
3403
  title: string | null;
4351
3404
  preview: string | null;
4352
3405
  documentId: string | null;
4353
- metadata: unknown;
3406
+ properties: unknown;
4354
3407
  version: number;
4355
3408
  createdAt: Date;
4356
3409
  updatedAt: Date;
@@ -4366,6 +3419,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4366
3419
  type: string;
4367
3420
  createdAt: Date;
4368
3421
  }[];
3422
+ columns: ViewColumn[];
4369
3423
  content?: undefined;
4370
3424
  };
4371
3425
  meta: object;
@@ -4416,6 +3470,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4416
3470
  };
4417
3471
  meta: object;
4418
3472
  }>;
3473
+ getAvailableColumns: import("@trpc/server").TRPCQueryProcedure<{
3474
+ input: {
3475
+ id: string;
3476
+ };
3477
+ output: {
3478
+ columns: ViewColumn[];
3479
+ };
3480
+ meta: object;
3481
+ }>;
4419
3482
  }>>;
4420
3483
  preferences: import("@trpc/server").TRPCBuiltRouter<{
4421
3484
  ctx: Context;
@@ -4595,11 +3658,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4595
3658
  } | undefined;
4596
3659
  output: {
4597
3660
  name: string;
3661
+ workspaceId: string | null;
4598
3662
  id: string;
4599
- createdAt: Date;
4600
3663
  updatedAt: Date;
3664
+ createdAt: Date;
4601
3665
  description: string | null;
4602
- workspaceId: string | null;
4603
3666
  createdBy: string;
4604
3667
  permissions: unknown;
4605
3668
  filters: unknown;
@@ -4612,11 +3675,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4612
3675
  };
4613
3676
  output: {
4614
3677
  name: string;
3678
+ workspaceId: string | null;
4615
3679
  id: string;
4616
- createdAt: Date;
4617
3680
  updatedAt: Date;
3681
+ createdAt: Date;
4618
3682
  description: string | null;
4619
- workspaceId: string | null;
4620
3683
  createdBy: string;
4621
3684
  permissions: unknown;
4622
3685
  filters: unknown;
@@ -4710,33 +3773,44 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4710
3773
  output: {
4711
3774
  resource: {
4712
3775
  userId: string;
3776
+ workspaceId: string;
4713
3777
  id: string;
4714
- version: number;
4715
- createdAt: Date;
4716
3778
  updatedAt: Date;
3779
+ createdAt: Date;
4717
3780
  type: string;
4718
- metadata: unknown;
3781
+ projectIds: string[] | null;
3782
+ profileId: string | null;
4719
3783
  title: string | null;
4720
- workspaceId: string;
4721
- documentId: string | null;
4722
3784
  preview: string | null;
4723
- projectIds: string[] | null;
3785
+ documentId: string | null;
3786
+ properties: unknown;
3787
+ version: number;
4724
3788
  deletedAt: Date | null;
4725
3789
  } | {
4726
3790
  name: string;
4727
3791
  userId: string;
3792
+ workspaceId: string | null;
4728
3793
  id: string;
4729
- createdAt: Date;
3794
+ query: unknown;
3795
+ columns: unknown;
4730
3796
  updatedAt: Date;
4731
- description: string | null;
3797
+ createdAt: Date;
4732
3798
  type: string;
4733
3799
  metadata: unknown;
4734
- workspaceId: string | null;
4735
- documentId: string | null;
4736
3800
  projectIds: string[] | null;
4737
- thumbnailUrl: string | null;
3801
+ documentId: string | null;
3802
+ description: string | null;
4738
3803
  category: string;
3804
+ scopeProfileIds: string[] | null;
3805
+ scopeMode: string | null;
3806
+ config: unknown;
3807
+ filter: unknown;
3808
+ sort: unknown;
3809
+ layoutConfig: unknown;
4739
3810
  yjsRoomId: string | null;
3811
+ thumbnailUrl: string | null;
3812
+ schemaSnapshot: unknown;
3813
+ snapshotUpdatedAt: Date | null;
4740
3814
  document: never;
4741
3815
  };
4742
3816
  permissions: unknown;
@@ -4752,8 +3826,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4752
3826
  };
4753
3827
  output: {
4754
3828
  id: string;
4755
- createdAt: Date;
4756
3829
  updatedAt: Date;
3830
+ createdAt: Date;
4757
3831
  expiresAt: Date | null;
4758
3832
  createdBy: string;
4759
3833
  permissions: unknown;
@@ -4888,7 +3962,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4888
3962
  fieldMapping: Record<string, {
4889
3963
  slot: string;
4890
3964
  renderer?: {
4891
- type: "number" | "date" | "link" | "text" | "relations" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
3965
+ type: "number" | "date" | "relations" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
4892
3966
  variant?: string | undefined;
4893
3967
  size?: string | undefined;
4894
3968
  format?: string | undefined;
@@ -5002,7 +4076,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5002
4076
  fieldMapping: Record<string, {
5003
4077
  slot: string;
5004
4078
  renderer?: {
5005
- type: "number" | "date" | "link" | "text" | "relations" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
4079
+ type: "number" | "date" | "relations" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
5006
4080
  variant?: string | undefined;
5007
4081
  size?: string | undefined;
5008
4082
  format?: string | undefined;
@@ -5034,12 +4108,314 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5034
4108
  fontFamily?: string | undefined;
5035
4109
  } | undefined;
5036
4110
  } | undefined;
5037
- schema?: Record<string, any> | undefined;
5038
- isDefault?: boolean | undefined;
5039
- isPublic?: boolean | undefined;
4111
+ schema?: Record<string, any> | undefined;
4112
+ isDefault?: boolean | undefined;
4113
+ isPublic?: boolean | undefined;
4114
+ };
4115
+ output: {
4116
+ status: string;
4117
+ };
4118
+ meta: object;
4119
+ }>;
4120
+ delete: import("@trpc/server").TRPCMutationProcedure<{
4121
+ input: {
4122
+ id: string;
4123
+ };
4124
+ output: {
4125
+ status: string;
4126
+ };
4127
+ meta: object;
4128
+ }>;
4129
+ duplicate: import("@trpc/server").TRPCMutationProcedure<{
4130
+ input: {
4131
+ id: string;
4132
+ };
4133
+ output: {
4134
+ name: string;
4135
+ userId: string | null;
4136
+ workspaceId: string | null;
4137
+ id: string;
4138
+ updatedAt: Date;
4139
+ createdAt: Date;
4140
+ projectIds: string[] | null;
4141
+ version: number;
4142
+ entityType: string | null;
4143
+ description: string | null;
4144
+ config: unknown;
4145
+ targetType: string;
4146
+ inboxItemType: string | null;
4147
+ schema: unknown;
4148
+ isDefault: boolean;
4149
+ isPublic: boolean;
4150
+ };
4151
+ meta: object;
4152
+ }>;
4153
+ setDefault: import("@trpc/server").TRPCMutationProcedure<{
4154
+ input: {
4155
+ id: string;
4156
+ };
4157
+ output: {
4158
+ success: boolean;
4159
+ };
4160
+ meta: object;
4161
+ }>;
4162
+ }>>;
4163
+ whiteboards: import("@trpc/server").TRPCBuiltRouter<{
4164
+ ctx: Context;
4165
+ meta: object;
4166
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4167
+ transformer: true;
4168
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4169
+ saveVersion: import("@trpc/server").TRPCMutationProcedure<{
4170
+ input: {
4171
+ viewId: string;
4172
+ message?: string | undefined;
4173
+ };
4174
+ output: {
4175
+ status: string;
4176
+ message: string;
4177
+ };
4178
+ meta: object;
4179
+ }>;
4180
+ listVersions: import("@trpc/server").TRPCQueryProcedure<{
4181
+ input: {
4182
+ viewId: string;
4183
+ limit?: number | undefined;
4184
+ };
4185
+ output: {
4186
+ versions: {
4187
+ id: string;
4188
+ createdAt: Date;
4189
+ documentId: string;
4190
+ version: number;
4191
+ content: string;
4192
+ author: string;
4193
+ authorId: string;
4194
+ message: string | null;
4195
+ }[];
4196
+ };
4197
+ meta: object;
4198
+ }>;
4199
+ restoreVersion: import("@trpc/server").TRPCMutationProcedure<{
4200
+ input: {
4201
+ viewId: string;
4202
+ versionId: string;
4203
+ };
4204
+ output: {
4205
+ status: string;
4206
+ message: string;
4207
+ };
4208
+ meta: object;
4209
+ }>;
4210
+ getVersionPreview: import("@trpc/server").TRPCQueryProcedure<{
4211
+ input: {
4212
+ versionId: string;
4213
+ };
4214
+ output: {
4215
+ version: {
4216
+ id: string;
4217
+ createdAt: Date;
4218
+ documentId: string;
4219
+ version: number;
4220
+ content: string;
4221
+ author: string;
4222
+ authorId: string;
4223
+ message: string | null;
4224
+ };
4225
+ metadata: {
4226
+ size: number;
4227
+ message: string | null;
4228
+ author: string;
4229
+ createdAt: Date;
4230
+ };
4231
+ };
4232
+ meta: object;
4233
+ }>;
4234
+ deleteVersion: import("@trpc/server").TRPCMutationProcedure<{
4235
+ input: {
4236
+ viewId: string;
4237
+ versionId: string;
4238
+ };
4239
+ output: {
4240
+ success: boolean;
4241
+ };
4242
+ meta: object;
4243
+ }>;
4244
+ }>>;
4245
+ skills: import("@trpc/server").TRPCBuiltRouter<{
4246
+ ctx: Context;
4247
+ meta: object;
4248
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4249
+ transformer: true;
4250
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4251
+ list: import("@trpc/server").TRPCQueryProcedure<{
4252
+ input: {
4253
+ workspaceId?: string | undefined;
4254
+ status?: "error" | "active" | "inactive" | "all" | undefined;
4255
+ limit?: number | undefined;
4256
+ offset?: number | undefined;
4257
+ } | undefined;
4258
+ output: {
4259
+ skills: any;
4260
+ };
4261
+ meta: object;
4262
+ }>;
4263
+ get: import("@trpc/server").TRPCQueryProcedure<{
4264
+ input: {
4265
+ id: string;
4266
+ };
4267
+ output: {
4268
+ skill: any;
4269
+ };
4270
+ meta: object;
4271
+ }>;
4272
+ create: import("@trpc/server").TRPCMutationProcedure<{
4273
+ input: {
4274
+ name: string;
4275
+ code: string;
4276
+ workspaceId?: string | undefined;
4277
+ description?: string | undefined;
4278
+ parameters?: Record<string, unknown> | undefined;
4279
+ category?: string | undefined;
4280
+ executionMode?: "sync" | "async" | undefined;
4281
+ timeoutSeconds?: number | undefined;
4282
+ };
4283
+ output: {
4284
+ id: `${string}-${string}-${string}-${string}-${string}`;
4285
+ success: boolean;
4286
+ message: string;
4287
+ };
4288
+ meta: object;
4289
+ }>;
4290
+ update: import("@trpc/server").TRPCMutationProcedure<{
4291
+ input: {
4292
+ id: string;
4293
+ name?: string | undefined;
4294
+ description?: string | undefined;
4295
+ code?: string | undefined;
4296
+ parameters?: Record<string, unknown> | undefined;
4297
+ category?: string | undefined;
4298
+ executionMode?: "sync" | "async" | undefined;
4299
+ timeoutSeconds?: number | undefined;
4300
+ };
4301
+ output: {
4302
+ success: boolean;
4303
+ message: string;
4304
+ };
4305
+ meta: object;
4306
+ }>;
4307
+ delete: import("@trpc/server").TRPCMutationProcedure<{
4308
+ input: {
4309
+ id: string;
4310
+ };
4311
+ output: {
4312
+ success: boolean;
4313
+ message: string;
4314
+ };
4315
+ meta: object;
4316
+ }>;
4317
+ }>>;
4318
+ backgroundTasks: import("@trpc/server").TRPCBuiltRouter<{
4319
+ ctx: Context;
4320
+ meta: object;
4321
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4322
+ transformer: true;
4323
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4324
+ list: import("@trpc/server").TRPCQueryProcedure<{
4325
+ input: {
4326
+ workspaceId?: string | undefined;
4327
+ status?: "error" | "active" | "paused" | "all" | undefined;
4328
+ type?: "cron" | "event" | "interval" | undefined;
4329
+ limit?: number | undefined;
4330
+ offset?: number | undefined;
4331
+ } | undefined;
4332
+ output: {
4333
+ tasks: any;
4334
+ };
4335
+ meta: object;
4336
+ }>;
4337
+ get: import("@trpc/server").TRPCQueryProcedure<{
4338
+ input: {
4339
+ id: string;
4340
+ };
4341
+ output: {
4342
+ task: any;
4343
+ };
4344
+ meta: object;
4345
+ }>;
4346
+ create: import("@trpc/server").TRPCMutationProcedure<{
4347
+ input: {
4348
+ name: string;
4349
+ type: "cron" | "event" | "interval";
4350
+ action: string;
4351
+ workspaceId?: string | undefined;
4352
+ description?: string | undefined;
4353
+ schedule?: string | undefined;
4354
+ context?: Record<string, unknown> | undefined;
4355
+ };
4356
+ output: {
4357
+ id: `${string}-${string}-${string}-${string}-${string}`;
4358
+ success: boolean;
4359
+ message: string;
4360
+ };
4361
+ meta: object;
4362
+ }>;
4363
+ update: import("@trpc/server").TRPCMutationProcedure<{
4364
+ input: {
4365
+ id: string;
4366
+ name?: string | undefined;
4367
+ description?: string | undefined;
4368
+ schedule?: string | undefined;
4369
+ action?: string | undefined;
4370
+ context?: Record<string, unknown> | undefined;
4371
+ status?: "error" | "active" | "paused" | undefined;
4372
+ };
4373
+ output: {
4374
+ success: boolean;
4375
+ message: string;
4376
+ };
4377
+ meta: object;
4378
+ }>;
4379
+ delete: import("@trpc/server").TRPCMutationProcedure<{
4380
+ input: {
4381
+ id: string;
4382
+ };
4383
+ output: {
4384
+ success: boolean;
4385
+ message: string;
4386
+ };
4387
+ meta: object;
4388
+ }>;
4389
+ }>>;
4390
+ messageLinks: import("@trpc/server").TRPCBuiltRouter<{
4391
+ ctx: Context;
4392
+ meta: object;
4393
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4394
+ transformer: true;
4395
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4396
+ create: import("@trpc/server").TRPCMutationProcedure<{
4397
+ input: {
4398
+ messageId: string;
4399
+ targetType: MessageLinkTargetType;
4400
+ targetId: string;
4401
+ relationshipType: MessageLinkRelationshipType;
4402
+ position?: {
4403
+ start: number;
4404
+ end: number;
4405
+ } | undefined;
4406
+ metadata?: Record<string, unknown> | undefined;
5040
4407
  };
5041
4408
  output: {
5042
- status: string;
4409
+ userId: string;
4410
+ workspaceId: string;
4411
+ id: string;
4412
+ createdAt: Date;
4413
+ metadata: unknown;
4414
+ relationshipType: string;
4415
+ targetType: string;
4416
+ targetId: string;
4417
+ messageId: string;
4418
+ position: unknown;
5043
4419
  };
5044
4420
  meta: object;
5045
4421
  }>;
@@ -5048,129 +4424,380 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5048
4424
  id: string;
5049
4425
  };
5050
4426
  output: {
5051
- status: string;
4427
+ success: boolean;
5052
4428
  };
5053
4429
  meta: object;
5054
4430
  }>;
5055
- duplicate: import("@trpc/server").TRPCMutationProcedure<{
4431
+ getByMessage: import("@trpc/server").TRPCQueryProcedure<{
5056
4432
  input: {
5057
- id: string;
4433
+ messageId: string;
5058
4434
  };
5059
4435
  output: {
5060
- name: string;
5061
- userId: string | null;
4436
+ userId: string;
4437
+ workspaceId: string;
5062
4438
  id: string;
5063
- version: number;
5064
4439
  createdAt: Date;
5065
- updatedAt: Date;
5066
- schema: unknown;
5067
- description: string | null;
5068
- workspaceId: string | null;
5069
- projectIds: string[] | null;
5070
- entityType: string | null;
4440
+ metadata: unknown;
4441
+ relationshipType: string;
5071
4442
  targetType: string;
5072
- inboxItemType: string | null;
5073
- config: unknown;
5074
- isDefault: boolean;
5075
- isPublic: boolean;
5076
- };
4443
+ targetId: string;
4444
+ messageId: string;
4445
+ position: unknown;
4446
+ }[];
5077
4447
  meta: object;
5078
4448
  }>;
5079
- setDefault: import("@trpc/server").TRPCMutationProcedure<{
4449
+ getByTarget: import("@trpc/server").TRPCQueryProcedure<{
5080
4450
  input: {
4451
+ targetType: MessageLinkTargetType;
4452
+ targetId: string;
4453
+ };
4454
+ output: {
4455
+ userId: string;
4456
+ workspaceId: string;
5081
4457
  id: string;
4458
+ createdAt: Date;
4459
+ metadata: unknown;
4460
+ relationshipType: string;
4461
+ targetType: string;
4462
+ targetId: string;
4463
+ messageId: string;
4464
+ position: unknown;
4465
+ }[];
4466
+ meta: object;
4467
+ }>;
4468
+ getApprovalChain: import("@trpc/server").TRPCQueryProcedure<{
4469
+ input: {
4470
+ proposalId: string;
5082
4471
  };
5083
4472
  output: {
5084
- success: boolean;
4473
+ userId: string;
4474
+ workspaceId: string;
4475
+ id: string;
4476
+ createdAt: Date;
4477
+ metadata: unknown;
4478
+ relationshipType: string;
4479
+ targetType: string;
4480
+ targetId: string;
4481
+ messageId: string;
4482
+ position: unknown;
4483
+ }[];
4484
+ meta: object;
4485
+ }>;
4486
+ query: import("@trpc/server").TRPCQueryProcedure<{
4487
+ input: {
4488
+ messageId?: string | undefined;
4489
+ targetType?: MessageLinkTargetType | undefined;
4490
+ targetId?: string | undefined;
4491
+ relationshipType?: MessageLinkRelationshipType | undefined;
5085
4492
  };
4493
+ output: {
4494
+ userId: string;
4495
+ workspaceId: string;
4496
+ id: string;
4497
+ createdAt: Date;
4498
+ metadata: unknown;
4499
+ relationshipType: string;
4500
+ targetType: string;
4501
+ targetId: string;
4502
+ messageId: string;
4503
+ position: unknown;
4504
+ }[];
5086
4505
  meta: object;
5087
4506
  }>;
5088
4507
  }>>;
5089
- whiteboards: import("@trpc/server").TRPCBuiltRouter<{
4508
+ profiles: import("@trpc/server").TRPCBuiltRouter<{
5090
4509
  ctx: Context;
5091
4510
  meta: object;
5092
4511
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
5093
4512
  transformer: true;
5094
4513
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5095
- saveVersion: import("@trpc/server").TRPCMutationProcedure<{
4514
+ list: import("@trpc/server").TRPCQueryProcedure<{
4515
+ input: void;
4516
+ output: {
4517
+ profiles: {
4518
+ userId: string | null;
4519
+ workspaceId: string | null;
4520
+ id: string;
4521
+ updatedAt: Date;
4522
+ createdAt: Date;
4523
+ version: number;
4524
+ isActive: boolean;
4525
+ scope: ProfileScope;
4526
+ slug: string;
4527
+ uiHints: unknown;
4528
+ displayName: string;
4529
+ parentProfileId: string | null;
4530
+ }[];
4531
+ };
4532
+ meta: object;
4533
+ }>;
4534
+ get: import("@trpc/server").TRPCQueryProcedure<{
5096
4535
  input: {
5097
- viewId: string;
5098
- message?: string | undefined;
4536
+ identifier: string;
5099
4537
  };
5100
4538
  output: {
5101
- status: string;
5102
- message: string;
4539
+ profile: {
4540
+ userId: string | null;
4541
+ workspaceId: string | null;
4542
+ id: string;
4543
+ updatedAt: Date;
4544
+ createdAt: Date;
4545
+ version: number;
4546
+ isActive: boolean;
4547
+ scope: ProfileScope;
4548
+ slug: string;
4549
+ uiHints: unknown;
4550
+ displayName: string;
4551
+ parentProfileId: string | null;
4552
+ };
4553
+ effectiveProperties: EffectiveProperty[];
5103
4554
  };
5104
4555
  meta: object;
5105
4556
  }>;
5106
- listVersions: import("@trpc/server").TRPCQueryProcedure<{
4557
+ create: import("@trpc/server").TRPCMutationProcedure<{
5107
4558
  input: {
5108
- viewId: string;
5109
- limit?: number | undefined;
4559
+ slug: string;
4560
+ displayName: string;
4561
+ parentProfileId?: string | undefined;
4562
+ uiHints?: Record<string, unknown> | undefined;
4563
+ scope?: "user" | "system" | "workspace" | undefined;
5110
4564
  };
5111
4565
  output: {
5112
- versions: {
4566
+ profile: {
4567
+ userId: string | null;
4568
+ workspaceId: string | null;
4569
+ id: string;
4570
+ updatedAt: Date;
4571
+ createdAt: Date;
4572
+ version: number;
4573
+ isActive: boolean;
4574
+ scope: ProfileScope;
4575
+ slug: string;
4576
+ uiHints: unknown;
4577
+ displayName: string;
4578
+ parentProfileId: string | null;
4579
+ };
4580
+ };
4581
+ meta: object;
4582
+ }>;
4583
+ update: import("@trpc/server").TRPCMutationProcedure<{
4584
+ input: {
4585
+ id: string;
4586
+ displayName?: string | undefined;
4587
+ parentProfileId?: string | null | undefined;
4588
+ uiHints?: Record<string, unknown> | undefined;
4589
+ };
4590
+ output: {
4591
+ profile: {
4592
+ userId: string | null;
4593
+ workspaceId: string | null;
5113
4594
  id: string;
4595
+ updatedAt: Date;
4596
+ createdAt: Date;
5114
4597
  version: number;
4598
+ isActive: boolean;
4599
+ scope: ProfileScope;
4600
+ slug: string;
4601
+ uiHints: unknown;
4602
+ displayName: string;
4603
+ parentProfileId: string | null;
4604
+ };
4605
+ };
4606
+ meta: object;
4607
+ }>;
4608
+ delete: import("@trpc/server").TRPCMutationProcedure<{
4609
+ input: {
4610
+ id: string;
4611
+ };
4612
+ output: {
4613
+ success: boolean;
4614
+ };
4615
+ meta: object;
4616
+ }>;
4617
+ getEffectiveProperties: import("@trpc/server").TRPCQueryProcedure<{
4618
+ input: {
4619
+ profileId: string;
4620
+ };
4621
+ output: {
4622
+ properties: EffectiveProperty[];
4623
+ };
4624
+ meta: object;
4625
+ }>;
4626
+ getHierarchy: import("@trpc/server").TRPCQueryProcedure<{
4627
+ input: {
4628
+ profileId: string;
4629
+ };
4630
+ output: {
4631
+ hierarchy: {
4632
+ userId: string | null;
4633
+ workspaceId: string | null;
4634
+ id: string;
4635
+ updatedAt: Date;
5115
4636
  createdAt: Date;
5116
- type: string;
5117
- message: string | null;
5118
- content: string;
5119
- documentId: string;
5120
- delta: unknown;
5121
- author: string;
5122
- authorId: string;
4637
+ version: number;
4638
+ isActive: boolean;
4639
+ scope: ProfileScope;
4640
+ slug: string;
4641
+ uiHints: unknown;
4642
+ displayName: string;
4643
+ parentProfileId: string | null;
5123
4644
  }[];
5124
4645
  };
5125
4646
  meta: object;
5126
4647
  }>;
5127
- restoreVersion: import("@trpc/server").TRPCMutationProcedure<{
4648
+ }>>;
4649
+ propertyDefs: import("@trpc/server").TRPCBuiltRouter<{
4650
+ ctx: Context;
4651
+ meta: object;
4652
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4653
+ transformer: true;
4654
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4655
+ list: import("@trpc/server").TRPCQueryProcedure<{
4656
+ input: void;
4657
+ output: {
4658
+ propertyDefs: {
4659
+ id: string;
4660
+ updatedAt: Date;
4661
+ createdAt: Date;
4662
+ slug: string;
4663
+ valueType: PropertyValueType;
4664
+ constraints: unknown;
4665
+ uiHints: unknown;
4666
+ }[];
4667
+ };
4668
+ meta: object;
4669
+ }>;
4670
+ get: import("@trpc/server").TRPCQueryProcedure<{
5128
4671
  input: {
5129
- viewId: string;
5130
- versionId: string;
4672
+ slug: string;
5131
4673
  };
5132
4674
  output: {
5133
- status: string;
5134
- message: string;
4675
+ propertyDef: {
4676
+ id: string;
4677
+ updatedAt: Date;
4678
+ createdAt: Date;
4679
+ slug: string;
4680
+ valueType: PropertyValueType;
4681
+ constraints: unknown;
4682
+ uiHints: unknown;
4683
+ };
5135
4684
  };
5136
4685
  meta: object;
5137
4686
  }>;
5138
- getVersionPreview: import("@trpc/server").TRPCQueryProcedure<{
4687
+ create: import("@trpc/server").TRPCMutationProcedure<{
5139
4688
  input: {
5140
- versionId: string;
4689
+ slug: string;
4690
+ valueType: "string" | "number" | "boolean" | "object" | "array" | "date" | "entity_id";
4691
+ constraints?: Record<string, unknown> | undefined;
4692
+ uiHints?: Record<string, unknown> | undefined;
5141
4693
  };
5142
4694
  output: {
5143
- version: {
4695
+ propertyDef: {
5144
4696
  id: string;
5145
- version: number;
4697
+ updatedAt: Date;
5146
4698
  createdAt: Date;
5147
- type: string;
5148
- message: string | null;
5149
- content: string;
5150
- documentId: string;
5151
- delta: unknown;
5152
- author: string;
5153
- authorId: string;
4699
+ slug: string;
4700
+ valueType: PropertyValueType;
4701
+ constraints: unknown;
4702
+ uiHints: unknown;
5154
4703
  };
5155
- metadata: {
5156
- size: number;
5157
- message: string | null;
5158
- author: string;
4704
+ };
4705
+ meta: object;
4706
+ }>;
4707
+ update: import("@trpc/server").TRPCMutationProcedure<{
4708
+ input: {
4709
+ id: string;
4710
+ slug?: string | undefined;
4711
+ valueType?: "string" | "number" | "boolean" | "object" | "array" | "date" | "entity_id" | undefined;
4712
+ constraints?: Record<string, unknown> | undefined;
4713
+ uiHints?: Record<string, unknown> | undefined;
4714
+ };
4715
+ output: {
4716
+ propertyDef: {
4717
+ id: string;
4718
+ updatedAt: Date;
5159
4719
  createdAt: Date;
4720
+ slug: string;
4721
+ valueType: PropertyValueType;
4722
+ constraints: unknown;
4723
+ uiHints: unknown;
5160
4724
  };
5161
4725
  };
5162
4726
  meta: object;
5163
4727
  }>;
5164
- deleteVersion: import("@trpc/server").TRPCMutationProcedure<{
4728
+ delete: import("@trpc/server").TRPCMutationProcedure<{
5165
4729
  input: {
5166
- viewId: string;
5167
- versionId: string;
4730
+ id: string;
4731
+ };
4732
+ output: {
4733
+ success: boolean;
4734
+ };
4735
+ meta: object;
4736
+ }>;
4737
+ }>>;
4738
+ profileProperties: import("@trpc/server").TRPCBuiltRouter<{
4739
+ ctx: Context;
4740
+ meta: object;
4741
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
4742
+ transformer: true;
4743
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
4744
+ link: import("@trpc/server").TRPCMutationProcedure<{
4745
+ input: {
4746
+ profileId: string;
4747
+ propertyDefId: string;
4748
+ required?: boolean | undefined;
4749
+ defaultValue?: unknown;
4750
+ displayOrder?: number | undefined;
4751
+ };
4752
+ output: {
4753
+ link: {
4754
+ profileId: string;
4755
+ propertyDefId: string;
4756
+ required: boolean;
4757
+ defaultValue: unknown;
4758
+ displayOrder: number;
4759
+ };
4760
+ };
4761
+ meta: object;
4762
+ }>;
4763
+ unlink: import("@trpc/server").TRPCMutationProcedure<{
4764
+ input: {
4765
+ profileId: string;
4766
+ propertyDefId: string;
5168
4767
  };
5169
4768
  output: {
5170
4769
  success: boolean;
5171
4770
  };
5172
4771
  meta: object;
5173
4772
  }>;
4773
+ update: import("@trpc/server").TRPCMutationProcedure<{
4774
+ input: {
4775
+ profileId: string;
4776
+ propertyDefId: string;
4777
+ required?: boolean | undefined;
4778
+ defaultValue?: unknown;
4779
+ displayOrder?: number | undefined;
4780
+ };
4781
+ output: {
4782
+ link: {
4783
+ profileId: string;
4784
+ propertyDefId: string;
4785
+ required: boolean;
4786
+ defaultValue: unknown;
4787
+ displayOrder: number;
4788
+ };
4789
+ };
4790
+ meta: object;
4791
+ }>;
4792
+ getByProfile: import("@trpc/server").TRPCQueryProcedure<{
4793
+ input: {
4794
+ profileId: string;
4795
+ };
4796
+ output: {
4797
+ properties: EffectiveProperty[];
4798
+ };
4799
+ meta: object;
4800
+ }>;
5174
4801
  }>>;
5175
4802
  }>>;
5176
4803
  export type AppRouter = typeof coreRouter;