@inkeep/agents-core 0.37.0 → 0.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/auth/auth-schema.d.ts +47 -1
  2. package/dist/auth/auth-schema.js +1 -1
  3. package/dist/auth/auth-validation-schemas.d.ts +35 -1
  4. package/dist/auth/auth-validation-schemas.js +18 -18
  5. package/dist/auth/auth.d.ts +23 -23
  6. package/dist/auth/auth.js +13 -5
  7. package/dist/auth/permissions.d.ts +9 -9
  8. package/dist/auth/permissions.js +1 -1
  9. package/dist/{auth-detection-CGqhPDnj.d.ts → auth-detection-7G0Dxt55.d.ts} +11 -0
  10. package/dist/{chunk-ICZLNCX7.js → chunk-3HACEHXF.js} +370 -71
  11. package/dist/{chunk-32YRH2S7.js → chunk-5QZSNATS.js} +63 -67
  12. package/dist/{chunk-SSRRHYU4.js → chunk-6CYQZ5KX.js} +4 -5
  13. package/dist/{chunk-SLQW43IV.js → chunk-BJLC7EI4.js} +4 -5
  14. package/dist/chunk-CMNLBV2A.js +39 -0
  15. package/dist/{chunk-NFYCSHD3.js → chunk-DEYPSEXR.js} +2 -1
  16. package/dist/chunk-GENLXHZ4.js +159 -0
  17. package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
  18. package/dist/{chunk-TGESM3JG.js → chunk-MQMMFK2K.js} +14 -3
  19. package/dist/{chunk-Q5U2SVA6.js → chunk-RUTYLJB7.js} +11 -7
  20. package/dist/{chunk-VQXQOGJU.js → chunk-XHODTX4H.js} +313 -315
  21. package/dist/{chunk-MB2ZIPZS.js → chunk-YSFXXC6K.js} +5 -5
  22. package/dist/{chunk-SG75RA63.js → chunk-ZSYMSL55.js} +2 -2
  23. package/dist/{client-CnpNkGsH.d.ts → client-B3nwdklT.d.ts} +1 -1
  24. package/dist/client-exports.d.ts +10 -8
  25. package/dist/client-exports.js +126 -127
  26. package/dist/constants/schema-validation/index.js +1 -1
  27. package/dist/credential-stores/index.d.ts +4 -5
  28. package/dist/credential-stores/index.js +1 -1
  29. package/dist/db/schema.d.ts +3 -4
  30. package/dist/db/schema.js +2 -2
  31. package/dist/db/test-client.d.ts +4 -5
  32. package/dist/db/test-client.js +1 -1
  33. package/dist/index.d.ts +675 -558
  34. package/dist/index.js +297 -76
  35. package/dist/{schema-Cgkp_geg.d.ts → schema-BhYTubhP.d.ts} +24 -1
  36. package/dist/server-CHLmv-Jb.d.ts +127 -0
  37. package/dist/types/index.d.ts +34 -115
  38. package/dist/types/index.js +1 -1
  39. package/dist/{utility-C_tTZ7-k.d.ts → utility-5USfJ5Xd.d.ts} +588 -459
  40. package/dist/utils/schema-conversion.d.ts +1 -1
  41. package/dist/utils/schema-conversion.js +1 -1
  42. package/dist/validation/index.d.ts +131 -132
  43. package/dist/validation/index.js +2 -2
  44. package/drizzle/{0001_fair_malice.sql → 0001_calm_sheva_callister.sql} +1 -16
  45. package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
  46. package/drizzle/0003_sweet_human_robot.sql +8 -0
  47. package/drizzle/meta/0001_snapshot.json +7 -1
  48. package/drizzle/meta/0002_snapshot.json +3637 -0
  49. package/drizzle/meta/0003_snapshot.json +3643 -0
  50. package/drizzle/meta/_journal.json +16 -2
  51. package/package.json +11 -3
  52. package/dist/chunk-CUM6BY2Y.js +0 -320
  53. package/dist/chunk-H2F72PDA.js +0 -15
  54. package/dist/chunk-NOPEANIU.js +0 -82
  55. package/dist/chunk-OUXC23J7.js +0 -12534
@@ -1,4 +1,4 @@
1
- import { z } from 'zod';
1
+ import { z } from '@hono/zod-openapi';
2
2
 
