@synap-core/api-types 1.5.0 → 1.6.2

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.
@@ -3371,7 +3371,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3371
3371
  errorMessage: string | null;
3372
3372
  startedAt: Date;
3373
3373
  threadId: string;
3374
- status: "completed" | "failed" | "running";
3374
+ status: "completed" | "running" | "failed";
3375
3375
  commandId: string;
3376
3376
  permissionsSnapshot: Record<string, unknown> | null;
3377
3377
  inputs: Record<string, unknown> | null;
@@ -3397,7 +3397,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3397
3397
  errorMessage: string | null;
3398
3398
  startedAt: Date;
3399
3399
  threadId: string;
3400
- status: "completed" | "failed" | "running";
3400
+ status: "completed" | "running" | "failed";
3401
3401
  commandId: string;
3402
3402
  permissionsSnapshot: Record<string, unknown> | null;
3403
3403
  inputs: Record<string, unknown> | null;
@@ -3424,6 +3424,185 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3424
3424
  };
3425
3425
  meta: object;
3426
3426
  }>;
3427
+ agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
3428
+ input: Record<string, never>;
3429
+ output: {
3430
+ agents: unknown[];
3431
+ };
3432
+ meta: object;
3433
+ }>;
3434
+ toolDefinitions: import("@trpc/server").TRPCQueryProcedure<{
3435
+ input: Record<string, never>;
3436
+ output: {
3437
+ tools: unknown[];
3438
+ };
3439
+ meta: object;
3440
+ }>;
3441
+ agentConfig: import("@trpc/server").TRPCQueryProcedure<{
3442
+ input: {
3443
+ agentType: string;
3444
+ };
3445
+ output: {
3446
+ config: unknown;
3447
+ };
3448
+ meta: object;
3449
+ }>;
3450
+ saveAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
3451
+ input: {
3452
+ agentType: string;
3453
+ promptAppend?: string | null | undefined;
3454
+ extraToolIds?: string[] | undefined;
3455
+ disabledToolIds?: string[] | undefined;
3456
+ maxStepsOverride?: number | null | undefined;
3457
+ };
3458
+ output: {
3459
+ config: unknown;
3460
+ };
3461
+ meta: object;
3462
+ }>;
3463
+ deleteAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
3464
+ input: {
3465
+ agentType: string;
3466
+ };
3467
+ output: {
3468
+ success: boolean;
3469
+ };
3470
+ meta: object;
3471
+ }>;
3472
+ memoryFacts: import("@trpc/server").TRPCQueryProcedure<{
3473
+ input: {
3474
+ limit?: number | undefined;
3475
+ };
3476
+ output: {
3477
+ facts: any[];
3478
+ };
3479
+ meta: object;
3480
+ }>;
3481
+ searchMemory: import("@trpc/server").TRPCQueryProcedure<{
3482
+ input: {
3483
+ query: string;
3484
+ limit?: number | undefined;
3485
+ };
3486
+ output: {
3487
+ facts: any[];
3488
+ };
3489
+ meta: object;
3490
+ }>;
3491
+ createMemoryFact: import("@trpc/server").TRPCMutationProcedure<{
3492
+ input: {
3493
+ fact: string;
3494
+ confidence?: number | undefined;
3495
+ };
3496
+ output: {
3497
+ fact: any;
3498
+ };
3499
+ meta: object;
3500
+ }>;
3501
+ deleteMemoryFact: import("@trpc/server").TRPCMutationProcedure<{
3502
+ input: {
3503
+ id: string;
3504
+ };
3505
+ output: {
3506
+ success: boolean;
3507
+ };
3508
+ meta: object;
3509
+ }>;
3510
+ skills: import("@trpc/server").TRPCQueryProcedure<{
3511
+ input: Record<string, never>;
3512
+ output: {
3513
+ skills: any[];
3514
+ };
3515
+ meta: object;
3516
+ }>;
3517
+ createSkill: import("@trpc/server").TRPCMutationProcedure<{
3518
+ input: {
3519
+ name: string;
3520
+ description: string;
3521
+ parameters?: Record<string, string> | undefined;
3522
+ category?: "context" | "action" | undefined;
3523
+ };
3524
+ output: {
3525
+ skill: any;
3526
+ };
3527
+ meta: object;
3528
+ }>;
3529
+ executionStats: import("@trpc/server").TRPCQueryProcedure<{
3530
+ input: {
3531
+ since?: string | undefined;
3532
+ };
3533
+ output: {
3534
+ stats: unknown;
3535
+ };
3536
+ meta: object;
3537
+ }>;
3538
+ executions: import("@trpc/server").TRPCQueryProcedure<{
3539
+ input: {
3540
+ limit?: number | undefined;
3541
+ offset?: number | undefined;
3542
+ agentType?: string | undefined;
3543
+ };
3544
+ output: {
3545
+ executions: unknown[];
3546
+ };
3547
+ meta: object;
3548
+ }>;
3549
+ executionDetail: import("@trpc/server").TRPCQueryProcedure<{
3550
+ input: {
3551
+ id: string;
3552
+ };
3553
+ output: {
3554
+ execution: unknown;
3555
+ toolLogs: unknown[];
3556
+ };
3557
+ meta: object;
3558
+ }>;
3559
+ proposals: import("@trpc/server").TRPCQueryProcedure<{
3560
+ input: {
3561
+ status?: "denied" | "pending" | "approved" | undefined;
3562
+ };
3563
+ output: {
3564
+ proposals: any[];
3565
+ };
3566
+ meta: object;
3567
+ }>;
3568
+ approveProposal: import("@trpc/server").TRPCMutationProcedure<{
3569
+ input: {
3570
+ id: string;
3571
+ };
3572
+ output: {
3573
+ success: boolean;
3574
+ };
3575
+ meta: object;
3576
+ }>;
3577
+ denyProposal: import("@trpc/server").TRPCMutationProcedure<{
3578
+ input: {
3579
+ id: string;
3580
+ };
3581
+ output: {
3582
+ success: boolean;
3583
+ };
3584
+ meta: object;
3585
+ }>;
3586
+ startAIChannel: import("@trpc/server").TRPCMutationProcedure<{
3587
+ input: {
3588
+ topic: string;
3589
+ mode?: "debate" | "collaborate" | "critique" | undefined;
3590
+ maxTurns?: number | undefined;
3591
+ personaA?: {
3592
+ name?: string | undefined;
3593
+ agentType?: string | undefined;
3594
+ systemPrompt?: string | undefined;
3595
+ } | undefined;
3596
+ personaB?: {
3597
+ name?: string | undefined;
3598
+ agentType?: string | undefined;
3599
+ systemPrompt?: string | undefined;
3600
+ } | undefined;
3601
+ initialMessage?: string | undefined;
3602
+ };
3603
+ output: any;
3604
+ meta: object;
3605
+ }>;
3427
3606
  }>>;
