@inkeep/agents-core 0.32.1 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-FUJJ4OQ2.js';
1
+ import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-JFSIBQHO.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/validation/cycleDetection.ts
@@ -1,7 +1,7 @@
1
- import { subAgents, subAgentRelations, agents, tasks, taskRelations, tools, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-VSQY72K5.js';
1
+ import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-VSQY72K5.js';
2
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
3
3
  import { z } from '@hono/zod-openapi';
4
- import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
4
+ import { createSelectSchema as createSelectSchema$1, createInsertSchema as createInsertSchema$1 } from 'drizzle-zod';
5
5
  import Ajv from 'ajv';
6
6
 
7
7
  // src/constants/schema-validation/defaults.ts
@@ -37,6 +37,151 @@ var schemaValidationDefaults = {
37
37
  CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT: 1e4
38
38
  // 10 seconds
39
39
  };
40
+ var MIN_ID_LENGTH = 1;
41
+ var MAX_ID_LENGTH = 255;
42
+ var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
43
+ var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
44
+ message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
45
+ }).openapi({
46
+ description: "Resource identifier",
47
+ example: "resource_789"
48
+ });
49
+ resourceIdSchema.meta({
50
+ description: "Resource identifier"
51
+ });
52
+ var FIELD_MODIFIERS = {
53
+ id: (schema) => {
54
+ const modified = schema.min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
55
+ message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
56
+ }).openapi({
57
+ description: "Resource identifier",
58
+ example: "resource_789"
59
+ });
60
+ modified.meta({
61
+ description: "Resource identifier"
62
+ });
63
+ return modified;
64
+ },
65
+ name: (_schema) => {
66
+ const modified = z.string().describe("Name");
67
+ modified.meta({ description: "Name" });
68
+ return modified;
69
+ },
70
+ description: (_schema) => {
71
+ const modified = z.string().describe("Description");
72
+ modified.meta({ description: "Description" });
73
+ return modified;
74
+ },
75
+ tenantId: (schema) => {
76
+ const modified = schema.describe("Tenant identifier");
77
+ modified.meta({ description: "Tenant identifier" });
78
+ return modified;
79
+ },
80
+ projectId: (schema) => {
81
+ const modified = schema.describe("Project identifier");
82
+ modified.meta({ description: "Project identifier" });
83
+ return modified;
84
+ },
85
+ agentId: (schema) => {
86
+ const modified = schema.describe("Agent identifier");
87
+ modified.meta({ description: "Agent identifier" });
88
+ return modified;
89
+ },
90
+ subAgentId: (schema) => {
91
+ const modified = schema.describe("Sub-agent identifier");
92
+ modified.meta({ description: "Sub-agent identifier" });
93
+ return modified;
94
+ },
95
+ createdAt: (schema) => {
96
+ const modified = schema.describe("Creation timestamp");
97
+ modified.meta({ description: "Creation timestamp" });
98
+ return modified;
99
+ },
100
+ updatedAt: (schema) => {
101
+ const modified = schema.describe("Last update timestamp");
102
+ modified.meta({ description: "Last update timestamp" });
103
+ return modified;
104
+ }
105
+ };
106
+ function createSelectSchemaWithModifiers(table, overrides) {
107
+ const tableColumns = table._?.columns;
108
+ if (!tableColumns) {
109
+ return createSelectSchema$1(table, overrides);
110
+ }
111
+ const tableFieldNames = Object.keys(tableColumns);
112
+ const modifiers = {};
113
+ for (const fieldName of tableFieldNames) {
114
+ const fieldNameStr = String(fieldName);
115
+ if (fieldNameStr in FIELD_MODIFIERS) {
116
+ modifiers[fieldNameStr] = FIELD_MODIFIERS[fieldNameStr];
117
+ }
118
+ }
119
+ const mergedModifiers = { ...modifiers, ...overrides };
120
+ return createSelectSchema$1(table, mergedModifiers);
121
+ }
122
+ function createInsertSchemaWithModifiers(table, overrides) {
123
+ const tableColumns = table._?.columns;
124
+ if (!tableColumns) {
125
+ return createInsertSchema$1(table, overrides);
126
+ }
127
+ const tableFieldNames = Object.keys(tableColumns);
128
+ const modifiers = {};
129
+ for (const fieldName of tableFieldNames) {
130
+ const fieldNameStr = String(fieldName);
131
+ if (fieldNameStr in FIELD_MODIFIERS) {
132
+ modifiers[fieldNameStr] = FIELD_MODIFIERS[fieldNameStr];
133
+ }
134
+ }
135
+ const mergedModifiers = { ...modifiers, ...overrides };
136
+ return createInsertSchema$1(table, mergedModifiers);
137
+ }
138
+ var createSelectSchema = createSelectSchemaWithModifiers;
139
+ var createInsertSchema = createInsertSchemaWithModifiers;
140
+ function registerFieldSchemas(schema) {
141
+ if (!(schema instanceof z.ZodObject)) {
142
+ return schema;
143
+ }
144
+ const shape = schema.shape;
145
+ const fieldMetadata = {
146
+ id: { description: "Resource identifier" },
147
+ name: { description: "Name" },
148
+ description: { description: "Description" },
149
+ tenantId: { description: "Tenant identifier" },
150
+ projectId: { description: "Project identifier" },
151
+ agentId: { description: "Agent identifier" },
152
+ subAgentId: { description: "Sub-agent identifier" },
153
+ createdAt: { description: "Creation timestamp" },
154
+ updatedAt: { description: "Last update timestamp" }
155
+ };
156
+ for (const [fieldName, fieldSchema] of Object.entries(shape)) {
157
+ if (fieldName in fieldMetadata && fieldSchema) {
158
+ let zodFieldSchema = fieldSchema;
159
+ let innerSchema = null;
160
+ if (zodFieldSchema instanceof z.ZodOptional) {
161
+ innerSchema = zodFieldSchema._def.innerType;
162
+ zodFieldSchema = innerSchema;
163
+ }
164
+ zodFieldSchema.meta(fieldMetadata[fieldName]);
165
+ if (fieldName === "id" && zodFieldSchema instanceof z.ZodString) {
166
+ zodFieldSchema.openapi({
167
+ description: "Resource identifier",
168
+ minLength: MIN_ID_LENGTH,
169
+ maxLength: MAX_ID_LENGTH,
170
+ pattern: URL_SAFE_ID_PATTERN.source,
171
+ example: "resource_789"
172
+ });
173
+ } else if (zodFieldSchema instanceof z.ZodString) {
174
+ zodFieldSchema.openapi({
175
+ description: fieldMetadata[fieldName].description
176
+ });
177
+ }
178
+ if (innerSchema && fieldSchema instanceof z.ZodOptional) {
179
+ fieldSchema.meta(fieldMetadata[fieldName]);
180
+ }
181
+ }
182
+ }
183
+ return schema;
184
+ }
40
185
  var {
41
186
  AGENT_EXECUTION_TRANSFER_COUNT_MAX,
42
187
  AGENT_EXECUTION_TRANSFER_COUNT_MIN,
@@ -58,14 +203,8 @@ var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi
58
203
  var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi(
59
204
  "SubAgentStopWhen"
60
205
  );
61
- var MIN_ID_LENGTH = 1;
62
- var MAX_ID_LENGTH = 255;
63
- var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
64
- var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
65
- message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
66
- }).openapi({
67
- example: "resource_789"
68
- });
206
+ var pageNumber = z.coerce.number().min(1).default(1).openapi("PaginationPageQueryParam");
207
+ var limitNumber = z.coerce.number().min(1).max(100).default(10).openapi("PaginationLimitQueryParam");
69
208
  var ModelSettingsSchema = z.object({
70
209
  model: z.string().optional().describe("The model to use for the project."),
71
210
  providerOptions: z.record(z.string(), z.any()).optional().describe("The provider options to use for the project.")
@@ -483,7 +622,7 @@ var McpToolSchema = ToolInsertSchema.extend({
483
622
  createdAt: z.date(),
484
623
  updatedAt: z.date(),
485
624
  expiresAt: z.date().optional()
486
- });
625
+ }).openapi("McpTool");
487
626
  var MCPToolConfigSchema = McpToolSchema.omit({
488
627
  config: true,
489
628
  tenantId: true,
@@ -667,17 +806,17 @@ var canDelegateToExternalAgentSchema = z.object({
667
806
  externalAgentId: z.string(),
668
807
  subAgentExternalAgentRelationId: z.string().optional(),
669
808
  headers: z.record(z.string(), z.string()).nullish()
670
- });
809
+ }).openapi("CanDelegateToExternalAgent");
671
810
  var canDelegateToTeamAgentSchema = z.object({
672
811
  agentId: z.string(),
673
812
  subAgentTeamAgentRelationId: z.string().optional(),
674
813
  headers: z.record(z.string(), z.string()).nullish()
675
- });
814
+ }).openapi("CanDelegateToTeamAgent");
676
815
  var TeamAgentSchema = z.object({
677
816
  id: z.string(),
678
817
  name: z.string(),
679
818
  description: z.string()
680
- });
819
+ }).openapi("TeamAgent");
681
820
  var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