3
3
  /**
4
4
  * Utility function for converting Zod schemas to JSON Schema
@@ -1 +1 @@
1
- export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from '../chunk-SSRRHYU4.js';
1
+ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from '../chunk-6CYQZ5KX.js';
@@ -1,8 +1,7 @@
1
- import { z as z$1 } from 'zod';
2
- import { gh as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-C_tTZ7-k.js';
3
- export { e3 as AgentApiInsertSchema, e2 as AgentApiSelectSchema, e4 as AgentApiUpdateSchema, e0 as AgentInsertSchema, gN as AgentListResponse, gx as AgentResponse, d$ as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e1 as AgentUpdateSchema, h4 as AgentWithinContextOfProjectResponse, f7 as AllAgentSchema, fc as ApiKeyApiCreationResponseSchema, fd as ApiKeyApiInsertSchema, fb as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, f9 as ApiKeyInsertSchema, gR as ApiKeyListResponse, gB as ApiKeyResponse, f8 as ApiKeySelectSchema, fa as ApiKeyUpdateSchema, eV as ArtifactComponentApiInsertSchema, eU as ArtifactComponentApiSelectSchema, eW as ArtifactComponentApiUpdateSchema, he as ArtifactComponentArrayResponse, eS as ArtifactComponentInsertSchema, gW as ArtifactComponentListResponse, gG as ArtifactComponentResponse, eR as ArtifactComponentSelectSchema, eT as ArtifactComponentUpdateSchema, gd as CanUseItemSchema, h6 as ComponentAssociationListResponse, fp as ComponentAssociationSchema, eC as ContextCacheApiInsertSchema, eB as ContextCacheApiSelectSchema, eD as ContextCacheApiUpdateSchema, ez as ContextCacheInsertSchema, ey as ContextCacheSelectSchema, eA as ContextCacheUpdateSchema, fN as ContextConfigApiInsertSchema, fM as ContextConfigApiSelectSchema, fO as ContextConfigApiUpdateSchema, fK as ContextConfigInsertSchema, gQ as ContextConfigListResponse, gA as ContextConfigResponse, fJ as ContextConfigSelectSchema, fL as ContextConfigUpdateSchema, eq as ConversationApiInsertSchema, ep as ConversationApiSelectSchema, er as ConversationApiUpdateSchema, en as ConversationInsertSchema, gZ as ConversationListResponse, gJ as ConversationResponse, em as ConversationSelectSchema, eo as ConversationUpdateSchema, fm as CreateCredentialInStoreRequestSchema, fn as CreateCredentialInStoreResponseSchema, fi as CredentialReferenceApiInsertSchema, fh as CredentialReferenceApiSelectSchema, fj as CredentialReferenceApiUpdateSchema, ff as CredentialReferenceInsertSchema, gS as CredentialReferenceListResponse, gC as CredentialReferenceResponse, fe as CredentialReferenceSelectSchema, fg as CredentialReferenceUpdateSchema, fl as CredentialStoreListResponseSchema, fk as CredentialStoreSchema, eJ as DataComponentApiInsertSchema, eI as DataComponentApiSelectSchema, eK as DataComponentApiUpdateSchema, hd as DataComponentArrayResponse, eG as DataComponentBaseSchema, eF as DataComponentInsertSchema, gV as DataComponentListResponse, gF as DataComponentResponse, eE as DataComponentSelectSchema, eH as DataComponentUpdateSchema, gl as ErrorResponseSchema, gm as ExistsResponseSchema, f5 as ExternalAgentApiInsertSchema, f4 as ExternalAgentApiSelectSchema, f6 as ExternalAgentApiUpdateSchema, f2 as ExternalAgentInsertSchema, gP as ExternalAgentListResponse, gz as ExternalAgentResponse, f1 as ExternalAgentSelectSchema, f3 as ExternalAgentUpdateSchema, d_ as ExternalSubAgentRelationApiInsertSchema, dZ as ExternalSubAgentRelationInsertSchema, fH as FetchConfigSchema, fI as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, h3 as FullProjectDefinitionResponse, gu as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fF as FunctionInsertSchema, gT as FunctionListResponse, gD as FunctionResponse, fE as FunctionSelectSchema, fC as FunctionToolApiInsertSchema, fB as FunctionToolApiSelectSchema, fD as FunctionToolApiUpdateSchema, dL as FunctionToolConfig, dK as FunctionToolConfigSchema, fz as FunctionToolInsertSchema, gU as FunctionToolListResponse, gE as FunctionToolResponse, fy as FunctionToolSelectSchema, fA as FunctionToolUpdateSchema, fG as FunctionUpdateSchema, hf as HeadersScopeSchema, g9 as LedgerArtifactApiInsertSchema, g8 as LedgerArtifactApiSelectSchema, ga as LedgerArtifactApiUpdateSchema, g6 as LedgerArtifactInsertSchema, g5 as LedgerArtifactSelectSchema, g7 as LedgerArtifactUpdateSchema, gj as ListResponseSchema, hp as MCPCatalogListResponse, ft as MCPToolConfigSchema, ej as McpToolDefinitionSchema, h8 as McpToolListResponse, h7 as McpToolResponse, fs as McpToolSchema, eh as McpTransportConfigSchema, ew as MessageApiInsertSchema, ev as MessageApiSelectSchema, ex as MessageApiUpdateSchema, et as MessageInsertSchema, g_ as MessageListResponse, gK as MessageResponse, es as MessageSelectSchema, eu as MessageUpdateSchema, dI as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, fr as OAuthCallbackQuerySchema, fq as OAuthLoginQuerySchema, ho as PaginationQueryParamsSchema, gi as PaginationSchema, az as PrebuiltMCPServerSchema, gs as ProjectApiInsertSchema, gr as ProjectApiSelectSchema, gt as ProjectApiUpdateSchema, gp as ProjectInsertSchema, gL as ProjectListResponse, dJ as ProjectModelSchema, gv as ProjectResponse, go as ProjectSelectSchema, gq as ProjectUpdateSchema, h5 as RelatedAgentInfoListResponse, fo as RelatedAgentInfoSchema, gn as RemovedResponseSchema, gk as SingleResponseSchema, gb as StatusComponentSchema, gc as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dQ as SubAgentApiInsertSchema, dP as SubAgentApiSelectSchema, dR as SubAgentApiUpdateSchema, e$ as SubAgentArtifactComponentApiInsertSchema, e_ as SubAgentArtifactComponentApiSelectSchema, f0 as SubAgentArtifactComponentApiUpdateSchema, eY as SubAgentArtifactComponentInsertSchema, h2 as SubAgentArtifactComponentListResponse, h0 as SubAgentArtifactComponentResponse, eX as SubAgentArtifactComponentSelectSchema, eZ as SubAgentArtifactComponentUpdateSchema, eP as SubAgentDataComponentApiInsertSchema, eO as SubAgentDataComponentApiSelectSchema, eQ as SubAgentDataComponentApiUpdateSchema, eM as SubAgentDataComponentInsertSchema, h1 as SubAgentDataComponentListResponse, g$ as SubAgentDataComponentResponse, eL as SubAgentDataComponentSelectSchema, eN as SubAgentDataComponentUpdateSchema, fZ as SubAgentExternalAgentRelationApiInsertSchema, fY as SubAgentExternalAgentRelationApiSelectSchema, f_ as SubAgentExternalAgentRelationApiUpdateSchema, fW as SubAgentExternalAgentRelationInsertSchema, hc as SubAgentExternalAgentRelationListResponse, hb as SubAgentExternalAgentRelationResponse, fV as SubAgentExternalAgentRelationSelectSchema, fX as SubAgentExternalAgentRelationUpdateSchema, dN as SubAgentInsertSchema, gM as SubAgentListResponse, dW as SubAgentRelationApiInsertSchema, dV as SubAgentRelationApiSelectSchema, dX as SubAgentRelationApiUpdateSchema, dT as SubAgentRelationInsertSchema, gX as SubAgentRelationListResponse, dY as SubAgentRelationQuerySchema, gH as SubAgentRelationResponse, dS as SubAgentRelationSelectSchema, dU as SubAgentRelationUpdateSchema, gw as SubAgentResponse, dM as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, g3 as SubAgentTeamAgentRelationApiInsertSchema, g2 as SubAgentTeamAgentRelationApiSelectSchema, g4 as SubAgentTeamAgentRelationApiUpdateSchema, g0 as SubAgentTeamAgentRelationInsertSchema, ha as SubAgentTeamAgentRelationListResponse, h9 as SubAgentTeamAgentRelationResponse, f$ as SubAgentTeamAgentRelationSelectSchema, g1 as SubAgentTeamAgentRelationUpdateSchema, fT as SubAgentToolRelationApiInsertSchema, fS as SubAgentToolRelationApiSelectSchema, fU as SubAgentToolRelationApiUpdateSchema, fQ as SubAgentToolRelationInsertSchema, gY as SubAgentToolRelationListResponse, gI as SubAgentToolRelationResponse, fP as SubAgentToolRelationSelectSchema, fR as SubAgentToolRelationUpdateSchema, dO as SubAgentUpdateSchema, e9 as TaskApiInsertSchema, e8 as TaskApiSelectSchema, ea as TaskApiUpdateSchema, e6 as TaskInsertSchema, ef as TaskRelationApiInsertSchema, ee as TaskRelationApiSelectSchema, eg as TaskRelationApiUpdateSchema, ec as TaskRelationInsertSchema, eb as TaskRelationSelectSchema, ed as TaskRelationUpdateSchema, e5 as TaskSelectSchema, e7 as TaskUpdateSchema, gg as TeamAgentSchema, hh as TenantIdParamsSchema, hg as TenantParamsSchema, hl as TenantProjectAgentIdParamsSchema, hk as TenantProjectAgentParamsSchema, hn as TenantProjectAgentSubAgentIdParamsSchema, hm as TenantProjectAgentSubAgentParamsSchema, hj as TenantProjectIdParamsSchema, hi as TenantProjectParamsSchema, hq as ThirdPartyMCPServerResponse, fw as ToolApiInsertSchema, fv as ToolApiSelectSchema, fx as ToolApiUpdateSchema, el as ToolInsertSchema, gO as ToolListResponse, gy as ToolResponse, ek as ToolSelectSchema, ei as ToolStatusSchema, fu as ToolUpdateSchema, ge as canDelegateToExternalAgentSchema, gf as canDelegateToTeamAgentSchema } from '../utility-C_tTZ7-k.js';
4
- export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.js';
5
1
  import { z } from '@hono/zod-openapi';
2
+ import { gi as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-5USfJ5Xd.js';
3
+ export { e4 as AgentApiInsertSchema, e3 as AgentApiSelectSchema, e5 as AgentApiUpdateSchema, e1 as AgentInsertSchema, gO as AgentListResponse, gy as AgentResponse, e0 as AgentSelectSchema, e as AgentStopWhen, b as AgentStopWhenSchema, e2 as AgentUpdateSchema, h5 as AgentWithinContextOfProjectResponse, f8 as AllAgentSchema, fd as ApiKeyApiCreationResponseSchema, fe as ApiKeyApiInsertSchema, fc as ApiKeyApiSelectSchema, A as ApiKeyApiUpdateSchema, fa as ApiKeyInsertSchema, gS as ApiKeyListResponse, gC as ApiKeyResponse, f9 as ApiKeySelectSchema, fb as ApiKeyUpdateSchema, eW as ArtifactComponentApiInsertSchema, eV as ArtifactComponentApiSelectSchema, eX as ArtifactComponentApiUpdateSchema, hf as ArtifactComponentArrayResponse, eT as ArtifactComponentInsertSchema, gX as ArtifactComponentListResponse, gH as ArtifactComponentResponse, eS as ArtifactComponentSelectSchema, eU as ArtifactComponentUpdateSchema, ge as CanUseItemSchema, h7 as ComponentAssociationListResponse, fq as ComponentAssociationSchema, eD as ContextCacheApiInsertSchema, eC as ContextCacheApiSelectSchema, eE as ContextCacheApiUpdateSchema, eA as ContextCacheInsertSchema, ez as ContextCacheSelectSchema, eB as ContextCacheUpdateSchema, fO as ContextConfigApiInsertSchema, fN as ContextConfigApiSelectSchema, fP as ContextConfigApiUpdateSchema, fL as ContextConfigInsertSchema, gR as ContextConfigListResponse, gB as ContextConfigResponse, fK as ContextConfigSelectSchema, fM as ContextConfigUpdateSchema, er as ConversationApiInsertSchema, eq as ConversationApiSelectSchema, es as ConversationApiUpdateSchema, eo as ConversationInsertSchema, g_ as ConversationListResponse, gK as ConversationResponse, en as ConversationSelectSchema, ep as ConversationUpdateSchema, fn as CreateCredentialInStoreRequestSchema, fo as CreateCredentialInStoreResponseSchema, fj as CredentialReferenceApiInsertSchema, fi as CredentialReferenceApiSelectSchema, fk as CredentialReferenceApiUpdateSchema, fg as CredentialReferenceInsertSchema, gT as CredentialReferenceListResponse, gD as CredentialReferenceResponse, ff as CredentialReferenceSelectSchema, fh as CredentialReferenceUpdateSchema, fm as CredentialStoreListResponseSchema, fl as CredentialStoreSchema, eK as DataComponentApiInsertSchema, eJ as DataComponentApiSelectSchema, eL as DataComponentApiUpdateSchema, he as DataComponentArrayResponse, eH as DataComponentBaseSchema, eG as DataComponentInsertSchema, gW as DataComponentListResponse, gG as DataComponentResponse, eF as DataComponentSelectSchema, eI as DataComponentUpdateSchema, gm as ErrorResponseSchema, gn as ExistsResponseSchema, f6 as ExternalAgentApiInsertSchema, f5 as ExternalAgentApiSelectSchema, f7 as ExternalAgentApiUpdateSchema, f3 as ExternalAgentInsertSchema, gQ as ExternalAgentListResponse, gA as ExternalAgentResponse, f2 as ExternalAgentSelectSchema, f4 as ExternalAgentUpdateSchema, d$ as ExternalSubAgentRelationApiInsertSchema, d_ as ExternalSubAgentRelationInsertSchema, fI as FetchConfigSchema, fJ as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fG as FunctionInsertSchema, gU as FunctionListResponse, gE as FunctionResponse, fF as FunctionSelectSchema, fD as FunctionToolApiInsertSchema, fC as FunctionToolApiSelectSchema, fE as FunctionToolApiUpdateSchema, dM as FunctionToolConfig, dL as FunctionToolConfigSchema, fA as FunctionToolInsertSchema, gV as FunctionToolListResponse, gF as FunctionToolResponse, fz as FunctionToolSelectSchema, fB as FunctionToolUpdateSchema, fH as FunctionUpdateSchema, hg as HeadersScopeSchema, ga as LedgerArtifactApiInsertSchema, g9 as LedgerArtifactApiSelectSchema, gb as LedgerArtifactApiUpdateSchema, g7 as LedgerArtifactInsertSchema, g6 as LedgerArtifactSelectSchema, g8 as LedgerArtifactUpdateSchema, gk as ListResponseSchema, hq as MCPCatalogListResponse, fu as MCPToolConfigSchema, ek as McpToolDefinitionSchema, h9 as McpToolListResponse, h8 as McpToolResponse, ft as McpToolSchema, ei as McpTransportConfigSchema, ex as MessageApiInsertSchema, ew as MessageApiSelectSchema, ey as MessageApiUpdateSchema, eu as MessageInsertSchema, g$ as MessageListResponse, gL as MessageResponse, et as MessageSelectSchema, ev as MessageUpdateSchema, dJ as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, fs as OAuthCallbackQuerySchema, fr as OAuthLoginQuerySchema, hp as PaginationQueryParamsSchema, gj as PaginationSchema, aA as PrebuiltMCPServerSchema, gt as ProjectApiInsertSchema, gs as ProjectApiSelectSchema, gu as ProjectApiUpdateSchema, gq as ProjectInsertSchema, gM as ProjectListResponse, dK as ProjectModelSchema, gw as ProjectResponse, gp as ProjectSelectSchema, gr as ProjectUpdateSchema, h6 as RelatedAgentInfoListResponse, fp as RelatedAgentInfoSchema, go as RemovedResponseSchema, gl as SingleResponseSchema, gc as StatusComponentSchema, gd as StatusUpdateSchema, d as StopWhen, S as StopWhenSchema, dR as SubAgentApiInsertSchema, dQ as SubAgentApiSelectSchema, dS as SubAgentApiUpdateSchema, f0 as SubAgentArtifactComponentApiInsertSchema, e$ as SubAgentArtifactComponentApiSelectSchema, f1 as SubAgentArtifactComponentApiUpdateSchema, eZ as SubAgentArtifactComponentInsertSchema, h3 as SubAgentArtifactComponentListResponse, h1 as SubAgentArtifactComponentResponse, eY as SubAgentArtifactComponentSelectSchema, e_ as SubAgentArtifactComponentUpdateSchema, eQ as SubAgentDataComponentApiInsertSchema, eP as SubAgentDataComponentApiSelectSchema, eR as SubAgentDataComponentApiUpdateSchema, eN as SubAgentDataComponentInsertSchema, h2 as SubAgentDataComponentListResponse, h0 as SubAgentDataComponentResponse, eM as SubAgentDataComponentSelectSchema, eO as SubAgentDataComponentUpdateSchema, f_ as SubAgentExternalAgentRelationApiInsertSchema, fZ as SubAgentExternalAgentRelationApiSelectSchema, f$ as SubAgentExternalAgentRelationApiUpdateSchema, fX as SubAgentExternalAgentRelationInsertSchema, hd as SubAgentExternalAgentRelationListResponse, hc as SubAgentExternalAgentRelationResponse, fW as SubAgentExternalAgentRelationSelectSchema, fY as SubAgentExternalAgentRelationUpdateSchema, dO as SubAgentInsertSchema, gN as SubAgentListResponse, dX as SubAgentRelationApiInsertSchema, dW as SubAgentRelationApiSelectSchema, dY as SubAgentRelationApiUpdateSchema, dU as SubAgentRelationInsertSchema, gY as SubAgentRelationListResponse, dZ as SubAgentRelationQuerySchema, gI as SubAgentRelationResponse, dT as SubAgentRelationSelectSchema, dV as SubAgentRelationUpdateSchema, gx as SubAgentResponse, dN as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, g4 as SubAgentTeamAgentRelationApiInsertSchema, g3 as SubAgentTeamAgentRelationApiSelectSchema, g5 as SubAgentTeamAgentRelationApiUpdateSchema, g1 as SubAgentTeamAgentRelationInsertSchema, hb as SubAgentTeamAgentRelationListResponse, ha as SubAgentTeamAgentRelationResponse, g0 as SubAgentTeamAgentRelationSelectSchema, g2 as SubAgentTeamAgentRelationUpdateSchema, fU as SubAgentToolRelationApiInsertSchema, fT as SubAgentToolRelationApiSelectSchema, fV as SubAgentToolRelationApiUpdateSchema, fR as SubAgentToolRelationInsertSchema, gZ as SubAgentToolRelationListResponse, gJ as SubAgentToolRelationResponse, fQ as SubAgentToolRelationSelectSchema, fS as SubAgentToolRelationUpdateSchema, dP as SubAgentUpdateSchema, ea as TaskApiInsertSchema, e9 as TaskApiSelectSchema, eb as TaskApiUpdateSchema, e7 as TaskInsertSchema, eg as TaskRelationApiInsertSchema, ef as TaskRelationApiSelectSchema, eh as TaskRelationApiUpdateSchema, ed as TaskRelationInsertSchema, ec as TaskRelationSelectSchema, ee as TaskRelationUpdateSchema, e6 as TaskSelectSchema, e8 as TaskUpdateSchema, gh as TeamAgentSchema, hi as TenantIdParamsSchema, hh as TenantParamsSchema, hm as TenantProjectAgentIdParamsSchema, hl as TenantProjectAgentParamsSchema, ho as TenantProjectAgentSubAgentIdParamsSchema, hn as TenantProjectAgentSubAgentParamsSchema, hk as TenantProjectIdParamsSchema, hj as TenantProjectParamsSchema, hr as ThirdPartyMCPServerResponse, fx as ToolApiInsertSchema, fw as ToolApiSelectSchema, fy as ToolApiUpdateSchema, em as ToolInsertSchema, gP as ToolListResponse, gz as ToolResponse, el as ToolSelectSchema, ej as ToolStatusSchema, fv as ToolUpdateSchema, gf as canDelegateToExternalAgentSchema, gg as canDelegateToTeamAgentSchema } from '../utility-5USfJ5Xd.js';
4
+ export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.js';
6
5
  import 'drizzle-zod';
7
6
  import 'drizzle-orm/pg-core';
8
7
 
@@ -11,7 +10,7 @@ declare const MAX_ID_LENGTH = 255;
11
10
  declare const URL_SAFE_ID_PATTERN: RegExp;
12
11
  declare const resourceIdSchema: z.ZodString;
13
12
 
14
- declare function validateAndTypeAgentData(data: unknown): z$1.infer<typeof AgentWithinContextOfProjectSchema>;
13
+ declare function validateAndTypeAgentData(data: unknown): z.infer<typeof AgentWithinContextOfProjectSchema>;
15
14
  /**
16
15
  * Validates that all tool IDs referenced in agents exist in the tools record
17
16
  * Note: With scoped architecture, tool validation should be done at the project level
@@ -48,73 +47,73 @@ declare function validateAgentStructure(agentData: FullAgentDefinition, projectR
48
47
  * Agent transfer event data
49
48
  * Used when an agent transfers control to another agent
50
49
  */
