@synap-core/api-types 1.15.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
@@ -92,12 +97,15 @@ export interface AgentMetadata {
92
97
  activePersonality?: string;
93
98
  }
94
99
  /**
95
- * Relations Schema - The Knowledge Graph Edges
100
+ * Shared provenance vocabulary for the uniform `created_by_kind` column added
101
+ * across mutation-bearing tables (Wave B3). Type-only — no import cycle.
96
102
  *
97
- * Links between entities, forming the knowledge graph.
98
- *
99
- * PostgreSQL-only schema with Row-Level Security (RLS) for multi-user support.
103
+ * NOTE: `cell_instances.createdByKind` (user|agent|system) and
104
+ * `messages.authorType` (human|ai_agent|external|bot) are PRE-EXISTING and kept
105
+ * as-is. This vocab (human|ai_agent|system matching `channel_members.memberKind`)
106
+ * is for the NEW provenance columns only.
100
107
  */
108
+ export type ProvenanceKind = "human" | "ai_agent" | "system";
101
109
  /**
102
110
  * The kind of object on one end of a relation edge.
103
111
  *
@@ -425,11 +433,62 @@ export interface AgentRoutingPolicy {
425
433
  /** Ordered rules; first match wins */
426
434
  rules?: AgentRoutingRule[];
427
435
  }
