@inkeep/agents-core 0.29.11 → 0.30.1

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.
@@ -11,7 +11,50 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
11
11
 
12
12
  var Ajv__default = /*#__PURE__*/_interopDefault(Ajv);
13
13
 
14
- // src/validation/schemas.ts
14
+ // src/validation/cycleDetection.ts
15
+ function detectDelegationCycles(agentData) {
16
+ const graph = buildDelegationGraph(agentData);
17
+ const cycles = [];
18
+ const visited = /* @__PURE__ */ new Set();
19
+ const stack = /* @__PURE__ */ new Set();
20
+ const path = [];
21
+ function dfs(node) {
22
+ visited.add(node);
23
+ stack.add(node);
24
+ path.push(node);
25
+ for (const neighbor of graph.get(node) || []) {
26
+ if (!visited.has(neighbor)) {
27
+ if (dfs(neighbor)) return true;
28
+ } else if (stack.has(neighbor)) {
29
+ const cycleStart = path.indexOf(neighbor);
30
+ cycles.push(`Circular delegation detected: ${[...path.slice(cycleStart), neighbor].join(" \u2192 ")}`);
31
+ return true;
32
+ }
33
+ }
34
+ stack.delete(node);
35
+ path.pop();
36
+ return false;
37
+ }
38
+ for (const node of graph.keys()) {
39
+ if (!visited.has(node)) {
40
+ path.length = 0;
41
+ dfs(node);
42
+ }
43
+ }
44
+ return cycles;
45
+ }
46
+ function buildDelegationGraph(agentData) {
47
+ const graph = /* @__PURE__ */ new Map();
48
+ for (const [subAgentId, subAgent] of Object.entries(agentData.subAgents)) {
49
+ const delegates = subAgent.canDelegateTo?.filter(
50
+ (d) => typeof d === "string"
51
+ );
52
+ if (delegates?.length) {
53
+ graph.set(subAgentId, delegates);
54
+ }
55
+ }
56
+ return graph;
57
+ }
15
58
  var tenantScoped = {
16
59
  tenantId: sqliteCore.text("tenant_id").notNull(),
17
60
  id: sqliteCore.text("id").notNull()
@@ -1632,6 +1675,7 @@ var ProjectApiUpdateSchema = ProjectUpdateSchema.omit({ tenantId: true }).openap
1632
1675
  var FullProjectDefinitionSchema = ProjectApiInsertSchema.extend({
1633
1676
  agents: zodOpenapi.z.record(zodOpenapi.z.string(), AgentWithinContextOfProjectSchema),
1634
1677
  tools: zodOpenapi.z.record(zodOpenapi.z.string(), ToolApiInsertSchema),
1678
+ functionTools: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionToolApiInsertSchema).optional(),
1635
1679
  functions: zodOpenapi.z.record(zodOpenapi.z.string(), FunctionApiInsertSchema).optional(),
1636
1680
  dataComponents: zodOpenapi.z.record(zodOpenapi.z.string(), DataComponentApiInsertSchema).optional(),
1637
1681
  artifactComponents: zodOpenapi.z.record(zodOpenapi.z.string(), ArtifactComponentApiInsertSchema).optional(),
@@ -1883,6 +1927,10 @@ function validateAgentRelationships(agentData) {
1883
1927
  }
1884
1928
  }
1885
1929
  }
1930
+ const cycles = detectDelegationCycles(agentData);
1931
+ if (cycles.length > 0) {
1932
+ errors.push(...cycles);
1933
+ }
1886
1934
  if (errors.length > 0)
1887
1935
  throw new Error(`Agent relationship validation failed:
1888
1936
  ${errors.join("\n")}`);
@@ -2181,6 +2229,57 @@ function validateRender(render) {
2181
2229
  errors
2182
2230
  };
2183
2231
  }