682
821
  type: z.literal("internal"),
683
822
  canUse: z.array(CanUseItemSchema),
@@ -696,7 +835,7 @@ var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
696
835
  // Team agent with headers
697
836
  ])
698
837
  ).optional()
699
- });
838
+ }).openapi("FullAgentAgentInsert");
700
839
  var AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
701
840
  subAgents: z.record(z.string(), FullAgentAgentInsertSchema),
702
841
  // Lookup maps for UI to resolve canUse items
@@ -718,10 +857,10 @@ var AgentWithinContextOfProjectSchema = AgentApiInsertSchema.extend({
718
857
  VALIDATION_AGENT_PROMPT_MAX_CHARS,
719
858
  `Agent prompt cannot exceed ${VALIDATION_AGENT_PROMPT_MAX_CHARS} characters`
720
859
  ).optional()
721
- });
860
+ }).openapi("AgentWithinContextOfProject");
722
861
  var PaginationSchema = z.object({
723
- page: z.coerce.number().min(1).default(1),
724
- limit: z.coerce.number().min(1).max(100).default(10),
862
+ page: pageNumber,
863
+ limit: limitNumber,
725
864
  total: z.number(),
726
865
  pages: z.number()
727
866
  }).openapi("Pagination");
@@ -746,7 +885,12 @@ var RemovedResponseSchema = z.object({
746
885
  message: z.string(),
747
886
  removed: z.boolean()
748
887
  }).openapi("RemovedResponse");