436
+ /**
437
+ * High-level purpose of a workspace inside a pod.
438
+ *
439
+ * `workspaceType` already exists as a promoted column for legacy operational
440
+ * filtering. `workspacePurpose` is the product-facing contract used by the
441
+ * browser and agents to understand how a workspace should be used.
442
+ */
443
+ export type WorkspacePurpose = "personal" | "project" | "agent" | "library" | "operational";
444
+ /**
445
+ * Discoverability/access mode for a workspace.
446
+ *
447
+ * Write access is still controlled by workspace_members + role permissions.
448
+ * `pod_visible` and `pod_joinable` only make the workspace discoverable/readable
449
+ * to authenticated users on the same data pod.
450
+ */
451
+ export type WorkspaceVisibility = "private" | "members" | "pod_visible" | "pod_joinable" | "public_link";
452
+ export type WorkspaceSourceRole = "provider" | "consumer" | "provider-consumer";
453
+ export interface WorkspaceDefaultSource {
454
+ workspaceId: string;
455
+ capability?: string;
456
+ profileSlug?: string;
457
+ label?: string;
458
+ }
428
459
  export interface WorkspaceSettings {
429
460
  defaultEntityTypes?: string[];
430
461
  theme?: string;
431
462
  aiEnabled?: boolean;
432
463
  allowExternalSharing?: boolean;
464
+ /**
465
+ * Product-facing purpose used by browser/apps/agents to resolve cross-workspace
466
+ * sources (e.g. a brand-library workspace serving artboards in a project).
467
+ */
468
+ workspacePurpose?: WorkspacePurpose;
469
+ /**
470
+ * Free-form subtype within the purpose, e.g. "brand-library",
471
+ * "research-library", "agent-lab".
472
+ */
473
+ workspaceSubtype?: string;
474
+ /**
475
+ * Discovery/read visibility. Defaults to "members" when absent.
476
+ */
477
+ workspaceVisibility?: WorkspaceVisibility;
478
+ /**
479
+ * Capability ids this workspace provides or consumes, e.g.
480
+ * "brand.library", "brand.assets", "research.sources", "agent.staging".
481
+ */
482
+ workspaceCapabilities?: string[];
483
+ /**
484
+ * Domain → role map. Example: { brand: "provider", research: "consumer" }.
485
+ */
486
+ sourceRoles?: Record<string, WorkspaceSourceRole>;
487
+ /**
488
+ * Domain/capability → default source workspace. Stored on consumer
489
+ * workspaces so features can resolve defaults without copying data.
490
+ */
491
+ defaultSources?: Record<string, WorkspaceDefaultSource>;
433
492
  /** External MCP servers whose tools will be available to AI agents in this workspace */
434
493
  mcpServers?: McpServerConfig[];
435
494
  layout?: WorkspaceLayoutConfig;
@@ -1179,6 +1238,28 @@ export type WidgetRendererType = "builtin" | "iframe" | "native" | "frame";
1179
1238
  * unspecified row can never write directly.
1180
1239
  */
1181
1240
  export type WidgetTrustLevel = "trusted" | "installed" | "generated";
1241
+ /**
1242
+ * Functional role of a widget/cell definition — what surface it targets.
1243
+ *
1244
+ * - "widget" → bento add-block picker item (the default)
1245
+ * - "view-renderer" → renders a typed view (e.g. custom kanban board)
1246
+ * - "entity-renderer" → renders a profile's entity detail page
1247
+ * - "panel" → side or floating panel surface
1248
+ */
1249
+ export type WidgetRole = "widget" | "view-renderer" | "entity-renderer" | "panel";
1250
+ /**
1251
+ * Content kind — the single de-conflated taxonomy for WHAT a cell renders. It
1252
+ * REPLACES `role` (which conflated content with placement). DISTINCT from
1253
+ * `rendererType` (the rendering MECHANISM: frame/builtin/iframe/native).
1254
+ * Mirrors `ContentKind` in `@synap-core/capabilities` (canonical copy).
1255
+ *
1256
+ * - "entity-detail" → renders ONE entity (its full page)
1257
+ * - "entity-profile" → renders the WHOLE profile/type (its dashboard / home)
1258
+ * - "collection" → renders a view of MANY entities
1259
+ * - "widget" → generic, content-agnostic — the DEFAULT; never a
1260
+ * profile assignment, only placeable
1261
+ */
1262
+ export type ContentKind = "entity-detail" | "entity-profile" | "collection" | "widget";
1182
1263
  export interface PodIntelligenceDefaults {
1183
1264
  chatModelId: string | null;
1184
1265
  reasoningModelId: string | null;
@@ -1237,6 +1318,24 @@ export type CellInstanceCreatedByKind = "user" | "agent" | "system";
1237
1318
  * through `checkPermissionOrPropose()`.
1238
1319
  */
1239
1320
  export type CellInstanceTrustLevel = "trusted" | "installed" | "generated";
1321
+ /**
1322
+ * AI Providers Schema
1323
+ *
1324
+ * Pod-level registry of AI model providers. Source of truth for provider
1325
+ * configuration — decoupled from any specific IntelligenceSystem or workspace.
1326
+ * The backend syncs this to the active IS on every change.
1327
+ *
1328
+ * API keys are stored server-side encrypted via encryptServiceKey/decryptServiceKey.
1329
+ */
1330
+ export interface AiProviderModelEntry {
1331
+ id: string;
1332
+ tier?: "free" | "balanced" | "advanced" | "complex";
1333
+ contextWindow?: number;
1334
+ supportsTools?: boolean;
1335
+ supportsJson?: boolean;
1336
+ costPer1MInput?: number;
1337
+ costPer1MOutput?: number;
1338
+ }
1240
1339
  /**
1241
1340
  * EventRecord - Database representation of an event
1242
1341
  *
@@ -1575,6 +1674,27 @@ export interface ProposalReviewModel {
1575
1674
  graph?: ProposalReviewGraph;
1576
1675
  events: ProposalReviewEvent[];
1577
1676
  }
1677
+ /**
1678
+ * Record of what a proposal MATERIALIZED on approval.
1679
+ *
1680
+ * Stamped onto `proposals.data.materialized` by the approve flow so a later
1681
+ * `revert` can compute the exact inverse without a schema change. This is the
1682
+ * canonical "what did approval produce" record:
1683
+ * - inline entity-create + composite-create mint FRESH ids (≠ proposal.targetId)
1684
+ * so the created ids would otherwise be unrecoverable from the row alone;
1685
+ * - relation/document ids created as a side effect are captured here too.
1686
+ * Branches whose materialized id is deterministic from the row (generic
1687
+ * `.validated` create/update where subjectId is known, document create where
1688
+ * documentId === targetId) do not strictly need this, but populate it when cheap.
1689
+ */
1690
+ export interface ProposalMaterializedRecord {
1691
+ /** Entity ids CREATED by approval (revert → soft/hard delete each). */
1692
+ entityIds?: string[];
1693
+ /** Relation ids CREATED by approval (revert → delete each). */
1694
+ relationIds?: string[];
1695
+ /** Document ids CREATED by approval (revert → delete each). */
1696
+ documentIds?: string[];
1697
+ }
1578
1698
  declare enum MessageLinkTargetType {
1579
1699
  ENTITY = "entity",
1580
1700
  DOCUMENT = "document",
@@ -2155,7 +2275,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2155
2275
  log: import("@trpc/server").TRPCMutationProcedure<{
2156
2276
  input: {
2157
2277
  subjectId: string;
2158
- subjectType: "user" | "message" | "apiKey" | "entity" | "system" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project";
2278
+ subjectType: "user" | "message" | "apiKey" | "system" | "entity" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project";
2159
2279
  eventType: string;
2160
2280
  data: Record<string, unknown>;
2161
2281
  version: number;
@@ -2172,7 +2292,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2172
2292
  since?: unknown;
2173
2293
  until?: unknown;
2174
2294
  type?: string | undefined;
2175
- subjectType?: "user" | "message" | "apiKey" | "entity" | "system" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project" | undefined;
2295
+ subjectType?: "user" | "message" | "apiKey" | "system" | "entity" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project" | undefined;
2176
2296
  limit?: number | undefined;
2177
2297
  lean?: boolean | undefined;
2178
2298
  };
@@ -2200,7 +2320,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2200
2320
  input: {
2201
2321
  userId?: string | undefined;
2202
2322
  eventType?: string | undefined;
2203
- subjectType?: "user" | "message" | "apiKey" | "entity" | "system" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project" | undefined;
2323
+ subjectType?: "user" | "message" | "apiKey" | "system" | "entity" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project" | undefined;
2204
2324
  subjectId?: string | undefined;
2205
2325
  correlationId?: string | undefined;
2206
2326
  fromDate?: Date | undefined;
@@ -2216,7 +2336,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2216
2336
  input: {
2217
2337
  userId?: string | undefined;
2218
2338
  eventType?: string | undefined;
2219
- subjectType?: "user" | "message" | "apiKey" | "entity" | "system" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project" | undefined;
2339
+ subjectType?: "user" | "message" | "apiKey" | "system" | "entity" | "chat" | "workspace" | "member" | "document" | "task" | "relation" | "project" | undefined;
2220
2340
  fromDate?: Date | undefined;
2221
2341
  toDate?: Date | undefined;
2222
2342
  workspaceId?: string | undefined;
@@ -2244,6 +2364,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2244
2364
  context?: Record<string, unknown> | undefined;
2245
2365
  };
2246
2366
  output: {
2367
+ propertiesDropped?: true | undefined;
2368
+ degradedFrom?: string | undefined;
2247
2369
  success: boolean;
2248
2370
  entityId: string;
2249
2371
  profileSlug: string;
@@ -2267,6 +2389,33 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2267
2389
  }[] | undefined;
2268
2390
  };
2269
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;
2270
2419
  proposals: {
2271
2420
  tempId: string;
2272
2421
  profileSlug: string;
@@ -2328,6 +2477,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2328
2477
  };
2329
2478
  output: {
2330
2479
  created: {
2480
+ propertiesDropped?: true | undefined;
2481
+ degradedFrom?: string | undefined;
2331
2482
  tempId: string;
2332
2483
  entityId: string;
2333
2484
  profileSlug: string;
@@ -2473,6 +2624,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2473
2624
  profileSlug?: string | undefined;
2474
2625
  includeDescendants?: boolean | undefined;
2475
2626
  globalOnly?: boolean | undefined;
2627
+ sourceProposalId?: string | undefined;
2476
2628
  };
2477
2629
  output: {
2478
2630
  items: {
@@ -2724,11 +2876,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2724
2876
  description?: string | undefined;
2725
2877
  documentId?: string | null | undefined;
2726
2878
  properties?: Record<string, unknown> | undefined;
2879
+ deleteProperties?: string[] | undefined;
2727
2880
  profileSlug?: string | undefined;
2728
2881
  source?: "user" | "system" | "ai" | "agent" | "intelligence" | "extension" | undefined;
2729
2882
  reasoning?: string | undefined;
2730
2883
  agentUserId?: string | undefined;
2731
2884
  global?: boolean | undefined;
2885
+ targetWorkspaceId?: string | undefined;
2732
2886
  viewContext?: {
2733
2887
  viewId?: string | undefined;
2734
2888
  typeKey?: string | undefined;
@@ -2843,12 +2997,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2843
2997
  id: string;
2844
2998
  type: string;
2845
2999
  updatedAt: Date;
3000
+ createdByUserId: string | null;
2846
3001
  createdAt: Date;
3002
+ correlationId: string | null;
2847
3003
  profileId: string | null;
2848
3004
  title: string | null;
2849
3005
  preview: string | null;
2850
3006
  documentId: string | null;
2851
3007
  version: number;
3008
+ createdByKind: ProvenanceKind | null;
3009
+ agentUserId: string | null;
3010
+ sourceProposalId: string | null;
2852
3011
  deletedAt: Date | null;
2853
3012
  };
2854
3013
  meta: object;
@@ -2898,7 +3057,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2898
3057
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2899
3058
  resolveOrCreateChannel: import("@trpc/server").TRPCQueryProcedure<{
2900
3059
  input: {
2901
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab";
3060
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab";
2902
3061
  workspaceId?: string | undefined;
2903
3062
  contextObjectType?: "user" | "entity" | "external" | "workspace" | "document" | "view" | "task" | "project" | undefined;
2904
3063
  contextObjectId?: string | undefined;
@@ -2939,7 +3098,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2939
3098
  externalSource: string | null;
2940
3099
  status: "active" | "merged" | "archived";
2941
3100
  scope: "user" | "pod" | "workspace";
2942
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3101
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
2943
3102
  feedScope: "user" | "workspace" | null;
2944
3103
  contextObjectType: string | null;
2945
3104
  contextObjectId: string | null;
@@ -2969,7 +3128,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
2969
3128
  createAgentCollabChannel: import("@trpc/server").TRPCMutationProcedure<{
2970
3129
  input: {
2971
3130
  topic: string;
2972
- visibility?: "open" | "closed" | undefined;
3131
+ visibility?: "closed" | "open" | undefined;
2973
3132
  participants?: string[] | undefined;
2974
3133
  title?: string | undefined;
2975
3134
  };
@@ -3060,7 +3219,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3060
3219
  externalSource: string | null;
3061
3220
  status: "active" | "merged" | "archived";
3062
3221
  scope: "user" | "pod" | "workspace";
3063
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3222
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3064
3223
  feedScope: "user" | "workspace" | null;
3065
3224
  contextObjectType: string | null;
3066
3225
  contextObjectId: string | null;
@@ -3092,6 +3251,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3092
3251
  output: {
3093
3252
  messages: {
3094
3253
  userId: string;
3254
+ sessionId: string | null;
3095
3255
  id: string;
3096
3256
  timestamp: Date;
3097
3257
  metadata: {
@@ -3165,8 +3325,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3165
3325
  content: string;
3166
3326
  channelId: string;
3167
3327
  parentId: string | null;
3168
- role: "user" | "assistant" | "system";
3169
- authorType: "external" | "human" | "ai_agent" | "bot";
3328
+ role: "user" | "system" | "assistant";
3329
+ authorType: "human" | "ai_agent" | "external" | "bot";
3170
3330
  messageCategory: "chat" | "comment" | "system_notification" | "review";
3171
3331
  externalSource: string | null;
3172
3332
  inboxItemId: string | null;
@@ -3174,7 +3334,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3174
3334
  routedSource: "orchestrator" | "mention" | "direct" | null;
3175
3335
  previousHash: string | null;
3176
3336
  hash: string;
3177
- sessionId: string | null;
3178
3337
  }[];
3179
3338
  nextCursor: string | undefined;
3180
3339
  hasMore: boolean;
@@ -3218,7 +3377,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3218
3377
  listChannels: import("@trpc/server").TRPCQueryProcedure<{
3219
3378
  input: {
3220
3379
  workspaceId?: string | undefined;
3221
- channelType?: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | undefined;
3380
+ channelType?: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | undefined;
3222
3381
  limit?: number | undefined;
3223
3382
  contextObjectId?: string | undefined;
3224
3383
  contextObjectType?: "entity" | "document" | "view" | undefined;
@@ -3229,6 +3388,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3229
3388
  channels: (Channel & {
3230
3389
  hasAssistantMessage: boolean;
3231
3390
  origin: string;
3391
+ unreadCount: number;
3232
3392
  })[];
3233
3393
  };
3234
3394
  meta: object;
@@ -3245,6 +3405,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3245
3405
  items: (Channel & {
3246
3406
  hasAssistantMessage: boolean;
3247
3407
  origin: string;
3408
+ unreadCount: number;
3248
3409
  })[];
3249
3410
  pagination: {
3250
3411
  hasMore: boolean;
@@ -3265,6 +3426,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3265
3426
  items: (Channel & {
3266
3427
  hasAssistantMessage: boolean;
3267
3428
  origin: string;
3429
+ unreadCount: number;
3268
3430
  })[];
3269
3431
  pagination: {
3270
3432
  hasMore: boolean;
@@ -3284,6 +3446,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3284
3446
  items: (Channel & {
3285
3447
  hasAssistantMessage: boolean;
3286
3448
  origin: string;
3449
+ unreadCount: number;
3287
3450
  })[];
3288
3451
  pagination: {
3289
3452
  hasMore: boolean;
@@ -3303,6 +3466,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3303
3466
  items: (Channel & {
3304
3467
  hasAssistantMessage: boolean;
3305
3468
  origin: string;
3469
+ unreadCount: number;
3306
3470
  })[];
3307
3471
  pagination: {
3308
3472
  hasMore: boolean;
@@ -3353,7 +3517,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3353
3517
  externalSource: string | null;
3354
3518
  status: "active" | "merged" | "archived";
3355
3519
  scope: "user" | "pod" | "workspace";
3356
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3520
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3357
3521
  feedScope: "user" | "workspace" | null;
3358
3522
  contextObjectType: string | null;
3359
3523
  contextObjectId: string | null;
@@ -3419,7 +3583,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3419
3583
  externalSource: string | null;
3420
3584
  status: "active" | "merged" | "archived";
3421
3585
  scope: "user" | "pod" | "workspace";
3422
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3586
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3423
3587
  feedScope: "user" | "workspace" | null;
3424
3588
  contextObjectType: string | null;
3425
3589
  contextObjectId: string | null;
@@ -3445,11 +3609,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3445
3609
  id: string;
3446
3610
  createdAt: Date;
3447
3611
  channelId: string;
3612
+ relevanceScore: number | null;
3448
3613
  objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
3449
3614
  objectId: string;
3450
3615
  relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
3451
3616
  conflictStatus: "pending" | "none" | "resolved";
3452
- relevanceScore: number | null;
3453
3617
  }[] | undefined;
3454
3618
  branchTree: any;
3455
3619
  };
@@ -3528,7 +3692,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3528
3692
  externalSource: string | null;
3529
3693
  status: "active" | "merged" | "archived";
3530
3694
  scope: "user" | "pod" | "workspace";
3531
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3695
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3532
3696
  feedScope: "user" | "workspace" | null;
3533
3697
  contextObjectType: string | null;
3534
3698
  contextObjectId: string | null;
@@ -3558,7 +3722,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3558
3722
  externalSource: string | null;
3559
3723
  status: "active" | "merged" | "archived";
3560
3724
  scope: "user" | "pod" | "workspace";
3561
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3725
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3562
3726
  feedScope: "user" | "workspace" | null;
3563
3727
  contextObjectType: string | null;
3564
3728
  contextObjectId: string | null;
@@ -3588,7 +3752,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3588
3752
  externalSource: string | null;
3589
3753
  status: "active" | "merged" | "archived";
3590
3754
  scope: "user" | "pod" | "workspace";
3591
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3755
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3592
3756
  feedScope: "user" | "workspace" | null;
3593
3757
  contextObjectType: string | null;
3594
3758
  contextObjectId: string | null;
@@ -3624,11 +3788,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3624
3788
  id: string;
3625
3789
  createdAt: Date;
3626
3790
  channelId: string;
3791
+ relevanceScore: number | null;
3627
3792
  objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
3628
3793
  objectId: string;
3629
3794
  relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
3630
3795
  conflictStatus: "pending" | "none" | "resolved";
3631
- relevanceScore: number | null;
3632
3796
  }[];
3633
3797
  entities: {
3634
3798
  userId: string;
@@ -3637,11 +3801,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3637
3801
  id: string;
3638
3802
  createdAt: Date;
3639
3803
  channelId: string;
3804
+ relevanceScore: number | null;
3640
3805
  objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
3641
3806
  objectId: string;
3642
3807
  relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
3643
3808
  conflictStatus: "pending" | "none" | "resolved";
3644
- relevanceScore: number | null;
3645
3809
  }[];
3646
3810
  documents: {
3647
3811
  userId: string;
@@ -3650,11 +3814,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3650
3814
  id: string;
3651
3815
  createdAt: Date;
3652
3816
  channelId: string;
3817
+ relevanceScore: number | null;
3653
3818
  objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
3654
3819
  objectId: string;
3655
3820
  relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
3656
3821
  conflictStatus: "pending" | "none" | "resolved";
3657
- relevanceScore: number | null;
3658
3822
  }[];
3659
3823
  };
3660
3824
  meta: object;
@@ -3753,7 +3917,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3753
3917
  externalSource: string | null;
3754
3918
  status: "active" | "merged" | "archived";
3755
3919
  scope: "user" | "pod" | "workspace";
3756
- channelType: "external" | "personal" | "thread" | "sub_thread" | "feed" | "agent_collab" | "group";
3920
+ channelType: "external" | "personal" | "feed" | "thread" | "sub_thread" | "agent_collab" | "group";
3757
3921
  feedScope: "user" | "workspace" | null;
3758
3922
  contextObjectType: string | null;
3759
3923
  contextObjectId: string | null;
@@ -3841,6 +4005,40 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3841
4005
  };
3842
4006
  meta: object;
3843
4007
  }>;
4008
+ toggleReaction: import("@trpc/server").TRPCMutationProcedure<{
4009
+ input: {
4010
+ messageId: string;
4011
+ emoji: string;
4012
+ };
4013
+ output: {
4014
+ action: "removed";
4015
+ } | {
4016
+ action: "added";
4017
+ };
4018
+ meta: object;
4019
+ }>;
4020
+ getChannelReactions: import("@trpc/server").TRPCQueryProcedure<{
4021
+ input: {
4022
+ messageIds: string[];
4023
+ };
4024
+ output: {
4025
+ reactions: Record<string, {
4026
+ emoji: string;
4027
+ count: number;
4028
+ reactedByMe: boolean;
4029
+ }[]>;
4030
+ };
4031
+ meta: object;
4032
+ }>;
4033
+ markChannelRead: import("@trpc/server").TRPCMutationProcedure<{
4034
+ input: {
4035
+ channelId: string;
4036
+ };
4037
+ output: {
4038
+ ok: boolean;
4039
+ };
4040
+ meta: object;
4041
+ }>;
3844
4042
  }>>;
3845
4043
  proposals: import("@trpc/server").TRPCBuiltRouter<{
3846
4044
  ctx: Context;
@@ -3860,6 +4058,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3860
4058
  targetType?: "entity" | "document" | "view" | "whiteboard" | "profile" | undefined;
3861
4059
  targetId?: string | undefined;
3862
4060
  threadId?: string | undefined;
4061
+ correlationId?: string | undefined;
4062
+ sessionId?: string | undefined;
3863
4063
  agentUserId?: string | undefined;
3864
4064
  agentOnly?: boolean | undefined;
3865
4065
  includeExpired?: boolean | undefined;
@@ -3867,15 +4067,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3867
4067
  cursor?: string | undefined;
3868
4068
  };
3869
4069
  output: {
3870
- items: ({
4070
+ items: {
4071
+ viewerCanReview: boolean;
3871
4072
  workspaceId: string | null;
3872
4073
  sourceMessageId: string | null;
4074
+ sessionId: string | null;
3873
4075
  id: string;
3874
4076
  data: unknown;
3875
4077
  updatedAt: Date;
3876
4078
  createdAt: Date;
3877
4079
  correlationId: string | null;
3878
- status: "approved" | "pending" | "rejected" | "auto_approved";
4080
+ agentUserId: string | null;
4081
+ status: "approved" | "pending" | "rejected" | "auto_approved" | "reverted";
3879
4082
  expiresAt: Date | null;
3880
4083
  createdBy: string | null;
3881
4084
  threadId: string | null;
@@ -3883,18 +4086,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3883
4086
  targetId: string;
3884
4087
  proposalType: string;
3885
4088
  commandRunId: string | null;
3886
- agentUserId: string | null;
3887
4089
  requestedEventId: string | null;
3888
4090
  reviewedBy: string | null;
3889
4091
  reviewedAt: Date | null;
3890
4092
  rejectionReason: string | null;
3891
4093
  comments: unknown;
3892
- } & {
3893
4094
  request: UpdateRequest;
3894
4095
  authorName?: string;
3895
4096
  targetName?: string;
3896
4097
  review: ProposalReviewModel;
3897
- })[];
4098
+ }[];
3898
4099
  pagination: {
3899
4100
  nextCursor: string | undefined;
3900
4101
  hasMore: boolean;
@@ -3902,15 +4103,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3902
4103
  limit: number;
3903
4104
  offset: number;
3904
4105
  };
3905
- proposals: ({
4106
+ proposals: {
4107
+ viewerCanReview: boolean;
3906
4108
  workspaceId: string | null;
3907
4109
  sourceMessageId: string | null;
4110
+ sessionId: string | null;
3908
4111
  id: string;
3909
4112
  data: unknown;
3910
4113
  updatedAt: Date;
3911
4114
  createdAt: Date;
3912
4115
  correlationId: string | null;
3913
- status: "approved" | "pending" | "rejected" | "auto_approved";
4116
+ agentUserId: string | null;
4117
+ status: "approved" | "pending" | "rejected" | "auto_approved" | "reverted";
3914
4118
  expiresAt: Date | null;
3915
4119
  createdBy: string | null;
3916
4120
  threadId: string | null;
@@ -3918,18 +4122,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3918
4122
  targetId: string;
3919
4123
  proposalType: string;
3920
4124
  commandRunId: string | null;
3921
- agentUserId: string | null;
3922
4125
  requestedEventId: string | null;
3923
4126
  reviewedBy: string | null;
3924
4127
  reviewedAt: Date | null;
3925
4128
  rejectionReason: string | null;
3926
4129
  comments: unknown;
3927
- } & {
3928
4130
  request: UpdateRequest;
3929
4131
  authorName?: string;
3930
4132
  targetName?: string;
3931
4133
  review: ProposalReviewModel;
3932
- })[];
4134
+ }[];
3933
4135
  };
3934
4136
  meta: object;
3935
4137
  }>;
@@ -3940,12 +4142,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3940
4142
  output: {
3941
4143
  workspaceId: string | null;
3942
4144
  sourceMessageId: string | null;
4145
+ sessionId: string | null;
3943
4146
  id: string;
3944
4147
  data: unknown;
3945
4148
  updatedAt: Date;
3946
4149
  createdAt: Date;
3947
4150
  correlationId: string | null;
3948
- status: "approved" | "pending" | "rejected" | "auto_approved";
4151
+ agentUserId: string | null;
4152
+ status: "approved" | "pending" | "rejected" | "auto_approved" | "reverted";
3949
4153
  expiresAt: Date | null;
3950
4154
  createdBy: string | null;
3951
4155
  threadId: string | null;
@@ -3953,7 +4157,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3953
4157
  targetId: string;
3954
4158
  proposalType: string;
3955
4159
  commandRunId: string | null;
3956
- agentUserId: string | null;
3957
4160
  requestedEventId: string | null;
3958
4161
  reviewedBy: string | null;
3959
4162
  reviewedAt: Date | null;
@@ -3994,6 +4197,23 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3994
4197
  };
3995
4198
  meta: object;
3996
4199
  }>;
4200
+ revert: import("@trpc/server").TRPCMutationProcedure<{
4201
+ input: {
4202
+ proposalId: string;
4203
+ reason?: string | undefined;
4204
+ };
4205
+ output: {
4206
+ success: boolean;
4207
+ reverted: ProposalMaterializedRecord;
4208
+ alreadyReverted: boolean;
4209
+ } | {
4210
+ partialFailures?: string[] | undefined;
4211
+ success: boolean;
4212
+ reverted: ProposalMaterializedRecord;
4213
+ alreadyReverted?: undefined;
4214
+ };
4215
+ meta: object;
4216
+ }>;
3997
4217
  batchApprove: import("@trpc/server").TRPCMutationProcedure<{
3998
4218
  input: {
3999
4219
  proposalIds: string[];
@@ -4287,7 +4507,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4287
4507
  output: {
4288
4508
  timestamp: string;
4289
4509
  health: {
4290
- status: "healthy" | "degraded" | "critical";
4510
+ status: "degraded" | "healthy" | "critical";
4291
4511
  errorRate: number;
4292
4512
  };
4293
4513
  throughput: {
@@ -5287,7 +5507,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5287
5507
  input: {
5288
5508
  title: string;
5289
5509
  content?: string | undefined;
5290
- type?: "code" | "text" | "markdown" | "pdf" | "docx" | undefined;
5510
+ type?: "code" | "text" | "markdown" | "pdf" | "docx" | "html" | undefined;
5291
5511
  projectId?: string | undefined;
5292
5512
  workspaceId?: string | undefined;
5293
5513
  };
@@ -5303,7 +5523,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5303
5523
  }>;
5304
5524
  upload: import("@trpc/server").TRPCMutationProcedure<{
5305
5525
  input: {
5306
- type: "code" | "text" | "markdown" | "pdf" | "docx";
5526
+ type: "code" | "text" | "markdown" | "pdf" | "docx" | "html";
5307
5527
  content: string;
5308
5528
  title?: string | undefined;
5309
5529
  language?: string | undefined;
@@ -5339,6 +5559,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5339
5559
  workingState: string | null;
5340
5560
  workingStateUpdatedAt: Date | null;
5341
5561
  metadata: unknown;
5562
+ createdByKind: ProvenanceKind | null;
5563
+ createdByUserId: string | null;
5564
+ agentUserId: string | null;
5565
+ sourceProposalId: string | null;
5566
+ correlationId: string | null;
5342
5567
  createdAt: Date;
5343
5568
  updatedAt: Date;
5344
5569
  deletedAt: Date | null;
@@ -5395,6 +5620,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5395
5620
  message: string | null;
5396
5621
  createdBy: string;
5397
5622
  createdAt: Date;
5623
+ size: number;
5624
+ mimeType: string | null;
5625
+ checksum: string | null;
5626
+ hasStoredSnapshot: boolean;
5398
5627
  }[];
5399
5628
  latest: {
5400
5629
  currentVersion: number;
@@ -5419,12 +5648,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5419
5648
  versionId: string;
5420
5649
  };
5421
5650
  output: {
5651
+ content: string;
5422
5652
  id: string;
5423
5653
  message: string | null;
5424
5654
  createdAt: Date;
5425
5655
  documentId: string;
5426
5656
  version: number;
5427
- content: string;
5657
+ storageUrl: string | null;
5658
+ storageKey: string | null;
5659
+ size: number;
5660
+ mimeType: string | null;
5661
+ checksum: string | null;
5428
5662
  author: string;
5429
5663
  authorId: string;
5430
5664
  };
@@ -5456,7 +5690,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5456
5690
  list: import("@trpc/server").TRPCQueryProcedure<{
5457
5691
  input: {
5458
5692
  projectId?: string | undefined;
5459
- type?: "code" | "text" | "markdown" | "pdf" | "docx" | undefined;
5693
+ type?: "code" | "text" | "markdown" | "pdf" | "docx" | "html" | undefined;
5460
5694
  limit?: number | undefined;
5461
5695
  };
5462
5696
  output: {
@@ -5476,6 +5710,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5476
5710
  workingState: string | null;
5477
5711
  workingStateUpdatedAt: Date | null;
5478
5712
  metadata: unknown;
5713
+ createdByKind: ProvenanceKind | null;
5714
+ createdByUserId: string | null;
5715
+ agentUserId: string | null;
5716
+ sourceProposalId: string | null;
5717
+ correlationId: string | null;
5479
5718
  createdAt: Date;
5480
5719
  updatedAt: Date;
5481
5720
  deletedAt: Date | null;
@@ -5839,6 +6078,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5839
6078
  description?: string | undefined;
5840
6079
  version?: string | undefined;
5841
6080
  pricing?: "custom" | "enterprise" | "free" | "premium" | undefined;
6081
+ providerType?: "custom" | "openai" | "anthropic" | "self-hosted" | undefined;
5842
6082
  metadata?: Record<string, unknown> | undefined;
5843
6083
  };
5844
6084
  output: {
@@ -5878,6 +6118,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5878
6118
  version: string | null;
5879
6119
  capabilities: string[];
5880
6120
  pricing: string | null;
6121
+ providerType: string | null;
6122
+ metadata: Record<string, unknown> | null;
5881
6123
  status: string;
5882
6124
  enabled: boolean;
5883
6125
  createdAt: Date;
@@ -6432,7 +6674,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6432
6674
  id: string;
6433
6675
  errorMessage: string | null;
6434
6676
  startedAt: Date;
6435
- status: "completed" | "running" | "failed";
6677
+ status: "completed" | "failed" | "running";
6436
6678
  threadId: string;
6437
6679
  commandId: string;
6438
6680
  permissionsSnapshot: Record<string, unknown> | null;
@@ -6458,7 +6700,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6458
6700
  id: string;
6459
6701
  errorMessage: string | null;
6460
6702
  startedAt: Date;
6461
- status: "completed" | "running" | "failed";
6703
+ status: "completed" | "failed" | "running";
6462
6704
  threadId: string;
6463
6705
  commandId: string;
6464
6706
  permissionsSnapshot: Record<string, unknown> | null;
@@ -6986,7 +7228,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6986
7228
  id: string;
6987
7229
  type: string;
6988
7230
  updatedAt: Date;
7231
+ createdByUserId: string | null;
6989
7232
  createdAt: Date;
7233
+ correlationId: string | null;
6990
7234
  profileId: string | null;
6991
7235
  title: string | null;
6992
7236
  preview: string | null;
@@ -6994,6 +7238,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
6994
7238
  properties: unknown;
6995
7239
  systemData: unknown;
6996
7240
  version: number;
7241
+ createdByKind: ProvenanceKind | null;
7242
+ agentUserId: string | null;
7243
+ sourceProposalId: string | null;
6997
7244
  deletedAt: Date | null;
6998
7245
  }[];
6999
7246
  };
@@ -7032,8 +7279,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7032
7279
  workspaceId: string | null;
7033
7280
  id: string;
7034
7281
  type: string;
7282
+ createdByUserId: string | null;
7035
7283
  createdAt: Date;
7036
7284
  metadata: unknown;
7285
+ correlationId: string | null;
7286
+ createdByKind: ProvenanceKind | null;
7287
+ agentUserId: string | null;
7288
+ sourceProposalId: string | null;
7037
7289
  sourceEntityId: string | null;
7038
7290
  targetEntityId: string | null;
7039
7291
  sourceKind: RelationEndpointKind;
@@ -7071,8 +7323,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7071
7323
  workspaceId: string | null;
7072
7324
  id: string;
7073
7325
  type: string;
7326
+ createdByUserId: string | null;
7074
7327
  createdAt: Date;
7075
7328
  metadata: unknown;
7329
+ correlationId: string | null;
7330
+ createdByKind: ProvenanceKind | null;
7331
+ agentUserId: string | null;
7332
+ sourceProposalId: string | null;
7076
7333
  sourceEntityId: string | null;
7077
7334
  targetEntityId: string | null;
7078
7335
  sourceKind: RelationEndpointKind;
@@ -7097,7 +7354,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7097
7354
  id: string;
7098
7355
  type: string;
7099
7356
  updatedAt: Date;
7357
+ createdByUserId: string | null;
7100
7358
  createdAt: Date;
7359
+ correlationId: string | null;
7101
7360
  profileId: string | null;
7102
7361
  title: string | null;
7103
7362
  preview: string | null;
@@ -7105,6 +7364,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7105
7364
  properties: unknown;
7106
7365
  systemData: unknown;
7107
7366
  version: number;
7367
+ createdByKind: ProvenanceKind | null;
7368
+ agentUserId: string | null;
7369
+ sourceProposalId: string | null;
7108
7370
  deletedAt: Date | null;
7109
7371
  }[];
7110
7372
  };
@@ -7155,7 +7417,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7155
7417
  id: string;
7156
7418
  type: string;
7157
7419
  updatedAt: Date;
7420
+ createdByUserId: string | null;
7158
7421
  createdAt: Date;
7422
+ correlationId: string | null;
7159
7423
  profileId: string | null;
7160
7424
  title: string | null;
7161
7425
  preview: string | null;
@@ -7163,6 +7427,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7163
7427
  properties: unknown;
7164
7428
  systemData: unknown;
7165
7429
  version: number;
7430
+ createdByKind: ProvenanceKind | null;
7431
+ agentUserId: string | null;
7432
+ sourceProposalId: string | null;
7166
7433
  deletedAt: Date | null;
7167
7434
  } | null;
7168
7435
  label: string;
@@ -7280,7 +7547,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7280
7547
  id: string;
7281
7548
  type: string;
7282
7549
  updatedAt: Date;
7550
+ createdByUserId: string | null;
7283
7551
  createdAt: Date;
7552
+ correlationId: string | null;
7284
7553
  profileId: string | null;
7285
7554
  title: string | null;
7286
7555
  preview: string | null;
@@ -7288,6 +7557,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7288
7557
  properties: unknown;
7289
7558
  systemData: unknown;
7290
7559
  version: number;
7560
+ createdByKind: ProvenanceKind | null;
7561
+ agentUserId: string | null;
7562
+ sourceProposalId: string | null;
7291
7563
  deletedAt: Date | null;
7292
7564
  };
7293
7565
  relations: never[];
@@ -7300,7 +7572,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7300
7572
  id: string;
7301
7573
  type: string;
7302
7574
  updatedAt: Date;
7575
+ createdByUserId: string | null;
7303
7576
  createdAt: Date;
7577
+ correlationId: string | null;
7304
7578
  profileId: string | null;
7305
7579
  title: string | null;
7306
7580
  preview: string | null;
@@ -7308,6 +7582,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7308
7582
  properties: unknown;
7309
7583
  systemData: unknown;
7310
7584
  version: number;
7585
+ createdByKind: ProvenanceKind | null;
7586
+ agentUserId: string | null;
7587
+ sourceProposalId: string | null;
7311
7588
  deletedAt: Date | null;
7312
7589
  };
7313
7590
  relations: {
@@ -7315,8 +7592,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7315
7592
  workspaceId: string | null;
7316
7593
  id: string;
7317
7594
  type: string;
7595
+ createdByUserId: string | null;
7318
7596
  createdAt: Date;
7319
7597
  metadata: unknown;
7598
+ correlationId: string | null;
7599
+ createdByKind: ProvenanceKind | null;
7600
+ agentUserId: string | null;
7601
+ sourceProposalId: string | null;
7320
7602
  sourceEntityId: string | null;
7321
7603
  targetEntityId: string | null;
7322
7604
  sourceKind: RelationEndpointKind;
@@ -7347,7 +7629,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7347
7629
  id: string;
7348
7630
  type: string;
7349
7631
  updatedAt: Date;
7632
+ createdByUserId: string | null;
7350
7633
  createdAt: Date;
7634
+ correlationId: string | null;
7351
7635
  profileId: string | null;
7352
7636
  title: string | null;
7353
7637
  preview: string | null;
@@ -7355,6 +7639,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7355
7639
  properties: unknown;
7356
7640
  systemData: unknown;
7357
7641
  version: number;
7642
+ createdByKind: ProvenanceKind | null;
7643
+ agentUserId: string | null;
7644
+ sourceProposalId: string | null;
7358
7645
  deletedAt: Date | null;
7359
7646
  }[];
7360
7647
  relations: {
@@ -7362,8 +7649,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7362
7649
  workspaceId: string | null;
7363
7650
  id: string;
7364
7651
  type: string;
7652
+ createdByUserId: string | null;
7365
7653
  createdAt: Date;
7366
7654
  metadata: unknown;
7655
+ correlationId: string | null;
7656
+ createdByKind: ProvenanceKind | null;
7657
+ agentUserId: string | null;
7658
+ sourceProposalId: string | null;
7367
7659
  sourceEntityId: string | null;
7368
7660
  targetEntityId: string | null;
7369
7661
  sourceKind: RelationEndpointKind;
@@ -7392,8 +7684,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7392
7684
  workspaceId: string | null;
7393
7685
  id: string;
7394
7686
  type: string;
7687
+ createdByUserId: string | null;
7395
7688
  createdAt: Date;
7396
7689
  metadata: unknown;
7690
+ correlationId: string | null;
7691
+ createdByKind: ProvenanceKind | null;
7692
+ agentUserId: string | null;
7693
+ sourceProposalId: string | null;
7397
7694
  sourceEntityId: string | null;
7398
7695
  targetEntityId: string | null;
7399
7696
  sourceKind: RelationEndpointKind;
@@ -7468,9 +7765,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7468
7765
  includeArchived?: boolean | undefined;
7469
7766
  appId?: string | undefined;
7470
7767
  } | undefined;
7471
- output: {
7472
- role: string;
7473
- joinedAt: Date;
7768
+ output: ({
7474
7769
  name: string;
7475
7770
  id: string;
7476
7771
  type: string;
@@ -7488,7 +7783,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7488
7783
  subscriptionStatus: string | null;
7489
7784
  stripeCustomerId: string | null;
7490
7785
  archivedAt: Date | null;
7491
- }[];
7786
+ } & {
7787
+ role?: string;
7788
+ joinedAt?: Date;
7789
+ accessKind?: "member" | "pod_visible";
7790
+ })[];
7492
7791
  meta: object;
7493
7792
  }>;
7494
7793
  get: import("@trpc/server").TRPCQueryProcedure<{
@@ -7497,6 +7796,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
7497
7796
  };
7498
7797
  output: {
7499
7798
  role: string;
7799
+ accessKind: string;
7500
7800
  name: string;
7501
7801
  id: string;
7502
7802
  type: string;
@@ -8010,6 +8310,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
8010
8310
  profileEntityBentoTemplates?: Record<string, {
8011
8311
  blocks: Record<string, unknown>[];
8012
8312
  }> | undefined;
8313
+ workspacePurpose?: "personal" | "agent" | "project" | "library" | "operational" | undefined;
8314
+ workspaceSubtype?: string | undefined;
8315
+ workspaceVisibility?: "members" | "private" | "pod_visible" | "pod_joinable" | "public_link" | undefined;
8316
+ workspaceCapabilities?: string[] | undefined;
8317
+ sourceRoles?: Record<string, "provider" | "consumer" | "provider-consumer"> | undefined;
8318
+ defaultSources?: Record<string, {
8319
+ workspaceId: string;
8320
+ capability?: string | undefined;
8321
+ profileSlug?: string | undefined;
8322
+ label?: string | undefined;
8323
+ }> | undefined;
8013
8324
  entityLinks?: {
8014
8325
  sourceProfileSlug: string;
8015
8326
  targetProfileSlug: string;
@@ -8534,6 +8845,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
8534
8845
  properties: unknown;
8535
8846
  systemData: unknown;
8536
8847
  version: number;
8848
+ createdByKind: ProvenanceKind | null;
8849
+ createdByUserId: string | null;
8850
+ agentUserId: string | null;
8851
+ sourceProposalId: string | null;
8852
+ correlationId: string | null;
8537
8853
  createdAt: Date;
8538
8854
  updatedAt: Date;
8539
8855
  deletedAt: Date | null;
@@ -8550,6 +8866,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
8550
8866
  targetCellId: string | null;
8551
8867
  type: string;
8552
8868
  metadata: unknown;
8869
+ createdByKind: ProvenanceKind | null;
8870
+ createdByUserId: string | null;
8871
+ agentUserId: string | null;
8872
+ sourceProposalId: string | null;
8873
+ correlationId: string | null;
8553
8874
  createdAt: Date;
8554
8875
  }[];
8555
8876
  columns: ViewColumn[];
@@ -8587,6 +8908,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
8587
8908
  embeddedViewIds?: string[] | undefined;
8588
8909
  schemaSnapshot?: Record<string, any> | undefined;
8589
8910
  snapshotUpdatedAt?: Date | undefined;
8911
+ metadata?: Record<string, any> | undefined;
8590
8912
  type?: string | undefined;
8591
8913
  };
8592
8914
  output: {
@@ -8824,6 +9146,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
8824
9146
  };
8825
9147
  meta: object;
8826
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
+ }>;
8827
9161
  setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
8828
9162
  input: {
8829
9163
  serviceId: string | null;
@@ -8992,7 +9326,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
8992
9326
  id: string;
8993
9327
  type: string;
8994
9328
  updatedAt: Date;
9329
+ createdByUserId: string | null;
8995
9330
  createdAt: Date;
9331
+ correlationId: string | null;
8996
9332
  profileId: string | null;
8997
9333
  title: string | null;
8998
9334
  preview: string | null;
@@ -9000,6 +9336,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9000
9336
  properties: unknown;
9001
9337
  systemData: unknown;
9002
9338
  version: number;
9339
+ createdByKind: ProvenanceKind | null;
9340
+ agentUserId: string | null;
9341
+ sourceProposalId: string | null;
9003
9342
  deletedAt: Date | null;
9004
9343
  } | {
9005
9344
  name: string;
@@ -9042,6 +9381,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9042
9381
  id: string;
9043
9382
  updatedAt: Date;
9044
9383
  createdAt: Date;
9384
+ lastAccessedAt: Date | null;
9045
9385
  expiresAt: Date | null;
9046
9386
  createdBy: string;
9047
9387
  revokedAt: Date | null;
@@ -9055,7 +9395,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9055
9395
  access: string | null;
9056
9396
  invitedUsers: string[] | null;
9057
9397
  viewCount: number | null;
9058
- lastAccessedAt: Date | null;
9059
9398
  }[];
9060
9399
  resourceLabels: Record<string, string>;
9061
9400
  };
@@ -9065,13 +9404,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9065
9404
  input: {
9066
9405
  resourceType: "entity" | "document" | "view";
9067
9406
  resourceId: string;
9068
- visibility?: "public" | "private" | undefined;
9407
+ visibility?: "private" | "public" | undefined;
9069
9408
  expiresAt?: Date | undefined;
9070
9409
  };
9071
9410
  output: {
9072
9411
  id: string;
9073
9412
  updatedAt: Date;
9074
9413
  createdAt: Date;
9414
+ lastAccessedAt: Date | null;
9075
9415
  expiresAt: Date | null;
9076
9416
  createdBy: string;
9077
9417
  revokedAt: Date | null;
@@ -9085,7 +9425,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9085
9425
  access: string | null;
9086
9426
  invitedUsers: string[] | null;
9087
9427
  viewCount: number | null;
9088
- lastAccessedAt: Date | null;
9089
9428
  }[];
9090
9429
  meta: object;
9091
9430
  }>;
@@ -9234,7 +9573,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9234
9573
  fieldMapping: Record<string, {
9235
9574
  slot: string;
9236
9575
  renderer?: {
9237
- 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";
9238
9577
  variant?: string | undefined;
9239
9578
  size?: string | undefined;
9240
9579
  format?: string | undefined;
@@ -9348,7 +9687,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9348
9687
  fieldMapping: Record<string, {
9349
9688
  slot: string;
9350
9689
  renderer?: {
9351
- 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";
9352
9691
  variant?: string | undefined;
9353
9692
  size?: string | undefined;
9354
9693
  format?: string | undefined;
@@ -9464,7 +9803,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9464
9803
  createdAt: Date;
9465
9804
  documentId: string;
9466
9805
  version: number;
9806
+ storageUrl: string | null;
9807
+ storageKey: string | null;
9808
+ size: number;
9809
+ mimeType: string | null;
9467
9810
  content: string;
9811
+ checksum: string | null;
9468
9812
  author: string;
9469
9813
  authorId: string;
9470
9814
  }[];
@@ -9497,7 +9841,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9497
9841
  createdAt: Date;
9498
9842
  documentId: string;
9499
9843
  version: number;
9844
+ storageUrl: string | null;
9845
+ storageKey: string | null;
9846
+ size: number;
9847
+ mimeType: string | null;
9500
9848
  content: string;
9849
+ checksum: string | null;
9501
9850
  author: string;
9502
9851
  authorId: string;
9503
9852
  };
@@ -9506,6 +9855,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9506
9855
  message: string | null;
9507
9856
  author: string;
9508
9857
  createdAt: Date;
9858
+ hasStoredSnapshot: boolean;
9509
9859
  };
9510
9860
  };
9511
9861
  meta: object;
@@ -9877,10 +10227,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9877
10227
  id: string;
9878
10228
  createdAt: Date;
9879
10229
  metadata: unknown;
10230
+ messageId: string;
9880
10231
  relationshipType: string;
9881
10232
  targetType: string;
9882
10233
  targetId: string;
9883
- messageId: string;
9884
10234
  position: unknown;
9885
10235
  };
9886
10236
  meta: object;
@@ -9904,10 +10254,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9904
10254
  id: string;
9905
10255
  createdAt: Date;
9906
10256
  metadata: unknown;
10257
+ messageId: string;
9907
10258
  relationshipType: string;
9908
10259
  targetType: string;
9909
10260
  targetId: string;
9910
- messageId: string;
9911
10261
  position: unknown;
9912
10262
  }[];
9913
10263
  meta: object;
@@ -9923,10 +10273,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9923
10273
  id: string;
9924
10274
  createdAt: Date;
9925
10275
  metadata: unknown;
10276
+ messageId: string;
9926
10277
  relationshipType: string;
9927
10278
  targetType: string;
9928
10279
  targetId: string;
9929
- messageId: string;
9930
10280
  position: unknown;
9931
10281
  }[];
