@synap-core/api-types 1.10.4 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated.d.ts +770 -706
- package/package.json +1 -1
- package/src/generated.d.ts +770 -706
package/dist/generated.d.ts
CHANGED
|
@@ -85,517 +85,55 @@ export interface AgentMetadata {
|
|
|
85
85
|
description?: string;
|
|
86
86
|
createdByUserId: string;
|
|
87
87
|
capabilities?: string[];
|
|
88
|
+
isPersonalAgent?: boolean;
|
|
89
|
+
parentAgentId?: string;
|
|
90
|
+
writesRequireProposal?: boolean;
|
|
91
|
+
activePersonality?: string;
|
|
88
92
|
}
|
|
89
|
-
declare
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
name: "channels";
|
|
134
|
-
schema: undefined;
|
|
135
|
-
columns: {
|
|
136
|
-
id: import("drizzle-orm/pg-core").PgColumn<{
|
|
137
|
-
name: "id";
|
|
138
|
-
tableName: "channels";
|
|
139
|
-
dataType: "string";
|
|
140
|
-
columnType: "PgUUID";
|
|
141
|
-
data: string;
|
|
142
|
-
driverParam: string;
|
|
143
|
-
notNull: true;
|
|
144
|
-
hasDefault: true;
|
|
145
|
-
isPrimaryKey: true;
|
|
146
|
-
isAutoincrement: false;
|
|
147
|
-
hasRuntimeDefault: false;
|
|
148
|
-
enumValues: undefined;
|
|
149
|
-
baseColumn: never;
|
|
150
|
-
identity: undefined;
|
|
151
|
-
generated: undefined;
|
|
152
|
-
}, {}, {}>;
|
|
153
|
-
userId: import("drizzle-orm/pg-core").PgColumn<{
|
|
154
|
-
name: "user_id";
|
|
155
|
-
tableName: "channels";
|
|
156
|
-
dataType: "string";
|
|
157
|
-
columnType: "PgText";
|
|
158
|
-
data: string;
|
|
159
|
-
driverParam: string;
|
|
160
|
-
notNull: true;
|
|
161
|
-
hasDefault: false;
|
|
162
|
-
isPrimaryKey: false;
|
|
163
|
-
isAutoincrement: false;
|
|
164
|
-
hasRuntimeDefault: false;
|
|
165
|
-
enumValues: [
|
|
166
|
-
string,
|
|
167
|
-
...string[]
|
|
168
|
-
];
|
|
169
|
-
baseColumn: never;
|
|
170
|
-
identity: undefined;
|
|
171
|
-
generated: undefined;
|
|
172
|
-
}, {}, {}>;
|
|
173
|
-
workspaceId: import("drizzle-orm/pg-core").PgColumn<{
|
|
174
|
-
name: "workspace_id";
|
|
175
|
-
tableName: "channels";
|
|
176
|
-
dataType: "string";
|
|
177
|
-
columnType: "PgUUID";
|
|
178
|
-
data: string;
|
|
179
|
-
driverParam: string;
|
|
180
|
-
notNull: false;
|
|
181
|
-
hasDefault: false;
|
|
182
|
-
isPrimaryKey: false;
|
|
183
|
-
isAutoincrement: false;
|
|
184
|
-
hasRuntimeDefault: false;
|
|
185
|
-
enumValues: undefined;
|
|
186
|
-
baseColumn: never;
|
|
187
|
-
identity: undefined;
|
|
188
|
-
generated: undefined;
|
|
189
|
-
}, {}, {}>;
|
|
190
|
-
title: import("drizzle-orm/pg-core").PgColumn<{
|
|
191
|
-
name: "title";
|
|
192
|
-
tableName: "channels";
|
|
193
|
-
dataType: "string";
|
|
194
|
-
columnType: "PgText";
|
|
195
|
-
data: string;
|
|
196
|
-
driverParam: string;
|
|
197
|
-
notNull: false;
|
|
198
|
-
hasDefault: false;
|
|
199
|
-
isPrimaryKey: false;
|
|
200
|
-
isAutoincrement: false;
|
|
201
|
-
hasRuntimeDefault: false;
|
|
202
|
-
enumValues: [
|
|
203
|
-
string,
|
|
204
|
-
...string[]
|
|
205
|
-
];
|
|
206
|
-
baseColumn: never;
|
|
207
|
-
identity: undefined;
|
|
208
|
-
generated: undefined;
|
|
209
|
-
}, {}, {}>;
|
|
210
|
-
channelType: import("drizzle-orm/pg-core").PgColumn<{
|
|
211
|
-
name: "channel_type";
|
|
212
|
-
tableName: "channels";
|
|
213
|
-
dataType: "string";
|
|
214
|
-
columnType: "PgText";
|
|
215
|
-
data: ChannelType;
|
|
216
|
-
driverParam: string;
|
|
217
|
-
notNull: true;
|
|
218
|
-
hasDefault: true;
|
|
219
|
-
isPrimaryKey: false;
|
|
220
|
-
isAutoincrement: false;
|
|
221
|
-
hasRuntimeDefault: false;
|
|
222
|
-
enumValues: [
|
|
223
|
-
ChannelType.AI_THREAD,
|
|
224
|
-
ChannelType.BRANCH,
|
|
225
|
-
ChannelType.ENTITY_COMMENTS,
|
|
226
|
-
ChannelType.DOCUMENT_REVIEW,
|
|
227
|
-
ChannelType.VIEW_DISCUSSION,
|
|
228
|
-
ChannelType.DIRECT,
|
|
229
|
-
ChannelType.EXTERNAL_IMPORT,
|
|
230
|
-
ChannelType.A2AI
|
|
231
|
-
];
|
|
232
|
-
baseColumn: never;
|
|
233
|
-
identity: undefined;
|
|
234
|
-
generated: undefined;
|
|
235
|
-
}, {}, {}>;
|
|
236
|
-
contextObjectType: import("drizzle-orm/pg-core").PgColumn<{
|
|
237
|
-
name: "context_object_type";
|
|
238
|
-
tableName: "channels";
|
|
239
|
-
dataType: "string";
|
|
240
|
-
columnType: "PgText";
|
|
241
|
-
data: string;
|
|
242
|
-
driverParam: string;
|
|
243
|
-
notNull: false;
|
|
244
|
-
hasDefault: false;
|
|
245
|
-
isPrimaryKey: false;
|
|
246
|
-
isAutoincrement: false;
|
|
247
|
-
hasRuntimeDefault: false;
|
|
248
|
-
enumValues: [
|
|
249
|
-
string,
|
|
250
|
-
...string[]
|
|
251
|
-
];
|
|
252
|
-
baseColumn: never;
|
|
253
|
-
identity: undefined;
|
|
254
|
-
generated: undefined;
|
|
255
|
-
}, {}, {}>;
|
|
256
|
-
contextObjectId: import("drizzle-orm/pg-core").PgColumn<{
|
|
257
|
-
name: "context_object_id";
|
|
258
|
-
tableName: "channels";
|
|
259
|
-
dataType: "string";
|
|
260
|
-
columnType: "PgUUID";
|
|
261
|
-
data: string;
|
|
262
|
-
driverParam: string;
|
|
263
|
-
notNull: false;
|
|
264
|
-
hasDefault: false;
|
|
265
|
-
isPrimaryKey: false;
|
|
266
|
-
isAutoincrement: false;
|
|
267
|
-
hasRuntimeDefault: false;
|
|
268
|
-
enumValues: undefined;
|
|
269
|
-
baseColumn: never;
|
|
270
|
-
identity: undefined;
|
|
271
|
-
generated: undefined;
|
|
272
|
-
}, {}, {}>;
|
|
273
|
-
parentChannelId: import("drizzle-orm/pg-core").PgColumn<{
|
|
274
|
-
name: "parent_channel_id";
|
|
275
|
-
tableName: "channels";
|
|
276
|
-
dataType: "string";
|
|
277
|
-
columnType: "PgUUID";
|
|
278
|
-
data: string;
|
|
279
|
-
driverParam: string;
|
|
280
|
-
notNull: false;
|
|
281
|
-
hasDefault: false;
|
|
282
|
-
isPrimaryKey: false;
|
|
283
|
-
isAutoincrement: false;
|
|
284
|
-
hasRuntimeDefault: false;
|
|
285
|
-
enumValues: undefined;
|
|
286
|
-
baseColumn: never;
|
|
287
|
-
identity: undefined;
|
|
288
|
-
generated: undefined;
|
|
289
|
-
}, {}, {}>;
|
|
290
|
-
branchedFromMessageId: import("drizzle-orm/pg-core").PgColumn<{
|
|
291
|
-
name: "branched_from_message_id";
|
|
292
|
-
tableName: "channels";
|
|
293
|
-
dataType: "string";
|
|
294
|
-
columnType: "PgUUID";
|
|
295
|
-
data: string;
|
|
296
|
-
driverParam: string;
|
|
297
|
-
notNull: false;
|
|
298
|
-
hasDefault: false;
|
|
299
|
-
isPrimaryKey: false;
|
|
300
|
-
isAutoincrement: false;
|
|
301
|
-
hasRuntimeDefault: false;
|
|
302
|
-
enumValues: undefined;
|
|
303
|
-
baseColumn: never;
|
|
304
|
-
identity: undefined;
|
|
305
|
-
generated: undefined;
|
|
306
|
-
}, {}, {}>;
|
|
307
|
-
branchPurpose: import("drizzle-orm/pg-core").PgColumn<{
|
|
308
|
-
name: "branch_purpose";
|
|
309
|
-
tableName: "channels";
|
|
310
|
-
dataType: "string";
|
|
311
|
-
columnType: "PgText";
|
|
312
|
-
data: string;
|
|
313
|
-
driverParam: string;
|
|
314
|
-
notNull: false;
|
|
315
|
-
hasDefault: false;
|
|
316
|
-
isPrimaryKey: false;
|
|
317
|
-
isAutoincrement: false;
|
|
318
|
-
hasRuntimeDefault: false;
|
|
319
|
-
enumValues: [
|
|
320
|
-
string,
|
|
321
|
-
...string[]
|
|
322
|
-
];
|
|
323
|
-
baseColumn: never;
|
|
324
|
-
identity: undefined;
|
|
325
|
-
generated: undefined;
|
|
326
|
-
}, {}, {}>;
|
|
327
|
-
agentId: import("drizzle-orm/pg-core").PgColumn<{
|
|
328
|
-
name: "agent_id";
|
|
329
|
-
tableName: "channels";
|
|
330
|
-
dataType: "string";
|
|
331
|
-
columnType: "PgText";
|
|
332
|
-
data: string;
|
|
333
|
-
driverParam: string;
|
|
334
|
-
notNull: true;
|
|
335
|
-
hasDefault: true;
|
|
336
|
-
isPrimaryKey: false;
|
|
337
|
-
isAutoincrement: false;
|
|
338
|
-
hasRuntimeDefault: false;
|
|
339
|
-
enumValues: [
|
|
340
|
-
string,
|
|
341
|
-
...string[]
|
|
342
|
-
];
|
|
343
|
-
baseColumn: never;
|
|
344
|
-
identity: undefined;
|
|
345
|
-
generated: undefined;
|
|
346
|
-
}, {}, {}>;
|
|
347
|
-
status: import("drizzle-orm/pg-core").PgColumn<{
|
|
348
|
-
name: "status";
|
|
349
|
-
tableName: "channels";
|
|
350
|
-
dataType: "string";
|
|
351
|
-
columnType: "PgText";
|
|
352
|
-
data: ChannelStatus;
|
|
353
|
-
driverParam: string;
|
|
354
|
-
notNull: true;
|
|
355
|
-
hasDefault: true;
|
|
356
|
-
isPrimaryKey: false;
|
|
357
|
-
isAutoincrement: false;
|
|
358
|
-
hasRuntimeDefault: false;
|
|
359
|
-
enumValues: [
|
|
360
|
-
ChannelStatus.ACTIVE,
|
|
361
|
-
ChannelStatus.MERGED,
|
|
362
|
-
ChannelStatus.ARCHIVED
|
|
363
|
-
];
|
|
364
|
-
baseColumn: never;
|
|
365
|
-
identity: undefined;
|
|
366
|
-
generated: undefined;
|
|
367
|
-
}, {}, {}>;
|
|
368
|
-
agentType: import("drizzle-orm/pg-core").PgColumn<{
|
|
369
|
-
name: "agent_type";
|
|
370
|
-
tableName: "channels";
|
|
371
|
-
dataType: "string";
|
|
372
|
-
columnType: "PgText";
|
|
373
|
-
data: ChannelAgentType;
|
|
374
|
-
driverParam: string;
|
|
375
|
-
notNull: true;
|
|
376
|
-
hasDefault: true;
|
|
377
|
-
isPrimaryKey: false;
|
|
378
|
-
isAutoincrement: false;
|
|
379
|
-
hasRuntimeDefault: false;
|
|
380
|
-
enumValues: [
|
|
381
|
-
ChannelAgentType.DEFAULT,
|
|
382
|
-
ChannelAgentType.META,
|
|
383
|
-
ChannelAgentType.PROMPTING,
|
|
384
|
-
ChannelAgentType.KNOWLEDGE_SEARCH,
|
|
385
|
-
ChannelAgentType.CODE,
|
|
386
|
-
ChannelAgentType.WRITING,
|
|
387
|
-
ChannelAgentType.ACTION,
|
|
388
|
-
ChannelAgentType.ONBOARDING,
|
|
389
|
-
ChannelAgentType.WORKSPACE_CREATION
|
|
390
|
-
];
|
|
391
|
-
baseColumn: never;
|
|
392
|
-
identity: undefined;
|
|
393
|
-
generated: undefined;
|
|
394
|
-
}, {}, {}>;
|
|
395
|
-
agentConfig: import("drizzle-orm/pg-core").PgColumn<{
|
|
396
|
-
name: "agent_config";
|
|
397
|
-
tableName: "channels";
|
|
398
|
-
dataType: "json";
|
|
399
|
-
columnType: "PgJsonb";
|
|
400
|
-
data: unknown;
|
|
401
|
-
driverParam: unknown;
|
|
402
|
-
notNull: false;
|
|
403
|
-
hasDefault: false;
|
|
404
|
-
isPrimaryKey: false;
|
|
405
|
-
isAutoincrement: false;
|
|
406
|
-
hasRuntimeDefault: false;
|
|
407
|
-
enumValues: undefined;
|
|
408
|
-
baseColumn: never;
|
|
409
|
-
identity: undefined;
|
|
410
|
-
generated: undefined;
|
|
411
|
-
}, {}, {}>;
|
|
412
|
-
contextSummary: import("drizzle-orm/pg-core").PgColumn<{
|
|
413
|
-
name: "context_summary";
|
|
414
|
-
tableName: "channels";
|
|
415
|
-
dataType: "string";
|
|
416
|
-
columnType: "PgText";
|
|
417
|
-
data: string;
|
|
418
|
-
driverParam: string;
|
|
419
|
-
notNull: false;
|
|
420
|
-
hasDefault: false;
|
|
421
|
-
isPrimaryKey: false;
|
|
422
|
-
isAutoincrement: false;
|
|
423
|
-
hasRuntimeDefault: false;
|
|
424
|
-
enumValues: [
|
|
425
|
-
string,
|
|
426
|
-
...string[]
|
|
427
|
-
];
|
|
428
|
-
baseColumn: never;
|
|
429
|
-
identity: undefined;
|
|
430
|
-
generated: undefined;
|
|
431
|
-
}, {}, {}>;
|
|
432
|
-
resultSummary: import("drizzle-orm/pg-core").PgColumn<{
|
|
433
|
-
name: "result_summary";
|
|
434
|
-
tableName: "channels";
|
|
435
|
-
dataType: "string";
|
|
436
|
-
columnType: "PgText";
|
|
437
|
-
data: string;
|
|
438
|
-
driverParam: string;
|
|
439
|
-
notNull: false;
|
|
440
|
-
hasDefault: false;
|
|
441
|
-
isPrimaryKey: false;
|
|
442
|
-
isAutoincrement: false;
|
|
443
|
-
hasRuntimeDefault: false;
|
|
444
|
-
enumValues: [
|
|
445
|
-
string,
|
|
446
|
-
...string[]
|
|
447
|
-
];
|
|
448
|
-
baseColumn: never;
|
|
449
|
-
identity: undefined;
|
|
450
|
-
generated: undefined;
|
|
451
|
-
}, {}, {}>;
|
|
452
|
-
mergedIntoStateId: import("drizzle-orm/pg-core").PgColumn<{
|
|
453
|
-
name: "merged_into_state_id";
|
|
454
|
-
tableName: "channels";
|
|
455
|
-
dataType: "string";
|
|
456
|
-
columnType: "PgUUID";
|
|
457
|
-
data: string;
|
|
458
|
-
driverParam: string;
|
|
459
|
-
notNull: false;
|
|
460
|
-
hasDefault: false;
|
|
461
|
-
isPrimaryKey: false;
|
|
462
|
-
isAutoincrement: false;
|
|
463
|
-
hasRuntimeDefault: false;
|
|
464
|
-
enumValues: undefined;
|
|
465
|
-
baseColumn: never;
|
|
466
|
-
identity: undefined;
|
|
467
|
-
generated: undefined;
|
|
468
|
-
}, {}, {}>;
|
|
469
|
-
externalSource: import("drizzle-orm/pg-core").PgColumn<{
|
|
470
|
-
name: "external_source";
|
|
471
|
-
tableName: "channels";
|
|
472
|
-
dataType: "string";
|
|
473
|
-
columnType: "PgText";
|
|
474
|
-
data: string;
|
|
475
|
-
driverParam: string;
|
|
476
|
-
notNull: false;
|
|
477
|
-
hasDefault: false;
|
|
478
|
-
isPrimaryKey: false;
|
|
479
|
-
isAutoincrement: false;
|
|
480
|
-
hasRuntimeDefault: false;
|
|
481
|
-
enumValues: [
|
|
482
|
-
string,
|
|
483
|
-
...string[]
|
|
484
|
-
];
|
|
485
|
-
baseColumn: never;
|
|
486
|
-
identity: undefined;
|
|
487
|
-
generated: undefined;
|
|
488
|
-
}, {}, {}>;
|
|
489
|
-
externalChannelId: import("drizzle-orm/pg-core").PgColumn<{
|
|
490
|
-
name: "external_channel_id";
|
|
491
|
-
tableName: "channels";
|
|
492
|
-
dataType: "string";
|
|
493
|
-
columnType: "PgText";
|
|
494
|
-
data: string;
|
|
495
|
-
driverParam: string;
|
|
496
|
-
notNull: false;
|
|
497
|
-
hasDefault: false;
|
|
498
|
-
isPrimaryKey: false;
|
|
499
|
-
isAutoincrement: false;
|
|
500
|
-
hasRuntimeDefault: false;
|
|
501
|
-
enumValues: [
|
|
502
|
-
string,
|
|
503
|
-
...string[]
|
|
504
|
-
];
|
|
505
|
-
baseColumn: never;
|
|
506
|
-
identity: undefined;
|
|
507
|
-
generated: undefined;
|
|
508
|
-
}, {}, {}>;
|
|
509
|
-
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
510
|
-
name: "metadata";
|
|
511
|
-
tableName: "channels";
|
|
512
|
-
dataType: "json";
|
|
513
|
-
columnType: "PgJsonb";
|
|
514
|
-
data: unknown;
|
|
515
|
-
driverParam: unknown;
|
|
516
|
-
notNull: false;
|
|
517
|
-
hasDefault: false;
|
|
518
|
-
isPrimaryKey: false;
|
|
519
|
-
isAutoincrement: false;
|
|
520
|
-
hasRuntimeDefault: false;
|
|
521
|
-
enumValues: undefined;
|
|
522
|
-
baseColumn: never;
|
|
523
|
-
identity: undefined;
|
|
524
|
-
generated: undefined;
|
|
525
|
-
}, {}, {}>;
|
|
526
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
527
|
-
name: "created_at";
|
|
528
|
-
tableName: "channels";
|
|
529
|
-
dataType: "date";
|
|
530
|
-
columnType: "PgTimestamp";
|
|
531
|
-
data: Date;
|
|
532
|
-
driverParam: string;
|
|
533
|
-
notNull: true;
|
|
534
|
-
hasDefault: true;
|
|
535
|
-
isPrimaryKey: false;
|
|
536
|
-
isAutoincrement: false;
|
|
537
|
-
hasRuntimeDefault: false;
|
|
538
|
-
enumValues: undefined;
|
|
539
|
-
baseColumn: never;
|
|
540
|
-
identity: undefined;
|
|
541
|
-
generated: undefined;
|
|
542
|
-
}, {}, {}>;
|
|
543
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
544
|
-
name: "updated_at";
|
|
545
|
-
tableName: "channels";
|
|
546
|
-
dataType: "date";
|
|
547
|
-
columnType: "PgTimestamp";
|
|
548
|
-
data: Date;
|
|
549
|
-
driverParam: string;
|
|
550
|
-
notNull: true;
|
|
551
|
-
hasDefault: true;
|
|
552
|
-
isPrimaryKey: false;
|
|
553
|
-
isAutoincrement: false;
|
|
554
|
-
hasRuntimeDefault: false;
|
|
555
|
-
enumValues: undefined;
|
|
556
|
-
baseColumn: never;
|
|
557
|
-
identity: undefined;
|
|
558
|
-
generated: undefined;
|
|
559
|
-
}, {}, {}>;
|
|
560
|
-
mergedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
561
|
-
name: "merged_at";
|
|
562
|
-
tableName: "channels";
|
|
563
|
-
dataType: "date";
|
|
564
|
-
columnType: "PgTimestamp";
|
|
565
|
-
data: Date;
|
|
566
|
-
driverParam: string;
|
|
567
|
-
notNull: false;
|
|
568
|
-
hasDefault: false;
|
|
569
|
-
isPrimaryKey: false;
|
|
570
|
-
isAutoincrement: false;
|
|
571
|
-
hasRuntimeDefault: false;
|
|
572
|
-
enumValues: undefined;
|
|
573
|
-
baseColumn: never;
|
|
574
|
-
identity: undefined;
|
|
575
|
-
generated: undefined;
|
|
576
|
-
}, {}, {}>;
|
|
577
|
-
};
|
|
578
|
-
dialect: "pg";
|
|
579
|
-
}>;
|
|
580
|
-
export type Channel = typeof channels.$inferSelect;
|
|
581
|
-
declare enum ChannelContextObjectType {
|
|
582
|
-
ENTITY = "entity",
|
|
583
|
-
DOCUMENT = "document",
|
|
584
|
-
VIEW = "view",
|
|
585
|
-
PROPOSAL = "proposal",
|
|
586
|
-
INBOX_ITEM = "inbox_item"
|
|
587
|
-
}
|
|
588
|
-
declare enum ChannelContextRelationshipType {
|
|
589
|
-
USED_AS_CONTEXT = "used_as_context",
|
|
590
|
-
CREATED = "created",
|
|
591
|
-
UPDATED = "updated",
|
|
592
|
-
REFERENCED = "referenced",
|
|
593
|
-
INHERITED_FROM_PARENT = "inherited_from_parent"
|
|
594
|
-
}
|
|
595
|
-
declare enum ChannelContextConflictStatus {
|
|
596
|
-
NONE = "none",
|
|
597
|
-
PENDING = "pending",
|
|
598
|
-
RESOLVED = "resolved"
|
|
93
|
+
declare const ChannelType: {
|
|
94
|
+
readonly AI_THREAD: "ai_thread";
|
|
95
|
+
readonly BRANCH: "branch";
|
|
96
|
+
readonly THREAD: "thread";
|
|
97
|
+
readonly ENTITY_COMMENTS: "entity_comments";
|
|
98
|
+
readonly DOCUMENT_REVIEW: "document_review";
|
|
99
|
+
readonly VIEW_DISCUSSION: "view_discussion";
|
|
100
|
+
readonly DIRECT: "direct";
|
|
101
|
+
readonly EXTERNAL_IMPORT: "external_import";
|
|
102
|
+
readonly A2AI: "a2ai";
|
|
103
|
+
};
|
|
104
|
+
export type ChannelType = (typeof ChannelType)[keyof typeof ChannelType];
|
|
105
|
+
declare const ChannelStatus: {
|
|
106
|
+
readonly ACTIVE: "active";
|
|
107
|
+
readonly MERGED: "merged";
|
|
108
|
+
readonly ARCHIVED: "archived";
|
|
109
|
+
};
|
|
110
|
+
export type ChannelStatus = (typeof ChannelStatus)[keyof typeof ChannelStatus];
|
|
111
|
+
/** Channel row — explicit interface so consumers don't need drizzle-orm to resolve it. */
|
|
112
|
+
export interface Channel {
|
|
113
|
+
id: string;
|
|
114
|
+
userId: string;
|
|
115
|
+
workspaceId: string | null;
|
|
116
|
+
title: string | null;
|
|
117
|
+
channelType: ChannelType;
|
|
118
|
+
contextObjectType: string | null;
|
|
119
|
+
contextObjectId: string | null;
|
|
120
|
+
parentChannelId: string | null;
|
|
121
|
+
branchedFromMessageId: string | null;
|
|
122
|
+
branchPurpose: string | null;
|
|
123
|
+
agentId: string;
|
|
124
|
+
status: ChannelStatus;
|
|
125
|
+
agentType: string;
|
|
126
|
+
agentConfig: unknown;
|
|
127
|
+
mcpServerIds: string[] | null;
|
|
128
|
+
contextSummary: string | null;
|
|
129
|
+
resultSummary: string | null;
|
|
130
|
+
mergedIntoStateId: string | null;
|
|
131
|
+
externalSource: string | null;
|
|
132
|
+
externalChannelId: string | null;
|
|
133
|
+
metadata: unknown;
|
|
134
|
+
createdAt: Date;
|
|
135
|
+
updatedAt: Date;
|
|
136
|
+
mergedAt: Date | null;
|
|
599
137
|
}
|
|
600
138
|
export interface DerivedInput {
|
|
601
139
|
name: string;
|
|
@@ -618,11 +156,13 @@ export interface InputOverride {
|
|
|
618
156
|
* - Enterprise (advanced features)
|
|
619
157
|
*/
|
|
620
158
|
export interface WorkspaceSidebarItem {
|
|
621
|
-
kind: "app" | "view" | "profile" | "external";
|
|
159
|
+
kind: "app" | "view" | "profile" | "external" | "cell";
|
|
622
160
|
/** App ID for kind='app' (e.g. 'dashboard', 'intelligence', 'data') */
|
|
623
161
|
appId?: string;
|
|
624
162
|
/** View name for kind='view' — resolved lazily at click time */
|
|
625
163
|
viewName?: string;
|
|
164
|
+
/** View ID for kind='view' — preferred over viewName when available */
|
|
165
|
+
viewId?: string;
|
|
626
166
|
/**
|
|
627
167
|
* Profile slug for kind='profile'.
|
|
628
168
|
* ActivityBar resolves this to the profile bento view via workspace.settings.profileBentoViewIds,
|
|
@@ -631,10 +171,39 @@ export interface WorkspaceSidebarItem {
|
|
|
631
171
|
profileSlug?: string;
|
|
632
172
|
/** URL template for kind='external'. Use __POD_URL__ as a placeholder. */
|
|
633
173
|
url?: string;
|
|
174
|
+
/** Widget/cell type key for kind='cell' (e.g. 'ai-chat', 'proposals-list') */
|
|
175
|
+
cellKey?: string;
|
|
176
|
+
/** Config props passed to the cell when opened as a panel */
|
|
177
|
+
cellProps?: Record<string, unknown>;
|
|
634
178
|
/** Display label shown in the sidebar */
|
|
635
179
|
label?: string;
|
|
636
180
|
/** Lucide icon name override */
|
|
637
181
|
icon?: string;
|
|
182
|
+
/**
|
|
183
|
+
* URL patterns that auto-activate this item's highlight when the active browser
|
|
184
|
+
* tab URL matches. Checked as prefix (startsWith). Supports the __POD_URL__
|
|
185
|
+
* placeholder. When omitted, kind='external' items auto-match their own url.
|
|
186
|
+
*/
|
|
187
|
+
matchUrls?: string[];
|
|
188
|
+
/**
|
|
189
|
+
* Which sidebar section this item belongs to.
|
|
190
|
+
* 'workspace' = pod data items (views, profiles, pod links).
|
|
191
|
+
* 'space' = browser/app items (app shortcuts, pinned URLs).
|
|
192
|
+
* Omitted items default to 'workspace' for backward compatibility.
|
|
193
|
+
*/
|
|
194
|
+
section?: string;
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* A named collapsible section in the sidebar.
|
|
198
|
+
* Items are assigned to sections via WorkspaceSidebarItem.section.
|
|
199
|
+
*/
|
|
200
|
+
export interface WorkspaceSidebarSection {
|
|
201
|
+
/** Stable id — used as the key in WorkspaceSidebarItem.section */
|
|
202
|
+
id: string;
|
|
203
|
+
/** Display label */
|
|
204
|
+
label: string;
|
|
205
|
+
/** When true the section body is hidden; chevron still shown */
|
|
206
|
+
collapsed?: boolean;
|
|
638
207
|
}
|
|
639
208
|
export interface WorkspaceLayoutConfig {
|
|
640
209
|
pinnedApps?: string[];
|
|
@@ -648,6 +217,12 @@ export interface WorkspaceLayoutConfig {
|
|
|
648
217
|
theme?: string;
|
|
649
218
|
/** Ordered list of sidebar items. When set, replaces the generic app list. */
|
|
650
219
|
sidebarItems?: WorkspaceSidebarItem[];
|
|
220
|
+
/**
|
|
221
|
+
* Named sections for the sidebar. Default when absent: two sections —
|
|
222
|
+
* 'workspace' (pod data) and 'space' (browser/app shortcuts).
|
|
223
|
+
* Section collapsed state is stored here and persisted to the pod.
|
|
224
|
+
*/
|
|
225
|
+
sidebarSections?: WorkspaceSidebarSection[];
|
|
651
226
|
}
|
|
652
227
|
/**
|
|
653
228
|
* MCP server configuration — stored per workspace.
|
|
@@ -725,6 +300,11 @@ export interface WorkspaceSettings {
|
|
|
725
300
|
};
|
|
726
301
|
/** Name of the template used to seed this workspace. When set, workspace-init skips default views. */
|
|
727
302
|
templateName?: string;
|
|
303
|
+
/**
|
|
304
|
+
* ID of the template used to create this workspace (from control plane registry).
|
|
305
|
+
* Distinct from packageSlug — a package can have multiple template versions.
|
|
306
|
+
*/
|
|
307
|
+
templateId?: string;
|
|
728
308
|
/** Slug of the control plane package used to create this workspace. */
|
|
729
309
|
packageSlug?: string;
|
|
730
310
|
/**
|
|
@@ -737,10 +317,66 @@ export interface WorkspaceSettings {
|
|
|
737
317
|
packageVersion?: string;
|
|
738
318
|
/** Who/what created this workspace: user, control-plane provisioning, or plugin seed */
|
|
739
319
|
createdBy?: "user" | "provisioning" | "plugin";
|
|
740
|
-
/** ISO timestamp when provisioning
|
|
320
|
+
/** ISO timestamp when provisioning started (set immediately on workspace creation) */
|
|
741
321
|
provisionedAt?: string;
|
|
742
|
-
/**
|
|
322
|
+
/** ISO timestamp when provisioning started */
|
|
323
|
+
provisioningStartedAt?: string;
|
|
324
|
+
/**
|
|
325
|
+
* Current provisioning status.
|
|
326
|
+
* - "pending" — workspace row exists but provisioning is in progress (or failed)
|
|
327
|
+
* - "active" — fully provisioned and ready to use
|
|
328
|
+
* - "failed" — provisioning stopped at a step (see failedStep + completedSteps)
|
|
329
|
+
*/
|
|
743
330
|
provisioningStatus?: "pending" | "active" | "failed";
|
|
331
|
+
/**
|
|
332
|
+
* The step at which provisioning failed.
|
|
333
|
+
* Only set when provisioningStatus === "failed".
|
|
334
|
+
* Format: step-key (e.g. "profiles[company].create", "views[Home]", "entities")
|
|
335
|
+
*/
|
|
336
|
+
failedStep?: string;
|
|
337
|
+
/**
|
|
338
|
+
* Human-readable error message from the failed step (truncated to 500 chars).
|
|
339
|
+
* Only set when provisioningStatus === "failed".
|
|
340
|
+
*/
|
|
341
|
+
failedStepError?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Step keys that completed successfully before the failure.
|
|
344
|
+
* Populated in order: ["workspace", "member", "profiles", "relations", "templates",
|
|
345
|
+
* "views", "bento", "home", "entities", "flows", "relations-seed", "done"]
|
|
346
|
+
* Lets callers know how far provisioning progressed for debugging / partial retry.
|
|
347
|
+
*/
|
|
348
|
+
completedSteps?: string[];
|
|
349
|
+
/**
|
|
350
|
+
* Semantic type of this workspace within the pod.
|
|
351
|
+
* - "personal" — the user's curated space (default)
|
|
352
|
+
* - "agent" — the AI's staging area (drafts, research, branch outputs)
|
|
353
|
+
* - "project" — scoped context for a specific project
|
|
354
|
+
* - "operational" — system/admin workspace (e.g. pod-admin)
|
|
355
|
+
*/
|
|
356
|
+
workspaceType?: "personal" | "agent" | "project" | "operational";
|
|
357
|
+
/**
|
|
358
|
+
* For agent workspaces: the userId (userType="agent") that owns this workspace.
|
|
359
|
+
* Enables the intelligence service to know which staging area belongs to which agent.
|
|
360
|
+
*/
|
|
361
|
+
linkedAgentId?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Workspace governance mode.
|
|
364
|
+
* - "standard" — default: workspace owner has full control.
|
|
365
|
+
* - "agent-owned" — the AI agent is workspace owner (creative authority);
|
|
366
|
+
* the human is admin (irreversibility guard).
|
|
367
|
+
* All destructive actions by the agent require a proposal
|
|
368
|
+
* even if the agent holds the owner role.
|
|
369
|
+
*/
|
|
370
|
+
governanceMode?: "standard" | "agent-owned";
|
|
371
|
+
/**
|
|
372
|
+
* Package enabled overrides for this workspace.
|
|
373
|
+
* Maps SynapPackage id → enabled boolean.
|
|
374
|
+
* Only entries that differ from the package's `defaultEnabled` flag are stored.
|
|
375
|
+
* When absent for a package, the package's own default applies.
|
|
376
|
+
*
|
|
377
|
+
* Example: { "synap.proposals": false, "synap.ai-chat": true }
|
|
378
|
+
*/
|
|
379
|
+
enabledPackages?: Record<string, boolean>;
|
|
744
380
|
aiGovernance?: {
|
|
745
381
|
/**
|
|
746
382
|
* Whitelist of event keys that AI agents may execute WITHOUT a proposal.
|
|
@@ -765,13 +401,6 @@ export interface WorkspaceSettings {
|
|
|
765
401
|
proposalApprovalPolicy?: "owner_and_admins" | "any_editor" | "admins_only";
|
|
766
402
|
};
|
|
767
403
|
}
|
|
768
|
-
declare enum ProposalStatus {
|
|
769
|
-
PENDING = "pending",
|
|
770
|
-
APPROVED = "approved",
|
|
771
|
-
REJECTED = "rejected",
|
|
772
|
-
/** Action was on the autoApproveFor whitelist — executed immediately, audited here for traceability. */
|
|
773
|
-
AUTO_APPROVED = "auto_approved"
|
|
774
|
-
}
|
|
775
404
|
declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
776
405
|
name: "message_links";
|
|
777
406
|
schema: undefined;
|
|
@@ -1162,6 +791,18 @@ declare enum ProfileScope {
|
|
|
1162
791
|
WORKSPACE = "workspace",// Owned by a single workspace
|
|
1163
792
|
USER = "user"
|
|
1164
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* Widget Definitions Schema
|
|
796
|
+
*
|
|
797
|
+
* Stores widget type definitions for the dynamic bento widget registry.
|
|
798
|
+
* - workspaceId = null → system-wide built-in widgets
|
|
799
|
+
* - workspaceId set → workspace-specific custom widgets (AI-generated or iframe)
|
|
800
|
+
*
|
|
801
|
+
* configSchema (JSONSchema) drives:
|
|
802
|
+
* 1. IS config generation/validation
|
|
803
|
+
* 2. Settings form auto-generation in the frontend
|
|
804
|
+
*/
|
|
805
|
+
export type WidgetRendererType = "builtin" | "iframe";
|
|
1165
806
|
/**
|
|
1166
807
|
* EventRecord - Database representation of an event
|
|
1167
808
|
*
|
|
@@ -1878,44 +1519,38 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1878
1519
|
parentChannelId?: string | undefined;
|
|
1879
1520
|
branchPurpose?: string | undefined;
|
|
1880
1521
|
agentId?: string | undefined;
|
|
1881
|
-
agentType?:
|
|
1522
|
+
agentType?: string | undefined;
|
|
1882
1523
|
agentConfig?: Record<string, any> | undefined;
|
|
1883
1524
|
inheritContext?: boolean | undefined;
|
|
1884
1525
|
};
|
|
1885
1526
|
output: {
|
|
1886
|
-
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1887
|
-
status: string;
|
|
1888
|
-
message: string;
|
|
1889
|
-
channel?: undefined;
|
|
1890
|
-
} | {
|
|
1891
1527
|
channelId: string;
|
|
1892
1528
|
channel: {
|
|
1893
|
-
workspaceId: string | null;
|
|
1894
1529
|
userId: string;
|
|
1530
|
+
workspaceId: string | null;
|
|
1895
1531
|
id: string;
|
|
1896
1532
|
updatedAt: Date;
|
|
1897
1533
|
createdAt: Date;
|
|
1898
1534
|
metadata: unknown;
|
|
1899
1535
|
title: string | null;
|
|
1900
1536
|
externalSource: string | null;
|
|
1901
|
-
status:
|
|
1902
|
-
channelType:
|
|
1537
|
+
status: "active" | "merged" | "archived";
|
|
1538
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
1903
1539
|
contextObjectType: string | null;
|
|
1904
1540
|
contextObjectId: string | null;
|
|
1905
1541
|
parentChannelId: string | null;
|
|
1906
1542
|
branchedFromMessageId: string | null;
|
|
1907
1543
|
branchPurpose: string | null;
|
|
1908
1544
|
agentId: string;
|
|
1909
|
-
agentType:
|
|
1545
|
+
agentType: string;
|
|
1910
1546
|
agentConfig: unknown;
|
|
1547
|
+
mcpServerIds: string[] | null;
|
|
1911
1548
|
contextSummary: string | null;
|
|
1912
1549
|
resultSummary: string | null;
|
|
1913
1550
|
mergedIntoStateId: string | null;
|
|
1914
1551
|
externalChannelId: string | null;
|
|
1915
1552
|
mergedAt: Date | null;
|
|
1916
1553
|
};
|
|
1917
|
-
status?: undefined;
|
|
1918
|
-
message?: undefined;
|
|
1919
1554
|
};
|
|
1920
1555
|
meta: object;
|
|
1921
1556
|
}>;
|
|
@@ -1942,7 +1577,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1942
1577
|
topic: string;
|
|
1943
1578
|
visibility?: "open" | "closed" | undefined;
|
|
1944
1579
|
participants?: string[] | undefined;
|
|
1945
|
-
agentType?:
|
|
1580
|
+
agentType?: string | undefined;
|
|
1946
1581
|
title?: string | undefined;
|
|
1947
1582
|
};
|
|
1948
1583
|
output: {
|
|
@@ -1982,11 +1617,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1982
1617
|
content: string;
|
|
1983
1618
|
channelId?: string | undefined;
|
|
1984
1619
|
workspaceId?: string | undefined;
|
|
1985
|
-
agentType?:
|
|
1620
|
+
agentType?: string | undefined;
|
|
1986
1621
|
agentHandle?: string | undefined;
|
|
1987
1622
|
parentChannelId?: string | undefined;
|
|
1623
|
+
attachmentEntityIds?: string[] | undefined;
|
|
1624
|
+
deepAnalysis?: boolean | undefined;
|
|
1988
1625
|
};
|
|
1989
1626
|
output: {
|
|
1627
|
+
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1628
|
+
channelId: string;
|
|
1629
|
+
content?: undefined;
|
|
1630
|
+
entities?: undefined;
|
|
1631
|
+
branchDecision?: undefined;
|
|
1632
|
+
branchThread?: undefined;
|
|
1633
|
+
aiSteps?: undefined;
|
|
1634
|
+
} | {
|
|
1990
1635
|
channelId: string;
|
|
1991
1636
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1992
1637
|
content: string;
|
|
@@ -1997,24 +1642,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1997
1642
|
}[];
|
|
1998
1643
|
branchDecision: BranchDecision | undefined;
|
|
1999
1644
|
branchThread: {
|
|
2000
|
-
workspaceId: string | null;
|
|
2001
1645
|
userId: string;
|
|
1646
|
+
workspaceId: string | null;
|
|
2002
1647
|
id: string;
|
|
2003
1648
|
updatedAt: Date;
|
|
2004
1649
|
createdAt: Date;
|
|
2005
1650
|
metadata: unknown;
|
|
2006
1651
|
title: string | null;
|
|
2007
1652
|
externalSource: string | null;
|
|
2008
|
-
status:
|
|
2009
|
-
channelType:
|
|
1653
|
+
status: "active" | "merged" | "archived";
|
|
1654
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2010
1655
|
contextObjectType: string | null;
|
|
2011
1656
|
contextObjectId: string | null;
|
|
2012
1657
|
parentChannelId: string | null;
|
|
2013
1658
|
branchedFromMessageId: string | null;
|
|
2014
1659
|
branchPurpose: string | null;
|
|
2015
1660
|
agentId: string;
|
|
2016
|
-
agentType:
|
|
1661
|
+
agentType: string;
|
|
2017
1662
|
agentConfig: unknown;
|
|
1663
|
+
mcpServerIds: string[] | null;
|
|
2018
1664
|
contextSummary: string | null;
|
|
2019
1665
|
resultSummary: string | null;
|
|
2020
1666
|
mergedIntoStateId: string | null;
|
|
@@ -2045,7 +1691,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2045
1691
|
}[];
|
|
2046
1692
|
executionSummaries: {
|
|
2047
1693
|
tool: string;
|
|
2048
|
-
status: "error" | "
|
|
1694
|
+
status: "error" | "skipped" | "success";
|
|
2049
1695
|
result?: unknown;
|
|
2050
1696
|
error?: string | undefined;
|
|
2051
1697
|
}[];
|
|
@@ -2090,9 +1736,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2090
1736
|
content: string;
|
|
2091
1737
|
channelId: string;
|
|
2092
1738
|
parentId: string | null;
|
|
2093
|
-
role:
|
|
2094
|
-
authorType:
|
|
2095
|
-
messageCategory:
|
|
1739
|
+
role: "user" | "system" | "assistant";
|
|
1740
|
+
authorType: "human" | "ai_agent" | "external" | "bot";
|
|
1741
|
+
messageCategory: "chat" | "comment" | "system_notification" | "review";
|
|
2096
1742
|
externalSource: string | null;
|
|
2097
1743
|
inboxItemId: string | null;
|
|
2098
1744
|
previousHash: string | null;
|
|
@@ -2107,33 +1753,34 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2107
1753
|
listChannels: import("@trpc/server").TRPCQueryProcedure<{
|
|
2108
1754
|
input: {
|
|
2109
1755
|
workspaceId?: string | undefined;
|
|
2110
|
-
channelType?: "
|
|
1756
|
+
channelType?: "ai_thread" | "branch" | "main" | undefined;
|
|
2111
1757
|
limit?: number | undefined;
|
|
2112
1758
|
contextObjectId?: string | undefined;
|
|
2113
|
-
contextObjectType?: "entity" | "
|
|
1759
|
+
contextObjectType?: "entity" | "document" | "view" | undefined;
|
|
2114
1760
|
};
|
|
2115
1761
|
output: {
|
|
2116
1762
|
channels: {
|
|
2117
1763
|
hasAssistantMessage: boolean;
|
|
2118
1764
|
origin: string;
|
|
2119
|
-
workspaceId: string | null;
|
|
2120
1765
|
userId: string;
|
|
1766
|
+
workspaceId: string | null;
|
|
2121
1767
|
id: string;
|
|
2122
1768
|
updatedAt: Date;
|
|
2123
1769
|
createdAt: Date;
|
|
2124
1770
|
metadata: unknown;
|
|
2125
1771
|
title: string | null;
|
|
2126
1772
|
externalSource: string | null;
|
|
2127
|
-
status:
|
|
2128
|
-
channelType:
|
|
1773
|
+
status: "active" | "merged" | "archived";
|
|
1774
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2129
1775
|
contextObjectType: string | null;
|
|
2130
1776
|
contextObjectId: string | null;
|
|
2131
1777
|
parentChannelId: string | null;
|
|
2132
1778
|
branchedFromMessageId: string | null;
|
|
2133
1779
|
branchPurpose: string | null;
|
|
2134
1780
|
agentId: string;
|
|
2135
|
-
agentType:
|
|
1781
|
+
agentType: string;
|
|
2136
1782
|
agentConfig: unknown;
|
|
1783
|
+
mcpServerIds: string[] | null;
|
|
2137
1784
|
contextSummary: string | null;
|
|
2138
1785
|
resultSummary: string | null;
|
|
2139
1786
|
mergedIntoStateId: string | null;
|
|
@@ -2146,33 +1793,34 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2146
1793
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2147
1794
|
input: {
|
|
2148
1795
|
workspaceId?: string | undefined;
|
|
2149
|
-
channelType?: "
|
|
1796
|
+
channelType?: "ai_thread" | "branch" | "main" | undefined;
|
|
2150
1797
|
limit?: number | undefined;
|
|
2151
1798
|
contextObjectId?: string | undefined;
|
|
2152
|
-
contextObjectType?: "entity" | "
|
|
1799
|
+
contextObjectType?: "entity" | "document" | "view" | undefined;
|
|
2153
1800
|
};
|
|
2154
1801
|
output: {
|
|
2155
1802
|
channels: {
|
|
2156
1803
|
hasAssistantMessage: boolean;
|
|
2157
1804
|
origin: string;
|
|
2158
|
-
workspaceId: string | null;
|
|
2159
1805
|
userId: string;
|
|
1806
|
+
workspaceId: string | null;
|
|
2160
1807
|
id: string;
|
|
2161
1808
|
updatedAt: Date;
|
|
2162
1809
|
createdAt: Date;
|
|
2163
1810
|
metadata: unknown;
|
|
2164
1811
|
title: string | null;
|
|
2165
1812
|
externalSource: string | null;
|
|
2166
|
-
status:
|
|
2167
|
-
channelType:
|
|
1813
|
+
status: "active" | "merged" | "archived";
|
|
1814
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2168
1815
|
contextObjectType: string | null;
|
|
2169
1816
|
contextObjectId: string | null;
|
|
2170
1817
|
parentChannelId: string | null;
|
|
2171
1818
|
branchedFromMessageId: string | null;
|
|
2172
1819
|
branchPurpose: string | null;
|
|
2173
1820
|
agentId: string;
|
|
2174
|
-
agentType:
|
|
1821
|
+
agentType: string;
|
|
2175
1822
|
agentConfig: unknown;
|
|
1823
|
+
mcpServerIds: string[] | null;
|
|
2176
1824
|
contextSummary: string | null;
|
|
2177
1825
|
resultSummary: string | null;
|
|
2178
1826
|
mergedIntoStateId: string | null;
|
|
@@ -2187,31 +1835,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2187
1835
|
workspaceId: string;
|
|
2188
1836
|
};
|
|
2189
1837
|
output: {
|
|
2190
|
-
channel:
|
|
2191
|
-
workspaceId: string | null;
|
|
2192
|
-
userId: string;
|
|
2193
|
-
id: string;
|
|
2194
|
-
updatedAt: Date;
|
|
2195
|
-
createdAt: Date;
|
|
2196
|
-
metadata: unknown;
|
|
2197
|
-
title: string | null;
|
|
2198
|
-
externalSource: string | null;
|
|
2199
|
-
status: ChannelStatus;
|
|
2200
|
-
channelType: ChannelType;
|
|
2201
|
-
contextObjectType: string | null;
|
|
2202
|
-
contextObjectId: string | null;
|
|
2203
|
-
parentChannelId: string | null;
|
|
2204
|
-
branchedFromMessageId: string | null;
|
|
2205
|
-
branchPurpose: string | null;
|
|
2206
|
-
agentId: string;
|
|
2207
|
-
agentType: ChannelAgentType;
|
|
2208
|
-
agentConfig: unknown;
|
|
2209
|
-
contextSummary: string | null;
|
|
2210
|
-
resultSummary: string | null;
|
|
2211
|
-
mergedIntoStateId: string | null;
|
|
2212
|
-
externalChannelId: string | null;
|
|
2213
|
-
mergedAt: Date | null;
|
|
2214
|
-
};
|
|
1838
|
+
channel: Channel;
|
|
2215
1839
|
};
|
|
2216
1840
|
meta: object;
|
|
2217
1841
|
}>;
|
|
@@ -2221,24 +1845,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2221
1845
|
};
|
|
2222
1846
|
output: {
|
|
2223
1847
|
branches: {
|
|
2224
|
-
workspaceId: string | null;
|
|
2225
1848
|
userId: string;
|
|
1849
|
+
workspaceId: string | null;
|
|
2226
1850
|
id: string;
|
|
2227
1851
|
updatedAt: Date;
|
|
2228
1852
|
createdAt: Date;
|
|
2229
1853
|
metadata: unknown;
|
|
2230
1854
|
title: string | null;
|
|
2231
1855
|
externalSource: string | null;
|
|
2232
|
-
status:
|
|
2233
|
-
channelType:
|
|
1856
|
+
status: "active" | "merged" | "archived";
|
|
1857
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2234
1858
|
contextObjectType: string | null;
|
|
2235
1859
|
contextObjectId: string | null;
|
|
2236
1860
|
parentChannelId: string | null;
|
|
2237
1861
|
branchedFromMessageId: string | null;
|
|
2238
1862
|
branchPurpose: string | null;
|
|
2239
1863
|
agentId: string;
|
|
2240
|
-
agentType:
|
|
1864
|
+
agentType: string;
|
|
2241
1865
|
agentConfig: unknown;
|
|
1866
|
+
mcpServerIds: string[] | null;
|
|
2242
1867
|
contextSummary: string | null;
|
|
2243
1868
|
resultSummary: string | null;
|
|
2244
1869
|
mergedIntoStateId: string | null;
|
|
@@ -2282,24 +1907,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2282
1907
|
};
|
|
2283
1908
|
output: {
|
|
2284
1909
|
channel: {
|
|
2285
|
-
workspaceId: string | null;
|
|
2286
1910
|
userId: string;
|
|
1911
|
+
workspaceId: string | null;
|
|
2287
1912
|
id: string;
|
|
2288
1913
|
updatedAt: Date;
|
|
2289
1914
|
createdAt: Date;
|
|
2290
1915
|
metadata: unknown;
|
|
2291
1916
|
title: string | null;
|
|
2292
1917
|
externalSource: string | null;
|
|
2293
|
-
status:
|
|
2294
|
-
channelType:
|
|
1918
|
+
status: "active" | "merged" | "archived";
|
|
1919
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2295
1920
|
contextObjectType: string | null;
|
|
2296
1921
|
contextObjectId: string | null;
|
|
2297
1922
|
parentChannelId: string | null;
|
|
2298
1923
|
branchedFromMessageId: string | null;
|
|
2299
1924
|
branchPurpose: string | null;
|
|
2300
1925
|
agentId: string;
|
|
2301
|
-
agentType:
|
|
1926
|
+
agentType: string;
|
|
2302
1927
|
agentConfig: unknown;
|
|
1928
|
+
mcpServerIds: string[] | null;
|
|
2303
1929
|
contextSummary: string | null;
|
|
2304
1930
|
resultSummary: string | null;
|
|
2305
1931
|
mergedIntoStateId: string | null;
|
|
@@ -2307,16 +1933,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2307
1933
|
mergedAt: Date | null;
|
|
2308
1934
|
};
|
|
2309
1935
|
contextItems: {
|
|
2310
|
-
workspaceId: string;
|
|
2311
1936
|
userId: string;
|
|
1937
|
+
workspaceId: string;
|
|
2312
1938
|
sourceMessageId: string | null;
|
|
2313
1939
|
id: string;
|
|
2314
1940
|
createdAt: Date;
|
|
2315
1941
|
channelId: string;
|
|
2316
|
-
objectType:
|
|
1942
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2317
1943
|
objectId: string;
|
|
2318
|
-
relationshipType:
|
|
2319
|
-
conflictStatus:
|
|
1944
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
1945
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2320
1946
|
relevanceScore: number | null;
|
|
2321
1947
|
}[] | undefined;
|
|
2322
1948
|
branchTree: any;
|
|
@@ -2328,8 +1954,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2328
1954
|
channelId: string;
|
|
2329
1955
|
title?: string | undefined;
|
|
2330
1956
|
agentId?: string | undefined;
|
|
2331
|
-
agentType?:
|
|
1957
|
+
agentType?: string | undefined;
|
|
2332
1958
|
agentConfig?: Record<string, unknown> | undefined;
|
|
1959
|
+
mcpServerIds?: string[] | null | undefined;
|
|
2333
1960
|
};
|
|
2334
1961
|
output: {
|
|
2335
1962
|
status: string;
|
|
@@ -2337,6 +1964,35 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2337
1964
|
};
|
|
2338
1965
|
meta: object;
|
|
2339
1966
|
}>;
|
|
1967
|
+
addMcpToChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1968
|
+
input: {
|
|
1969
|
+
channelId: string;
|
|
1970
|
+
mcpServerId: string;
|
|
1971
|
+
};
|
|
1972
|
+
output: {
|
|
1973
|
+
channelId: string;
|
|
1974
|
+
};
|
|
1975
|
+
meta: object;
|
|
1976
|
+
}>;
|
|
1977
|
+
removeMcpFromChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1978
|
+
input: {
|
|
1979
|
+
channelId: string;
|
|
1980
|
+
mcpServerId: string;
|
|
1981
|
+
};
|
|
1982
|
+
output: {
|
|
1983
|
+
channelId: string;
|
|
1984
|
+
};
|
|
1985
|
+
meta: object;
|
|
1986
|
+
}>;
|
|
1987
|
+
pruneEmptyBranch: import("@trpc/server").TRPCMutationProcedure<{
|
|
1988
|
+
input: {
|
|
1989
|
+
channelId: string;
|
|
1990
|
+
};
|
|
1991
|
+
output: {
|
|
1992
|
+
pruned: boolean;
|
|
1993
|
+
};
|
|
1994
|
+
meta: object;
|
|
1995
|
+
}>;
|
|
2340
1996
|
archiveChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2341
1997
|
input: {
|
|
2342
1998
|
channelId: string;
|
|
@@ -2354,24 +2010,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2354
2010
|
output: {
|
|
2355
2011
|
tree: BranchTreeNode | null;
|
|
2356
2012
|
flatBranches: {
|
|
2357
|
-
workspaceId: string | null;
|
|
2358
2013
|
userId: string;
|
|
2014
|
+
workspaceId: string | null;
|
|
2359
2015
|
id: string;
|
|
2360
2016
|
updatedAt: Date;
|
|
2361
2017
|
createdAt: Date;
|
|
2362
2018
|
metadata: unknown;
|
|
2363
2019
|
title: string | null;
|
|
2364
2020
|
externalSource: string | null;
|
|
2365
|
-
status:
|
|
2366
|
-
channelType:
|
|
2021
|
+
status: "active" | "merged" | "archived";
|
|
2022
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2367
2023
|
contextObjectType: string | null;
|
|
2368
2024
|
contextObjectId: string | null;
|
|
2369
2025
|
parentChannelId: string | null;
|
|
2370
2026
|
branchedFromMessageId: string | null;
|
|
2371
2027
|
branchPurpose: string | null;
|
|
2372
2028
|
agentId: string;
|
|
2373
|
-
agentType:
|
|
2029
|
+
agentType: string;
|
|
2374
2030
|
agentConfig: unknown;
|
|
2031
|
+
mcpServerIds: string[] | null;
|
|
2375
2032
|
contextSummary: string | null;
|
|
2376
2033
|
resultSummary: string | null;
|
|
2377
2034
|
mergedIntoStateId: string | null;
|
|
@@ -2379,24 +2036,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2379
2036
|
mergedAt: Date | null;
|
|
2380
2037
|
}[];
|
|
2381
2038
|
activeBranches: {
|
|
2382
|
-
workspaceId: string | null;
|
|
2383
2039
|
userId: string;
|
|
2040
|
+
workspaceId: string | null;
|
|
2384
2041
|
id: string;
|
|
2385
2042
|
updatedAt: Date;
|
|
2386
2043
|
createdAt: Date;
|
|
2387
2044
|
metadata: unknown;
|
|
2388
2045
|
title: string | null;
|
|
2389
2046
|
externalSource: string | null;
|
|
2390
|
-
status:
|
|
2391
|
-
channelType:
|
|
2047
|
+
status: "active" | "merged" | "archived";
|
|
2048
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2392
2049
|
contextObjectType: string | null;
|
|
2393
2050
|
contextObjectId: string | null;
|
|
2394
2051
|
parentChannelId: string | null;
|
|
2395
2052
|
branchedFromMessageId: string | null;
|
|
2396
2053
|
branchPurpose: string | null;
|
|
2397
2054
|
agentId: string;
|
|
2398
|
-
agentType:
|
|
2055
|
+
agentType: string;
|
|
2399
2056
|
agentConfig: unknown;
|
|
2057
|
+
mcpServerIds: string[] | null;
|
|
2400
2058
|
contextSummary: string | null;
|
|
2401
2059
|
resultSummary: string | null;
|
|
2402
2060
|
mergedIntoStateId: string | null;
|
|
@@ -2404,24 +2062,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2404
2062
|
mergedAt: Date | null;
|
|
2405
2063
|
}[];
|
|
2406
2064
|
mergedBranches: {
|
|
2407
|
-
workspaceId: string | null;
|
|
2408
2065
|
userId: string;
|
|
2066
|
+
workspaceId: string | null;
|
|
2409
2067
|
id: string;
|
|
2410
2068
|
updatedAt: Date;
|
|
2411
2069
|
createdAt: Date;
|
|
2412
2070
|
metadata: unknown;
|
|
2413
2071
|
title: string | null;
|
|
2414
2072
|
externalSource: string | null;
|
|
2415
|
-
status:
|
|
2416
|
-
channelType:
|
|
2073
|
+
status: "active" | "merged" | "archived";
|
|
2074
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2417
2075
|
contextObjectType: string | null;
|
|
2418
2076
|
contextObjectId: string | null;
|
|
2419
2077
|
parentChannelId: string | null;
|
|
2420
2078
|
branchedFromMessageId: string | null;
|
|
2421
2079
|
branchPurpose: string | null;
|
|
2422
2080
|
agentId: string;
|
|
2423
|
-
agentType:
|
|
2081
|
+
agentType: string;
|
|
2424
2082
|
agentConfig: unknown;
|
|
2083
|
+
mcpServerIds: string[] | null;
|
|
2425
2084
|
contextSummary: string | null;
|
|
2426
2085
|
resultSummary: string | null;
|
|
2427
2086
|
mergedIntoStateId: string | null;
|
|
@@ -2434,47 +2093,47 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2434
2093
|
getChannelContext: import("@trpc/server").TRPCQueryProcedure<{
|
|
2435
2094
|
input: {
|
|
2436
2095
|
channelId: string;
|
|
2437
|
-
objectTypes?: ("entity" | "
|
|
2096
|
+
objectTypes?: ("entity" | "document" | "view" | "proposal" | "inbox_item")[] | undefined;
|
|
2438
2097
|
relationshipTypes?: ("created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent")[] | undefined;
|
|
2439
2098
|
};
|
|
2440
2099
|
output: {
|
|
2441
2100
|
items: {
|
|
2442
|
-
workspaceId: string;
|
|
2443
2101
|
userId: string;
|
|
2102
|
+
workspaceId: string;
|
|
2444
2103
|
sourceMessageId: string | null;
|
|
2445
2104
|
id: string;
|
|
2446
2105
|
createdAt: Date;
|
|
2447
2106
|
channelId: string;
|
|
2448
|
-
objectType:
|
|
2107
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2449
2108
|
objectId: string;
|
|
2450
|
-
relationshipType:
|
|
2451
|
-
conflictStatus:
|
|
2109
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2110
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2452
2111
|
relevanceScore: number | null;
|
|
2453
2112
|
}[];
|
|
2454
2113
|
entities: {
|
|
2455
|
-
workspaceId: string;
|
|
2456
2114
|
userId: string;
|
|
2115
|
+
workspaceId: string;
|
|
2457
2116
|
sourceMessageId: string | null;
|
|
2458
2117
|
id: string;
|
|
2459
2118
|
createdAt: Date;
|
|
2460
2119
|
channelId: string;
|
|
2461
|
-
objectType:
|
|
2120
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2462
2121
|
objectId: string;
|
|
2463
|
-
relationshipType:
|
|
2464
|
-
conflictStatus:
|
|
2122
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2123
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2465
2124
|
relevanceScore: number | null;
|
|
2466
2125
|
}[];
|
|
2467
2126
|
documents: {
|
|
2468
|
-
workspaceId: string;
|
|
2469
2127
|
userId: string;
|
|
2128
|
+
workspaceId: string;
|
|
2470
2129
|
sourceMessageId: string | null;
|
|
2471
2130
|
id: string;
|
|
2472
2131
|
createdAt: Date;
|
|
2473
2132
|
channelId: string;
|
|
2474
|
-
objectType:
|
|
2133
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2475
2134
|
objectId: string;
|
|
2476
|
-
relationshipType:
|
|
2477
|
-
conflictStatus:
|
|
2135
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2136
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2478
2137
|
relevanceScore: number | null;
|
|
2479
2138
|
}[];
|
|
2480
2139
|
};
|
|
@@ -2483,7 +2142,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2483
2142
|
addContextItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
2484
2143
|
input: {
|
|
2485
2144
|
channelId: string;
|
|
2486
|
-
objectType: "entity" | "
|
|
2145
|
+
objectType: "entity" | "document" | "view";
|
|
2487
2146
|
objectId: string;
|
|
2488
2147
|
};
|
|
2489
2148
|
output: {
|
|
@@ -2491,11 +2150,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2491
2150
|
};
|
|
2492
2151
|
meta: object;
|
|
2493
2152
|
}>;
|
|
2153
|
+
deleteMessagesFrom: import("@trpc/server").TRPCMutationProcedure<{
|
|
2154
|
+
input: {
|
|
2155
|
+
channelId: string;
|
|
2156
|
+
fromMessageId: string;
|
|
2157
|
+
};
|
|
2158
|
+
output: {
|
|
2159
|
+
ok: boolean;
|
|
2160
|
+
};
|
|
2161
|
+
meta: object;
|
|
2162
|
+
}>;
|
|
2494
2163
|
removeContextItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
2495
2164
|
input: {
|
|
2496
2165
|
channelId: string;
|
|
2497
2166
|
objectId: string;
|
|
2498
|
-
objectType: "entity" | "
|
|
2167
|
+
objectType: "entity" | "document" | "view";
|
|
2499
2168
|
};
|
|
2500
2169
|
output: {
|
|
2501
2170
|
ok: boolean;
|
|
@@ -2516,10 +2185,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2516
2185
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2517
2186
|
input: {
|
|
2518
2187
|
workspaceId?: string | undefined;
|
|
2519
|
-
targetType?: "entity" | "
|
|
2188
|
+
targetType?: "entity" | "document" | "view" | "profile" | "whiteboard" | undefined;
|
|
2520
2189
|
targetId?: string | undefined;
|
|
2521
2190
|
threadId?: string | undefined;
|
|
2522
|
-
status?: "pending" | "
|
|
2191
|
+
status?: "pending" | "rejected" | "validated" | "all" | undefined;
|
|
2523
2192
|
limit?: number | undefined;
|
|
2524
2193
|
};
|
|
2525
2194
|
output: {
|
|
@@ -2530,7 +2199,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2530
2199
|
data: unknown;
|
|
2531
2200
|
updatedAt: Date;
|
|
2532
2201
|
createdAt: Date;
|
|
2533
|
-
status:
|
|
2202
|
+
status: "approved" | "pending" | "rejected" | "auto_approved";
|
|
2534
2203
|
expiresAt: Date | null;
|
|
2535
2204
|
createdBy: string | null;
|
|
2536
2205
|
threadId: string | null;
|
|
@@ -2593,7 +2262,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2593
2262
|
}>;
|
|
2594
2263
|
submit: import("@trpc/server").TRPCMutationProcedure<{
|
|
2595
2264
|
input: {
|
|
2596
|
-
targetType: "
|
|
2265
|
+
targetType: "entity" | "document" | "view" | "workspace" | "relation" | "profile";
|
|
2597
2266
|
changeType: "create" | "update" | "delete";
|
|
2598
2267
|
data: Record<string, any>;
|
|
2599
2268
|
targetId?: string | undefined;
|
|
@@ -2921,7 +2590,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2921
2590
|
}>;
|
|
2922
2591
|
listUsers: import("@trpc/server").TRPCQueryProcedure<{
|
|
2923
2592
|
input: {
|
|
2924
|
-
type?: "
|
|
2593
|
+
type?: "human" | "agent" | "all" | undefined;
|
|
2925
2594
|
limit?: number | undefined;
|
|
2926
2595
|
offset?: number | undefined;
|
|
2927
2596
|
};
|
|
@@ -3188,10 +2857,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3188
2857
|
output: {
|
|
3189
2858
|
total: number;
|
|
3190
2859
|
migrations: {
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
2860
|
+
id: unknown;
|
|
2861
|
+
hash: unknown;
|
|
2862
|
+
appliedAt: unknown;
|
|
3194
2863
|
}[];
|
|
2864
|
+
note?: undefined;
|
|
2865
|
+
} | {
|
|
2866
|
+
total: number;
|
|
2867
|
+
migrations: never[];
|
|
3195
2868
|
note: string;
|
|
3196
2869
|
};
|
|
3197
2870
|
meta: object;
|
|
@@ -3706,8 +3379,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3706
3379
|
offset?: number | undefined;
|
|
3707
3380
|
};
|
|
3708
3381
|
output: {
|
|
3709
|
-
workspaceId: string;
|
|
3710
3382
|
userId: string;
|
|
3383
|
+
workspaceId: string;
|
|
3711
3384
|
id: string;
|
|
3712
3385
|
data: unknown;
|
|
3713
3386
|
type: string;
|
|
@@ -4086,9 +3759,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4086
3759
|
allowedEntityTypes: string[] | null;
|
|
4087
3760
|
maxEntitiesCreatedPerRun: number | null;
|
|
4088
3761
|
canCreateViews: boolean;
|
|
4089
|
-
outputMode: "
|
|
3762
|
+
outputMode: "view" | "proposal" | "text";
|
|
4090
3763
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4091
|
-
sharedScope: "
|
|
3764
|
+
sharedScope: "user" | "workspace";
|
|
4092
3765
|
}[];
|
|
4093
3766
|
};
|
|
4094
3767
|
meta: object;
|
|
@@ -4112,9 +3785,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4112
3785
|
allowedEntityTypes: string[] | null;
|
|
4113
3786
|
maxEntitiesCreatedPerRun: number | null;
|
|
4114
3787
|
canCreateViews: boolean;
|
|
4115
|
-
outputMode: "
|
|
3788
|
+
outputMode: "view" | "proposal" | "text";
|
|
4116
3789
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4117
|
-
sharedScope: "
|
|
3790
|
+
sharedScope: "user" | "workspace";
|
|
4118
3791
|
};
|
|
4119
3792
|
meta: object;
|
|
4120
3793
|
}>;
|
|
@@ -4127,9 +3800,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4127
3800
|
allowedEntityTypes?: string[] | undefined;
|
|
4128
3801
|
maxEntitiesCreatedPerRun?: number | undefined;
|
|
4129
3802
|
canCreateViews?: boolean | undefined;
|
|
4130
|
-
outputMode?: "
|
|
3803
|
+
outputMode?: "view" | "proposal" | "text" | undefined;
|
|
4131
3804
|
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
4132
|
-
sharedScope?: "
|
|
3805
|
+
sharedScope?: "user" | "workspace" | undefined;
|
|
4133
3806
|
};
|
|
4134
3807
|
output: {
|
|
4135
3808
|
workspaceId: string;
|
|
@@ -4146,9 +3819,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4146
3819
|
allowedEntityTypes: string[] | null;
|
|
4147
3820
|
maxEntitiesCreatedPerRun: number | null;
|
|
4148
3821
|
canCreateViews: boolean;
|
|
4149
|
-
outputMode: "
|
|
3822
|
+
outputMode: "view" | "proposal" | "text";
|
|
4150
3823
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4151
|
-
sharedScope: "
|
|
3824
|
+
sharedScope: "user" | "workspace";
|
|
4152
3825
|
};
|
|
4153
3826
|
meta: object;
|
|
4154
3827
|
}>;
|
|
@@ -4162,9 +3835,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4162
3835
|
allowedEntityTypes?: string[] | undefined;
|
|
4163
3836
|
maxEntitiesCreatedPerRun?: number | null | undefined;
|
|
4164
3837
|
canCreateViews?: boolean | undefined;
|
|
4165
|
-
outputMode?: "
|
|
3838
|
+
outputMode?: "view" | "proposal" | "text" | undefined;
|
|
4166
3839
|
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
4167
|
-
sharedScope?: "
|
|
3840
|
+
sharedScope?: "user" | "workspace" | undefined;
|
|
4168
3841
|
};
|
|
4169
3842
|
output: {
|
|
4170
3843
|
id: string;
|
|
@@ -4179,9 +3852,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4179
3852
|
allowedEntityTypes: string[] | null;
|
|
4180
3853
|
maxEntitiesCreatedPerRun: number | null;
|
|
4181
3854
|
canCreateViews: boolean;
|
|
4182
|
-
outputMode: "
|
|
3855
|
+
outputMode: "view" | "proposal" | "text";
|
|
4183
3856
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4184
|
-
sharedScope: "
|
|
3857
|
+
sharedScope: "user" | "workspace";
|
|
4185
3858
|
createdAt: Date;
|
|
4186
3859
|
updatedAt: Date;
|
|
4187
3860
|
};
|
|
@@ -4222,8 +3895,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4222
3895
|
};
|
|
4223
3896
|
output: {
|
|
4224
3897
|
runs: {
|
|
4225
|
-
workspaceId: string;
|
|
4226
3898
|
userId: string;
|
|
3899
|
+
workspaceId: string;
|
|
4227
3900
|
id: string;
|
|
4228
3901
|
errorMessage: string | null;
|
|
4229
3902
|
startedAt: Date;
|
|
@@ -4248,8 +3921,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4248
3921
|
id: string;
|
|
4249
3922
|
};
|
|
4250
3923
|
output: {
|
|
4251
|
-
workspaceId: string;
|
|
4252
3924
|
userId: string;
|
|
3925
|
+
workspaceId: string;
|
|
4253
3926
|
id: string;
|
|
4254
3927
|
errorMessage: string | null;
|
|
4255
3928
|
startedAt: Date;
|
|
@@ -4282,6 +3955,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4282
3955
|
};
|
|
4283
3956
|
meta: object;
|
|
4284
3957
|
}>;
|
|
3958
|
+
listSpecialisations: import("@trpc/server").TRPCQueryProcedure<{
|
|
3959
|
+
input: void;
|
|
3960
|
+
output: {
|
|
3961
|
+
specialisations: unknown[];
|
|
3962
|
+
};
|
|
3963
|
+
meta: object;
|
|
3964
|
+
}>;
|
|
4285
3965
|
agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
4286
3966
|
input: void;
|
|
4287
3967
|
output: {
|
|
@@ -4359,7 +4039,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4359
4039
|
}>;
|
|
4360
4040
|
proposals: import("@trpc/server").TRPCQueryProcedure<{
|
|
4361
4041
|
input: {
|
|
4362
|
-
status?: "approved" | "
|
|
4042
|
+
status?: "approved" | "pending" | "denied" | undefined;
|
|
4363
4043
|
};
|
|
4364
4044
|
output: {
|
|
4365
4045
|
proposals: any[];
|
|
@@ -4480,6 +4160,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4480
4160
|
} | null;
|
|
4481
4161
|
meta: object;
|
|
4482
4162
|
}>;
|
|
4163
|
+
extractEntity: import("@trpc/server").TRPCMutationProcedure<{
|
|
4164
|
+
input: {
|
|
4165
|
+
url: string;
|
|
4166
|
+
html: string;
|
|
4167
|
+
title?: string | undefined;
|
|
4168
|
+
};
|
|
4169
|
+
output: {
|
|
4170
|
+
profileSlug: string;
|
|
4171
|
+
title: string;
|
|
4172
|
+
description?: string;
|
|
4173
|
+
properties?: Record<string, unknown>;
|
|
4174
|
+
confidence: number;
|
|
4175
|
+
} | null;
|
|
4176
|
+
meta: object;
|
|
4177
|
+
}>;
|
|
4483
4178
|
}>>;
|
|
4484
4179
|
capabilities: import("@trpc/server").TRPCBuiltRouter<{
|
|
4485
4180
|
ctx: Context;
|
|
@@ -4568,7 +4263,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4568
4263
|
entities: import("@trpc/server").TRPCQueryProcedure<{
|
|
4569
4264
|
input: {
|
|
4570
4265
|
query: string;
|
|
4571
|
-
type?: "note" | "
|
|
4266
|
+
type?: "note" | "document" | "task" | "project" | undefined;
|
|
4572
4267
|
limit?: number | undefined;
|
|
4573
4268
|
};
|
|
4574
4269
|
output: {
|
|
@@ -4602,8 +4297,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4602
4297
|
};
|
|
4603
4298
|
output: {
|
|
4604
4299
|
entities: {
|
|
4605
|
-
workspaceId: string | null;
|
|
4606
4300
|
userId: string;
|
|
4301
|
+
workspaceId: string | null;
|
|
4607
4302
|
id: string;
|
|
4608
4303
|
type: string;
|
|
4609
4304
|
updatedAt: Date;
|
|
@@ -4649,8 +4344,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4649
4344
|
};
|
|
4650
4345
|
output: {
|
|
4651
4346
|
relations: {
|
|
4652
|
-
workspaceId: string;
|
|
4653
4347
|
userId: string;
|
|
4348
|
+
workspaceId: string;
|
|
4654
4349
|
id: string;
|
|
4655
4350
|
type: string;
|
|
4656
4351
|
createdAt: Date;
|
|
@@ -4684,8 +4379,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4684
4379
|
};
|
|
4685
4380
|
output: {
|
|
4686
4381
|
relations: {
|
|
4687
|
-
workspaceId: string;
|
|
4688
4382
|
userId: string;
|
|
4383
|
+
workspaceId: string;
|
|
4689
4384
|
id: string;
|
|
4690
4385
|
type: string;
|
|
4691
4386
|
createdAt: Date;
|
|
@@ -4705,8 +4400,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4705
4400
|
};
|
|
4706
4401
|
output: {
|
|
4707
4402
|
entities: {
|
|
4708
|
-
workspaceId: string | null;
|
|
4709
4403
|
userId: string;
|
|
4404
|
+
workspaceId: string | null;
|
|
4710
4405
|
id: string;
|
|
4711
4406
|
type: string;
|
|
4712
4407
|
updatedAt: Date;
|
|
@@ -4763,8 +4458,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4763
4458
|
connections: {
|
|
4764
4459
|
entityId: string;
|
|
4765
4460
|
entity: {
|
|
4766
|
-
workspaceId: string | null;
|
|
4767
4461
|
userId: string;
|
|
4462
|
+
workspaceId: string | null;
|
|
4768
4463
|
id: string;
|
|
4769
4464
|
type: string;
|
|
4770
4465
|
updatedAt: Date;
|
|
@@ -4831,8 +4526,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4831
4526
|
};
|
|
4832
4527
|
output: {
|
|
4833
4528
|
entity: {
|
|
4834
|
-
workspaceId: string | null;
|
|
4835
4529
|
userId: string;
|
|
4530
|
+
workspaceId: string | null;
|
|
4836
4531
|
id: string;
|
|
4837
4532
|
type: string;
|
|
4838
4533
|
updatedAt: Date;
|
|
@@ -4851,8 +4546,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4851
4546
|
stats: null;
|
|
4852
4547
|
} | {
|
|
4853
4548
|
entity: {
|
|
4854
|
-
workspaceId: string | null;
|
|
4855
4549
|
userId: string;
|
|
4550
|
+
workspaceId: string | null;
|
|
4856
4551
|
id: string;
|
|
4857
4552
|
type: string;
|
|
4858
4553
|
updatedAt: Date;
|
|
@@ -4867,8 +4562,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4867
4562
|
deletedAt: Date | null;
|
|
4868
4563
|
};
|
|
4869
4564
|
relations: {
|
|
4870
|
-
workspaceId: string;
|
|
4871
4565
|
userId: string;
|
|
4566
|
+
workspaceId: string;
|
|
4872
4567
|
id: string;
|
|
4873
4568
|
type: string;
|
|
4874
4569
|
createdAt: Date;
|
|
@@ -4894,8 +4589,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4894
4589
|
};
|
|
4895
4590
|
output: {
|
|
4896
4591
|
entities: {
|
|
4897
|
-
workspaceId: string | null;
|
|
4898
4592
|
userId: string;
|
|
4593
|
+
workspaceId: string | null;
|
|
4899
4594
|
id: string;
|
|
4900
4595
|
type: string;
|
|
4901
4596
|
updatedAt: Date;
|
|
@@ -4910,8 +4605,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4910
4605
|
deletedAt: Date | null;
|
|
4911
4606
|
}[];
|
|
4912
4607
|
relations: {
|
|
4913
|
-
workspaceId: string;
|
|
4914
4608
|
userId: string;
|
|
4609
|
+
workspaceId: string;
|
|
4915
4610
|
id: string;
|
|
4916
4611
|
type: string;
|
|
4917
4612
|
createdAt: Date;
|
|
@@ -5093,8 +4788,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5093
4788
|
workspaceId: string;
|
|
5094
4789
|
};
|
|
5095
4790
|
output: {
|
|
5096
|
-
workspaceId: string;
|
|
5097
4791
|
userId: string;
|
|
4792
|
+
workspaceId: string;
|
|
5098
4793
|
id: string;
|
|
5099
4794
|
role: string;
|
|
5100
4795
|
joinedAt: Date;
|
|
@@ -5163,8 +4858,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5163
4858
|
createdAt: Date;
|
|
5164
4859
|
role: string;
|
|
5165
4860
|
expiresAt: Date;
|
|
5166
|
-
invitedBy: string;
|
|
5167
4861
|
token: string;
|
|
4862
|
+
invitedBy: string;
|
|
5168
4863
|
};
|
|
5169
4864
|
meta: object;
|
|
5170
4865
|
}>;
|
|
@@ -5179,8 +4874,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5179
4874
|
createdAt: Date;
|
|
5180
4875
|
role: string;
|
|
5181
4876
|
expiresAt: Date;
|
|
5182
|
-
invitedBy: string;
|
|
5183
4877
|
token: string;
|
|
4878
|
+
invitedBy: string;
|
|
5184
4879
|
}[];
|
|
5185
4880
|
meta: object;
|
|
5186
4881
|
}>;
|
|
@@ -5217,6 +4912,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5217
4912
|
color?: string | undefined;
|
|
5218
4913
|
description?: string | undefined;
|
|
5219
4914
|
scope?: string | undefined;
|
|
4915
|
+
semanticSlug?: string | null | undefined;
|
|
5220
4916
|
properties?: {
|
|
5221
4917
|
slug: string;
|
|
5222
4918
|
valueType: string;
|
|
@@ -5225,16 +4921,52 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5225
4921
|
placeholder?: string | undefined;
|
|
5226
4922
|
enumValues?: string[] | undefined;
|
|
5227
4923
|
constraints?: Record<string, unknown> | undefined;
|
|
4924
|
+
targetProfileSlug?: string | undefined;
|
|
4925
|
+
}[] | undefined;
|
|
4926
|
+
uiHints?: {
|
|
4927
|
+
icon?: string | undefined;
|
|
4928
|
+
color?: string | undefined;
|
|
4929
|
+
description?: string | undefined;
|
|
4930
|
+
} | undefined;
|
|
4931
|
+
propertyDefs?: {
|
|
4932
|
+
slug: string;
|
|
4933
|
+
valueType: string;
|
|
4934
|
+
required?: boolean | undefined;
|
|
4935
|
+
constraints?: {
|
|
4936
|
+
[x: string]: unknown;
|
|
4937
|
+
enum?: string[] | undefined;
|
|
4938
|
+
} | undefined;
|
|
4939
|
+
uiHints?: {
|
|
4940
|
+
label?: string | undefined;
|
|
4941
|
+
inputType?: string | undefined;
|
|
4942
|
+
placeholder?: string | undefined;
|
|
4943
|
+
} | undefined;
|
|
5228
4944
|
}[] | undefined;
|
|
5229
4945
|
}[] | undefined;
|
|
5230
4946
|
views?: {
|
|
5231
4947
|
type: string;
|
|
5232
4948
|
name?: string | undefined;
|
|
5233
4949
|
displayName?: string | undefined;
|
|
4950
|
+
slug?: string | undefined;
|
|
5234
4951
|
scopeProfileSlug?: string | undefined;
|
|
5235
4952
|
scopeProfileSlugs?: string[] | undefined;
|
|
5236
4953
|
config?: Record<string, unknown> | undefined;
|
|
4954
|
+
groupBy?: string | undefined;
|
|
4955
|
+
sortBy?: string | undefined;
|
|
4956
|
+
sortOrder?: "desc" | "asc" | undefined;
|
|
4957
|
+
filterBy?: Record<string, unknown> | undefined;
|
|
4958
|
+
description?: string | undefined;
|
|
4959
|
+
defaultView?: boolean | undefined;
|
|
4960
|
+
hierarchyEdges?: {
|
|
4961
|
+
parent: string;
|
|
4962
|
+
child: string;
|
|
4963
|
+
via?: string | undefined;
|
|
4964
|
+
}[] | undefined;
|
|
4965
|
+
startField?: string | undefined;
|
|
4966
|
+
endField?: string | undefined;
|
|
4967
|
+
colorBy?: string | undefined;
|
|
5237
4968
|
}[] | undefined;
|
|
4969
|
+
bentoViewName?: string | undefined;
|
|
5238
4970
|
bentoLayout?: {
|
|
5239
4971
|
widgetType: string;
|
|
5240
4972
|
pos: {
|
|
@@ -5262,6 +4994,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5262
4994
|
properties?: Record<string, unknown> | undefined;
|
|
5263
4995
|
content?: string | undefined;
|
|
5264
4996
|
}[] | undefined;
|
|
4997
|
+
seedEntities?: {
|
|
4998
|
+
profileSlug: string;
|
|
4999
|
+
title: string;
|
|
5000
|
+
properties?: Record<string, unknown> | undefined;
|
|
5001
|
+
content?: string | undefined;
|
|
5002
|
+
}[] | undefined;
|
|
5265
5003
|
suggestedRelations?: {
|
|
5266
5004
|
sourceRef: string;
|
|
5267
5005
|
targetRef: string;
|
|
@@ -5278,10 +5016,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5278
5016
|
}[] | undefined;
|
|
5279
5017
|
layoutConfig?: {
|
|
5280
5018
|
pinnedApps?: string[] | undefined;
|
|
5019
|
+
defaultApp?: string | undefined;
|
|
5281
5020
|
defaultView?: string | undefined;
|
|
5282
5021
|
theme?: string | undefined;
|
|
5283
5022
|
sidebarItems?: {
|
|
5284
|
-
kind: "
|
|
5023
|
+
kind: "external" | "view" | "profile" | "app";
|
|
5285
5024
|
appId?: string | undefined;
|
|
5286
5025
|
viewName?: string | undefined;
|
|
5287
5026
|
profileSlug?: string | undefined;
|
|
@@ -5302,22 +5041,31 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5302
5041
|
};
|
|
5303
5042
|
packageSlug?: string | undefined;
|
|
5304
5043
|
packageVersion?: string | undefined;
|
|
5044
|
+
templateId?: string | undefined;
|
|
5045
|
+
templateName?: string | undefined;
|
|
5305
5046
|
workspaceName?: string | undefined;
|
|
5047
|
+
workspaceType?: "project" | "agent" | "personal" | "operational" | undefined;
|
|
5048
|
+
linkedAgentId?: string | undefined;
|
|
5049
|
+
workspaceId?: string | undefined;
|
|
5306
5050
|
};
|
|
5307
5051
|
output: {
|
|
5308
5052
|
status: "created";
|
|
5309
5053
|
workspaceId: string;
|
|
5310
5054
|
profileIds: string[];
|
|
5311
5055
|
viewIds: string[];
|
|
5312
|
-
entityIds
|
|
5313
|
-
}
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5056
|
+
entityIds?: undefined;
|
|
5057
|
+
} | {
|
|
5058
|
+
status: "created" | "pending";
|
|
5059
|
+
workspaceId: string;
|
|
5060
|
+
profileIds?: undefined;
|
|
5061
|
+
viewIds?: undefined;
|
|
5062
|
+
entityIds?: undefined;
|
|
5063
|
+
} | {
|
|
5064
|
+
status: "created";
|
|
5319
5065
|
workspaceId: string;
|
|
5320
|
-
|
|
5066
|
+
profileIds: string[];
|
|
5067
|
+
viewIds: string[];
|
|
5068
|
+
entityIds: string[];
|
|
5321
5069
|
};
|
|
5322
5070
|
meta: object;
|
|
5323
5071
|
}>;
|
|
@@ -5327,6 +5075,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5327
5075
|
definition?: unknown;
|
|
5328
5076
|
};
|
|
5329
5077
|
output: {
|
|
5078
|
+
status: "existing";
|
|
5079
|
+
workspaceId: string;
|
|
5080
|
+
} | {
|
|
5330
5081
|
status: "created";
|
|
5331
5082
|
workspaceId: string;
|
|
5332
5083
|
};
|
|
@@ -5419,8 +5170,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5419
5170
|
} | {
|
|
5420
5171
|
view: {
|
|
5421
5172
|
name: string;
|
|
5422
|
-
workspaceId: string | null;
|
|
5423
5173
|
userId: string;
|
|
5174
|
+
workspaceId: string | null;
|
|
5424
5175
|
id: string;
|
|
5425
5176
|
query: unknown;
|
|
5426
5177
|
type: string;
|
|
@@ -5454,11 +5205,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5454
5205
|
input: {
|
|
5455
5206
|
workspaceIds?: string[] | undefined;
|
|
5456
5207
|
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
5208
|
+
excludeAutoCreated?: boolean | undefined;
|
|
5457
5209
|
};
|
|
5458
5210
|
output: {
|
|
5459
5211
|
name: string;
|
|
5460
|
-
workspaceId: string | null;
|
|
5461
5212
|
userId: string;
|
|
5213
|
+
workspaceId: string | null;
|
|
5462
5214
|
id: string;
|
|
5463
5215
|
query: unknown;
|
|
5464
5216
|
type: string;
|
|
@@ -5486,13 +5238,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5486
5238
|
getHome: import("@trpc/server").TRPCQueryProcedure<{
|
|
5487
5239
|
input: {
|
|
5488
5240
|
workspaceId: string;
|
|
5489
|
-
scope?: "
|
|
5241
|
+
scope?: "user" | "workspace" | "effective" | undefined;
|
|
5490
5242
|
};
|
|
5491
5243
|
output: {
|
|
5492
5244
|
view: {
|
|
5493
5245
|
name: string;
|
|
5494
|
-
workspaceId: string | null;
|
|
5495
5246
|
userId: string;
|
|
5247
|
+
workspaceId: string | null;
|
|
5496
5248
|
id: string;
|
|
5497
5249
|
query: unknown;
|
|
5498
5250
|
type: string;
|
|
@@ -5525,8 +5277,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5525
5277
|
output: {
|
|
5526
5278
|
view: {
|
|
5527
5279
|
name: string;
|
|
5528
|
-
workspaceId: string | null;
|
|
5529
5280
|
userId: string;
|
|
5281
|
+
workspaceId: string | null;
|
|
5530
5282
|
id: string;
|
|
5531
5283
|
query: unknown;
|
|
5532
5284
|
type: string;
|
|
@@ -5560,8 +5312,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5560
5312
|
output: {
|
|
5561
5313
|
view: {
|
|
5562
5314
|
name: string;
|
|
5563
|
-
workspaceId: string | null;
|
|
5564
5315
|
userId: string;
|
|
5316
|
+
workspaceId: string | null;
|
|
5565
5317
|
id: string;
|
|
5566
5318
|
query: unknown;
|
|
5567
5319
|
type: string;
|
|
@@ -5593,8 +5345,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5593
5345
|
} | {
|
|
5594
5346
|
view: {
|
|
5595
5347
|
name: string;
|
|
5596
|
-
workspaceId: string | null;
|
|
5597
5348
|
userId: string;
|
|
5349
|
+
workspaceId: string | null;
|
|
5598
5350
|
id: string;
|
|
5599
5351
|
query: unknown;
|
|
5600
5352
|
type: string;
|
|
@@ -5687,8 +5439,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5687
5439
|
message: string;
|
|
5688
5440
|
view: {
|
|
5689
5441
|
name: string;
|
|
5690
|
-
workspaceId: string | null;
|
|
5691
5442
|
userId: string;
|
|
5443
|
+
workspaceId: string | null;
|
|
5692
5444
|
id: string;
|
|
5693
5445
|
query: unknown;
|
|
5694
5446
|
type: string;
|
|
@@ -5918,7 +5670,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5918
5670
|
setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
|
|
5919
5671
|
input: {
|
|
5920
5672
|
serviceId: string | null;
|
|
5921
|
-
capability?: "
|
|
5673
|
+
capability?: "chat" | "default" | "analysis" | undefined;
|
|
5922
5674
|
};
|
|
5923
5675
|
output: {
|
|
5924
5676
|
success: boolean;
|
|
@@ -6035,7 +5787,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6035
5787
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6036
5788
|
createPublicLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
6037
5789
|
input: {
|
|
6038
|
-
resourceType: "entity" | "
|
|
5790
|
+
resourceType: "entity" | "document" | "view";
|
|
6039
5791
|
resourceId: string;
|
|
6040
5792
|
expiresInDays?: number | undefined;
|
|
6041
5793
|
access?: "workspace_only" | "anyone_with_link" | undefined;
|
|
@@ -6050,7 +5802,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6050
5802
|
}>;
|
|
6051
5803
|
invite: import("@trpc/server").TRPCMutationProcedure<{
|
|
6052
5804
|
input: {
|
|
6053
|
-
resourceType: "entity" | "
|
|
5805
|
+
resourceType: "entity" | "document" | "view";
|
|
6054
5806
|
resourceId: string;
|
|
6055
5807
|
userEmail: string;
|
|
6056
5808
|
};
|
|
@@ -6076,8 +5828,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6076
5828
|
};
|
|
6077
5829
|
output: {
|
|
6078
5830
|
resource: {
|
|
6079
|
-
workspaceId: string | null;
|
|
6080
5831
|
userId: string;
|
|
5832
|
+
workspaceId: string | null;
|
|
6081
5833
|
id: string;
|
|
6082
5834
|
type: string;
|
|
6083
5835
|
updatedAt: Date;
|
|
@@ -6092,8 +5844,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6092
5844
|
deletedAt: Date | null;
|
|
6093
5845
|
} | {
|
|
6094
5846
|
name: string;
|
|
6095
|
-
workspaceId: string | null;
|
|
6096
5847
|
userId: string;
|
|
5848
|
+
workspaceId: string | null;
|
|
6097
5849
|
id: string;
|
|
6098
5850
|
query: unknown;
|
|
6099
5851
|
type: string;
|
|
@@ -6152,7 +5904,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6152
5904
|
}>;
|
|
6153
5905
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
6154
5906
|
input: {
|
|
6155
|
-
resourceType: "entity" | "
|
|
5907
|
+
resourceType: "entity" | "document" | "view";
|
|
6156
5908
|
resourceId: string;
|
|
6157
5909
|
visibility?: "public" | "private" | undefined;
|
|
6158
5910
|
expiresAt?: Date | undefined;
|
|
@@ -6221,7 +5973,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6221
5973
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6222
5974
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
6223
5975
|
input: {
|
|
6224
|
-
targetType?: "entity" | "
|
|
5976
|
+
targetType?: "entity" | "document" | "inbox_item" | "project" | undefined;
|
|
6225
5977
|
entityType?: string | undefined;
|
|
6226
5978
|
inboxItemType?: string | undefined;
|
|
6227
5979
|
workspaceId?: string | undefined;
|
|
@@ -6248,7 +6000,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6248
6000
|
}>;
|
|
6249
6001
|
getDefault: import("@trpc/server").TRPCQueryProcedure<{
|
|
6250
6002
|
input: {
|
|
6251
|
-
targetType: "entity" | "
|
|
6003
|
+
targetType: "entity" | "document" | "inbox_item" | "project";
|
|
6252
6004
|
entityType?: string | undefined;
|
|
6253
6005
|
inboxItemType?: string | undefined;
|
|
6254
6006
|
workspaceId?: string | undefined;
|
|
@@ -6259,7 +6011,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6259
6011
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
6260
6012
|
input: {
|
|
6261
6013
|
name: string;
|
|
6262
|
-
targetType: "entity" | "
|
|
6014
|
+
targetType: "entity" | "document" | "inbox_item" | "project";
|
|
6263
6015
|
config: {
|
|
6264
6016
|
layout?: {
|
|
6265
6017
|
structure: {
|
|
@@ -6493,8 +6245,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6493
6245
|
};
|
|
6494
6246
|
output: {
|
|
6495
6247
|
name: string;
|
|
6496
|
-
workspaceId: string | null;
|
|
6497
6248
|
userId: string | null;
|
|
6249
|
+
workspaceId: string | null;
|
|
6498
6250
|
id: string;
|
|
6499
6251
|
description: string | null;
|
|
6500
6252
|
updatedAt: Date;
|
|
@@ -6624,7 +6376,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6624
6376
|
input: {
|
|
6625
6377
|
workspaceId?: string | undefined;
|
|
6626
6378
|
kind?: "code" | "instruction" | undefined;
|
|
6627
|
-
scope?: "workspace" | "
|
|
6379
|
+
scope?: "user" | "workspace" | "pod" | undefined;
|
|
6628
6380
|
status?: "error" | "active" | "inactive" | "all" | undefined;
|
|
6629
6381
|
limit?: number | undefined;
|
|
6630
6382
|
offset?: number | undefined;
|
|
@@ -6649,7 +6401,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6649
6401
|
code: string;
|
|
6650
6402
|
workspaceId?: string | undefined;
|
|
6651
6403
|
kind?: "code" | "instruction" | undefined;
|
|
6652
|
-
scope?: "workspace" | "
|
|
6404
|
+
scope?: "user" | "workspace" | "pod" | undefined;
|
|
6653
6405
|
agentTypes?: string[] | undefined;
|
|
6654
6406
|
description?: string | undefined;
|
|
6655
6407
|
parameters?: Record<string, unknown> | undefined;
|
|
@@ -6672,7 +6424,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6672
6424
|
input: {
|
|
6673
6425
|
id: string;
|
|
6674
6426
|
kind?: "code" | "instruction" | undefined;
|
|
6675
|
-
scope?: "workspace" | "
|
|
6427
|
+
scope?: "user" | "workspace" | "pod" | undefined;
|
|
6676
6428
|
agentTypes?: string[] | null | undefined;
|
|
6677
6429
|
name?: string | undefined;
|
|
6678
6430
|
description?: string | undefined;
|
|
@@ -6842,8 +6594,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6842
6594
|
metadata?: Record<string, unknown> | undefined;
|
|
6843
6595
|
};
|
|
6844
6596
|
output: {
|
|
6845
|
-
workspaceId: string;
|
|
6846
6597
|
userId: string;
|
|
6598
|
+
workspaceId: string;
|
|
6847
6599
|
id: string;
|
|
6848
6600
|
createdAt: Date;
|
|
6849
6601
|
metadata: unknown;
|
|
@@ -6869,8 +6621,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6869
6621
|
messageId: string;
|
|
6870
6622
|
};
|
|
6871
6623
|
output: {
|
|
6872
|
-
workspaceId: string;
|
|
6873
6624
|
userId: string;
|
|
6625
|
+
workspaceId: string;
|
|
6874
6626
|
id: string;
|
|
6875
6627
|
createdAt: Date;
|
|
6876
6628
|
metadata: unknown;
|
|
@@ -6888,8 +6640,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6888
6640
|
targetId: string;
|
|
6889
6641
|
};
|
|
6890
6642
|
output: {
|
|
6891
|
-
workspaceId: string;
|
|
6892
6643
|
userId: string;
|
|
6644
|
+
workspaceId: string;
|
|
6893
6645
|
id: string;
|
|
6894
6646
|
createdAt: Date;
|
|
6895
6647
|
metadata: unknown;
|
|
@@ -6906,8 +6658,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6906
6658
|
proposalId: string;
|
|
6907
6659
|
};
|
|
6908
6660
|
output: {
|
|
6909
|
-
workspaceId: string;
|
|
6910
6661
|
userId: string;
|
|
6662
|
+
workspaceId: string;
|
|
6911
6663
|
id: string;
|
|
6912
6664
|
createdAt: Date;
|
|
6913
6665
|
metadata: unknown;
|
|
@@ -6927,8 +6679,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6927
6679
|
relationshipType?: MessageLinkRelationshipType | undefined;
|
|
6928
6680
|
};
|
|
6929
6681
|
output: {
|
|
6930
|
-
workspaceId: string;
|
|
6931
6682
|
userId: string;
|
|
6683
|
+
workspaceId: string;
|
|
6932
6684
|
id: string;
|
|
6933
6685
|
createdAt: Date;
|
|
6934
6686
|
metadata: unknown;
|
|
@@ -6969,8 +6721,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6969
6721
|
input: void;
|
|
6970
6722
|
output: {
|
|
6971
6723
|
profiles: {
|
|
6972
|
-
workspaceId: string | null;
|
|
6973
6724
|
userId: string | null;
|
|
6725
|
+
workspaceId: string | null;
|
|
6974
6726
|
id: string;
|
|
6975
6727
|
updatedAt: Date;
|
|
6976
6728
|
createdAt: Date;
|
|
@@ -6982,6 +6734,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6982
6734
|
displayName: string;
|
|
6983
6735
|
parentProfileId: string | null;
|
|
6984
6736
|
defaultValues: unknown;
|
|
6737
|
+
semanticSlug: string | null;
|
|
6985
6738
|
}[];
|
|
6986
6739
|
};
|
|
6987
6740
|
meta: object;
|
|
@@ -6992,8 +6745,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6992
6745
|
};
|
|
6993
6746
|
output: {
|
|
6994
6747
|
profile: {
|
|
6995
|
-
workspaceId: string | null;
|
|
6996
6748
|
userId: string | null;
|
|
6749
|
+
workspaceId: string | null;
|
|
6997
6750
|
id: string;
|
|
6998
6751
|
updatedAt: Date;
|
|
6999
6752
|
createdAt: Date;
|
|
@@ -7005,6 +6758,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7005
6758
|
displayName: string;
|
|
7006
6759
|
parentProfileId: string | null;
|
|
7007
6760
|
defaultValues: unknown;
|
|
6761
|
+
semanticSlug: string | null;
|
|
7008
6762
|
};
|
|
7009
6763
|
effectiveProperties: EffectiveProperty[];
|
|
7010
6764
|
};
|
|
@@ -7017,7 +6771,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7017
6771
|
parentProfileId?: string | undefined;
|
|
7018
6772
|
uiHints?: Record<string, unknown> | undefined;
|
|
7019
6773
|
defaultValues?: Record<string, unknown> | undefined;
|
|
7020
|
-
scope?: "
|
|
6774
|
+
scope?: "user" | "shared" | "system" | "workspace" | undefined;
|
|
7021
6775
|
allowedWorkspaceIds?: string[] | undefined;
|
|
7022
6776
|
source?: "user" | "system" | "intelligence" | "ai" | undefined;
|
|
7023
6777
|
reasoning?: string | undefined;
|
|
@@ -7025,8 +6779,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7025
6779
|
};
|
|
7026
6780
|
output: {
|
|
7027
6781
|
profile: {
|
|
7028
|
-
workspaceId: string | null;
|
|
7029
6782
|
userId: string | null;
|
|
6783
|
+
workspaceId: string | null;
|
|
7030
6784
|
id: string;
|
|
7031
6785
|
updatedAt: Date;
|
|
7032
6786
|
createdAt: Date;
|
|
@@ -7038,6 +6792,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7038
6792
|
displayName: string;
|
|
7039
6793
|
parentProfileId: string | null;
|
|
7040
6794
|
defaultValues: unknown;
|
|
6795
|
+
semanticSlug: string | null;
|
|
7041
6796
|
};
|
|
7042
6797
|
existing: boolean;
|
|
7043
6798
|
status?: undefined;
|
|
@@ -7051,8 +6806,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7051
6806
|
existing?: undefined;
|
|
7052
6807
|
} | {
|
|
7053
6808
|
profile: {
|
|
7054
|
-
workspaceId: string | null;
|
|
7055
6809
|
userId: string | null;
|
|
6810
|
+
workspaceId: string | null;
|
|
7056
6811
|
id: string;
|
|
7057
6812
|
updatedAt: Date;
|
|
7058
6813
|
createdAt: Date;
|
|
@@ -7064,6 +6819,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7064
6819
|
displayName: string;
|
|
7065
6820
|
parentProfileId: string | null;
|
|
7066
6821
|
defaultValues: unknown;
|
|
6822
|
+
semanticSlug: string | null;
|
|
7067
6823
|
};
|
|
7068
6824
|
existing?: undefined;
|
|
7069
6825
|
status?: undefined;
|
|
@@ -7079,13 +6835,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7079
6835
|
parentProfileId?: string | null | undefined;
|
|
7080
6836
|
uiHints?: Record<string, unknown> | undefined;
|
|
7081
6837
|
defaultValues?: Record<string, unknown> | undefined;
|
|
7082
|
-
scope?: "
|
|
6838
|
+
scope?: "user" | "shared" | "system" | "workspace" | undefined;
|
|
7083
6839
|
allowedWorkspaceIds?: string[] | undefined;
|
|
7084
6840
|
};
|
|
7085
6841
|
output: {
|
|
7086
6842
|
profile: {
|
|
7087
|
-
workspaceId: string | null;
|
|
7088
6843
|
userId: string | null;
|
|
6844
|
+
workspaceId: string | null;
|
|
7089
6845
|
id: string;
|
|
7090
6846
|
updatedAt: Date;
|
|
7091
6847
|
createdAt: Date;
|
|
@@ -7097,6 +6853,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7097
6853
|
displayName: string;
|
|
7098
6854
|
parentProfileId: string | null;
|
|
7099
6855
|
defaultValues: unknown;
|
|
6856
|
+
semanticSlug: string | null;
|
|
7100
6857
|
};
|
|
7101
6858
|
};
|
|
7102
6859
|
meta: object;
|
|
@@ -7125,8 +6882,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7125
6882
|
};
|
|
7126
6883
|
output: {
|
|
7127
6884
|
hierarchy: {
|
|
7128
|
-
workspaceId: string | null;
|
|
7129
6885
|
userId: string | null;
|
|
6886
|
+
workspaceId: string | null;
|
|
7130
6887
|
id: string;
|
|
7131
6888
|
updatedAt: Date;
|
|
7132
6889
|
createdAt: Date;
|
|
@@ -7138,6 +6895,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7138
6895
|
displayName: string;
|
|
7139
6896
|
parentProfileId: string | null;
|
|
7140
6897
|
defaultValues: unknown;
|
|
6898
|
+
semanticSlug: string | null;
|
|
7141
6899
|
}[];
|
|
7142
6900
|
};
|
|
7143
6901
|
meta: object;
|
|
@@ -7158,8 +6916,33 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7158
6916
|
};
|
|
7159
6917
|
output: {
|
|
7160
6918
|
profiles: {
|
|
6919
|
+
userId: string | null;
|
|
7161
6920
|
workspaceId: string | null;
|
|
6921
|
+
id: string;
|
|
6922
|
+
updatedAt: Date;
|
|
6923
|
+
createdAt: Date;
|
|
6924
|
+
version: number;
|
|
6925
|
+
isActive: boolean;
|
|
6926
|
+
scope: ProfileScope;
|
|
6927
|
+
slug: string;
|
|
6928
|
+
uiHints: unknown;
|
|
6929
|
+
displayName: string;
|
|
6930
|
+
parentProfileId: string | null;
|
|
6931
|
+
defaultValues: unknown;
|
|
6932
|
+
semanticSlug: string | null;
|
|
6933
|
+
}[];
|
|
6934
|
+
};
|
|
6935
|
+
meta: object;
|
|
6936
|
+
}>;
|
|
6937
|
+
getBySemanticSlug: import("@trpc/server").TRPCQueryProcedure<{
|
|
6938
|
+
input: {
|
|
6939
|
+
semanticSlug: string;
|
|
6940
|
+
workspaceIds?: string[] | undefined;
|
|
6941
|
+
};
|
|
6942
|
+
output: {
|
|
6943
|
+
profiles: {
|
|
7162
6944
|
userId: string | null;
|
|
6945
|
+
workspaceId: string | null;
|
|
7163
6946
|
id: string;
|
|
7164
6947
|
updatedAt: Date;
|
|
7165
6948
|
createdAt: Date;
|
|
@@ -7171,6 +6954,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7171
6954
|
displayName: string;
|
|
7172
6955
|
parentProfileId: string | null;
|
|
7173
6956
|
defaultValues: unknown;
|
|
6957
|
+
semanticSlug: string | null;
|
|
7174
6958
|
}[];
|
|
7175
6959
|
};
|
|
7176
6960
|
meta: object;
|
|
@@ -7389,8 +7173,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7389
7173
|
input: void;
|
|
7390
7174
|
output: {
|
|
7391
7175
|
relationDefs: {
|
|
7392
|
-
workspaceId: string;
|
|
7393
7176
|
userId: string;
|
|
7177
|
+
workspaceId: string;
|
|
7394
7178
|
id: string;
|
|
7395
7179
|
description: string | null;
|
|
7396
7180
|
updatedAt: Date;
|
|
@@ -7413,8 +7197,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7413
7197
|
};
|
|
7414
7198
|
output: {
|
|
7415
7199
|
relationDef: {
|
|
7416
|
-
workspaceId: string;
|
|
7417
7200
|
userId: string;
|
|
7201
|
+
workspaceId: string;
|
|
7418
7202
|
id: string;
|
|
7419
7203
|
description: string | null;
|
|
7420
7204
|
updatedAt: Date;
|
|
@@ -7437,8 +7221,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7437
7221
|
};
|
|
7438
7222
|
output: {
|
|
7439
7223
|
relationDef: {
|
|
7440
|
-
workspaceId: string;
|
|
7441
7224
|
userId: string;
|
|
7225
|
+
workspaceId: string;
|
|
7442
7226
|
id: string;
|
|
7443
7227
|
description: string | null;
|
|
7444
7228
|
updatedAt: Date;
|
|
@@ -7785,8 +7569,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7785
7569
|
input: void;
|
|
7786
7570
|
output: {
|
|
7787
7571
|
configs: {
|
|
7788
|
-
workspaceId: string;
|
|
7789
7572
|
userId: string;
|
|
7573
|
+
workspaceId: string;
|
|
7790
7574
|
id: string;
|
|
7791
7575
|
updatedAt: Date;
|
|
7792
7576
|
createdAt: Date;
|
|
@@ -7806,8 +7590,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7806
7590
|
};
|
|
7807
7591
|
output: {
|
|
7808
7592
|
config: {
|
|
7809
|
-
workspaceId: string;
|
|
7810
7593
|
userId: string;
|
|
7594
|
+
workspaceId: string;
|
|
7811
7595
|
id: string;
|
|
7812
7596
|
updatedAt: Date;
|
|
7813
7597
|
createdAt: Date;
|
|
@@ -7832,8 +7616,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7832
7616
|
};
|
|
7833
7617
|
output: {
|
|
7834
7618
|
config: {
|
|
7835
|
-
workspaceId: string;
|
|
7836
7619
|
userId: string;
|
|
7620
|
+
workspaceId: string;
|
|
7837
7621
|
id: string;
|
|
7838
7622
|
updatedAt: Date;
|
|
7839
7623
|
createdAt: Date;
|
|
@@ -7857,6 +7641,286 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7857
7641
|
meta: object;
|
|
7858
7642
|
}>;
|
|
7859
7643
|
}>>;
|
|
7644
|
+
widgetDefinitions: import("@trpc/server").TRPCBuiltRouter<{
|
|
7645
|
+
ctx: Context;
|
|
7646
|
+
meta: object;
|
|
7647
|
+
errorShape: {
|
|
7648
|
+
message: string;
|
|
7649
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7650
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7651
|
+
};
|
|
7652
|
+
transformer: true;
|
|
7653
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7654
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7655
|
+
input: void;
|
|
7656
|
+
output: {
|
|
7657
|
+
name: string;
|
|
7658
|
+
workspaceId: string | null;
|
|
7659
|
+
id: string;
|
|
7660
|
+
description: string | null;
|
|
7661
|
+
updatedAt: Date;
|
|
7662
|
+
createdAt: Date;
|
|
7663
|
+
version: string | null;
|
|
7664
|
+
isActive: boolean;
|
|
7665
|
+
category: string | null;
|
|
7666
|
+
typeKey: string;
|
|
7667
|
+
icon: string | null;
|
|
7668
|
+
rendererType: WidgetRendererType;
|
|
7669
|
+
rendererSource: string | null;
|
|
7670
|
+
configSchema: Record<string, unknown>;
|
|
7671
|
+
defaultConfig: Record<string, unknown> | null;
|
|
7672
|
+
defaultSize: {
|
|
7673
|
+
w: number;
|
|
7674
|
+
h: number;
|
|
7675
|
+
};
|
|
7676
|
+
minSize: {
|
|
7677
|
+
w: number;
|
|
7678
|
+
h: number;
|
|
7679
|
+
} | null;
|
|
7680
|
+
}[];
|
|
7681
|
+
meta: object;
|
|
7682
|
+
}>;
|
|
7683
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
7684
|
+
input: {
|
|
7685
|
+
typeKey: string;
|
|
7686
|
+
};
|
|
7687
|
+
output: {
|
|
7688
|
+
name: string;
|
|
7689
|
+
workspaceId: string | null;
|
|
7690
|
+
id: string;
|
|
7691
|
+
description: string | null;
|
|
7692
|
+
updatedAt: Date;
|
|
7693
|
+
createdAt: Date;
|
|
7694
|
+
version: string | null;
|
|
7695
|
+
isActive: boolean;
|
|
7696
|
+
category: string | null;
|
|
7697
|
+
typeKey: string;
|
|
7698
|
+
icon: string | null;
|
|
7699
|
+
rendererType: WidgetRendererType;
|
|
7700
|
+
rendererSource: string | null;
|
|
7701
|
+
configSchema: Record<string, unknown>;
|
|
7702
|
+
defaultConfig: Record<string, unknown> | null;
|
|
7703
|
+
defaultSize: {
|
|
7704
|
+
w: number;
|
|
7705
|
+
h: number;
|
|
7706
|
+
};
|
|
7707
|
+
minSize: {
|
|
7708
|
+
w: number;
|
|
7709
|
+
h: number;
|
|
7710
|
+
} | null;
|
|
7711
|
+
} | null;
|
|
7712
|
+
meta: object;
|
|
7713
|
+
}>;
|
|
7714
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
7715
|
+
input: {
|
|
7716
|
+
typeKey: string;
|
|
7717
|
+
name: string;
|
|
7718
|
+
description?: string | undefined;
|
|
7719
|
+
icon?: string | undefined;
|
|
7720
|
+
category?: string | undefined;
|
|
7721
|
+
rendererType?: "builtin" | "iframe" | undefined;
|
|
7722
|
+
rendererSource?: string | undefined;
|
|
7723
|
+
configSchema?: Record<string, unknown> | undefined;
|
|
7724
|
+
defaultConfig?: Record<string, unknown> | undefined;
|
|
7725
|
+
defaultSize?: {
|
|
7726
|
+
w: number;
|
|
7727
|
+
h: number;
|
|
7728
|
+
} | undefined;
|
|
7729
|
+
minSize?: {
|
|
7730
|
+
w: number;
|
|
7731
|
+
h: number;
|
|
7732
|
+
} | undefined;
|
|
7733
|
+
};
|
|
7734
|
+
output: {
|
|
7735
|
+
name: string;
|
|
7736
|
+
workspaceId: string | null;
|
|
7737
|
+
id: string;
|
|
7738
|
+
description: string | null;
|
|
7739
|
+
updatedAt: Date;
|
|
7740
|
+
createdAt: Date;
|
|
7741
|
+
version: string | null;
|
|
7742
|
+
isActive: boolean;
|
|
7743
|
+
category: string | null;
|
|
7744
|
+
typeKey: string;
|
|
7745
|
+
icon: string | null;
|
|
7746
|
+
rendererType: WidgetRendererType;
|
|
7747
|
+
rendererSource: string | null;
|
|
7748
|
+
configSchema: Record<string, unknown>;
|
|
7749
|
+
defaultConfig: Record<string, unknown> | null;
|
|
7750
|
+
defaultSize: {
|
|
7751
|
+
w: number;
|
|
7752
|
+
h: number;
|
|
7753
|
+
};
|
|
7754
|
+
minSize: {
|
|
7755
|
+
w: number;
|
|
7756
|
+
h: number;
|
|
7757
|
+
} | null;
|
|
7758
|
+
};
|
|
7759
|
+
meta: object;
|
|
7760
|
+
}>;
|
|
7761
|
+
deactivate: import("@trpc/server").TRPCMutationProcedure<{
|
|
7762
|
+
input: {
|
|
7763
|
+
typeKey: string;
|
|
7764
|
+
};
|
|
7765
|
+
output: {
|
|
7766
|
+
success: boolean;
|
|
7767
|
+
};
|
|
7768
|
+
meta: object;
|
|
7769
|
+
}>;
|
|
7770
|
+
}>>;
|
|
7771
|
+
channelGateway: import("@trpc/server").TRPCBuiltRouter<{
|
|
7772
|
+
ctx: Context;
|
|
7773
|
+
meta: object;
|
|
7774
|
+
errorShape: {
|
|
7775
|
+
message: string;
|
|
7776
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7777
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7778
|
+
};
|
|
7779
|
+
transformer: true;
|
|
7780
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7781
|
+
initLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
7782
|
+
input: {
|
|
7783
|
+
channel: "telegram" | "whatsapp" | "discord";
|
|
7784
|
+
defaultChannelId?: string | undefined;
|
|
7785
|
+
};
|
|
7786
|
+
output: {
|
|
7787
|
+
token: string;
|
|
7788
|
+
expiresAt: Date;
|
|
7789
|
+
instruction: string;
|
|
7790
|
+
};
|
|
7791
|
+
meta: object;
|
|
7792
|
+
}>;
|
|
7793
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7794
|
+
input: void;
|
|
7795
|
+
output: {
|
|
7796
|
+
workspaceId: string | null;
|
|
7797
|
+
id: string;
|
|
7798
|
+
createdAt: Date;
|
|
7799
|
+
channel: string;
|
|
7800
|
+
channelUserId: string;
|
|
7801
|
+
defaultChannelId: string | null;
|
|
7802
|
+
externalUsername: string | null;
|
|
7803
|
+
}[];
|
|
7804
|
+
meta: object;
|
|
7805
|
+
}>;
|
|
7806
|
+
unlink: import("@trpc/server").TRPCMutationProcedure<{
|
|
7807
|
+
input: {
|
|
7808
|
+
connectionId: string;
|
|
7809
|
+
};
|
|
7810
|
+
output: {
|
|
7811
|
+
ok: boolean;
|
|
7812
|
+
};
|
|
7813
|
+
meta: object;
|
|
7814
|
+
}>;
|
|
7815
|
+
}>>;
|
|
7816
|
+
import: import("@trpc/server").TRPCBuiltRouter<{
|
|
7817
|
+
ctx: Context;
|
|
7818
|
+
meta: object;
|
|
7819
|
+
errorShape: {
|
|
7820
|
+
message: string;
|
|
7821
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7822
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7823
|
+
};
|
|
7824
|
+
transformer: true;
|
|
7825
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7826
|
+
submitBatch: import("@trpc/server").TRPCMutationProcedure<{
|
|
7827
|
+
input: {
|
|
7828
|
+
items: {
|
|
7829
|
+
path: string;
|
|
7830
|
+
contentBase64: string;
|
|
7831
|
+
mimeType?: string | undefined;
|
|
7832
|
+
}[];
|
|
7833
|
+
workspaceId?: string | undefined;
|
|
7834
|
+
};
|
|
7835
|
+
output: {
|
|
7836
|
+
filesReceived: number;
|
|
7837
|
+
entitiesCreated: number;
|
|
7838
|
+
documentsCreated: number;
|
|
7839
|
+
channelsCreated: number;
|
|
7840
|
+
messagesCreated: number;
|
|
7841
|
+
filesStoredOnly: number;
|
|
7842
|
+
errors: Array<{
|
|
7843
|
+
path: string;
|
|
7844
|
+
message: string;
|
|
7845
|
+
}>;
|
|
7846
|
+
batchId: `${string}-${string}-${string}-${string}-${string}`;
|
|
7847
|
+
};
|
|
7848
|
+
meta: object;
|
|
7849
|
+
}>;
|
|
7850
|
+
}>>;
|
|
7851
|
+
connectors: import("@trpc/server").TRPCBuiltRouter<{
|
|
7852
|
+
ctx: Context;
|
|
7853
|
+
meta: object;
|
|
7854
|
+
errorShape: {
|
|
7855
|
+
message: string;
|
|
7856
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7857
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7858
|
+
};
|
|
7859
|
+
transformer: true;
|
|
7860
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7861
|
+
providers: import("@trpc/server").TRPCQueryProcedure<{
|
|
7862
|
+
input: {
|
|
7863
|
+
cpUrl?: string | undefined;
|
|
7864
|
+
} | undefined;
|
|
7865
|
+
output: {
|
|
7866
|
+
providers: unknown[];
|
|
7867
|
+
connectorLimit: number;
|
|
7868
|
+
tier: string;
|
|
7869
|
+
};
|
|
7870
|
+
meta: object;
|
|
7871
|
+
}>;
|
|
7872
|
+
connections: import("@trpc/server").TRPCQueryProcedure<{
|
|
7873
|
+
input: {
|
|
7874
|
+
cpUrl?: string | undefined;
|
|
7875
|
+
} | undefined;
|
|
7876
|
+
output: unknown[];
|
|
7877
|
+
meta: object;
|
|
7878
|
+
}>;
|
|
7879
|
+
session: import("@trpc/server").TRPCMutationProcedure<{
|
|
7880
|
+
input: {
|
|
7881
|
+
cpUrl?: string | undefined;
|
|
7882
|
+
} | undefined;
|
|
7883
|
+
output: {
|
|
7884
|
+
token: string;
|
|
7885
|
+
};
|
|
7886
|
+
meta: object;
|
|
7887
|
+
}>;
|
|
7888
|
+
disconnect: import("@trpc/server").TRPCMutationProcedure<{
|
|
7889
|
+
input: {
|
|
7890
|
+
connectionId: string;
|
|
7891
|
+
cpUrl?: string | undefined;
|
|
7892
|
+
};
|
|
7893
|
+
output: {
|
|
7894
|
+
success: boolean;
|
|
7895
|
+
};
|
|
7896
|
+
meta: object;
|
|
7897
|
+
}>;
|
|
7898
|
+
status: import("@trpc/server").TRPCQueryProcedure<{
|
|
7899
|
+
input: void;
|
|
7900
|
+
output: {
|
|
7901
|
+
controlPlane: {
|
|
7902
|
+
url: string | null;
|
|
7903
|
+
podId: string | null;
|
|
7904
|
+
tier: string | null;
|
|
7905
|
+
hasSettings: boolean;
|
|
7906
|
+
};
|
|
7907
|
+
allowedCpUrls: string[];
|
|
7908
|
+
envVar: string | null;
|
|
7909
|
+
};
|
|
7910
|
+
meta: object;
|
|
7911
|
+
}>;
|
|
7912
|
+
entitySources: import("@trpc/server").TRPCQueryProcedure<{
|
|
7913
|
+
input: {
|
|
7914
|
+
entityId: string;
|
|
7915
|
+
};
|
|
7916
|
+
output: {
|
|
7917
|
+
provider: string;
|
|
7918
|
+
status: string;
|
|
7919
|
+
lastSyncedAt: Date;
|
|
7920
|
+
}[];
|
|
7921
|
+
meta: object;
|
|
7922
|
+
}>;
|
|
7923
|
+
}>>;
|
|
7860
7924
|
}>>;
|
|
7861
7925
|
export type AppRouter = typeof coreRouter;
|
|
7862
7926
|
|