2232
+ var TextStartEventSchema = zod.z.object({
2233
+ type: zod.z.literal("text-start"),
2234
+ id: zod.z.string()
2235
+ });
2236
+ var TextDeltaEventSchema = zod.z.object({
2237
+ type: zod.z.literal("text-delta"),
2238
+ id: zod.z.string(),
2239
+ delta: zod.z.string()
2240
+ });
2241
+ var TextEndEventSchema = zod.z.object({
2242
+ type: zod.z.literal("text-end"),
2243
+ id: zod.z.string()
2244
+ });
2245
+ var DataComponentStreamEventSchema = zod.z.object({
2246
+ type: zod.z.literal("data-component"),
2247
+ id: zod.z.string(),
2248
+ data: zod.z.any()
2249
+ });
2250
+ var DataOperationStreamEventSchema = zod.z.object({
2251
+ type: zod.z.literal("data-operation"),
2252
+ data: zod.z.any()
2253
+ // Contains OperationEvent types (AgentInitializingEvent, CompletionEvent, etc.)
2254
+ });
2255
+ var DataSummaryStreamEventSchema = zod.z.object({
2256
+ type: zod.z.literal("data-summary"),
2257
+ data: zod.z.any()
2258
+ // Contains SummaryEvent from entities.ts
2259
+ });
2260
+ var StreamErrorEventSchema = zod.z.object({
2261
+ type: zod.z.literal("error"),
2262
+ error: zod.z.string()
2263
+ });
2264
+ var StreamFinishEventSchema = zod.z.object({
2265
+ type: zod.z.literal("finish"),
2266
+ finishReason: zod.z.string().optional(),
2267
+ usage: zod.z.object({
2268
+ promptTokens: zod.z.number().optional(),
2269
+ completionTokens: zod.z.number().optional(),
2270
+ totalTokens: zod.z.number().optional()
2271
+ }).optional()
2272
+ });
2273
+ var StreamEventSchema = zod.z.discriminatedUnion("type", [
2274
+ TextStartEventSchema,
2275
+ TextDeltaEventSchema,
2276
+ TextEndEventSchema,
2277
+ DataComponentStreamEventSchema,
2278
+ DataOperationStreamEventSchema,
2279
+ DataSummaryStreamEventSchema,
2280
+ StreamErrorEventSchema,
2281
+ StreamFinishEventSchema
2282
+ ]);
2184
2283
 
2185
2284
  exports.A2AMessageMetadataSchema = A2AMessageMetadataSchema;
2186
2285
  exports.AgentApiInsertSchema = AgentApiInsertSchema;
@@ -2250,9 +2349,12 @@ exports.DataComponentInsertSchema = DataComponentInsertSchema;
2250
2349
  exports.DataComponentListResponse = DataComponentListResponse;
2251
2350
  exports.DataComponentResponse = DataComponentResponse;
2252
2351
  exports.DataComponentSelectSchema = DataComponentSelectSchema;
2352
+ exports.DataComponentStreamEventSchema = DataComponentStreamEventSchema;
2253
2353
  exports.DataComponentUpdateSchema = DataComponentUpdateSchema;
2254
2354
  exports.DataOperationDetailsSchema = DataOperationDetailsSchema;
2255
2355
  exports.DataOperationEventSchema = DataOperationEventSchema;
2356
+ exports.DataOperationStreamEventSchema = DataOperationStreamEventSchema;
2357
+ exports.DataSummaryStreamEventSchema = DataSummaryStreamEventSchema;
2256
2358
  exports.DelegationReturnedDataSchema = DelegationReturnedDataSchema;
2257
2359
  exports.DelegationSentDataSchema = DelegationSentDataSchema;
2258
2360
  exports.ErrorResponseSchema = ErrorResponseSchema;
@@ -2328,6 +2430,9 @@ exports.SingleResponseSchema = SingleResponseSchema;
2328
2430
  exports.StatusComponentSchema = StatusComponentSchema;
2329
2431
  exports.StatusUpdateSchema = StatusUpdateSchema;
2330
2432
  exports.StopWhenSchema = StopWhenSchema;
2433
+ exports.StreamErrorEventSchema = StreamErrorEventSchema;
2434
+ exports.StreamEventSchema = StreamEventSchema;
2435
+ exports.StreamFinishEventSchema = StreamFinishEventSchema;
2331
2436
  exports.SubAgentApiInsertSchema = SubAgentApiInsertSchema;
2332
2437
  exports.SubAgentApiSelectSchema = SubAgentApiSelectSchema;
2333
2438
  exports.SubAgentApiUpdateSchema = SubAgentApiUpdateSchema;
@@ -2403,6 +2508,9 @@ exports.TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentIdP
2403
2508
  exports.TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentSubAgentParamsSchema;
2404
2509
  exports.TenantProjectIdParamsSchema = TenantProjectIdParamsSchema;
2405
2510
  exports.TenantProjectParamsSchema = TenantProjectParamsSchema;