9932
10282
  meta: object;
@@ -9941,10 +10291,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9941
10291
  id: string;
9942
10292
  createdAt: Date;
9943
10293
  metadata: unknown;
10294
+ messageId: string;
9944
10295
  relationshipType: string;
9945
10296
  targetType: string;
9946
10297
  targetId: string;
9947
- messageId: string;
9948
10298
  position: unknown;
9949
10299
  }[];
9950
10300
  meta: object;
@@ -9962,10 +10312,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
9962
10312
  id: string;
9963
10313
  createdAt: Date;
9964
10314
  metadata: unknown;
10315
+ messageId: string;
9965
10316
  relationshipType: string;
9966
10317
  targetType: string;
9967
10318
  targetId: string;
9968
- messageId: string;
9969
10319
  position: unknown;
9970
10320
  }[];
9971
10321
  meta: object;
@@ -10018,6 +10368,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10018
10368
  entityScope: "pod" | "workspace";
10019
10369
  defaultListRenderer: unknown;
10020
10370
  defaultDetailRenderer: unknown;
10371
+ defaultDashboardRenderer: unknown;
10372
+ defaultRenderers: Record<string, unknown>;
10021
10373
  }[];
10022
10374
  };
10023
10375
  meta: object;
@@ -10045,6 +10397,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10045
10397
  entityScope: "pod" | "workspace";