51
- declare const TransferDataSchema: z$1.ZodObject<{
52
- fromSubAgent: z$1.ZodString;
53
- targetSubAgent: z$1.ZodString;
54
- reason: z$1.ZodOptional<z$1.ZodString>;
55
- context: z$1.ZodOptional<z$1.ZodAny>;
56
- }, z$1.core.$strip>;
57
- type TransferData = z$1.infer<typeof TransferDataSchema>;
50
+ declare const TransferDataSchema: z.ZodObject<{
51
+ fromSubAgent: z.ZodString;
52
+ targetSubAgent: z.ZodString;
53
+ reason: z.ZodOptional<z.ZodString>;
54
+ context: z.ZodOptional<z.ZodAny>;
55
+ }, z.core.$strip>;
56
+ type TransferData = z.infer<typeof TransferDataSchema>;
58
57
  /**
59
58
  * Delegation sent event data
60
59
  * Used when an agent delegates a task to another agent
61
60
  */
62
- declare const DelegationSentDataSchema: z$1.ZodObject<{
63
- delegationId: z$1.ZodString;
64
- fromSubAgent: z$1.ZodString;
65
- targetSubAgent: z$1.ZodString;
66
- taskDescription: z$1.ZodString;
67
- context: z$1.ZodOptional<z$1.ZodAny>;
68
- }, z$1.core.$strip>;
69
- type DelegationSentData = z$1.infer<typeof DelegationSentDataSchema>;
61
+ declare const DelegationSentDataSchema: z.ZodObject<{
62
+ delegationId: z.ZodString;
63
+ fromSubAgent: z.ZodString;
64
+ targetSubAgent: z.ZodString;
65
+ taskDescription: z.ZodString;
66
+ context: z.ZodOptional<z.ZodAny>;
67
+ }, z.core.$strip>;
68
+ type DelegationSentData = z.infer<typeof DelegationSentDataSchema>;
70
69
  /**
71
70
  * Delegation returned event data
72
71
  * Used when a delegated task is completed and returned
73
72
  */
