@synap-core/api-types 1.10.3 → 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 +1037 -663
- package/package.json +1 -1
- package/src/generated.d.ts +1037 -663
package/dist/generated.d.ts
CHANGED
|
@@ -85,480 +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
|
-
externalSource: import("drizzle-orm/pg-core").PgColumn<{
|
|
433
|
-
name: "external_source";
|
|
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
|
-
externalChannelId: import("drizzle-orm/pg-core").PgColumn<{
|
|
453
|
-
name: "external_channel_id";
|
|
454
|
-
tableName: "channels";
|
|
455
|
-
dataType: "string";
|
|
456
|
-
columnType: "PgText";
|
|
457
|
-
data: string;
|
|
458
|
-
driverParam: string;
|
|
459
|
-
notNull: false;
|
|
460
|
-
hasDefault: false;
|
|
461
|
-
isPrimaryKey: false;
|
|
462
|
-
isAutoincrement: false;
|
|
463
|
-
hasRuntimeDefault: false;
|
|
464
|
-
enumValues: [
|
|
465
|
-
string,
|
|
466
|
-
...string[]
|
|
467
|
-
];
|
|
468
|
-
baseColumn: never;
|
|
469
|
-
identity: undefined;
|
|
470
|
-
generated: undefined;
|
|
471
|
-
}, {}, {}>;
|
|
472
|
-
metadata: import("drizzle-orm/pg-core").PgColumn<{
|
|
473
|
-
name: "metadata";
|
|
474
|
-
tableName: "channels";
|
|
475
|
-
dataType: "json";
|
|
476
|
-
columnType: "PgJsonb";
|
|
477
|
-
data: unknown;
|
|
478
|
-
driverParam: unknown;
|
|
479
|
-
notNull: false;
|
|
480
|
-
hasDefault: false;
|
|
481
|
-
isPrimaryKey: false;
|
|
482
|
-
isAutoincrement: false;
|
|
483
|
-
hasRuntimeDefault: false;
|
|
484
|
-
enumValues: undefined;
|
|
485
|
-
baseColumn: never;
|
|
486
|
-
identity: undefined;
|
|
487
|
-
generated: undefined;
|
|
488
|
-
}, {}, {}>;
|
|
489
|
-
createdAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
490
|
-
name: "created_at";
|
|
491
|
-
tableName: "channels";
|
|
492
|
-
dataType: "date";
|
|
493
|
-
columnType: "PgTimestamp";
|
|
494
|
-
data: Date;
|
|
495
|
-
driverParam: string;
|
|
496
|
-
notNull: true;
|
|
497
|
-
hasDefault: true;
|
|
498
|
-
isPrimaryKey: false;
|
|
499
|
-
isAutoincrement: false;
|
|
500
|
-
hasRuntimeDefault: false;
|
|
501
|
-
enumValues: undefined;
|
|
502
|
-
baseColumn: never;
|
|
503
|
-
identity: undefined;
|
|
504
|
-
generated: undefined;
|
|
505
|
-
}, {}, {}>;
|
|
506
|
-
updatedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
507
|
-
name: "updated_at";
|
|
508
|
-
tableName: "channels";
|
|
509
|
-
dataType: "date";
|
|
510
|
-
columnType: "PgTimestamp";
|
|
511
|
-
data: Date;
|
|
512
|
-
driverParam: string;
|
|
513
|
-
notNull: true;
|
|
514
|
-
hasDefault: true;
|
|
515
|
-
isPrimaryKey: false;
|
|
516
|
-
isAutoincrement: false;
|
|
517
|
-
hasRuntimeDefault: false;
|
|
518
|
-
enumValues: undefined;
|
|
519
|
-
baseColumn: never;
|
|
520
|
-
identity: undefined;
|
|
521
|
-
generated: undefined;
|
|
522
|
-
}, {}, {}>;
|
|
523
|
-
mergedAt: import("drizzle-orm/pg-core").PgColumn<{
|
|
524
|
-
name: "merged_at";
|
|
525
|
-
tableName: "channels";
|
|
526
|
-
dataType: "date";
|
|
527
|
-
columnType: "PgTimestamp";
|
|
528
|
-
data: Date;
|
|
529
|
-
driverParam: string;
|
|
530
|
-
notNull: false;
|
|
531
|
-
hasDefault: false;
|
|
532
|
-
isPrimaryKey: false;
|
|
533
|
-
isAutoincrement: false;
|
|
534
|
-
hasRuntimeDefault: false;
|
|
535
|
-
enumValues: undefined;
|
|
536
|
-
baseColumn: never;
|
|
537
|
-
identity: undefined;
|
|
538
|
-
generated: undefined;
|
|
539
|
-
}, {}, {}>;
|
|
540
|
-
};
|
|
541
|
-
dialect: "pg";
|
|
542
|
-
}>;
|
|
543
|
-
export type Channel = typeof channels.$inferSelect;
|
|
544
|
-
declare enum ChannelContextObjectType {
|
|
545
|
-
ENTITY = "entity",
|
|
546
|
-
DOCUMENT = "document",
|
|
547
|
-
VIEW = "view",
|
|
548
|
-
PROPOSAL = "proposal",
|
|
549
|
-
INBOX_ITEM = "inbox_item"
|
|
550
|
-
}
|
|
551
|
-
declare enum ChannelContextRelationshipType {
|
|
552
|
-
USED_AS_CONTEXT = "used_as_context",
|
|
553
|
-
CREATED = "created",
|
|
554
|
-
UPDATED = "updated",
|
|
555
|
-
REFERENCED = "referenced",
|
|
556
|
-
INHERITED_FROM_PARENT = "inherited_from_parent"
|
|
557
|
-
}
|
|
558
|
-
declare enum ChannelContextConflictStatus {
|
|
559
|
-
NONE = "none",
|
|
560
|
-
PENDING = "pending",
|
|
561
|
-
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;
|
|
562
137
|
}
|
|
563
138
|
export interface DerivedInput {
|
|
564
139
|
name: string;
|
|
@@ -581,24 +156,73 @@ export interface InputOverride {
|
|
|
581
156
|
* - Enterprise (advanced features)
|
|
582
157
|
*/
|
|
583
158
|
export interface WorkspaceSidebarItem {
|
|
584
|
-
kind: "app" | "view" | "external";
|
|
159
|
+
kind: "app" | "view" | "profile" | "external" | "cell";
|
|
585
160
|
/** App ID for kind='app' (e.g. 'dashboard', 'intelligence', 'data') */
|
|
586
161
|
appId?: string;
|
|
587
162
|
/** View name for kind='view' — resolved lazily at click time */
|
|
588
163
|
viewName?: string;
|
|
164
|
+
/** View ID for kind='view' — preferred over viewName when available */
|
|
165
|
+
viewId?: string;
|
|
166
|
+
/**
|
|
167
|
+
* Profile slug for kind='profile'.
|
|
168
|
+
* ActivityBar resolves this to the profile bento view via workspace.settings.profileBentoViewIds,
|
|
169
|
+
* or lazily creates one via ensureProfileBento if not yet set.
|
|
170
|
+
*/
|
|
171
|
+
profileSlug?: string;
|
|
589
172
|
/** URL template for kind='external'. Use __POD_URL__ as a placeholder. */
|
|
590
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>;
|
|
591
178
|
/** Display label shown in the sidebar */
|
|
592
179
|
label?: string;
|
|
593
180
|
/** Lucide icon name override */
|
|
594
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;
|
|
595
207
|
}
|
|
596
208
|
export interface WorkspaceLayoutConfig {
|
|
597
209
|
pinnedApps?: string[];
|
|
598
210
|
defaultView?: string;
|
|
211
|
+
/**
|
|
212
|
+
* Default app view to navigate to when a workspace is first opened (browser only).
|
|
213
|
+
* Applied once per profile switch by useTemplateIntegration.
|
|
214
|
+
* Valid values: 'browser' | 'dashboard' | 'data' | 'intelligence' | 'terminal' | …
|
|
215
|
+
*/
|
|
216
|
+
defaultApp?: string;
|
|
599
217
|
theme?: string;
|
|
600
218
|
/** Ordered list of sidebar items. When set, replaces the generic app list. */
|
|
601
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[];
|
|
602
226
|
}
|
|
603
227
|
/**
|
|
604
228
|
* MCP server configuration — stored per workspace.
|
|
@@ -626,7 +250,32 @@ export interface WorkspaceSettings {
|
|
|
626
250
|
/** External MCP servers whose tools will be available to AI agents in this workspace */
|
|
627
251
|
mcpServers?: McpServerConfig[];
|
|
628
252
|
layout?: WorkspaceLayoutConfig;
|
|
253
|
+
/**
|
|
254
|
+
* Maps profile slug → bento dashboard view ID for this workspace.
|
|
255
|
+
* Each entry is the "home page" view for all entities of that profile type.
|
|
256
|
+
* Stored here (not on the profile row) so system/shared profiles can have
|
|
257
|
+
* different bento views per workspace.
|
|
258
|
+
* Populated on workspace creation and lazily via ensureProfileBento.
|
|
259
|
+
* Example: { "deal": "uuid-deal-bento", "contact": "uuid-contact-bento" }
|
|
260
|
+
*/
|
|
261
|
+
profileBentoViewIds?: Record<string, string>;
|
|
262
|
+
/**
|
|
263
|
+
* Per-profile default bento layout for entity instance dashboards.
|
|
264
|
+
* When a user opens a single entity in bento mode for the first time,
|
|
265
|
+
* this template is used to seed the bento view (instead of the generic default).
|
|
266
|
+
* Populated from the workspace template at creation time.
|
|
267
|
+
* Example: { "deal": { blocks: [...] }, "contact": { blocks: [...] } }
|
|
268
|
+
*/
|
|
269
|
+
profileEntityBentoTemplates?: Record<string, {
|
|
270
|
+
blocks: Array<Record<string, unknown>>;
|
|
271
|
+
}>;
|
|
272
|
+
/** UUID of the main whiteboard view for this workspace */
|
|
629
273
|
mainWhiteboardId?: string;
|
|
274
|
+
/**
|
|
275
|
+
* Home dashboard view ID (type='bento', metadata.homeScope='workspace').
|
|
276
|
+
* Stored here for O(1) lookup on workspace open.
|
|
277
|
+
*/
|
|
278
|
+
homeDashboardViewId?: string;
|
|
630
279
|
intelligenceServiceId?: string;
|
|
631
280
|
intelligenceServiceOverrides?: {
|
|
632
281
|
chat?: string;
|
|
@@ -651,6 +300,11 @@ export interface WorkspaceSettings {
|
|
|
651
300
|
};
|
|
652
301
|
/** Name of the template used to seed this workspace. When set, workspace-init skips default views. */
|
|
653
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;
|
|
654
308
|
/** Slug of the control plane package used to create this workspace. */
|
|
655
309
|
packageSlug?: string;
|
|
656
310
|
/**
|
|
@@ -663,10 +317,66 @@ export interface WorkspaceSettings {
|
|
|
663
317
|
packageVersion?: string;
|
|
664
318
|
/** Who/what created this workspace: user, control-plane provisioning, or plugin seed */
|
|
665
319
|
createdBy?: "user" | "provisioning" | "plugin";
|
|
666
|
-
/** ISO timestamp when provisioning
|
|
320
|
+
/** ISO timestamp when provisioning started (set immediately on workspace creation) */
|
|
667
321
|
provisionedAt?: string;
|
|
668
|
-
/**
|
|
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
|
+
*/
|
|
669
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>;
|
|
670
380
|
aiGovernance?: {
|
|
671
381
|
/**
|
|
672
382
|
* Whitelist of event keys that AI agents may execute WITHOUT a proposal.
|
|
@@ -691,13 +401,6 @@ export interface WorkspaceSettings {
|
|
|
691
401
|
proposalApprovalPolicy?: "owner_and_admins" | "any_editor" | "admins_only";
|
|
692
402
|
};
|
|
693
403
|
}
|
|
694
|
-
declare enum ProposalStatus {
|
|
695
|
-
PENDING = "pending",
|
|
696
|
-
APPROVED = "approved",
|
|
697
|
-
REJECTED = "rejected",
|
|
698
|
-
/** Action was on the autoApproveFor whitelist — executed immediately, audited here for traceability. */
|
|
699
|
-
AUTO_APPROVED = "auto_approved"
|
|
700
|
-
}
|
|
701
404
|
declare const messageLinks: import("drizzle-orm/pg-core").PgTableWithColumns<{
|
|
702
405
|
name: "message_links";
|
|
703
406
|
schema: undefined;
|
|
@@ -897,7 +600,7 @@ export type MessageLink = typeof messageLinks.$inferSelect;
|
|
|
897
600
|
* be explicitly approved by a workspace owner before its tools are injected
|
|
898
601
|
* into LLM requests.
|
|
899
602
|
*/
|
|
900
|
-
export type McpTransport = "stdio" | "http"
|
|
603
|
+
export type McpTransport = "stdio" | "http";
|
|
901
604
|
export type McpStatus = "connected" | "disconnected" | "error" | "unknown";
|
|
902
605
|
declare enum PropertyValueType {
|
|
903
606
|
STRING = "string",
|
|
@@ -1088,6 +791,18 @@ declare enum ProfileScope {
|
|
|
1088
791
|
WORKSPACE = "workspace",// Owned by a single workspace
|
|
1089
792
|
USER = "user"
|
|
1090
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";
|
|
1091
806
|
/**
|
|
1092
807
|
* EventRecord - Database representation of an event
|
|
1093
808
|
*
|
|
@@ -1402,13 +1117,21 @@ export interface ExecutionStats {
|
|
|
1402
1117
|
export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
1403
1118
|
ctx: Context;
|
|
1404
1119
|
meta: object;
|
|
1405
|
-
errorShape:
|
|
1120
|
+
errorShape: {
|
|
1121
|
+
message: string;
|
|
1122
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1123
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
1124
|
+
};
|
|
1406
1125
|
transformer: true;
|
|
1407
1126
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1408
1127
|
setup: import("@trpc/server").TRPCBuiltRouter<{
|
|
1409
1128
|
ctx: Context;
|
|
1410
1129
|
meta: object;
|
|
1411
|
-
errorShape:
|
|
1130
|
+
errorShape: {
|
|
1131
|
+
message: string;
|
|
1132
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1133
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
1134
|
+
};
|
|
1412
1135
|
transformer: true;
|
|
1413
1136
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1414
1137
|
status: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -1423,7 +1146,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1423
1146
|
events: import("@trpc/server").TRPCBuiltRouter<{
|
|
1424
1147
|
ctx: Context;
|
|
1425
1148
|
meta: object;
|
|
1426
|
-
errorShape:
|
|
1149
|
+
errorShape: {
|
|
1150
|
+
message: string;
|
|
1151
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1152
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
1153
|
+
};
|
|
1427
1154
|
transformer: true;
|
|
1428
1155
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1429
1156
|
log: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1483,7 +1210,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1483
1210
|
capture: import("@trpc/server").TRPCBuiltRouter<{
|
|
1484
1211
|
ctx: Context;
|
|
1485
1212
|
meta: object;
|
|
1486
|
-
errorShape:
|
|
1213
|
+
errorShape: {
|
|
1214
|
+
message: string;
|
|
1215
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1216
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
1217
|
+
};
|
|
1487
1218
|
transformer: true;
|
|
1488
1219
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1489
1220
|
thought: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1508,7 +1239,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1508
1239
|
entities: import("@trpc/server").TRPCBuiltRouter<{
|
|
1509
1240
|
ctx: Context;
|
|
1510
1241
|
meta: object;
|
|
1511
|
-
errorShape:
|
|
1242
|
+
errorShape: {
|
|
1243
|
+
message: string;
|
|
1244
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1245
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
1246
|
+
};
|
|
1512
1247
|
transformer: true;
|
|
1513
1248
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1514
1249
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1554,6 +1289,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1554
1289
|
createdAt: Date;
|
|
1555
1290
|
updatedAt: Date;
|
|
1556
1291
|
deletedAt: Date | null;
|
|
1292
|
+
systemData?: Record<string, unknown> | undefined;
|
|
1557
1293
|
};
|
|
1558
1294
|
proposalId?: undefined;
|
|
1559
1295
|
};
|
|
@@ -1585,6 +1321,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1585
1321
|
createdAt: Date;
|
|
1586
1322
|
updatedAt: Date;
|
|
1587
1323
|
deletedAt: Date | null;
|
|
1324
|
+
systemData?: Record<string, unknown> | undefined;
|
|
1588
1325
|
}[];
|
|
1589
1326
|
};
|
|
1590
1327
|
meta: object;
|
|
@@ -1614,6 +1351,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1614
1351
|
createdAt: Date;
|
|
1615
1352
|
updatedAt: Date;
|
|
1616
1353
|
deletedAt: Date | null;
|
|
1354
|
+
systemData?: Record<string, unknown> | undefined;
|
|
1617
1355
|
}[];
|
|
1618
1356
|
};
|
|
1619
1357
|
meta: object;
|
|
@@ -1645,6 +1383,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1645
1383
|
createdAt: Date;
|
|
1646
1384
|
updatedAt: Date;
|
|
1647
1385
|
deletedAt: Date | null;
|
|
1386
|
+
systemData?: Record<string, unknown> | undefined;
|
|
1648
1387
|
}[];
|
|
1649
1388
|
};
|
|
1650
1389
|
meta: object;
|
|
@@ -1686,6 +1425,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1686
1425
|
createdAt: Date;
|
|
1687
1426
|
updatedAt: Date;
|
|
1688
1427
|
deletedAt: Date | null;
|
|
1428
|
+
systemData?: Record<string, unknown> | undefined;
|
|
1689
1429
|
}[];
|
|
1690
1430
|
};
|
|
1691
1431
|
meta: object;
|
|
@@ -1767,7 +1507,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1767
1507
|
chat: import("@trpc/server").TRPCBuiltRouter<{
|
|
1768
1508
|
ctx: Context;
|
|
1769
1509
|
meta: object;
|
|
1770
|
-
errorShape:
|
|
1510
|
+
errorShape: {
|
|
1511
|
+
message: string;
|
|
1512
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
1513
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
1514
|
+
};
|
|
1771
1515
|
transformer: true;
|
|
1772
1516
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
1773
1517
|
createChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -1775,16 +1519,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1775
1519
|
parentChannelId?: string | undefined;
|
|
1776
1520
|
branchPurpose?: string | undefined;
|
|
1777
1521
|
agentId?: string | undefined;
|
|
1778
|
-
agentType?:
|
|
1522
|
+
agentType?: string | undefined;
|
|
1779
1523
|
agentConfig?: Record<string, any> | undefined;
|
|
1780
1524
|
inheritContext?: boolean | undefined;
|
|
1781
1525
|
};
|
|
1782
1526
|
output: {
|
|
1783
|
-
channelId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1784
|
-
status: string;
|
|
1785
|
-
message: string;
|
|
1786
|
-
channel?: undefined;
|
|
1787
|
-
} | {
|
|
1788
1527
|
channelId: string;
|
|
1789
1528
|
channel: {
|
|
1790
1529
|
workspaceId: string | null;
|
|
@@ -1795,22 +1534,23 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1795
1534
|
metadata: unknown;
|
|
1796
1535
|
title: string | null;
|
|
1797
1536
|
externalSource: string | null;
|
|
1798
|
-
status:
|
|
1799
|
-
channelType:
|
|
1537
|
+
status: "active" | "merged" | "archived";
|
|
1538
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
1800
1539
|
contextObjectType: string | null;
|
|
1801
1540
|
contextObjectId: string | null;
|
|
1802
1541
|
parentChannelId: string | null;
|
|
1803
1542
|
branchedFromMessageId: string | null;
|
|
1804
1543
|
branchPurpose: string | null;
|
|
1805
1544
|
agentId: string;
|
|
1806
|
-
agentType:
|
|
1545
|
+
agentType: string;
|
|
1807
1546
|
agentConfig: unknown;
|
|
1547
|
+
mcpServerIds: string[] | null;
|
|
1808
1548
|
contextSummary: string | null;
|
|
1549
|
+
resultSummary: string | null;
|
|
1550
|
+
mergedIntoStateId: string | null;
|
|
1809
1551
|
externalChannelId: string | null;
|
|
1810
1552
|
mergedAt: Date | null;
|
|
1811
1553
|
};
|
|
1812
|
-
status?: undefined;
|
|
1813
|
-
message?: undefined;
|
|
1814
1554
|
};
|
|
1815
1555
|
meta: object;
|
|
1816
1556
|
}>;
|
|
@@ -1837,7 +1577,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1837
1577
|
topic: string;
|
|
1838
1578
|
visibility?: "open" | "closed" | undefined;
|
|
1839
1579
|
participants?: string[] | undefined;
|
|
1840
|
-
agentType?:
|
|
1580
|
+
agentType?: string | undefined;
|
|
1841
1581
|
title?: string | undefined;
|
|
1842
1582
|
};
|
|
1843
1583
|
output: {
|
|
@@ -1877,11 +1617,19 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1877
1617
|
content: string;
|
|
1878
1618
|
channelId?: string | undefined;
|
|
1879
1619
|
workspaceId?: string | undefined;
|
|
1880
|
-
agentType?:
|
|
1620
|
+
agentType?: string | undefined;
|
|
1881
1621
|
agentHandle?: string | undefined;
|
|
1882
1622
|
parentChannelId?: string | undefined;
|
|
1883
1623
|
};
|
|
1884
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
|
+
} | {
|
|
1885
1633
|
channelId: string;
|
|
1886
1634
|
messageId: `${string}-${string}-${string}-${string}-${string}`;
|
|
1887
1635
|
content: string;
|
|
@@ -1900,17 +1648,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1900
1648
|
metadata: unknown;
|
|
1901
1649
|
title: string | null;
|
|
1902
1650
|
externalSource: string | null;
|
|
1903
|
-
status:
|
|
1904
|
-
channelType:
|
|
1651
|
+
status: "active" | "merged" | "archived";
|
|
1652
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
1905
1653
|
contextObjectType: string | null;
|
|
1906
1654
|
contextObjectId: string | null;
|
|
1907
1655
|
parentChannelId: string | null;
|
|
1908
1656
|
branchedFromMessageId: string | null;
|
|
1909
1657
|
branchPurpose: string | null;
|
|
1910
1658
|
agentId: string;
|
|
1911
|
-
agentType:
|
|
1659
|
+
agentType: string;
|
|
1912
1660
|
agentConfig: unknown;
|
|
1661
|
+
mcpServerIds: string[] | null;
|
|
1913
1662
|
contextSummary: string | null;
|
|
1663
|
+
resultSummary: string | null;
|
|
1664
|
+
mergedIntoStateId: string | null;
|
|
1914
1665
|
externalChannelId: string | null;
|
|
1915
1666
|
mergedAt: Date | null;
|
|
1916
1667
|
} | undefined;
|
|
@@ -1983,13 +1734,14 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1983
1734
|
content: string;
|
|
1984
1735
|
channelId: string;
|
|
1985
1736
|
parentId: string | null;
|
|
1986
|
-
role:
|
|
1987
|
-
authorType:
|
|
1988
|
-
messageCategory:
|
|
1737
|
+
role: "user" | "system" | "assistant";
|
|
1738
|
+
authorType: "human" | "ai_agent" | "external" | "bot";
|
|
1739
|
+
messageCategory: "chat" | "comment" | "system_notification" | "review";
|
|
1989
1740
|
externalSource: string | null;
|
|
1990
1741
|
inboxItemId: string | null;
|
|
1991
1742
|
previousHash: string | null;
|
|
1992
1743
|
hash: string;
|
|
1744
|
+
sessionId: string | null;
|
|
1993
1745
|
}[];
|
|
1994
1746
|
nextCursor: string | undefined;
|
|
1995
1747
|
hasMore: boolean;
|
|
@@ -1999,10 +1751,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
1999
1751
|
listChannels: import("@trpc/server").TRPCQueryProcedure<{
|
|
2000
1752
|
input: {
|
|
2001
1753
|
workspaceId?: string | undefined;
|
|
2002
|
-
channelType?: "
|
|
1754
|
+
channelType?: "ai_thread" | "branch" | "main" | undefined;
|
|
2003
1755
|
limit?: number | undefined;
|
|
2004
1756
|
contextObjectId?: string | undefined;
|
|
2005
|
-
contextObjectType?: "entity" | "
|
|
1757
|
+
contextObjectType?: "entity" | "document" | "view" | undefined;
|
|
2006
1758
|
};
|
|
2007
1759
|
output: {
|
|
2008
1760
|
channels: {
|
|
@@ -2016,17 +1768,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2016
1768
|
metadata: unknown;
|
|
2017
1769
|
title: string | null;
|
|
2018
1770
|
externalSource: string | null;
|
|
2019
|
-
status:
|
|
2020
|
-
channelType:
|
|
1771
|
+
status: "active" | "merged" | "archived";
|
|
1772
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2021
1773
|
contextObjectType: string | null;
|
|
2022
1774
|
contextObjectId: string | null;
|
|
2023
1775
|
parentChannelId: string | null;
|
|
2024
1776
|
branchedFromMessageId: string | null;
|
|
2025
1777
|
branchPurpose: string | null;
|
|
2026
1778
|
agentId: string;
|
|
2027
|
-
agentType:
|
|
1779
|
+
agentType: string;
|
|
2028
1780
|
agentConfig: unknown;
|
|
1781
|
+
mcpServerIds: string[] | null;
|
|
2029
1782
|
contextSummary: string | null;
|
|
1783
|
+
resultSummary: string | null;
|
|
1784
|
+
mergedIntoStateId: string | null;
|
|
2030
1785
|
externalChannelId: string | null;
|
|
2031
1786
|
mergedAt: Date | null;
|
|
2032
1787
|
}[];
|
|
@@ -2036,10 +1791,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2036
1791
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2037
1792
|
input: {
|
|
2038
1793
|
workspaceId?: string | undefined;
|
|
2039
|
-
channelType?: "
|
|
1794
|
+
channelType?: "ai_thread" | "branch" | "main" | undefined;
|
|
2040
1795
|
limit?: number | undefined;
|
|
2041
1796
|
contextObjectId?: string | undefined;
|
|
2042
|
-
contextObjectType?: "entity" | "
|
|
1797
|
+
contextObjectType?: "entity" | "document" | "view" | undefined;
|
|
2043
1798
|
};
|
|
2044
1799
|
output: {
|
|
2045
1800
|
channels: {
|
|
@@ -2053,23 +1808,35 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2053
1808
|
metadata: unknown;
|
|
2054
1809
|
title: string | null;
|
|
2055
1810
|
externalSource: string | null;
|
|
2056
|
-
status:
|
|
2057
|
-
channelType:
|
|
1811
|
+
status: "active" | "merged" | "archived";
|
|
1812
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2058
1813
|
contextObjectType: string | null;
|
|
2059
1814
|
contextObjectId: string | null;
|
|
2060
1815
|
parentChannelId: string | null;
|
|
2061
1816
|
branchedFromMessageId: string | null;
|
|
2062
1817
|
branchPurpose: string | null;
|
|
2063
1818
|
agentId: string;
|
|
2064
|
-
agentType:
|
|
1819
|
+
agentType: string;
|
|
2065
1820
|
agentConfig: unknown;
|
|
1821
|
+
mcpServerIds: string[] | null;
|
|
2066
1822
|
contextSummary: string | null;
|
|
1823
|
+
resultSummary: string | null;
|
|
1824
|
+
mergedIntoStateId: string | null;
|
|
2067
1825
|
externalChannelId: string | null;
|
|
2068
1826
|
mergedAt: Date | null;
|
|
2069
1827
|
}[];
|
|
2070
1828
|
};
|
|
2071
1829
|
meta: object;
|
|
2072
1830
|
}>;
|
|
1831
|
+
getPersonalChannel: import("@trpc/server").TRPCQueryProcedure<{
|
|
1832
|
+
input: {
|
|
1833
|
+
workspaceId: string;
|
|
1834
|
+
};
|
|
1835
|
+
output: {
|
|
1836
|
+
channel: Channel;
|
|
1837
|
+
};
|
|
1838
|
+
meta: object;
|
|
1839
|
+
}>;
|
|
2073
1840
|
getBranches: import("@trpc/server").TRPCQueryProcedure<{
|
|
2074
1841
|
input: {
|
|
2075
1842
|
parentChannelId: string;
|
|
@@ -2084,17 +1851,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2084
1851
|
metadata: unknown;
|
|
2085
1852
|
title: string | null;
|
|
2086
1853
|
externalSource: string | null;
|
|
2087
|
-
status:
|
|
2088
|
-
channelType:
|
|
1854
|
+
status: "active" | "merged" | "archived";
|
|
1855
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2089
1856
|
contextObjectType: string | null;
|
|
2090
1857
|
contextObjectId: string | null;
|
|
2091
1858
|
parentChannelId: string | null;
|
|
2092
1859
|
branchedFromMessageId: string | null;
|
|
2093
1860
|
branchPurpose: string | null;
|
|
2094
1861
|
agentId: string;
|
|
2095
|
-
agentType:
|
|
1862
|
+
agentType: string;
|
|
2096
1863
|
agentConfig: unknown;
|
|
1864
|
+
mcpServerIds: string[] | null;
|
|
2097
1865
|
contextSummary: string | null;
|
|
1866
|
+
resultSummary: string | null;
|
|
1867
|
+
mergedIntoStateId: string | null;
|
|
2098
1868
|
externalChannelId: string | null;
|
|
2099
1869
|
mergedAt: Date | null;
|
|
2100
1870
|
}[];
|
|
@@ -2143,17 +1913,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2143
1913
|
metadata: unknown;
|
|
2144
1914
|
title: string | null;
|
|
2145
1915
|
externalSource: string | null;
|
|
2146
|
-
status:
|
|
2147
|
-
channelType:
|
|
1916
|
+
status: "active" | "merged" | "archived";
|
|
1917
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2148
1918
|
contextObjectType: string | null;
|
|
2149
1919
|
contextObjectId: string | null;
|
|
2150
1920
|
parentChannelId: string | null;
|
|
2151
1921
|
branchedFromMessageId: string | null;
|
|
2152
1922
|
branchPurpose: string | null;
|
|
2153
1923
|
agentId: string;
|
|
2154
|
-
agentType:
|
|
1924
|
+
agentType: string;
|
|
2155
1925
|
agentConfig: unknown;
|
|
1926
|
+
mcpServerIds: string[] | null;
|
|
2156
1927
|
contextSummary: string | null;
|
|
1928
|
+
resultSummary: string | null;
|
|
1929
|
+
mergedIntoStateId: string | null;
|
|
2157
1930
|
externalChannelId: string | null;
|
|
2158
1931
|
mergedAt: Date | null;
|
|
2159
1932
|
};
|
|
@@ -2164,10 +1937,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2164
1937
|
id: string;
|
|
2165
1938
|
createdAt: Date;
|
|
2166
1939
|
channelId: string;
|
|
2167
|
-
objectType:
|
|
1940
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2168
1941
|
objectId: string;
|
|
2169
|
-
relationshipType:
|
|
2170
|
-
conflictStatus:
|
|
1942
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
1943
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
1944
|
+
relevanceScore: number | null;
|
|
2171
1945
|
}[] | undefined;
|
|
2172
1946
|
branchTree: any;
|
|
2173
1947
|
};
|
|
@@ -2178,8 +1952,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2178
1952
|
channelId: string;
|
|
2179
1953
|
title?: string | undefined;
|
|
2180
1954
|
agentId?: string | undefined;
|
|
2181
|
-
agentType?:
|
|
1955
|
+
agentType?: string | undefined;
|
|
2182
1956
|
agentConfig?: Record<string, unknown> | undefined;
|
|
1957
|
+
mcpServerIds?: string[] | null | undefined;
|
|
2183
1958
|
};
|
|
2184
1959
|
output: {
|
|
2185
1960
|
status: string;
|
|
@@ -2187,6 +1962,35 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2187
1962
|
};
|
|
2188
1963
|
meta: object;
|
|
2189
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
|
+
}>;
|
|
2190
1994
|
archiveChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
2191
1995
|
input: {
|
|
2192
1996
|
channelId: string;
|
|
@@ -2212,17 +2016,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2212
2016
|
metadata: unknown;
|
|
2213
2017
|
title: string | null;
|
|
2214
2018
|
externalSource: string | null;
|
|
2215
|
-
status:
|
|
2216
|
-
channelType:
|
|
2019
|
+
status: "active" | "merged" | "archived";
|
|
2020
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2217
2021
|
contextObjectType: string | null;
|
|
2218
2022
|
contextObjectId: string | null;
|
|
2219
2023
|
parentChannelId: string | null;
|
|
2220
2024
|
branchedFromMessageId: string | null;
|
|
2221
2025
|
branchPurpose: string | null;
|
|
2222
2026
|
agentId: string;
|
|
2223
|
-
agentType:
|
|
2027
|
+
agentType: string;
|
|
2224
2028
|
agentConfig: unknown;
|
|
2029
|
+
mcpServerIds: string[] | null;
|
|
2225
2030
|
contextSummary: string | null;
|
|
2031
|
+
resultSummary: string | null;
|
|
2032
|
+
mergedIntoStateId: string | null;
|
|
2226
2033
|
externalChannelId: string | null;
|
|
2227
2034
|
mergedAt: Date | null;
|
|
2228
2035
|
}[];
|
|
@@ -2235,17 +2042,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2235
2042
|
metadata: unknown;
|
|
2236
2043
|
title: string | null;
|
|
2237
2044
|
externalSource: string | null;
|
|
2238
|
-
status:
|
|
2239
|
-
channelType:
|
|
2045
|
+
status: "active" | "merged" | "archived";
|
|
2046
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2240
2047
|
contextObjectType: string | null;
|
|
2241
2048
|
contextObjectId: string | null;
|
|
2242
2049
|
parentChannelId: string | null;
|
|
2243
2050
|
branchedFromMessageId: string | null;
|
|
2244
2051
|
branchPurpose: string | null;
|
|
2245
2052
|
agentId: string;
|
|
2246
|
-
agentType:
|
|
2053
|
+
agentType: string;
|
|
2247
2054
|
agentConfig: unknown;
|
|
2055
|
+
mcpServerIds: string[] | null;
|
|
2248
2056
|
contextSummary: string | null;
|
|
2057
|
+
resultSummary: string | null;
|
|
2058
|
+
mergedIntoStateId: string | null;
|
|
2249
2059
|
externalChannelId: string | null;
|
|
2250
2060
|
mergedAt: Date | null;
|
|
2251
2061
|
}[];
|
|
@@ -2258,17 +2068,20 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2258
2068
|
metadata: unknown;
|
|
2259
2069
|
title: string | null;
|
|
2260
2070
|
externalSource: string | null;
|
|
2261
|
-
status:
|
|
2262
|
-
channelType:
|
|
2071
|
+
status: "active" | "merged" | "archived";
|
|
2072
|
+
channelType: "ai_thread" | "branch" | "thread" | "entity_comments" | "document_review" | "view_discussion" | "direct" | "external_import" | "a2ai";
|
|
2263
2073
|
contextObjectType: string | null;
|
|
2264
2074
|
contextObjectId: string | null;
|
|
2265
2075
|
parentChannelId: string | null;
|
|
2266
2076
|
branchedFromMessageId: string | null;
|
|
2267
2077
|
branchPurpose: string | null;
|
|
2268
2078
|
agentId: string;
|
|
2269
|
-
agentType:
|
|
2079
|
+
agentType: string;
|
|
2270
2080
|
agentConfig: unknown;
|
|
2081
|
+
mcpServerIds: string[] | null;
|
|
2271
2082
|
contextSummary: string | null;
|
|
2083
|
+
resultSummary: string | null;
|
|
2084
|
+
mergedIntoStateId: string | null;
|
|
2272
2085
|
externalChannelId: string | null;
|
|
2273
2086
|
mergedAt: Date | null;
|
|
2274
2087
|
}[];
|
|
@@ -2278,7 +2091,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2278
2091
|
getChannelContext: import("@trpc/server").TRPCQueryProcedure<{
|
|
2279
2092
|
input: {
|
|
2280
2093
|
channelId: string;
|
|
2281
|
-
objectTypes?: ("entity" | "
|
|
2094
|
+
objectTypes?: ("entity" | "document" | "view" | "proposal" | "inbox_item")[] | undefined;
|
|
2282
2095
|
relationshipTypes?: ("created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent")[] | undefined;
|
|
2283
2096
|
};
|
|
2284
2097
|
output: {
|
|
@@ -2289,10 +2102,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2289
2102
|
id: string;
|
|
2290
2103
|
createdAt: Date;
|
|
2291
2104
|
channelId: string;
|
|
2292
|
-
objectType:
|
|
2105
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2293
2106
|
objectId: string;
|
|
2294
|
-
relationshipType:
|
|
2295
|
-
conflictStatus:
|
|
2107
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2108
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2109
|
+
relevanceScore: number | null;
|
|
2296
2110
|
}[];
|
|
2297
2111
|
entities: {
|
|
2298
2112
|
workspaceId: string;
|
|
@@ -2301,10 +2115,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2301
2115
|
id: string;
|
|
2302
2116
|
createdAt: Date;
|
|
2303
2117
|
channelId: string;
|
|
2304
|
-
objectType:
|
|
2118
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2305
2119
|
objectId: string;
|
|
2306
|
-
relationshipType:
|
|
2307
|
-
conflictStatus:
|
|
2120
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2121
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2122
|
+
relevanceScore: number | null;
|
|
2308
2123
|
}[];
|
|
2309
2124
|
documents: {
|
|
2310
2125
|
workspaceId: string;
|
|
@@ -2313,28 +2128,65 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2313
2128
|
id: string;
|
|
2314
2129
|
createdAt: Date;
|
|
2315
2130
|
channelId: string;
|
|
2316
|
-
objectType:
|
|
2131
|
+
objectType: "entity" | "document" | "view" | "proposal" | "inbox_item";
|
|
2317
2132
|
objectId: string;
|
|
2318
|
-
relationshipType:
|
|
2319
|
-
conflictStatus:
|
|
2133
|
+
relationshipType: "created" | "updated" | "used_as_context" | "referenced" | "inherited_from_parent";
|
|
2134
|
+
conflictStatus: "pending" | "none" | "resolved";
|
|
2135
|
+
relevanceScore: number | null;
|
|
2320
2136
|
}[];
|
|
2321
2137
|
};
|
|
2322
2138
|
meta: object;
|
|
2323
2139
|
}>;
|
|
2140
|
+
addContextItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
2141
|
+
input: {
|
|
2142
|
+
channelId: string;
|
|
2143
|
+
objectType: "entity" | "document" | "view";
|
|
2144
|
+
objectId: string;
|
|
2145
|
+
};
|
|
2146
|
+
output: {
|
|
2147
|
+
ok: boolean;
|
|
2148
|
+
};
|
|
2149
|
+
meta: object;
|
|
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
|
+
}>;
|
|
2161
|
+
removeContextItem: import("@trpc/server").TRPCMutationProcedure<{
|
|
2162
|
+
input: {
|
|
2163
|
+
channelId: string;
|
|
2164
|
+
objectId: string;
|
|
2165
|
+
objectType: "entity" | "document" | "view";
|
|
2166
|
+
};
|
|
2167
|
+
output: {
|
|
2168
|
+
ok: boolean;
|
|
2169
|
+
};
|
|
2170
|
+
meta: object;
|
|
2171
|
+
}>;
|
|
2324
2172
|
}>>;
|
|
2325
2173
|
proposals: import("@trpc/server").TRPCBuiltRouter<{
|
|
2326
2174
|
ctx: Context;
|
|
2327
2175
|
meta: object;
|
|
2328
|
-
errorShape:
|
|
2176
|
+
errorShape: {
|
|
2177
|
+
message: string;
|
|
2178
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2179
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2180
|
+
};
|
|
2329
2181
|
transformer: true;
|
|
2330
2182
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2331
2183
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
2332
2184
|
input: {
|
|
2333
2185
|
workspaceId?: string | undefined;
|
|
2334
|
-
targetType?: "entity" | "
|
|
2186
|
+
targetType?: "entity" | "document" | "view" | "profile" | "whiteboard" | undefined;
|
|
2335
2187
|
targetId?: string | undefined;
|
|
2336
2188
|
threadId?: string | undefined;
|
|
2337
|
-
status?: "pending" | "
|
|
2189
|
+
status?: "pending" | "rejected" | "validated" | "all" | undefined;
|
|
2338
2190
|
limit?: number | undefined;
|
|
2339
2191
|
};
|
|
2340
2192
|
output: {
|
|
@@ -2345,7 +2197,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2345
2197
|
data: unknown;
|
|
2346
2198
|
updatedAt: Date;
|
|
2347
2199
|
createdAt: Date;
|
|
2348
|
-
status:
|
|
2200
|
+
status: "approved" | "pending" | "rejected" | "auto_approved";
|
|
2349
2201
|
expiresAt: Date | null;
|
|
2350
2202
|
createdBy: string | null;
|
|
2351
2203
|
threadId: string | null;
|
|
@@ -2408,7 +2260,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2408
2260
|
}>;
|
|
2409
2261
|
submit: import("@trpc/server").TRPCMutationProcedure<{
|
|
2410
2262
|
input: {
|
|
2411
|
-
targetType: "workspace" | "entity" | "
|
|
2263
|
+
targetType: "workspace" | "entity" | "document" | "view" | "relation" | "profile";
|
|
2412
2264
|
changeType: "create" | "update" | "delete";
|
|
2413
2265
|
data: Record<string, any>;
|
|
2414
2266
|
targetId?: string | undefined;
|
|
@@ -2438,13 +2290,21 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2438
2290
|
suggestions: import("@trpc/server").TRPCBuiltRouter<{
|
|
2439
2291
|
ctx: Context;
|
|
2440
2292
|
meta: object;
|
|
2441
|
-
errorShape:
|
|
2293
|
+
errorShape: {
|
|
2294
|
+
message: string;
|
|
2295
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2296
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2297
|
+
};
|
|
2442
2298
|
transformer: true;
|
|
2443
2299
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{}>>;
|
|
2444
2300
|
system: import("@trpc/server").TRPCBuiltRouter<{
|
|
2445
2301
|
ctx: Context;
|
|
2446
2302
|
meta: object;
|
|
2447
|
-
errorShape:
|
|
2303
|
+
errorShape: {
|
|
2304
|
+
message: string;
|
|
2305
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2306
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2307
|
+
};
|
|
2448
2308
|
transformer: true;
|
|
2449
2309
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2450
2310
|
getCapabilities: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2510,7 +2370,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2510
2370
|
input: {
|
|
2511
2371
|
type: string;
|
|
2512
2372
|
data: Record<string, unknown>;
|
|
2513
|
-
userId
|
|
2373
|
+
userId?: string | undefined;
|
|
2514
2374
|
subjectId?: string | undefined;
|
|
2515
2375
|
source?: "system" | "sync" | "api" | "automation" | "migration" | undefined;
|
|
2516
2376
|
correlationId?: string | undefined;
|
|
@@ -2649,7 +2509,6 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2649
2509
|
input: {
|
|
2650
2510
|
toolName: string;
|
|
2651
2511
|
parameters: Record<string, any>;
|
|
2652
|
-
userId: string;
|
|
2653
2512
|
threadId?: string | undefined;
|
|
2654
2513
|
};
|
|
2655
2514
|
output: {
|
|
@@ -2729,7 +2588,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2729
2588
|
}>;
|
|
2730
2589
|
listUsers: import("@trpc/server").TRPCQueryProcedure<{
|
|
2731
2590
|
input: {
|
|
2732
|
-
type?: "
|
|
2591
|
+
type?: "human" | "agent" | "all" | undefined;
|
|
2733
2592
|
limit?: number | undefined;
|
|
2734
2593
|
offset?: number | undefined;
|
|
2735
2594
|
};
|
|
@@ -2756,7 +2615,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2756
2615
|
hub: import("@trpc/server").TRPCBuiltRouter<{
|
|
2757
2616
|
ctx: Context;
|
|
2758
2617
|
meta: object;
|
|
2759
|
-
errorShape:
|
|
2618
|
+
errorShape: {
|
|
2619
|
+
message: string;
|
|
2620
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2621
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2622
|
+
};
|
|
2760
2623
|
transformer: true;
|
|
2761
2624
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2762
2625
|
generateAccessToken: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -2821,7 +2684,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2821
2684
|
apiKeys: import("@trpc/server").TRPCBuiltRouter<{
|
|
2822
2685
|
ctx: Context;
|
|
2823
2686
|
meta: object;
|
|
2824
|
-
errorShape:
|
|
2687
|
+
errorShape: {
|
|
2688
|
+
message: string;
|
|
2689
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2690
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2691
|
+
};
|
|
2825
2692
|
transformer: true;
|
|
2826
2693
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2827
2694
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -2952,7 +2819,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
2952
2819
|
health: import("@trpc/server").TRPCBuiltRouter<{
|
|
2953
2820
|
ctx: Context;
|
|
2954
2821
|
meta: object;
|
|
2955
|
-
errorShape:
|
|
2822
|
+
errorShape: {
|
|
2823
|
+
message: string;
|
|
2824
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2825
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2826
|
+
};
|
|
2956
2827
|
transformer: true;
|
|
2957
2828
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
2958
2829
|
alive: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -3011,7 +2882,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3011
2882
|
integrations: import("@trpc/server").TRPCBuiltRouter<{
|
|
3012
2883
|
ctx: Context;
|
|
3013
2884
|
meta: object;
|
|
3014
|
-
errorShape:
|
|
2885
|
+
errorShape: {
|
|
2886
|
+
message: string;
|
|
2887
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2888
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2889
|
+
};
|
|
3015
2890
|
transformer: true;
|
|
3016
2891
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3017
2892
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -3087,7 +2962,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3087
2962
|
documents: import("@trpc/server").TRPCBuiltRouter<{
|
|
3088
2963
|
ctx: Context;
|
|
3089
2964
|
meta: object;
|
|
3090
|
-
errorShape:
|
|
2965
|
+
errorShape: {
|
|
2966
|
+
message: string;
|
|
2967
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
2968
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
2969
|
+
};
|
|
3091
2970
|
transformer: true;
|
|
3092
2971
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3093
2972
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -3295,7 +3174,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3295
3174
|
content: import("@trpc/server").TRPCBuiltRouter<{
|
|
3296
3175
|
ctx: Context;
|
|
3297
3176
|
meta: object;
|
|
3298
|
-
errorShape:
|
|
3177
|
+
errorShape: {
|
|
3178
|
+
message: string;
|
|
3179
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
3180
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
3181
|
+
};
|
|
3299
3182
|
transformer: true;
|
|
3300
3183
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3301
3184
|
createFromText: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -3334,7 +3217,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3334
3217
|
storage: import("@trpc/server").TRPCBuiltRouter<{
|
|
3335
3218
|
ctx: Context;
|
|
3336
3219
|
meta: object;
|
|
3337
|
-
errorShape:
|
|
3220
|
+
errorShape: {
|
|
3221
|
+
message: string;
|
|
3222
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
3223
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
3224
|
+
};
|
|
3338
3225
|
transformer: true;
|
|
3339
3226
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3340
3227
|
listBuckets: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -3448,7 +3335,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3448
3335
|
notifications: import("@trpc/server").TRPCBuiltRouter<{
|
|
3449
3336
|
ctx: Context;
|
|
3450
3337
|
meta: object;
|
|
3451
|
-
errorShape:
|
|
3338
|
+
errorShape: {
|
|
3339
|
+
message: string;
|
|
3340
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
3341
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
3342
|
+
};
|
|
3452
3343
|
transformer: true;
|
|
3453
3344
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3454
3345
|
ingest: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -3486,10 +3377,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3486
3377
|
userId: string;
|
|
3487
3378
|
id: string;
|
|
3488
3379
|
data: unknown;
|
|
3380
|
+
type: string;
|
|
3489
3381
|
updatedAt: Date;
|
|
3490
3382
|
createdAt: Date;
|
|
3491
3383
|
timestamp: Date;
|
|
3492
|
-
type: string;
|
|
3493
3384
|
title: string;
|
|
3494
3385
|
preview: string | null;
|
|
3495
3386
|
status: string | null;
|
|
@@ -3540,7 +3431,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3540
3431
|
intelligenceRegistry: import("@trpc/server").TRPCBuiltRouter<{
|
|
3541
3432
|
ctx: Context;
|
|
3542
3433
|
meta: object;
|
|
3543
|
-
errorShape:
|
|
3434
|
+
errorShape: {
|
|
3435
|
+
message: string;
|
|
3436
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
3437
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
3438
|
+
};
|
|
3544
3439
|
transformer: true;
|
|
3545
3440
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3546
3441
|
register: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -3558,12 +3453,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3558
3453
|
output: {
|
|
3559
3454
|
name: string;
|
|
3560
3455
|
id: string;
|
|
3456
|
+
description: string | null;
|
|
3561
3457
|
updatedAt: Date;
|
|
3562
3458
|
createdAt: Date;
|
|
3563
3459
|
metadata: Record<string, unknown> | null;
|
|
3564
3460
|
version: string | null;
|
|
3565
3461
|
status: string;
|
|
3566
|
-
description: string | null;
|
|
3567
3462
|
capabilities: string[];
|
|
3568
3463
|
serviceId: string;
|
|
3569
3464
|
webhookUrl: string;
|
|
@@ -3604,12 +3499,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3604
3499
|
output: {
|
|
3605
3500
|
name: string;
|
|
3606
3501
|
id: string;
|
|
3502
|
+
description: string | null;
|
|
3607
3503
|
updatedAt: Date;
|
|
3608
3504
|
createdAt: Date;
|
|
3609
3505
|
metadata: Record<string, unknown> | null;
|
|
3610
3506
|
version: string | null;
|
|
3611
3507
|
status: string;
|
|
3612
|
-
description: string | null;
|
|
3613
3508
|
capabilities: string[];
|
|
3614
3509
|
serviceId: string;
|
|
3615
3510
|
webhookUrl: string;
|
|
@@ -3831,7 +3726,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3831
3726
|
intelligence: import("@trpc/server").TRPCBuiltRouter<{
|
|
3832
3727
|
ctx: Context;
|
|
3833
3728
|
meta: object;
|
|
3834
|
-
errorShape:
|
|
3729
|
+
errorShape: {
|
|
3730
|
+
message: string;
|
|
3731
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
3732
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
3733
|
+
};
|
|
3835
3734
|
transformer: true;
|
|
3836
3735
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
3837
3736
|
listCommands: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -3854,7 +3753,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3854
3753
|
allowedEntityTypes: string[] | null;
|
|
3855
3754
|
maxEntitiesCreatedPerRun: number | null;
|
|
3856
3755
|
canCreateViews: boolean;
|
|
3857
|
-
outputMode: "
|
|
3756
|
+
outputMode: "view" | "proposal" | "text";
|
|
3858
3757
|
permissionsProfile: "read_only" | "propose_writes";
|
|
3859
3758
|
sharedScope: "workspace" | "user";
|
|
3860
3759
|
}[];
|
|
@@ -3880,7 +3779,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3880
3779
|
allowedEntityTypes: string[] | null;
|
|
3881
3780
|
maxEntitiesCreatedPerRun: number | null;
|
|
3882
3781
|
canCreateViews: boolean;
|
|
3883
|
-
outputMode: "
|
|
3782
|
+
outputMode: "view" | "proposal" | "text";
|
|
3884
3783
|
permissionsProfile: "read_only" | "propose_writes";
|
|
3885
3784
|
sharedScope: "workspace" | "user";
|
|
3886
3785
|
};
|
|
@@ -3895,7 +3794,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3895
3794
|
allowedEntityTypes?: string[] | undefined;
|
|
3896
3795
|
maxEntitiesCreatedPerRun?: number | undefined;
|
|
3897
3796
|
canCreateViews?: boolean | undefined;
|
|
3898
|
-
outputMode?: "
|
|
3797
|
+
outputMode?: "view" | "proposal" | "text" | undefined;
|
|
3899
3798
|
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
3900
3799
|
sharedScope?: "workspace" | "user" | undefined;
|
|
3901
3800
|
};
|
|
@@ -3914,7 +3813,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3914
3813
|
allowedEntityTypes: string[] | null;
|
|
3915
3814
|
maxEntitiesCreatedPerRun: number | null;
|
|
3916
3815
|
canCreateViews: boolean;
|
|
3917
|
-
outputMode: "
|
|
3816
|
+
outputMode: "view" | "proposal" | "text";
|
|
3918
3817
|
permissionsProfile: "read_only" | "propose_writes";
|
|
3919
3818
|
sharedScope: "workspace" | "user";
|
|
3920
3819
|
};
|
|
@@ -3930,7 +3829,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3930
3829
|
allowedEntityTypes?: string[] | undefined;
|
|
3931
3830
|
maxEntitiesCreatedPerRun?: number | null | undefined;
|
|
3932
3831
|
canCreateViews?: boolean | undefined;
|
|
3933
|
-
outputMode?: "
|
|
3832
|
+
outputMode?: "view" | "proposal" | "text" | undefined;
|
|
3934
3833
|
permissionsProfile?: "read_only" | "propose_writes" | undefined;
|
|
3935
3834
|
sharedScope?: "workspace" | "user" | undefined;
|
|
3936
3835
|
};
|
|
@@ -3947,7 +3846,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
3947
3846
|
allowedEntityTypes: string[] | null;
|
|
3948
3847
|
maxEntitiesCreatedPerRun: number | null;
|
|
3949
3848
|
canCreateViews: boolean;
|
|
3950
|
-
outputMode: "
|
|
3849
|
+
outputMode: "view" | "proposal" | "text";
|
|
3951
3850
|
permissionsProfile: "read_only" | "propose_writes";
|
|
3952
3851
|
sharedScope: "workspace" | "user";
|
|
3953
3852
|
createdAt: Date;
|
|
@@ -4050,6 +3949,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4050
3949
|
};
|
|
4051
3950
|
meta: object;
|
|
4052
3951
|
}>;
|
|
3952
|
+
listSpecialisations: import("@trpc/server").TRPCQueryProcedure<{
|
|
3953
|
+
input: void;
|
|
3954
|
+
output: {
|
|
3955
|
+
specialisations: unknown[];
|
|
3956
|
+
};
|
|
3957
|
+
meta: object;
|
|
3958
|
+
}>;
|
|
4053
3959
|
agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
|
|
4054
3960
|
input: void;
|
|
4055
3961
|
output: {
|
|
@@ -4127,7 +4033,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4127
4033
|
}>;
|
|
4128
4034
|
proposals: import("@trpc/server").TRPCQueryProcedure<{
|
|
4129
4035
|
input: {
|
|
4130
|
-
status?: "approved" | "
|
|
4036
|
+
status?: "approved" | "pending" | "denied" | undefined;
|
|
4131
4037
|
};
|
|
4132
4038
|
output: {
|
|
4133
4039
|
proposals: any[];
|
|
@@ -4152,6 +4058,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4152
4058
|
};
|
|
4153
4059
|
meta: object;
|
|
4154
4060
|
}>;
|
|
4061
|
+
relayToService: import("@trpc/server").TRPCMutationProcedure<{
|
|
4062
|
+
input: {
|
|
4063
|
+
serviceId: string;
|
|
4064
|
+
command: "configure_channel" | "install_skill" | "list_channels";
|
|
4065
|
+
payload?: Record<string, unknown> | undefined;
|
|
4066
|
+
};
|
|
4067
|
+
output: {
|
|
4068
|
+
success: boolean;
|
|
4069
|
+
pending: boolean;
|
|
4070
|
+
data: any;
|
|
4071
|
+
message?: undefined;
|
|
4072
|
+
} | {
|
|
4073
|
+
success: boolean;
|
|
4074
|
+
pending: boolean;
|
|
4075
|
+
message: string;
|
|
4076
|
+
data?: undefined;
|
|
4077
|
+
};
|
|
4078
|
+
meta: object;
|
|
4079
|
+
}>;
|
|
4155
4080
|
startAIChannel: import("@trpc/server").TRPCMutationProcedure<{
|
|
4156
4081
|
input: {
|
|
4157
4082
|
topic: string;
|
|
@@ -4172,11 +4097,72 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4172
4097
|
output: any;
|
|
4173
4098
|
meta: object;
|
|
4174
4099
|
}>;
|
|
4100
|
+
getServiceCommands: import("@trpc/server").TRPCQueryProcedure<{
|
|
4101
|
+
input: void;
|
|
4102
|
+
output: {
|
|
4103
|
+
commands: Record<string, string>;
|
|
4104
|
+
};
|
|
4105
|
+
meta: object;
|
|
4106
|
+
}>;
|
|
4107
|
+
provisionService: import("@trpc/server").TRPCMutationProcedure<{
|
|
4108
|
+
input: {
|
|
4109
|
+
serviceType: "openclaw";
|
|
4110
|
+
podUrlOverride?: string | undefined;
|
|
4111
|
+
};
|
|
4112
|
+
output: {
|
|
4113
|
+
alreadyProvisioned: boolean;
|
|
4114
|
+
agentUserId: string;
|
|
4115
|
+
dockerRunCommand: string | null;
|
|
4116
|
+
env: {
|
|
4117
|
+
SYNAP_POD_URL: string;
|
|
4118
|
+
SYNAP_HUB_API_KEY: string;
|
|
4119
|
+
SYNAP_WORKSPACE_ID: string;
|
|
4120
|
+
SYNAP_AGENT_USER_ID: string;
|
|
4121
|
+
};
|
|
4122
|
+
};
|
|
4123
|
+
meta: object;
|
|
4124
|
+
}>;
|
|
4125
|
+
provisionMcpService: import("@trpc/server").TRPCMutationProcedure<{
|
|
4126
|
+
input: {
|
|
4127
|
+
serviceType: "firecrawl";
|
|
4128
|
+
};
|
|
4129
|
+
output: {
|
|
4130
|
+
alreadyProvisioned: boolean;
|
|
4131
|
+
dockerRunCommand: string;
|
|
4132
|
+
};
|
|
4133
|
+
meta: object;
|
|
4134
|
+
}>;
|
|
4135
|
+
getLatestMemoryState: import("@trpc/server").TRPCQueryProcedure<{
|
|
4136
|
+
input: void;
|
|
4137
|
+
output: {
|
|
4138
|
+
id: string;
|
|
4139
|
+
version: number;
|
|
4140
|
+
compactionModel: string | null;
|
|
4141
|
+
createdAt: Date;
|
|
4142
|
+
blocks: {
|
|
4143
|
+
identity: string;
|
|
4144
|
+
userModel: string;
|
|
4145
|
+
continuity: string;
|
|
4146
|
+
activeGoals: string;
|
|
4147
|
+
entityContext: string;
|
|
4148
|
+
};
|
|
4149
|
+
metrics: {
|
|
4150
|
+
rawTokenCount: number | null;
|
|
4151
|
+
compressedTokenCount: number | null;
|
|
4152
|
+
compressionRatio: number | null;
|
|
4153
|
+
};
|
|
4154
|
+
} | null;
|
|
4155
|
+
meta: object;
|
|
4156
|
+
}>;
|
|
4175
4157
|
}>>;
|
|
4176
4158
|
capabilities: import("@trpc/server").TRPCBuiltRouter<{
|
|
4177
4159
|
ctx: Context;
|
|
4178
4160
|
meta: object;
|
|
4179
|
-
errorShape:
|
|
4161
|
+
errorShape: {
|
|
4162
|
+
message: string;
|
|
4163
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4164
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
4165
|
+
};
|
|
4180
4166
|
transformer: true;
|
|
4181
4167
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4182
4168
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4246,13 +4232,17 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4246
4232
|
search: import("@trpc/server").TRPCBuiltRouter<{
|
|
4247
4233
|
ctx: Context;
|
|
4248
4234
|
meta: object;
|
|
4249
|
-
errorShape:
|
|
4235
|
+
errorShape: {
|
|
4236
|
+
message: string;
|
|
4237
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4238
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
4239
|
+
};
|
|
4250
4240
|
transformer: true;
|
|
4251
4241
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4252
4242
|
entities: import("@trpc/server").TRPCQueryProcedure<{
|
|
4253
4243
|
input: {
|
|
4254
4244
|
query: string;
|
|
4255
|
-
type?: "note" | "
|
|
4245
|
+
type?: "note" | "document" | "task" | "project" | undefined;
|
|
4256
4246
|
limit?: number | undefined;
|
|
4257
4247
|
};
|
|
4258
4248
|
output: {
|
|
@@ -4289,14 +4279,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4289
4279
|
workspaceId: string | null;
|
|
4290
4280
|
userId: string;
|
|
4291
4281
|
id: string;
|
|
4282
|
+
type: string;
|
|
4292
4283
|
updatedAt: Date;
|
|
4293
4284
|
createdAt: Date;
|
|
4294
|
-
type: string;
|
|
4295
4285
|
profileId: string | null;
|
|
4296
4286
|
title: string | null;
|
|
4297
4287
|
preview: string | null;
|
|
4298
4288
|
documentId: string | null;
|
|
4299
4289
|
properties: unknown;
|
|
4290
|
+
systemData: unknown;
|
|
4300
4291
|
version: number;
|
|
4301
4292
|
deletedAt: Date | null;
|
|
4302
4293
|
}[];
|
|
@@ -4317,7 +4308,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4317
4308
|
relations: import("@trpc/server").TRPCBuiltRouter<{
|
|
4318
4309
|
ctx: Context;
|
|
4319
4310
|
meta: object;
|
|
4320
|
-
errorShape:
|
|
4311
|
+
errorShape: {
|
|
4312
|
+
message: string;
|
|
4313
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4314
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
4315
|
+
};
|
|
4321
4316
|
transformer: true;
|
|
4322
4317
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4323
4318
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4331,8 +4326,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4331
4326
|
workspaceId: string;
|
|
4332
4327
|
userId: string;
|
|
4333
4328
|
id: string;
|
|
4334
|
-
createdAt: Date;
|
|
4335
4329
|
type: string;
|
|
4330
|
+
createdAt: Date;
|
|
4336
4331
|
metadata: unknown;
|
|
4337
4332
|
sourceEntityId: string;
|
|
4338
4333
|
targetEntityId: string;
|
|
@@ -4366,8 +4361,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4366
4361
|
workspaceId: string;
|
|
4367
4362
|
userId: string;
|
|
4368
4363
|
id: string;
|
|
4369
|
-
createdAt: Date;
|
|
4370
4364
|
type: string;
|
|
4365
|
+
createdAt: Date;
|
|
4371
4366
|
metadata: unknown;
|
|
4372
4367
|
sourceEntityId: string;
|
|
4373
4368
|
targetEntityId: string;
|
|
@@ -4387,14 +4382,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4387
4382
|
workspaceId: string | null;
|
|
4388
4383
|
userId: string;
|
|
4389
4384
|
id: string;
|
|
4385
|
+
type: string;
|
|
4390
4386
|
updatedAt: Date;
|
|
4391
4387
|
createdAt: Date;
|
|
4392
|
-
type: string;
|
|
4393
4388
|
profileId: string | null;
|
|
4394
4389
|
title: string | null;
|
|
4395
4390
|
preview: string | null;
|
|
4396
4391
|
documentId: string | null;
|
|
4397
4392
|
properties: unknown;
|
|
4393
|
+
systemData: unknown;
|
|
4398
4394
|
version: number;
|
|
4399
4395
|
deletedAt: Date | null;
|
|
4400
4396
|
}[];
|
|
@@ -4444,14 +4440,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4444
4440
|
workspaceId: string | null;
|
|
4445
4441
|
userId: string;
|
|
4446
4442
|
id: string;
|
|
4443
|
+
type: string;
|
|
4447
4444
|
updatedAt: Date;
|
|
4448
4445
|
createdAt: Date;
|
|
4449
|
-
type: string;
|
|
4450
4446
|
profileId: string | null;
|
|
4451
4447
|
title: string | null;
|
|
4452
4448
|
preview: string | null;
|
|
4453
4449
|
documentId: string | null;
|
|
4454
4450
|
properties: unknown;
|
|
4451
|
+
systemData: unknown;
|
|
4455
4452
|
version: number;
|
|
4456
4453
|
deletedAt: Date | null;
|
|
4457
4454
|
} | null;
|
|
@@ -4492,7 +4489,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4492
4489
|
graph: import("@trpc/server").TRPCBuiltRouter<{
|
|
4493
4490
|
ctx: Context;
|
|
4494
4491
|
meta: object;
|
|
4495
|
-
errorShape:
|
|
4492
|
+
errorShape: {
|
|
4493
|
+
message: string;
|
|
4494
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4495
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
4496
|
+
};
|
|
4496
4497
|
transformer: true;
|
|
4497
4498
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4498
4499
|
getNode: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -4507,14 +4508,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4507
4508
|
workspaceId: string | null;
|
|
4508
4509
|
userId: string;
|
|
4509
4510
|
id: string;
|
|
4511
|
+
type: string;
|
|
4510
4512
|
updatedAt: Date;
|
|
4511
4513
|
createdAt: Date;
|
|
4512
|
-
type: string;
|
|
4513
4514
|
profileId: string | null;
|
|
4514
4515
|
title: string | null;
|
|
4515
4516
|
preview: string | null;
|
|
4516
4517
|
documentId: string | null;
|
|
4517
4518
|
properties: unknown;
|
|
4519
|
+
systemData: unknown;
|
|
4518
4520
|
version: number;
|
|
4519
4521
|
deletedAt: Date | null;
|
|
4520
4522
|
};
|
|
@@ -4526,14 +4528,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4526
4528
|
workspaceId: string | null;
|
|
4527
4529
|
userId: string;
|
|
4528
4530
|
id: string;
|
|
4531
|
+
type: string;
|
|
4529
4532
|
updatedAt: Date;
|
|
4530
4533
|
createdAt: Date;
|
|
4531
|
-
type: string;
|
|
4532
4534
|
profileId: string | null;
|
|
4533
4535
|
title: string | null;
|
|
4534
4536
|
preview: string | null;
|
|
4535
4537
|
documentId: string | null;
|
|
4536
4538
|
properties: unknown;
|
|
4539
|
+
systemData: unknown;
|
|
4537
4540
|
version: number;
|
|
4538
4541
|
deletedAt: Date | null;
|
|
4539
4542
|
};
|
|
@@ -4541,8 +4544,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4541
4544
|
workspaceId: string;
|
|
4542
4545
|
userId: string;
|
|
4543
4546
|
id: string;
|
|
4544
|
-
createdAt: Date;
|
|
4545
4547
|
type: string;
|
|
4548
|
+
createdAt: Date;
|
|
4546
4549
|
metadata: unknown;
|
|
4547
4550
|
sourceEntityId: string;
|
|
4548
4551
|
targetEntityId: string;
|
|
@@ -4568,14 +4571,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4568
4571
|
workspaceId: string | null;
|
|
4569
4572
|
userId: string;
|
|
4570
4573
|
id: string;
|
|
4574
|
+
type: string;
|
|
4571
4575
|
updatedAt: Date;
|
|
4572
4576
|
createdAt: Date;
|
|
4573
|
-
type: string;
|
|
4574
4577
|
profileId: string | null;
|
|
4575
4578
|
title: string | null;
|
|
4576
4579
|
preview: string | null;
|
|
4577
4580
|
documentId: string | null;
|
|
4578
4581
|
properties: unknown;
|
|
4582
|
+
systemData: unknown;
|
|
4579
4583
|
version: number;
|
|
4580
4584
|
deletedAt: Date | null;
|
|
4581
4585
|
}[];
|
|
@@ -4583,8 +4587,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4583
4587
|
workspaceId: string;
|
|
4584
4588
|
userId: string;
|
|
4585
4589
|
id: string;
|
|
4586
|
-
createdAt: Date;
|
|
4587
4590
|
type: string;
|
|
4591
|
+
createdAt: Date;
|
|
4588
4592
|
metadata: unknown;
|
|
4589
4593
|
sourceEntityId: string;
|
|
4590
4594
|
targetEntityId: string;
|
|
@@ -4624,7 +4628,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4624
4628
|
workspaces: import("@trpc/server").TRPCBuiltRouter<{
|
|
4625
4629
|
ctx: Context;
|
|
4626
4630
|
meta: object;
|
|
4627
|
-
errorShape:
|
|
4631
|
+
errorShape: {
|
|
4632
|
+
message: string;
|
|
4633
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
4634
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
4635
|
+
};
|
|
4628
4636
|
transformer: true;
|
|
4629
4637
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4630
4638
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -4654,10 +4662,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4654
4662
|
joinedAt: Date;
|
|
4655
4663
|
name: string;
|
|
4656
4664
|
id: string;
|
|
4657
|
-
updatedAt: Date;
|
|
4658
|
-
createdAt: Date;
|
|
4659
4665
|
type: string;
|
|
4660
4666
|
description: string | null;
|
|
4667
|
+
updatedAt: Date;
|
|
4668
|
+
createdAt: Date;
|
|
4661
4669
|
settings: WorkspaceSettings;
|
|
4662
4670
|
ownerId: string;
|
|
4663
4671
|
subscriptionTier: string | null;
|
|
@@ -4674,10 +4682,10 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4674
4682
|
role: string;
|
|
4675
4683
|
name: string;
|
|
4676
4684
|
id: string;
|
|
4677
|
-
updatedAt: Date;
|
|
4678
|
-
createdAt: Date;
|
|
4679
4685
|
type: string;
|
|
4680
4686
|
description: string | null;
|
|
4687
|
+
updatedAt: Date;
|
|
4688
|
+
createdAt: Date;
|
|
4681
4689
|
settings: WorkspaceSettings;
|
|
4682
4690
|
ownerId: string;
|
|
4683
4691
|
subscriptionTier: string | null;
|
|
@@ -4829,8 +4837,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4829
4837
|
createdAt: Date;
|
|
4830
4838
|
role: string;
|
|
4831
4839
|
expiresAt: Date;
|
|
4832
|
-
invitedBy: string;
|
|
4833
4840
|
token: string;
|
|
4841
|
+
invitedBy: string;
|
|
4834
4842
|
};
|
|
4835
4843
|
meta: object;
|
|
4836
4844
|
}>;
|
|
@@ -4845,8 +4853,8 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4845
4853
|
createdAt: Date;
|
|
4846
4854
|
role: string;
|
|
4847
4855
|
expiresAt: Date;
|
|
4848
|
-
invitedBy: string;
|
|
4849
4856
|
token: string;
|
|
4857
|
+
invitedBy: string;
|
|
4850
4858
|
}[];
|
|
4851
4859
|
meta: object;
|
|
4852
4860
|
}>;
|
|
@@ -4883,6 +4891,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4883
4891
|
color?: string | undefined;
|
|
4884
4892
|
description?: string | undefined;
|
|
4885
4893
|
scope?: string | undefined;
|
|
4894
|
+
semanticSlug?: string | null | undefined;
|
|
4886
4895
|
properties?: {
|
|
4887
4896
|
slug: string;
|
|
4888
4897
|
valueType: string;
|
|
@@ -4891,15 +4900,52 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4891
4900
|
placeholder?: string | undefined;
|
|
4892
4901
|
enumValues?: string[] | undefined;
|
|
4893
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;
|
|
4894
4923
|
}[] | undefined;
|
|
4895
4924
|
}[] | undefined;
|
|
4896
4925
|
views?: {
|
|
4897
|
-
name: string;
|
|
4898
4926
|
type: string;
|
|
4927
|
+
name?: string | undefined;
|
|
4928
|
+
displayName?: string | undefined;
|
|
4929
|
+
slug?: string | undefined;
|
|
4899
4930
|
scopeProfileSlug?: string | undefined;
|
|
4900
4931
|
scopeProfileSlugs?: string[] | undefined;
|
|
4901
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;
|
|
4902
4947
|
}[] | undefined;
|
|
4948
|
+
bentoViewName?: string | undefined;
|
|
4903
4949
|
bentoLayout?: {
|
|
4904
4950
|
widgetType: string;
|
|
4905
4951
|
pos: {
|
|
@@ -4927,6 +4973,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4927
4973
|
properties?: Record<string, unknown> | undefined;
|
|
4928
4974
|
content?: string | undefined;
|
|
4929
4975
|
}[] | undefined;
|
|
4976
|
+
seedEntities?: {
|
|
4977
|
+
profileSlug: string;
|
|
4978
|
+
title: string;
|
|
4979
|
+
properties?: Record<string, unknown> | undefined;
|
|
4980
|
+
content?: string | undefined;
|
|
4981
|
+
}[] | undefined;
|
|
4930
4982
|
suggestedRelations?: {
|
|
4931
4983
|
sourceRef: string;
|
|
4932
4984
|
targetRef: string;
|
|
@@ -4946,14 +4998,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4946
4998
|
defaultView?: string | undefined;
|
|
4947
4999
|
theme?: string | undefined;
|
|
4948
5000
|
sidebarItems?: {
|
|
4949
|
-
kind: "view" | "
|
|
5001
|
+
kind: "external" | "view" | "profile" | "app";
|
|
4950
5002
|
appId?: string | undefined;
|
|
4951
5003
|
viewName?: string | undefined;
|
|
5004
|
+
profileSlug?: string | undefined;
|
|
4952
5005
|
url?: string | undefined;
|
|
4953
5006
|
label?: string | undefined;
|
|
4954
5007
|
icon?: string | undefined;
|
|
4955
5008
|
}[] | undefined;
|
|
4956
5009
|
} | undefined;
|
|
5010
|
+
profileEntityBentoTemplates?: Record<string, {
|
|
5011
|
+
blocks: Record<string, unknown>[];
|
|
5012
|
+
}> | undefined;
|
|
4957
5013
|
entityLinks?: {
|
|
4958
5014
|
sourceProfileSlug: string;
|
|
4959
5015
|
targetProfileSlug: string;
|
|
@@ -4963,22 +5019,31 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4963
5019
|
};
|
|
4964
5020
|
packageSlug?: string | undefined;
|
|
4965
5021
|
packageVersion?: string | undefined;
|
|
5022
|
+
templateId?: string | undefined;
|
|
5023
|
+
templateName?: string | undefined;
|
|
4966
5024
|
workspaceName?: string | undefined;
|
|
5025
|
+
workspaceType?: "project" | "agent" | "personal" | "operational" | undefined;
|
|
5026
|
+
linkedAgentId?: string | undefined;
|
|
5027
|
+
workspaceId?: string | undefined;
|
|
4967
5028
|
};
|
|
4968
5029
|
output: {
|
|
4969
5030
|
status: "created";
|
|
4970
5031
|
workspaceId: string;
|
|
4971
5032
|
profileIds: string[];
|
|
4972
5033
|
viewIds: string[];
|
|
4973
|
-
entityIds
|
|
4974
|
-
}
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
5034
|
+
entityIds?: undefined;
|
|
5035
|
+
} | {
|
|
5036
|
+
status: "created" | "pending";
|
|
5037
|
+
workspaceId: string;
|
|
5038
|
+
profileIds?: undefined;
|
|
5039
|
+
viewIds?: undefined;
|
|
5040
|
+
entityIds?: undefined;
|
|
5041
|
+
} | {
|
|
5042
|
+
status: "created";
|
|
4980
5043
|
workspaceId: string;
|
|
4981
|
-
|
|
5044
|
+
profileIds: string[];
|
|
5045
|
+
viewIds: string[];
|
|
5046
|
+
entityIds: string[];
|
|
4982
5047
|
};
|
|
4983
5048
|
meta: object;
|
|
4984
5049
|
}>;
|
|
@@ -4988,6 +5053,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4988
5053
|
definition?: unknown;
|
|
4989
5054
|
};
|
|
4990
5055
|
output: {
|
|
5056
|
+
status: "existing";
|
|
5057
|
+
workspaceId: string;
|
|
5058
|
+
} | {
|
|
4991
5059
|
status: "created";
|
|
4992
5060
|
workspaceId: string;
|
|
4993
5061
|
};
|
|
@@ -5040,7 +5108,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5040
5108
|
views: import("@trpc/server").TRPCBuiltRouter<{
|
|
5041
5109
|
ctx: Context;
|
|
5042
5110
|
meta: object;
|
|
5043
|
-
errorShape:
|
|
5111
|
+
errorShape: {
|
|
5112
|
+
message: string;
|
|
5113
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5114
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
5115
|
+
};
|
|
5044
5116
|
transformer: true;
|
|
5045
5117
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5046
5118
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -5080,13 +5152,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5080
5152
|
userId: string;
|
|
5081
5153
|
id: string;
|
|
5082
5154
|
query: unknown;
|
|
5155
|
+
type: string;
|
|
5156
|
+
description: string | null;
|
|
5083
5157
|
columns: unknown;
|
|
5084
5158
|
updatedAt: Date;
|
|
5085
5159
|
createdAt: Date;
|
|
5086
|
-
type: string;
|
|
5087
5160
|
metadata: unknown;
|
|
5088
5161
|
documentId: string | null;
|
|
5089
|
-
description: string | null;
|
|
5090
5162
|
category: string;
|
|
5091
5163
|
scopeProfileIds: string[] | null;
|
|
5092
5164
|
scopeMode: string | null;
|
|
@@ -5111,6 +5183,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5111
5183
|
input: {
|
|
5112
5184
|
workspaceIds?: string[] | undefined;
|
|
5113
5185
|
type?: "calendar" | "list" | "table" | "whiteboard" | "all" | "graph" | "timeline" | "kanban" | "grid" | "gallery" | "gantt" | "mindmap" | undefined;
|
|
5186
|
+
excludeAutoCreated?: boolean | undefined;
|
|
5114
5187
|
};
|
|
5115
5188
|
output: {
|
|
5116
5189
|
name: string;
|
|
@@ -5118,13 +5191,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5118
5191
|
userId: string;
|
|
5119
5192
|
id: string;
|
|
5120
5193
|
query: unknown;
|
|
5194
|
+
type: string;
|
|
5195
|
+
description: string | null;
|
|
5121
5196
|
columns: unknown;
|
|
5122
5197
|
updatedAt: Date;
|
|
5123
5198
|
createdAt: Date;
|
|
5124
|
-
type: string;
|
|
5125
5199
|
metadata: unknown;
|
|
5126
5200
|
documentId: string | null;
|
|
5127
|
-
description: string | null;
|
|
5128
5201
|
category: string;
|
|
5129
5202
|
scopeProfileIds: string[] | null;
|
|
5130
5203
|
scopeMode: string | null;
|
|
@@ -5152,13 +5225,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5152
5225
|
userId: string;
|
|
5153
5226
|
id: string;
|
|
5154
5227
|
query: unknown;
|
|
5228
|
+
type: string;
|
|
5229
|
+
description: string | null;
|
|
5155
5230
|
columns: unknown;
|
|
5156
5231
|
updatedAt: Date;
|
|
5157
5232
|
createdAt: Date;
|
|
5158
|
-
type: string;
|
|
5159
5233
|
metadata: unknown;
|
|
5160
5234
|
documentId: string | null;
|
|
5161
|
-
description: string | null;
|
|
5162
5235
|
category: string;
|
|
5163
5236
|
scopeProfileIds: string[] | null;
|
|
5164
5237
|
scopeMode: string | null;
|
|
@@ -5186,13 +5259,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5186
5259
|
userId: string;
|
|
5187
5260
|
id: string;
|
|
5188
5261
|
query: unknown;
|
|
5262
|
+
type: string;
|
|
5263
|
+
description: string | null;
|
|
5189
5264
|
columns: unknown;
|
|
5190
5265
|
updatedAt: Date;
|
|
5191
5266
|
createdAt: Date;
|
|
5192
|
-
type: string;
|
|
5193
5267
|
metadata: unknown;
|
|
5194
5268
|
documentId: string | null;
|
|
5195
|
-
description: string | null;
|
|
5196
5269
|
category: string;
|
|
5197
5270
|
scopeProfileIds: string[] | null;
|
|
5198
5271
|
scopeMode: string | null;
|
|
@@ -5221,13 +5294,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5221
5294
|
userId: string;
|
|
5222
5295
|
id: string;
|
|
5223
5296
|
query: unknown;
|
|
5297
|
+
type: string;
|
|
5298
|
+
description: string | null;
|
|
5224
5299
|
columns: unknown;
|
|
5225
5300
|
updatedAt: Date;
|
|
5226
5301
|
createdAt: Date;
|
|
5227
|
-
type: string;
|
|
5228
5302
|
metadata: unknown;
|
|
5229
5303
|
documentId: string | null;
|
|
5230
|
-
description: string | null;
|
|
5231
5304
|
category: string;
|
|
5232
5305
|
scopeProfileIds: string[] | null;
|
|
5233
5306
|
scopeMode: string | null;
|
|
@@ -5254,13 +5327,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5254
5327
|
userId: string;
|
|
5255
5328
|
id: string;
|
|
5256
5329
|
query: unknown;
|
|
5330
|
+
type: string;
|
|
5331
|
+
description: string | null;
|
|
5257
5332
|
columns: unknown;
|
|
5258
5333
|
updatedAt: Date;
|
|
5259
5334
|
createdAt: Date;
|
|
5260
|
-
type: string;
|
|
5261
5335
|
metadata: unknown;
|
|
5262
5336
|
documentId: string | null;
|
|
5263
|
-
description: string | null;
|
|
5264
5337
|
category: string;
|
|
5265
5338
|
scopeProfileIds: string[] | null;
|
|
5266
5339
|
scopeMode: string | null;
|
|
@@ -5286,6 +5359,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5286
5359
|
preview: string | null;
|
|
5287
5360
|
documentId: string | null;
|
|
5288
5361
|
properties: unknown;
|
|
5362
|
+
systemData: unknown;
|
|
5289
5363
|
version: number;
|
|
5290
5364
|
createdAt: Date;
|
|
5291
5365
|
updatedAt: Date;
|
|
@@ -5347,13 +5421,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5347
5421
|
userId: string;
|
|
5348
5422
|
id: string;
|
|
5349
5423
|
query: unknown;
|
|
5424
|
+
type: string;
|
|
5425
|
+
description: string | null;
|
|
5350
5426
|
columns: unknown;
|
|
5351
5427
|
updatedAt: Date;
|
|
5352
5428
|
createdAt: Date;
|
|
5353
|
-
type: string;
|
|
5354
5429
|
metadata: unknown;
|
|
5355
5430
|
documentId: string | null;
|
|
5356
|
-
description: string | null;
|
|
5357
5431
|
category: string;
|
|
5358
5432
|
scopeProfileIds: string[] | null;
|
|
5359
5433
|
scopeMode: string | null;
|
|
@@ -5402,11 +5476,24 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5402
5476
|
};
|
|
5403
5477
|
meta: object;
|
|
5404
5478
|
}>;
|
|
5479
|
+
ensureProfileBento: import("@trpc/server").TRPCMutationProcedure<{
|
|
5480
|
+
input: {
|
|
5481
|
+
profileSlug: string;
|
|
5482
|
+
};
|
|
5483
|
+
output: {
|
|
5484
|
+
viewId: string;
|
|
5485
|
+
};
|
|
5486
|
+
meta: object;
|
|
5487
|
+
}>;
|
|
5405
5488
|
}>>;
|
|
5406
5489
|
preferences: import("@trpc/server").TRPCBuiltRouter<{
|
|
5407
5490
|
ctx: Context;
|
|
5408
5491
|
meta: object;
|
|
5409
|
-
errorShape:
|
|
5492
|
+
errorShape: {
|
|
5493
|
+
message: string;
|
|
5494
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5495
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
5496
|
+
};
|
|
5410
5497
|
transformer: true;
|
|
5411
5498
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5412
5499
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -5561,7 +5648,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5561
5648
|
setIntelligenceService: import("@trpc/server").TRPCMutationProcedure<{
|
|
5562
5649
|
input: {
|
|
5563
5650
|
serviceId: string | null;
|
|
5564
|
-
capability?: "
|
|
5651
|
+
capability?: "chat" | "default" | "analysis" | undefined;
|
|
5565
5652
|
};
|
|
5566
5653
|
output: {
|
|
5567
5654
|
success: boolean;
|
|
@@ -5573,7 +5660,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5573
5660
|
roles: import("@trpc/server").TRPCBuiltRouter<{
|
|
5574
5661
|
ctx: Context;
|
|
5575
5662
|
meta: object;
|
|
5576
|
-
errorShape:
|
|
5663
|
+
errorShape: {
|
|
5664
|
+
message: string;
|
|
5665
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5666
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
5667
|
+
};
|
|
5577
5668
|
transformer: true;
|
|
5578
5669
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5579
5670
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -5584,9 +5675,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5584
5675
|
name: string;
|
|
5585
5676
|
workspaceId: string | null;
|
|
5586
5677
|
id: string;
|
|
5678
|
+
description: string | null;
|
|
5587
5679
|
updatedAt: Date;
|
|
5588
5680
|
createdAt: Date;
|
|
5589
|
-
description: string | null;
|
|
5590
5681
|
createdBy: string;
|
|
5591
5682
|
permissions: unknown;
|
|
5592
5683
|
filters: unknown;
|
|
@@ -5601,9 +5692,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5601
5692
|
name: string;
|
|
5602
5693
|
workspaceId: string | null;
|
|
5603
5694
|
id: string;
|
|
5695
|
+
description: string | null;
|
|
5604
5696
|
updatedAt: Date;
|
|
5605
5697
|
createdAt: Date;
|
|
5606
|
-
description: string | null;
|
|
5607
5698
|
createdBy: string;
|
|
5608
5699
|
permissions: unknown;
|
|
5609
5700
|
filters: unknown;
|
|
@@ -5665,12 +5756,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5665
5756
|
sharing: import("@trpc/server").TRPCBuiltRouter<{
|
|
5666
5757
|
ctx: Context;
|
|
5667
5758
|
meta: object;
|
|
5668
|
-
errorShape:
|
|
5759
|
+
errorShape: {
|
|
5760
|
+
message: string;
|
|
5761
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5762
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
5763
|
+
};
|
|
5669
5764
|
transformer: true;
|
|
5670
5765
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5671
5766
|
createPublicLink: import("@trpc/server").TRPCMutationProcedure<{
|
|
5672
5767
|
input: {
|
|
5673
|
-
resourceType: "entity" | "
|
|
5768
|
+
resourceType: "entity" | "document" | "view";
|
|
5674
5769
|
resourceId: string;
|
|
5675
5770
|
expiresInDays?: number | undefined;
|
|
5676
5771
|
access?: "workspace_only" | "anyone_with_link" | undefined;
|
|
@@ -5685,7 +5780,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5685
5780
|
}>;
|
|
5686
5781
|
invite: import("@trpc/server").TRPCMutationProcedure<{
|
|
5687
5782
|
input: {
|
|
5688
|
-
resourceType: "entity" | "
|
|
5783
|
+
resourceType: "entity" | "document" | "view";
|
|
5689
5784
|
resourceId: string;
|
|
5690
5785
|
userEmail: string;
|
|
5691
5786
|
};
|
|
@@ -5714,14 +5809,15 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5714
5809
|
workspaceId: string | null;
|
|
5715
5810
|
userId: string;
|
|
5716
5811
|
id: string;
|
|
5812
|
+
type: string;
|
|
5717
5813
|
updatedAt: Date;
|
|
5718
5814
|
createdAt: Date;
|
|
5719
|
-
type: string;
|
|
5720
5815
|
profileId: string | null;
|
|
5721
5816
|
title: string | null;
|
|
5722
5817
|
preview: string | null;
|
|
5723
5818
|
documentId: string | null;
|
|
5724
5819
|
properties: unknown;
|
|
5820
|
+
systemData: unknown;
|
|
5725
5821
|
version: number;
|
|
5726
5822
|
deletedAt: Date | null;
|
|
5727
5823
|
} | {
|
|
@@ -5730,13 +5826,13 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5730
5826
|
userId: string;
|
|
5731
5827
|
id: string;
|
|
5732
5828
|
query: unknown;
|
|
5829
|
+
type: string;
|
|
5830
|
+
description: string | null;
|
|
5733
5831
|
columns: unknown;
|
|
5734
5832
|
updatedAt: Date;
|
|
5735
5833
|
createdAt: Date;
|
|
5736
|
-
type: string;
|
|
5737
5834
|
metadata: unknown;
|
|
5738
5835
|
documentId: string | null;
|
|
5739
|
-
description: string | null;
|
|
5740
5836
|
category: string;
|
|
5741
5837
|
scopeProfileIds: string[] | null;
|
|
5742
5838
|
scopeMode: string | null;
|
|
@@ -5786,7 +5882,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5786
5882
|
}>;
|
|
5787
5883
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
5788
5884
|
input: {
|
|
5789
|
-
resourceType: "entity" | "
|
|
5885
|
+
resourceType: "entity" | "document" | "view";
|
|
5790
5886
|
resourceId: string;
|
|
5791
5887
|
visibility?: "public" | "private" | undefined;
|
|
5792
5888
|
expiresAt?: Date | undefined;
|
|
@@ -5846,12 +5942,16 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5846
5942
|
templates: import("@trpc/server").TRPCBuiltRouter<{
|
|
5847
5943
|
ctx: Context;
|
|
5848
5944
|
meta: object;
|
|
5849
|
-
errorShape:
|
|
5945
|
+
errorShape: {
|
|
5946
|
+
message: string;
|
|
5947
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
5948
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
5949
|
+
};
|
|
5850
5950
|
transformer: true;
|
|
5851
5951
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5852
5952
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
5853
5953
|
input: {
|
|
5854
|
-
targetType?: "entity" | "
|
|
5954
|
+
targetType?: "entity" | "document" | "inbox_item" | "project" | undefined;
|
|
5855
5955
|
entityType?: string | undefined;
|
|
5856
5956
|
inboxItemType?: string | undefined;
|
|
5857
5957
|
workspaceId?: string | undefined;
|
|
@@ -5878,7 +5978,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5878
5978
|
}>;
|
|
5879
5979
|
getDefault: import("@trpc/server").TRPCQueryProcedure<{
|
|
5880
5980
|
input: {
|
|
5881
|
-
targetType: "entity" | "
|
|
5981
|
+
targetType: "entity" | "document" | "inbox_item" | "project";
|
|
5882
5982
|
entityType?: string | undefined;
|
|
5883
5983
|
inboxItemType?: string | undefined;
|
|
5884
5984
|
workspaceId?: string | undefined;
|
|
@@ -5889,7 +5989,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5889
5989
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
5890
5990
|
input: {
|
|
5891
5991
|
name: string;
|
|
5892
|
-
targetType: "entity" | "
|
|
5992
|
+
targetType: "entity" | "document" | "inbox_item" | "project";
|
|
5893
5993
|
config: {
|
|
5894
5994
|
layout?: {
|
|
5895
5995
|
structure: {
|
|
@@ -5953,7 +6053,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
5953
6053
|
fieldMapping: Record<string, {
|
|
5954
6054
|
slot: string;
|
|
5955
6055
|
renderer?: {
|
|
5956
|
-
type: "number" | "date" | "
|
|
6056
|
+
type: "number" | "date" | "link" | "relations" | "tag" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
5957
6057
|
variant?: string | undefined;
|
|
5958
6058
|
size?: string | undefined;
|
|
5959
6059
|
format?: string | undefined;
|
|
@@ -6067,7 +6167,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6067
6167
|
fieldMapping: Record<string, {
|
|
6068
6168
|
slot: string;
|
|
6069
6169
|
renderer?: {
|
|
6070
|
-
type: "number" | "date" | "
|
|
6170
|
+
type: "number" | "date" | "link" | "relations" | "tag" | "text" | "badge" | "avatar" | "progress" | "checkbox" | "currency";
|
|
6071
6171
|
variant?: string | undefined;
|
|
6072
6172
|
size?: string | undefined;
|
|
6073
6173
|
format?: string | undefined;
|
|
@@ -6126,11 +6226,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6126
6226
|
workspaceId: string | null;
|
|
6127
6227
|
userId: string | null;
|
|
6128
6228
|
id: string;
|
|
6229
|
+
description: string | null;
|
|
6129
6230
|
updatedAt: Date;
|
|
6130
6231
|
createdAt: Date;
|
|
6131
6232
|
version: number;
|
|
6132
6233
|
entityType: string | null;
|
|
6133
|
-
description: string | null;
|
|
6134
6234
|
config: unknown;
|
|
6135
6235
|
targetType: string;
|
|
6136
6236
|
inboxItemType: string | null;
|
|
@@ -6153,7 +6253,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6153
6253
|
whiteboards: import("@trpc/server").TRPCBuiltRouter<{
|
|
6154
6254
|
ctx: Context;
|
|
6155
6255
|
meta: object;
|
|
6156
|
-
errorShape:
|
|
6256
|
+
errorShape: {
|
|
6257
|
+
message: string;
|
|
6258
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6259
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
6260
|
+
};
|
|
6157
6261
|
transformer: true;
|
|
6158
6262
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6159
6263
|
saveVersion: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -6239,7 +6343,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6239
6343
|
skills: import("@trpc/server").TRPCBuiltRouter<{
|
|
6240
6344
|
ctx: Context;
|
|
6241
6345
|
meta: object;
|
|
6242
|
-
errorShape:
|
|
6346
|
+
errorShape: {
|
|
6347
|
+
message: string;
|
|
6348
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6349
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
6350
|
+
};
|
|
6243
6351
|
transformer: true;
|
|
6244
6352
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6245
6353
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -6358,7 +6466,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6358
6466
|
backgroundTasks: import("@trpc/server").TRPCBuiltRouter<{
|
|
6359
6467
|
ctx: Context;
|
|
6360
6468
|
meta: object;
|
|
6361
|
-
errorShape:
|
|
6469
|
+
errorShape: {
|
|
6470
|
+
message: string;
|
|
6471
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6472
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
6473
|
+
};
|
|
6362
6474
|
transformer: true;
|
|
6363
6475
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6364
6476
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -6440,7 +6552,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6440
6552
|
messageLinks: import("@trpc/server").TRPCBuiltRouter<{
|
|
6441
6553
|
ctx: Context;
|
|
6442
6554
|
meta: object;
|
|
6443
|
-
errorShape:
|
|
6555
|
+
errorShape: {
|
|
6556
|
+
message: string;
|
|
6557
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6558
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
6559
|
+
};
|
|
6444
6560
|
transformer: true;
|
|
6445
6561
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6446
6562
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -6572,7 +6688,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6572
6688
|
profiles: import("@trpc/server").TRPCBuiltRouter<{
|
|
6573
6689
|
ctx: Context;
|
|
6574
6690
|
meta: object;
|
|
6575
|
-
errorShape:
|
|
6691
|
+
errorShape: {
|
|
6692
|
+
message: string;
|
|
6693
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6694
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
6695
|
+
};
|
|
6576
6696
|
transformer: true;
|
|
6577
6697
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6578
6698
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -6592,6 +6712,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6592
6712
|
displayName: string;
|
|
6593
6713
|
parentProfileId: string | null;
|
|
6594
6714
|
defaultValues: unknown;
|
|
6715
|
+
semanticSlug: string | null;
|
|
6595
6716
|
}[];
|
|
6596
6717
|
};
|
|
6597
6718
|
meta: object;
|
|
@@ -6615,6 +6736,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6615
6736
|
displayName: string;
|
|
6616
6737
|
parentProfileId: string | null;
|
|
6617
6738
|
defaultValues: unknown;
|
|
6739
|
+
semanticSlug: string | null;
|
|
6618
6740
|
};
|
|
6619
6741
|
effectiveProperties: EffectiveProperty[];
|
|
6620
6742
|
};
|
|
@@ -6648,6 +6770,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6648
6770
|
displayName: string;
|
|
6649
6771
|
parentProfileId: string | null;
|
|
6650
6772
|
defaultValues: unknown;
|
|
6773
|
+
semanticSlug: string | null;
|
|
6651
6774
|
};
|
|
6652
6775
|
existing: boolean;
|
|
6653
6776
|
status?: undefined;
|
|
@@ -6674,6 +6797,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6674
6797
|
displayName: string;
|
|
6675
6798
|
parentProfileId: string | null;
|
|
6676
6799
|
defaultValues: unknown;
|
|
6800
|
+
semanticSlug: string | null;
|
|
6677
6801
|
};
|
|
6678
6802
|
existing?: undefined;
|
|
6679
6803
|
status?: undefined;
|
|
@@ -6707,6 +6831,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6707
6831
|
displayName: string;
|
|
6708
6832
|
parentProfileId: string | null;
|
|
6709
6833
|
defaultValues: unknown;
|
|
6834
|
+
semanticSlug: string | null;
|
|
6710
6835
|
};
|
|
6711
6836
|
};
|
|
6712
6837
|
meta: object;
|
|
@@ -6748,6 +6873,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6748
6873
|
displayName: string;
|
|
6749
6874
|
parentProfileId: string | null;
|
|
6750
6875
|
defaultValues: unknown;
|
|
6876
|
+
semanticSlug: string | null;
|
|
6751
6877
|
}[];
|
|
6752
6878
|
};
|
|
6753
6879
|
meta: object;
|
|
@@ -6781,6 +6907,32 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6781
6907
|
displayName: string;
|
|
6782
6908
|
parentProfileId: string | null;
|
|
6783
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;
|
|
6784
6936
|
}[];
|
|
6785
6937
|
};
|
|
6786
6938
|
meta: object;
|
|
@@ -6795,11 +6947,25 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6795
6947
|
};
|
|
6796
6948
|
meta: object;
|
|
6797
6949
|
}>;
|
|
6950
|
+
reorderProperties: import("@trpc/server").TRPCMutationProcedure<{
|
|
6951
|
+
input: {
|
|
6952
|
+
profileId: string;
|
|
6953
|
+
orderedPropertyDefIds: string[];
|
|
6954
|
+
};
|
|
6955
|
+
output: {
|
|
6956
|
+
success: boolean;
|
|
6957
|
+
};
|
|
6958
|
+
meta: object;
|
|
6959
|
+
}>;
|
|
6798
6960
|
}>>;
|
|
6799
6961
|
propertyDefs: import("@trpc/server").TRPCBuiltRouter<{
|
|
6800
6962
|
ctx: Context;
|
|
6801
6963
|
meta: object;
|
|
6802
|
-
errorShape:
|
|
6964
|
+
errorShape: {
|
|
6965
|
+
message: string;
|
|
6966
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
6967
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
6968
|
+
};
|
|
6803
6969
|
transformer: true;
|
|
6804
6970
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6805
6971
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -6906,7 +7072,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6906
7072
|
profileProperties: import("@trpc/server").TRPCBuiltRouter<{
|
|
6907
7073
|
ctx: Context;
|
|
6908
7074
|
meta: object;
|
|
6909
|
-
errorShape:
|
|
7075
|
+
errorShape: {
|
|
7076
|
+
message: string;
|
|
7077
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7078
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7079
|
+
};
|
|
6910
7080
|
transformer: true;
|
|
6911
7081
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6912
7082
|
link: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -6970,7 +7140,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6970
7140
|
relationDefs: import("@trpc/server").TRPCBuiltRouter<{
|
|
6971
7141
|
ctx: Context;
|
|
6972
7142
|
meta: object;
|
|
6973
|
-
errorShape:
|
|
7143
|
+
errorShape: {
|
|
7144
|
+
message: string;
|
|
7145
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7146
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7147
|
+
};
|
|
6974
7148
|
transformer: true;
|
|
6975
7149
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
6976
7150
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -6980,9 +7154,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
6980
7154
|
workspaceId: string;
|
|
6981
7155
|
userId: string;
|
|
6982
7156
|
id: string;
|
|
7157
|
+
description: string | null;
|
|
6983
7158
|
updatedAt: Date;
|
|
6984
7159
|
createdAt: Date;
|
|
6985
|
-
description: string | null;
|
|
6986
7160
|
slug: string;
|
|
6987
7161
|
uiHints: unknown;
|
|
6988
7162
|
displayName: string;
|
|
@@ -7004,9 +7178,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7004
7178
|
workspaceId: string;
|
|
7005
7179
|
userId: string;
|
|
7006
7180
|
id: string;
|
|
7181
|
+
description: string | null;
|
|
7007
7182
|
updatedAt: Date;
|
|
7008
7183
|
createdAt: Date;
|
|
7009
|
-
description: string | null;
|
|
7010
7184
|
slug: string;
|
|
7011
7185
|
uiHints: unknown;
|
|
7012
7186
|
displayName: string;
|
|
@@ -7028,9 +7202,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7028
7202
|
workspaceId: string;
|
|
7029
7203
|
userId: string;
|
|
7030
7204
|
id: string;
|
|
7205
|
+
description: string | null;
|
|
7031
7206
|
updatedAt: Date;
|
|
7032
7207
|
createdAt: Date;
|
|
7033
|
-
description: string | null;
|
|
7034
7208
|
slug: string;
|
|
7035
7209
|
uiHints: unknown;
|
|
7036
7210
|
displayName: string;
|
|
@@ -7052,7 +7226,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7052
7226
|
profileRelations: import("@trpc/server").TRPCBuiltRouter<{
|
|
7053
7227
|
ctx: Context;
|
|
7054
7228
|
meta: object;
|
|
7055
|
-
errorShape:
|
|
7229
|
+
errorShape: {
|
|
7230
|
+
message: string;
|
|
7231
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7232
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7233
|
+
};
|
|
7056
7234
|
transformer: true;
|
|
7057
7235
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7058
7236
|
link: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -7104,7 +7282,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7104
7282
|
agentUsers: import("@trpc/server").TRPCBuiltRouter<{
|
|
7105
7283
|
ctx: Context;
|
|
7106
7284
|
meta: object;
|
|
7107
|
-
errorShape:
|
|
7285
|
+
errorShape: {
|
|
7286
|
+
message: string;
|
|
7287
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7288
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7289
|
+
};
|
|
7108
7290
|
transformer: true;
|
|
7109
7291
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7110
7292
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
@@ -7167,7 +7349,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7167
7349
|
mcpServers: import("@trpc/server").TRPCBuiltRouter<{
|
|
7168
7350
|
ctx: Context;
|
|
7169
7351
|
meta: object;
|
|
7170
|
-
errorShape:
|
|
7352
|
+
errorShape: {
|
|
7353
|
+
message: string;
|
|
7354
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7355
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7356
|
+
};
|
|
7171
7357
|
transformer: true;
|
|
7172
7358
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7173
7359
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -7178,11 +7364,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7178
7364
|
workspaceId: string;
|
|
7179
7365
|
id: string;
|
|
7180
7366
|
errorMessage: string | null;
|
|
7367
|
+
description: string | null;
|
|
7181
7368
|
updatedAt: Date;
|
|
7182
7369
|
createdAt: Date;
|
|
7183
7370
|
metadata: Record<string, unknown>;
|
|
7184
7371
|
status: McpStatus;
|
|
7185
|
-
description: string | null;
|
|
7186
7372
|
url: string | null;
|
|
7187
7373
|
enabled: boolean;
|
|
7188
7374
|
slug: string;
|
|
@@ -7200,7 +7386,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7200
7386
|
input: {
|
|
7201
7387
|
slug: string;
|
|
7202
7388
|
name: string;
|
|
7203
|
-
transport: "
|
|
7389
|
+
transport: "stdio" | "http";
|
|
7204
7390
|
description?: string | undefined;
|
|
7205
7391
|
command?: string | undefined;
|
|
7206
7392
|
args?: string[] | undefined;
|
|
@@ -7213,11 +7399,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7213
7399
|
workspaceId: string;
|
|
7214
7400
|
id: string;
|
|
7215
7401
|
errorMessage: string | null;
|
|
7402
|
+
description: string | null;
|
|
7216
7403
|
updatedAt: Date;
|
|
7217
7404
|
createdAt: Date;
|
|
7218
7405
|
metadata: Record<string, unknown>;
|
|
7219
7406
|
status: McpStatus;
|
|
7220
|
-
description: string | null;
|
|
7221
7407
|
url: string | null;
|
|
7222
7408
|
enabled: boolean;
|
|
7223
7409
|
slug: string;
|
|
@@ -7238,7 +7424,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7238
7424
|
slug?: string | undefined;
|
|
7239
7425
|
name?: string | undefined;
|
|
7240
7426
|
description?: string | undefined;
|
|
7241
|
-
transport?: "
|
|
7427
|
+
transport?: "stdio" | "http" | undefined;
|
|
7242
7428
|
command?: string | undefined;
|
|
7243
7429
|
args?: string[] | undefined;
|
|
7244
7430
|
url?: string | undefined;
|
|
@@ -7325,6 +7511,18 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7325
7511
|
};
|
|
7326
7512
|
meta: object;
|
|
7327
7513
|
}>;
|
|
7514
|
+
listTools: import("@trpc/server").TRPCQueryProcedure<{
|
|
7515
|
+
input: {
|
|
7516
|
+
id: string;
|
|
7517
|
+
};
|
|
7518
|
+
output: {
|
|
7519
|
+
tools: {
|
|
7520
|
+
name: string;
|
|
7521
|
+
description: string;
|
|
7522
|
+
}[];
|
|
7523
|
+
};
|
|
7524
|
+
meta: object;
|
|
7525
|
+
}>;
|
|
7328
7526
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
7329
7527
|
input: {
|
|
7330
7528
|
id: string;
|
|
@@ -7338,7 +7536,11 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7338
7536
|
agentConfigs: import("@trpc/server").TRPCBuiltRouter<{
|
|
7339
7537
|
ctx: Context;
|
|
7340
7538
|
meta: object;
|
|
7341
|
-
errorShape:
|
|
7539
|
+
errorShape: {
|
|
7540
|
+
message: string;
|
|
7541
|
+
code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
|
|
7542
|
+
data: import("@trpc/server").TRPCDefaultErrorData;
|
|
7543
|
+
};
|
|
7342
7544
|
transformer: true;
|
|
7343
7545
|
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
7344
7546
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
@@ -7417,6 +7619,178 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
7417
7619
|
meta: object;
|
|
7418
7620
|
}>;
|
|
7419
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
|
+
}>>;
|
|
7420
7794
|
}>>;
|
|
7421
7795
|
export type AppRouter = typeof coreRouter;
|
|
7422
7796
|
|