10046
10398
  defaultListRenderer: unknown;
10047
10399
  defaultDetailRenderer: unknown;
10400
+ defaultDashboardRenderer: unknown;
10401
+ defaultRenderers: Record<string, unknown>;
10048
10402
  };
10049
10403
  effectiveProperties: EffectiveProperty[];
10050
10404
  };
@@ -10083,6 +10437,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10083
10437
  entityScope: "pod" | "workspace";
10084
10438
  defaultListRenderer: unknown;
10085
10439
  defaultDetailRenderer: unknown;
10440
+ defaultDashboardRenderer: unknown;
10441
+ defaultRenderers: Record<string, unknown>;
10086
10442
  };
10087
10443
  existing: boolean;
10088
10444
  status?: undefined;
@@ -10113,6 +10469,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10113
10469
  entityScope: "pod" | "workspace";
10114
10470
  defaultListRenderer: unknown;
10115
10471
  defaultDetailRenderer: unknown;
10472
+ defaultDashboardRenderer: unknown;
10473
+ defaultRenderers: Record<string, unknown>;
10116
10474
  };
10117
10475
  existing?: undefined;
10118
10476
  status?: undefined;
@@ -10201,6 +10559,41 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10201
10559
  props?: Record<string, unknown> | undefined;
10202
10560
  title?: string | undefined;