74
- declare const DelegationReturnedDataSchema: z$1.ZodObject<{
75
- delegationId: z$1.ZodString;
76
- fromSubAgent: z$1.ZodString;
77
- targetSubAgent: z$1.ZodString;
78
- result: z$1.ZodOptional<z$1.ZodAny>;
79
- }, z$1.core.$strip>;
80
- type DelegationReturnedData = z$1.infer<typeof DelegationReturnedDataSchema>;
73
+ declare const DelegationReturnedDataSchema: z.ZodObject<{
74
+ delegationId: z.ZodString;
75
+ fromSubAgent: z.ZodString;
76
+ targetSubAgent: z.ZodString;
77
+ result: z.ZodOptional<z.ZodAny>;
78
+ }, z.core.$strip>;
79
+ type DelegationReturnedData = z.infer<typeof DelegationReturnedDataSchema>;
81
80
  /**
82
81
  * Data operation event details
83
82
  * Used for emit operations and agent data events
84
83
  */
85
- declare const DataOperationDetailsSchema: z$1.ZodObject<{
86
- timestamp: z$1.ZodNumber;
87
- subAgentId: z$1.ZodString;
88
- data: z$1.ZodAny;
89
- }, z$1.core.$strip>;
90
- type DataOperationDetails = z$1.infer<typeof DataOperationDetailsSchema>;
84
+ declare const DataOperationDetailsSchema: z.ZodObject<{
85
+ timestamp: z.ZodNumber;
86
+ subAgentId: z.ZodString;
87
+ data: z.ZodAny;
88
+ }, z.core.$strip>;
89
+ type DataOperationDetails = z.infer<typeof DataOperationDetailsSchema>;
91
90
  /**
92
91
  * Complete data operation event
93
92
  * Includes type and label for user-facing display
94
93
  */