3428
3607
  capabilities: import("@trpc/server").TRPCBuiltRouter<{
3429
3608
  ctx: Context;
@@ -3539,11 +3718,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3539
3718
  input: void;
3540
3719
  output: {
3541
3720
  types: {
3721
+ type: string;
3542
3722
  label: string;
3543
3723
  description: string;
3544
3724
  directionality: "unidirectional" | "bidirectional";
3545
- category: "workflow" | "social" | "reference" | "hierarchy";
3546
- type: string;
3725
+ category: string;
3726
+ source: "workspace";
3547
3727
  }[];
3548
3728
  };
3549
3729
  meta: object;
@@ -3551,7 +3731,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3551
3731
  get: import("@trpc/server").TRPCQueryProcedure<{
3552
3732
  input: {
3553
3733
  entityId: string;
3554
- type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references" | undefined;
3734
+ type?: string | undefined;
3555
3735
  direction?: "source" | "target" | "both" | undefined;
3556
3736
  limit?: number | undefined;
3557
3737
  };
@@ -3572,7 +3752,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3572
3752
  getRelated: import("@trpc/server").TRPCQueryProcedure<{
3573
3753
  input: {
3574
3754
  entityId: string;
3575
- type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references" | undefined;
3755
+ type?: string | undefined;
3576
3756
  direction?: "source" | "target" | "both" | undefined;
3577
3757
  limit?: number | undefined;
3578
3758
  };
@@ -3611,9 +3791,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3611
3791
  input: {
3612
3792
  sourceEntityId: string;
3613
3793
  targetEntityId: string;
3614
- type: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references";
3615
- workspaceId: string;
3794
+ type: string;
3616
3795
  metadata?: Record<string, any> | undefined;
3796
+ workspaceId?: string | undefined;
3617
3797
  };
3618
3798
  output: {
3619
3799
  status: "proposed";
@@ -4024,7 +4204,88 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4024
4204
  }>;
4025
4205
  createFromDefinition: import("@trpc/server").TRPCMutationProcedure<{
4026
4206
  input: {
4027
- definition: unknown;
4207
+ definition: {
4208
+ [x: string]: unknown;
4209
+ workspaceName?: string | undefined;
4210
+ description?: string | undefined;
4211
+ profiles?: {
4212
+ slug: string;
4213
+ displayName: string;
4214
+ icon?: string | undefined;
4215
+ color?: string | undefined;
4216
+ description?: string | undefined;
4217
+ scope?: string | undefined;
4218
+ properties?: {
4219
+ slug: string;
4220
+ valueType: string;
4221
+ label?: string | undefined;
4222
+ inputType?: string | undefined;
4223
+ placeholder?: string | undefined;
4224
+ enumValues?: string[] | undefined;
4225
+ constraints?: Record<string, unknown> | undefined;
4226
+ }[] | undefined;
4227
+ }[] | undefined;
4228
+ views?: {
4229
+ name: string;
4230
+ type: string;
4231
+ scopeProfileSlug?: string | undefined;
4232
+ scopeProfileSlugs?: string[] | undefined;
4233
+ config?: Record<string, unknown> | undefined;
4234
+ }[] | undefined;
4235
+ bentoLayout?: {
4236
+ widgetType: string;
4237
+ pos: {
4238
+ x: number;
4239
+ y: number;
4240
+ w: number;
4241
+ h: number;
4242
+ };
4243
+ config?: Record<string, unknown> | undefined;
4244
+ }[] | undefined;
4245
+ bentoViewBlocks?: {
4246
+ viewName: string;
4247
+ pos: {
4248
+ x: number;
4249
+ y: number;
4250
+ w: number;
4251
+ h: number;
4252
+ };
4253
+ kind?: "view" | undefined;
4254
+ overrides?: Record<string, unknown> | undefined;
4255
+ }[] | undefined;
4256
+ suggestedEntities?: {
4257
+ profileSlug: string;
4258
+ title: string;
4259
+ properties?: Record<string, unknown> | undefined;
4260
+ content?: string | undefined;
4261
+ }[] | undefined;
4262
+ suggestedRelations?: {
4263
+ sourceRef: string;
4264
+ targetRef: string;
4265
+ type: string;
4266
+ metadata?: Record<string, unknown> | undefined;
4267
+ }[] | undefined;
4268
+ displayTemplates?: {
4269
+ name: string;
4270
+ config: Record<string, unknown>;
4271
+ description?: string | undefined;
4272
+ entityType?: string | undefined;
4273
+ targetType?: string | undefined;
4274
+ isDefault?: boolean | undefined;
4275
+ }[] | undefined;
4276
+ layoutConfig?: {
4277
+ pinnedApps?: string[] | undefined;
4278
+ sidebarApps?: string[] | undefined;
4279
+ defaultView?: string | undefined;
4280
+ theme?: string | undefined;
4281
+ } | undefined;
4282
+ entityLinks?: {
4283
+ sourceProfileSlug: string;
4284
+ targetProfileSlug: string;
4285
+ type: string;
4286
+ label?: string | undefined;
4287
+ }[] | undefined;
4288
+ };
4028
4289
  packageSlug?: string | undefined;
4029
4290
  packageVersion?: string | undefined;
4030
4291
  workspaceName?: string | undefined;
@@ -5777,7 +6038,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5777
6038
  create: import("@trpc/server").TRPCMutationProcedure<{
5778
6039
  input: {
5779
6040
  slug: string;
5780
- valueType: "string" | "number" | "boolean" | "object" | "array" | "date" | "entity_id";
6041
+ valueType: "string" | "number" | "boolean" | "object" | "array" | "date" | "secret" | "entity_id";
5781
6042
  constraints?: Record<string, unknown> | undefined;
5782
6043
  uiHints?: Record<string, unknown> | undefined;
5783
6044
  };
@@ -5810,7 +6071,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5810
6071
  input: {
5811
6072
  id: string;
5812
6073
  slug?: string | undefined;
5813
- valueType?: "string" | "number" | "boolean" | "object" | "array" | "date" | "entity_id" | undefined;
6074
+ valueType?: "string" | "number" | "boolean" | "object" | "array" | "date" | "secret" | "entity_id" | undefined;
5814
6075
  constraints?: Record<string, unknown> | undefined;
5815
6076
  uiHints?: Record<string, unknown> | undefined;
5816
6077
  };
@@ -5901,6 +6162,116 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5901
6162
  meta: object;
5902
6163
  }>;
5903
6164
  }>>;
6165
+ relationDefs: import("@trpc/server").TRPCBuiltRouter<{
6166
+ ctx: Context;
6167
+ meta: object;
6168
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6169
+ transformer: true;
6170
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6171
+ list: import("@trpc/server").TRPCQueryProcedure<{
6172
+ input: void;
6173
+ output: {
6174
+ relationDefs: {
6175
+ workspaceId: string;
6176
+ userId: string;
6177
+ id: string;
6178
+ updatedAt: Date;
6179
+ createdAt: Date;
6180
+ description: string | null;
6181
+ slug: string;
6182
+ uiHints: unknown;
6183
+ displayName: string;
6184
+ isDirectional: boolean;
6185
+ }[];
6186
+ };
6187
+ meta: object;
6188
+ }>;
6189
+ create: import("@trpc/server").TRPCMutationProcedure<{
6190
+ input: {
6191
+ slug: string;
6192
+ displayName: string;
6193
+ description?: string | undefined;
6194
+ uiHints?: Record<string, unknown> | undefined;
6195
+ isDirectional?: boolean | undefined;
6196
+ };
6197
+ output: {
6198
+ relationDef: {
6199
+ workspaceId: string;
6200
+ userId: string;
6201
+ id: string;
6202
+ updatedAt: Date;
6203
+ createdAt: Date;
6204
+ description: string | null;
6205
+ slug: string;
6206
+ uiHints: unknown;
6207
+ displayName: string;
6208
+ isDirectional: boolean;
6209
+ };
6210
+ };
6211
+ meta: object;
6212
+ }>;
6213
+ delete: import("@trpc/server").TRPCMutationProcedure<{
6214
+ input: {
6215
+ id: string;
6216
+ };
6217
+ output: {
6218
+ success: boolean;
6219
+ };
6220
+ meta: object;
6221
+ }>;
6222
+ }>>;
6223
+ profileRelations: import("@trpc/server").TRPCBuiltRouter<{
6224
+ ctx: Context;
6225
+ meta: object;
6226
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6227
+ transformer: true;
6228
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6229
+ link: import("@trpc/server").TRPCMutationProcedure<{
6230
+ input: {
6231
+ sourceProfileId: string;
6232
+ targetProfileId: string;
6233
+ relationDefId: string;
6234
+ displayOrder?: number | undefined;
6235
+ metadata?: Record<string, unknown> | undefined;
6236
+ };
6237
+ output: {
6238
+ link: {
6239
+ metadata: unknown;
6240
+ displayOrder: number;
6241
+ sourceProfileId: string;
6242
+ targetProfileId: string;
6243
+ relationDefId: string;
6244
+ };
6245
+ };
6246
+ meta: object;
6247
+ }>;
6248
+ unlink: import("@trpc/server").TRPCMutationProcedure<{
6249
+ input: {
6250
+ sourceProfileId: string;
6251
+ targetProfileId: string;
6252
+ relationDefId: string;
6253
+ };
6254
+ output: {
6255
+ success: boolean;
6256
+ };
6257
+ meta: object;
6258
+ }>;
6259
+ getByProfile: import("@trpc/server").TRPCQueryProcedure<{
6260
+ input: {
6261
+ profileId: string;
6262
+ };
6263
+ output: {
6264
+ relations: {
6265
+ metadata: unknown;
6266
+ displayOrder: number;
6267
+ sourceProfileId: string;
6268
+ targetProfileId: string;
6269
+ relationDefId: string;
6270
+ }[];
6271
+ };
6272
+ meta: object;
6273
+ }>;
6274
+ }>>;
5904
6275
  agentUsers: import("@trpc/server").TRPCBuiltRouter<{
5905
6276
  ctx: Context;
5906
6277
  meta: object;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synap-core/api-types",
3
- "version": "1.5.0",
3
+ "version": "1.6.2",
4
4
  "description": "Type definitions for Synap API Router - tRPC types for frontend",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "typecheck": "tsc --noEmit"
23
23
  },
24
24
  "dependencies": {
25
- "@synap-core/types": "^1.5.0",
25
+ "@synap-core/types": "workspace:*",
26
26
  "yjs": "^13.0.0"
27
27
  },
28
28
  "devDependencies": {
@@ -3371,7 +3371,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3371
3371
  errorMessage: string | null;
3372
3372
  startedAt: Date;
3373
3373
  threadId: string;
3374
- status: "completed" | "failed" | "running";
3374
+ status: "completed" | "running" | "failed";
3375
3375
  commandId: string;
3376
3376
  permissionsSnapshot: Record<string, unknown> | null;
3377
3377
  inputs: Record<string, unknown> | null;
@@ -3397,7 +3397,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3397
3397
  errorMessage: string | null;
3398
3398
  startedAt: Date;
3399
3399
  threadId: string;
3400
- status: "completed" | "failed" | "running";
3400
+ status: "completed" | "running" | "failed";
3401
3401
  commandId: string;
3402
3402
  permissionsSnapshot: Record<string, unknown> | null;
3403
3403
  inputs: Record<string, unknown> | null;
@@ -3424,6 +3424,185 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3424
3424
  };
3425
3425
  meta: object;
3426
3426
  }>;
3427
+ agentDefinitions: import("@trpc/server").TRPCQueryProcedure<{
3428
+ input: Record<string, never>;
3429
+ output: {
3430
+ agents: unknown[];
3431
+ };
3432
+ meta: object;
3433
+ }>;
3434
+ toolDefinitions: import("@trpc/server").TRPCQueryProcedure<{
3435
+ input: Record<string, never>;
3436
+ output: {
3437
+ tools: unknown[];
3438
+ };
3439
+ meta: object;
3440
+ }>;
3441
+ agentConfig: import("@trpc/server").TRPCQueryProcedure<{
3442
+ input: {
3443
+ agentType: string;
3444
+ };
3445
+ output: {
3446
+ config: unknown;
3447
+ };
3448
+ meta: object;
3449
+ }>;
3450
+ saveAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
3451
+ input: {
3452
+ agentType: string;
3453
+ promptAppend?: string | null | undefined;
3454
+ extraToolIds?: string[] | undefined;
3455
+ disabledToolIds?: string[] | undefined;
3456
+ maxStepsOverride?: number | null | undefined;
3457
+ };
3458
+ output: {
3459
+ config: unknown;
3460
+ };
3461
+ meta: object;
3462
+ }>;
3463
+ deleteAgentConfig: import("@trpc/server").TRPCMutationProcedure<{
3464
+ input: {
3465
+ agentType: string;
3466
+ };
3467
+ output: {
3468
+ success: boolean;
3469
+ };
3470
+ meta: object;
3471
+ }>;
3472
+ memoryFacts: import("@trpc/server").TRPCQueryProcedure<{
3473
+ input: {
3474
+ limit?: number | undefined;
3475
+ };
3476
+ output: {
3477
+ facts: any[];
3478
+ };
3479
+ meta: object;
3480
+ }>;
3481
+ searchMemory: import("@trpc/server").TRPCQueryProcedure<{
3482
+ input: {
3483
+ query: string;
3484
+ limit?: number | undefined;
3485
+ };
3486
+ output: {
3487
+ facts: any[];
3488
+ };
3489
+ meta: object;
3490
+ }>;
3491
+ createMemoryFact: import("@trpc/server").TRPCMutationProcedure<{
3492
+ input: {
3493
+ fact: string;
3494
+ confidence?: number | undefined;
3495
+ };
3496
+ output: {
3497
+ fact: any;
3498
+ };
3499
+ meta: object;
3500
+ }>;
3501
+ deleteMemoryFact: import("@trpc/server").TRPCMutationProcedure<{
3502
+ input: {
3503
+ id: string;
3504
+ };
3505
+ output: {
3506
+ success: boolean;
3507
+ };
3508
+ meta: object;
3509
+ }>;
3510
+ skills: import("@trpc/server").TRPCQueryProcedure<{
3511
+ input: Record<string, never>;
3512
+ output: {
3513
+ skills: any[];
3514
+ };
3515
+ meta: object;
3516
+ }>;
3517
+ createSkill: import("@trpc/server").TRPCMutationProcedure<{
3518
+ input: {
3519
+ name: string;
3520
+ description: string;
3521
+ parameters?: Record<string, string> | undefined;
3522
+ category?: "context" | "action" | undefined;
3523
+ };
3524
+ output: {
3525
+ skill: any;
3526
+ };
3527
+ meta: object;
3528
+ }>;
3529
+ executionStats: import("@trpc/server").TRPCQueryProcedure<{
3530
+ input: {
3531
+ since?: string | undefined;
3532
+ };
3533
+ output: {
3534
+ stats: unknown;
3535
+ };
3536
+ meta: object;
3537
+ }>;
3538
+ executions: import("@trpc/server").TRPCQueryProcedure<{
3539
+ input: {
3540
+ limit?: number | undefined;
3541
+ offset?: number | undefined;
3542
+ agentType?: string | undefined;
3543
+ };
3544
+ output: {
3545
+ executions: unknown[];
3546
+ };
3547
+ meta: object;
3548
+ }>;
3549
+ executionDetail: import("@trpc/server").TRPCQueryProcedure<{
3550
+ input: {
3551
+ id: string;
3552
+ };
3553
+ output: {
3554
+ execution: unknown;
3555
+ toolLogs: unknown[];
3556
+ };
3557
+ meta: object;
3558
+ }>;
3559
+ proposals: import("@trpc/server").TRPCQueryProcedure<{
3560
+ input: {
3561
+ status?: "denied" | "pending" | "approved" | undefined;
3562
+ };
3563
+ output: {
3564
+ proposals: any[];
3565
+ };
3566
+ meta: object;
3567
+ }>;
3568
+ approveProposal: import("@trpc/server").TRPCMutationProcedure<{
3569
+ input: {
3570
+ id: string;
3571
+ };
3572
+ output: {
3573
+ success: boolean;
3574
+ };
3575
+ meta: object;
3576
+ }>;
3577
+ denyProposal: import("@trpc/server").TRPCMutationProcedure<{
3578
+ input: {
3579
+ id: string;
3580
+ };
3581
+ output: {
3582
+ success: boolean;
3583
+ };
3584
+ meta: object;
3585
+ }>;
3586
+ startAIChannel: import("@trpc/server").TRPCMutationProcedure<{
3587
+ input: {
3588
+ topic: string;
3589
+ mode?: "debate" | "collaborate" | "critique" | undefined;
3590
+ maxTurns?: number | undefined;
3591
+ personaA?: {
3592
+ name?: string | undefined;
3593
+ agentType?: string | undefined;
3594
+ systemPrompt?: string | undefined;
3595
+ } | undefined;
3596
+ personaB?: {
3597
+ name?: string | undefined;
3598
+ agentType?: string | undefined;
3599
+ systemPrompt?: string | undefined;
3600
+ } | undefined;
3601
+ initialMessage?: string | undefined;
3602
+ };
3603
+ output: any;
3604
+ meta: object;
3605
+ }>;
3427
3606
  }>>;
3428
3607
  capabilities: import("@trpc/server").TRPCBuiltRouter<{
3429
3608
  ctx: Context;
@@ -3539,11 +3718,12 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3539
3718
  input: void;
3540
3719
  output: {
3541
3720
  types: {
3721
+ type: string;
3542
3722
  label: string;
3543
3723
  description: string;
3544
3724
  directionality: "unidirectional" | "bidirectional";
3545
- category: "workflow" | "social" | "reference" | "hierarchy";
3546
- type: string;
3725
+ category: string;
3726
+ source: "workspace";
3547
3727
  }[];
3548
3728
  };
3549
3729
  meta: object;
@@ -3551,7 +3731,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3551
3731
  get: import("@trpc/server").TRPCQueryProcedure<{
3552
3732
  input: {
3553
3733
  entityId: string;
3554
- type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references" | undefined;
3734
+ type?: string | undefined;
3555
3735
  direction?: "source" | "target" | "both" | undefined;
3556
3736
  limit?: number | undefined;
3557
3737
  };
@@ -3572,7 +3752,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3572
3752
  getRelated: import("@trpc/server").TRPCQueryProcedure<{
3573
3753
  input: {
3574
3754
  entityId: string;
3575
- type?: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references" | undefined;
3755
+ type?: string | undefined;
3576
3756
  direction?: "source" | "target" | "both" | undefined;
3577
3757
  limit?: number | undefined;
3578
3758
  };
@@ -3611,9 +3791,9 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
3611
3791
  input: {
3612
3792
  sourceEntityId: string;
3613
3793
  targetEntityId: string;
3614
- type: "created_by" | "depends_on" | "assigned_to" | "mentions" | "links_to" | "parent_of" | "relates_to" | "tagged_with" | "attended_by" | "blocks" | "belongs_to_project" | "embedded_in" | "visualized_in" | "references";
3615
- workspaceId: string;
3794
+ type: string;
3616
3795
  metadata?: Record<string, any> | undefined;
3796
+ workspaceId?: string | undefined;
3617
3797
  };
3618
3798
  output: {
3619
3799
  status: "proposed";
@@ -4024,7 +4204,88 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
4024
4204
  }>;
4025
4205
  createFromDefinition: import("@trpc/server").TRPCMutationProcedure<{
4026
4206
  input: {
4027
- definition: unknown;
4207
+ definition: {
4208
+ [x: string]: unknown;
4209
+ workspaceName?: string | undefined;
4210
+ description?: string | undefined;
4211
+ profiles?: {
4212
+ slug: string;
4213
+ displayName: string;
4214
+ icon?: string | undefined;
4215
+ color?: string | undefined;
4216
+ description?: string | undefined;
4217
+ scope?: string | undefined;
4218
+ properties?: {
4219
+ slug: string;
4220
+ valueType: string;
4221
+ label?: string | undefined;
4222
+ inputType?: string | undefined;
4223
+ placeholder?: string | undefined;
4224
+ enumValues?: string[] | undefined;
4225
+ constraints?: Record<string, unknown> | undefined;
4226
+ }[] | undefined;
4227
+ }[] | undefined;
4228
+ views?: {
4229
+ name: string;
4230
+ type: string;
4231
+ scopeProfileSlug?: string | undefined;
4232
+ scopeProfileSlugs?: string[] | undefined;
4233
+ config?: Record<string, unknown> | undefined;
4234
+ }[] | undefined;
4235
+ bentoLayout?: {
4236
+ widgetType: string;
4237
+ pos: {
4238
+ x: number;
4239
+ y: number;
4240
+ w: number;
4241
+ h: number;
4242
+ };
4243
+ config?: Record<string, unknown> | undefined;
4244
+ }[] | undefined;
4245
+ bentoViewBlocks?: {
4246
+ viewName: string;
4247
+ pos: {
4248
+ x: number;
4249
+ y: number;
4250
+ w: number;
4251
+ h: number;
4252
+ };
4253
+ kind?: "view" | undefined;
4254
+ overrides?: Record<string, unknown> | undefined;
4255
+ }[] | undefined;
4256
+ suggestedEntities?: {
4257
+ profileSlug: string;
4258
+ title: string;
4259
+ properties?: Record<string, unknown> | undefined;
4260
+ content?: string | undefined;
4261
+ }[] | undefined;
4262
+ suggestedRelations?: {
4263
+ sourceRef: string;
4264
+ targetRef: string;
4265
+ type: string;
4266
+ metadata?: Record<string, unknown> | undefined;
4267
+ }[] | undefined;
4268
+ displayTemplates?: {
4269
+ name: string;
4270
+ config: Record<string, unknown>;
4271
+ description?: string | undefined;
4272
+ entityType?: string | undefined;
4273
+ targetType?: string | undefined;
4274
+ isDefault?: boolean | undefined;
4275
+ }[] | undefined;
4276
+ layoutConfig?: {
4277
+ pinnedApps?: string[] | undefined;
4278
+ sidebarApps?: string[] | undefined;
4279
+ defaultView?: string | undefined;
4280
+ theme?: string | undefined;
4281
+ } | undefined;
4282
+ entityLinks?: {
4283
+ sourceProfileSlug: string;
4284
+ targetProfileSlug: string;
4285
+ type: string;
4286
+ label?: string | undefined;
4287
+ }[] | undefined;
4288
+ };
4028
4289
  packageSlug?: string | undefined;
4029
4290
  packageVersion?: string | undefined;
4030
4291
  workspaceName?: string | undefined;
@@ -5777,7 +6038,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5777
6038
  create: import("@trpc/server").TRPCMutationProcedure<{
5778
6039
  input: {
5779
6040
  slug: string;
5780
- valueType: "string" | "number" | "boolean" | "object" | "array" | "date" | "entity_id";
6041
+ valueType: "string" | "number" | "boolean" | "object" | "array" | "date" | "secret" | "entity_id";
5781
6042
  constraints?: Record<string, unknown> | undefined;
5782
6043
  uiHints?: Record<string, unknown> | undefined;
5783
6044
  };
@@ -5810,7 +6071,7 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5810
6071
  input: {
5811
6072
  id: string;
5812
6073
  slug?: string | undefined;
5813
- valueType?: "string" | "number" | "boolean" | "object" | "array" | "date" | "entity_id" | undefined;
6074
+ valueType?: "string" | "number" | "boolean" | "object" | "array" | "date" | "secret" | "entity_id" | undefined;
5814
6075
  constraints?: Record<string, unknown> | undefined;
5815
6076
  uiHints?: Record<string, unknown> | undefined;
5816
6077
  };
@@ -5901,6 +6162,116 @@ export declare const coreRouter: import("@trpc/server").TRPCBuiltRouter<{
5901
6162
  meta: object;
5902
6163
  }>;
5903
6164
  }>>;
6165
+ relationDefs: import("@trpc/server").TRPCBuiltRouter<{
6166
+ ctx: Context;
6167
+ meta: object;
6168
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6169
+ transformer: true;
6170
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6171
+ list: import("@trpc/server").TRPCQueryProcedure<{
6172
+ input: void;
6173
+ output: {
6174
+ relationDefs: {
6175
+ workspaceId: string;
6176
+ userId: string;
6177
+ id: string;
6178
+ updatedAt: Date;
6179
+ createdAt: Date;
6180
+ description: string | null;
6181
+ slug: string;
6182
+ uiHints: unknown;
6183
+ displayName: string;
6184
+ isDirectional: boolean;
6185
+ }[];
6186
+ };
6187
+ meta: object;
6188
+ }>;
6189
+ create: import("@trpc/server").TRPCMutationProcedure<{
6190
+ input: {
6191
+ slug: string;
6192
+ displayName: string;
6193
+ description?: string | undefined;
6194
+ uiHints?: Record<string, unknown> | undefined;
6195
+ isDirectional?: boolean | undefined;
6196
+ };
6197
+ output: {
6198
+ relationDef: {
6199
+ workspaceId: string;
6200
+ userId: string;
6201
+ id: string;
6202
+ updatedAt: Date;
6203
+ createdAt: Date;
6204
+ description: string | null;
6205
+ slug: string;
6206
+ uiHints: unknown;
6207
+ displayName: string;
6208
+ isDirectional: boolean;
6209
+ };
6210
+ };
6211
+ meta: object;
6212
+ }>;
6213
+ delete: import("@trpc/server").TRPCMutationProcedure<{
6214
+ input: {
6215
+ id: string;
6216
+ };
6217
+ output: {
6218
+ success: boolean;
6219
+ };
6220
+ meta: object;
6221
+ }>;
6222
+ }>>;
6223
+ profileRelations: import("@trpc/server").TRPCBuiltRouter<{
6224
+ ctx: Context;
6225
+ meta: object;
6226
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
6227
+ transformer: true;
6228
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6229
+ link: import("@trpc/server").TRPCMutationProcedure<{
6230
+ input: {
6231
+ sourceProfileId: string;
6232
+ targetProfileId: string;
6233
+ relationDefId: string;
6234
+ displayOrder?: number | undefined;
6235
+ metadata?: Record<string, unknown> | undefined;
6236
+ };
6237
+ output: {
6238
+ link: {
6239
+ metadata: unknown;
6240
+ displayOrder: number;
6241
+ sourceProfileId: string;
6242
+ targetProfileId: string;
6243
+ relationDefId: string;
6244
+ };
6245
+ };
6246
+ meta: object;
6247
+ }>;
6248
+ unlink: import("@trpc/server").TRPCMutationProcedure<{
6249
+ input: {
6250
+ sourceProfileId: string;
6251
+ targetProfileId: string;
6252
+ relationDefId: string;
6253
+ };
6254
+ output: {
6255
+ success: boolean;
6256
+ };
6257
+ meta: object;
6258
+ }>;
6259
+ getByProfile: import("@trpc/server").TRPCQueryProcedure<{
6260
+ input: {
6261
+ profileId: string;
6262
+ };
6263
+ output: {
6264
+ relations: {
6265
+ metadata: unknown;
6266
+ displayOrder: number;
6267
+ sourceProfileId: string;
6268
+ targetProfileId: string;
6269
+ relationDefId: string;
6270
+ }[];
6271
+ };
6272
+ meta: object;
6273
+ }>;
6274
+ }>>;
5904
6275
  agentUsers: import("@trpc/server").TRPCBuiltRouter<{
5905
6276
  ctx: Context;
5906
6277
  meta: object;