@synap-core/api-types 1.16.0 → 1.16.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.
@@ -71,6 +71,11 @@ export interface Context {
71
71
  * When set, proposals created during this request are linked to this message.
72
72
  */
73
73
  sourceMessageId?: string | null;
74
+ /**
75
+ * Session ID that triggered this hub-protocol request.
76
+ * When set, proposals created during this request are linked to this session.
77
+ */
78
+ sessionId?: string | null;
74
79
  }
75
80
  /**
76
81
  * Users Table - Cache for Kratos Identity Data
@@ -2359,6 +2364,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2359
2364
  context?: Record<string, unknown> | undefined;
2360
2365
  };
2361
2366
  output: {
2367
+ propertiesDropped?: true | undefined;
2368
+ degradedFrom?: string | undefined;
2362
2369
  success: boolean;
2363
2370
  entityId: string;
2364
2371
  profileSlug: string;
@@ -2382,6 +2389,33 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2382
2389
  }[] | undefined;
2383
2390
  };
2384
2391
  output: {
2392
+ proposals: {
2393
+ tempId: string;
2394
+ profileSlug: string;
2395
+ title: string;
2396
+ description: string | undefined;
2397
+ properties: {
2398
+ content: string;
2399
+ };
2400
+ confidence: number;
2401
+ }[];
2402
+ relations: Array<{
2403
+ sourceTempId: string;
2404
+ targetTempId: string;
2405
+ relationType: string;
2406
+ }>;
2407
+ followUp: string | null;
2408
+ targetWorkspaceId: string | null;
2409
+ dedupCandidates: Record<string, Array<{
2410
+ entityId: string;
2411
+ title: string;
2412
+ profileSlug: string;
2413
+ score: number;
2414
+ }>>;
2415
+ degraded: true;
2416
+ degradedReason: "is_auth_error" | "is_invalid_response";
2417
+ } | {
2418
+ dedupSkipped?: true | undefined;
2385
2419
  proposals: {
2386
2420
  tempId: string;
2387
2421
  profileSlug: string;
@@ -2443,6 +2477,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2443
2477
  };
2444
2478
  output: {
2445
2479
  created: {
2480
+ propertiesDropped?: true | undefined;
2481
+ degradedFrom?: string | undefined;
2446
2482
  tempId: string;
2447
2483
  entityId: string;
2448
2484
  profileSlug: string;
@@ -2588,6 +2624,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2588
2624
  profileSlug?: string | undefined;
2589
2625
  includeDescendants?: boolean | undefined;
2590
2626
  globalOnly?: boolean | undefined;
2627
+ sourceProposalId?: string | undefined;
2591
2628
  };
2592
2629
  output: {
2593
2630
  items: {
@@ -3020,7 +3057,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3020
3057
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3021
3058
  resolveOrCreateChannel: import("@trpc/server").TRPCQueryProcedure<{
3022
3059
  input: {
3023
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab";
3060
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab";
3024
3061
  workspaceId?: string | undefined;
3025
3062
  contextObjectType?: "user" | "entity" | "external" | "workspace" | "document" | "view" | "task" | "project" | undefined;
3026
3063
  contextObjectId?: string | undefined;
@@ -3061,7 +3098,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3061
3098
  externalSource: string | null;
3062
3099
  status: "active" | "merged" | "archived";
3063
3100
  scope: "user" | "pod" | "workspace";
3064
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3101
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3065
3102
  feedScope: "user" | "workspace" | null;
3066
3103
  contextObjectType: string | null;
3067
3104
  contextObjectId: string | null;
@@ -3091,7 +3128,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3091
3128
  createAgentCollabChannel: import("@trpc/server").TRPCMutationProcedure<{
3092
3129
  input: {
3093
3130
  topic: string;
3094
- visibility?: "open" | "closed" | undefined;
3131
+ visibility?: "closed" | "open" | undefined;
3095
3132
  participants?: string[] | undefined;
3096
3133
  title?: string | undefined;
3097
3134
  };
@@ -3182,7 +3219,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3182
3219
  externalSource: string | null;
3183
3220
  status: "active" | "merged" | "archived";
3184
3221
  scope: "user" | "pod" | "workspace";
3185
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3222
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3186
3223
  feedScope: "user" | "workspace" | null;
3187
3224
  contextObjectType: string | null;
3188
3225
  contextObjectId: string | null;
@@ -3214,6 +3251,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3214
3251
  output: {
3215
3252
  messages: {
3216
3253
  userId: string;
3254
+ sessionId: string | null;
3217
3255
  id: string;
3218
3256
  timestamp: Date;
3219
3257
  metadata: {
@@ -3296,7 +3334,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3296
3334
  routedSource: "orchestrator" | "mention" | "direct" | null;
3297
3335
  previousHash: string | null;
3298
3336
  hash: string;
3299
- sessionId: string | null;
3300
3337
  }[];
3301
3338
  nextCursor: string | undefined;
3302
3339
  hasMore: boolean;
@@ -3340,7 +3377,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3340
3377
  listChannels: import("@trpc/server").TRPCQueryProcedure<{
3341
3378
  input: {
3342
3379
  workspaceId?: string | undefined;
3343
- channelType?: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | undefined;
3380
+ channelType?: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | undefined;
3344
3381
  limit?: number | undefined;
3345
3382
  contextObjectId?: string | undefined;
3346
3383
  contextObjectType?: "entity" | "document" | "view" | undefined;
@@ -3480,7 +3517,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3480
3517
  externalSource: string | null;
3481
3518
  status: "active" | "merged" | "archived";
3482
3519
  scope: "user" | "pod" | "workspace";
3483
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3520
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3484
3521
  feedScope: "user" | "workspace" | null;
3485
3522
  contextObjectType: string | null;
3486
3523
  contextObjectId: string | null;
@@ -3546,7 +3583,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3546
3583
  externalSource: string | null;
3547
3584
  status: "active" | "merged" | "archived";
3548
3585
  scope: "user" | "pod" | "workspace";
3549
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3586
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3550
3587
  feedScope: "user" | "workspace" | null;
3551
3588
  contextObjectType: string | null;
3552
3589
  contextObjectId: string | null;
@@ -3655,7 +3692,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3655
3692
  externalSource: string | null;
3656
3693
  status: "active" | "merged" | "archived";
3657
3694
  scope: "user" | "pod" | "workspace";
3658
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3695
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3659
3696
  feedScope: "user" | "workspace" | null;
3660
3697
  contextObjectType: string | null;
3661
3698
  contextObjectId: string | null;
@@ -3685,7 +3722,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3685
3722
  externalSource: string | null;
3686
3723
  status: "active" | "merged" | "archived";
3687
3724
  scope: "user" | "pod" | "workspace";
3688
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3725
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3689
3726
  feedScope: "user" | "workspace" | null;
3690
3727
  contextObjectType: string | null;
3691
3728
  contextObjectId: string | null;
@@ -3715,7 +3752,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3715
3752
  externalSource: string | null;
3716
3753
  status: "active" | "merged" | "archived";
3717
3754
  scope: "user" | "pod" | "workspace";
3718
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3755
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3719
3756
  feedScope: "user" | "workspace" | null;
3720
3757
  contextObjectType: string | null;
3721
3758
  contextObjectId: string | null;
@@ -3880,7 +3917,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3880
3917
  externalSource: string | null;
3881
3918
  status: "active" | "merged" | "archived";
3882
3919
  scope: "user" | "pod" | "workspace";
3883
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3920
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3884
3921
  feedScope: "user" | "workspace" | null;
3885
3922
  contextObjectType: string | null;
3886
3923
  contextObjectId: string | null;
@@ -4021,6 +4058,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4021
4058
  targetType?: "entity" | "document" | "view" | "whiteboard" | "profile" | undefined;
4022
4059
  targetId?: string | undefined;
4023
4060
  threadId?: string | undefined;
4061
+ correlationId?: string | undefined;
4062
+ sessionId?: string | undefined;
4024
4063
  agentUserId?: string | undefined;
4025
4064
  agentOnly?: boolean | undefined;
4026
4065
  includeExpired?: boolean | undefined;
@@ -4032,6 +4071,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4032
4071
  viewerCanReview: boolean;
4033
4072
  workspaceId: string | null;
4034
4073
  sourceMessageId: string | null;
4074
+ sessionId: string | null;
4035
4075
  id: string;
4036
4076
  data: unknown;
4037
4077
  updatedAt: Date;
@@ -4067,6 +4107,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4067
4107
  viewerCanReview: boolean;
4068
4108
  workspaceId: string | null;
4069
4109
  sourceMessageId: string | null;
4110
+ sessionId: string | null;
4070
4111
  id: string;
4071
4112
  data: unknown;
4072
4113
  updatedAt: Date;
@@ -4101,6 +4142,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4101
4142
  output: {
4102
4143
  workspaceId: string | null;
4103
4144
  sourceMessageId: string | null;
4145
+ sessionId: string | null;
4104
4146
  id: string;
4105
4147
  data: unknown;
4106
4148
  updatedAt: Date;
@@ -4465,7 +4507,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4465
4507
  output: {
4466
4508
  timestamp: string;
4467
4509
  health: {
4468
- status: "healthy" | "degraded" | "critical";
4510
+ status: "degraded" | "healthy" | "critical";
4469
4511
  errorRate: number;
4470
4512
  };
4471
4513
  throughput: {
@@ -6632,7 +6674,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6632
6674
  id: string;
6633
6675
  errorMessage: string | null;
6634
6676
  startedAt: Date;
6635
- status: "completed" | "running" | "failed";
6677
+ status: "completed" | "failed" | "running";
6636
6678
  threadId: string;
6637
6679
  commandId: string;
6638
6680
  permissionsSnapshot: Record<string, unknown> | null;
@@ -6658,7 +6700,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6658
6700
  id: string;
6659
6701
  errorMessage: string | null;
6660
6702
  startedAt: Date;
6661
- status: "completed" | "running" | "failed";
6703
+ status: "completed" | "failed" | "running";
6662
6704
  threadId: string;
6663
6705
  commandId: string;
6664
6706
  permissionsSnapshot: Record<string, unknown> | null;
@@ -9104,6 +9146,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9104
9146
  };
9105
9147
  meta: object;
9106
9148
  }>;
9149
+ setDefaultCompanion: import("@trpc/server").TRPCMutationProcedure<{
9150
+ input: {
9151
+ agentId: string | null;
9152
+ };
9153
+ output: {
9154
+ success: boolean;
9155
+ preferences: {
9156
+ [x: string]: unknown;
9157
+ };
9158
+ };
9159
+ meta: object;
9160
+ }>;
9107
9161
  setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
9108
9162
  input: {
9109
9163
  serviceId: string | null;
@@ -9519,7 +9573,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9519
9573
  fieldMapping: Record<string, {
9520
9574
  slot: string;
9521
9575
  renderer?: {
9522
- type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
9576
+ type: "number" | "date" | "relations" | "tag" | "progress" | "link" | "text" | "badge" | "avatar" | "checkbox" | "currency";
9523
9577
  variant?: string | undefined;
9524
9578
  size?: string | undefined;
9525
9579
  format?: string | undefined;
@@ -9633,7 +9687,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9633
9687
  fieldMapping: Record<string, {
9634
9688
  slot: string;
9635
9689
  renderer?: {
9636
- type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
9690
+ type: "number" | "date" | "relations" | "tag" | "progress" | "link" | "text" | "badge" | "avatar" | "checkbox" | "currency";
9637
9691
  variant?: string | undefined;
9638
9692
  size?: string | undefined;
9639
9693
  format?: string | undefined;
@@ -10998,7 +11052,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10998
11052
  output: {
10999
11053
  relationDefs: {
11000
11054
  userId: string;
11001
- workspaceId: string;
11055
+ workspaceId: string | null;
11002
11056
  id: string;
11003
11057
  updatedAt: Date;
11004
11058
  createdAt: Date;
@@ -11022,7 +11076,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11022
11076
  output: {
11023
11077
  relationDef: {
11024
11078
  userId: string;
11025
- workspaceId: string;
11079
+ workspaceId: string | null;
11026
11080
  id: string;
11027
11081
  updatedAt: Date;
11028
11082
  createdAt: Date;
@@ -11046,7 +11100,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11046
11100
  output: {
11047
11101
  relationDef: {
11048
11102
  userId: string;
11049
- workspaceId: string;
11103
+ workspaceId: string | null;
11050
11104
  id: string;
11051
11105
  updatedAt: Date;
11052
11106
  createdAt: Date;
@@ -11551,7 +11605,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11551
11605
  }>;
11552
11606
  workspaceList: import("@trpc/server").TRPCQueryProcedure<{
11553
11607
  input: {
11554
- ownerType?: "provider" | "system" | undefined;
11608
+ ownerType?: "user" | "provider" | "system" | undefined;
11555
11609
  };
11556
11610
  output: {
11557
11611
  id: string;
@@ -12381,7 +12435,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12381
12435
  list: import("@trpc/server").TRPCQueryProcedure<{
12382
12436
  input: {
12383
12437
  status?: "read" | "unread" | "dismissed" | "all" | undefined;
12384
- category?: "data" | "system" | "ai" | "governance" | "inbox" | undefined;
12438
+ category?: "data" | "system" | "governance" | "ai" | "inbox" | undefined;
12385
12439
  limit?: number | undefined;
12386
12440
  offset?: number | undefined;
12387
12441
  };
@@ -12391,8 +12445,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12391
12445
  workspaceId: string | null;
12392
12446
  userId: string;
12393
12447
  type: string;
12394
- category: "data" | "system" | "ai" | "governance" | "inbox";
12395
- priority: "normal" | "low" | "high" | "urgent";
12448
+ category: "data" | "system" | "governance" | "ai" | "inbox";
12449
+ priority: "low" | "normal" | "high" | "urgent";
12396
12450
  title: string;
12397
12451
  body: string;
12398
12452
  icon: string | null;
@@ -12413,7 +12467,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12413
12467
  listAll: import("@trpc/server").TRPCQueryProcedure<{
12414
12468
  input: {
12415
12469
  status?: "read" | "unread" | "dismissed" | "all" | undefined;
12416
- category?: "data" | "system" | "ai" | "governance" | "inbox" | undefined;
12470
+ category?: "data" | "system" | "governance" | "ai" | "inbox" | undefined;
12417
12471
  limit?: number | undefined;
12418
12472
  offset?: number | undefined;
12419
12473
  };
@@ -12423,8 +12477,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12423
12477
  workspaceId: string | null;
12424
12478
  userId: string;
12425
12479
  type: string;
12426
- category: "data" | "system" | "ai" | "governance" | "inbox";
12427
- priority: "normal" | "low" | "high" | "urgent";
12480
+ category: "data" | "system" | "governance" | "ai" | "inbox";
12481
+ priority: "low" | "normal" | "high" | "urgent";
12428
12482
  title: string;
12429
12483
  body: string;
12430
12484
  icon: string | null;
@@ -12643,22 +12697,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12643
12697
  addPeer: import("@trpc/server").TRPCMutationProcedure<{
12644
12698
  input: {
12645
12699
  peerPodUrl: string;
12646
- direction: "push" | "pull";
12700
+ direction: "push" | "bidirectional" | "pull";
12647
12701
  label?: string | undefined;
12648
12702
  authToken?: string | undefined;
12649
12703
  workspaceIds?: string[] | undefined;
12704
+ localRole?: "primary" | "secondary" | "unset" | undefined;
12650
12705
  enabled?: boolean | undefined;
12651
12706
  };
12652
12707
  output: {
12653
- id: string;
12654
- updatedAt: Date;
12655
- createdAt: Date;
12656
- enabled: boolean;
12657
- peerPodUrl: string;
12658
- direction: string;
12659
- label: string | null;
12660
- authToken: string | null;
12661
- workspaceIds: string[] | null;
12708
+ peerId: string;
12662
12709
  };
12663
12710
  meta: object;
12664
12711
  }>;
@@ -12678,6 +12725,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12678
12725
  label?: string | undefined;
12679
12726
  authToken?: string | undefined;
12680
12727
  workspaceIds?: string[] | null | undefined;
12728
+ localRole?: "primary" | "secondary" | "unset" | undefined;
12681
12729
  enabled?: boolean | undefined;
12682
12730
  };
12683
12731
  output: {
@@ -12688,6 +12736,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12688
12736
  label: string | null;
12689
12737
  authToken: string | null;
12690
12738
  workspaceIds: string[] | null;
12739
+ localRole: string | null;
12691
12740
  createdAt: Date;
12692
12741
  updatedAt: Date;
12693
12742
  };
@@ -12721,6 +12770,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12721
12770
  label: string | null;
12722
12771
  authToken: string | null;
12723
12772
  workspaceIds: string[] | null;
12773
+ localRole: string | null;
12724
12774
  }[];
12725
12775
  meta: object;
12726
12776
  }>;
@@ -13336,7 +13386,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
13336
13386
  id: string;
13337
13387
  title: string;
13338
13388
  recipeId: string | null;
13339
- runStatus: "success" | "running" | "failed" | "cancelled" | null;
13389
+ runStatus: "success" | "failed" | "running" | "cancelled" | null;
13340
13390
  runSteps: RunStep[];
13341
13391
  runStartedAt: string | null;
13342
13392
  runFinishedAt: string | null;
@@ -14005,6 +14055,229 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
14005
14055
  meta: object;
14006
14056
  }>;
14007
14057
  }>>;
14058
+ focusSessions: import("@trpc/server").TRPCBuiltRouter<{
14059
+ ctx: Context;
14060
+ meta: object;
14061
+ errorShape: {
14062
+ message: string;
14063
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
14064
+ data: import("@trpc/server").TRPCDefaultErrorData;
14065
+ };
14066
+ transformer: true;
14067
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
14068
+ list: import("@trpc/server").TRPCQueryProcedure<{
14069
+ input: {
14070
+ workspaceId: string;
14071
+ status?: "active" | "paused" | "closed" | "all" | undefined;
14072
+ limit?: number | undefined;
14073
+ };
14074
+ output: {
14075
+ id: string;
14076
+ workspaceId: string;
14077
+ userId: string;
14078
+ correlationId: string | null;
14079
+ goal: string;
14080
+ status: "active" | "paused" | "closed";
14081
+ templateId: string | null;
14082
+ expectedOutputs: unknown;
14083
+ channelId: string | null;
14084
+ progress: number | null;
14085
+ agentIds: string[] | null;
14086
+ closedAt: Date | null;
14087
+ contextReport: unknown;
14088
+ planReport: unknown;
14089
+ executionLog: unknown;
14090
+ verificationReport: unknown;
14091
+ startedAt: Date;
14092
+ createdAt: Date;
14093
+ updatedAt: Date;
14094
+ }[];
14095
+ meta: object;
14096
+ }>;
14097
+ listAll: import("@trpc/server").TRPCQueryProcedure<{
14098
+ input: {
14099
+ status?: "active" | "paused" | "closed" | "all" | undefined;
14100
+ limit?: number | undefined;
14101
+ };
14102
+ output: {
14103
+ id: string;
14104
+ workspaceId: string;
14105
+ userId: string;
14106
+ correlationId: string | null;
14107
+ goal: string;
14108
+ status: "active" | "paused" | "closed";
14109
+ templateId: string | null;
14110
+ expectedOutputs: unknown;
14111
+ channelId: string | null;
14112
+ progress: number | null;
14113
+ agentIds: string[] | null;
14114
+ closedAt: Date | null;
14115
+ contextReport: unknown;
14116
+ planReport: unknown;
14117
+ executionLog: unknown;
14118
+ verificationReport: unknown;
14119
+ startedAt: Date;
14120
+ createdAt: Date;
14121
+ updatedAt: Date;
14122
+ }[];
14123
+ meta: object;
14124
+ }>;
14125
+ get: import("@trpc/server").TRPCQueryProcedure<{
14126
+ input: {
14127
+ id: string;
14128
+ };
14129
+ output: {
14130
+ userId: string;
14131
+ workspaceId: string;
14132
+ id: string;
14133
+ updatedAt: Date;
14134
+ createdAt: Date;
14135
+ correlationId: string | null;
14136
+ channelId: string | null;
14137
+ startedAt: Date;
14138
+ status: "active" | "paused" | "closed";
14139
+ goal: string;
14140
+ templateId: string | null;
14141
+ expectedOutputs: unknown;
14142
+ progress: number | null;
14143
+ agentIds: string[] | null;
14144
+ closedAt: Date | null;
14145
+ contextReport: unknown;
14146
+ planReport: unknown;
14147
+ executionLog: unknown;
14148
+ verificationReport: unknown;
14149
+ };
14150
+ meta: object;
14151
+ }>;
14152
+ getByCorrelationId: import("@trpc/server").TRPCQueryProcedure<{
14153
+ input: {
14154
+ correlationId: string;
14155
+ };
14156
+ output: {
14157
+ userId: string;
14158
+ workspaceId: string;
14159
+ id: string;
14160
+ updatedAt: Date;
14161
+ createdAt: Date;
14162
+ correlationId: string | null;
14163
+ channelId: string | null;
14164
+ startedAt: Date;
14165
+ status: "active" | "paused" | "closed";
14166
+ goal: string;
14167
+ templateId: string | null;
14168
+ expectedOutputs: unknown;
14169
+ progress: number | null;
14170
+ agentIds: string[] | null;
14171
+ closedAt: Date | null;
14172
+ contextReport: unknown;
14173
+ planReport: unknown;
14174
+ executionLog: unknown;
14175
+ verificationReport: unknown;
14176
+ };
14177
+ meta: object;
14178
+ }>;
14179
+ create: import("@trpc/server").TRPCMutationProcedure<{
14180
+ input: {
14181
+ workspaceId: string;
14182
+ goal: string;
14183
+ templateId?: string | undefined;
14184
+ expectedOutputs?: {
14185
+ kind: string;
14186
+ label: string;
14187
+ icon?: string | undefined;
14188
+ }[] | undefined;
14189
+ channelId?: string | undefined;
14190
+ agentIds?: string[] | undefined;
14191
+ };
14192
+ output: {
14193
+ userId: string;
14194
+ workspaceId: string;
14195
+ id: string;
14196
+ updatedAt: Date;
14197
+ createdAt: Date;
14198
+ correlationId: string | null;
14199
+ channelId: string | null;
14200
+ startedAt: Date;
14201
+ status: "active" | "paused" | "closed";
14202
+ goal: string;
14203
+ templateId: string | null;
14204
+ expectedOutputs: unknown;
14205
+ progress: number | null;
14206
+ agentIds: string[] | null;
14207
+ closedAt: Date | null;
14208
+ contextReport: unknown;
14209
+ planReport: unknown;
14210
+ executionLog: unknown;
14211
+ verificationReport: unknown;
14212
+ };
14213
+ meta: object;
14214
+ }>;
14215
+ update: import("@trpc/server").TRPCMutationProcedure<{
14216
+ input: {
14217
+ id: string;
14218
+ status?: "active" | "paused" | "closed" | undefined;
14219
+ progress?: number | undefined;
14220
+ channelId?: string | undefined;
14221
+ correlationId?: string | undefined;
14222
+ goal?: string | undefined;
14223
+ agentIds?: string[] | undefined;
14224
+ expectedOutputs?: {
14225
+ kind: string;
14226
+ label: string;
14227
+ icon?: string | undefined;
14228
+ }[] | undefined;
14229
+ };
14230
+ output: {
14231
+ userId: string;
14232
+ workspaceId: string;
14233
+ id: string;
14234
+ updatedAt: Date;
14235
+ createdAt: Date;
14236
+ correlationId: string | null;
14237
+ channelId: string | null;
14238
+ startedAt: Date;
14239
+ status: "active" | "paused" | "closed";
14240
+ goal: string;
14241
+ templateId: string | null;
14242
+ expectedOutputs: unknown;
14243
+ progress: number | null;
14244
+ agentIds: string[] | null;
14245
+ closedAt: Date | null;
14246
+ contextReport: unknown;
14247
+ planReport: unknown;
14248
+ executionLog: unknown;
14249
+ verificationReport: unknown;
14250
+ };
14251
+ meta: object;
14252
+ }>;
14253
+ close: import("@trpc/server").TRPCMutationProcedure<{
14254
+ input: {
14255
+ id: string;
14256
+ };
14257
+ output: {
14258
+ userId: string;
14259
+ workspaceId: string;
14260
+ id: string;
14261
+ updatedAt: Date;
14262
+ createdAt: Date;
14263
+ correlationId: string | null;
14264
+ channelId: string | null;
14265
+ startedAt: Date;
14266
+ status: "active" | "paused" | "closed";
14267
+ goal: string;
14268
+ templateId: string | null;
14269
+ expectedOutputs: unknown;
14270
+ progress: number | null;
14271
+ agentIds: string[] | null;
14272
+ closedAt: Date | null;
14273
+ contextReport: unknown;
14274
+ planReport: unknown;
14275
+ executionLog: unknown;
14276
+ verificationReport: unknown;
14277
+ };
14278
+ meta: object;
14279
+ }>;
14280
+ }>>;
14008
14281
  }>>;
14009
14282
  export type AppRouter = typeof coreRouter;
14010
14283
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/api-types",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Type definitions for Synap API Router - tRPC types for frontend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -71,6 +71,11 @@ export interface Context {
71
71
  * When set, proposals created during this request are linked to this message.
72
72
  */