95
- declare const DataOperationEventSchema: z$1.ZodObject<{
96
- type: z$1.ZodString;
97
- label: z$1.ZodString;
98
- details: z$1.ZodObject<{
99
- timestamp: z$1.ZodNumber;
100
- subAgentId: z$1.ZodString;
101
- data: z$1.ZodAny;
102
- }, z$1.core.$strip>;
103
- }, z$1.core.$strip>;
104
- type DataOperationEvent = z$1.infer<typeof DataOperationEventSchema>;
94
+ declare const DataOperationEventSchema: z.ZodObject<{
95
+ type: z.ZodString;
96
+ label: z.ZodString;
97
+ details: z.ZodObject<{
98
+ timestamp: z.ZodNumber;
99
+ subAgentId: z.ZodString;
100
+ data: z.ZodAny;
101
+ }, z.core.$strip>;
102
+ }, z.core.$strip>;
103
+ type DataOperationEvent = z.infer<typeof DataOperationEventSchema>;
105
104
  /**
106
105
  * Message metadata for A2A communication
107
106
  * Used in message passing between agents
108
107
  */
109
- declare const A2AMessageMetadataSchema: z$1.ZodObject<{
110
- fromSubAgentId: z$1.ZodOptional<z$1.ZodString>;
111
- toSubAgentId: z$1.ZodOptional<z$1.ZodString>;
112
- fromExternalAgentId: z$1.ZodOptional<z$1.ZodString>;
113
- toExternalAgentId: z$1.ZodOptional<z$1.ZodString>;
114
- taskId: z$1.ZodOptional<z$1.ZodString>;
115
- a2aTaskId: z$1.ZodOptional<z$1.ZodString>;
116
- }, z$1.core.$strip>;
117
- type A2AMessageMetadata = z$1.infer<typeof A2AMessageMetadataSchema>;
108
+ declare const A2AMessageMetadataSchema: z.ZodObject<{
109
+ fromSubAgentId: z.ZodOptional<z.ZodString>;
110
+ toSubAgentId: z.ZodOptional<z.ZodString>;
111
+ fromExternalAgentId: z.ZodOptional<z.ZodString>;
112
+ toExternalAgentId: z.ZodOptional<z.ZodString>;
113
+ taskId: z.ZodOptional<z.ZodString>;
114
+ a2aTaskId: z.ZodOptional<z.ZodString>;
115
+ }, z.core.$strip>;
116
+ type A2AMessageMetadata = z.infer<typeof A2AMessageMetadataSchema>;
118
117
 
