@inkeep/agents-core 0.37.1 → 0.38.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/auth/auth-schema.d.ts +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +35 -1
- package/dist/auth/auth-validation-schemas.js +2 -2
- package/dist/auth/auth.d.ts +24 -23
- package/dist/auth/auth.js +11 -4
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/chunk-3OPS2LN5.js +4 -0
- package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
- package/dist/{chunk-ZEZCCHV7.js → chunk-AJCP2QYU.js} +2 -2
- package/dist/{chunk-7GZHUB4J.js → chunk-AUGHKZEB.js} +42 -2
- package/dist/{chunk-W3QDM7WH.js → chunk-CWAFZVRI.js} +2 -2
- package/dist/{chunk-I6IF7ZTL.js → chunk-DW4DNYUS.js} +2 -2
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-PVRIMF6N.js → chunk-LH6OJIIM.js} +27 -12
- package/dist/{chunk-ROXPFQAM.js → chunk-MGHGIB7U.js} +25 -31
- package/dist/{chunk-FOK3JSQN.js → chunk-S4XQEAAF.js} +7 -4
- package/dist/{chunk-K6GMXJPW.js → chunk-UK63CULA.js} +7 -14
- package/dist/{chunk-LL6F3EAR.js → chunk-ZIXAWYZI.js} +1 -1
- package/dist/{client-B_3j-V4-.d.ts → client-DG_xZdlN.d.ts} +1 -1
- package/dist/client-exports.d.ts +14 -8
- package/dist/client-exports.js +10 -4
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +1 -1
- package/dist/constants/schema-validation/index.js +1 -1
- package/dist/credential-stores/index.d.ts +6 -6
- package/dist/credential-stores/index.js +1 -1
- package/dist/db/schema.d.ts +3 -4
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +4 -5
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +379 -362
- package/dist/index.js +186 -125
- package/dist/{schema-DKbG39on.d.ts → schema-DA6PfmoP.d.ts} +83 -7
- package/dist/{server-BXoUiBMg.d.ts → server-BviIeoo5.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -4
- package/dist/{utility-Lo5NoRHK.d.ts → utility-dsfXkYTu.d.ts} +1018 -366
- package/dist/utils/schema-conversion.d.ts +12 -2
- package/dist/utils/schema-conversion.js +1 -1
- package/dist/validation/index.d.ts +131 -132
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/0003_sweet_human_robot.sql +8 -0
- package/drizzle/0004_cuddly_shooting_star.sql +6 -0
- package/drizzle/0005_reflective_starfox.sql +9 -0
- package/drizzle/meta/0003_snapshot.json +3643 -0
- package/drizzle/meta/0005_snapshot.json +3693 -0
- package/drizzle/meta/_journal.json +28 -0
- package/package.json +9 -11
- package/dist/chunk-NFTJ5JBY.js +0 -82
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
1
|
+
import { z } from '@hono/zod-openapi';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Converts JSON Schema to Zod schema at runtime.
|
|
5
|
+
*
|
|
6
|
+
* This is useful for dynamically creating Zod schemas from JSON Schema definitions,
|
|
7
|
+
* such as when using AI SDK's generateObject/streamObject with data component props.
|
|
8
|
+
*
|
|
9
|
+
* Note: Uses z.string() as fallback for unknown types to ensure Anthropic compatibility
|
|
10
|
+
* (Anthropic requires explicit types - z.any()/z.unknown() produce invalid JSON Schema).
|
|
11
|
+
*/
|
|
12
|
+
declare function jsonSchemaToZod(jsonSchema: any): z.ZodType<any>;
|
|
3
13
|
/**
|
|
4
14
|
* Utility function for converting Zod schemas to JSON Schema
|
|
5
15
|
* Uses Zod's built-in toJSONSchema method
|
|
@@ -23,4 +33,4 @@ declare function isZodSchema(value: any): value is z.ZodObject<any>;
|
|
|
23
33
|
*/
|
|
24
34
|
declare function extractPreviewFields(schema: any): string[];
|
|
25
35
|
|
|
26
|
-
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview };
|
|
36
|
+
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, jsonSchemaToZod, preview };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview } from '../chunk-
|
|
1
|
+
export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, jsonSchemaToZod, preview } from '../chunk-AUGHKZEB.js';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { z as z$1 } from 'zod';
|
|
2
|
-
import { gi as AgentWithinContextOfProjectSchema, v as FullAgentDefinition } from '../utility-Lo5NoRHK.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-Lo5NoRHK.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-dsfXkYTu.js';
|
|
3
|
+
export { e4 as AgentApiInsertSchema, e3 as AgentApiSelectSchema, e5 as AgentApiUpdateSchema, e1 as AgentInsertSchema, gO as AgentListResponse, gy as AgentResponse, e0 as AgentSelectSchema, k as AgentStopWhen, h 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, g as FullAgentAgentInsertSchema, h4 as FullProjectDefinitionResponse, gv as FullProjectDefinitionSchema, F as FunctionApiInsertSchema, p as FunctionApiSelectSchema, q 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, n 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, j 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, l as SubAgentStopWhen, i 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-dsfXkYTu.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
|
|
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
|
|
52
|
-
fromSubAgent: z
|
|
53
|
-
targetSubAgent: z
|
|
54
|
-
reason: z
|
|
55
|
-
context: z
|
|
56
|
-
}, z
|
|
57
|
-
type TransferData = z
|
|
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
|
|
63
|
-
delegationId: z
|
|
64
|
-
fromSubAgent: z
|
|
65
|
-
targetSubAgent: z
|
|
66
|
-
taskDescription: z
|
|
67
|
-
context: z
|
|
68
|
-
}, z
|
|
69
|
-
type DelegationSentData = z
|
|
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
|
|
75
|
-
delegationId: z
|
|
76
|
-
fromSubAgent: z
|
|
77
|
-
targetSubAgent: z
|
|
78
|
-
result: z
|
|
79
|
-
}, z
|
|
80
|
-
type DelegationReturnedData = z
|
|
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
|
|
86
|
-
timestamp: z
|
|
87
|
-
subAgentId: z
|
|
88
|
-
data: z
|
|
89
|
-
}, z
|
|
90
|
-
type DataOperationDetails = z
|
|
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
|
|
96
|
-
type: z
|
|
97
|
-
label: z
|
|
98
|
-
details: z
|
|
99
|
-
timestamp: z
|
|
100
|
-
subAgentId: z
|
|
101
|
-
data: z
|
|
102
|
-
}, z
|
|
103
|
-
}, z
|
|
104
|
-
type DataOperationEvent = z
|
|
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
|
|
110
|
-
fromSubAgentId: z
|
|
111
|
-
toSubAgentId: z
|
|
112
|
-
fromExternalAgentId: z
|
|
113
|
-
toExternalAgentId: z
|
|
114
|
-
taskId: z
|
|
115
|
-
a2aTaskId: z
|
|
116
|
-
}, z
|
|
117
|
-
type A2AMessageMetadata = z
|
|
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
|
|
169
|
-
type: z
|
|
170
|
-
id: z
|
|
171
|
-
}, z
|
|
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
|
|
176
|
-
type: z
|
|
177
|
-
id: z
|
|
178
|
-
delta: z
|
|
179
|
-
}, z
|
|
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
|
|
184
|
-
type: z
|
|
185
|
-
id: z
|
|
186
|
-
}, z
|
|
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
|
|
192
|
-
type: z
|
|
193
|
-
id: z
|
|
194
|
-
data: z
|
|
195
|
-
}, z
|
|
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
|
|
201
|
-
type: z
|
|
202
|
-
data: z
|
|
203
|
-
}, z
|
|
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
|
|
208
|
-
type: z
|
|
209
|
-
data: z
|
|
210
|
-
}, z
|
|
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
|
|
215
|
-
type: z
|
|
216
|
-
error: z
|
|
217
|
-
}, z
|
|
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
|
|
222
|
-
type: z
|
|
223
|
-
finishReason: z
|
|
224
|
-
usage: z
|
|
225
|
-
promptTokens: z
|
|
226
|
-
completionTokens: z
|
|
227
|
-
totalTokens: z
|
|
228
|
-
}, z
|
|
229
|
-
}, z
|
|
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
|
|
235
|
-
type: z
|
|
236
|
-
id: z
|
|
237
|
-
}, z
|
|
238
|
-
type: z
|
|
239
|
-
id: z
|
|
240
|
-
delta: z
|
|
241
|
-
}, z
|
|
242
|
-
type: z
|
|
243
|
-
id: z
|
|
244
|
-
}, z
|
|
245
|
-
type: z
|
|
246
|
-
id: z
|
|
247
|
-
data: z
|
|
248
|
-
}, z
|
|
249
|
-
type: z
|
|
250
|
-
data: z
|
|
251
|
-
}, z
|
|
252
|
-
type: z
|
|
253
|
-
data: z
|
|
254
|
-
}, z
|
|
255
|
-
type: z
|
|
256
|
-
error: z
|
|
257
|
-
}, z
|
|
258
|
-
type: z
|
|
259
|
-
finishReason: z
|
|
260
|
-
usage: z
|
|
261
|
-
promptTokens: z
|
|
262
|
-
completionTokens: z
|
|
263
|
-
totalTokens: z
|
|
264
|
-
}, z
|
|
265
|
-
}, z
|
|
266
|
-
type TextStartEvent = z
|
|
267
|
-
type TextDeltaEvent = z
|
|
268
|
-
type TextEndEvent = z
|
|
269
|
-
type DataComponentStreamEvent = z
|
|
270
|
-
type DataOperationStreamEvent = z
|
|
271
|
-
type DataSummaryStreamEvent = z
|
|
272
|
-
type StreamErrorEvent = z
|
|
273
|
-
type StreamFinishEvent = z
|
|
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
|
|
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 };
|
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, 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-
|
|
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-CWAFZVRI.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-UK63CULA.js';
|
|
@@ -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 $$;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
ALTER TABLE "artifact_components" ALTER COLUMN "description" DROP NOT NULL;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "data_components" ALTER COLUMN "description" DROP NOT NULL;--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "external_agents" ALTER COLUMN "description" DROP NOT NULL;--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "projects" ALTER COLUMN "description" DROP NOT NULL;--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "sub_agents" ALTER COLUMN "description" DROP NOT NULL;--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "sub_agents" ALTER COLUMN "prompt" DROP NOT NULL;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
ALTER TABLE "external_agents" DROP CONSTRAINT "external_agents_credential_reference_fk";--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "credential_references" ADD COLUMN "tool_id" varchar(256);--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "credential_references" ADD COLUMN "user_id" varchar(256);--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "credential_references" ADD COLUMN "created_by" varchar(256);--> statement-breakpoint
|
|
5
|
+
ALTER TABLE "tools" ADD COLUMN "credential_scope" varchar(50) DEFAULT 'project' NOT NULL;--> statement-breakpoint
|
|
6
|
+
ALTER TABLE "credential_references" ADD CONSTRAINT "credential_references_id_unique" UNIQUE("id");--> statement-breakpoint
|
|
7
|
+
ALTER TABLE "credential_references" ADD CONSTRAINT "credential_references_tool_user_unique" UNIQUE("tool_id","user_id");--> statement-breakpoint
|
|
8
|
+
ALTER TABLE "external_agents" ADD CONSTRAINT "external_agents_credential_reference_fk" FOREIGN KEY ("credential_reference_id") REFERENCES "public"."credential_references"("id") ON DELETE set null ON UPDATE no action;--> statement-breakpoint
|
|
9
|
+
ALTER TABLE "tools" ADD CONSTRAINT "tools_credential_reference_fk" FOREIGN KEY ("credential_reference_id") REFERENCES "public"."credential_references"("id") ON DELETE set null ON UPDATE no action;
|