@inkeep/agents-core 0.0.0-dev-20260102022857 → 0.0.0-dev-20260105194521

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.
@@ -4,7 +4,7 @@ import "../index.js";
4
4
  import { ContextFetchDefinition, ConversationHistoryConfig, ConversationMetadata, MessageContent, MessageMetadata, TaskMetadataConfig, ToolMcpConfig, ToolServerCapabilities } from "../types/utility.js";
5
5
  import { z } from "@hono/zod-openapi";
6
6
  import * as drizzle_orm_pg_core495 from "drizzle-orm/pg-core";
7
- import * as drizzle_zod15 from "drizzle-zod";
7
+ import * as drizzle_zod19 from "drizzle-zod";
8
8
 
9
9
  //#region src/validation/schemas.d.ts
10
10
  declare const StopWhenSchema: z.ZodObject<{
@@ -63,7 +63,7 @@ declare const FunctionToolConfigSchema: z.ZodObject<{
63
63
  type FunctionToolConfig = Omit<z.infer<typeof FunctionToolConfigSchema>, 'execute'> & {
64
64
  execute: ((params: any) => Promise<any>) | string;
65
65
  };
66
- declare const SubAgentSelectSchema: drizzle_zod15.BuildSchema<"select", {
66
+ declare const SubAgentSelectSchema: drizzle_zod19.BuildSchema<"select", {
67
67
  createdAt: drizzle_orm_pg_core495.PgColumn<{
68
68
  name: "created_at";
69
69
  tableName: "sub_agents";
@@ -314,7 +314,7 @@ declare const SubAgentSelectSchema: drizzle_zod15.BuildSchema<"select", {
314
314
  }, {}, {
315
315
  length: 256;
316
316
  }>;
317
- }, drizzle_zod15.BuildRefine<{
317
+ }, drizzle_zod19.BuildRefine<{
318
318
  createdAt: drizzle_orm_pg_core495.PgColumn<{
319
319
  name: "created_at";
320
320
  tableName: "sub_agents";
@@ -648,7 +648,6 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
648
648
  createdAt: z.ZodString;
649
649
  updatedAt: z.ZodString;
650
650
  description: z.ZodNullable<z.ZodString>;
651
- prompt: z.ZodNullable<z.ZodString>;
652
651
  models: z.ZodNullable<z.ZodType<{
653
652
  base?: {
654
653
  model?: string | undefined;
@@ -702,6 +701,7 @@ declare const SubAgentApiSelectSchema: z.ZodObject<{
702
701
  providerOptions?: Record<string, any> | undefined;
703
702
  } | undefined;
704
703
  }>>>;
704
+ prompt: z.ZodNullable<z.ZodString>;
705
705
  stopWhen: z.ZodNullable<z.ZodType<{
706
706
  stepCountIs?: number | undefined;
707
707
  }, {
@@ -719,7 +719,6 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
719
719
  createdAt: z.ZodOptional<z.ZodString>;
720
720
  updatedAt: z.ZodOptional<z.ZodString>;
721
721
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
722
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
723
722
  models: z.ZodOptional<z.ZodObject<{
724
723
  base: z.ZodOptional<z.ZodObject<{
725
724
  model: z.ZodOptional<z.ZodString>;
@@ -734,6 +733,7 @@ declare const SubAgentApiInsertSchema: z.ZodObject<{
734
733
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
735
734
  }, z.core.$strip>>;
736
735
  }, z.core.$strip>>;
736
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
737
737
  stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
738
738
  stepCountIs?: number | undefined;
739
739
  }, {
@@ -751,7 +751,6 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
751
751
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
752
752
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
753
753
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
754
- prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
755
754
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodObject<{
756
755
  base: z.ZodOptional<z.ZodObject<{
757
756
  model: z.ZodOptional<z.ZodString>;
@@ -766,6 +765,7 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
766
765
  providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
767
766
  }, z.core.$strip>>;
768
767
  }, z.core.$strip>>>>;
768
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
769
769
  stopWhen: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
770
770
  stepCountIs?: number | undefined;
771
771
  }, {
@@ -777,7 +777,7 @@ declare const SubAgentApiUpdateSchema: z.ZodObject<{
777
777
  }>>>>>>;
778
778
  conversationHistoryConfig: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>>>;
779
779
  }, z.core.$strip>;
780
- declare const SubAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
780
+ declare const SubAgentRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
781
781
  createdAt: drizzle_orm_pg_core495.PgColumn<{
782
782
  name: "created_at";
783
783
  tableName: "sub_agent_relations";
@@ -945,7 +945,7 @@ declare const SubAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select",
945
945
  }, {}, {
946
946
  length: 256;
947
947
  }>;
948
- }, drizzle_zod15.BuildRefine<{
948
+ }, drizzle_zod19.BuildRefine<{
949
949
  createdAt: drizzle_orm_pg_core495.PgColumn<{
950
950
  name: "created_at";
951
951
  tableName: "sub_agent_relations";
@@ -1211,7 +1211,7 @@ declare const ExternalSubAgentRelationApiInsertSchema: z.ZodObject<{
1211
1211
  relationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
1212
  externalSubAgentId: z.ZodString;
1213
1213
  }, z.core.$strip>;
1214
- declare const AgentSelectSchema: drizzle_zod15.BuildSchema<"select", {
1214
+ declare const AgentSelectSchema: drizzle_zod19.BuildSchema<"select", {
1215
1215
  createdAt: drizzle_orm_pg_core495.PgColumn<{
1216
1216
  name: "created_at";
1217
1217
  tableName: "agent";
@@ -1509,7 +1509,7 @@ declare const AgentSelectSchema: drizzle_zod15.BuildSchema<"select", {
1509
1509
  }, {}, {
1510
1510
  length: 256;
1511
1511
  }>;
1512
- }, drizzle_zod15.BuildRefine<{
1512
+ }, drizzle_zod19.BuildRefine<{
1513
1513
  createdAt: drizzle_orm_pg_core495.PgColumn<{
1514
1514
  name: "created_at";
1515
1515
  tableName: "agent";
@@ -1808,7 +1808,7 @@ declare const AgentSelectSchema: drizzle_zod15.BuildSchema<"select", {
1808
1808
  length: 256;
1809
1809
  }>;
1810
1810
  }, undefined>, undefined>;
1811
- declare const AgentInsertSchema: drizzle_zod15.BuildSchema<"insert", {
1811
+ declare const AgentInsertSchema: drizzle_zod19.BuildSchema<"insert", {
1812
1812
  createdAt: drizzle_orm_pg_core495.PgColumn<{
1813
1813
  name: "created_at";
1814
1814
  tableName: "agent";
@@ -2106,7 +2106,7 @@ declare const AgentInsertSchema: drizzle_zod15.BuildSchema<"insert", {
2106
2106
  }, {}, {
2107
2107
  length: 256;
2108
2108
  }>;
2109
- }, drizzle_zod15.BuildRefine<Pick<{
2109
+ }, drizzle_zod19.BuildRefine<Pick<{
2110
2110
  createdAt: drizzle_orm_pg_core495.PgColumn<{
2111
2111
  name: "created_at";
2112
2112
  tableName: "agent";
@@ -2404,7 +2404,7 @@ declare const AgentInsertSchema: drizzle_zod15.BuildSchema<"insert", {
2404
2404
  }, {}, {
2405
2405
  length: 256;
2406
2406
  }>;
2407
- }, "id" | "name" | "createdAt" | "updatedAt" | "description" | "tenantId" | "projectId" | "prompt" | "models" | "stopWhen" | "defaultSubAgentId" | "contextConfigId" | "statusUpdates">, undefined>, undefined>;
2407
+ }, "id" | "name" | "createdAt" | "updatedAt" | "description" | "projectId" | "tenantId" | "defaultSubAgentId" | "contextConfigId" | "models" | "prompt" | "statusUpdates" | "stopWhen">, undefined>, undefined>;
2408
2408
  declare const AgentUpdateSchema: z.ZodObject<{
2409
2409
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
2410
2410
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -2545,7 +2545,8 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2545
2545
  createdAt: z.ZodString;
2546
2546
  updatedAt: z.ZodString;
2547
2547
  description: z.ZodNullable<z.ZodString>;
2548
- prompt: z.ZodNullable<z.ZodString>;
2548
+ defaultSubAgentId: z.ZodNullable<z.ZodString>;
2549
+ contextConfigId: z.ZodNullable<z.ZodString>;
2549
2550
  models: z.ZodNullable<z.ZodType<{
2550
2551
  base?: {
2551
2552
  model?: string | undefined;
@@ -2599,17 +2600,7 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2599
2600
  providerOptions?: Record<string, any> | undefined;
2600
2601
  } | undefined;
2601
2602
  }>>>;
2602
- stopWhen: z.ZodNullable<z.ZodType<{
2603
- transferCountIs?: number | undefined;
2604
- }, {
2605
- transferCountIs?: number | undefined;
2606
- }, z.core.$ZodTypeInternals<{
2607
- transferCountIs?: number | undefined;
2608
- }, {
2609
- transferCountIs?: number | undefined;
2610
- }>>>;
2611
- defaultSubAgentId: z.ZodNullable<z.ZodString>;
2612
- contextConfigId: z.ZodNullable<z.ZodString>;
2603
+ prompt: z.ZodNullable<z.ZodString>;
2613
2604
  statusUpdates: z.ZodNullable<z.ZodType<{
2614
2605
  enabled?: boolean | undefined;
2615
2606
  numEvents?: number | undefined;
@@ -2667,13 +2658,23 @@ declare const AgentApiSelectSchema: z.ZodObject<{
2667
2658
  } | undefined;
2668
2659
  }[] | undefined;
2669
2660
  }>>>;
2661
+ stopWhen: z.ZodNullable<z.ZodType<{
2662
+ transferCountIs?: number | undefined;
2663
+ }, {
2664
+ transferCountIs?: number | undefined;
2665
+ }, z.core.$ZodTypeInternals<{
2666
+ transferCountIs?: number | undefined;
2667
+ }, {
2668
+ transferCountIs?: number | undefined;
2669
+ }>>>;
2670
2670
  }, z.core.$strip>;
2671
2671
  declare const AgentApiInsertSchema: z.ZodObject<{
2672
2672
  name: z.ZodString;
2673
2673
  createdAt: z.ZodOptional<z.ZodString>;
2674
2674
  updatedAt: z.ZodOptional<z.ZodString>;
2675
2675
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2676
- prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2676
+ defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2677
+ contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2677
2678
  models: z.ZodOptional<z.ZodNullable<z.ZodType<{
2678
2679
  base?: {
2679
2680
  model?: string | undefined;
@@ -2727,17 +2728,7 @@ declare const AgentApiInsertSchema: z.ZodObject<{
2727
2728
  providerOptions?: Record<string, any> | undefined;
2728
2729
  } | undefined;
2729
2730
  }>>>>;
2730
- stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
2731
- transferCountIs?: number | undefined;
2732
- }, {
2733
- transferCountIs?: number | undefined;
2734
- }, z.core.$ZodTypeInternals<{
2735
- transferCountIs?: number | undefined;
2736
- }, {
2737
- transferCountIs?: number | undefined;
2738
- }>>>>;
2739
- defaultSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2740
- contextConfigId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2731
+ prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2741
2732
  statusUpdates: z.ZodOptional<z.ZodNullable<z.ZodType<{
2742
2733
  enabled?: boolean | undefined;
2743
2734
  numEvents?: number | undefined;
@@ -2795,6 +2786,15 @@ declare const AgentApiInsertSchema: z.ZodObject<{
2795
2786
  } | undefined;
2796
2787
  }[] | undefined;
2797
2788
  }>>>>;
2789
+ stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
2790
+ transferCountIs?: number | undefined;
2791
+ }, {
2792
+ transferCountIs?: number | undefined;
2793
+ }, z.core.$ZodTypeInternals<{
2794
+ transferCountIs?: number | undefined;
2795
+ }, {
2796
+ transferCountIs?: number | undefined;
2797
+ }>>>>;
2798
2798
  id: z.ZodString;
2799
2799
  }, z.core.$strip>;
2800
2800
  declare const AgentApiUpdateSchema: z.ZodObject<{
@@ -2803,7 +2803,8 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
2803
2803
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2804
2804
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
2805
2805
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2806
- prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2806
+ defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2807
+ contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2807
2808
  models: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2808
2809
  base?: {
2809
2810
  model?: string | undefined;
@@ -2857,17 +2858,7 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
2857
2858
  providerOptions?: Record<string, any> | undefined;
2858
2859
  } | undefined;
2859
2860
  }>>>>>>;
2860
- stopWhen: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2861
- transferCountIs?: number | undefined;
2862
- }, {
2863
- transferCountIs?: number | undefined;
2864
- }, z.core.$ZodTypeInternals<{
2865
- transferCountIs?: number | undefined;
2866
- }, {
2867
- transferCountIs?: number | undefined;
2868
- }>>>>>>;
2869
- defaultSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2870
- contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2861
+ prompt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
2871
2862
  statusUpdates: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2872
2863
  enabled?: boolean | undefined;
2873
2864
  numEvents?: number | undefined;
@@ -2925,8 +2916,17 @@ declare const AgentApiUpdateSchema: z.ZodObject<{
2925
2916
  } | undefined;
2926
2917
  }[] | undefined;
2927
2918
  }>>>>>>;
2919
+ stopWhen: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
2920
+ transferCountIs?: number | undefined;
2921
+ }, {
2922
+ transferCountIs?: number | undefined;
2923
+ }, z.core.$ZodTypeInternals<{
2924
+ transferCountIs?: number | undefined;
2925
+ }, {
2926
+ transferCountIs?: number | undefined;
2927
+ }>>>>>>;
2928
2928
  }, z.core.$strip>;
2929
- declare const TaskSelectSchema: drizzle_zod15.BuildSchema<"select", {
2929
+ declare const TaskSelectSchema: drizzle_zod19.BuildSchema<"select", {
2930
2930
  createdAt: drizzle_orm_pg_core495.PgColumn<{
2931
2931
  name: "created_at";
2932
2932
  tableName: "tasks";
@@ -3113,7 +3113,7 @@ declare const TaskSelectSchema: drizzle_zod15.BuildSchema<"select", {
3113
3113
  }, {}, {
3114
3114
  length: 256;
3115
3115
  }>;
3116
- }, drizzle_zod15.BuildRefine<{
3116
+ }, drizzle_zod19.BuildRefine<{
3117
3117
  createdAt: drizzle_orm_pg_core495.PgColumn<{
3118
3118
  name: "created_at";
3119
3119
  tableName: "tasks";
@@ -3350,8 +3350,8 @@ declare const TaskApiInsertSchema: z.ZodObject<{
3350
3350
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>;
3351
3351
  status: z.ZodString;
3352
3352
  agentId: z.ZodString;
3353
- conversationId: z.ZodOptional<z.ZodString>;
3354
3353
  contextId: z.ZodString;
3354
+ conversationId: z.ZodOptional<z.ZodString>;
3355
3355
  subAgentId: z.ZodString;
3356
3356
  }, z.core.$strip>;
3357
3357
  declare const TaskApiUpdateSchema: z.ZodObject<{
@@ -3361,11 +3361,11 @@ declare const TaskApiUpdateSchema: z.ZodObject<{
3361
3361
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<TaskMetadataConfig, TaskMetadataConfig, z.core.$ZodTypeInternals<TaskMetadataConfig, TaskMetadataConfig>>>>>>;
3362
3362
  status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3363
3363
  agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3364
- conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3365
3364
  contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3365
+ conversationId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
3366
3366
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
3367
3367
  }, z.core.$strip>;
3368
- declare const TaskRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
3368
+ declare const TaskRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
3369
3369
  createdAt: drizzle_orm_pg_core495.PgColumn<{
3370
3370
  name: "created_at";
3371
3371
  tableName: "task_relations";
@@ -3514,7 +3514,7 @@ declare const TaskRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
3514
3514
  }, {}, {
3515
3515
  length: 256;
3516
3516
  }>;
3517
- }, drizzle_zod15.BuildRefine<{
3517
+ }, drizzle_zod19.BuildRefine<{
3518
3518
  createdAt: drizzle_orm_pg_core495.PgColumn<{
3519
3519
  name: "created_at";
3520
3520
  tableName: "task_relations";
@@ -3735,7 +3735,7 @@ declare const McpToolDefinitionSchema: z.ZodObject<{
3735
3735
  description: z.ZodOptional<z.ZodString>;
3736
3736
  inputSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3737
3737
  }, z.core.$strip>;
3738
- declare const ToolSelectSchema: drizzle_zod15.BuildSchema<"select", {
3738
+ declare const ToolSelectSchema: drizzle_zod19.BuildSchema<"select", {
3739
3739
  createdAt: drizzle_orm_pg_core495.PgColumn<{
3740
3740
  name: "created_at";
3741
3741
  tableName: "tools";
@@ -3998,7 +3998,7 @@ declare const ToolSelectSchema: drizzle_zod15.BuildSchema<"select", {
3998
3998
  }, {}, {
3999
3999
  length: 256;
4000
4000
  }>;
4001
- }, drizzle_zod15.BuildRefine<{
4001
+ }, drizzle_zod19.BuildRefine<{
4002
4002
  createdAt: drizzle_orm_pg_core495.PgColumn<{
4003
4003
  name: "created_at";
4004
4004
  tableName: "tools";
@@ -4299,7 +4299,7 @@ declare const ToolInsertSchema: z.ZodObject<{
4299
4299
  out: {};
4300
4300
  in: {};
4301
4301
  }>;
4302
- declare const ConversationSelectSchema: drizzle_zod15.BuildSchema<"select", {
4302
+ declare const ConversationSelectSchema: drizzle_zod19.BuildSchema<"select", {
4303
4303
  createdAt: drizzle_orm_pg_core495.PgColumn<{
4304
4304
  name: "created_at";
4305
4305
  tableName: "conversations";
@@ -4482,7 +4482,7 @@ declare const ConversationSelectSchema: drizzle_zod15.BuildSchema<"select", {
4482
4482
  }, {}, {
4483
4483
  length: 256;
4484
4484
  }>;
4485
- }, drizzle_zod15.BuildRefine<{
4485
+ }, drizzle_zod19.BuildRefine<{
4486
4486
  createdAt: drizzle_orm_pg_core495.PgColumn<{
4487
4487
  name: "created_at";
4488
4488
  tableName: "conversations";
@@ -4714,8 +4714,8 @@ declare const ConversationApiInsertSchema: z.ZodObject<{
4714
4714
  updatedAt: z.ZodOptional<z.ZodString>;
4715
4715
  userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4716
4716
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>;
4717
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4718
4717
  contextConfigId: z.ZodOptional<z.ZodString>;
4718
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4719
4719
  activeSubAgentId: z.ZodString;
4720
4720
  lastContextResolution: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4721
4721
  }, z.core.$strip>;
@@ -4725,12 +4725,12 @@ declare const ConversationApiUpdateSchema: z.ZodObject<{
4725
4725
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4726
4726
  userId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4727
4727
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ConversationMetadata, ConversationMetadata, z.core.$ZodTypeInternals<ConversationMetadata, ConversationMetadata>>>>>>;
4728
- title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4729
4728
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
4729
+ title: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4730
4730
  activeSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
4731
4731
  lastContextResolution: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
4732
4732
  }, z.core.$strip>;
4733
- declare const MessageSelectSchema: drizzle_zod15.BuildSchema<"select", {
4733
+ declare const MessageSelectSchema: drizzle_zod19.BuildSchema<"select", {
4734
4734
  createdAt: drizzle_orm_pg_core495.PgColumn<{
4735
4735
  name: "created_at";
4736
4736
  tableName: "messages";
@@ -5126,7 +5126,7 @@ declare const MessageSelectSchema: drizzle_zod15.BuildSchema<"select", {
5126
5126
  }, {}, {
5127
5127
  length: 256;
5128
5128
  }>;
5129
- }, drizzle_zod15.BuildRefine<{
5129
+ }, drizzle_zod19.BuildRefine<{
5130
5130
  createdAt: drizzle_orm_pg_core495.PgColumn<{
5131
5131
  name: "created_at";
5132
5132
  tableName: "messages";
@@ -5582,6 +5582,8 @@ declare const MessageApiSelectSchema: z.ZodObject<{
5582
5582
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
5583
5583
  role: z.ZodString;
5584
5584
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5585
+ taskId: z.ZodNullable<z.ZodString>;
5586
+ visibility: z.ZodString;
5585
5587
  conversationId: z.ZodString;
5586
5588
  fromSubAgentId: z.ZodNullable<z.ZodString>;
5587
5589
  toSubAgentId: z.ZodNullable<z.ZodString>;
@@ -5589,9 +5591,7 @@ declare const MessageApiSelectSchema: z.ZodObject<{
5589
5591
  toExternalAgentId: z.ZodNullable<z.ZodString>;
5590
5592
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
5591
5593
  toTeamAgentId: z.ZodNullable<z.ZodString>;
5592
- visibility: z.ZodString;
5593
5594
  messageType: z.ZodString;
5594
- taskId: z.ZodNullable<z.ZodString>;
5595
5595
  parentMessageId: z.ZodNullable<z.ZodString>;
5596
5596
  a2aTaskId: z.ZodNullable<z.ZodString>;
5597
5597
  a2aSessionId: z.ZodNullable<z.ZodString>;
@@ -5603,6 +5603,8 @@ declare const MessageApiInsertSchema: z.ZodObject<{
5603
5603
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>;
5604
5604
  role: z.ZodString;
5605
5605
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
5606
+ taskId: z.ZodOptional<z.ZodString>;
5607
+ visibility: z.ZodOptional<z.ZodString>;
5606
5608
  conversationId: z.ZodString;
5607
5609
  fromSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5608
5610
  toSubAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5610,9 +5612,7 @@ declare const MessageApiInsertSchema: z.ZodObject<{
5610
5612
  toExternalAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5611
5613
  fromTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5612
5614
  toTeamAgentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5613
- visibility: z.ZodOptional<z.ZodString>;
5614
5615
  messageType: z.ZodOptional<z.ZodString>;
5615
- taskId: z.ZodOptional<z.ZodString>;
5616
5616
  parentMessageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5617
5617
  a2aTaskId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5618
5618
  a2aSessionId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -5624,6 +5624,8 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
5624
5624
  metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>>>>;
5625
5625
  role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5626
5626
  content: z.ZodOptional<z.ZodOptional<z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>>>;
5627
+ taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5628
+ visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5627
5629
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5628
5630
  fromSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5629
5631
  toSubAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
@@ -5631,14 +5633,12 @@ declare const MessageApiUpdateSchema: z.ZodObject<{
5631
5633
  toExternalAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5632
5634
  fromTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5633
5635
  toTeamAgentId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5634
- visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5635
5636
  messageType: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5636
- taskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
5637
5637
  parentMessageId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5638
5638
  a2aTaskId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5639
5639
  a2aSessionId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
5640
5640
  }, z.core.$strip>;
5641
- declare const ContextCacheSelectSchema: drizzle_zod15.BuildSchema<"select", {
5641
+ declare const ContextCacheSelectSchema: drizzle_zod19.BuildSchema<"select", {
5642
5642
  createdAt: drizzle_orm_pg_core495.PgColumn<{
5643
5643
  name: "created_at";
5644
5644
  tableName: "context_cache";
@@ -5878,7 +5878,7 @@ declare const ContextCacheSelectSchema: drizzle_zod15.BuildSchema<"select", {
5878
5878
  }, {}, {
5879
5879
  length: 256;
5880
5880
  }>;
5881
- }, drizzle_zod15.BuildRefine<{
5881
+ }, drizzle_zod19.BuildRefine<{
5882
5882
  createdAt: drizzle_orm_pg_core495.PgColumn<{
5883
5883
  name: "created_at";
5884
5884
  tableName: "context_cache";
@@ -6119,7 +6119,7 @@ declare const ContextCacheSelectSchema: drizzle_zod15.BuildSchema<"select", {
6119
6119
  length: 256;
6120
6120
  }>;
6121
6121
  }, undefined>, undefined>;
6122
- declare const ContextCacheInsertSchema: drizzle_zod15.BuildSchema<"insert", {
6122
+ declare const ContextCacheInsertSchema: drizzle_zod19.BuildSchema<"insert", {
6123
6123
  createdAt: drizzle_orm_pg_core495.PgColumn<{
6124
6124
  name: "created_at";
6125
6125
  tableName: "context_cache";
@@ -6359,7 +6359,7 @@ declare const ContextCacheInsertSchema: drizzle_zod15.BuildSchema<"insert", {
6359
6359
  }, {}, {
6360
6360
  length: 256;
6361
6361
  }>;
6362
- }, drizzle_zod15.BuildRefine<Pick<{
6362
+ }, drizzle_zod19.BuildRefine<Pick<{
6363
6363
  createdAt: drizzle_orm_pg_core495.PgColumn<{
6364
6364
  name: "created_at";
6365
6365
  tableName: "context_cache";
@@ -6599,14 +6599,14 @@ declare const ContextCacheInsertSchema: drizzle_zod15.BuildSchema<"insert", {
6599
6599
  }, {}, {
6600
6600
  length: 256;
6601
6601
  }>;
6602
- }, "id" | "createdAt" | "updatedAt" | "value" | "tenantId" | "projectId" | "contextConfigId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
6602
+ }, "id" | "createdAt" | "updatedAt" | "value" | "projectId" | "tenantId" | "contextConfigId" | "conversationId" | "contextVariableKey" | "requestHash" | "fetchedAt" | "fetchSource" | "fetchDurationMs">, undefined>, undefined>;
6603
6603
  declare const ContextCacheUpdateSchema: z.ZodObject<{
6604
6604
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6605
6605
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6606
6606
  conversationId: z.ZodOptional<z.ZodString>;
6607
6607
  contextConfigId: z.ZodOptional<z.ZodString>;
6608
6608
  contextVariableKey: z.ZodOptional<z.ZodString>;
6609
- value: z.ZodOptional<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
6609
+ value: z.ZodOptional<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
6610
6610
  requestHash: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
6611
6611
  fetchedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6612
6612
  fetchSource: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -6622,7 +6622,7 @@ declare const ContextCacheApiSelectSchema: z.ZodObject<{
6622
6622
  id: z.ZodString;
6623
6623
  createdAt: z.ZodString;
6624
6624
  updatedAt: z.ZodString;
6625
- value: z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>;
6625
+ value: z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>;
6626
6626
  contextConfigId: z.ZodString;
6627
6627
  conversationId: z.ZodString;
6628
6628
  contextVariableKey: z.ZodString;
@@ -6635,7 +6635,7 @@ declare const ContextCacheApiInsertSchema: z.ZodObject<{
6635
6635
  id: z.ZodString;
6636
6636
  createdAt: z.ZodOptional<z.ZodString>;
6637
6637
  updatedAt: z.ZodOptional<z.ZodString>;
6638
- value: z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>;
6638
+ value: z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>;
6639
6639
  contextConfigId: z.ZodString;
6640
6640
  conversationId: z.ZodString;
6641
6641
  contextVariableKey: z.ZodString;
@@ -6648,7 +6648,7 @@ declare const ContextCacheApiUpdateSchema: z.ZodObject<{
6648
6648
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6649
6649
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6650
6650
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
6651
- value: z.ZodOptional<z.ZodOptional<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
6651
+ value: z.ZodOptional<z.ZodOptional<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>;
6652
6652
  contextConfigId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6653
6653
  conversationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
6654
6654
  contextVariableKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -6657,7 +6657,7 @@ declare const ContextCacheApiUpdateSchema: z.ZodObject<{
6657
6657
  fetchSource: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
6658
6658
  fetchDurationMs: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodInt>>>>;
6659
6659
  }, z.core.$strip>;
6660
- declare const DataComponentSelectSchema: drizzle_zod15.BuildSchema<"select", {
6660
+ declare const DataComponentSelectSchema: drizzle_zod19.BuildSchema<"select", {
6661
6661
  createdAt: drizzle_orm_pg_core495.PgColumn<{
6662
6662
  name: "created_at";
6663
6663
  tableName: "data_components";
@@ -6829,7 +6829,7 @@ declare const DataComponentSelectSchema: drizzle_zod15.BuildSchema<"select", {
6829
6829
  }, {}, {
6830
6830
  length: 256;
6831
6831
  }>;
6832
- }, drizzle_zod15.BuildRefine<{
6832
+ }, drizzle_zod19.BuildRefine<{
6833
6833
  createdAt: drizzle_orm_pg_core495.PgColumn<{
6834
6834
  name: "created_at";
6835
6835
  tableName: "data_components";
@@ -7032,8 +7032,8 @@ declare const DataComponentBaseSchema: z.ZodObject<{
7032
7032
  id: z.ZodString;
7033
7033
  name: z.ZodString;
7034
7034
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7035
- tenantId: z.ZodString;
7036
7035
  projectId: z.ZodString;
7036
+ tenantId: z.ZodString;
7037
7037
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
7038
7038
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
7039
7039
  component: string;
@@ -7141,7 +7141,7 @@ declare const DataComponentApiUpdateSchema: z.ZodObject<{
7141
7141
  mockData: Record<string, unknown>;
7142
7142
  }>>>>>>;
7143
7143
  }, z.core.$strip>;
7144
- declare const SubAgentDataComponentSelectSchema: drizzle_zod15.BuildSchema<"select", {
7144
+ declare const SubAgentDataComponentSelectSchema: drizzle_zod19.BuildSchema<"select", {
7145
7145
  dataComponentId: drizzle_orm_pg_core495.PgColumn<{
7146
7146
  name: "data_component_id";
7147
7147
  tableName: "sub_agent_data_components";
@@ -7273,7 +7273,7 @@ declare const SubAgentDataComponentSelectSchema: drizzle_zod15.BuildSchema<"sele
7273
7273
  }, {}, {
7274
7274
  length: 256;
7275
7275
  }>;
7276
- }, drizzle_zod15.BuildRefine<{
7276
+ }, drizzle_zod19.BuildRefine<{
7277
7277
  dataComponentId: drizzle_orm_pg_core495.PgColumn<{
7278
7278
  name: "data_component_id";
7279
7279
  tableName: "sub_agent_data_components";
@@ -7406,7 +7406,7 @@ declare const SubAgentDataComponentSelectSchema: drizzle_zod15.BuildSchema<"sele
7406
7406
  length: 256;
7407
7407
  }>;
7408
7408
  }, undefined>, undefined>;
7409
- declare const SubAgentDataComponentInsertSchema: drizzle_zod15.BuildSchema<"insert", {
7409
+ declare const SubAgentDataComponentInsertSchema: drizzle_zod19.BuildSchema<"insert", {
7410
7410
  dataComponentId: drizzle_orm_pg_core495.PgColumn<{
7411
7411
  name: "data_component_id";
7412
7412
  tableName: "sub_agent_data_components";
@@ -7538,7 +7538,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod15.BuildSchema<"inse
7538
7538
  }, {}, {
7539
7539
  length: 256;
7540
7540
  }>;
7541
- }, drizzle_zod15.BuildRefine<Pick<{
7541
+ }, drizzle_zod19.BuildRefine<Pick<{
7542
7542
  dataComponentId: drizzle_orm_pg_core495.PgColumn<{
7543
7543
  name: "data_component_id";
7544
7544
  tableName: "sub_agent_data_components";
@@ -7670,7 +7670,7 @@ declare const SubAgentDataComponentInsertSchema: drizzle_zod15.BuildSchema<"inse
7670
7670
  }, {}, {
7671
7671
  length: 256;
7672
7672
  }>;
7673
- }, "id" | "createdAt" | "tenantId" | "projectId" | "agentId" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
7673
+ }, "id" | "createdAt" | "agentId" | "projectId" | "tenantId" | "subAgentId" | "dataComponentId">, undefined>, undefined>;
7674
7674
  declare const SubAgentDataComponentUpdateSchema: z.ZodObject<{
7675
7675
  dataComponentId: z.ZodOptional<z.ZodString>;
7676
7676
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -7703,7 +7703,7 @@ declare const SubAgentDataComponentApiUpdateSchema: z.ZodObject<{
7703
7703
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7704
7704
  dataComponentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7705
7705
  }, z.core.$strip>;
7706
- declare const ArtifactComponentSelectSchema: drizzle_zod15.BuildSchema<"select", {
7706
+ declare const ArtifactComponentSelectSchema: drizzle_zod19.BuildSchema<"select", {
7707
7707
  createdAt: drizzle_orm_pg_core495.PgColumn<{
7708
7708
  name: "created_at";
7709
7709
  tableName: "artifact_components";
@@ -7850,7 +7850,7 @@ declare const ArtifactComponentSelectSchema: drizzle_zod15.BuildSchema<"select",
7850
7850
  }, {}, {
7851
7851
  length: 256;
7852
7852
  }>;
7853
- }, drizzle_zod15.BuildRefine<{
7853
+ }, drizzle_zod19.BuildRefine<{
7854
7854
  createdAt: drizzle_orm_pg_core495.PgColumn<{
7855
7855
  name: "created_at";
7856
7856
  tableName: "artifact_components";
@@ -8049,7 +8049,7 @@ declare const ArtifactComponentApiUpdateSchema: z.ZodObject<{
8049
8049
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
8050
8050
  props: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>>>;
8051
8051
  }, z.core.$strip>;
8052
- declare const SubAgentArtifactComponentSelectSchema: drizzle_zod15.BuildSchema<"select", {
8052
+ declare const SubAgentArtifactComponentSelectSchema: drizzle_zod19.BuildSchema<"select", {
8053
8053
  artifactComponentId: drizzle_orm_pg_core495.PgColumn<{
8054
8054
  name: "artifact_component_id";
8055
8055
  tableName: "sub_agent_artifact_components";
@@ -8181,7 +8181,7 @@ declare const SubAgentArtifactComponentSelectSchema: drizzle_zod15.BuildSchema<"
8181
8181
  }, {}, {
8182
8182
  length: 256;
8183
8183
  }>;
8184
- }, drizzle_zod15.BuildRefine<{
8184
+ }, drizzle_zod19.BuildRefine<{
8185
8185
  artifactComponentId: drizzle_orm_pg_core495.PgColumn<{
8186
8186
  name: "artifact_component_id";
8187
8187
  tableName: "sub_agent_artifact_components";
@@ -8433,7 +8433,6 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8433
8433
  createdAt: z.ZodString;
8434
8434
  updatedAt: z.ZodString;
8435
8435
  description: z.ZodNullable<z.ZodString>;
8436
- prompt: z.ZodNullable<z.ZodString>;
8437
8436
  models: z.ZodNullable<z.ZodType<{
8438
8437
  base?: {
8439
8438
  model?: string | undefined;
@@ -8487,6 +8486,7 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8487
8486
  providerOptions?: Record<string, any> | undefined;
8488
8487
  } | undefined;
8489
8488
  }>>>;
8489
+ prompt: z.ZodNullable<z.ZodString>;
8490
8490
  stopWhen: z.ZodNullable<z.ZodType<{
8491
8491
  stepCountIs?: number | undefined;
8492
8492
  }, {
@@ -8508,7 +8508,7 @@ declare const AllAgentSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
8508
8508
  baseUrl: z.ZodString;
8509
8509
  type: z.ZodLiteral<"external">;
8510
8510
  }, z.core.$strip>], "type">;
8511
- declare const ApiKeySelectSchema: drizzle_zod15.BuildSchema<"select", {
8511
+ declare const ApiKeySelectSchema: drizzle_zod19.BuildSchema<"select", {
8512
8512
  createdAt: drizzle_orm_pg_core495.PgColumn<{
8513
8513
  name: "created_at";
8514
8514
  tableName: "api_keys";
@@ -8729,7 +8729,7 @@ declare const ApiKeySelectSchema: drizzle_zod15.BuildSchema<"select", {
8729
8729
  }, {}, {
8730
8730
  length: 256;
8731
8731
  }>;
8732
- }, drizzle_zod15.BuildRefine<{
8732
+ }, drizzle_zod19.BuildRefine<{
8733
8733
  createdAt: drizzle_orm_pg_core495.PgColumn<{
8734
8734
  name: "created_at";
8735
8735
  tableName: "api_keys";
@@ -9031,7 +9031,7 @@ declare const ApiKeyApiUpdateSchema: z.ZodObject<{
9031
9031
  out: {};
9032
9032
  in: {};
9033
9033
  }>;
9034
- declare const CredentialReferenceSelectSchema: drizzle_zod15.BuildSchema<"select", {
9034
+ declare const CredentialReferenceSelectSchema: drizzle_zod19.BuildSchema<"select", {
9035
9035
  createdAt: drizzle_orm_pg_core495.PgColumn<{
9036
9036
  name: "created_at";
9037
9037
  tableName: "credential_references";
@@ -9256,7 +9256,7 @@ declare const CredentialReferenceSelectSchema: drizzle_zod15.BuildSchema<"select
9256
9256
  }, {}, {
9257
9257
  length: 256;
9258
9258
  }>;
9259
- }, drizzle_zod15.BuildRefine<{
9259
+ }, drizzle_zod19.BuildRefine<{
9260
9260
  createdAt: drizzle_orm_pg_core495.PgColumn<{
9261
9261
  name: "created_at";
9262
9262
  tableName: "credential_references";
@@ -9531,7 +9531,7 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
9531
9531
  readonly keychain: "keychain";
9532
9532
  readonly nango: "nango";
9533
9533
  }>;
9534
- tools: z.ZodOptional<z.ZodArray<drizzle_zod15.BuildSchema<"select", {
9534
+ tools: z.ZodOptional<z.ZodArray<drizzle_zod19.BuildSchema<"select", {
9535
9535
  createdAt: drizzle_orm_pg_core495.PgColumn<{
9536
9536
  name: "created_at";
9537
9537
  tableName: "tools";
@@ -9794,7 +9794,7 @@ declare const CredentialReferenceApiSelectSchema: z.ZodObject<{
9794
9794
  }, {}, {
9795
9795
  length: 256;
9796
9796
  }>;
9797
- }, drizzle_zod15.BuildRefine<{
9797
+ }, drizzle_zod19.BuildRefine<{
9798
9798
  createdAt: drizzle_orm_pg_core495.PgColumn<{
9799
9799
  name: "created_at";
9800
9800
  tableName: "tools";
@@ -10393,7 +10393,7 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
10393
10393
  capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
10394
10394
  lastError: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
10395
10395
  }, z.core.$strip>;
10396
- declare const FunctionToolSelectSchema: drizzle_zod15.BuildSchema<"select", {
10396
+ declare const FunctionToolSelectSchema: drizzle_zod19.BuildSchema<"select", {
10397
10397
  createdAt: drizzle_orm_pg_core495.PgColumn<{
10398
10398
  name: "created_at";
10399
10399
  tableName: "function_tools";
@@ -10559,7 +10559,7 @@ declare const FunctionToolSelectSchema: drizzle_zod15.BuildSchema<"select", {
10559
10559
  }, {}, {
10560
10560
  length: 256;
10561
10561
  }>;
10562
- }, drizzle_zod15.BuildRefine<{
10562
+ }, drizzle_zod19.BuildRefine<{
10563
10563
  createdAt: drizzle_orm_pg_core495.PgColumn<{
10564
10564
  name: "created_at";
10565
10565
  tableName: "function_tools";
@@ -10780,7 +10780,7 @@ declare const FunctionToolApiUpdateSchema: z.ZodObject<{
10780
10780
  agentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10781
10781
  functionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10782
10782
  }, z.core.$strip>;
10783
- declare const FunctionSelectSchema: drizzle_zod15.BuildSchema<"select", {
10783
+ declare const FunctionSelectSchema: drizzle_zod19.BuildSchema<"select", {
10784
10784
  createdAt: drizzle_orm_pg_core495.PgColumn<{
10785
10785
  name: "created_at";
10786
10786
  tableName: "functions";
@@ -10927,7 +10927,7 @@ declare const FunctionSelectSchema: drizzle_zod15.BuildSchema<"select", {
10927
10927
  }, {}, {
10928
10928
  length: 256;
10929
10929
  }>;
10930
- }, drizzle_zod15.BuildRefine<{
10930
+ }, drizzle_zod19.BuildRefine<{
10931
10931
  createdAt: drizzle_orm_pg_core495.PgColumn<{
10932
10932
  name: "created_at";
10933
10933
  tableName: "functions";
@@ -11196,22 +11196,22 @@ declare const ContextConfigSelectSchema: z.ZodObject<{
11196
11196
  }>;
11197
11197
  declare const ContextConfigInsertSchema: z.ZodObject<{
11198
11198
  id: z.ZodOptional<z.ZodString>;
11199
- tenantId: z.ZodString;
11200
- projectId: z.ZodString;
11201
- agentId: z.ZodString;
11202
11199
  headersSchema: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11203
11200
  contextVariables: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
11201
+ agentId: z.ZodString;
11202
+ projectId: z.ZodString;
11203
+ tenantId: z.ZodString;
11204
11204
  }, {
11205
11205
  out: {};
11206
11206
  in: {};
11207
11207
  }>;
11208
11208
  declare const ContextConfigUpdateSchema: z.ZodObject<{
11209
11209
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11210
- tenantId: z.ZodOptional<z.ZodString>;
11211
- projectId: z.ZodOptional<z.ZodString>;
11212
- agentId: z.ZodOptional<z.ZodString>;
11213
11210
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11214
11211
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>;
11212
+ agentId: z.ZodOptional<z.ZodString>;
11213
+ projectId: z.ZodOptional<z.ZodString>;
11214
+ tenantId: z.ZodOptional<z.ZodString>;
11215
11215
  }, {
11216
11216
  out: {};
11217
11217
  in: {};
@@ -11233,7 +11233,7 @@ declare const ContextConfigApiUpdateSchema: z.ZodObject<{
11233
11233
  headersSchema: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>>;
11234
11234
  contextVariables: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodAny>>>>;
11235
11235
  }, z.core.$strip>;
11236
- declare const SubAgentToolRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
11236
+ declare const SubAgentToolRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
11237
11237
  createdAt: drizzle_orm_pg_core495.PgColumn<{
11238
11238
  name: "created_at";
11239
11239
  tableName: "sub_agent_tool_relations";
@@ -11443,7 +11443,7 @@ declare const SubAgentToolRelationSelectSchema: drizzle_zod15.BuildSchema<"selec
11443
11443
  }, {}, {
11444
11444
  length: 256;
11445
11445
  }>;
11446
- }, drizzle_zod15.BuildRefine<{
11446
+ }, drizzle_zod19.BuildRefine<{
11447
11447
  createdAt: drizzle_orm_pg_core495.PgColumn<{
11448
11448
  name: "created_at";
11449
11449
  tableName: "sub_agent_tool_relations";
@@ -11694,11 +11694,11 @@ declare const SubAgentToolRelationApiSelectSchema: z.ZodObject<{
11694
11694
  id: z.ZodString;
11695
11695
  createdAt: z.ZodString;
11696
11696
  updatedAt: z.ZodString;
11697
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11697
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
11698
11698
  toolId: z.ZodString;
11699
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11699
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
11700
11700
  subAgentId: z.ZodString;
11701
- selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
11701
+ selectedTools: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
11702
11702
  }, z.core.$strip>;
11703
11703
  declare const SubAgentToolRelationApiInsertSchema: z.ZodObject<{
11704
11704
  id: z.ZodString;
@@ -11724,7 +11724,7 @@ declare const SubAgentToolRelationApiUpdateSchema: z.ZodObject<{
11724
11724
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
11725
11725
  selectedTools: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>>>;
11726
11726
  }, z.core.$strip>;
11727
- declare const SubAgentExternalAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
11727
+ declare const SubAgentExternalAgentRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
11728
11728
  createdAt: drizzle_orm_pg_core495.PgColumn<{
11729
11729
  name: "created_at";
11730
11730
  tableName: "sub_agent_external_agent_relations";
@@ -11892,7 +11892,7 @@ declare const SubAgentExternalAgentRelationSelectSchema: drizzle_zod15.BuildSche
11892
11892
  }, {}, {
11893
11893
  length: 256;
11894
11894
  }>;
11895
- }, drizzle_zod15.BuildRefine<{
11895
+ }, drizzle_zod19.BuildRefine<{
11896
11896
  createdAt: drizzle_orm_pg_core495.PgColumn<{
11897
11897
  name: "created_at";
11898
11898
  tableName: "sub_agent_external_agent_relations";
@@ -12093,7 +12093,7 @@ declare const SubAgentExternalAgentRelationApiSelectSchema: z.ZodObject<{
12093
12093
  id: z.ZodString;
12094
12094
  createdAt: z.ZodString;
12095
12095
  updatedAt: z.ZodString;
12096
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12096
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
12097
12097
  externalAgentId: z.ZodString;
12098
12098
  subAgentId: z.ZodString;
12099
12099
  }, z.core.$strip>;
@@ -12111,7 +12111,7 @@ declare const SubAgentExternalAgentRelationApiUpdateSchema: z.ZodObject<{
12111
12111
  externalAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12112
12112
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12113
12113
  }, z.core.$strip>;
12114
- declare const SubAgentTeamAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"select", {
12114
+ declare const SubAgentTeamAgentRelationSelectSchema: drizzle_zod19.BuildSchema<"select", {
12115
12115
  createdAt: drizzle_orm_pg_core495.PgColumn<{
12116
12116
  name: "created_at";
12117
12117
  tableName: "sub_agent_team_agent_relations";
@@ -12279,7 +12279,7 @@ declare const SubAgentTeamAgentRelationSelectSchema: drizzle_zod15.BuildSchema<"
12279
12279
  }, {}, {
12280
12280
  length: 256;
12281
12281
  }>;
12282
- }, drizzle_zod15.BuildRefine<{
12282
+ }, drizzle_zod19.BuildRefine<{
12283
12283
  createdAt: drizzle_orm_pg_core495.PgColumn<{
12284
12284
  name: "created_at";
12285
12285
  tableName: "sub_agent_team_agent_relations";
@@ -12480,7 +12480,7 @@ declare const SubAgentTeamAgentRelationApiSelectSchema: z.ZodObject<{
12480
12480
  id: z.ZodString;
12481
12481
  createdAt: z.ZodString;
12482
12482
  updatedAt: z.ZodString;
12483
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
12483
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
12484
12484
  subAgentId: z.ZodString;
12485
12485
  targetAgentId: z.ZodString;
12486
12486
  }, z.core.$strip>;
@@ -12498,7 +12498,7 @@ declare const SubAgentTeamAgentRelationApiUpdateSchema: z.ZodObject<{
12498
12498
  subAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12499
12499
  targetAgentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
12500
12500
  }, z.core.$strip>;
12501
- declare const LedgerArtifactSelectSchema: drizzle_zod15.BuildSchema<"select", {
12501
+ declare const LedgerArtifactSelectSchema: drizzle_zod19.BuildSchema<"select", {
12502
12502
  createdAt: drizzle_orm_pg_core495.PgColumn<{
12503
12503
  name: "created_at";
12504
12504
  tableName: "ledger_artifacts";
@@ -12833,7 +12833,7 @@ declare const LedgerArtifactSelectSchema: drizzle_zod15.BuildSchema<"select", {
12833
12833
  }, {}, {
12834
12834
  length: 256;
12835
12835
  }>;
12836
- }, drizzle_zod15.BuildRefine<{
12836
+ }, drizzle_zod19.BuildRefine<{
12837
12837
  createdAt: drizzle_orm_pg_core495.PgColumn<{
12838
12838
  name: "created_at";
12839
12839
  tableName: "ledger_artifacts";
@@ -13169,7 +13169,7 @@ declare const LedgerArtifactSelectSchema: drizzle_zod15.BuildSchema<"select", {
13169
13169
  length: 256;
13170
13170
  }>;
13171
13171
  }, undefined>, undefined>;
13172
- declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
13172
+ declare const LedgerArtifactInsertSchema: drizzle_zod19.BuildSchema<"insert", {
13173
13173
  createdAt: drizzle_orm_pg_core495.PgColumn<{
13174
13174
  name: "created_at";
13175
13175
  tableName: "ledger_artifacts";
@@ -13504,7 +13504,7 @@ declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
13504
13504
  }, {}, {
13505
13505
  length: 256;
13506
13506
  }>;
13507
- }, drizzle_zod15.BuildRefine<Pick<{
13507
+ }, drizzle_zod19.BuildRefine<Pick<{
13508
13508
  createdAt: drizzle_orm_pg_core495.PgColumn<{
13509
13509
  name: "created_at";
13510
13510
  tableName: "ledger_artifacts";
@@ -13839,7 +13839,7 @@ declare const LedgerArtifactInsertSchema: drizzle_zod15.BuildSchema<"insert", {
13839
13839
  }, {}, {
13840
13840
  length: 256;
13841
13841
  }>;
13842
- }, "id" | "name" | "createdAt" | "updatedAt" | "metadata" | "description" | "type" | "tenantId" | "projectId" | "contextId" | "visibility" | "taskId" | "toolCallId" | "parts" | "summary" | "mime" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
13842
+ }, "type" | "id" | "name" | "createdAt" | "updatedAt" | "metadata" | "description" | "projectId" | "tenantId" | "taskId" | "toolCallId" | "contextId" | "parts" | "summary" | "mime" | "visibility" | "allowedAgents" | "derivedFrom">, undefined>, undefined>;
13843
13843
  declare const LedgerArtifactUpdateSchema: z.ZodObject<{
13844
13844
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13845
13845
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodString>>;
@@ -13849,12 +13849,12 @@ declare const LedgerArtifactUpdateSchema: z.ZodObject<{
13849
13849
  type: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13850
13850
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13851
13851
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13852
- parts: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>;
13853
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>;
13852
+ parts: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>;
13853
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>;
13854
13854
  summary: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13855
- mime: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>;
13855
+ mime: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>;
13856
13856
  visibility: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13857
- allowedAgents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>;
13857
+ allowedAgents: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>;
13858
13858
  derivedFrom: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13859
13859
  projectId: z.ZodOptional<z.ZodString>;
13860
13860
  tenantId: z.ZodOptional<z.ZodString>;
@@ -13864,57 +13864,57 @@ declare const LedgerArtifactUpdateSchema: z.ZodObject<{
13864
13864
  in: {};
13865
13865
  }>;
13866
13866
  declare const LedgerArtifactApiSelectSchema: z.ZodObject<{
13867
+ type: z.ZodString;
13867
13868
  id: z.ZodString;
13868
13869
  name: z.ZodNullable<z.ZodString>;
13869
13870
  createdAt: z.ZodString;
13870
13871
  updatedAt: z.ZodString;
13871
- metadata: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13872
+ metadata: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
13872
13873
  description: z.ZodNullable<z.ZodString>;
13873
- type: z.ZodString;
13874
- contextId: z.ZodString;
13875
- visibility: z.ZodNullable<z.ZodString>;
13876
13874
  taskId: z.ZodString;
13877
13875
  toolCallId: z.ZodNullable<z.ZodString>;
13878
- parts: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13876
+ contextId: z.ZodString;
13877
+ parts: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
13879
13878
  summary: z.ZodNullable<z.ZodString>;
13880
- mime: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13881
- allowedAgents: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
13879
+ mime: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
13880
+ visibility: z.ZodNullable<z.ZodString>;
13881
+ allowedAgents: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
13882
13882
  derivedFrom: z.ZodNullable<z.ZodString>;
13883
13883
  }, z.core.$strip>;
13884
13884
  declare const LedgerArtifactApiInsertSchema: z.ZodObject<{
13885
+ type: z.ZodOptional<z.ZodString>;
13885
13886
  id: z.ZodString;
13886
13887
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13887
13888
  createdAt: z.ZodOptional<z.ZodString>;
13888
13889
  updatedAt: z.ZodOptional<z.ZodString>;
13889
- metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
13890
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>;
13890
13891
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13891
- type: z.ZodOptional<z.ZodString>;
13892
- contextId: z.ZodString;
13893
- visibility: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13894
13892
  taskId: z.ZodString;
13895
13893
  toolCallId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13896
- parts: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
13894
+ contextId: z.ZodString;
13895
+ parts: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>;
13897
13896
  summary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13898
- mime: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
13899
- allowedAgents: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>;
13897
+ mime: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>;
13898
+ visibility: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13899
+ allowedAgents: z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>;
13900
13900
  derivedFrom: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13901
13901
  }, z.core.$strip>;
13902
13902
  declare const LedgerArtifactApiUpdateSchema: z.ZodObject<{
13903
+ type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13903
13904
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13904
13905
  name: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13905
13906
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13906
13907
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13907
- metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
13908
+ metadata: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>>;
13908
13909
  description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13909
- type: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
13910
- contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13911
- visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13912
13910
  taskId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13913
13911
  toolCallId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13914
- parts: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
13912
+ contextId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
13913
+ parts: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>>;
13915
13914
  summary: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13916
- mime: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
13917
- allowedAgents: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>>>>;
13915
+ mime: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>>;
13916
+ visibility: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13917
+ allowedAgents: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>>>>;
13918
13918
  derivedFrom: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
13919
13919
  }, z.core.$strip>;
13920
13920
  declare const StatusComponentSchema: z.ZodObject<{
@@ -14718,7 +14718,6 @@ declare const SubAgentResponse: z.ZodObject<{
14718
14718
  createdAt: z.ZodString;
14719
14719
  updatedAt: z.ZodString;
14720
14720
  description: z.ZodNullable<z.ZodString>;
14721
- prompt: z.ZodNullable<z.ZodString>;
14722
14721
  models: z.ZodNullable<z.ZodType<{
14723
14722
  base?: {
14724
14723
  model?: string | undefined;
@@ -14772,6 +14771,7 @@ declare const SubAgentResponse: z.ZodObject<{
14772
14771
  providerOptions?: Record<string, any> | undefined;
14773
14772
  } | undefined;
14774
14773
  }>>>;
14774
+ prompt: z.ZodNullable<z.ZodString>;
14775
14775
  stopWhen: z.ZodNullable<z.ZodType<{
14776
14776
  stepCountIs?: number | undefined;
14777
14777
  }, {
@@ -14791,7 +14791,8 @@ declare const AgentResponse: z.ZodObject<{
14791
14791
  createdAt: z.ZodString;
14792
14792
  updatedAt: z.ZodString;
14793
14793
  description: z.ZodNullable<z.ZodString>;
14794
- prompt: z.ZodNullable<z.ZodString>;
14794
+ defaultSubAgentId: z.ZodNullable<z.ZodString>;
14795
+ contextConfigId: z.ZodNullable<z.ZodString>;
14795
14796
  models: z.ZodNullable<z.ZodType<{
14796
14797
  base?: {
14797
14798
  model?: string | undefined;
@@ -14845,17 +14846,7 @@ declare const AgentResponse: z.ZodObject<{
14845
14846
  providerOptions?: Record<string, any> | undefined;
14846
14847
  } | undefined;
14847
14848
  }>>>;
14848
- stopWhen: z.ZodNullable<z.ZodType<{
14849
- transferCountIs?: number | undefined;
14850
- }, {
14851
- transferCountIs?: number | undefined;
14852
- }, z.core.$ZodTypeInternals<{
14853
- transferCountIs?: number | undefined;
14854
- }, {
14855
- transferCountIs?: number | undefined;
14856
- }>>>;
14857
- defaultSubAgentId: z.ZodNullable<z.ZodString>;
14858
- contextConfigId: z.ZodNullable<z.ZodString>;
14849
+ prompt: z.ZodNullable<z.ZodString>;
14859
14850
  statusUpdates: z.ZodNullable<z.ZodType<{
14860
14851
  enabled?: boolean | undefined;
14861
14852
  numEvents?: number | undefined;
@@ -14913,6 +14904,15 @@ declare const AgentResponse: z.ZodObject<{
14913
14904
  } | undefined;
14914
14905
  }[] | undefined;
14915
14906
  }>>>;
14907
+ stopWhen: z.ZodNullable<z.ZodType<{
14908
+ transferCountIs?: number | undefined;
14909
+ }, {
14910
+ transferCountIs?: number | undefined;
14911
+ }, z.core.$ZodTypeInternals<{
14912
+ transferCountIs?: number | undefined;
14913
+ }, {
14914
+ transferCountIs?: number | undefined;
14915
+ }>>>;
14916
14916
  }, z.core.$strip>;
14917
14917
  }, z.core.$strip>;
14918
14918
  declare const ToolResponse: z.ZodObject<{
@@ -14995,7 +14995,7 @@ declare const CredentialReferenceResponse: z.ZodObject<{
14995
14995
  readonly keychain: "keychain";
14996
14996
  readonly nango: "nango";
14997
14997
  }>;
14998
- tools: z.ZodOptional<z.ZodArray<drizzle_zod15.BuildSchema<"select", {
14998
+ tools: z.ZodOptional<z.ZodArray<drizzle_zod19.BuildSchema<"select", {
14999
14999
  createdAt: drizzle_orm_pg_core495.PgColumn<{
15000
15000
  name: "created_at";
15001
15001
  tableName: "tools";
@@ -15258,7 +15258,7 @@ declare const CredentialReferenceResponse: z.ZodObject<{
15258
15258
  }, {}, {
15259
15259
  length: 256;
15260
15260
  }>;
15261
- }, drizzle_zod15.BuildRefine<{
15261
+ }, drizzle_zod19.BuildRefine<{
15262
15262
  createdAt: drizzle_orm_pg_core495.PgColumn<{
15263
15263
  name: "created_at";
15264
15264
  tableName: "tools";
@@ -15607,11 +15607,11 @@ declare const SubAgentToolRelationResponse: z.ZodObject<{
15607
15607
  id: z.ZodString;
15608
15608
  createdAt: z.ZodString;
15609
15609
  updatedAt: z.ZodString;
15610
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15610
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
15611
15611
  toolId: z.ZodString;
15612
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15612
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
15613
15613
  subAgentId: z.ZodString;
15614
- selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
15614
+ selectedTools: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
15615
15615
  }, z.core.$strip>;
15616
15616
  }, z.core.$strip>;
15617
15617
  declare const ConversationResponse: z.ZodObject<{
@@ -15634,6 +15634,8 @@ declare const MessageResponse: z.ZodObject<{
15634
15634
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
15635
15635
  role: z.ZodString;
15636
15636
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
15637
+ taskId: z.ZodNullable<z.ZodString>;
15638
+ visibility: z.ZodString;
15637
15639
  conversationId: z.ZodString;
15638
15640
  fromSubAgentId: z.ZodNullable<z.ZodString>;
15639
15641
  toSubAgentId: z.ZodNullable<z.ZodString>;
@@ -15641,9 +15643,7 @@ declare const MessageResponse: z.ZodObject<{
15641
15643
  toExternalAgentId: z.ZodNullable<z.ZodString>;
15642
15644
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
15643
15645
  toTeamAgentId: z.ZodNullable<z.ZodString>;
15644
- visibility: z.ZodString;
15645
15646
  messageType: z.ZodString;
15646
- taskId: z.ZodNullable<z.ZodString>;
15647
15647
  parentMessageId: z.ZodNullable<z.ZodString>;
15648
15648
  a2aTaskId: z.ZodNullable<z.ZodString>;
15649
15649
  a2aSessionId: z.ZodNullable<z.ZodString>;
@@ -15692,7 +15692,6 @@ declare const SubAgentListResponse: z.ZodObject<{
15692
15692
  createdAt: z.ZodString;
15693
15693
  updatedAt: z.ZodString;
15694
15694
  description: z.ZodNullable<z.ZodString>;
15695
- prompt: z.ZodNullable<z.ZodString>;
15696
15695
  models: z.ZodNullable<z.ZodType<{
15697
15696
  base?: {
15698
15697
  model?: string | undefined;
@@ -15746,6 +15745,7 @@ declare const SubAgentListResponse: z.ZodObject<{
15746
15745
  providerOptions?: Record<string, any> | undefined;
15747
15746
  } | undefined;
15748
15747
  }>>>;
15748
+ prompt: z.ZodNullable<z.ZodString>;
15749
15749
  stopWhen: z.ZodNullable<z.ZodType<{
15750
15750
  stepCountIs?: number | undefined;
15751
15751
  }, {
@@ -15771,7 +15771,8 @@ declare const AgentListResponse: z.ZodObject<{
15771
15771
  createdAt: z.ZodString;
15772
15772
  updatedAt: z.ZodString;
15773
15773
  description: z.ZodNullable<z.ZodString>;
15774
- prompt: z.ZodNullable<z.ZodString>;
15774
+ defaultSubAgentId: z.ZodNullable<z.ZodString>;
15775
+ contextConfigId: z.ZodNullable<z.ZodString>;
15775
15776
  models: z.ZodNullable<z.ZodType<{
15776
15777
  base?: {
15777
15778
  model?: string | undefined;
@@ -15825,17 +15826,7 @@ declare const AgentListResponse: z.ZodObject<{
15825
15826
  providerOptions?: Record<string, any> | undefined;
15826
15827
  } | undefined;
15827
15828
  }>>>;
15828
- stopWhen: z.ZodNullable<z.ZodType<{
15829
- transferCountIs?: number | undefined;
15830
- }, {
15831
- transferCountIs?: number | undefined;
15832
- }, z.core.$ZodTypeInternals<{
15833
- transferCountIs?: number | undefined;
15834
- }, {
15835
- transferCountIs?: number | undefined;
15836
- }>>>;
15837
- defaultSubAgentId: z.ZodNullable<z.ZodString>;
15838
- contextConfigId: z.ZodNullable<z.ZodString>;
15829
+ prompt: z.ZodNullable<z.ZodString>;
15839
15830
  statusUpdates: z.ZodNullable<z.ZodType<{
15840
15831
  enabled?: boolean | undefined;
15841
15832
  numEvents?: number | undefined;
@@ -15893,6 +15884,15 @@ declare const AgentListResponse: z.ZodObject<{
15893
15884
  } | undefined;
15894
15885
  }[] | undefined;
15895
15886
  }>>>;
15887
+ stopWhen: z.ZodNullable<z.ZodType<{
15888
+ transferCountIs?: number | undefined;
15889
+ }, {
15890
+ transferCountIs?: number | undefined;
15891
+ }, z.core.$ZodTypeInternals<{
15892
+ transferCountIs?: number | undefined;
15893
+ }, {
15894
+ transferCountIs?: number | undefined;
15895
+ }>>>;
15896
15896
  }, z.core.$strip>>;
15897
15897
  pagination: z.ZodObject<{
15898
15898
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16005,7 +16005,7 @@ declare const CredentialReferenceListResponse: z.ZodObject<{
16005
16005
  readonly keychain: "keychain";
16006
16006
  readonly nango: "nango";
16007
16007
  }>;
16008
- tools: z.ZodOptional<z.ZodArray<drizzle_zod15.BuildSchema<"select", {
16008
+ tools: z.ZodOptional<z.ZodArray<drizzle_zod19.BuildSchema<"select", {
16009
16009
  createdAt: drizzle_orm_pg_core495.PgColumn<{
16010
16010
  name: "created_at";
16011
16011
  tableName: "tools";
@@ -16268,7 +16268,7 @@ declare const CredentialReferenceListResponse: z.ZodObject<{
16268
16268
  }, {}, {
16269
16269
  length: 256;
16270
16270
  }>;
16271
- }, drizzle_zod15.BuildRefine<{
16271
+ }, drizzle_zod19.BuildRefine<{
16272
16272
  createdAt: drizzle_orm_pg_core495.PgColumn<{
16273
16273
  name: "created_at";
16274
16274
  tableName: "tools";
@@ -16653,11 +16653,11 @@ declare const SubAgentToolRelationListResponse: z.ZodObject<{
16653
16653
  id: z.ZodString;
16654
16654
  createdAt: z.ZodString;
16655
16655
  updatedAt: z.ZodString;
16656
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16656
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
16657
16657
  toolId: z.ZodString;
16658
- toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16658
+ toolPolicies: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
16659
16659
  subAgentId: z.ZodString;
16660
- selectedTools: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
16660
+ selectedTools: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
16661
16661
  }, z.core.$strip>>;
16662
16662
  pagination: z.ZodObject<{
16663
16663
  page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
@@ -16692,6 +16692,8 @@ declare const MessageListResponse: z.ZodObject<{
16692
16692
  metadata: z.ZodNullable<z.ZodType<MessageMetadata, MessageMetadata, z.core.$ZodTypeInternals<MessageMetadata, MessageMetadata>>>;
16693
16693
  role: z.ZodString;
16694
16694
  content: z.ZodType<MessageContent, MessageContent, z.core.$ZodTypeInternals<MessageContent, MessageContent>>;
16695
+ taskId: z.ZodNullable<z.ZodString>;
16696
+ visibility: z.ZodString;
16695
16697
  conversationId: z.ZodString;
16696
16698
  fromSubAgentId: z.ZodNullable<z.ZodString>;
16697
16699
  toSubAgentId: z.ZodNullable<z.ZodString>;
@@ -16699,9 +16701,7 @@ declare const MessageListResponse: z.ZodObject<{
16699
16701
  toExternalAgentId: z.ZodNullable<z.ZodString>;
16700
16702
  fromTeamAgentId: z.ZodNullable<z.ZodString>;
16701
16703
  toTeamAgentId: z.ZodNullable<z.ZodString>;
16702
- visibility: z.ZodString;
16703
16704
  messageType: z.ZodString;
16704
- taskId: z.ZodNullable<z.ZodString>;
16705
16705
  parentMessageId: z.ZodNullable<z.ZodString>;
16706
16706
  a2aTaskId: z.ZodNullable<z.ZodString>;
16707
16707
  a2aSessionId: z.ZodNullable<z.ZodString>;
@@ -17371,7 +17371,7 @@ declare const SubAgentTeamAgentRelationResponse: z.ZodObject<{
17371
17371
  id: z.ZodString;
17372
17372
  createdAt: z.ZodString;
17373
17373
  updatedAt: z.ZodString;
17374
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17374
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
17375
17375
  subAgentId: z.ZodString;
17376
17376
  targetAgentId: z.ZodString;
17377
17377
  }, z.core.$strip>;
@@ -17381,7 +17381,7 @@ declare const SubAgentTeamAgentRelationListResponse: z.ZodObject<{
17381
17381
  id: z.ZodString;
17382
17382
  createdAt: z.ZodString;
17383
17383
  updatedAt: z.ZodString;
17384
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17384
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
17385
17385
  subAgentId: z.ZodString;
17386
17386
  targetAgentId: z.ZodString;
17387
17387
  }, z.core.$strip>>;
@@ -17397,7 +17397,7 @@ declare const SubAgentExternalAgentRelationResponse: z.ZodObject<{
17397
17397
  id: z.ZodString;
17398
17398
  createdAt: z.ZodString;
17399
17399
  updatedAt: z.ZodString;
17400
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17400
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
17401
17401
  externalAgentId: z.ZodString;
17402
17402
  subAgentId: z.ZodString;
17403
17403
  }, z.core.$strip>;
@@ -17407,7 +17407,7 @@ declare const SubAgentExternalAgentRelationListResponse: z.ZodObject<{
17407
17407
  id: z.ZodString;
17408
17408
  createdAt: z.ZodString;
17409
17409
  updatedAt: z.ZodString;
17410
- headers: z.ZodNullable<z.ZodType<drizzle_zod15.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod15.Json, unknown>>>;
17410
+ headers: z.ZodNullable<z.ZodType<drizzle_zod19.Json, unknown, z.core.$ZodTypeInternals<drizzle_zod19.Json, unknown>>>;
17411
17411
  externalAgentId: z.ZodString;
17412
17412
  subAgentId: z.ZodString;
17413
17413
  }, z.core.$strip>>;