10203
10561
  } | null | undefined;
10562
+ defaultDashboardRenderer?: {
10563
+ kind: "cell";
10564
+ cellKey: string;
10565
+ props: Record<string, unknown>;
10566
+ title?: string | undefined;
10567
+ displayMode?: string | undefined;
10568
+ rendererHint?: Record<string, unknown> | undefined;
10569
+ } | {
10570
+ kind: "view";
10571
+ viewId: string;
10572
+ title?: string | undefined;
10573
+ displayMode?: string | undefined;
10574
+ } | {
10575
+ kind: "iframe-srcdoc";
10576
+ appId: string;
10577
+ srcdoc: string;
10578
+ title?: string | undefined;
10579
+ props?: Record<string, unknown> | undefined;
10580
+ } | {
10581
+ kind: "external-app";
10582
+ appId: string;
10583
+ url: string;
10584
+ title?: string | undefined;
10585
+ props?: Record<string, unknown> | undefined;
10586
+ } | {
10587
+ kind: "url";
10588
+ url: string;
10589
+ external?: boolean | undefined;
10590
+ title?: string | undefined;
10591
+ } | {
10592
+ kind: "view-adapter";
10593
+ adapterKey: string;
10594
+ props?: Record<string, unknown> | undefined;
10595
+ title?: string | undefined;
10596
+ } | null | undefined;
10204
10597
  };