73
73
  sourceMessageId?: string | null;
74
+ /**
75
+ * Session ID that triggered this hub-protocol request.
76
+ * When set, proposals created during this request are linked to this session.
77
+ */
78
+ sessionId?: string | null;
74
79
  }
75
80
  /**
76
81
  * Users Table - Cache for Kratos Identity Data
@@ -2359,6 +2364,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2359
2364
  context?: Record<string, unknown> | undefined;
2360
2365
  };
2361
2366
  output: {
2367
+ propertiesDropped?: true | undefined;
2368
+ degradedFrom?: string | undefined;
2362
2369
  success: boolean;
2363
2370
  entityId: string;
2364
2371
  profileSlug: string;
@@ -2382,6 +2389,33 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2382
2389
  }[] | undefined;
2383
2390
  };
2384
2391
  output: {
2392
+ proposals: {
2393
+ tempId: string;
2394
+ profileSlug: string;
2395
+ title: string;
2396
+ description: string | undefined;
2397
+ properties: {
2398
+ content: string;
2399
+ };
2400
+ confidence: number;
2401
+ }[];
2402
+ relations: Array<{
2403
+ sourceTempId: string;
2404
+ targetTempId: string;
2405
+ relationType: string;
2406
+ }>;
2407
+ followUp: string | null;
2408
+ targetWorkspaceId: string | null;
2409
+ dedupCandidates: Record<string, Array<{
2410
+ entityId: string;
2411
+ title: string;
2412
+ profileSlug: string;
2413
+ score: number;
2414
+ }>>;
2415
+ degraded: true;
2416
+ degradedReason: "is_auth_error" | "is_invalid_response";
2417
+ } | {
2418
+ dedupSkipped?: true | undefined;
2385
2419
  proposals: {
2386
2420
  tempId: string;
2387
2421
  profileSlug: string;
@@ -2443,6 +2477,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2443
2477
  };
2444
2478
  output: {
2445
2479
  created: {
2480
+ propertiesDropped?: true | undefined;
2481
+ degradedFrom?: string | undefined;
2446
2482
  tempId: string;
2447
2483
  entityId: string;
2448
2484
  profileSlug: string;
@@ -2588,6 +2624,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2588
2624
  profileSlug?: string | undefined;
2589
2625
  includeDescendants?: boolean | undefined;
2590
2626
  globalOnly?: boolean | undefined;
2627
+ sourceProposalId?: string | undefined;
2591
2628
  };
2592
2629
  output: {
2593
2630
  items: {
@@ -3020,7 +3057,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3020
3057
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3021
3058
  resolveOrCreateChannel: import("@trpc/server").TRPCQueryProcedure<{
3022
3059
  input: {
3023
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab";
3060
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab";
3024
3061
  workspaceId?: string | undefined;
3025
3062
  contextObjectType?: "user" | "entity" | "external" | "workspace" | "document" | "view" | "task" | "project" | undefined;
3026
3063
  contextObjectId?: string | undefined;
@@ -3061,7 +3098,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3061
3098
  externalSource: string | null;
3062
3099
  status: "active" | "merged" | "archived";
3063
3100
  scope: "user" | "pod" | "workspace";
3064
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3101
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3065
3102
  feedScope: "user" | "workspace" | null;
3066
3103
  contextObjectType: string | null;
3067
3104
  contextObjectId: string | null;
@@ -3091,7 +3128,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3091
3128
  createAgentCollabChannel: import("@trpc/server").TRPCMutationProcedure<{
3092
3129
  input: {
3093
3130
  topic: string;
3094
- visibility?: "open" | "closed" | undefined;
3131
+ visibility?: "closed" | "open" | undefined;
3095
3132
  participants?: string[] | undefined;
3096
3133
  title?: string | undefined;
3097
3134
  };
@@ -3182,7 +3219,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3182
3219
  externalSource: string | null;
3183
3220
  status: "active" | "merged" | "archived";
3184
3221
  scope: "user" | "pod" | "workspace";
3185
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3222
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3186
3223
  feedScope: "user" | "workspace" | null;
3187
3224
  contextObjectType: string | null;
3188
3225
  contextObjectId: string | null;
@@ -3214,6 +3251,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3214
3251
  output: {
3215
3252
  messages: {
3216
3253
  userId: string;
3254
+ sessionId: string | null;
3217
3255
  id: string;
3218
3256
  timestamp: Date;
3219
3257
  metadata: {
@@ -3296,7 +3334,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3296
3334
  routedSource: "orchestrator" | "mention" | "direct" | null;
3297
3335
  previousHash: string | null;
3298
3336
  hash: string;
3299
- sessionId: string | null;
3300
3337
  }[];
3301
3338
  nextCursor: string | undefined;
3302
3339
  hasMore: boolean;
@@ -3340,7 +3377,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3340
3377
  listChannels: import("@trpc/server").TRPCQueryProcedure<{
3341
3378
  input: {
3342
3379
  workspaceId?: string | undefined;
3343
- channelType?: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | undefined;
3380
+ channelType?: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | undefined;
3344
3381
  limit?: number | undefined;
3345
3382
  contextObjectId?: string | undefined;
3346
3383
  contextObjectType?: "entity" | "document" | "view" | undefined;
@@ -3480,7 +3517,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3480
3517
  externalSource: string | null;
3481
3518
  status: "active" | "merged" | "archived";
3482
3519
  scope: "user" | "pod" | "workspace";
3483
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3520
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3484
3521
  feedScope: "user" | "workspace" | null;
3485
3522
  contextObjectType: string | null;
3486
3523
  contextObjectId: string | null;
@@ -3546,7 +3583,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3546
3583
  externalSource: string | null;
3547
3584
  status: "active" | "merged" | "archived";
3548
3585
  scope: "user" | "pod" | "workspace";
3549
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3586
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3550
3587
  feedScope: "user" | "workspace" | null;
3551
3588
  contextObjectType: string | null;
3552
3589
  contextObjectId: string | null;
@@ -3655,7 +3692,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3655
3692
  externalSource: string | null;
3656
3693
  status: "active" | "merged" | "archived";
3657
3694
  scope: "user" | "pod" | "workspace";
3658
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3695
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3659
3696
  feedScope: "user" | "workspace" | null;
3660
3697
  contextObjectType: string | null;
3661
3698
  contextObjectId: string | null;
@@ -3685,7 +3722,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3685
3722
  externalSource: string | null;
3686
3723
  status: "active" | "merged" | "archived";
3687
3724
  scope: "user" | "pod" | "workspace";
3688
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3725
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3689
3726
  feedScope: "user" | "workspace" | null;
3690
3727
  contextObjectType: string | null;
3691
3728
  contextObjectId: string | null;
@@ -3715,7 +3752,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3715
3752
  externalSource: string | null;
3716
3753
  status: "active" | "merged" | "archived";
3717
3754
  scope: "user" | "pod" | "workspace";
3718
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3755
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3719
3756
  feedScope: "user" | "workspace" | null;
3720
3757
  contextObjectType: string | null;
3721
3758
  contextObjectId: string | null;
@@ -3880,7 +3917,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3880
3917
  externalSource: string | null;
3881
3918
  status: "active" | "merged" | "archived";
3882
3919
  scope: "user" | "pod" | "workspace";
3883
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3920
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3884
3921
  feedScope: "user" | "workspace" | null;
3885
3922
  contextObjectType: string | null;
3886
3923
  contextObjectId: string | null;
@@ -4021,6 +4058,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4021
4058
  targetType?: "entity" | "document" | "view" | "whiteboard" | "profile" | undefined;
4022
4059
  targetId?: string | undefined;
4023
4060
  threadId?: string | undefined;
4061
+ correlationId?: string | undefined;
4062
+ sessionId?: string | undefined;
4024
4063
  agentUserId?: string | undefined;
4025
4064
  agentOnly?: boolean | undefined;
4026
4065
  includeExpired?: boolean | undefined;
@@ -4032,6 +4071,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4032
4071
  viewerCanReview: boolean;
4033
4072
  workspaceId: string | null;
4034
4073
  sourceMessageId: string | null;
4074
+ sessionId: string | null;
4035
4075
  id: string;
4036
4076
  data: unknown;
4037
4077
  updatedAt: Date;
@@ -4067,6 +4107,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4067
4107
  viewerCanReview: boolean;
4068
4108
  workspaceId: string | null;
4069
4109
  sourceMessageId: string | null;
4110
+ sessionId: string | null;
4070
4111
  id: string;
4071
4112
  data: unknown;
4072
4113
  updatedAt: Date;
@@ -4101,6 +4142,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4101
4142
  output: {
4102
4143
  workspaceId: string | null;
4103
4144
  sourceMessageId: string | null;
4145
+ sessionId: string | null;
4104
4146
  id: string;
4105
4147
  data: unknown;
4106
4148
  updatedAt: Date;
@@ -4465,7 +4507,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4465
4507
  output: {
4466
4508
  timestamp: string;
4467
4509
  health: {
4468
- status: "healthy" | "degraded" | "critical";
4510
+ status: "degraded" | "healthy" | "critical";
4469
4511
  errorRate: number;
4470
4512
  };
4471
4513
  throughput: {
@@ -6632,7 +6674,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6632
6674
  id: string;
6633
6675
  errorMessage: string | null;
6634
6676
  startedAt: Date;
6635
- status: "completed" | "running" | "failed";
6677
+ status: "completed" | "failed" | "running";
6636
6678
  threadId: string;
6637
6679
  commandId: string;
6638
6680
  permissionsSnapshot: Record<string, unknown> | null;
@@ -6658,7 +6700,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6658
6700
  id: string;
6659
6701
  errorMessage: string | null;
6660
6702
  startedAt: Date;
6661
- status: "completed" | "running" | "failed";
6703
+ status: "completed" | "failed" | "running";
6662
6704
  threadId: string;
6663
6705
  commandId: string;
6664
6706
  permissionsSnapshot: Record<string, unknown> | null;
@@ -9104,6 +9146,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9104
9146
  };
9105
9147
  meta: object;
9106
9148
  }>;
9149
+ setDefaultCompanion: import("@trpc/server").TRPCMutationProcedure<{
9150
+ input: {
9151
+ agentId: string | null;
9152
+ };
9153
+ output: {
9154
+ success: boolean;
9155
+ preferences: {
9156
+ [x: string]: unknown;
9157
+ };
9158
+ };
9159
+ meta: object;
9160
+ }>;
9107
9161
  setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
9108
9162
  input: {
9109
9163
  serviceId: string | null;
@@ -9519,7 +9573,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9519
9573
  fieldMapping: Record<string, {
9520
9574
  slot: string;
9521
9575
  renderer?: {
9522
- type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
9576
+ type: "number" | "date" | "relations" | "tag" | "progress" | "link" | "text" | "badge" | "avatar" | "checkbox" | "currency";
9523
9577
  variant?: string | undefined;
9524
9578
  size?: string | undefined;
9525
9579
  format?: string | undefined;
@@ -9633,7 +9687,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9633
9687
  fieldMapping: Record<string, {
9634
9688
  slot: string;
9635
9689
  renderer?: {
9636
- type: "number" | "date" | "relations" | "tag" | "link" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
9690
+ type: "number" | "date" | "relations" | "tag" | "progress" | "link" | "text" | "badge" | "avatar" | "checkbox" | "currency";
9637
9691
  variant?: string | undefined;
9638
9692
  size?: string | undefined;
9639
9693
  format?: string | undefined;
@@ -10998,7 +11052,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10998
11052
  output: {
10999
11053
  relationDefs: {
11000
11054
  userId: string;
11001
- workspaceId: string;
11055
+ workspaceId: string | null;
11002
11056
  id: string;
11003
11057
  updatedAt: Date;
11004
11058
  createdAt: Date;
@@ -11022,7 +11076,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11022
11076
  output: {
11023
11077
  relationDef: {
11024
11078
  userId: string;
11025
- workspaceId: string;
11079
+ workspaceId: string | null;
11026
11080
  id: string;
11027
11081
  updatedAt: Date;
11028
11082
  createdAt: Date;
@@ -11046,7 +11100,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11046
11100
  output: {
11047
11101
  relationDef: {
11048
11102
  userId: string;
11049
- workspaceId: string;
11103
+ workspaceId: string | null;
11050
11104
  id: string;
11051
11105
  updatedAt: Date;
11052
11106
  createdAt: Date;
@@ -11551,7 +11605,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11551
11605
  }>;
11552
11606
  workspaceList: import("@trpc/server").TRPCQueryProcedure<{
11553
11607
  input: {
11554
- ownerType?: "provider" | "system" | undefined;
11608
+ ownerType?: "user" | "provider" | "system" | undefined;
11555
11609
  };
11556
11610
  output: {
11557
11611
  id: string;
@@ -12381,7 +12435,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12381
12435
  list: import("@trpc/server").TRPCQueryProcedure<{
12382
12436
  input: {
12383
12437
  status?: "read" | "unread" | "dismissed" | "all" | undefined;
12384
- category?: "data" | "system" | "ai" | "governance" | "inbox" | undefined;
12438
+ category?: "data" | "system" | "governance" | "ai" | "inbox" | undefined;
12385
12439
  limit?: number | undefined;
12386
12440
  offset?: number | undefined;
12387
12441
  };
@@ -12391,8 +12445,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12391
12445
  workspaceId: string | null;
12392
12446
  userId: string;
12393
12447
  type: string;
12394
- category: "data" | "system" | "ai" | "governance" | "inbox";
12395
- priority: "normal" | "low" | "high" | "urgent";
12448
+ category: "data" | "system" | "governance" | "ai" | "inbox";
12449
+ priority: "low" | "normal" | "high" | "urgent";
12396
12450
  title: string;
12397
12451
  body: string;
12398
12452
  icon: string | null;
@@ -12413,7 +12467,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12413
12467
  listAll: import("@trpc/server").TRPCQueryProcedure<{
12414
12468
  input: {
12415
12469
  status?: "read" | "unread" | "dismissed" | "all" | undefined;
12416
- category?: "data" | "system" | "ai" | "governance" | "inbox" | undefined;
12470
+ category?: "data" | "system" | "governance" | "ai" | "inbox" | undefined;
12417
12471
  limit?: number | undefined;
12418
12472
  offset?: number | undefined;
12419
12473
  };
@@ -12423,8 +12477,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12423
12477
  workspaceId: string | null;
12424
12478
  userId: string;
12425
12479
  type: string;
12426
- category: "data" | "system" | "ai" | "governance" | "inbox";
12427
- priority: "normal" | "low" | "high" | "urgent";
12480
+ category: "data" | "system" | "governance" | "ai" | "inbox";
12481
+ priority: "low" | "normal" | "high" | "urgent";
12428
12482
  title: string;
12429
12483
  body: string;
12430
12484
  icon: string | null;
@@ -12643,22 +12697,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12643
12697
  addPeer: import("@trpc/server").TRPCMutationProcedure<{
12644
12698
  input: {
12645
12699
  peerPodUrl: string;
12646
- direction: "push" | "pull";
12700
+ direction: "push" | "bidirectional" | "pull";
12647
12701
  label?: string | undefined;
12648
12702
  authToken?: string | undefined;
12649
12703
  workspaceIds?: string[] | undefined;
12704
+ localRole?: "primary" | "secondary" | "unset" | undefined;
12650
12705
  enabled?: boolean | undefined;
12651
12706
  };
12652
12707
  output: {
12653
- id: string;
12654
- updatedAt: Date;
12655
- createdAt: Date;
12656
- enabled: boolean;
12657
- peerPodUrl: string;
12658
- direction: string;
12659
- label: string | null;
12660
- authToken: string | null;
12661
- workspaceIds: string[] | null;
12708
+ peerId: string;
12662
12709
  };
12663
12710
  meta: object;
12664
12711
  }>;
@@ -12678,6 +12725,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12678
12725
  label?: string | undefined;
12679
12726
  authToken?: string | undefined;
12680
12727
  workspaceIds?: string[] | null | undefined;
12728
+ localRole?: "primary" | "secondary" | "unset" | undefined;
12681
12729
  enabled?: boolean | undefined;
12682
12730
  };
12683
12731
  output: {
@@ -12688,6 +12736,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12688
12736
  label: string | null;
12689
12737
  authToken: string | null;
12690
12738
  workspaceIds: string[] | null;
12739
+ localRole: string | null;
12691
12740
  createdAt: Date;
12692
12741
  updatedAt: Date;
12693
12742
  };
@@ -12721,6 +12770,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12721
12770
  label: string | null;
12722
12771
  authToken: string | null;
12723
12772
  workspaceIds: string[] | null;
12773
+ localRole: string | null;
12724
12774
  }[];
12725
12775
  meta: object;
12726
12776
  }>;
@@ -13336,7 +13386,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
13336
13386
  id: string;
13337
13387
  title: string;
13338
13388
  recipeId: string | null;
13339
- runStatus: "success" | "running" | "failed" | "cancelled" | null;
13389
+ runStatus: "success" | "failed" | "running" | "cancelled" | null;
13340
13390
  runSteps: RunStep[];
13341
13391
  runStartedAt: string | null;
13342
13392
  runFinishedAt: string | null;
@@ -14005,6 +14055,229 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
14005
14055
  meta: object;
14006
14056
  }>;
14007
14057
  }>>;
14058
+ focusSessions: import("@trpc/server").TRPCBuiltRouter<{
14059
+ ctx: Context;
14060
+ meta: object;
14061
+ errorShape: {
14062
+ message: string;
14063
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
14064
+ data: import("@trpc/server").TRPCDefaultErrorData;
14065
+ };
14066
+ transformer: true;
14067
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
14068
+ list: import("@trpc/server").TRPCQueryProcedure<{
14069
+ input: {
14070
+ workspaceId: string;
14071
+ status?: "active" | "paused" | "closed" | "all" | undefined;
14072
+ limit?: number | undefined;
14073
+ };
14074
+ output: {
14075
+ id: string;
14076
+ workspaceId: string;
14077
+ userId: string;
14078
+ correlationId: string | null;
14079
+ goal: string;
14080
+ status: "active" | "paused" | "closed";
14081
+ templateId: string | null;
14082
+ expectedOutputs: unknown;
14083
+ channelId: string | null;
14084
+ progress: number | null;
14085
+ agentIds: string[] | null;
14086
+ closedAt: Date | null;
14087
+ contextReport: unknown;
14088
+ planReport: unknown;
14089
+ executionLog: unknown;
14090
+ verificationReport: unknown;
14091
+ startedAt: Date;
14092
+ createdAt: Date;
14093
+ updatedAt: Date;
14094
+ }[];
14095
+ meta: object;
14096
+ }>;
14097
+ listAll: import("@trpc/server").TRPCQueryProcedure<{
14098
+ input: {
14099
+ status?: "active" | "paused" | "closed" | "all" | undefined;
14100
+ limit?: number | undefined;
14101
+ };
14102
+ output: {
14103
+ id: string;
14104
+ workspaceId: string;
14105
+ userId: string;
14106
+ correlationId: string | null;
14107
+ goal: string;
14108
+ status: "active" | "paused" | "closed";
14109
+ templateId: string | null;
14110
+ expectedOutputs: unknown;
14111
+ channelId: string | null;
14112
+ progress: number | null;
14113
+ agentIds: string[] | null;
14114
+ closedAt: Date | null;
14115
+ contextReport: unknown;
14116
+ planReport: unknown;
14117
+ executionLog: unknown;
14118
+ verificationReport: unknown;
14119
+ startedAt: Date;
14120
+ createdAt: Date;
14121
+ updatedAt: Date;
14122
+ }[];
14123
+ meta: object;
14124
+ }>;
14125
+ get: import("@trpc/server").TRPCQueryProcedure<{
14126
+ input: {
14127
+ id: string;
14128
+ };
14129
+ output: {
14130
+ userId: string;
14131
+ workspaceId: string;
14132
+ id: string;
14133
+ updatedAt: Date;
14134
+ createdAt: Date;
14135
+ correlationId: string | null;
14136
+ channelId: string | null;
14137
+ startedAt: Date;
14138
+ status: "active" | "paused" | "closed";
14139
+ goal: string;
14140
+ templateId: string | null;
14141
+ expectedOutputs: unknown;
14142
+ progress: number | null;
14143
+ agentIds: string[] | null;
14144
+ closedAt: Date | null;
14145
+ contextReport: unknown;
14146
+ planReport: unknown;
14147
+ executionLog: unknown;
14148
+ verificationReport: unknown;
14149
+ };
14150
+ meta: object;
14151
+ }>;
14152
+ getByCorrelationId: import("@trpc/server").TRPCQueryProcedure<{
14153
+ input: {
14154
+ correlationId: string;
14155
+ };
14156
+ output: {
14157
+ userId: string;
14158
+ workspaceId: string;
14159
+ id: string;
14160
+ updatedAt: Date;
14161
+ createdAt: Date;
14162
+ correlationId: string | null;
14163
+ channelId: string | null;
14164
+ startedAt: Date;
14165
+ status: "active" | "paused" | "closed";
14166
+ goal: string;
14167
+ templateId: string | null;
14168
+ expectedOutputs: unknown;
14169
+ progress: number | null;
14170
+ agentIds: string[] | null;
14171
+ closedAt: Date | null;
14172
+ contextReport: unknown;
14173
+ planReport: unknown;
14174
+ executionLog: unknown;
14175
+ verificationReport: unknown;
14176
+ };
14177
+ meta: object;
14178
+ }>;
14179
+ create: import("@trpc/server").TRPCMutationProcedure<{
14180
+ input: {
14181
+ workspaceId: string;
14182
+ goal: string;
14183
+ templateId?: string | undefined;
14184
+ expectedOutputs?: {
14185
+ kind: string;
14186
+ label: string;
14187
+ icon?: string | undefined;
14188
+ }[] | undefined;
14189
+ channelId?: string | undefined;
14190
+ agentIds?: string[] | undefined;
14191
+ };
14192
+ output: {
14193
+ userId: string;
14194
+ workspaceId: string;
14195
+ id: string;
14196
+ updatedAt: Date;
14197
+ createdAt: Date;
14198
+ correlationId: string | null;
14199
+ channelId: string | null;
14200
+ startedAt: Date;
14201
+ status: "active" | "paused" | "closed";
14202
+ goal: string;
14203
+ templateId: string | null;
14204
+ expectedOutputs: unknown;
14205
+ progress: number | null;
14206
+ agentIds: string[] | null;
14207
+ closedAt: Date | null;
14208
+ contextReport: unknown;
14209
+ planReport: unknown;
14210
+ executionLog: unknown;
14211
+ verificationReport: unknown;
14212
+ };
14213
+ meta: object;
14214
+ }>;
14215
+ update: import("@trpc/server").TRPCMutationProcedure<{
14216
+ input: {
14217
+ id: string;
14218
+ status?: "active" | "paused" | "closed" | undefined;
14219
+ progress?: number | undefined;
14220
+ channelId?: string | undefined;
14221
+ correlationId?: string | undefined;
14222
+ goal?: string | undefined;
14223
+ agentIds?: string[] | undefined;
14224
+ expectedOutputs?: {
14225
+ kind: string;
14226
+ label: string;
14227
+ icon?: string | undefined;
14228
+ }[] | undefined;
14229
+ };
14230
+ output: {
14231
+ userId: string;
14232
+ workspaceId: string;
14233
+ id: string;
14234
+ updatedAt: Date;
14235
+ createdAt: Date;
14236
+ correlationId: string | null;
14237
+ channelId: string | null;
14238
+ startedAt: Date;
14239
+ status: "active" | "paused" | "closed";
14240
+ goal: string;
14241
+ templateId: string | null;
14242
+ expectedOutputs: unknown;
14243
+ progress: number | null;
14244
+ agentIds: string[] | null;
14245
+ closedAt: Date | null;
14246
+ contextReport: unknown;
14247
+ planReport: unknown;
14248
+ executionLog: unknown;
14249
+ verificationReport: unknown;
14250
+ };
14251
+ meta: object;
14252
+ }>;
14253
+ close: import("@trpc/server").TRPCMutationProcedure<{
14254
+ input: {
14255
+ id: string;
14256
+ };
14257
+ output: {
14258
+ userId: string;
14259
+ workspaceId: string;
14260
+ id: string;
14261
+ updatedAt: Date;
14262
+ createdAt: Date;
14263
+ correlationId: string | null;
14264
+ channelId: string | null;
14265
+ startedAt: Date;
14266
+ status: "active" | "paused" | "closed";
14267
+ goal: string;
14268
+ templateId: string | null;
14269
+ expectedOutputs: unknown;
14270
+ progress: number | null;
14271
+ agentIds: string[] | null;
14272
+ closedAt: Date | null;
14273
+ contextReport: unknown;
14274
+ planReport: unknown;
14275
+ executionLog: unknown;
14276
+ verificationReport: unknown;
14277
+ };
14278
+ meta: object;
14279
+ }>;
14280
+ }>>;
14008
14281
  }>>;
14009
14282
  export type AppRouter = typeof coreRouter;
14010
14283