@inkeep/agents-core 0.31.7 → 0.32.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-RBUBOGX6.js → chunk-FUJJ4OQ2.js} +62 -10
- package/dist/chunk-SVXWB2HF.js +592 -0
- package/dist/{chunk-T5TTDZ6L.js → chunk-VSQY72K5.js} +133 -133
- package/dist/{chunk-PPBBIDK4.js → chunk-X6ZMJ3G6.js} +1 -1
- package/dist/client-exports.cjs +283 -224
- package/dist/client-exports.d.cts +7 -7
- package/dist/client-exports.d.ts +7 -7
- package/dist/client-exports.js +15 -7
- package/dist/db/schema.cjs +211 -211
- package/dist/db/schema.d.cts +3 -3
- package/dist/db/schema.d.ts +3 -3
- package/dist/db/schema.js +1 -1
- package/dist/index.cjs +18511 -12300
- package/dist/index.d.cts +409 -352
- package/dist/index.d.ts +409 -352
- package/dist/index.js +16250 -11076
- package/dist/nodefs-X2JO4ZHZ.js +21 -0
- package/dist/opfs-ahp-2UFDGV73.js +318 -0
- package/dist/{schema-lEFnfOQ-.d.ts → schema-CuEjPQt7.d.ts} +876 -1014
- package/dist/{schema-ztSm-Iv6.d.cts → schema-D1P8r3qm.d.cts} +876 -1014
- package/dist/types/index.d.cts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/{utility-qLyZ45lb.d.cts → utility-DF5IUC9K.d.cts} +1230 -1394
- package/dist/{utility-qLyZ45lb.d.ts → utility-DF5IUC9K.d.ts} +1230 -1394
- package/dist/validation/index.cjs +270 -219
- package/dist/validation/index.d.cts +3 -3
- package/dist/validation/index.d.ts +3 -3
- package/dist/validation/index.js +2 -2
- package/drizzle/0000_exotic_mysterio.sql +398 -0
- package/drizzle/meta/0000_snapshot.json +1683 -1223
- package/drizzle/meta/_journal.json +4 -102
- package/package.json +6 -3
- package/drizzle/0000_material_menace.sql +0 -326
- package/drizzle/0001_eminent_fixer.sql +0 -43
- package/drizzle/0002_bumpy_romulus.sql +0 -3
- package/drizzle/0003_soft_forgotten_one.sql +0 -39
- package/drizzle/0004_melted_omega_flight.sql +0 -3
- package/drizzle/0005_wide_shriek.sql +0 -127
- package/drizzle/0006_damp_lenny_balinger.sql +0 -52
- package/drizzle/0007_mighty_typhoid_mary.sql +0 -227
- package/drizzle/0008_mysterious_crusher_hogan.sql +0 -20
- package/drizzle/0009_old_black_cat.sql +0 -1
- package/drizzle/0010_wet_vampiro.sql +0 -2
- package/drizzle/0011_slippery_korg.sql +0 -36
- package/drizzle/0012_salty_psynapse.sql +0 -17
- package/drizzle/0013_shocking_blur.sql +0 -19
- package/drizzle/0014_broad_hellfire_club.sql +0 -29
- package/drizzle/meta/0001_snapshot.json +0 -2435
- package/drizzle/meta/0002_snapshot.json +0 -2428
- package/drizzle/meta/0003_snapshot.json +0 -2559
- package/drizzle/meta/0004_snapshot.json +0 -2547
- package/drizzle/meta/0005_snapshot.json +0 -2558
- package/drizzle/meta/0006_snapshot.json +0 -2751
- package/drizzle/meta/0007_snapshot.json +0 -2766
- package/drizzle/meta/0008_snapshot.json +0 -2753
- package/drizzle/meta/0009_snapshot.json +0 -2744
- package/drizzle/meta/0010_snapshot.json +0 -2751
- package/drizzle/meta/0011_snapshot.json +0 -2849
- package/drizzle/meta/0012_snapshot.json +0 -2985
- package/drizzle/meta/0013_snapshot.json +0 -2988
- package/drizzle/meta/0014_snapshot.json +0 -2992
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { gk as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-
|
|
3
|
-
export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gQ as AgentListResponse, gA 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, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, gg as CanUseItemSchema, fs as ComponentAssociationSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fQ as ContextConfigApiInsertSchema, fP as ContextConfigApiSelectSchema, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, go as ErrorResponseSchema, gp as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fK as FetchConfigSchema, fL as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, fJ as FunctionUpdateSchema, h6 as HeadersScopeSchema, gc as LedgerArtifactApiInsertSchema, gb as LedgerArtifactApiSelectSchema, gd as LedgerArtifactApiUpdateSchema, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fv as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, gN as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, fu as OAuthCallbackQuerySchema, ft as OAuthLoginQuerySchema, hf as PaginationQueryParamsSchema, gl as PaginationSchema, gv as ProjectApiInsertSchema, gu as ProjectApiSelectSchema, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, gn as SingleResponseSchema, ge as StatusComponentSchema, gf 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, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, g0 as SubAgentExternalAgentRelationApiInsertSchema, f$ as SubAgentExternalAgentRelationApiSelectSchema, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, fY as SubAgentExternalAgentRelationSelectSchema, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, g6 as SubAgentTeamAgentRelationApiInsertSchema, g5 as SubAgentTeamAgentRelationApiSelectSchema, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, g2 as SubAgentTeamAgentRelationSelectSchema, g4 as SubAgentTeamAgentRelationUpdateSchema, fW as SubAgentToolRelationApiInsertSchema, fV as SubAgentToolRelationApiSelectSchema, fX as SubAgentToolRelationApiUpdateSchema, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, fS as SubAgentToolRelationSelectSchema, fU 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, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, fz as ToolApiInsertSchema, fy as ToolApiSelectSchema, fA as ToolApiUpdateSchema, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-
|
|
2
|
+
import { gk as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-DF5IUC9K.cjs';
|
|
3
|
+
export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gQ as AgentListResponse, gA 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, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, gg as CanUseItemSchema, fs as ComponentAssociationSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fQ as ContextConfigApiInsertSchema, fP as ContextConfigApiSelectSchema, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, go as ErrorResponseSchema, gp as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fK as FetchConfigSchema, fL as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, fJ as FunctionUpdateSchema, h6 as HeadersScopeSchema, gc as LedgerArtifactApiInsertSchema, gb as LedgerArtifactApiSelectSchema, gd as LedgerArtifactApiUpdateSchema, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fv as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, gN as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, fu as OAuthCallbackQuerySchema, ft as OAuthLoginQuerySchema, hf as PaginationQueryParamsSchema, gl as PaginationSchema, gv as ProjectApiInsertSchema, gu as ProjectApiSelectSchema, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, gn as SingleResponseSchema, ge as StatusComponentSchema, gf 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, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, g0 as SubAgentExternalAgentRelationApiInsertSchema, f$ as SubAgentExternalAgentRelationApiSelectSchema, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, fY as SubAgentExternalAgentRelationSelectSchema, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, g6 as SubAgentTeamAgentRelationApiInsertSchema, g5 as SubAgentTeamAgentRelationApiSelectSchema, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, g2 as SubAgentTeamAgentRelationSelectSchema, g4 as SubAgentTeamAgentRelationUpdateSchema, fW as SubAgentToolRelationApiInsertSchema, fV as SubAgentToolRelationApiSelectSchema, fX as SubAgentToolRelationApiUpdateSchema, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, fS as SubAgentToolRelationSelectSchema, fU 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, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, fz as ToolApiInsertSchema, fy as ToolApiSelectSchema, fA as ToolApiUpdateSchema, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-DF5IUC9K.cjs';
|
|
4
4
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.cjs';
|
|
5
5
|
import 'drizzle-zod';
|
|
6
|
-
import 'drizzle-orm/
|
|
6
|
+
import 'drizzle-orm/pg-core';
|
|
7
7
|
import '@hono/zod-openapi';
|
|
8
8
|
|
|
9
9
|
declare function validateAndTypeAgentData(data: unknown): z.infer<typeof AgentWithinContextOfProjectSchema>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { gk as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-
|
|
3
|
-
export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gQ as AgentListResponse, gA 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, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, gg as CanUseItemSchema, fs as ComponentAssociationSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fQ as ContextConfigApiInsertSchema, fP as ContextConfigApiSelectSchema, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, go as ErrorResponseSchema, gp as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fK as FetchConfigSchema, fL as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, fJ as FunctionUpdateSchema, h6 as HeadersScopeSchema, gc as LedgerArtifactApiInsertSchema, gb as LedgerArtifactApiSelectSchema, gd as LedgerArtifactApiUpdateSchema, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fv as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, gN as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, fu as OAuthCallbackQuerySchema, ft as OAuthLoginQuerySchema, hf as PaginationQueryParamsSchema, gl as PaginationSchema, gv as ProjectApiInsertSchema, gu as ProjectApiSelectSchema, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, gn as SingleResponseSchema, ge as StatusComponentSchema, gf 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, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, g0 as SubAgentExternalAgentRelationApiInsertSchema, f$ as SubAgentExternalAgentRelationApiSelectSchema, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, fY as SubAgentExternalAgentRelationSelectSchema, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, g6 as SubAgentTeamAgentRelationApiInsertSchema, g5 as SubAgentTeamAgentRelationApiSelectSchema, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, g2 as SubAgentTeamAgentRelationSelectSchema, g4 as SubAgentTeamAgentRelationUpdateSchema, fW as SubAgentToolRelationApiInsertSchema, fV as SubAgentToolRelationApiSelectSchema, fX as SubAgentToolRelationApiUpdateSchema, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, fS as SubAgentToolRelationSelectSchema, fU 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, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, fz as ToolApiInsertSchema, fy as ToolApiSelectSchema, fA as ToolApiUpdateSchema, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-
|
|
2
|
+
import { gk as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-DF5IUC9K.js';
|
|
3
|
+
export { e6 as AgentApiInsertSchema, e5 as AgentApiSelectSchema, e7 as AgentApiUpdateSchema, e3 as AgentInsertSchema, gQ as AgentListResponse, gA 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, gU as ApiKeyListResponse, gE as ApiKeyResponse, fb as ApiKeySelectSchema, fd as ApiKeyUpdateSchema, eY as ArtifactComponentApiInsertSchema, eX as ArtifactComponentApiSelectSchema, eZ as ArtifactComponentApiUpdateSchema, eV as ArtifactComponentInsertSchema, gZ as ArtifactComponentListResponse, gJ as ArtifactComponentResponse, eU as ArtifactComponentSelectSchema, eW as ArtifactComponentUpdateSchema, gg as CanUseItemSchema, fs as ComponentAssociationSchema, eF as ContextCacheApiInsertSchema, eE as ContextCacheApiSelectSchema, eG as ContextCacheApiUpdateSchema, eC as ContextCacheInsertSchema, eB as ContextCacheSelectSchema, eD as ContextCacheUpdateSchema, fQ as ContextConfigApiInsertSchema, fP as ContextConfigApiSelectSchema, fR as ContextConfigApiUpdateSchema, fN as ContextConfigInsertSchema, gT as ContextConfigListResponse, gD as ContextConfigResponse, fM as ContextConfigSelectSchema, fO as ContextConfigUpdateSchema, et as ConversationApiInsertSchema, es as ConversationApiSelectSchema, eu as ConversationApiUpdateSchema, eq as ConversationInsertSchema, h0 as ConversationListResponse, gM as ConversationResponse, ep as ConversationSelectSchema, er as ConversationUpdateSchema, fp as CreateCredentialInStoreRequestSchema, fq as CreateCredentialInStoreResponseSchema, fl as CredentialReferenceApiInsertSchema, fk as CredentialReferenceApiSelectSchema, fm as CredentialReferenceApiUpdateSchema, fi as CredentialReferenceInsertSchema, gV as CredentialReferenceListResponse, gF as CredentialReferenceResponse, fh as CredentialReferenceSelectSchema, fj as CredentialReferenceUpdateSchema, fo as CredentialStoreListResponseSchema, fn as CredentialStoreSchema, eM as DataComponentApiInsertSchema, eL as DataComponentApiSelectSchema, eN as DataComponentApiUpdateSchema, eJ as DataComponentBaseSchema, eI as DataComponentInsertSchema, gY as DataComponentListResponse, gI as DataComponentResponse, eH as DataComponentSelectSchema, eK as DataComponentUpdateSchema, go as ErrorResponseSchema, gp as ExistsResponseSchema, f8 as ExternalAgentApiInsertSchema, f7 as ExternalAgentApiSelectSchema, f9 as ExternalAgentApiUpdateSchema, f5 as ExternalAgentInsertSchema, gS as ExternalAgentListResponse, gC as ExternalAgentResponse, f4 as ExternalAgentSelectSchema, f6 as ExternalAgentUpdateSchema, e1 as ExternalSubAgentRelationApiInsertSchema, e0 as ExternalSubAgentRelationInsertSchema, fK as FetchConfigSchema, fL as FetchDefinitionSchema, a as FullAgentAgentInsertSchema, gx as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, fI as FunctionInsertSchema, gW as FunctionListResponse, gG as FunctionResponse, fH as FunctionSelectSchema, fF as FunctionToolApiInsertSchema, fE as FunctionToolApiSelectSchema, fG as FunctionToolApiUpdateSchema, dO as FunctionToolConfig, dN as FunctionToolConfigSchema, fC as FunctionToolInsertSchema, gX as FunctionToolListResponse, gH as FunctionToolResponse, fB as FunctionToolSelectSchema, fD as FunctionToolUpdateSchema, fJ as FunctionUpdateSchema, h6 as HeadersScopeSchema, gc as LedgerArtifactApiInsertSchema, gb as LedgerArtifactApiSelectSchema, gd as LedgerArtifactApiUpdateSchema, g9 as LedgerArtifactInsertSchema, g8 as LedgerArtifactSelectSchema, ga as LedgerArtifactUpdateSchema, gm as ListResponseSchema, dI as MAX_ID_LENGTH, fw as MCPToolConfigSchema, dH as MIN_ID_LENGTH, em as McpToolDefinitionSchema, fv as McpToolSchema, ek as McpTransportConfigSchema, ez as MessageApiInsertSchema, ey as MessageApiSelectSchema, eA as MessageApiUpdateSchema, ew as MessageInsertSchema, h1 as MessageListResponse, gN as MessageResponse, ev as MessageSelectSchema, ex as MessageUpdateSchema, dL as ModelSchema, g as ModelSettings, M as ModelSettingsSchema, fu as OAuthCallbackQuerySchema, ft as OAuthLoginQuerySchema, hf as PaginationQueryParamsSchema, gl as PaginationSchema, gv as ProjectApiInsertSchema, gu as ProjectApiSelectSchema, gw as ProjectApiUpdateSchema, gs as ProjectInsertSchema, gO as ProjectListResponse, dM as ProjectModelSchema, gy as ProjectResponse, gr as ProjectSelectSchema, gt as ProjectUpdateSchema, fr as RelatedAgentInfoSchema, gq as RemovedResponseSchema, gn as SingleResponseSchema, ge as StatusComponentSchema, gf 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, h5 as SubAgentArtifactComponentListResponse, h3 as SubAgentArtifactComponentResponse, e_ as SubAgentArtifactComponentSelectSchema, f0 as SubAgentArtifactComponentUpdateSchema, eS as SubAgentDataComponentApiInsertSchema, eR as SubAgentDataComponentApiSelectSchema, eT as SubAgentDataComponentApiUpdateSchema, eP as SubAgentDataComponentInsertSchema, h4 as SubAgentDataComponentListResponse, h2 as SubAgentDataComponentResponse, eO as SubAgentDataComponentSelectSchema, eQ as SubAgentDataComponentUpdateSchema, g0 as SubAgentExternalAgentRelationApiInsertSchema, f$ as SubAgentExternalAgentRelationApiSelectSchema, g1 as SubAgentExternalAgentRelationApiUpdateSchema, fZ as SubAgentExternalAgentRelationInsertSchema, fY as SubAgentExternalAgentRelationSelectSchema, f_ as SubAgentExternalAgentRelationUpdateSchema, dQ as SubAgentInsertSchema, gP as SubAgentListResponse, dZ as SubAgentRelationApiInsertSchema, dY as SubAgentRelationApiSelectSchema, d_ as SubAgentRelationApiUpdateSchema, dW as SubAgentRelationInsertSchema, g_ as SubAgentRelationListResponse, d$ as SubAgentRelationQuerySchema, gK as SubAgentRelationResponse, dV as SubAgentRelationSelectSchema, dX as SubAgentRelationUpdateSchema, gz as SubAgentResponse, dP as SubAgentSelectSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema, g6 as SubAgentTeamAgentRelationApiInsertSchema, g5 as SubAgentTeamAgentRelationApiSelectSchema, g7 as SubAgentTeamAgentRelationApiUpdateSchema, g3 as SubAgentTeamAgentRelationInsertSchema, g2 as SubAgentTeamAgentRelationSelectSchema, g4 as SubAgentTeamAgentRelationUpdateSchema, fW as SubAgentToolRelationApiInsertSchema, fV as SubAgentToolRelationApiSelectSchema, fX as SubAgentToolRelationApiUpdateSchema, fT as SubAgentToolRelationInsertSchema, g$ as SubAgentToolRelationListResponse, gL as SubAgentToolRelationResponse, fS as SubAgentToolRelationSelectSchema, fU 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, gj as TeamAgentSchema, h8 as TenantIdParamsSchema, h7 as TenantParamsSchema, hc as TenantProjectAgentIdParamsSchema, hb as TenantProjectAgentParamsSchema, he as TenantProjectAgentSubAgentIdParamsSchema, hd as TenantProjectAgentSubAgentParamsSchema, ha as TenantProjectIdParamsSchema, h9 as TenantProjectParamsSchema, fz as ToolApiInsertSchema, fy as ToolApiSelectSchema, fA as ToolApiUpdateSchema, eo as ToolInsertSchema, gR as ToolListResponse, gB as ToolResponse, en as ToolSelectSchema, el as ToolStatusSchema, fx as ToolUpdateSchema, dJ as URL_SAFE_ID_PATTERN, gh as canDelegateToExternalAgentSchema, gi as canDelegateToTeamAgentSchema, dK as resourceIdSchema } from '../utility-DF5IUC9K.js';
|
|
4
4
|
export { P as PropsValidationResult, v as validatePropsAsJsonSchema } from '../props-validation-BMR1qNiy.js';
|
|
5
5
|
import 'drizzle-zod';
|
|
6
|
-
import 'drizzle-orm/
|
|
6
|
+
import 'drizzle-orm/pg-core';
|
|
7
7
|
import '@hono/zod-openapi';
|
|
8
8
|
|
|
9
9
|
declare function validateAndTypeAgentData(data: unknown): z.infer<typeof AgentWithinContextOfProjectSchema>;
|
package/dist/validation/index.js
CHANGED
|
@@ -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-
|
|
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, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-
|
|
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-X6ZMJ3G6.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, ComponentAssociationSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RelatedAgentInfoSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema } from '../chunk-FUJJ4OQ2.js';
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
CREATE TABLE "agent" (
|
|
2
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
3
|
+
"id" varchar(256) NOT NULL,
|
|
4
|
+
"project_id" varchar(256) NOT NULL,
|
|
5
|
+
"name" varchar(256) NOT NULL,
|
|
6
|
+
"description" text,
|
|
7
|
+
"default_sub_agent_id" varchar(256),
|
|
8
|
+
"context_config_id" varchar(256),
|
|
9
|
+
"models" jsonb,
|
|
10
|
+
"status_updates" jsonb,
|
|
11
|
+
"prompt" text,
|
|
12
|
+
"stop_when" jsonb,
|
|
13
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
14
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
15
|
+
CONSTRAINT "agent_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
16
|
+
);
|
|
17
|
+
--> statement-breakpoint
|
|
18
|
+
CREATE TABLE "api_keys" (
|
|
19
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
20
|
+
"id" varchar(256) NOT NULL,
|
|
21
|
+
"project_id" varchar(256) NOT NULL,
|
|
22
|
+
"agent_id" varchar(256) NOT NULL,
|
|
23
|
+
"public_id" varchar(256) NOT NULL,
|
|
24
|
+
"key_hash" varchar(256) NOT NULL,
|
|
25
|
+
"key_prefix" varchar(256) NOT NULL,
|
|
26
|
+
"name" varchar(256),
|
|
27
|
+
"last_used_at" timestamp,
|
|
28
|
+
"expires_at" timestamp,
|
|
29
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
30
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
31
|
+
CONSTRAINT "api_keys_public_id_unique" UNIQUE("public_id")
|
|
32
|
+
);
|
|
33
|
+
--> statement-breakpoint
|
|
34
|
+
CREATE TABLE "artifact_components" (
|
|
35
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
36
|
+
"id" varchar(256) NOT NULL,
|
|
37
|
+
"project_id" varchar(256) NOT NULL,
|
|
38
|
+
"name" varchar(256) NOT NULL,
|
|
39
|
+
"description" text NOT NULL,
|
|
40
|
+
"props" jsonb,
|
|
41
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
42
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
43
|
+
CONSTRAINT "artifact_components_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
44
|
+
);
|
|
45
|
+
--> statement-breakpoint
|
|
46
|
+
CREATE TABLE "context_cache" (
|
|
47
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
48
|
+
"id" varchar(256) NOT NULL,
|
|
49
|
+
"project_id" varchar(256) NOT NULL,
|
|
50
|
+
"conversation_id" varchar(256) NOT NULL,
|
|
51
|
+
"context_config_id" varchar(256) NOT NULL,
|
|
52
|
+
"context_variable_key" varchar(256) NOT NULL,
|
|
53
|
+
"value" jsonb NOT NULL,
|
|
54
|
+
"request_hash" varchar(256),
|
|
55
|
+
"fetched_at" timestamp DEFAULT now() NOT NULL,
|
|
56
|
+
"fetch_source" varchar(256),
|
|
57
|
+
"fetch_duration_ms" integer,
|
|
58
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
59
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
60
|
+
CONSTRAINT "context_cache_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
61
|
+
);
|
|
62
|
+
--> statement-breakpoint
|
|
63
|
+
CREATE TABLE "context_configs" (
|
|
64
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
65
|
+
"id" varchar(256) NOT NULL,
|
|
66
|
+
"project_id" varchar(256) NOT NULL,
|
|
67
|
+
"agent_id" varchar(256) NOT NULL,
|
|
68
|
+
"headers_schema" jsonb,
|
|
69
|
+
"context_variables" jsonb,
|
|
70
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
71
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
72
|
+
CONSTRAINT "context_configs_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
73
|
+
);
|
|
74
|
+
--> statement-breakpoint
|
|
75
|
+
CREATE TABLE "conversations" (
|
|
76
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
77
|
+
"id" varchar(256) NOT NULL,
|
|
78
|
+
"project_id" varchar(256) NOT NULL,
|
|
79
|
+
"user_id" varchar(256),
|
|
80
|
+
"active_sub_agent_id" varchar(256) NOT NULL,
|
|
81
|
+
"title" text,
|
|
82
|
+
"last_context_resolution" timestamp,
|
|
83
|
+
"metadata" jsonb,
|
|
84
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
85
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
86
|
+
CONSTRAINT "conversations_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
87
|
+
);
|
|
88
|
+
--> statement-breakpoint
|
|
89
|
+
CREATE TABLE "credential_references" (
|
|
90
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
91
|
+
"id" varchar(256) NOT NULL,
|
|
92
|
+
"project_id" varchar(256) NOT NULL,
|
|
93
|
+
"name" varchar(256) NOT NULL,
|
|
94
|
+
"type" varchar(256) NOT NULL,
|
|
95
|
+
"credential_store_id" varchar(256) NOT NULL,
|
|
96
|
+
"retrieval_params" jsonb,
|
|
97
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
98
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
99
|
+
CONSTRAINT "credential_references_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
100
|
+
);
|
|
101
|
+
--> statement-breakpoint
|
|
102
|
+
CREATE TABLE "data_components" (
|
|
103
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
104
|
+
"id" varchar(256) NOT NULL,
|
|
105
|
+
"project_id" varchar(256) NOT NULL,
|
|
106
|
+
"name" varchar(256) NOT NULL,
|
|
107
|
+
"description" text NOT NULL,
|
|
108
|
+
"props" jsonb,
|
|
109
|
+
"render" jsonb,
|
|
110
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
111
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
112
|
+
CONSTRAINT "data_components_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
113
|
+
);
|
|
114
|
+
--> statement-breakpoint
|
|
115
|
+
CREATE TABLE "external_agents" (
|
|
116
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
117
|
+
"id" varchar(256) NOT NULL,
|
|
118
|
+
"project_id" varchar(256) NOT NULL,
|
|
119
|
+
"name" varchar(256) NOT NULL,
|
|
120
|
+
"description" text NOT NULL,
|
|
121
|
+
"base_url" text NOT NULL,
|
|
122
|
+
"credential_reference_id" varchar(256),
|
|
123
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
124
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
125
|
+
CONSTRAINT "external_agents_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
126
|
+
);
|
|
127
|
+
--> statement-breakpoint
|
|
128
|
+
CREATE TABLE "function_tools" (
|
|
129
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
130
|
+
"id" varchar(256) NOT NULL,
|
|
131
|
+
"project_id" varchar(256) NOT NULL,
|
|
132
|
+
"agent_id" varchar(256) NOT NULL,
|
|
133
|
+
"name" varchar(256) NOT NULL,
|
|
134
|
+
"description" text,
|
|
135
|
+
"function_id" varchar(256) NOT NULL,
|
|
136
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
137
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
138
|
+
CONSTRAINT "function_tools_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
139
|
+
);
|
|
140
|
+
--> statement-breakpoint
|
|
141
|
+
CREATE TABLE "functions" (
|
|
142
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
143
|
+
"id" varchar(256) NOT NULL,
|
|
144
|
+
"project_id" varchar(256) NOT NULL,
|
|
145
|
+
"input_schema" jsonb,
|
|
146
|
+
"execute_code" text NOT NULL,
|
|
147
|
+
"dependencies" jsonb,
|
|
148
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
149
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
150
|
+
CONSTRAINT "functions_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
151
|
+
);
|
|
152
|
+
--> statement-breakpoint
|
|
153
|
+
CREATE TABLE "ledger_artifacts" (
|
|
154
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
155
|
+
"id" varchar(256) NOT NULL,
|
|
156
|
+
"project_id" varchar(256) NOT NULL,
|
|
157
|
+
"task_id" varchar(256) NOT NULL,
|
|
158
|
+
"tool_call_id" varchar(256),
|
|
159
|
+
"context_id" varchar(256) NOT NULL,
|
|
160
|
+
"type" varchar(256) DEFAULT 'source' NOT NULL,
|
|
161
|
+
"name" varchar(256),
|
|
162
|
+
"description" text,
|
|
163
|
+
"parts" jsonb,
|
|
164
|
+
"metadata" jsonb,
|
|
165
|
+
"summary" text,
|
|
166
|
+
"mime" jsonb,
|
|
167
|
+
"visibility" varchar(256) DEFAULT 'context',
|
|
168
|
+
"allowed_agents" jsonb,
|
|
169
|
+
"derived_from" varchar(256),
|
|
170
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
171
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
172
|
+
CONSTRAINT "ledger_artifacts_tenant_id_project_id_id_task_id_pk" PRIMARY KEY("tenant_id","project_id","id","task_id"),
|
|
173
|
+
CONSTRAINT "ledger_artifacts_task_context_name_unique" UNIQUE("task_id","context_id","name")
|
|
174
|
+
);
|
|
175
|
+
--> statement-breakpoint
|
|
176
|
+
CREATE TABLE "messages" (
|
|
177
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
178
|
+
"id" varchar(256) NOT NULL,
|
|
179
|
+
"project_id" varchar(256) NOT NULL,
|
|
180
|
+
"conversation_id" varchar(256) NOT NULL,
|
|
181
|
+
"role" varchar(256) NOT NULL,
|
|
182
|
+
"from_sub_agent_id" varchar(256),
|
|
183
|
+
"to_sub_agent_id" varchar(256),
|
|
184
|
+
"from_external_sub_agent_id" varchar(256),
|
|
185
|
+
"to_external_sub_agent_id" varchar(256),
|
|
186
|
+
"from_team_agent_id" varchar(256),
|
|
187
|
+
"to_team_agent_id" varchar(256),
|
|
188
|
+
"content" jsonb NOT NULL,
|
|
189
|
+
"visibility" varchar(256) DEFAULT 'user-facing' NOT NULL,
|
|
190
|
+
"message_type" varchar(256) DEFAULT 'chat' NOT NULL,
|
|
191
|
+
"task_id" varchar(256),
|
|
192
|
+
"parent_message_id" varchar(256),
|
|
193
|
+
"a2a_task_id" varchar(256),
|
|
194
|
+
"a2a_session_id" varchar(256),
|
|
195
|
+
"metadata" jsonb,
|
|
196
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
197
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
198
|
+
CONSTRAINT "messages_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
199
|
+
);
|
|
200
|
+
--> statement-breakpoint
|
|
201
|
+
CREATE TABLE "projects" (
|
|
202
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
203
|
+
"id" varchar(256) NOT NULL,
|
|
204
|
+
"name" varchar(256) NOT NULL,
|
|
205
|
+
"description" text NOT NULL,
|
|
206
|
+
"models" jsonb,
|
|
207
|
+
"stop_when" jsonb,
|
|
208
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
209
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
210
|
+
CONSTRAINT "projects_tenant_id_id_pk" PRIMARY KEY("tenant_id","id")
|
|
211
|
+
);
|
|
212
|
+
--> statement-breakpoint
|
|
213
|
+
CREATE TABLE "sub_agent_artifact_components" (
|
|
214
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
215
|
+
"id" varchar(256) NOT NULL,
|
|
216
|
+
"project_id" varchar(256) NOT NULL,
|
|
217
|
+
"agent_id" varchar(256) NOT NULL,
|
|
218
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
219
|
+
"artifact_component_id" varchar(256) NOT NULL,
|
|
220
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
221
|
+
CONSTRAINT "sub_agent_artifact_components_tenant_id_project_id_agent_id_sub_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","sub_agent_id","id")
|
|
222
|
+
);
|
|
223
|
+
--> statement-breakpoint
|
|
224
|
+
CREATE TABLE "sub_agent_data_components" (
|
|
225
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
226
|
+
"id" varchar(256) NOT NULL,
|
|
227
|
+
"project_id" varchar(256) NOT NULL,
|
|
228
|
+
"agent_id" varchar(256) NOT NULL,
|
|
229
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
230
|
+
"data_component_id" varchar(256) NOT NULL,
|
|
231
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
232
|
+
CONSTRAINT "sub_agent_data_components_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
233
|
+
);
|
|
234
|
+
--> statement-breakpoint
|
|
235
|
+
CREATE TABLE "sub_agent_external_agent_relations" (
|
|
236
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
237
|
+
"id" varchar(256) NOT NULL,
|
|
238
|
+
"project_id" varchar(256) NOT NULL,
|
|
239
|
+
"agent_id" varchar(256) NOT NULL,
|
|
240
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
241
|
+
"external_agent_id" varchar(256) NOT NULL,
|
|
242
|
+
"headers" jsonb,
|
|
243
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
244
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
245
|
+
CONSTRAINT "sub_agent_external_agent_relations_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
246
|
+
);
|
|
247
|
+
--> statement-breakpoint
|
|
248
|
+
CREATE TABLE "sub_agent_function_tool_relations" (
|
|
249
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
250
|
+
"id" varchar(256) NOT NULL,
|
|
251
|
+
"project_id" varchar(256) NOT NULL,
|
|
252
|
+
"agent_id" varchar(256) NOT NULL,
|
|
253
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
254
|
+
"function_tool_id" varchar(256) NOT NULL,
|
|
255
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
256
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
257
|
+
CONSTRAINT "sub_agent_function_tool_relations_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
258
|
+
);
|
|
259
|
+
--> statement-breakpoint
|
|
260
|
+
CREATE TABLE "sub_agent_relations" (
|
|
261
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
262
|
+
"id" varchar(256) NOT NULL,
|
|
263
|
+
"project_id" varchar(256) NOT NULL,
|
|
264
|
+
"agent_id" varchar(256) NOT NULL,
|
|
265
|
+
"source_sub_agent_id" varchar(256) NOT NULL,
|
|
266
|
+
"target_sub_agent_id" varchar(256),
|
|
267
|
+
"relation_type" varchar(256),
|
|
268
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
269
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
270
|
+
CONSTRAINT "sub_agent_relations_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
271
|
+
);
|
|
272
|
+
--> statement-breakpoint
|
|
273
|
+
CREATE TABLE "sub_agent_team_agent_relations" (
|
|
274
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
275
|
+
"id" varchar(256) NOT NULL,
|
|
276
|
+
"project_id" varchar(256) NOT NULL,
|
|
277
|
+
"agent_id" varchar(256) NOT NULL,
|
|
278
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
279
|
+
"target_agent_id" varchar(256) NOT NULL,
|
|
280
|
+
"headers" jsonb,
|
|
281
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
282
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
283
|
+
CONSTRAINT "sub_agent_team_agent_relations_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
284
|
+
);
|
|
285
|
+
--> statement-breakpoint
|
|
286
|
+
CREATE TABLE "sub_agent_tool_relations" (
|
|
287
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
288
|
+
"id" varchar(256) NOT NULL,
|
|
289
|
+
"project_id" varchar(256) NOT NULL,
|
|
290
|
+
"agent_id" varchar(256) NOT NULL,
|
|
291
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
292
|
+
"tool_id" varchar(256) NOT NULL,
|
|
293
|
+
"selected_tools" jsonb,
|
|
294
|
+
"headers" jsonb,
|
|
295
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
296
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
297
|
+
CONSTRAINT "sub_agent_tool_relations_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
298
|
+
);
|
|
299
|
+
--> statement-breakpoint
|
|
300
|
+
CREATE TABLE "sub_agents" (
|
|
301
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
302
|
+
"id" varchar(256) NOT NULL,
|
|
303
|
+
"project_id" varchar(256) NOT NULL,
|
|
304
|
+
"agent_id" varchar(256) NOT NULL,
|
|
305
|
+
"name" varchar(256) NOT NULL,
|
|
306
|
+
"description" text NOT NULL,
|
|
307
|
+
"prompt" text NOT NULL,
|
|
308
|
+
"conversation_history_config" jsonb,
|
|
309
|
+
"models" jsonb,
|
|
310
|
+
"stop_when" jsonb,
|
|
311
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
312
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
313
|
+
CONSTRAINT "sub_agents_tenant_id_project_id_agent_id_id_pk" PRIMARY KEY("tenant_id","project_id","agent_id","id")
|
|
314
|
+
);
|
|
315
|
+
--> statement-breakpoint
|
|
316
|
+
CREATE TABLE "task_relations" (
|
|
317
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
318
|
+
"id" varchar(256) NOT NULL,
|
|
319
|
+
"project_id" varchar(256) NOT NULL,
|
|
320
|
+
"parent_task_id" varchar(256) NOT NULL,
|
|
321
|
+
"child_task_id" varchar(256) NOT NULL,
|
|
322
|
+
"relation_type" varchar(256) DEFAULT 'parent_child',
|
|
323
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
324
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
325
|
+
CONSTRAINT "task_relations_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
326
|
+
);
|
|
327
|
+
--> statement-breakpoint
|
|
328
|
+
CREATE TABLE "tasks" (
|
|
329
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
330
|
+
"id" varchar(256) NOT NULL,
|
|
331
|
+
"project_id" varchar(256) NOT NULL,
|
|
332
|
+
"agent_id" varchar(256) NOT NULL,
|
|
333
|
+
"sub_agent_id" varchar(256) NOT NULL,
|
|
334
|
+
"context_id" varchar(256) NOT NULL,
|
|
335
|
+
"status" varchar(256) NOT NULL,
|
|
336
|
+
"metadata" jsonb,
|
|
337
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
338
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
339
|
+
CONSTRAINT "tasks_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
340
|
+
);
|
|
341
|
+
--> statement-breakpoint
|
|
342
|
+
CREATE TABLE "tools" (
|
|
343
|
+
"tenant_id" varchar(256) NOT NULL,
|
|
344
|
+
"id" varchar(256) NOT NULL,
|
|
345
|
+
"project_id" varchar(256) NOT NULL,
|
|
346
|
+
"name" varchar(256) NOT NULL,
|
|
347
|
+
"description" text,
|
|
348
|
+
"config" jsonb NOT NULL,
|
|
349
|
+
"credential_reference_id" varchar(256),
|
|
350
|
+
"headers" jsonb,
|
|
351
|
+
"image_url" text,
|
|
352
|
+
"capabilities" jsonb,
|
|
353
|
+
"last_error" text,
|
|
354
|
+
"created_at" timestamp DEFAULT now() NOT NULL,
|
|
355
|
+
"updated_at" timestamp DEFAULT now() NOT NULL,
|
|
356
|
+
CONSTRAINT "tools_tenant_id_project_id_id_pk" PRIMARY KEY("tenant_id","project_id","id")
|
|
357
|
+
);
|
|
358
|
+
--> statement-breakpoint
|
|
359
|
+
ALTER TABLE "agent" ADD CONSTRAINT "agent_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
360
|
+
ALTER TABLE "api_keys" ADD CONSTRAINT "api_keys_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
361
|
+
ALTER TABLE "api_keys" ADD CONSTRAINT "api_keys_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
362
|
+
ALTER TABLE "artifact_components" ADD CONSTRAINT "artifact_components_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
363
|
+
ALTER TABLE "context_cache" ADD CONSTRAINT "context_cache_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
364
|
+
ALTER TABLE "context_configs" ADD CONSTRAINT "context_configs_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
365
|
+
ALTER TABLE "conversations" ADD CONSTRAINT "conversations_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
366
|
+
ALTER TABLE "credential_references" ADD CONSTRAINT "credential_references_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
367
|
+
ALTER TABLE "data_components" ADD CONSTRAINT "data_components_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
368
|
+
ALTER TABLE "external_agents" ADD CONSTRAINT "external_agents_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
369
|
+
ALTER TABLE "external_agents" ADD CONSTRAINT "external_agents_credential_reference_fk" FOREIGN KEY ("tenant_id","project_id","credential_reference_id") REFERENCES "public"."credential_references"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
370
|
+
ALTER TABLE "function_tools" ADD CONSTRAINT "function_tools_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
371
|
+
ALTER TABLE "function_tools" ADD CONSTRAINT "function_tools_function_fk" FOREIGN KEY ("tenant_id","project_id","function_id") REFERENCES "public"."functions"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
372
|
+
ALTER TABLE "functions" ADD CONSTRAINT "functions_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
373
|
+
ALTER TABLE "ledger_artifacts" ADD CONSTRAINT "ledger_artifacts_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
374
|
+
ALTER TABLE "messages" ADD CONSTRAINT "messages_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
375
|
+
ALTER TABLE "sub_agent_artifact_components" ADD CONSTRAINT "sub_agent_artifact_components_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
376
|
+
ALTER TABLE "sub_agent_artifact_components" ADD CONSTRAINT "sub_agent_artifact_components_artifact_component_fk" FOREIGN KEY ("tenant_id","project_id","artifact_component_id") REFERENCES "public"."artifact_components"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
377
|
+
ALTER TABLE "sub_agent_data_components" ADD CONSTRAINT "sub_agent_data_components_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
378
|
+
ALTER TABLE "sub_agent_data_components" ADD CONSTRAINT "sub_agent_data_components_data_component_fk" FOREIGN KEY ("tenant_id","project_id","data_component_id") REFERENCES "public"."data_components"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
379
|
+
ALTER TABLE "sub_agent_external_agent_relations" ADD CONSTRAINT "sub_agent_external_agent_relations_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
380
|
+
ALTER TABLE "sub_agent_external_agent_relations" ADD CONSTRAINT "sub_agent_external_agent_relations_external_agent_fk" FOREIGN KEY ("tenant_id","project_id","external_agent_id") REFERENCES "public"."external_agents"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
381
|
+
ALTER TABLE "sub_agent_function_tool_relations" ADD CONSTRAINT "sub_agent_function_tool_relations_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
382
|
+
ALTER TABLE "sub_agent_function_tool_relations" ADD CONSTRAINT "sub_agent_function_tool_relations_function_tool_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","function_tool_id") REFERENCES "public"."function_tools"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
383
|
+
ALTER TABLE "sub_agent_relations" ADD CONSTRAINT "sub_agent_relations_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
384
|
+
ALTER TABLE "sub_agent_team_agent_relations" ADD CONSTRAINT "sub_agent_team_agent_relations_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
385
|
+
ALTER TABLE "sub_agent_team_agent_relations" ADD CONSTRAINT "sub_agent_team_agent_relations_target_agent_fk" FOREIGN KEY ("tenant_id","project_id","target_agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
386
|
+
ALTER TABLE "sub_agent_tool_relations" ADD CONSTRAINT "sub_agent_tool_relations_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
387
|
+
ALTER TABLE "sub_agent_tool_relations" ADD CONSTRAINT "sub_agent_tool_relations_tool_fk" FOREIGN KEY ("tenant_id","project_id","tool_id") REFERENCES "public"."tools"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
388
|
+
ALTER TABLE "sub_agents" ADD CONSTRAINT "sub_agents_agents_fk" FOREIGN KEY ("tenant_id","project_id","agent_id") REFERENCES "public"."agent"("tenant_id","project_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
389
|
+
ALTER TABLE "task_relations" ADD CONSTRAINT "task_relations_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
390
|
+
ALTER TABLE "tasks" ADD CONSTRAINT "tasks_sub_agent_fk" FOREIGN KEY ("tenant_id","project_id","agent_id","sub_agent_id") REFERENCES "public"."sub_agents"("tenant_id","project_id","agent_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
391
|
+
ALTER TABLE "tools" ADD CONSTRAINT "tools_project_fk" FOREIGN KEY ("tenant_id","project_id") REFERENCES "public"."projects"("tenant_id","id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
|
|
392
|
+
CREATE INDEX "api_keys_tenant_agent_idx" ON "api_keys" USING btree ("tenant_id","agent_id");--> statement-breakpoint
|
|
393
|
+
CREATE INDEX "api_keys_prefix_idx" ON "api_keys" USING btree ("key_prefix");--> statement-breakpoint
|
|
394
|
+
CREATE INDEX "api_keys_public_id_idx" ON "api_keys" USING btree ("public_id");--> statement-breakpoint
|
|
395
|
+
CREATE INDEX "context_cache_lookup_idx" ON "context_cache" USING btree ("conversation_id","context_config_id","context_variable_key");--> statement-breakpoint
|
|
396
|
+
CREATE INDEX "ledger_artifacts_task_id_idx" ON "ledger_artifacts" USING btree ("task_id");--> statement-breakpoint
|
|
397
|
+
CREATE INDEX "ledger_artifacts_tool_call_id_idx" ON "ledger_artifacts" USING btree ("tool_call_id");--> statement-breakpoint
|
|
398
|
+
CREATE INDEX "ledger_artifacts_context_id_idx" ON "ledger_artifacts" USING btree ("context_id");
|