119
118
  /**
120
119
  * Valid URL-safe characters for resource IDs based on RFC 3986.
@@ -165,115 +164,115 @@ declare function validateRender(render: {
165
164
  /**
166
165
  * Marks the beginning of a text stream
167
166
  */
168
- declare const TextStartEventSchema: z$1.ZodObject<{
169
- type: z$1.ZodLiteral<"text-start">;
170
- id: z$1.ZodString;
171
- }, z$1.core.$strip>;
167
+ declare const TextStartEventSchema: z.ZodObject<{
168
+ type: z.ZodLiteral<"text-start">;
169
+ id: z.ZodString;
170
+ }, z.core.$strip>;
172
171
  /**
173
172
  * Represents a chunk of streaming text
174
173
  */
175
- declare const TextDeltaEventSchema: z$1.ZodObject<{
176
- type: z$1.ZodLiteral<"text-delta">;
177
- id: z$1.ZodString;
178
- delta: z$1.ZodString;
179
- }, z$1.core.$strip>;
174
+ declare const TextDeltaEventSchema: z.ZodObject<{
175
+ type: z.ZodLiteral<"text-delta">;
176
+ id: z.ZodString;
177
+ delta: z.ZodString;
178
+ }, z.core.$strip>;
180
179
  /**
181
180
  * Marks the end of a text stream
182
181
  */
183
- declare const TextEndEventSchema: z$1.ZodObject<{
184
- type: z$1.ZodLiteral<"text-end">;
185
- id: z$1.ZodString;
186
- }, z$1.core.$strip>;
182
+ declare const TextEndEventSchema: z.ZodObject<{
183
+ type: z.ZodLiteral<"text-end">;
184
+ id: z.ZodString;
185
+ }, z.core.$strip>;
187
186
  /**
188
187
  * Data component event - structured data in the stream
189
188
  * Used for artifacts, visualizations, or other structured outputs
190
189
  */
191
- declare const DataComponentStreamEventSchema: z$1.ZodObject<{
192
- type: z$1.ZodLiteral<"data-component">;
193
- id: z$1.ZodString;
194
- data: z$1.ZodAny;
195
- }, z$1.core.$strip>;
190
+ declare const DataComponentStreamEventSchema: z.ZodObject<{
191
+ type: z.ZodLiteral<"data-component">;
192
+ id: z.ZodString;
193
+ data: z.ZodAny;
194
+ }, z.core.$strip>;
196
195
  /**
197
196
  * Data operation event - agent operations and state changes
198
197
  * Wraps operation events (agent_initializing, completion, etc.)
199
198
  */
200
- declare const DataOperationStreamEventSchema: z$1.ZodObject<{
201
- type: z$1.ZodLiteral<"data-operation">;
202
- data: z$1.ZodAny;
203
- }, z$1.core.$strip>;
199
+ declare const DataOperationStreamEventSchema: z.ZodObject<{
200
+ type: z.ZodLiteral<"data-operation">;
201
+ data: z.ZodAny;
202
+ }, z.core.$strip>;
204
203
  /**
205
204
  * Data summary event - progress summaries and status updates
206
205
  */
207
- declare const DataSummaryStreamEventSchema: z$1.ZodObject<{
208
- type: z$1.ZodLiteral<"data-summary">;
209
- data: z$1.ZodAny;
210
- }, z$1.core.$strip>;
206
+ declare const DataSummaryStreamEventSchema: z.ZodObject<{
207
+ type: z.ZodLiteral<"data-summary">;
208
+ data: z.ZodAny;
209
+ }, z.core.$strip>;
211
210
  /**
212
211
  * Stream error event
213
212
  */
