@synap-core/api-types 1.11.0 → 1.12.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.
@@ -1526,8 +1526,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1526
1526
  output: {
1527
1527
  channelId: string;
1528
1528
  channel: {
1529
- workspaceId: string | null;
1530
1529
  userId: string;
1530
+ workspaceId: string | null;
1531
1531
  id: string;
1532
1532
  updatedAt: Date;
1533
1533
  createdAt: Date;
@@ -1620,6 +1620,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1620
1620
  agentType?: string | undefined;
1621
1621
  agentHandle?: string | undefined;
1622
1622
  parentChannelId?: string | undefined;
1623
+ attachmentEntityIds?: string[] | undefined;
1624
+ deepAnalysis?: boolean | undefined;
1623
1625
  };
1624
1626
  output: {
1625
1627
  messageId: `${string}-${string}-${string}-${string}-${string}`;
@@ -1640,8 +1642,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1640
1642
  }[];
1641
1643
  branchDecision: BranchDecision | undefined;
1642
1644
  branchThread: {
1643
- workspaceId: string | null;
1644
1645
  userId: string;
1646
+ workspaceId: string | null;
1645
1647
  id: string;
1646
1648
  updatedAt: Date;
1647
1649
  createdAt: Date;
@@ -1689,7 +1691,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1689
1691
  }[];
1690
1692
  executionSummaries: {
1691
1693
  tool: string;
1692
- status: "error" | "success" | "skipped";
1694
+ status: "error" | "skipped" | "success";
1693
1695
  result?: unknown;
1694
1696
  error?: string | undefined;
1695
1697
  }[];
@@ -1760,8 +1762,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1760
1762
  channels: {
1761
1763
  hasAssistantMessage: boolean;
1762
1764
  origin: string;
1763
- workspaceId: string | null;
1764
1765
  userId: string;
1766
+ workspaceId: string | null;
1765
1767
  id: string;
1766
1768
  updatedAt: Date;
1767
1769
  createdAt: Date;
@@ -1800,8 +1802,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1800
1802
  channels: {
1801
1803
  hasAssistantMessage: boolean;
1802
1804
  origin: string;
1803
- workspaceId: string | null;
1804
1805
  userId: string;
1806
+ workspaceId: string | null;
1805
1807
  id: string;
1806
1808
  updatedAt: Date;
1807
1809
  createdAt: Date;
@@ -1843,8 +1845,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1843
1845
  };
1844
1846
  output: {
1845
1847
  branches: {
1846
- workspaceId: string | null;
1847
1848
  userId: string;
1849
+ workspaceId: string | null;
1848
1850
  id: string;
1849
1851
  updatedAt: Date;
1850
1852
  createdAt: Date;
@@ -1905,8 +1907,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1905
1907
  };
1906
1908
  output: {
1907
1909
  channel: {
1908
- workspaceId: string | null;
1909
1910
  userId: string;
1911
+ workspaceId: string | null;
1910
1912
  id: string;
1911
1913
  updatedAt: Date;
1912
1914
  createdAt: Date;
@@ -1931,8 +1933,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
1931
1933
  mergedAt: Date | null;
1932
1934
  };
1933
1935
  contextItems: {
1934
- workspaceId: string;
1935
1936
  userId: string;
1937
+ workspaceId: string;
1936
1938
  sourceMessageId: string | null;
1937
1939
  id: string;
1938
1940
  createdAt: Date;
@@ -2008,8 +2010,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2008
2010
  output: {
2009
2011
  tree: BranchTreeNode | null;
2010
2012
  flatBranches: {
2011
- workspaceId: string | null;
2012
2013
  userId: string;
2014
+ workspaceId: string | null;
2013
2015
  id: string;
2014
2016
  updatedAt: Date;
2015
2017
  createdAt: Date;
@@ -2034,8 +2036,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2034
2036
  mergedAt: Date | null;
2035
2037
  }[];
2036
2038
  activeBranches: {
2037
- workspaceId: string | null;
2038
2039
  userId: string;
2040
+ workspaceId: string | null;
2039
2041
  id: string;
2040
2042
  updatedAt: Date;
2041
2043
  createdAt: Date;
@@ -2060,8 +2062,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2060
2062
  mergedAt: Date | null;
2061
2063
  }[];
2062
2064
  mergedBranches: {
2063
- workspaceId: string | null;
2064
2065
  userId: string;
2066
+ workspaceId: string | null;
2065
2067
  id: string;
2066
2068
  updatedAt: Date;
2067
2069
  createdAt: Date;
@@ -2096,8 +2098,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2096
2098
  };
2097
2099
  output: {
2098
2100
  items: {
2099
- workspaceId: string;
2100
2101
  userId: string;
2102
+ workspaceId: string;
2101
2103
  sourceMessageId: string | null;
2102
2104
  id: string;
2103
2105
  createdAt: Date;
@@ -2109,8 +2111,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2109
2111
  relevanceScore: number | null;
2110
2112
  }[];
2111
2113
  entities: {
2112
- workspaceId: string;
2113
2114
  userId: string;
2115
+ workspaceId: string;
2114
2116
  sourceMessageId: string | null;
2115
2117
  id: string;
2116
2118
  createdAt: Date;
@@ -2122,8 +2124,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2122
2124
  relevanceScore: number | null;
2123
2125
  }[];
2124
2126
  documents: {
2125
- workspaceId: string;
2126
2127
  userId: string;
2128
+ workspaceId: string;
2127
2129
  sourceMessageId: string | null;
2128
2130
  id: string;
2129
2131
  createdAt: Date;
@@ -2260,7 +2262,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2260
2262
  }>;
2261
2263
  submit: import("@trpc/server").TRPCMutationProcedure<{
2262
2264
  input: {
2263
- targetType: "workspace" | "entity" | "document" | "view" | "relation" | "profile";
2265
+ targetType: "entity" | "document" | "view" | "workspace" | "relation" | "profile";
2264
2266
  changeType: "create" | "update" | "delete";
2265
2267
  data: Record<string, any>;
2266
2268
  targetId?: string | undefined;
@@ -2855,10 +2857,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2855
2857
  output: {
2856
2858
  total: number;
2857
2859
  migrations: {
2858
- version: string;
2859
- appliedAt: string;
2860
- description: string;
2860
+ id: unknown;
2861
+ hash: unknown;
2862
+ appliedAt: unknown;
2861
2863
  }[];
2864
+ note?: undefined;
2865
+ } | {
2866
+ total: number;
2867
+ migrations: never[];
2862
2868
  note: string;
2863
2869
  };
2864
2870
  meta: object;
@@ -3373,8 +3379,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3373
3379
  offset?: number | undefined;
3374
3380
  };
3375
3381
  output: {
3376
- workspaceId: string;
3377
3382
  userId: string;
3383
+ workspaceId: string;
3378
3384
  id: string;
3379
3385
  data: unknown;
3380
3386
  type: string;
@@ -3755,7 +3761,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3755
3761
  canCreateViews: boolean;
3756
3762
  outputMode: "view" | "proposal" | "text";
3757
3763
  permissionsProfile: "read_only" | "propose_writes";
3758
- sharedScope: "workspace" | "user";
3764
+ sharedScope: "user" | "workspace";
3759
3765
  }[];
3760
3766
  };
3761
3767
  meta: object;
@@ -3781,7 +3787,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3781
3787
  canCreateViews: boolean;
3782
3788
  outputMode: "view" | "proposal" | "text";
3783
3789
  permissionsProfile: "read_only" | "propose_writes";
3784
- sharedScope: "workspace" | "user";
3790
+ sharedScope: "user" | "workspace";
3785
3791
  };
3786
3792
  meta: object;
3787
3793
  }>;
@@ -3796,7 +3802,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3796
3802
  canCreateViews?: boolean | undefined;
3797
3803
  outputMode?: "view" | "proposal" | "text" | undefined;
3798
3804
  permissionsProfile?: "read_only" | "propose_writes" | undefined;
3799
- sharedScope?: "workspace" | "user" | undefined;
3805
+ sharedScope?: "user" | "workspace" | undefined;
3800
3806
  };
3801
3807
  output: {
3802
3808
  workspaceId: string;
@@ -3815,7 +3821,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3815
3821
  canCreateViews: boolean;
3816
3822
  outputMode: "view" | "proposal" | "text";
3817
3823
  permissionsProfile: "read_only" | "propose_writes";
3818
- sharedScope: "workspace" | "user";
3824
+ sharedScope: "user" | "workspace";
3819
3825
  };
3820
3826
  meta: object;
3821
3827
  }>;
@@ -3831,7 +3837,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3831
3837
  canCreateViews?: boolean | undefined;
3832
3838
  outputMode?: "view" | "proposal" | "text" | undefined;
3833
3839
  permissionsProfile?: "read_only" | "propose_writes" | undefined;
3834
- sharedScope?: "workspace" | "user" | undefined;
3840
+ sharedScope?: "user" | "workspace" | undefined;
3835
3841
  };
3836
3842
  output: {
3837
3843
  id: string;
@@ -3848,7 +3854,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3848
3854
  canCreateViews: boolean;
3849
3855
  outputMode: "view" | "proposal" | "text";
3850
3856
  permissionsProfile: "read_only" | "propose_writes";
3851
- sharedScope: "workspace" | "user";
3857
+ sharedScope: "user" | "workspace";
3852
3858
  createdAt: Date;
3853
3859
  updatedAt: Date;
3854
3860
  };
@@ -3889,8 +3895,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3889
3895
  };
3890
3896
  output: {
3891
3897
  runs: {
3892
- workspaceId: string;
3893
3898
  userId: string;
3899
+ workspaceId: string;
3894
3900
  id: string;
3895
3901
  errorMessage: string | null;
3896
3902
  startedAt: Date;
@@ -3915,8 +3921,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3915
3921
  id: string;
3916
3922
  };
3917
3923
  output: {
3918
- workspaceId: string;
3919
3924
  userId: string;
3925
+ workspaceId: string;
3920
3926
  id: string;
3921
3927
  errorMessage: string | null;
3922
3928
  startedAt: Date;
@@ -4154,6 +4160,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4154
4160
  } | null;
4155
4161
  meta: object;
4156
4162
  }>;
4163
+ extractEntity: import("@trpc/server").TRPCMutationProcedure<{
4164
+ input: {
4165
+ url: string;
4166
+ html: string;
4167
+ title?: string | undefined;
4168
+ };
4169
+ output: {
4170
+ profileSlug: string;
4171
+ title: string;
4172
+ description?: string;
4173
+ properties?: Record<string, unknown>;
4174
+ confidence: number;
4175
+ } | null;
4176
+ meta: object;
4177
+ }>;
4157
4178
  }>>;