749
- var ProjectSelectSchema = createSelectSchema(projects);
888
+ var ProjectSelectSchema = registerFieldSchemas(
889
+ createSelectSchema(projects).extend({
890
+ models: ProjectModelSchema.nullable(),
891
+ stopWhen: StopWhenSchema.nullable()
892
+ })
893
+ );
750
894
  var ProjectInsertSchema = createInsertSchema(projects).extend({
751
895
  models: ProjectModelSchema,
752
896
  stopWhen: StopWhenSchema.optional()
@@ -754,16 +898,17 @@ var ProjectInsertSchema = createInsertSchema(projects).extend({
754
898
  createdAt: true,
755
899
  updatedAt: true
756
900
  });
757
- var ProjectUpdateSchema = ProjectInsertSchema.partial();
901
+ var ProjectUpdateSchema = ProjectInsertSchema.partial().omit({
902
+ id: true,
903
+ tenantId: true
904
+ });
758
905
  var ProjectApiSelectSchema = ProjectSelectSchema.omit({ tenantId: true }).openapi(
759
906
  "Project"
760
907
  );
761
908
  var ProjectApiInsertSchema = ProjectInsertSchema.omit({ tenantId: true }).openapi(
762
909
  "ProjectCreate"
763
910
  );
764
- var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true }).openapi(
765
- "ProjectUpdate"
766
- );
911
+ var ProjectApiUpdateSchema = ProjectUpdateSchema.openapi("ProjectUpdate");
767
912
  var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