214
- declare const StreamErrorEventSchema: z$1.ZodObject<{
215
- type: z$1.ZodLiteral<"error">;
216
- error: z$1.ZodString;
217
- }, z$1.core.$strip>;
213
+ declare const StreamErrorEventSchema: z.ZodObject<{
214
+ type: z.ZodLiteral<"error">;
215
+ error: z.ZodString;
216
+ }, z.core.$strip>;
218
217
  /**
219
218
  * Stream finish event with usage statistics
220
219
  */
221
- declare const StreamFinishEventSchema: z$1.ZodObject<{
222
- type: z$1.ZodLiteral<"finish">;
223
- finishReason: z$1.ZodOptional<z$1.ZodString>;
224
- usage: z$1.ZodOptional<z$1.ZodObject<{
225
- promptTokens: z$1.ZodOptional<z$1.ZodNumber>;
226
- completionTokens: z$1.ZodOptional<z$1.ZodNumber>;
227
- totalTokens: z$1.ZodOptional<z$1.ZodNumber>;
228
- }, z$1.core.$strip>>;
229
- }, z$1.core.$strip>;
220
+ declare const StreamFinishEventSchema: z.ZodObject<{
221
+ type: z.ZodLiteral<"finish">;
222
+ finishReason: z.ZodOptional<z.ZodString>;
223
+ usage: z.ZodOptional<z.ZodObject<{
224
+ promptTokens: z.ZodOptional<z.ZodNumber>;
225
+ completionTokens: z.ZodOptional<z.ZodNumber>;
226
+ totalTokens: z.ZodOptional<z.ZodNumber>;
227
+ }, z.core.$strip>>;
228
+ }, z.core.$strip>;
230
229
  /**
231
230
  * Union of all stream event types
232
231
  * This is the main schema used for validating incoming stream events
233
232
  */
234
- declare const StreamEventSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
235
- type: z$1.ZodLiteral<"text-start">;
236
- id: z$1.ZodString;
237
- }, z$1.core.$strip>, z$1.ZodObject<{
238
- type: z$1.ZodLiteral<"text-delta">;
239
- id: z$1.ZodString;
240
- delta: z$1.ZodString;
241
- }, z$1.core.$strip>, z$1.ZodObject<{
242
- type: z$1.ZodLiteral<"text-end">;
243
- id: z$1.ZodString;
244
- }, z$1.core.$strip>, z$1.ZodObject<{
245
- type: z$1.ZodLiteral<"data-component">;
246
- id: z$1.ZodString;
247
- data: z$1.ZodAny;
248
- }, z$1.core.$strip>, z$1.ZodObject<{
249
- type: z$1.ZodLiteral<"data-operation">;
250
- data: z$1.ZodAny;
251
- }, z$1.core.$strip>, z$1.ZodObject<{
252
- type: z$1.ZodLiteral<"data-summary">;
253
- data: z$1.ZodAny;
254
- }, z$1.core.$strip>, z$1.ZodObject<{
255
- type: z$1.ZodLiteral<"error">;
256
- error: z$1.ZodString;
257
- }, z$1.core.$strip>, z$1.ZodObject<{
258
- type: z$1.ZodLiteral<"finish">;
259
- finishReason: z$1.ZodOptional<z$1.ZodString>;
260
- usage: z$1.ZodOptional<z$1.ZodObject<{
261
- promptTokens: z$1.ZodOptional<z$1.ZodNumber>;
262
- completionTokens: z$1.ZodOptional<z$1.ZodNumber>;
263
- totalTokens: z$1.ZodOptional<z$1.ZodNumber>;
264
- }, z$1.core.$strip>>;
265
- }, z$1.core.$strip>], "type">;
266
- type TextStartEvent = z$1.infer<typeof TextStartEventSchema>;
267
- type TextDeltaEvent = z$1.infer<typeof TextDeltaEventSchema>;
268
- type TextEndEvent = z$1.infer<typeof TextEndEventSchema>;
269
- type DataComponentStreamEvent = z$1.infer<typeof DataComponentStreamEventSchema>;
270
- type DataOperationStreamEvent = z$1.infer<typeof DataOperationStreamEventSchema>;
271
- type DataSummaryStreamEvent = z$1.infer<typeof DataSummaryStreamEventSchema>;
272
- type StreamErrorEvent = z$1.infer<typeof StreamErrorEventSchema>;
273
- type StreamFinishEvent = z$1.infer<typeof StreamFinishEventSchema>;
233
+ declare const StreamEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
234
+ type: z.ZodLiteral<"text-start">;
235
+ id: z.ZodString;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ type: z.ZodLiteral<"text-delta">;
238
+ id: z.ZodString;
239
+ delta: z.ZodString;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ type: z.ZodLiteral<"text-end">;
242
+ id: z.ZodString;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ type: z.ZodLiteral<"data-component">;
245
+ id: z.ZodString;
246
+ data: z.ZodAny;
247
+ }, z.core.$strip>, z.ZodObject<{
248
+ type: z.ZodLiteral<"data-operation">;
249
+ data: z.ZodAny;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ type: z.ZodLiteral<"data-summary">;
252
+ data: z.ZodAny;
253
+ }, z.core.$strip>, z.ZodObject<{
254
+ type: z.ZodLiteral<"error">;
255
+ error: z.ZodString;
256
+ }, z.core.$strip>, z.ZodObject<{
257
+ type: z.ZodLiteral<"finish">;
258
+ finishReason: z.ZodOptional<z.ZodString>;
259
+ usage: z.ZodOptional<z.ZodObject<{
260
+ promptTokens: z.ZodOptional<z.ZodNumber>;
261
+ completionTokens: z.ZodOptional<z.ZodNumber>;
262
+ totalTokens: z.ZodOptional<z.ZodNumber>;
263
+ }, z.core.$strip>>;
264
+ }, z.core.$strip>], "type">;
265
+ type TextStartEvent = z.infer<typeof TextStartEventSchema>;
266
+ type TextDeltaEvent = z.infer<typeof TextDeltaEventSchema>;
267
+ type TextEndEvent = z.infer<typeof TextEndEventSchema>;
268
+ type DataComponentStreamEvent = z.infer<typeof DataComponentStreamEventSchema>;
269
+ type DataOperationStreamEvent = z.infer<typeof DataOperationStreamEventSchema>;
270
+ type DataSummaryStreamEvent = z.infer<typeof DataSummaryStreamEventSchema>;
271
+ type StreamErrorEvent = z.infer<typeof StreamErrorEventSchema>;
272
+ type StreamFinishEvent = z.infer<typeof StreamFinishEventSchema>;
274
273
  /**
275
274
  * Union type of all possible stream events
276
275
  */