10205
10598
  output: {
10206
10599
  profile: {
@@ -10221,6 +10614,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10221
10614
  entityScope: "pod" | "workspace";
10222
10615
  defaultListRenderer: unknown;
10223
10616
  defaultDetailRenderer: unknown;
10617
+ defaultDashboardRenderer: unknown;
10618
+ defaultRenderers: Record<string, unknown>;
10224
10619
  };
10225
10620
  };
10226
10621
  meta: object;
@@ -10266,6 +10661,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10266
10661
  entityScope: "pod" | "workspace";
10267
10662
  defaultListRenderer: unknown;
10268
10663
  defaultDetailRenderer: unknown;
10664
+ defaultDashboardRenderer: unknown;
10665
+ defaultRenderers: Record<string, unknown>;
10269
10666
  }[];
10270
10667
  };
10271
10668
  meta: object;
@@ -10303,6 +10700,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10303
10700
  entityScope: "pod" | "workspace";
10304
10701
  defaultListRenderer: unknown;
10305
10702
  defaultDetailRenderer: unknown;
10703
+ defaultDashboardRenderer: unknown;
10704
+ defaultRenderers: Record<string, unknown>;
10306
10705
  }[];
10307
10706
  };
10308
10707
  meta: object;
@@ -10331,6 +10730,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10331
10730
  entityScope: "pod" | "workspace";
10332
10731
  defaultListRenderer: unknown;
10333
10732
  defaultDetailRenderer: unknown;
10733
+ defaultDashboardRenderer: unknown;
10734
+ defaultRenderers: Record<string, unknown>;
10334
10735
  }[];
10335
10736
  };
10336
10737
  meta: object;
@@ -10358,21 +10759,19 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10358
10759
  getEffectiveRenderers: import("@trpc/server").TRPCQueryProcedure<{
10359
10760
  input: {
10360
10761
  profileSlug: string;
10361
- slot?: "list" | "detail" | undefined;
10762
+ contentKind?: "entity-detail" | "entity-profile" | "collection" | undefined;
10362
10763
  };
10363
10764
  output: {
10364
- list: RendererRef;
10365
- detail: RendererRef | null;
10366
- } | {
10367
- list: RendererRef | null;
10368
- detail: RendererRef;
10765
+ "entity-detail": RendererRef | null;
10766
+ "entity-profile": RendererRef | null;
10767
+ collection: RendererRef | null;
10369
10768
  };
10370
10769
  meta: object;
10371
10770
  }>;