2511
+ exports.TextDeltaEventSchema = TextDeltaEventSchema;
2512
+ exports.TextEndEventSchema = TextEndEventSchema;
2513
+ exports.TextStartEventSchema = TextStartEventSchema;
2406
2514
  exports.ToolApiInsertSchema = ToolApiInsertSchema;
2407
2515
  exports.ToolApiSelectSchema = ToolApiSelectSchema;
2408
2516
  exports.ToolApiUpdateSchema = ToolApiUpdateSchema;
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-DhRaNM5g.cjs';
3
- export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-DhRaNM5g.cjs';
2
+ import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-eADYCyd-.cjs';
3
+ export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-eADYCyd-.cjs';
4
4
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.cjs';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -24,7 +24,7 @@ declare function validateDataComponentReferences(agentData: FullAgentDefinition,
24
24
  */
25
25
  declare function validateArtifactComponentReferences(agentData: FullAgentDefinition, availableArtifactComponentIds?: Set<string>): void;
26
26
  /**
27
- * Validates agent relationships (transfer and delegation targets exist)
27
+ * Validates agent relationships (transfer and delegation targets exist, and there is no circular delegation)
28
28
  */
29
29
  declare function validateAgentRelationships(agentData: FullAgentDefinition): void;
30
30
  declare function validateSubAgentExternalAgentRelations(agentData: FullAgentDefinition, availableExternalAgentIds?: Set<string>): void;
@@ -151,4 +151,124 @@ declare function validateRender(render: {
151
151
  mockData: Record<string, unknown>;
152
152
  }): RenderValidationResult;
153
153
 