277
- type StreamEvent = z$1.infer<typeof StreamEventSchema>;
276
+ type StreamEvent = z.infer<typeof StreamEventSchema>;
278
277
 
279
278
  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, MAX_ID_LENGTH, MIN_ID_LENGTH, type RenderValidationResult, type StreamErrorEvent, StreamErrorEventSchema, type StreamEvent, StreamEventSchema, type StreamFinishEvent, StreamFinishEventSchema, type TextDeltaEvent, TextDeltaEventSchema, type TextEndEvent, TextEndEventSchema, type TextStartEvent, TextStartEventSchema, type TransferData, TransferDataSchema, URL_SAFE_ID_PATTERN, generateIdFromName, isValidResourceId, resourceIdSchema, validateAgentRelationships, validateAgentStructure, validateAndTypeAgentData, validateArtifactComponentReferences, validateDataComponentReferences, validateRender, validateSubAgentExternalAgentRelations, validateToolReferences };
@@ -1,2 +1,2 @@
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-32YRH2S7.js';
2
- 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, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PrebuiltMCPServerSchema, 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, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-VQXQOGJU.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-5QZSNATS.js';
2
+ 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, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PrebuiltMCPServerSchema, 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, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-XHODTX4H.js';
@@ -87,23 +87,8 @@ CREATE TABLE "verification" (
87
87
  "updated_at" timestamp DEFAULT now() NOT NULL
88
88
  );
89
89
  --> statement-breakpoint
90
- -- Data migration: Create organizations for all existing tenant_ids in projects and api_keys tables
91
- INSERT INTO "organization" ("id", "name", "slug", "created_at", "metadata")
92
- SELECT DISTINCT
93
- tenant_id,
94
- tenant_id,
95
- tenant_id,
96
- NOW(),
97
- NULL
98
- FROM (
99
- SELECT tenant_id FROM "projects"
100
- UNION
101
- SELECT tenant_id FROM "api_keys"
102
- ) AS all_tenants
103
- WHERE tenant_id IS NOT NULL
104
- ON CONFLICT ("id") DO NOTHING;
105
- --> statement-breakpoint
106
90
  ALTER TABLE "sub_agents" ALTER COLUMN "conversation_history_config" SET DEFAULT '{"mode":"full","limit":50,"maxOutputTokens":4000,"includeInternal":false,"messageTypes":["chat","tool-result"]}'::jsonb;--> statement-breakpoint
91
+ ALTER TABLE "sub_agent_tool_relations" ADD COLUMN "tool_policies" jsonb;--> statement-breakpoint
107
92
  ALTER TABLE "account" ADD CONSTRAINT "account_user_id_user_id_fk" FOREIGN KEY ("user_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
108
93
  ALTER TABLE "invitation" ADD CONSTRAINT "invitation_organization_id_organization_id_fk" FOREIGN KEY ("organization_id") REFERENCES "public"."organization"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
109
94
  ALTER TABLE "invitation" ADD CONSTRAINT "invitation_inviter_id_user_id_fk" FOREIGN KEY ("inviter_id") REFERENCES "public"."user"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
@@ -0,0 +1,8 @@
1
+ ALTER TABLE "invitation" ADD COLUMN "created_at" timestamp DEFAULT now() NOT NULL;--> statement-breakpoint
2
+ CREATE INDEX "account_userId_idx" ON "account" USING btree ("user_id");--> statement-breakpoint
3
+ CREATE INDEX "invitation_organizationId_idx" ON "invitation" USING btree ("organization_id");--> statement-breakpoint
4
+ CREATE INDEX "invitation_email_idx" ON "invitation" USING btree ("email");--> statement-breakpoint
5
+ CREATE INDEX "member_organizationId_idx" ON "member" USING btree ("organization_id");--> statement-breakpoint
6
+ CREATE INDEX "member_userId_idx" ON "member" USING btree ("user_id");--> statement-breakpoint
7
+ CREATE INDEX "session_userId_idx" ON "session" USING btree ("user_id");--> statement-breakpoint
8
+ CREATE INDEX "verification_identifier_idx" ON "verification" USING btree ("identifier");
@@ -0,0 +1,8 @@
1
+ DO $$
2
+ BEGIN
3
+ IF EXISTS (SELECT 1 FROM information_schema.tables WHERE table_name = 'sub_agent_tool_relations')
4
+ AND NOT EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'sub_agent_tool_relations' AND column_name = 'tool_policies')
5
+ THEN
6
+ ALTER TABLE "sub_agent_tool_relations" ADD COLUMN "tool_policies" jsonb;
7
+ END IF;
8
+ END $$;
@@ -1,5 +1,5 @@
1
1
  {
2
- "id": "cc2bab53-d829-46a3-9eb8-74101dd2e682",
2
+ "id": "a9538c67-3153-46d2-a18f-5a35fb0192f9",
3
3
  "prevId": "ecc2e5f8-2b4e-4798-8b86-f70cc1cd4483",
4
4
  "version": "7",
5
5
  "dialect": "postgresql",
@@ -2891,6 +2891,12 @@
2891
2891
  "primaryKey": false,
2892
2892
  "notNull": false
2893
2893
  },
2894
+ "tool_policies": {
2895
+ "name": "tool_policies",
2896
+ "type": "jsonb",
2897
+ "primaryKey": false,
2898
+ "notNull": false
2899
+ },
2894
2900
  "created_at": {
2895
2901
  "name": "created_at",
2896
2902
  "type": "timestamp",