768
913
  agents: z.record(z.string(), AgentWithinContextOfProjectSchema),
769
914
  tools: z.record(z.string(), ToolApiInsertSchema),
@@ -776,7 +921,7 @@ var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
776
921
  credentialReferences: z.record(z.string(), CredentialReferenceApiInsertSchema).optional(),
777
922
  createdAt: z.string().optional(),
778
923
  updatedAt: z.string().optional()
779
- });
924
+ }).openapi("FullProjectDefinition");
780
925
  var ProjectResponse = z.object({ data: ProjectApiSelectSchema }).openapi("ProjectResponse");
781
926
  var SubAgentResponse = z.object({ data: SubAgentApiSelectSchema }).openapi("SubAgentResponse");
782
927
  var AgentResponse = z.object({ data: AgentApiSelectSchema }).openapi("AgentResponse");
@@ -867,6 +1012,30 @@ var SubAgentArtifactComponentListResponse = z.object({
867
1012
  data: z.array(SubAgentArtifactComponentApiSelectSchema),
868
1013
  pagination: PaginationSchema
869
1014
  }).openapi("SubAgentArtifactComponentListResponse");
1015
+ var FullProjectDefinitionResponse = z.object({ data: FullProjectDefinitionSchema }).openapi("FullProjectDefinitionResponse");
1016
+ var AgentWithinContextOfProjectResponse = z.object({ data: AgentWithinContextOfProjectSchema }).openapi("AgentWithinContextOfProjectResponse");
1017
+ var RelatedAgentInfoListResponse = z.object({
1018
+ data: z.array(RelatedAgentInfoSchema),
1019
+ pagination: PaginationSchema
1020
+ }).openapi("RelatedAgentInfoListResponse");
1021
+ var ComponentAssociationListResponse = z.object({ data: z.array(ComponentAssociationSchema) }).openapi("ComponentAssociationListResponse");
1022
+ var McpToolResponse = z.object({ data: McpToolSchema }).openapi("McpToolResponse");
1023
+ var McpToolListResponse = z.object({
1024
+ data: z.array(McpToolSchema),
1025
+ pagination: PaginationSchema
1026
+ }).openapi("McpToolListResponse");
1027
+ var SubAgentTeamAgentRelationResponse = z.object({ data: SubAgentTeamAgentRelationApiSelectSchema }).openapi("SubAgentTeamAgentRelationResponse");
1028
+ var SubAgentTeamAgentRelationListResponse = z.object({
1029
+ data: z.array(SubAgentTeamAgentRelationApiSelectSchema),
1030
+ pagination: PaginationSchema
1031
+ }).openapi("SubAgentTeamAgentRelationListResponse");
1032
+ var SubAgentExternalAgentRelationResponse = z.object({ data: SubAgentExternalAgentRelationApiSelectSchema }).openapi("SubAgentExternalAgentRelationResponse");
1033
+ var SubAgentExternalAgentRelationListResponse = z.object({
1034
+ data: z.array(SubAgentExternalAgentRelationApiSelectSchema),
1035
+ pagination: PaginationSchema
1036
+ }).openapi("SubAgentExternalAgentRelationListResponse");
1037
+ var DataComponentArrayResponse = z.object({ data: z.array(DataComponentApiSelectSchema) }).openapi("DataComponentArrayResponse");
1038
+ var ArtifactComponentArrayResponse = z.object({ data: z.array(ArtifactComponentApiSelectSchema) }).openapi("ArtifactComponentArrayResponse");
870
1039
  var HeadersScopeSchema = z.object({
871
1040
  "x-inkeep-tenant-id": z.string().optional().openapi({
872
1041
  description: "Tenant identifier",
@@ -881,50 +1050,66 @@ var HeadersScopeSchema = z.object({
881
1050
  example: "agent_789"
882
1051
  })
883
1052
  });
884
- var TenantId = z.string().openapi({
1053
+ var TenantId = z.string().openapi("TenantIdPathParam", {
1054
+ param: {
1055
+ name: "tenantId",
1056
+ in: "path"
1057
+ },
885
1058
  description: "Tenant identifier",
886
1059
  example: "tenant_123"
887
1060
  });
888
- var ProjectId = z.string().openapi({
1061
+ var ProjectId = z.string().openapi("ProjectIdPathParam", {
1062
+ param: {
1063
+ name: "projectId",
1064
+ in: "path"
1065
+ },
889
1066
  description: "Project identifier",
890
1067
  example: "project_456"
891
1068
  });
892
- var AgentId = z.string().openapi({
1069
+ var AgentId = z.string().openapi("AgentIdPathParam", {
1070
+ param: {
1071
+ name: "agentId",
1072
+ in: "path"
1073
+ },
893
1074
  description: "Agent identifier",
894
1075
  example: "agent_789"
895
1076
  });
896
- var SubAgentId = z.string().openapi({
1077
+ var SubAgentId = z.string().openapi("SubAgentIdPathParam", {
1078
+ param: {
1079
+ name: "subAgentId",
1080
+ in: "path"
1081
+ },
897
1082
  description: "Sub-agent identifier",
898
1083
  example: "sub_agent_123"
899
1084
  });
900
1085
  var TenantParamsSchema = z.object({
901
1086
  tenantId: TenantId
902
- }).openapi("TenantParams");
1087
+ });
903
1088
  var TenantIdParamsSchema = TenantParamsSchema.extend({
904
1089
  id: resourceIdSchema
905
- }).openapi("TenantIdParams");
1090
+ });
906
1091
  var TenantProjectParamsSchema = TenantParamsSchema.extend({
907
1092
  projectId: ProjectId
908
- }).openapi("TenantProjectParams");
1093
+ });
909
1094
  var TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({
910
1095
  id: resourceIdSchema
911
- }).openapi("TenantProjectIdParams");
1096
+ });
912
1097
  var TenantProjectAgentParamsSchema = TenantProjectParamsSchema.extend({
913
1098
  agentId: AgentId
914
- }).openapi("TenantProjectAgentParams");
1099
+ });
915
1100
  var TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({
916
1101
  id: resourceIdSchema
917
- }).openapi("TenantProjectAgentIdParams");
1102
+ });
918
1103
  var TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentParamsSchema.extend({
919
1104
  subAgentId: SubAgentId
920
- }).openapi("TenantProjectAgentSubAgentParams");
1105
+ });
921
1106
  var TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({
922
1107
  id: resourceIdSchema
923
- }).openapi("TenantProjectAgentSubAgentIdParams");
924
- var PaginationQueryParamsSchema = z.object({
925
- page: z.coerce.number().min(1).default(1),
926
- limit: z.coerce.number().min(1).max(100).default(10)
927
1108
  });
1109
+ var PaginationQueryParamsSchema = z.object({
1110
+ page: pageNumber,
1111
+ limit: limitNumber
1112
+ }).openapi("PaginationQueryParams");
928
1113
  function validatePropsAsJsonSchema(props) {
929
1114
  if (!props || typeof props === "object" && Object.keys(props).length === 0) {
930
1115
  return {
@@ -1028,4 +1213,4 @@ function validatePropsAsJsonSchema(props) {
1028
1213
  }
1029
1214
  }
1030
1215
 
1031
- export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, schemaValidationDefaults, validatePropsAsJsonSchema };
1216
+ export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, schemaValidationDefaults, validatePropsAsJsonSchema };