10372
10771
  setProfileRendererOverride: import("@trpc/server").TRPCMutationProcedure<{
10373
10772
  input: {
10374
10773
  profileSlug: string;
10375
- slot: "list" | "detail";
10774
+ contentKind: "entity-detail" | "entity-profile" | "collection";
10376
10775
  ref: {
10377
10776
  kind: "cell";
10378
10777
  cellKey: string;
@@ -10414,7 +10813,33 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10414
10813
  };
10415
10814
  meta: object;
10416
10815
  }>;
10417
- }>>;
10816
+ resolveDashboard: import("@trpc/server").TRPCMutationProcedure<{
10817
+ input: {
10818
+ profileSlug: string;
10819
+ };
10820
+ output: {
10821
+ viewId: string;
10822
+ config: unknown;
10823
+ userAuthored: boolean;
10824
+ } | {
10825
+ viewId: null;
10826
+ config: null;
10827
+ userAuthored: boolean;
10828
+ };
10829
+ meta: object;
10830
+ }>;
10831
+ saveDashboard: import("@trpc/server").TRPCMutationProcedure<{
10832
+ input: {
10833
+ profileSlug: string;
10834
+ config: Record<string, any>;
10835
+ };
10836
+ output: {
10837
+ viewId: string;
10838
+ config: unknown;
10839
+ };
10840
+ meta: object;
10841
+ }>;
10842
+ }>>;
10418
10843
  propertyDefs: import("@trpc/server").TRPCBuiltRouter<{
10419
10844
  ctx: Context;
10420
10845
  meta: object;
@@ -10627,7 +11052,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10627
11052
  output: {
10628
11053
  relationDefs: {
10629
11054
  userId: string;
10630
- workspaceId: string;
11055
+ workspaceId: string | null;
10631
11056
  id: string;
10632
11057
  updatedAt: Date;
10633
11058
  createdAt: Date;
@@ -10651,7 +11076,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10651
11076
  output: {
10652
11077
  relationDef: {
10653
11078
  userId: string;
10654
- workspaceId: string;
11079
+ workspaceId: string | null;
10655
11080
  id: string;
10656
11081
  updatedAt: Date;
10657
11082
  createdAt: Date;
@@ -10675,7 +11100,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
10675
11100
  output: {
10676
11101
  relationDef: {
10677
11102
  userId: string;
10678
- workspaceId: string;
11103
+ workspaceId: string | null;
10679
11104
  id: string;
10680
11105
  updatedAt: Date;
10681
11106
  createdAt: Date;
@@ -11180,7 +11605,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11180
11605
  }>;
11181
11606
  workspaceList: import("@trpc/server").TRPCQueryProcedure<{
11182
11607
  input: {
11183
- ownerType?: "provider" | "system" | undefined;
11608
+ ownerType?: "user" | "provider" | "system" | undefined;
11184
11609
  };
11185
11610
  output: {
11186
11611
  id: string;
@@ -11303,6 +11728,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11303
11728
  createdAt: Date;
11304
11729
  version: string | null;
11305
11730
  isActive: boolean;
11731
+ role: WidgetRole;
11306
11732
  description: string | null;
11307
11733
  icon: string | null;
11308
11734
  category: string | null;
@@ -11322,6 +11748,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11322
11748
  } | null;
11323
11749
  deps: Record<string, string> | null;
11324
11750
  trustLevel: WidgetTrustLevel;
11751
+ contentKind: ContentKind;
11325
11752
  }[];
11326
11753
  meta: object;
11327
11754
  }>;
@@ -11338,6 +11765,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11338
11765
  createdAt: Date;
11339
11766
  version: string | null;
11340
11767
  isActive: boolean;
11768
+ role: WidgetRole;
11341
11769
  description: string | null;
11342
11770
  icon: string | null;
11343
11771
  category: string | null;
@@ -11357,9 +11785,22 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11357
11785
  } | null;
11358
11786
  deps: Record<string, string> | null;
11359
11787
  trustLevel: WidgetTrustLevel;
11788
+ contentKind: ContentKind;
11360
11789
  } | null;
11361
11790
  meta: object;
11362
11791
  }>;
11792
+ generateSource: import("@trpc/server").TRPCMutationProcedure<{
11793
+ input: {
11794
+ description: string;
11795
+ language?: "module" | "react" | undefined;
11796
+ existingCode?: string | undefined;
11797
+ };
11798
+ output: {
11799
+ source: string;
11800
+ language: "module" | "react";
11801
+ };
11802
+ meta: object;
11803
+ }>;
11363
11804
  upsert: import("@trpc/server").TRPCMutationProcedure<{
11364
11805
  input: {
11365
11806
  typeKey: string;
@@ -11368,6 +11809,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11368
11809
  icon?: string | undefined;
11369
11810
  category?: string | undefined;
11370
11811
  rendererType?: "builtin" | "iframe" | "native" | "frame" | undefined;
11812
+ contentKind?: "widget" | "entity-detail" | "entity-profile" | "collection" | undefined;
11371
11813
  rendererSource?: string | undefined;
11372
11814
  source?: string | undefined;
11373
11815
  deps?: Record<string, string> | undefined;
@@ -11391,6 +11833,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11391
11833
  createdAt: Date;
11392
11834
  version: string | null;
11393
11835
  isActive: boolean;
11836
+ role: WidgetRole;
11394
11837
  description: string | null;
11395
11838
  icon: string | null;
11396
11839
  category: string | null;
@@ -11410,6 +11853,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11410
11853
  } | null;
11411
11854
  deps: Record<string, string> | null;
11412
11855
  trustLevel: WidgetTrustLevel;
11856
+ contentKind: ContentKind;
11413
11857
  };
11414
11858
  meta: object;
11415
11859
  }>;
@@ -11730,6 +12174,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11730
12174
  };
11731
12175
  meta: object;
11732
12176
  }>;
12177
+ batchProgressRoom: import("@trpc/server").TRPCQueryProcedure<{
12178
+ input: void;
12179
+ output: {
12180
+ event: "import:file:progress";
12181
+ room: string;
12182
+ description: string;
12183
+ };
12184
+ meta: object;
12185
+ }>;
11733
12186
  }>>;
11734
12187
  connectors: import("@trpc/server").TRPCBuiltRouter<{
11735
12188
  ctx: Context;
@@ -11982,7 +12435,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11982
12435
  list: import("@trpc/server").TRPCQueryProcedure<{
11983
12436
  input: {
11984
12437
  status?: "read" | "unread" | "dismissed" | "all" | undefined;
11985
- category?: "data" | "system" | "ai" | "governance" | "inbox" | undefined;
12438
+ category?: "data" | "system" | "governance" | "ai" | "inbox" | undefined;
11986
12439
  limit?: number | undefined;
11987
12440
  offset?: number | undefined;
11988
12441
  };
@@ -11992,7 +12445,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
11992
12445
  workspaceId: string | null;
11993
12446
  userId: string;
11994
12447
  type: string;
11995
- category: "data" | "system" | "ai" | "governance" | "inbox";
12448
+ category: "data" | "system" | "governance" | "ai" | "inbox";
11996
12449
  priority: "low" | "normal" | "high" | "urgent";
11997
12450
  title: string;
11998
12451
  body: string;
@@ -12014,7 +12467,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12014
12467
  listAll: import("@trpc/server").TRPCQueryProcedure<{
12015
12468
  input: {
12016
12469
  status?: "read" | "unread" | "dismissed" | "all" | undefined;
12017
- category?: "data" | "system" | "ai" | "governance" | "inbox" | undefined;
12470
+ category?: "data" | "system" | "governance" | "ai" | "inbox" | undefined;
12018
12471
  limit?: number | undefined;
12019
12472
  offset?: number | undefined;
12020
12473
  };
@@ -12024,7 +12477,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12024
12477
  workspaceId: string | null;
12025
12478
  userId: string;
12026
12479
  type: string;
12027
- category: "data" | "system" | "ai" | "governance" | "inbox";
12480
+ category: "data" | "system" | "governance" | "ai" | "inbox";
12028
12481
  priority: "low" | "normal" | "high" | "urgent";
12029
12482
  title: string;
12030
12483
  body: string;
@@ -12244,22 +12697,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12244
12697
  addPeer: import("@trpc/server").TRPCMutationProcedure<{
12245
12698
  input: {
12246
12699
  peerPodUrl: string;
12247
- direction: "push" | "pull";
12700
+ direction: "push" | "bidirectional" | "pull";
12248
12701
  label?: string | undefined;
12249
12702
  authToken?: string | undefined;
12250
12703
  workspaceIds?: string[] | undefined;
12704
+ localRole?: "primary" | "secondary" | "unset" | undefined;
12251
12705
  enabled?: boolean | undefined;
12252
12706
  };
12253
12707
  output: {
12254
- id: string;
12255
- updatedAt: Date;
12256
- createdAt: Date;
12257
- enabled: boolean;
12258
- peerPodUrl: string;
12259
- direction: string;
12260
- label: string | null;
12261
- authToken: string | null;
12262
- workspaceIds: string[] | null;
12708
+ peerId: string;
12263
12709
  };
12264
12710
  meta: object;
12265
12711
  }>;
@@ -12279,6 +12725,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12279
12725
  label?: string | undefined;
12280
12726
  authToken?: string | undefined;
12281
12727
  workspaceIds?: string[] | null | undefined;
12728
+ localRole?: "primary" | "secondary" | "unset" | undefined;
12282
12729
  enabled?: boolean | undefined;
12283
12730
  };
12284
12731
  output: {
@@ -12289,6 +12736,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12289
12736
  label: string | null;
12290
12737
  authToken: string | null;
12291
12738
  workspaceIds: string[] | null;
12739
+ localRole: string | null;
12292
12740
  createdAt: Date;
12293
12741
  updatedAt: Date;
12294
12742
  };
@@ -12322,6 +12770,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12322
12770
  label: string | null;
12323
12771
  authToken: string | null;
12324
12772
  workspaceIds: string[] | null;
12773
+ localRole: string | null;
12325
12774
  }[];
12326
12775
  meta: object;
12327
12776
  }>;