4158
4179
  capabilities: import("@trpc/server").TRPCBuiltRouter<{
4159
4180
  ctx: Context;
@@ -4276,8 +4297,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4276
4297
  };
4277
4298
  output: {
4278
4299
  entities: {
4279
- workspaceId: string | null;
4280
4300
  userId: string;
4301
+ workspaceId: string | null;
4281
4302
  id: string;
4282
4303
  type: string;
4283
4304
  updatedAt: Date;
@@ -4323,8 +4344,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4323
4344
  };
4324
4345
  output: {
4325
4346
  relations: {
4326
- workspaceId: string;
4327
4347
  userId: string;
4348
+ workspaceId: string;
4328
4349
  id: string;
4329
4350
  type: string;
4330
4351
  createdAt: Date;
@@ -4358,8 +4379,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4358
4379
  };
4359
4380
  output: {
4360
4381
  relations: {
4361
- workspaceId: string;
4362
4382
  userId: string;
4383
+ workspaceId: string;
4363
4384
  id: string;
4364
4385
  type: string;
4365
4386
  createdAt: Date;
@@ -4379,8 +4400,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4379
4400
  };
4380
4401
  output: {
4381
4402
  entities: {
4382
- workspaceId: string | null;
4383
4403
  userId: string;
4404
+ workspaceId: string | null;
4384
4405
  id: string;
4385
4406
  type: string;
4386
4407
  updatedAt: Date;
@@ -4437,8 +4458,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4437
4458
  connections: {
4438
4459
  entityId: string;
4439
4460
  entity: {
4440
- workspaceId: string | null;
4441
4461
  userId: string;
4462
+ workspaceId: string | null;
4442
4463
  id: string;
4443
4464
  type: string;
4444
4465
  updatedAt: Date;
@@ -4505,8 +4526,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4505
4526
  };
4506
4527
  output: {
4507
4528
  entity: {
4508
- workspaceId: string | null;
4509
4529
  userId: string;
4530
+ workspaceId: string | null;
4510
4531
  id: string;
4511
4532
  type: string;
4512
4533
  updatedAt: Date;
@@ -4525,8 +4546,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4525
4546
  stats: null;
4526
4547
  } | {
4527
4548
  entity: {
4528
- workspaceId: string | null;
4529
4549
  userId: string;
4550
+ workspaceId: string | null;
4530
4551
  id: string;
4531
4552
  type: string;
4532
4553
  updatedAt: Date;
@@ -4541,8 +4562,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4541
4562
  deletedAt: Date | null;
4542
4563
  };
4543
4564
  relations: {
4544
- workspaceId: string;
4545
4565
  userId: string;
4566
+ workspaceId: string;
4546
4567
  id: string;
4547
4568
  type: string;
4548
4569
  createdAt: Date;
@@ -4568,8 +4589,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4568
4589
  };
4569
4590
  output: {
4570
4591
  entities: {
4571
- workspaceId: string | null;
4572
4592
  userId: string;
4593
+ workspaceId: string | null;
4573
4594
  id: string;
4574
4595
  type: string;
4575
4596
  updatedAt: Date;
@@ -4584,8 +4605,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4584
4605
  deletedAt: Date | null;
4585
4606
  }[];
4586
4607
  relations: {
4587
- workspaceId: string;
4588
4608
  userId: string;
4609
+ workspaceId: string;
4589
4610
  id: string;
4590
4611
  type: string;
4591
4612
  createdAt: Date;
@@ -4767,8 +4788,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4767
4788
  workspaceId: string;
4768
4789
  };
4769
4790
  output: {
4770
- workspaceId: string;
4771
4791
  userId: string;
4792
+ workspaceId: string;
4772
4793
  id: string;
4773
4794
  role: string;
4774
4795
  joinedAt: Date;
@@ -4995,6 +5016,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4995
5016
  }[] | undefined;
4996
5017
  layoutConfig?: {
4997
5018
  pinnedApps?: string[] | undefined;
5019
+ defaultApp?: string | undefined;
4998
5020
  defaultView?: string | undefined;
4999
5021
  theme?: string | undefined;
5000
5022
  sidebarItems?: {
@@ -5148,8 +5170,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5148
5170
  } | {
5149
5171
  view: {
5150
5172
  name: string;
5151
- workspaceId: string | null;
5152
5173
  userId: string;
5174
+ workspaceId: string | null;
5153
5175
  id: string;
5154
5176
  query: unknown;
5155
5177
  type: string;
@@ -5187,8 +5209,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5187
5209
  };
5188
5210
  output: {
5189
5211
  name: string;
5190
- workspaceId: string | null;
5191
5212
  userId: string;
5213
+ workspaceId: string | null;
5192
5214
  id: string;
5193
5215
  query: unknown;
5194
5216
  type: string;
@@ -5216,13 +5238,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5216
5238
  getHome: import("@trpc/server").TRPCQueryProcedure<{
5217
5239
  input: {
5218
5240
  workspaceId: string;
5219
- scope?: "workspace" | "user" | "effective" | undefined;
5241
+ scope?: "user" | "workspace" | "effective" | undefined;
5220
5242
  };
5221
5243
  output: {
5222
5244
  view: {
5223
5245
  name: string;
5224
- workspaceId: string | null;
5225
5246
  userId: string;
5247
+ workspaceId: string | null;
5226
5248
  id: string;
5227
5249
  query: unknown;
5228
5250
  type: string;
@@ -5255,8 +5277,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5255
5277
  output: {
5256
5278
  view: {
5257
5279
  name: string;
5258
- workspaceId: string | null;
5259
5280
  userId: string;
5281
+ workspaceId: string | null;
5260
5282
  id: string;
5261
5283
  query: unknown;
5262
5284
  type: string;
@@ -5290,8 +5312,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5290
5312
  output: {
5291
5313
  view: {
5292
5314
  name: string;
5293
- workspaceId: string | null;
5294
5315
  userId: string;
5316
+ workspaceId: string | null;
5295
5317
  id: string;
5296
5318
  query: unknown;
5297
5319
  type: string;
@@ -5323,8 +5345,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5323
5345
  } | {
5324
5346
  view: {
5325
5347
  name: string;
5326
- workspaceId: string | null;
5327
5348
  userId: string;
5349
+ workspaceId: string | null;
5328
5350
  id: string;
5329
5351
  query: unknown;
5330
5352
  type: string;
@@ -5417,8 +5439,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5417
5439
  message: string;
5418
5440
  view: {
5419
5441
  name: string;
5420
- workspaceId: string | null;
5421
5442
  userId: string;
5443
+ workspaceId: string | null;
5422
5444
  id: string;
5423
5445
  query: unknown;
5424
5446
  type: string;
@@ -5806,8 +5828,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5806
5828
  };
5807
5829
  output: {
5808
5830
  resource: {
5809
- workspaceId: string | null;
5810
5831
  userId: string;
5832
+ workspaceId: string | null;
5811
5833
  id: string;
5812
5834
  type: string;
5813
5835
  updatedAt: Date;
@@ -5822,8 +5844,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5822
5844
  deletedAt: Date | null;
5823
5845
  } | {
5824
5846
  name: string;
5825
- workspaceId: string | null;
5826
5847
  userId: string;
5848
+ workspaceId: string | null;
5827
5849
  id: string;
5828
5850
  query: unknown;
5829
5851
  type: string;
@@ -6223,8 +6245,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6223
6245
  };
6224
6246
  output: {
6225
6247
  name: string;
6226
- workspaceId: string | null;
6227
6248
  userId: string | null;
6249
+ workspaceId: string | null;
6228
6250
  id: string;
6229
6251
  description: string | null;
6230
6252
  updatedAt: Date;
@@ -6354,7 +6376,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6354
6376
  input: {
6355
6377
  workspaceId?: string | undefined;
6356
6378
  kind?: "code" | "instruction" | undefined;
6357
- scope?: "workspace" | "user" | undefined;
6379
+ scope?: "user" | "workspace" | "pod" | undefined;
6358
6380
  status?: "error" | "active" | "inactive" | "all" | undefined;
6359
6381
  limit?: number | undefined;
6360
6382
  offset?: number | undefined;
@@ -6379,7 +6401,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6379
6401
  code: string;
6380
6402
  workspaceId?: string | undefined;
6381
6403
  kind?: "code" | "instruction" | undefined;
6382
- scope?: "workspace" | "user" | undefined;
6404
+ scope?: "user" | "workspace" | "pod" | undefined;
6383
6405
  agentTypes?: string[] | undefined;
6384
6406
  description?: string | undefined;
6385
6407
  parameters?: Record<string, unknown> | undefined;
@@ -6402,7 +6424,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6402
6424
  input: {
6403
6425
  id: string;
6404
6426
  kind?: "code" | "instruction" | undefined;
6405
- scope?: "workspace" | "user" | undefined;
6427
+ scope?: "user" | "workspace" | "pod" | undefined;
6406
6428
  agentTypes?: string[] | null | undefined;
6407
6429
  name?: string | undefined;
6408
6430
  description?: string | undefined;
@@ -6572,8 +6594,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6572
6594
  metadata?: Record<string, unknown> | undefined;
6573
6595
  };
6574
6596
  output: {
6575
- workspaceId: string;
6576
6597
  userId: string;
6598
+ workspaceId: string;
6577
6599
  id: string;
6578
6600
  createdAt: Date;
6579
6601
  metadata: unknown;
@@ -6599,8 +6621,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6599
6621
  messageId: string;
6600
6622
  };
6601
6623
  output: {
6602
- workspaceId: string;
6603
6624
  userId: string;
6625
+ workspaceId: string;
6604
6626
  id: string;
6605
6627
  createdAt: Date;
6606
6628
  metadata: unknown;
@@ -6618,8 +6640,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6618
6640
  targetId: string;
6619
6641
  };
6620
6642
  output: {
6621
- workspaceId: string;
6622
6643
  userId: string;
6644
+ workspaceId: string;
6623
6645
  id: string;
6624
6646
  createdAt: Date;
6625
6647
  metadata: unknown;
@@ -6636,8 +6658,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6636
6658
  proposalId: string;
6637
6659
  };
6638
6660
  output: {
6639
- workspaceId: string;
6640
6661
  userId: string;
6662
+ workspaceId: string;
6641
6663
  id: string;
6642
6664
  createdAt: Date;
6643
6665
  metadata: unknown;
@@ -6657,8 +6679,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6657
6679
  relationshipType?: MessageLinkRelationshipType | undefined;
6658
6680
  };
6659
6681
  output: {
6660
- workspaceId: string;
6661
6682
  userId: string;
6683
+ workspaceId: string;
6662
6684
  id: string;
6663
6685
  createdAt: Date;
6664
6686
  metadata: unknown;
@@ -6699,8 +6721,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6699
6721
  input: void;
6700
6722
  output: {
6701
6723
  profiles: {
6702
- workspaceId: string | null;
6703
6724
  userId: string | null;
6725
+ workspaceId: string | null;
6704
6726
  id: string;
6705
6727
  updatedAt: Date;
6706
6728
  createdAt: Date;
@@ -6723,8 +6745,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6723
6745
  };
6724
6746
  output: {
6725
6747
  profile: {
6726
- workspaceId: string | null;
6727
6748
  userId: string | null;
6749
+ workspaceId: string | null;
6728
6750
  id: string;
6729
6751
  updatedAt: Date;
6730
6752
  createdAt: Date;
@@ -6749,7 +6771,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6749
6771
  parentProfileId?: string | undefined;
6750
6772
  uiHints?: Record<string, unknown> | undefined;
6751
6773
  defaultValues?: Record<string, unknown> | undefined;
6752
- scope?: "workspace" | "user" | "shared" | "system" | undefined;
6774
+ scope?: "user" | "shared" | "system" | "workspace" | undefined;
6753
6775
  allowedWorkspaceIds?: string[] | undefined;
6754
6776
  source?: "user" | "system" | "intelligence" | "ai" | undefined;
6755
6777
  reasoning?: string | undefined;
@@ -6757,8 +6779,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6757
6779
  };
6758
6780
  output: {
6759
6781
  profile: {
6760
- workspaceId: string | null;
6761
6782
  userId: string | null;
6783
+ workspaceId: string | null;
6762
6784
  id: string;
6763
6785
  updatedAt: Date;
6764
6786
  createdAt: Date;
@@ -6784,8 +6806,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6784
6806
  existing?: undefined;
6785
6807
  } | {
6786
6808
  profile: {
6787
- workspaceId: string | null;
6788
6809
  userId: string | null;
6810
+ workspaceId: string | null;
6789
6811
  id: string;
6790
6812
  updatedAt: Date;
6791
6813
  createdAt: Date;
@@ -6813,13 +6835,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6813
6835
  parentProfileId?: string | null | undefined;
6814
6836
  uiHints?: Record<string, unknown> | undefined;
6815
6837
  defaultValues?: Record<string, unknown> | undefined;
6816
- scope?: "workspace" | "user" | "shared" | "system" | undefined;
6838
+ scope?: "user" | "shared" | "system" | "workspace" | undefined;
6817
6839
  allowedWorkspaceIds?: string[] | undefined;
6818
6840
  };
6819
6841
  output: {
6820
6842
  profile: {
6821
- workspaceId: string | null;
6822
6843
  userId: string | null;
6844
+ workspaceId: string | null;
6823
6845
  id: string;
6824
6846
  updatedAt: Date;
6825
6847
  createdAt: Date;
@@ -6860,8 +6882,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6860
6882
  };
6861
6883
  output: {
6862
6884
  hierarchy: {
6863
- workspaceId: string | null;
6864
6885
  userId: string | null;
6886
+ workspaceId: string | null;
6865
6887
  id: string;
6866
6888
  updatedAt: Date;
6867
6889
  createdAt: Date;
@@ -6894,8 +6916,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6894
6916
  };
6895
6917
  output: {
6896
6918
  profiles: {
6897
- workspaceId: string | null;
6898
6919
  userId: string | null;
6920
+ workspaceId: string | null;
6899
6921
  id: string;
6900
6922
  updatedAt: Date;
6901
6923
  createdAt: Date;
@@ -6919,8 +6941,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6919
6941
  };
6920
6942
  output: {
6921
6943
  profiles: {
6922
- workspaceId: string | null;
6923
6944
  userId: string | null;
6945
+ workspaceId: string | null;
6924
6946
  id: string;
6925
6947
  updatedAt: Date;
6926
6948
  createdAt: Date;
@@ -7151,8 +7173,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7151
7173
  input: void;
7152
7174
  output: {
7153
7175
  relationDefs: {
7154
- workspaceId: string;
7155
7176
  userId: string;
7177
+ workspaceId: string;
7156
7178
  id: string;
7157
7179
  description: string | null;
7158
7180
  updatedAt: Date;
@@ -7175,8 +7197,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7175
7197
  };
7176
7198
  output: {
7177
7199
  relationDef: {
7178
- workspaceId: string;
7179
7200
  userId: string;
7201
+ workspaceId: string;
7180
7202
  id: string;
7181
7203
  description: string | null;
7182
7204
  updatedAt: Date;
@@ -7199,8 +7221,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7199
7221
  };
7200
7222
  output: {
7201
7223
  relationDef: {
7202
- workspaceId: string;
7203
7224
  userId: string;
7225
+ workspaceId: string;
7204
7226
  id: string;
7205
7227
  description: string | null;
7206
7228
  updatedAt: Date;
@@ -7547,8 +7569,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7547
7569
  input: void;
7548
7570
  output: {
7549
7571
  configs: {
7550
- workspaceId: string;
7551
7572
  userId: string;
7573
+ workspaceId: string;
7552
7574
  id: string;
7553
7575
  updatedAt: Date;
7554
7576
  createdAt: Date;
@@ -7568,8 +7590,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7568
7590
  };
7569
7591
  output: {
7570
7592
  config: {
7571
- workspaceId: string;
7572
7593
  userId: string;
7594
+ workspaceId: string;
7573
7595
  id: string;
7574
7596
  updatedAt: Date;
7575
7597
  createdAt: Date;
@@ -7594,8 +7616,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7594
7616
  };
7595
7617
  output: {
7596
7618
  config: {
7597
- workspaceId: string;
7598
7619
  userId: string;
7620
+ workspaceId: string;
7599
7621
  id: string;
7600
7622
  updatedAt: Date;
7601
7623
  createdAt: Date;
@@ -7791,6 +7813,114 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7791
7813
  meta: object;
7792
7814
  }>;
7793
7815
  }>>;
7816
+ import: import("@trpc/server").TRPCBuiltRouter<{
7817
+ ctx: Context;
7818
+ meta: object;
7819
+ errorShape: {
7820
+ message: string;
7821
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
7822
+ data: import("@trpc/server").TRPCDefaultErrorData;
7823
+ };
7824
+ transformer: true;
7825
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7826
+ submitBatch: import("@trpc/server").TRPCMutationProcedure<{
7827
+ input: {
7828
+ items: {
7829
+ path: string;
7830
+ contentBase64: string;
7831
+ mimeType?: string | undefined;
7832
+ }[];
7833
+ workspaceId?: string | undefined;
7834
+ };
7835
+ output: {
7836
+ filesReceived: number;
7837
+ entitiesCreated: number;
7838
+ documentsCreated: number;
7839
+ channelsCreated: number;
7840
+ messagesCreated: number;
7841
+ filesStoredOnly: number;
7842
+ errors: Array<{
7843
+ path: string;
7844
+ message: string;
7845
+ }>;
7846
+ batchId: `${string}-${string}-${string}-${string}-${string}`;
7847
+ };
7848
+ meta: object;
7849
+ }>;
7850
+ }>>;
7851
+ connectors: import("@trpc/server").TRPCBuiltRouter<{
7852
+ ctx: Context;
7853
+ meta: object;
7854
+ errorShape: {
7855
+ message: string;
7856
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
7857
+ data: import("@trpc/server").TRPCDefaultErrorData;
7858
+ };
7859
+ transformer: true;
7860
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7861
+ providers: import("@trpc/server").TRPCQueryProcedure<{
7862
+ input: {
7863
+ cpUrl?: string | undefined;
7864
+ } | undefined;
7865
+ output: {
7866
+ providers: unknown[];
7867
+ connectorLimit: number;
7868
+ tier: string;
7869
+ };
7870
+ meta: object;
7871
+ }>;
7872
+ connections: import("@trpc/server").TRPCQueryProcedure<{
7873
+ input: {
7874
+ cpUrl?: string | undefined;
7875
+ } | undefined;
7876
+ output: unknown[];
7877
+ meta: object;
7878
+ }>;
7879
+ session: import("@trpc/server").TRPCMutationProcedure<{
7880
+ input: {
7881
+ cpUrl?: string | undefined;
7882
+ } | undefined;
7883
+ output: {
7884
+ token: string;
7885
+ };
7886
+ meta: object;
7887
+ }>;
7888
+ disconnect: import("@trpc/server").TRPCMutationProcedure<{
7889
+ input: {
7890
+ connectionId: string;
7891
+ cpUrl?: string | undefined;
7892
+ };
7893
+ output: {
7894
+ success: boolean;
7895
+ };
7896
+ meta: object;
7897
+ }>;
7898
+ status: import("@trpc/server").TRPCQueryProcedure<{
7899
+ input: void;
7900
+ output: {
7901
+ controlPlane: {
7902
+ url: string | null;
7903
+ podId: string | null;
7904
+ tier: string | null;
7905
+ hasSettings: boolean;
7906
+ };
7907
+ allowedCpUrls: string[];
7908
+ envVar: string | null;
7909
+ };
7910
+ meta: object;
7911
+ }>;
7912
+ entitySources: import("@trpc/server").TRPCQueryProcedure<{
7913
+ input: {
7914
+ entityId: string;
7915
+ };
7916
+ output: {
7917
+ provider: string;
7918
+ status: string;
7919
+ lastSyncedAt: Date;
7920
+ }[];
7921
+ meta: object;
7922
+ }>;
7923
+ }>>;
7794
7924
  }>>;
7795
7925
  export type AppRouter = typeof coreRouter;
7796
7926