@synap-core/api-types 1.10.4 → 1.11.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 +577 -643
- package/package.json +1 -1
- package/src/generated.d.ts +577 -643
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
|
/**
|
|
@@ -732,15 +312,71 @@ export interface WorkspaceSettings {
|
|
|
732
312
|
* Used for idempotent re-creation (e.g. 'pod-admin').
|
|
733
313
|
* Never set by users.
|
|
734
314
|
*/
|
|
735
|
-
systemSlug?: string;
|
|
736
|
-
/** Version of the package at time of creation. */
|
|
737
|
-
packageVersion?: string;
|
|
738
|
-
/** Who/what created this workspace: user, control-plane provisioning, or plugin seed */
|
|
739
|
-
createdBy?: "user" | "provisioning" | "plugin";
|
|
740
|
-
/** ISO timestamp when provisioning
|
|
741
|
-
provisionedAt?: string;
|
|
742
|
-
/**
|
|
743
|
-
|
|
315
|
+
systemSlug?: string;
|
|
316
|
+
/** Version of the package at time of creation. */
|
|
317
|
+
packageVersion?: string;
|
|
318
|
+
/** Who/what created this workspace: user, control-plane provisioning, or plugin seed */
|
|
319
|
+
createdBy?: "user" | "provisioning" | "plugin";
|
|
320
|
+
/** ISO timestamp when provisioning started (set immediately on workspace creation) */
|
|
321
|
+
provisionedAt?: string;
|
|
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
|
+
*/
|
|
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,16 +1519,11 @@ 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
1529
|
workspaceId: string | null;
|
|
@@ -1898,24 +1534,23 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
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,19 @@ 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;
|
|
1988
1623
|
};
|
|
1989
1624
|
output: {
|
|
1625
|
+
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1626
|
+
channelId: string;
|
|
1627
|
+
content?: undefined;
|
|
1628
|
+
entities?: undefined;
|
|
1629
|
+
branchDecision?: undefined;
|
|
1630
|
+
branchThread?: undefined;
|
|
1631
|
+
aiSteps?: undefined;
|
|
1632
|
+
} | {
|
|
1990
1633
|
channelId: string;
|
|
1991
1634
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1992
1635
|
content: string;
|
|
@@ -2005,16 +1648,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2005
1648
|
metadata: unknown;
|
|
2006
1649
|
title: string | null;
|
|
2007
1650
|
externalSource: string | null;
|
|
2008
|
-
status:
|
|
2009
|
-
channelType:
|
|
1651
|
+
status: "active" | "merged" | "archived";
|
|
1652
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2010
1653
|
contextObjectType: string | null;
|
|
2011
1654
|
contextObjectId: string | null;
|
|
2012
1655
|
parentChannelId: string | null;
|
|
2013
1656
|
branchedFromMessageId: string | null;
|
|
2014
1657
|
branchPurpose: string | null;
|
|
2015
1658
|
agentId: string;
|
|
2016
|
-
agentType:
|
|
1659
|
+
agentType: string;
|
|
2017
1660
|
agentConfig: unknown;
|
|
1661
|
+
mcpServerIds: string[] | null;
|
|
2018
1662
|
contextSummary: string | null;
|
|
2019
1663
|
resultSummary: string | null;
|
|
2020
1664
|
mergedIntoStateId: string | null;
|
|
@@ -2090,9 +1734,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2090
1734
|
content: string;
|
|
2091
1735
|
channelId: string;
|
|
2092
1736
|
parentId: string | null;
|
|
2093
|
-
role:
|
|
2094
|
-
authorType:
|
|
2095
|
-
messageCategory:
|
|
1737
|
+
role: "user" | "system" | "assistant";
|
|
1738
|
+
authorType: "human" | "ai_agent" | "external" | "bot";
|
|
1739
|
+
messageCategory: "chat" | "comment" | "system_notification" | "review";
|
|
2096
1740
|
externalSource: string | null;
|
|
2097
1741
|
inboxItemId: string | null;
|
|
2098
1742
|
previousHash: string | null;
|
|
@@ -2107,10 +1751,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2107
1751
|
listChannels: import("@trpc/server").TRPCQueryProcedure<{
|
|
2108
1752
|
input: {
|
|
2109
1753
|
workspaceId?: string | undefined;
|
|
2110
|
-
channelType?: "
|
|
1754
|
+
channelType?: "ai_thread" | "branch" | "main" | undefined;
|
|
2111
1755
|
limit?: number | undefined;
|
|
2112
1756
|
contextObjectId?: string | undefined;
|
|
2113
|
-
contextObjectType?: "entity" | "
|
|
1757
|
+
contextObjectType?: "entity" | "document" | "view" | undefined;
|
|
2114
1758
|
};
|
|
2115
1759
|
output: {
|
|
2116
1760
|
channels: {
|
|
@@ -2124,16 +1768,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2124
1768
|
metadata: unknown;
|
|
2125
1769
|
title: string | null;
|
|
2126
1770
|
externalSource: string | null;
|
|
2127
|
-
status:
|
|
2128
|
-
channelType:
|
|
1771
|
+
status: "active" | "merged" | "archived";
|
|
1772
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2129
1773
|
contextObjectType: string | null;
|
|
2130
1774
|
contextObjectId: string | null;
|
|
2131
1775
|
parentChannelId: string | null;
|
|
2132
1776
|
branchedFromMessageId: string | null;
|
|
2133
1777
|
branchPurpose: string | null;
|
|
2134
1778
|
agentId: string;
|
|
2135
|
-
agentType:
|
|
1779
|
+
agentType: string;
|
|
2136
1780
|
agentConfig: unknown;
|
|
1781
|
+
mcpServerIds: string[] | null;
|
|
2137
1782
|
contextSummary: string | null;
|
|
2138
1783
|
resultSummary: string | null;
|
|
2139
1784
|
mergedIntoStateId: string | null;
|
|
@@ -2146,10 +1791,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2146
1791
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2147
1792
|
input: {
|
|
2148
1793
|
workspaceId?: string | undefined;
|
|
2149
|
-
channelType?: "
|
|
1794
|
+
channelType?: "ai_thread" | "branch" | "main" | undefined;
|
|
2150
1795
|
limit?: number | undefined;
|
|
2151
1796
|
contextObjectId?: string | undefined;
|
|
2152
|
-
contextObjectType?: "entity" | "
|
|
1797
|
+
contextObjectType?: "entity" | "document" | "view" | undefined;
|
|
2153
1798
|
};
|
|
2154
1799
|
output: {
|
|
2155
1800
|
channels: {
|
|
@@ -2163,16 +1808,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2163
1808
|
metadata: unknown;
|
|
2164
1809
|
title: string | null;
|
|
2165
1810
|
externalSource: string | null;
|
|
2166
|
-
status:
|
|
2167
|
-
channelType:
|
|
1811
|
+
status: "active" | "merged" | "archived";
|
|
1812
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2168
1813
|
contextObjectType: string | null;
|
|
2169
1814
|
contextObjectId: string | null;
|
|
2170
1815
|
parentChannelId: string | null;
|
|
2171
1816
|
branchedFromMessageId: string | null;
|
|
2172
1817
|
branchPurpose: string | null;
|
|
2173
1818
|
agentId: string;
|
|
2174
|
-
agentType:
|
|
1819
|
+
agentType: string;
|
|
2175
1820
|
agentConfig: unknown;
|
|
1821
|
+
mcpServerIds: string[] | null;
|
|
2176
1822
|
contextSummary: string | null;
|
|
2177
1823
|
resultSummary: string | null;
|
|
2178
1824
|
mergedIntoStateId: string | null;
|
|
@@ -2187,31 +1833,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2187
1833
|
workspaceId: string;
|
|
2188
1834
|
};
|
|
2189
1835
|
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
|
-
};
|
|
1836
|
+
channel: Channel;
|
|
2215
1837
|
};
|
|
2216
1838
|
meta: object;
|
|
2217
1839
|
}>;
|
|
@@ -2229,16 +1851,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2229
1851
|
metadata: unknown;
|
|
2230
1852
|
title: string | null;
|
|
2231
1853
|
externalSource: string | null;
|
|
2232
|
-
status:
|
|
2233
|
-
channelType:
|
|
1854
|
+
status: "active" | "merged" | "archived";
|
|
1855
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2234
1856
|
contextObjectType: string | null;
|
|
2235
1857
|
contextObjectId: string | null;
|
|
2236
1858
|
parentChannelId: string | null;
|
|
2237
1859
|
branchedFromMessageId: string | null;
|
|
2238
1860
|
branchPurpose: string | null;
|
|
2239
1861
|
agentId: string;
|
|
2240
|
-
agentType:
|
|
1862
|
+
agentType: string;
|
|
2241
1863
|
agentConfig: unknown;
|
|
1864
|
+
mcpServerIds: string[] | null;
|
|
2242
1865
|
contextSummary: string | null;
|
|
2243
1866
|
resultSummary: string | null;
|
|
2244
1867
|
mergedIntoStateId: string | null;
|
|
@@ -2290,16 +1913,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2290
1913
|
metadata: unknown;
|
|
2291
1914
|
title: string | null;
|
|
2292
1915
|
externalSource: string | null;
|
|
2293
|
-
status:
|
|
2294
|
-
channelType:
|
|
1916
|
+
status: "active" | "merged" | "archived";
|
|
1917
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2295
1918
|
contextObjectType: string | null;
|
|
2296
1919
|
contextObjectId: string | null;
|
|
2297
1920
|
parentChannelId: string | null;
|
|
2298
1921
|
branchedFromMessageId: string | null;
|
|
2299
1922
|
branchPurpose: string | null;
|
|
2300
1923
|
agentId: string;
|
|
2301
|
-
agentType:
|
|
1924
|
+
agentType: string;
|
|
2302
1925
|
agentConfig: unknown;
|
|
1926
|
+
mcpServerIds: string[] | null;
|
|
2303
1927
|
contextSummary: string | null;
|
|
2304
1928
|
resultSummary: string | null;
|
|
2305
1929
|
mergedIntoStateId: string | null;
|
|
@@ -2313,10 +1937,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2313
1937
|
id: string;
|
|
2314
1938
|
createdAt: Date;
|
|
2315
1939
|
channelId: string;
|
|
2316
|
-
objectType:
|
|
1940
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2317
1941
|
objectId: string;
|
|
2318
|
-
relationshipType:
|
|
2319
|
-
conflictStatus:
|
|
1942
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
1943
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2320
1944
|
relevanceScore: number | null;
|
|
2321
1945
|
}[] | undefined;
|
|
2322
1946
|
branchTree: any;
|
|
@@ -2328,8 +1952,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2328
1952
|
channelId: string;
|
|
2329
1953
|
title?: string | undefined;
|
|
2330
1954
|
agentId?: string | undefined;
|
|
2331
|
-
agentType?:
|
|
1955
|
+
agentType?: string | undefined;
|
|
2332
1956
|
agentConfig?: Record<string, unknown> | undefined;
|
|
1957
|
+
mcpServerIds?: string[] | null | undefined;
|
|
2333
1958
|
};
|
|
2334
1959
|
output: {
|
|
2335
1960
|
status: string;
|
|
@@ -2337,6 +1962,35 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2337
1962
|
};
|
|
2338
1963
|
meta: object;
|
|
2339
1964
|
}>;
|
|
1965
|
+
addMcpToChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1966
|
+
input: {
|
|
1967
|
+
channelId: string;
|
|
1968
|
+
mcpServerId: string;
|
|
1969
|
+
};
|
|
1970
|
+
output: {
|
|
1971
|
+
channelId: string;
|
|
1972
|
+
};
|
|
1973
|
+
meta: object;
|
|
1974
|
+
}>;
|
|
1975
|
+
removeMcpFromChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
1976
|
+
input: {
|
|
1977
|
+
channelId: string;
|
|
1978
|
+
mcpServerId: string;
|
|
1979
|
+
};
|
|
1980
|
+
output: {
|
|
1981
|
+
channelId: string;
|
|
1982
|
+
};
|
|
1983
|
+
meta: object;
|
|
1984
|
+
}>;
|
|
1985
|
+
pruneEmptyBranch: import("@trpc/server").TRPCMutationProcedure<{
|
|
1986
|
+
input: {
|
|
1987
|
+
channelId: string;
|
|
1988
|
+
};
|
|
1989
|
+
output: {
|
|
1990
|
+
pruned: boolean;
|
|
1991
|
+
};
|
|
1992
|
+
meta: object;
|
|
1993
|
+
}>;
|
|
2340
1994
|
archiveChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2341
1995
|
input: {
|
|
2342
1996
|
channelId: string;
|
|
@@ -2362,16 +2016,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2362
2016
|
metadata: unknown;
|
|
2363
2017
|
title: string | null;
|
|
2364
2018
|
externalSource: string | null;
|
|
2365
|
-
status:
|
|
2366
|
-
channelType:
|
|
2019
|
+
status: "active" | "merged" | "archived";
|
|
2020
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2367
2021
|
contextObjectType: string | null;
|
|
2368
2022
|
contextObjectId: string | null;
|
|
2369
2023
|
parentChannelId: string | null;
|
|
2370
2024
|
branchedFromMessageId: string | null;
|
|
2371
2025
|
branchPurpose: string | null;
|
|
2372
2026
|
agentId: string;
|
|
2373
|
-
agentType:
|
|
2027
|
+
agentType: string;
|
|
2374
2028
|
agentConfig: unknown;
|
|
2029
|
+
mcpServerIds: string[] | null;
|
|
2375
2030
|
contextSummary: string | null;
|
|
2376
2031
|
resultSummary: string | null;
|
|
2377
2032
|
mergedIntoStateId: string | null;
|
|
@@ -2387,16 +2042,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2387
2042
|
metadata: unknown;
|
|
2388
2043
|
title: string | null;
|
|
2389
2044
|
externalSource: string | null;
|
|
2390
|
-
status:
|
|
2391
|
-
channelType:
|
|
2045
|
+
status: "active" | "merged" | "archived";
|
|
2046
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2392
2047
|
contextObjectType: string | null;
|
|
2393
2048
|
contextObjectId: string | null;
|
|
2394
2049
|
parentChannelId: string | null;
|
|
2395
2050
|
branchedFromMessageId: string | null;
|
|
2396
2051
|
branchPurpose: string | null;
|
|
2397
2052
|
agentId: string;
|
|
2398
|
-
agentType:
|
|
2053
|
+
agentType: string;
|
|
2399
2054
|
agentConfig: unknown;
|
|
2055
|
+
mcpServerIds: string[] | null;
|
|
2400
2056
|
contextSummary: string | null;
|
|
2401
2057
|
resultSummary: string | null;
|
|
2402
2058
|
mergedIntoStateId: string | null;
|
|
@@ -2412,16 +2068,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2412
2068
|
metadata: unknown;
|
|
2413
2069
|
title: string | null;
|
|
2414
2070
|
externalSource: string | null;
|
|
2415
|
-
status:
|
|
2416
|
-
channelType:
|
|
2071
|
+
status: "active" | "merged" | "archived";
|
|
2072
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2417
2073
|
contextObjectType: string | null;
|
|
2418
2074
|
contextObjectId: string | null;
|
|
2419
2075
|
parentChannelId: string | null;
|
|
2420
2076
|
branchedFromMessageId: string | null;
|
|
2421
2077
|
branchPurpose: string | null;
|
|
2422
2078
|
agentId: string;
|
|
2423
|
-
agentType:
|
|
2079
|
+
agentType: string;
|
|
2424
2080
|
agentConfig: unknown;
|
|
2081
|
+
mcpServerIds: string[] | null;
|
|
2425
2082
|
contextSummary: string | null;
|
|
2426
2083
|
resultSummary: string | null;
|
|
2427
2084
|
mergedIntoStateId: string | null;
|
|
@@ -2434,7 +2091,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2434
2091
|
getChannelContext: import("@trpc/server").TRPCQueryProcedure<{
|
|
2435
2092
|
input: {
|
|
2436
2093
|
channelId: string;
|
|
2437
|
-
objectTypes?: ("entity" | "
|
|
2094
|
+
objectTypes?: ("entity" | "document" | "view" | "proposal" | "inbox_item")[] | undefined;
|
|
2438
2095
|
relationshipTypes?: ("created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent")[] | undefined;
|
|
2439
2096
|
};
|
|
2440
2097
|
output: {
|
|
@@ -2445,10 +2102,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2445
2102
|
id: string;
|
|
2446
2103
|
createdAt: Date;
|
|
2447
2104
|
channelId: string;
|
|
2448
|
-
objectType:
|
|
2105
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2449
2106
|
objectId: string;
|
|
2450
|
-
relationshipType:
|
|
2451
|
-
conflictStatus:
|
|
2107
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2108
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2452
2109
|
relevanceScore: number | null;
|
|
2453
2110
|
}[];
|
|
2454
2111
|
entities: {
|
|
@@ -2458,10 +2115,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2458
2115
|
id: string;
|
|
2459
2116
|
createdAt: Date;
|
|
2460
2117
|
channelId: string;
|
|
2461
|
-
objectType:
|
|
2118
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2462
2119
|
objectId: string;
|
|
2463
|
-
relationshipType:
|
|
2464
|
-
conflictStatus:
|
|
2120
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2121
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2465
2122
|
relevanceScore: number | null;
|
|
2466
2123
|
}[];
|
|
2467
2124
|
documents: {
|
|
@@ -2471,10 +2128,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2471
2128
|
id: string;
|
|
2472
2129
|
createdAt: Date;
|
|
2473
2130
|
channelId: string;
|
|
2474
|
-
objectType:
|
|
2131
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2475
2132
|
objectId: string;
|
|
2476
|
-
relationshipType:
|
|
2477
|
-
conflictStatus:
|
|
2133
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2134
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2478
2135
|
relevanceScore: number | null;
|
|
2479
2136
|
}[];
|
|
2480
2137
|
};
|
|
@@ -2483,7 +2140,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2483
2140
|
addContextItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
2484
2141
|
input: {
|
|
2485
2142
|
channelId: string;
|
|
2486
|
-
objectType: "entity" | "
|
|
2143
|
+
objectType: "entity" | "document" | "view";
|
|
2487
2144
|
objectId: string;
|
|
2488
2145
|
};
|
|
2489
2146
|
output: {
|
|
@@ -2491,11 +2148,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2491
2148
|
};
|
|
2492
2149
|
meta: object;
|
|
2493
2150
|
}>;
|
|
2151
|
+
deleteMessagesFrom: import("@trpc/server").TRPCMutationProcedure<{
|
|
2152
|
+
input: {
|
|
2153
|
+
channelId: string;
|
|
2154
|
+
fromMessageId: string;
|
|
2155
|
+
};
|
|
2156
|
+
output: {
|
|
2157
|
+
ok: boolean;
|
|
2158
|
+
};
|
|
2159
|
+
meta: object;
|
|
2160
|
+
}>;
|
|
2494
2161
|
removeContextItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
2495
2162
|
input: {
|
|
2496
2163
|
channelId: string;
|
|
2497
2164
|
objectId: string;
|
|
2498
|
-
objectType: "entity" | "
|
|
2165
|
+
objectType: "entity" | "document" | "view";
|
|
2499
2166
|
};
|
|
2500
2167
|
output: {
|
|
2501
2168
|
ok: boolean;
|
|
@@ -2516,10 +2183,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2516
2183
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2517
2184
|
input: {
|
|
2518
2185
|
workspaceId?: string | undefined;
|
|
2519
|
-
targetType?: "entity" | "
|
|
2186
|
+
targetType?: "entity" | "document" | "view" | "profile" | "whiteboard" | undefined;
|
|
2520
2187
|
targetId?: string | undefined;
|
|
2521
2188
|
threadId?: string | undefined;
|
|
2522
|
-
status?: "pending" | "
|
|
2189
|
+
status?: "pending" | "rejected" | "validated" | "all" | undefined;
|
|
2523
2190
|
limit?: number | undefined;
|
|
2524
2191
|
};
|
|
2525
2192
|
output: {
|
|
@@ -2530,7 +2197,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2530
2197
|
data: unknown;
|
|
2531
2198
|
updatedAt: Date;
|
|
2532
2199
|
createdAt: Date;
|
|
2533
|
-
status:
|
|
2200
|
+
status: "approved" | "pending" | "rejected" | "auto_approved";
|
|
2534
2201
|
expiresAt: Date | null;
|
|
2535
2202
|
createdBy: string | null;
|
|
2536
2203
|
threadId: string | null;
|
|
@@ -2593,7 +2260,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2593
2260
|
}>;
|
|
2594
2261
|
submit: import("@trpc/server").TRPCMutationProcedure<{
|
|
2595
2262
|
input: {
|
|
2596
|
-
targetType: "workspace" | "entity" | "
|
|
2263
|
+
targetType: "workspace" | "entity" | "document" | "view" | "relation" | "profile";
|
|
2597
2264
|
changeType: "create" | "update" | "delete";
|
|
2598
2265
|
data: Record<string, any>;
|
|
2599
2266
|
targetId?: string | undefined;
|
|
@@ -2921,7 +2588,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2921
2588
|
}>;
|
|
2922
2589
|
listUsers: import("@trpc/server").TRPCQueryProcedure<{
|
|
2923
2590
|
input: {
|
|
2924
|
-
type?: "
|
|
2591
|
+
type?: "human" | "agent" | "all" | undefined;
|
|
2925
2592
|
limit?: number | undefined;
|
|
2926
2593
|
offset?: number | undefined;
|
|
2927
2594
|
};
|
|
@@ -4086,7 +3753,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4086
3753
|
allowedEntityTypes: string[] | null;
|
|
4087
3754
|
maxEntitiesCreatedPerRun: number | null;
|
|
4088
3755
|
canCreateViews: boolean;
|
|
4089
|
-
outputMode: "
|
|
3756
|
+
outputMode: "view" | "proposal" | "text";
|
|
4090
3757
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4091
3758
|
sharedScope: "workspace" | "user";
|
|
4092
3759
|
}[];
|
|
@@ -4112,7 +3779,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4112
3779
|
allowedEntityTypes: string[] | null;
|
|
4113
3780
|
maxEntitiesCreatedPerRun: number | null;
|
|
4114
3781
|
canCreateViews: boolean;
|
|
4115
|
-
outputMode: "
|
|
3782
|
+
outputMode: "view" | "proposal" | "text";
|
|
4116
3783
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4117
3784
|
sharedScope: "workspace" | "user";
|
|
4118
3785
|
};
|
|
@@ -4127,7 +3794,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4127
3794
|
allowedEntityTypes?: string[] | undefined;
|
|
4128
3795
|
maxEntitiesCreatedPerRun?: number | undefined;
|
|
4129
3796
|
canCreateViews?: boolean | undefined;
|
|
4130
|
-
outputMode?: "
|
|
3797
|
+
outputMode?: "view" | "proposal" | "text" | undefined;
|
|
4131
3798
|
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
4132
3799
|
sharedScope?: "workspace" | "user" | undefined;
|
|
4133
3800
|
};
|
|
@@ -4146,7 +3813,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4146
3813
|
allowedEntityTypes: string[] | null;
|
|
4147
3814
|
maxEntitiesCreatedPerRun: number | null;
|
|
4148
3815
|
canCreateViews: boolean;
|
|
4149
|
-
outputMode: "
|
|
3816
|
+
outputMode: "view" | "proposal" | "text";
|
|
4150
3817
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4151
3818
|
sharedScope: "workspace" | "user";
|
|
4152
3819
|
};
|
|
@@ -4162,7 +3829,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4162
3829
|
allowedEntityTypes?: string[] | undefined;
|
|
4163
3830
|
maxEntitiesCreatedPerRun?: number | null | undefined;
|
|
4164
3831
|
canCreateViews?: boolean | undefined;
|
|
4165
|
-
outputMode?: "
|
|
3832
|
+
outputMode?: "view" | "proposal" | "text" | undefined;
|
|
4166
3833
|
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
4167
3834
|
sharedScope?: "workspace" | "user" | undefined;
|
|
4168
3835
|
};
|
|
@@ -4179,7 +3846,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4179
3846
|
allowedEntityTypes: string[] | null;
|
|
4180
3847
|
maxEntitiesCreatedPerRun: number | null;
|
|
4181
3848
|
canCreateViews: boolean;
|
|
4182
|
-
outputMode: "
|
|
3849
|
+
outputMode: "view" | "proposal" | "text";
|
|
4183
3850
|
permissionsProfile: "read_only" | "propose_writes";
|
|
4184
3851
|
sharedScope: "workspace" | "user";
|
|
4185
3852
|
createdAt: Date;
|
|
@@ -4282,6 +3949,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4282
3949
|
};
|
|
4283
3950
|
meta: object;
|
|
4284
3951
|
}>;
|
|
3952
|
+
listSpecialisations: import("@trpc/server").TRPCQueryProcedure<{
|
|
3953
|
+
input: void;
|
|
3954
|
+
output: {
|
|
3955
|
+
specialisations: unknown[];
|
|
3956
|
+
};
|
|
3957
|
+
meta: object;
|
|
3958
|
+
}>;
|
|
4285
3959
|
agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
4286
3960
|
input: void;
|
|
4287
3961
|
output: {
|
|
@@ -4359,7 +4033,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4359
4033
|
}>;
|
|
4360
4034
|
proposals: import("@trpc/server").TRPCQueryProcedure<{
|
|
4361
4035
|
input: {
|
|
4362
|
-
status?: "approved" | "
|
|
4036
|
+
status?: "approved" | "pending" | "denied" | undefined;
|
|
4363
4037
|
};
|
|
4364
4038
|
output: {
|
|
4365
4039
|
proposals: any[];
|
|
@@ -4568,7 +4242,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4568
4242
|
entities: import("@trpc/server").TRPCQueryProcedure<{
|
|
4569
4243
|
input: {
|
|
4570
4244
|
query: string;
|
|
4571
|
-
type?: "note" | "
|
|
4245
|
+
type?: "note" | "document" | "task" | "project" | undefined;
|
|
4572
4246
|
limit?: number | undefined;
|
|
4573
4247
|
};
|
|
4574
4248
|
output: {
|
|
@@ -5163,8 +4837,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5163
4837
|
createdAt: Date;
|
|
5164
4838
|
role: string;
|
|
5165
4839
|
expiresAt: Date;
|
|
5166
|
-
invitedBy: string;
|
|
5167
4840
|
token: string;
|
|
4841
|
+
invitedBy: string;
|
|
5168
4842
|
};
|
|
5169
4843
|
meta: object;
|
|
5170
4844
|
}>;
|
|
@@ -5179,8 +4853,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5179
4853
|
createdAt: Date;
|
|
5180
4854
|
role: string;
|
|
5181
4855
|
expiresAt: Date;
|
|
5182
|
-
invitedBy: string;
|
|
5183
4856
|
token: string;
|
|
4857
|
+
invitedBy: string;
|
|
5184
4858
|
}[];
|
|
5185
4859
|
meta: object;
|
|
5186
4860
|
}>;
|
|
@@ -5217,6 +4891,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5217
4891
|
color?: string | undefined;
|
|
5218
4892
|
description?: string | undefined;
|
|
5219
4893
|
scope?: string | undefined;
|
|
4894
|
+
semanticSlug?: string | null | undefined;
|
|
5220
4895
|
properties?: {
|
|
5221
4896
|
slug: string;
|
|
5222
4897
|
valueType: string;
|
|
@@ -5225,16 +4900,52 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5225
4900
|
placeholder?: string | undefined;
|
|
5226
4901
|
enumValues?: string[] | undefined;
|
|
5227
4902
|
constraints?: Record<string, unknown> | undefined;
|
|
4903
|
+
targetProfileSlug?: string | undefined;
|
|
4904
|
+
}[] | undefined;
|
|
4905
|
+
uiHints?: {
|
|
4906
|
+
icon?: string | undefined;
|
|
4907
|
+
color?: string | undefined;
|
|
4908
|
+
description?: string | undefined;
|
|
4909
|
+
} | undefined;
|
|
4910
|
+
propertyDefs?: {
|
|
4911
|
+
slug: string;
|
|
4912
|
+
valueType: string;
|
|
4913
|
+
required?: boolean | undefined;
|
|
4914
|
+
constraints?: {
|
|
4915
|
+
[x: string]: unknown;
|
|
4916
|
+
enum?: string[] | undefined;
|
|
4917
|
+
} | undefined;
|
|
4918
|
+
uiHints?: {
|
|
4919
|
+
label?: string | undefined;
|
|
4920
|
+
inputType?: string | undefined;
|
|
4921
|
+
placeholder?: string | undefined;
|
|
4922
|
+
} | undefined;
|
|
5228
4923
|
}[] | undefined;
|
|
5229
4924
|
}[] | undefined;
|
|
5230
4925
|
views?: {
|
|
5231
4926
|
type: string;
|
|
5232
4927
|
name?: string | undefined;
|
|
5233
4928
|
displayName?: string | undefined;
|
|
4929
|
+
slug?: string | undefined;
|
|
5234
4930
|
scopeProfileSlug?: string | undefined;
|
|
5235
4931
|
scopeProfileSlugs?: string[] | undefined;
|
|
5236
4932
|
config?: Record<string, unknown> | undefined;
|
|
4933
|
+
groupBy?: string | undefined;
|
|
4934
|
+
sortBy?: string | undefined;
|
|
4935
|
+
sortOrder?: "desc" | "asc" | undefined;
|
|
4936
|
+
filterBy?: Record<string, unknown> | undefined;
|
|
4937
|
+
description?: string | undefined;
|
|
4938
|
+
defaultView?: boolean | undefined;
|
|
4939
|
+
hierarchyEdges?: {
|
|
4940
|
+
parent: string;
|
|
4941
|
+
child: string;
|
|
4942
|
+
via?: string | undefined;
|
|
4943
|
+
}[] | undefined;
|
|
4944
|
+
startField?: string | undefined;
|
|
4945
|
+
endField?: string | undefined;
|
|
4946
|
+
colorBy?: string | undefined;
|
|
5237
4947
|
}[] | undefined;
|
|
4948
|
+
bentoViewName?: string | undefined;
|
|
5238
4949
|
bentoLayout?: {
|
|
5239
4950
|
widgetType: string;
|
|
5240
4951
|
pos: {
|
|
@@ -5262,6 +4973,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5262
4973
|
properties?: Record<string, unknown> | undefined;
|
|
5263
4974
|
content?: string | undefined;
|
|
5264
4975
|
}[] | undefined;
|
|
4976
|
+
seedEntities?: {
|
|
4977
|
+
profileSlug: string;
|
|
4978
|
+
title: string;
|
|
4979
|
+
properties?: Record<string, unknown> | undefined;
|
|
4980
|
+
content?: string | undefined;
|
|
4981
|
+
}[] | undefined;
|
|
5265
4982
|
suggestedRelations?: {
|
|
5266
4983
|
sourceRef: string;
|
|
5267
4984
|
targetRef: string;
|
|
@@ -5281,7 +4998,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5281
4998
|
defaultView?: string | undefined;
|
|
5282
4999
|
theme?: string | undefined;
|
|
5283
5000
|
sidebarItems?: {
|
|
5284
|
-
kind: "
|
|
5001
|
+
kind: "external" | "view" | "profile" | "app";
|
|
5285
5002
|
appId?: string | undefined;
|
|
5286
5003
|
viewName?: string | undefined;
|
|
5287
5004
|
profileSlug?: string | undefined;
|
|
@@ -5302,22 +5019,31 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5302
5019
|
};
|
|
5303
5020
|
packageSlug?: string | undefined;
|
|
5304
5021
|
packageVersion?: string | undefined;
|
|
5022
|
+
templateId?: string | undefined;
|
|
5023
|
+
templateName?: string | undefined;
|
|
5305
5024
|
workspaceName?: string | undefined;
|
|
5025
|
+
workspaceType?: "project" | "agent" | "personal" | "operational" | undefined;
|
|
5026
|
+
linkedAgentId?: string | undefined;
|
|
5027
|
+
workspaceId?: string | undefined;
|
|
5306
5028
|
};
|
|
5307
5029
|
output: {
|
|
5308
5030
|
status: "created";
|
|
5309
5031
|
workspaceId: string;
|
|
5310
5032
|
profileIds: string[];
|
|
5311
5033
|
viewIds: string[];
|
|
5312
|
-
entityIds
|
|
5313
|
-
}
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5034
|
+
entityIds?: undefined;
|
|
5035
|
+
} | {
|
|
5036
|
+
status: "created" | "pending";
|
|
5037
|
+
workspaceId: string;
|
|
5038
|
+
profileIds?: undefined;
|
|
5039
|
+
viewIds?: undefined;
|
|
5040
|
+
entityIds?: undefined;
|
|
5041
|
+
} | {
|
|
5042
|
+
status: "created";
|
|
5319
5043
|
workspaceId: string;
|
|
5320
|
-
|
|
5044
|
+
profileIds: string[];
|
|
5045
|
+
viewIds: string[];
|
|
5046
|
+
entityIds: string[];
|
|
5321
5047
|
};
|
|
5322
5048
|
meta: object;
|
|
5323
5049
|
}>;
|
|
@@ -5327,6 +5053,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5327
5053
|
definition?: unknown;
|
|
5328
5054
|
};
|
|
5329
5055
|
output: {
|
|
5056
|
+
status: "existing";
|
|
5057
|
+
workspaceId: string;
|
|
5058
|
+
} | {
|
|
5330
5059
|
status: "created";
|
|
5331
5060
|
workspaceId: string;
|
|
5332
5061
|
};
|
|
@@ -5454,6 +5183,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5454
5183
|
input: {
|
|
5455
5184
|
workspaceIds?: string[] | undefined;
|
|
5456
5185
|
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
5186
|
+
excludeAutoCreated?: boolean | undefined;
|
|
5457
5187
|
};
|
|
5458
5188
|
output: {
|
|
5459
5189
|
name: string;
|
|
@@ -5918,7 +5648,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5918
5648
|
setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
|
|
5919
5649
|
input: {
|
|
5920
5650
|
serviceId: string | null;
|
|
5921
|
-
capability?: "
|
|
5651
|
+
capability?: "chat" | "default" | "analysis" | undefined;
|
|
5922
5652
|
};
|
|
5923
5653
|
output: {
|
|
5924
5654
|
success: boolean;
|
|
@@ -6035,7 +5765,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6035
5765
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6036
5766
|
createPublicLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
6037
5767
|
input: {
|
|
6038
|
-
resourceType: "entity" | "
|
|
5768
|
+
resourceType: "entity" | "document" | "view";
|
|
6039
5769
|
resourceId: string;
|
|
6040
5770
|
expiresInDays?: number | undefined;
|
|
6041
5771
|
access?: "workspace_only" | "anyone_with_link" | undefined;
|
|
@@ -6050,7 +5780,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6050
5780
|
}>;
|
|
6051
5781
|
invite: import("@trpc/server").TRPCMutationProcedure<{
|
|
6052
5782
|
input: {
|
|
6053
|
-
resourceType: "entity" | "
|
|
5783
|
+
resourceType: "entity" | "document" | "view";
|
|
6054
5784
|
resourceId: string;
|
|
6055
5785
|
userEmail: string;
|
|
6056
5786
|
};
|
|
@@ -6152,7 +5882,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6152
5882
|
}>;
|
|
6153
5883
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
6154
5884
|
input: {
|
|
6155
|
-
resourceType: "entity" | "
|
|
5885
|
+
resourceType: "entity" | "document" | "view";
|
|
6156
5886
|
resourceId: string;
|
|
6157
5887
|
visibility?: "public" | "private" | undefined;
|
|
6158
5888
|
expiresAt?: Date | undefined;
|
|
@@ -6221,7 +5951,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6221
5951
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6222
5952
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
6223
5953
|
input: {
|
|
6224
|
-
targetType?: "entity" | "
|
|
5954
|
+
targetType?: "entity" | "document" | "inbox_item" | "project" | undefined;
|
|
6225
5955
|
entityType?: string | undefined;
|
|
6226
5956
|
inboxItemType?: string | undefined;
|
|
6227
5957
|
workspaceId?: string | undefined;
|
|
@@ -6248,7 +5978,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6248
5978
|
}>;
|
|
6249
5979
|
getDefault: import("@trpc/server").TRPCQueryProcedure<{
|
|
6250
5980
|
input: {
|
|
6251
|
-
targetType: "entity" | "
|
|
5981
|
+
targetType: "entity" | "document" | "inbox_item" | "project";
|
|
6252
5982
|
entityType?: string | undefined;
|
|
6253
5983
|
inboxItemType?: string | undefined;
|
|
6254
5984
|
workspaceId?: string | undefined;
|
|
@@ -6259,7 +5989,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6259
5989
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
6260
5990
|
input: {
|
|
6261
5991
|
name: string;
|
|
6262
|
-
targetType: "entity" | "
|
|
5992
|
+
targetType: "entity" | "document" | "inbox_item" | "project";
|
|
6263
5993
|
config: {
|
|
6264
5994
|
layout?: {
|
|
6265
5995
|
structure: {
|
|
@@ -6982,6 +6712,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6982
6712
|
displayName: string;
|
|
6983
6713
|
parentProfileId: string | null;
|
|
6984
6714
|
defaultValues: unknown;
|
|
6715
|
+
semanticSlug: string | null;
|
|
6985
6716
|
}[];
|
|
6986
6717
|
};
|
|
6987
6718
|
meta: object;
|
|
@@ -7005,6 +6736,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7005
6736
|
displayName: string;
|
|
7006
6737
|
parentProfileId: string | null;
|
|
7007
6738
|
defaultValues: unknown;
|
|
6739
|
+
semanticSlug: string | null;
|
|
7008
6740
|
};
|
|
7009
6741
|
effectiveProperties: EffectiveProperty[];
|
|
7010
6742
|
};
|
|
@@ -7038,6 +6770,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7038
6770
|
displayName: string;
|
|
7039
6771
|
parentProfileId: string | null;
|
|
7040
6772
|
defaultValues: unknown;
|
|
6773
|
+
semanticSlug: string | null;
|
|
7041
6774
|
};
|
|
7042
6775
|
existing: boolean;
|
|
7043
6776
|
status?: undefined;
|
|
@@ -7064,6 +6797,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7064
6797
|
displayName: string;
|
|
7065
6798
|
parentProfileId: string | null;
|
|
7066
6799
|
defaultValues: unknown;
|
|
6800
|
+
semanticSlug: string | null;
|
|
7067
6801
|
};
|
|
7068
6802
|
existing?: undefined;
|
|
7069
6803
|
status?: undefined;
|
|
@@ -7097,6 +6831,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7097
6831
|
displayName: string;
|
|
7098
6832
|
parentProfileId: string | null;
|
|
7099
6833
|
defaultValues: unknown;
|
|
6834
|
+
semanticSlug: string | null;
|
|
7100
6835
|
};
|
|
7101
6836
|
};
|
|
7102
6837
|
meta: object;
|
|
@@ -7138,6 +6873,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7138
6873
|
displayName: string;
|
|
7139
6874
|
parentProfileId: string | null;
|
|
7140
6875
|
defaultValues: unknown;
|
|
6876
|
+
semanticSlug: string | null;
|
|
7141
6877
|
}[];
|
|
7142
6878
|
};
|
|
7143
6879
|
meta: object;
|
|
@@ -7171,6 +6907,32 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7171
6907
|
displayName: string;
|
|
7172
6908
|
parentProfileId: string | null;
|
|
7173
6909
|
defaultValues: unknown;
|
|
6910
|
+
semanticSlug: string | null;
|
|
6911
|
+
}[];
|
|
6912
|
+
};
|
|
6913
|
+
meta: object;
|
|
6914
|
+
}>;
|
|
6915
|
+
getBySemanticSlug: import("@trpc/server").TRPCQueryProcedure<{
|
|
6916
|
+
input: {
|
|
6917
|
+
semanticSlug: string;
|
|
6918
|
+
workspaceIds?: string[] | undefined;
|
|
6919
|
+
};
|
|
6920
|
+
output: {
|
|
6921
|
+
profiles: {
|
|
6922
|
+
workspaceId: string | null;
|
|
6923
|
+
userId: string | null;
|
|
6924
|
+
id: string;
|
|
6925
|
+
updatedAt: Date;
|
|
6926
|
+
createdAt: Date;
|
|
6927
|
+
version: number;
|
|
6928
|
+
isActive: boolean;
|
|
6929
|
+
scope: ProfileScope;
|
|
6930
|
+
slug: string;
|
|
6931
|
+
uiHints: unknown;
|
|
6932
|
+
displayName: string;
|
|
6933
|
+
parentProfileId: string | null;
|
|
6934
|
+
defaultValues: unknown;
|
|
6935
|
+
semanticSlug: string | null;
|
|
7174
6936
|
}[];
|
|
7175
6937
|
};
|
|
7176
6938
|
meta: object;
|
|
@@ -7857,6 +7619,178 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7857
7619
|
meta: object;
|
|
7858
7620
|
}>;
|
|
7859
7621
|
}>>;
|
|
7622
|
+
widgetDefinitions: import("@trpc/server").TRPCBuiltRouter<{
|
|
7623
|
+
ctx: Context;
|
|
7624
|
+
meta: object;
|
|
7625
|
+
errorShape: {
|
|
7626
|
+
message: string;
|
|
7627
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7628
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7629
|
+
};
|
|
7630
|
+
transformer: true;
|
|
7631
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7632
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7633
|
+
input: void;
|
|
7634
|
+
output: {
|
|
7635
|
+
name: string;
|
|
7636
|
+
workspaceId: string | null;
|
|
7637
|
+
id: string;
|
|
7638
|
+
description: string | null;
|
|
7639
|
+
updatedAt: Date;
|
|
7640
|
+
createdAt: Date;
|
|
7641
|
+
version: string | null;
|
|
7642
|
+
isActive: boolean;
|
|
7643
|
+
category: string | null;
|
|
7644
|
+
typeKey: string;
|
|
7645
|
+
icon: string | null;
|
|
7646
|
+
rendererType: WidgetRendererType;
|
|
7647
|
+
rendererSource: string | null;
|
|
7648
|
+
configSchema: Record<string, unknown>;
|
|
7649
|
+
defaultConfig: Record<string, unknown> | null;
|
|
7650
|
+
defaultSize: {
|
|
7651
|
+
w: number;
|
|
7652
|
+
h: number;
|
|
7653
|
+
};
|
|
7654
|
+
minSize: {
|
|
7655
|
+
w: number;
|
|
7656
|
+
h: number;
|
|
7657
|
+
} | null;
|
|
7658
|
+
}[];
|
|
7659
|
+
meta: object;
|
|
7660
|
+
}>;
|
|
7661
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
7662
|
+
input: {
|
|
7663
|
+
typeKey: string;
|
|
7664
|
+
};
|
|
7665
|
+
output: {
|
|
7666
|
+
name: string;
|
|
7667
|
+
workspaceId: string | null;
|
|
7668
|
+
id: string;
|
|
7669
|
+
description: string | null;
|
|
7670
|
+
updatedAt: Date;
|
|
7671
|
+
createdAt: Date;
|
|
7672
|
+
version: string | null;
|
|
7673
|
+
isActive: boolean;
|
|
7674
|
+
category: string | null;
|
|
7675
|
+
typeKey: string;
|
|
7676
|
+
icon: string | null;
|
|
7677
|
+
rendererType: WidgetRendererType;
|
|
7678
|
+
rendererSource: string | null;
|
|
7679
|
+
configSchema: Record<string, unknown>;
|
|
7680
|
+
defaultConfig: Record<string, unknown> | null;
|
|
7681
|
+
defaultSize: {
|
|
7682
|
+
w: number;
|
|
7683
|
+
h: number;
|
|
7684
|
+
};
|
|
7685
|
+
minSize: {
|
|
7686
|
+
w: number;
|
|
7687
|
+
h: number;
|
|
7688
|
+
} | null;
|
|
7689
|
+
} | null;
|
|
7690
|
+
meta: object;
|
|
7691
|
+
}>;
|
|
7692
|
+
upsert: import("@trpc/server").TRPCMutationProcedure<{
|
|
7693
|
+
input: {
|
|
7694
|
+
typeKey: string;
|
|
7695
|
+
name: string;
|
|
7696
|
+
description?: string | undefined;
|
|
7697
|
+
icon?: string | undefined;
|
|
7698
|
+
category?: string | undefined;
|
|
7699
|
+
rendererType?: "builtin" | "iframe" | undefined;
|
|
7700
|
+
rendererSource?: string | undefined;
|
|
7701
|
+
configSchema?: Record<string, unknown> | undefined;
|
|
7702
|
+
defaultConfig?: Record<string, unknown> | undefined;
|
|
7703
|
+
defaultSize?: {
|
|
7704
|
+
w: number;
|
|
7705
|
+
h: number;
|
|
7706
|
+
} | undefined;
|
|
7707
|
+
minSize?: {
|
|
7708
|
+
w: number;
|
|
7709
|
+
h: number;
|
|
7710
|
+
} | undefined;
|
|
7711
|
+
};
|
|
7712
|
+
output: {
|
|
7713
|
+
name: string;
|
|
7714
|
+
workspaceId: string | null;
|
|
7715
|
+
id: string;
|
|
7716
|
+
description: string | null;
|
|
7717
|
+
updatedAt: Date;
|
|
7718
|
+
createdAt: Date;
|
|
7719
|
+
version: string | null;
|
|
7720
|
+
isActive: boolean;
|
|
7721
|
+
category: string | null;
|
|
7722
|
+
typeKey: string;
|
|
7723
|
+
icon: string | null;
|
|
7724
|
+
rendererType: WidgetRendererType;
|
|
7725
|
+
rendererSource: string | null;
|
|
7726
|
+
configSchema: Record<string, unknown>;
|
|
7727
|
+
defaultConfig: Record<string, unknown> | null;
|
|
7728
|
+
defaultSize: {
|
|
7729
|
+
w: number;
|
|
7730
|
+
h: number;
|
|
7731
|
+
};
|
|
7732
|
+
minSize: {
|
|
7733
|
+
w: number;
|
|
7734
|
+
h: number;
|
|
7735
|
+
} | null;
|
|
7736
|
+
};
|
|
7737
|
+
meta: object;
|
|
7738
|
+
}>;
|
|
7739
|
+
deactivate: import("@trpc/server").TRPCMutationProcedure<{
|
|
7740
|
+
input: {
|
|
7741
|
+
typeKey: string;
|
|
7742
|
+
};
|
|
7743
|
+
output: {
|
|
7744
|
+
success: boolean;
|
|
7745
|
+
};
|
|
7746
|
+
meta: object;
|
|
7747
|
+
}>;
|
|
7748
|
+
}>>;
|
|
7749
|
+
channelGateway: import("@trpc/server").TRPCBuiltRouter<{
|
|
7750
|
+
ctx: Context;
|
|
7751
|
+
meta: object;
|
|
7752
|
+
errorShape: {
|
|
7753
|
+
message: string;
|
|
7754
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7755
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7756
|
+
};
|
|
7757
|
+
transformer: true;
|
|
7758
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7759
|
+
initLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
7760
|
+
input: {
|
|
7761
|
+
channel: "telegram" | "whatsapp" | "discord";
|
|
7762
|
+
defaultChannelId?: string | undefined;
|
|
7763
|
+
};
|
|
7764
|
+
output: {
|
|
7765
|
+
token: string;
|
|
7766
|
+
expiresAt: Date;
|
|
7767
|
+
instruction: string;
|
|
7768
|
+
};
|
|
7769
|
+
meta: object;
|
|
7770
|
+
}>;
|
|
7771
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
7772
|
+
input: void;
|
|
7773
|
+
output: {
|
|
7774
|
+
workspaceId: string | null;
|
|
7775
|
+
id: string;
|
|
7776
|
+
createdAt: Date;
|
|
7777
|
+
channel: string;
|
|
7778
|
+
channelUserId: string;
|
|
7779
|
+
defaultChannelId: string | null;
|
|
7780
|
+
externalUsername: string | null;
|
|
7781
|
+
}[];
|
|
7782
|
+
meta: object;
|
|
7783
|
+
}>;
|
|
7784
|
+
unlink: import("@trpc/server").TRPCMutationProcedure<{
|
|
7785
|
+
input: {
|
|
7786
|
+
connectionId: string;
|
|
7787
|
+
};
|
|
7788
|
+
output: {
|
|
7789
|
+
ok: boolean;
|
|
7790
|
+
};
|
|
7791
|
+
meta: object;
|
|
7792
|
+
}>;
|
|
7793
|
+
}>>;
|
|
7860
7794
|
}>>;
|
|
7861
7795
|
export type AppRouter = typeof coreRouter;
|
|
7862
7796
|
|