154
- export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type RenderValidationResult, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
154
+ /**
155
+ * Vercel AI SDK Data Stream Protocol Event Schemas
156
+ *
157
+ * These schemas define the structure of events sent by the Inkeep Agents Run API.
158
+ * They are used by both the streaming backend and AI SDK providers to ensure type safety.
159
+ */
160
+ /**
161
+ * Marks the beginning of a text stream
162
+ */
163
+ declare const TextStartEventSchema: z.ZodObject<{
164
+ type: z.ZodLiteral<"text-start">;
165
+ id: z.ZodString;
166
+ }, z.core.$strip>;
167
+ /**
168
+ * Represents a chunk of streaming text
169
+ */
170
+ declare const TextDeltaEventSchema: z.ZodObject<{
171
+ type: z.ZodLiteral<"text-delta">;
172
+ id: z.ZodString;
173
+ delta: z.ZodString;
174
+ }, z.core.$strip>;
175
+ /**
176
+ * Marks the end of a text stream
177
+ */
178
+ declare const TextEndEventSchema: z.ZodObject<{
179
+ type: z.ZodLiteral<"text-end">;
180
+ id: z.ZodString;
181
+ }, z.core.$strip>;
182
+ /**
183
+ * Data component event - structured data in the stream
184
+ * Used for artifacts, visualizations, or other structured outputs
185
+ */
186
+ declare const DataComponentStreamEventSchema: z.ZodObject<{
187
+ type: z.ZodLiteral<"data-component">;
188
+ id: z.ZodString;
189
+ data: z.ZodAny;
190
+ }, z.core.$strip>;
191
+ /**
192
+ * Data operation event - agent operations and state changes
193
+ * Wraps operation events (agent_initializing, completion, etc.)
194
+ */
195
+ declare const DataOperationStreamEventSchema: z.ZodObject<{
196
+ type: z.ZodLiteral<"data-operation">;
197
+ data: z.ZodAny;
198
+ }, z.core.$strip>;
199
+ /**
200
+ * Data summary event - progress summaries and status updates
201
+ */
202
+ declare const DataSummaryStreamEventSchema: z.ZodObject<{
203
+ type: z.ZodLiteral<"data-summary">;
204
+ data: z.ZodAny;
205
+ }, z.core.$strip>;
206
+ /**
207
+ * Stream error event
208
+ */
209
+ declare const StreamErrorEventSchema: z.ZodObject<{
210
+ type: z.ZodLiteral<"error">;
211
+ error: z.ZodString;
212
+ }, z.core.$strip>;
213
+ /**
214
+ * Stream finish event with usage statistics
215
+ */
216
+ declare const StreamFinishEventSchema: z.ZodObject<{
217
+ type: z.ZodLiteral<"finish">;
218
+ finishReason: z.ZodOptional<z.ZodString>;
219
+ usage: z.ZodOptional<z.ZodObject<{
220
+ promptTokens: z.ZodOptional<z.ZodNumber>;
221
+ completionTokens: z.ZodOptional<z.ZodNumber>;
222
+ totalTokens: z.ZodOptional<z.ZodNumber>;
223
+ }, z.core.$strip>>;
224
+ }, z.core.$strip>;
225
+ /**
226
+ * Union of all stream event types
227
+ * This is the main schema used for validating incoming stream events
228
+ */
229
+ declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ type: z.ZodLiteral<"text-start">;
231
+ id: z.ZodString;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"text-delta">;
234
+ id: z.ZodString;
235
+ delta: z.ZodString;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ type: z.ZodLiteral<"text-end">;
238
+ id: z.ZodString;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodLiteral<"data-component">;
241
+ id: z.ZodString;
242
+ data: z.ZodAny;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ type: z.ZodLiteral<"data-operation">;
245
+ data: z.ZodAny;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ type: z.ZodLiteral<"data-summary">;
248
+ data: z.ZodAny;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"error">;
251
+ error: z.ZodString;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ type: z.ZodLiteral<"finish">;
254
+ finishReason: z.ZodOptional<z.ZodString>;
255
+ usage: z.ZodOptional<z.ZodObject<{
256
+ promptTokens: z.ZodOptional<z.ZodNumber>;
257
+ completionTokens: z.ZodOptional<z.ZodNumber>;
258
+ totalTokens: z.ZodOptional<z.ZodNumber>;
259
+ }, z.core.$strip>>;
260
+ }, z.core.$strip>], "type">;
261
+ type TextStartEvent = z.infer<typeof TextStartEventSchema>;
262
+ type TextDeltaEvent = z.infer<typeof TextDeltaEventSchema>;
263
+ type TextEndEvent = z.infer<typeof TextEndEventSchema>;
264
+ type DataComponentStreamEvent = z.infer<typeof DataComponentStreamEventSchema>;
265
+ type DataOperationStreamEvent = z.infer<typeof DataOperationStreamEventSchema>;
266
+ type DataSummaryStreamEvent = z.infer<typeof DataSummaryStreamEventSchema>;
267
+ type StreamErrorEvent = z.infer<typeof StreamErrorEventSchema>;
268
+ type StreamFinishEvent = z.infer<typeof StreamFinishEventSchema>;
269
+ /**
270
+ * Union type of all possible stream events
271
+ */
272
+ type StreamEvent = z.infer<typeof StreamEventSchema>;
273
+
274
+ export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataComponentStreamEvent, DataComponentStreamEventSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DataOperationStreamEvent, DataOperationStreamEventSchema, type DataSummaryStreamEvent, DataSummaryStreamEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type RenderValidationResult, type StreamErrorEvent, StreamErrorEventSchema, type StreamEvent, StreamEventSchema, type StreamFinishEvent, StreamFinishEventSchema, type TextDeltaEvent, TextDeltaEventSchema, type TextEndEvent, TextEndEventSchema, type TextStartEvent, TextStartEventSchema, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-DhRaNM5g.js';
3
- export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-DhRaNM5g.js';
2
+ import { gc as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-eADYCyd-.js';
3
+ export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gI as AgentListResponse, gs as AgentResponse, e2 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e4 as AgentUpdateSchema, fa as AllAgentSchema, ff as ApiKeyApiCreationResponseSchema, fg as ApiKeyApiInsertSchema, fe as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fc as ApiKeyInsertSchema, gM as ApiKeyListResponse, gw as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gR as ArtifactComponentListResponse, gB as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, g8 as CanUseItemSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fI as ContextConfigApiInsertSchema, fH as ContextConfigApiSelectSchema, fJ as ContextConfigApiUpdateSchema, fF as ContextConfigInsertSchema, gL as ContextConfigListResponse, gv as ContextConfigResponse, fE as ContextConfigSelectSchema, fG as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, gU as ConversationListResponse, gE as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gN as CredentialReferenceListResponse, gx as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gQ as DataComponentListResponse, gA as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, gg as ErrorResponseSchema, gh as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gK as ExternalAgentListResponse, gu as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fC as FetchConfigSchema, fD as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gp as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fA as FunctionInsertSchema, gO as FunctionListResponse, gy as FunctionResponse, fz as FunctionSelectSchema, fx as FunctionToolApiInsertSchema, fw as FunctionToolApiSelectSchema, fy as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fu as FunctionToolInsertSchema, gP as FunctionToolListResponse, gz as FunctionToolResponse, ft as FunctionToolSelectSchema, fv as FunctionToolUpdateSchema, fB as FunctionUpdateSchema, g_ as HeadersScopeSchema, g4 as LedgerArtifactApiInsertSchema, g3 as LedgerArtifactApiSelectSchema, g5 as LedgerArtifactApiUpdateSchema, g1 as LedgerArtifactInsertSchema, g0 as LedgerArtifactSelectSchema, g2 as LedgerArtifactUpdateSchema, ge as ListResponseSchema, dI as MAX_ID_LENGTH, fo as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fn as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, gV as MessageListResponse, gF as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, h7 as PaginationQueryParamsSchema, gd as PaginationSchema, gn as ProjectApiInsertSchema, gm as ProjectApiSelectSchema, go as ProjectApiUpdateSchema, gk as ProjectInsertSchema, gG as ProjectListResponse, dM as ProjectModelSchema, gq as ProjectResponse, gj as ProjectSelectSchema, gl as ProjectUpdateSchema, gi as RemovedResponseSchema, gf as SingleResponseSchema, g6 as StatusComponentSchema, g7 as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dT as SubAgentApiInsertSchema, dS as SubAgentApiSelectSchema, dU as SubAgentApiUpdateSchema, f2 as SubAgentArtifactComponentApiInsertSchema, f1 as SubAgentArtifactComponentApiSelectSchema, f3 as SubAgentArtifactComponentApiUpdateSchema, e$ as SubAgentArtifactComponentInsertSchema, gZ as SubAgentArtifactComponentListResponse, gX as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, gY as SubAgentDataComponentListResponse, gW as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, fU as SubAgentExternalAgentRelationApiInsertSchema, fT as SubAgentExternalAgentRelationApiSelectSchema, fV as SubAgentExternalAgentRelationApiUpdateSchema, fR as SubAgentExternalAgentRelationInsertSchema, fQ as SubAgentExternalAgentRelationSelectSchema, fS as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gH as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, gS as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gC as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gr as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, f_ as SubAgentTeamAgentRelationApiInsertSchema, fZ as SubAgentTeamAgentRelationApiSelectSchema, f$ as SubAgentTeamAgentRelationApiUpdateSchema, fX as SubAgentTeamAgentRelationInsertSchema, fW as SubAgentTeamAgentRelationSelectSchema, fY as SubAgentTeamAgentRelationUpdateSchema, fO as SubAgentToolRelationApiInsertSchema, fN as SubAgentToolRelationApiSelectSchema, fP as SubAgentToolRelationApiUpdateSchema, fL as SubAgentToolRelationInsertSchema, gT as SubAgentToolRelationListResponse, gD as SubAgentToolRelationResponse, fK as SubAgentToolRelationSelectSchema, fM as SubAgentToolRelationUpdateSchema, dR as SubAgentUpdateSchema, ec as TaskApiInsertSchema, eb as TaskApiSelectSchema, ed as TaskApiUpdateSchema, e9 as TaskInsertSchema, ei as TaskRelationApiInsertSchema, eh as TaskRelationApiSelectSchema, ej as TaskRelationApiUpdateSchema, ef as TaskRelationInsertSchema, ee as TaskRelationSelectSchema, eg as TaskRelationUpdateSchema, e8 as TaskSelectSchema, ea as TaskUpdateSchema, gb as TeamAgentSchema, h0 as TenantIdParamsSchema, g$ as TenantParamsSchema, h4 as TenantProjectAgentIdParamsSchema, h3 as TenantProjectAgentParamsSchema, h6 as TenantProjectAgentSubAgentIdParamsSchema, h5 as TenantProjectAgentSubAgentParamsSchema, h2 as TenantProjectIdParamsSchema, h1 as TenantProjectParamsSchema, fr as ToolApiInsertSchema, fq as ToolApiSelectSchema, fs as ToolApiUpdateSchema, eo as ToolInsertSchema, gJ as ToolListResponse, gt as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fp as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, g9 as canDelegateToExternalAgentSchema, ga as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-eADYCyd-.js';
4
4
  export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.js';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/sqlite-core';
@@ -24,7 +24,7 @@ declare function validateDataComponentReferences(agentData: FullAgentDefinition,
24
24
  */
25
25
  declare function validateArtifactComponentReferences(agentData: FullAgentDefinition, availableArtifactComponentIds?: Set<string>): void;
26
26
  /**
27
- * Validates agent relationships (transfer and delegation targets exist)
27
+ * Validates agent relationships (transfer and delegation targets exist, and there is no circular delegation)
28
28
  */
29
29
  declare function validateAgentRelationships(agentData: FullAgentDefinition): void;
30
30
  declare function validateSubAgentExternalAgentRelations(agentData: FullAgentDefinition, availableExternalAgentIds?: Set<string>): void;
@@ -151,4 +151,124 @@ declare function validateRender(render: {
151
151
  mockData: Record<string, unknown>;
152
152
  }): RenderValidationResult;
153
153
 
154
- export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type RenderValidationResult, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
154
+ /**
155
+ * Vercel AI SDK Data Stream Protocol Event Schemas
156
+ *
157
+ * These schemas define the structure of events sent by the Inkeep Agents Run API.
158
+ * They are used by both the streaming backend and AI SDK providers to ensure type safety.
159
+ */
160
+ /**
161
+ * Marks the beginning of a text stream
162
+ */
163
+ declare const TextStartEventSchema: z.ZodObject<{
164
+ type: z.ZodLiteral<"text-start">;
165
+ id: z.ZodString;
166
+ }, z.core.$strip>;
167
+ /**
168
+ * Represents a chunk of streaming text
169
+ */
170
+ declare const TextDeltaEventSchema: z.ZodObject<{
171
+ type: z.ZodLiteral<"text-delta">;
172
+ id: z.ZodString;
173
+ delta: z.ZodString;
174
+ }, z.core.$strip>;
175
+ /**
176
+ * Marks the end of a text stream
177
+ */
178
+ declare const TextEndEventSchema: z.ZodObject<{
179
+ type: z.ZodLiteral<"text-end">;
180
+ id: z.ZodString;
181
+ }, z.core.$strip>;
182
+ /**
183
+ * Data component event - structured data in the stream
184
+ * Used for artifacts, visualizations, or other structured outputs
185
+ */
186
+ declare const DataComponentStreamEventSchema: z.ZodObject<{
187
+ type: z.ZodLiteral<"data-component">;
188
+ id: z.ZodString;
189
+ data: z.ZodAny;
190
+ }, z.core.$strip>;
191
+ /**
192
+ * Data operation event - agent operations and state changes
193
+ * Wraps operation events (agent_initializing, completion, etc.)
194
+ */
195
+ declare const DataOperationStreamEventSchema: z.ZodObject<{
196
+ type: z.ZodLiteral<"data-operation">;
197
+ data: z.ZodAny;
198
+ }, z.core.$strip>;
199
+ /**
200
+ * Data summary event - progress summaries and status updates
201
+ */
202
+ declare const DataSummaryStreamEventSchema: z.ZodObject<{
203
+ type: z.ZodLiteral<"data-summary">;
204
+ data: z.ZodAny;
205
+ }, z.core.$strip>;
206
+ /**
207
+ * Stream error event
208
+ */
209
+ declare const StreamErrorEventSchema: z.ZodObject<{
210
+ type: z.ZodLiteral<"error">;
211
+ error: z.ZodString;
212
+ }, z.core.$strip>;
213
+ /**
214
+ * Stream finish event with usage statistics
215
+ */
216
+ declare const StreamFinishEventSchema: z.ZodObject<{
217
+ type: z.ZodLiteral<"finish">;
218
+ finishReason: z.ZodOptional<z.ZodString>;
219
+ usage: z.ZodOptional<z.ZodObject<{
220
+ promptTokens: z.ZodOptional<z.ZodNumber>;
221
+ completionTokens: z.ZodOptional<z.ZodNumber>;
222
+ totalTokens: z.ZodOptional<z.ZodNumber>;
223
+ }, z.core.$strip>>;
224
+ }, z.core.$strip>;
225
+ /**
226
+ * Union of all stream event types
227
+ * This is the main schema used for validating incoming stream events
228
+ */
229
+ declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
230
+ type: z.ZodLiteral<"text-start">;
231
+ id: z.ZodString;
232
+ }, z.core.$strip>, z.ZodObject<{
233
+ type: z.ZodLiteral<"text-delta">;
234
+ id: z.ZodString;
235
+ delta: z.ZodString;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ type: z.ZodLiteral<"text-end">;
238
+ id: z.ZodString;
239
+ }, z.core.$strip>, z.ZodObject<{
240
+ type: z.ZodLiteral<"data-component">;
241
+ id: z.ZodString;
242
+ data: z.ZodAny;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ type: z.ZodLiteral<"data-operation">;
245
+ data: z.ZodAny;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ type: z.ZodLiteral<"data-summary">;
248
+ data: z.ZodAny;
249
+ }, z.core.$strip>, z.ZodObject<{
250
+ type: z.ZodLiteral<"error">;
251
+ error: z.ZodString;
252
+ }, z.core.$strip>, z.ZodObject<{
253
+ type: z.ZodLiteral<"finish">;
254
+ finishReason: z.ZodOptional<z.ZodString>;
255
+ usage: z.ZodOptional<z.ZodObject<{
256
+ promptTokens: z.ZodOptional<z.ZodNumber>;
257
+ completionTokens: z.ZodOptional<z.ZodNumber>;
258
+ totalTokens: z.ZodOptional<z.ZodNumber>;
259
+ }, z.core.$strip>>;
260
+ }, z.core.$strip>], "type">;
261
+ type TextStartEvent = z.infer<typeof TextStartEventSchema>;
262
+ type TextDeltaEvent = z.infer<typeof TextDeltaEventSchema>;
263
+ type TextEndEvent = z.infer<typeof TextEndEventSchema>;
264
+ type DataComponentStreamEvent = z.infer<typeof DataComponentStreamEventSchema>;
265
+ type DataOperationStreamEvent = z.infer<typeof DataOperationStreamEventSchema>;
266
+ type DataSummaryStreamEvent = z.infer<typeof DataSummaryStreamEventSchema>;
267
+ type StreamErrorEvent = z.infer<typeof StreamErrorEventSchema>;
268
+ type StreamFinishEvent = z.infer<typeof StreamFinishEventSchema>;
269
+ /**
270
+ * Union type of all possible stream events
271
+ */
272
+ type StreamEvent = z.infer<typeof StreamEventSchema>;
273
+
274
+ export { type A2AMessageMetadata, A2AMessageMetadataSchema, AgentWithinContextOfProjectSchema, type DataComponentStreamEvent, DataComponentStreamEventSchema, type DataOperationDetails, DataOperationDetailsSchema, type DataOperationEvent, DataOperationEventSchema, type DataOperationStreamEvent, DataOperationStreamEventSchema, type DataSummaryStreamEvent, DataSummaryStreamEventSchema, type DelegationReturnedData, DelegationReturnedDataSchema, type DelegationSentData, DelegationSentDataSchema, type RenderValidationResult, type StreamErrorEvent, StreamErrorEventSchema, type StreamEvent, StreamEventSchema, type StreamFinishEvent, StreamFinishEventSchema, type TextDeltaEvent, TextDeltaEventSchema, type TextEndEvent, TextEndEventSchema, type TextStartEvent, TextStartEventSchema, type TransferData, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
@@ -1,2 +1,2 @@
1
- export { A2AMessageMetadataSchema, DataOperationDetailsSchema, DataOperationEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from '../chunk-QEY2ACBE.js';
2
- 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, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, 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, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, 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, validatePropsAsJsonSchema } from '../chunk-C2QU7WTO.js';
1
+ export { A2AMessageMetadataSchema, DataComponentStreamEventSchema, DataOperationDetailsSchema, DataOperationEventSchema, DataOperationStreamEventSchema, DataSummaryStreamEventSchema, DelegationReturnedDataSchema, DelegationSentDataSchema, StreamErrorEventSchema, StreamEventSchema, StreamFinishEventSchema, TextDeltaEventSchema, TextEndEventSchema, TextStartEventSchema, TransferDataSchema, generateIdFromName, isValidResourceId, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences } from '../chunk-5EDDDVYT.js';
2
+ 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, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, 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, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, 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, validatePropsAsJsonSchema } from '../chunk-37BY2EHU.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.29.11",
3
+ "version": "0.30.1",
4
4
  "description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
5
5
  "type": "module",
6
6
  "license": "SEE LICENSE IN LICENSE.md",