@@ -12937,7 +13386,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12937
13386
  id: string;
12938
13387
  title: string;
12939
13388
  recipeId: string | null;
12940
- runStatus: "success" | "running" | "failed" | "cancelled" | null;
13389
+ runStatus: "success" | "failed" | "running" | "cancelled" | null;
12941
13390
  runSteps: RunStep[];
12942
13391
  runStartedAt: string | null;
12943
13392
  runFinishedAt: string | null;
@@ -12982,7 +13431,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
12982
13431
  }>;
12983
13432
  saveProviderApiKey: import("@trpc/server").TRPCMutationProcedure<{
12984
13433
  input: {
12985
- providerType: "anthropic" | "openrouter" | "openai";
13434
+ providerType: "openai" | "anthropic" | "openrouter";
12986
13435
  apiKey: string;
12987
13436
  };
12988
13437
  output: {
@@ -13379,6 +13828,456 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
13379
13828
  meta: object;
13380
13829
  }>;
13381
13830
  }>>;
13831
+ aiProviders: import("@trpc/server").TRPCBuiltRouter<{
13832
+ ctx: Context;
13833
+ meta: object;
13834
+ errorShape: {
13835
+ message: string;
13836
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
13837
+ data: import("@trpc/server").TRPCDefaultErrorData;
13838
+ };
13839
+ transformer: true;
13840
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
13841
+ list: import("@trpc/server").TRPCQueryProcedure<{
13842
+ input: void;
13843
+ output: {
13844
+ hasApiKey: boolean;
13845
+ name: string;
13846
+ id: string;
13847
+ updatedAt: Date;
13848
+ createdAt: Date;
13849
+ metadata: Record<string, unknown>;
13850
+ priority: number;
13851
+ tags: string[];
13852
+ enabled: boolean;
13853
+ providerId: string;
13854
+ baseUrl: string;
13855
+ apiKeyEnvVar: string;
13856
+ models: AiProviderModelEntry[];
13857
+ rateLimit: {
13858
+ rpm: number;
13859
+ rpd?: number;
13860
+ } | null;
13861
+ extraBody: Record<string, unknown> | null;
13862
+ systemPromptPrefix: string | null;
13863
+ }[];
13864
+ meta: object;
13865
+ }>;
13866
+ upsert: import("@trpc/server").TRPCMutationProcedure<{
13867
+ input: {
13868
+ providerId: string;
13869
+ name: string;
13870
+ baseUrl: string;
13871
+ apiKeyEnvVar: string;
13872
+ apiKey?: string | undefined;
13873
+ enabled?: boolean | undefined;
13874
+ priority?: number | undefined;
13875
+ tags?: string[] | undefined;
13876
+ models?: {
13877
+ id: string;
13878
+ tier?: "free" | "balanced" | "advanced" | "complex" | undefined;
13879
+ contextWindow?: number | undefined;
13880
+ supportsTools?: boolean | undefined;
13881
+ supportsJson?: boolean | undefined;
13882
+ costPer1MInput?: number | undefined;
13883
+ costPer1MOutput?: number | undefined;
13884
+ }[] | undefined;
13885
+ rateLimit?: {
13886
+ rpm: number;
13887
+ rpd?: number | undefined;
13888
+ } | undefined;
13889
+ extraBody?: Record<string, unknown> | undefined;
13890
+ systemPromptPrefix?: string | undefined;
13891
+ metadata?: Record<string, unknown> | undefined;
13892
+ };
13893
+ output: {
13894
+ hasApiKey: boolean;
13895
+ name: string;
13896
+ id: string;
13897
+ updatedAt: Date;
13898
+ createdAt: Date;
13899
+ metadata: Record<string, unknown>;
13900
+ priority: number;
13901
+ tags: string[];
13902
+ enabled: boolean;
13903
+ providerId: string;
13904
+ baseUrl: string;
13905
+ apiKeyEnvVar: string;
13906
+ models: AiProviderModelEntry[];
13907
+ rateLimit: {
13908
+ rpm: number;
13909
+ rpd?: number;
13910
+ } | null;
13911
+ extraBody: Record<string, unknown> | null;
13912
+ systemPromptPrefix: string | null;
13913
+ };
13914
+ meta: object;
13915
+ }>;
13916
+ enable: import("@trpc/server").TRPCMutationProcedure<{
13917
+ input: {
13918
+ providerId: string;
13919
+ };
13920
+ output: {
13921
+ ok: boolean;
13922
+ };
13923
+ meta: object;
13924
+ }>;
13925
+ disable: import("@trpc/server").TRPCMutationProcedure<{
13926
+ input: {
13927
+ providerId: string;
13928
+ };
13929
+ output: {
13930
+ ok: boolean;
13931
+ };
13932
+ meta: object;
13933
+ }>;
13934
+ remove: import("@trpc/server").TRPCMutationProcedure<{
13935
+ input: {
13936
+ providerId: string;
13937
+ };
13938
+ output: {
13939
+ ok: boolean;
13940
+ };
13941
+ meta: object;
13942
+ }>;
13943
+ probe: import("@trpc/server").TRPCMutationProcedure<{
13944
+ input: {
13945
+ providerId: string;
13946
+ };
13947
+ output: {
13948
+ ok: boolean;
13949
+ models: string[];
13950
+ latencyMs: number;
13951
+ error?: string;
13952
+ };
13953
+ meta: object;
13954
+ }>;
13955
+ sync: import("@trpc/server").TRPCMutationProcedure<{
13956
+ input: void;
13957
+ output: {
13958
+ ok: boolean;
13959
+ count: number;
13960
+ };
13961
+ meta: object;
13962
+ }>;
13963
+ }>>;
13964
+ aiProviderCredentials: import("@trpc/server").TRPCBuiltRouter<{
13965
+ ctx: Context;
13966
+ meta: object;
13967
+ errorShape: {
13968
+ message: string;
13969
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
13970
+ data: import("@trpc/server").TRPCDefaultErrorData;
13971
+ };
13972
+ transformer: true;
13973
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
13974
+ listForWorkspace: import("@trpc/server").TRPCQueryProcedure<{
13975
+ input: {
13976
+ workspaceId: string;
13977
+ };
13978
+ output: (Omit<{
13979
+ userId: string | null;
13980
+ workspaceId: string | null;
13981
+ id: string;
13982
+ updatedAt: Date;
13983
+ createdAt: Date;
13984
+ createdBy: string;
13985
+ priority: number;
13986
+ enabled: boolean;
13987
+ providerId: string;
13988
+ encryptedApiKey: string;
13989
+ }, "encryptedApiKey"> & {
13990
+ hasApiKey: true;
13991
+ })[];
13992
+ meta: object;
13993
+ }>;
13994
+ upsertForWorkspace: import("@trpc/server").TRPCMutationProcedure<{
13995
+ input: {
13996
+ providerId: string;
13997
+ apiKey: string;
13998
+ workspaceId: string;
13999
+ enabled?: boolean | undefined;
14000
+ priority?: number | undefined;
14001
+ };
14002
+ output: {
14003
+ ok: boolean;
14004
+ };
14005
+ meta: object;
14006
+ }>;
14007
+ removeForWorkspace: import("@trpc/server").TRPCMutationProcedure<{
14008
+ input: {
14009
+ workspaceId: string;
14010
+ providerId: string;
14011
+ };
14012
+ output: {
14013
+ ok: boolean;
14014
+ };
14015
+ meta: object;
14016
+ }>;
14017
+ listForUser: import("@trpc/server").TRPCQueryProcedure<{
14018
+ input: void;
14019
+ output: (Omit<{
14020
+ userId: string | null;
14021
+ workspaceId: string | null;
14022
+ id: string;
14023
+ updatedAt: Date;
14024
+ createdAt: Date;
14025
+ createdBy: string;
14026
+ priority: number;
14027
+ enabled: boolean;
14028
+ providerId: string;
14029
+ encryptedApiKey: string;
14030
+ }, "encryptedApiKey"> & {
14031
+ hasApiKey: true;
14032
+ })[];
14033
+ meta: object;
14034
+ }>;
14035
+ upsertForUser: import("@trpc/server").TRPCMutationProcedure<{
14036
+ input: {
14037
+ providerId: string;
14038
+ apiKey: string;
14039
+ enabled?: boolean | undefined;
14040
+ priority?: number | undefined;
14041
+ workspaceId?: string | undefined;
14042
+ };
14043
+ output: {
14044
+ ok: boolean;
14045
+ };
14046
+ meta: object;
14047
+ }>;
14048
+ removeForUser: import("@trpc/server").TRPCMutationProcedure<{
14049
+ input: {
14050
+ providerId: string;
14051
+ };
14052
+ output: {
14053
+ ok: boolean;
14054
+ };
14055
+ meta: object;
14056
+ }>;
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
+ }>>;
13382
14281
  }>>;
13383
14282
  export type AppRouter = typeof coreRouter;
13384
14283