@inkeep/agents-core 0.31.5 → 0.31.6
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-6OGGGVEI.js → chunk-PPBBIDK4.js} +1 -1
- package/dist/{chunk-37BY2EHU.js → chunk-RBUBOGX6.js} +47 -7
- package/dist/client-exports.cjs +46 -6
- package/dist/client-exports.d.cts +6 -6
- package/dist/client-exports.d.ts +6 -6
- package/dist/client-exports.js +2 -2
- package/dist/db/schema.d.cts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/index.cjs +54 -6
- package/dist/index.d.cts +321 -321
- package/dist/index.d.ts +321 -321
- package/dist/index.js +4 -4
- package/dist/{schema-BWDgXp-e.d.ts → schema-BiVwgjkS.d.ts} +1 -1
- package/dist/{schema-uPzoiY7F.d.cts → schema-DcDuYlEP.d.cts} +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-fD4C61M4.d.cts → utility-DNsYIxBh.d.cts} +321 -267
- package/dist/{utility-fD4C61M4.d.ts → utility-DNsYIxBh.d.ts} +321 -267
- package/dist/validation/index.cjs +54 -6
- package/dist/validation/index.d.cts +2 -2
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-
|
|
1
|
+
import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-RBUBOGX6.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
// src/validation/cycleDetection.ts
|
|
@@ -5,8 +5,8 @@ import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
|
|
|
5
5
|
import Ajv from 'ajv';
|
|
6
6
|
|
|
7
7
|
var StopWhenSchema = z.object({
|
|
8
|
-
transferCountIs: z.number().min(1).max(100).optional(),
|
|
9
|
-
stepCountIs: z.number().min(1).max(1e3).optional()
|
|
8
|
+
transferCountIs: z.number().min(1).max(100).optional().describe("The maximum number of transfers to trigger the stop condition."),
|
|
9
|
+
stepCountIs: z.number().min(1).max(1e3).optional().describe("The maximum number of steps to trigger the stop condition.")
|
|
10
10
|
}).openapi("StopWhen");
|
|
11
11
|
var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi(
|
|
12
12
|
"AgentStopWhen"
|
|
@@ -17,15 +17,14 @@ var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi(
|
|
|
17
17
|
var MIN_ID_LENGTH = 1;
|
|
18
18
|
var MAX_ID_LENGTH = 255;
|
|
19
19
|
var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
20
|
-
var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
|
|
20
|
+
var resourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
|
|
21
21
|
message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
|
|
22
22
|
}).openapi({
|
|
23
|
-
description: "Resource identifier",
|
|
24
23
|
example: "resource_789"
|
|
25
24
|
});
|
|
26
25
|
var ModelSettingsSchema = z.object({
|
|
27
|
-
model: z.string().optional(),
|
|
28
|
-
providerOptions: z.record(z.string(), z.any()).optional()
|
|
26
|
+
model: z.string().optional().describe("The model to use for the project."),
|
|
27
|
+
providerOptions: z.record(z.string(), z.any()).optional().describe("The provider options to use for the project.")
|
|
29
28
|
}).openapi("ModelSettings");
|
|
30
29
|
var ModelSchema = z.object({
|
|
31
30
|
base: ModelSettingsSchema.optional(),
|
|
@@ -390,6 +389,47 @@ var CredentialReferenceApiUpdateSchema = createApiUpdateSchema(
|
|
|
390
389
|
).extend({
|
|
391
390
|
type: z.enum(CredentialStoreType).optional()
|
|
392
391
|
}).openapi("CredentialReferenceUpdate");
|
|
392
|
+
var CredentialStoreSchema = z.object({
|
|
393
|
+
id: z.string().describe("Unique identifier of the credential store"),
|
|
394
|
+
type: z.enum(CredentialStoreType),
|
|
395
|
+
available: z.boolean().describe("Whether the store is functional and ready to use"),
|
|
396
|
+
reason: z.string().nullable().describe("Reason why store is not available, if applicable")
|
|
397
|
+
}).openapi("CredentialStore");
|
|
398
|
+
var CredentialStoreListResponseSchema = z.object({
|
|
399
|
+
data: z.array(CredentialStoreSchema).describe("List of credential stores")
|
|
400
|
+
}).openapi("CredentialStoreListResponse");
|
|
401
|
+
var CreateCredentialInStoreRequestSchema = z.object({
|
|
402
|
+
key: z.string().describe("The credential key"),
|
|
403
|
+
value: z.string().describe("The credential value"),
|
|
404
|
+
metadata: z.record(z.string(), z.string()).nullish().describe("The metadata for the credential")
|
|
405
|
+
}).openapi("CreateCredentialInStoreRequest");
|
|
406
|
+
var CreateCredentialInStoreResponseSchema = z.object({
|
|
407
|
+
data: z.object({
|
|
408
|
+
key: z.string().describe("The credential key"),
|
|
409
|
+
storeId: z.string().describe("The store ID where credential was created"),
|
|
410
|
+
createdAt: z.string().describe("ISO timestamp of creation")
|
|
411
|
+
})
|
|
412
|
+
}).openapi("CreateCredentialInStoreResponse");
|
|
413
|
+
var RelatedAgentInfoSchema = z.object({
|
|
414
|
+
id: z.string(),
|
|
415
|
+
name: z.string(),
|
|
416
|
+
description: z.string()
|
|
417
|
+
}).openapi("RelatedAgentInfo");
|
|
418
|
+
var ComponentAssociationSchema = z.object({
|
|
419
|
+
subAgentId: z.string(),
|
|
420
|
+
createdAt: z.string()
|
|
421
|
+
}).openapi("ComponentAssociation");
|
|
422
|
+
var OAuthLoginQuerySchema = z.object({
|
|
423
|
+
tenantId: z.string().min(1, "Tenant ID is required"),
|
|
424
|
+
projectId: z.string().min(1, "Project ID is required"),
|
|
425
|
+
toolId: z.string().min(1, "Tool ID is required")
|
|
426
|
+
}).openapi("OAuthLoginQuery");
|
|
427
|
+
var OAuthCallbackQuerySchema = z.object({
|
|
428
|
+
code: z.string().min(1, "Authorization code is required"),
|
|
429
|
+
state: z.string().min(1, "State parameter is required"),
|
|
430
|
+
error: z.string().optional(),
|
|
431
|
+
error_description: z.string().optional()
|
|
432
|
+
}).openapi("OAuthCallbackQuery");
|
|
393
433
|
var McpToolSchema = ToolInsertSchema.extend({
|
|
394
434
|
imageUrl: imageUrlSchema,
|
|
395
435
|
availableTools: z.array(McpToolDefinitionSchema).optional(),
|
|
@@ -936,4 +976,4 @@ function validatePropsAsJsonSchema(props) {
|
|
|
936
976
|
}
|
|
937
977
|
}
|
|
938
978
|
|
|
939
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectSchema, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationListResponse, ConversationResponse, ConversationSelectSchema, ConversationUpdateSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentBaseSchema, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, ErrorResponseSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullProjectDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageListResponse, MessageResponse, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettingsSchema, PaginationQueryParamsSchema, PaginationSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RemovedResponseSchema, SingleResponseSchema, StatusComponentSchema, StatusUpdateSchema, StopWhenSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentListResponse, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentListResponse, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolListResponse, ToolResponse, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentSchema, canDelegateToTeamAgentSchema, resourceIdSchema, validatePropsAsJsonSchema };
|
|
979
|
+
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 };
|
package/dist/client-exports.cjs
CHANGED
|
@@ -963,8 +963,8 @@ drizzleOrm.relations(
|
|
|
963
963
|
|
|
964
964
|
// src/validation/schemas.ts
|
|
965
965
|
var StopWhenSchema = zodOpenapi.z.object({
|
|
966
|
-
transferCountIs: zodOpenapi.z.number().min(1).max(100).optional(),
|
|
967
|
-
stepCountIs: zodOpenapi.z.number().min(1).max(1e3).optional()
|
|
966
|
+
transferCountIs: zodOpenapi.z.number().min(1).max(100).optional().describe("The maximum number of transfers to trigger the stop condition."),
|
|
967
|
+
stepCountIs: zodOpenapi.z.number().min(1).max(1e3).optional().describe("The maximum number of steps to trigger the stop condition.")
|
|
968
968
|
}).openapi("StopWhen");
|
|
969
969
|
var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi(
|
|
970
970
|
"AgentStopWhen"
|
|
@@ -975,15 +975,14 @@ var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi(
|
|
|
975
975
|
var MIN_ID_LENGTH = 1;
|
|
976
976
|
var MAX_ID_LENGTH = 255;
|
|
977
977
|
var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
978
|
-
var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
|
|
978
|
+
var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
|
|
979
979
|
message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
|
|
980
980
|
}).openapi({
|
|
981
|
-
description: "Resource identifier",
|
|
982
981
|
example: "resource_789"
|
|
983
982
|
});
|
|
984
983
|
var ModelSettingsSchema = zodOpenapi.z.object({
|
|
985
|
-
model: zodOpenapi.z.string().optional(),
|
|
986
|
-
providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional()
|
|
984
|
+
model: zodOpenapi.z.string().optional().describe("The model to use for the project."),
|
|
985
|
+
providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional().describe("The provider options to use for the project.")
|
|
987
986
|
}).openapi("ModelSettings");
|
|
988
987
|
var ModelSchema = zodOpenapi.z.object({
|
|
989
988
|
base: ModelSettingsSchema.optional(),
|
|
@@ -1348,6 +1347,47 @@ createApiUpdateSchema(
|
|
|
1348
1347
|
).extend({
|
|
1349
1348
|
type: zodOpenapi.z.enum(CredentialStoreType).optional()
|
|
1350
1349
|
}).openapi("CredentialReferenceUpdate");
|
|
1350
|
+
var CredentialStoreSchema = zodOpenapi.z.object({
|
|
1351
|
+
id: zodOpenapi.z.string().describe("Unique identifier of the credential store"),
|
|
1352
|
+
type: zodOpenapi.z.enum(CredentialStoreType),
|
|
1353
|
+
available: zodOpenapi.z.boolean().describe("Whether the store is functional and ready to use"),
|
|
1354
|
+
reason: zodOpenapi.z.string().nullable().describe("Reason why store is not available, if applicable")
|
|
1355
|
+
}).openapi("CredentialStore");
|
|
1356
|
+
zodOpenapi.z.object({
|
|
1357
|
+
data: zodOpenapi.z.array(CredentialStoreSchema).describe("List of credential stores")
|
|
1358
|
+
}).openapi("CredentialStoreListResponse");
|
|
1359
|
+
zodOpenapi.z.object({
|
|
1360
|
+
key: zodOpenapi.z.string().describe("The credential key"),
|
|
1361
|
+
value: zodOpenapi.z.string().describe("The credential value"),
|
|
1362
|
+
metadata: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish().describe("The metadata for the credential")
|
|
1363
|
+
}).openapi("CreateCredentialInStoreRequest");
|
|
1364
|
+
zodOpenapi.z.object({
|
|
1365
|
+
data: zodOpenapi.z.object({
|
|
1366
|
+
key: zodOpenapi.z.string().describe("The credential key"),
|
|
1367
|
+
storeId: zodOpenapi.z.string().describe("The store ID where credential was created"),
|
|
1368
|
+
createdAt: zodOpenapi.z.string().describe("ISO timestamp of creation")
|
|
1369
|
+
})
|
|
1370
|
+
}).openapi("CreateCredentialInStoreResponse");
|
|
1371
|
+
zodOpenapi.z.object({
|
|
1372
|
+
id: zodOpenapi.z.string(),
|
|
1373
|
+
name: zodOpenapi.z.string(),
|
|
1374
|
+
description: zodOpenapi.z.string()
|
|
1375
|
+
}).openapi("RelatedAgentInfo");
|
|
1376
|
+
zodOpenapi.z.object({
|
|
1377
|
+
subAgentId: zodOpenapi.z.string(),
|
|
1378
|
+
createdAt: zodOpenapi.z.string()
|
|
1379
|
+
}).openapi("ComponentAssociation");
|
|
1380
|
+
zodOpenapi.z.object({
|
|
1381
|
+
tenantId: zodOpenapi.z.string().min(1, "Tenant ID is required"),
|
|
1382
|
+
projectId: zodOpenapi.z.string().min(1, "Project ID is required"),
|
|
1383
|
+
toolId: zodOpenapi.z.string().min(1, "Tool ID is required")
|
|
1384
|
+
}).openapi("OAuthLoginQuery");
|
|
1385
|
+
zodOpenapi.z.object({
|
|
1386
|
+
code: zodOpenapi.z.string().min(1, "Authorization code is required"),
|
|
1387
|
+
state: zodOpenapi.z.string().min(1, "State parameter is required"),
|
|
1388
|
+
error: zodOpenapi.z.string().optional(),
|
|
1389
|
+
error_description: zodOpenapi.z.string().optional()
|
|
1390
|
+
}).openapi("OAuthCallbackQuery");
|
|
1351
1391
|
var McpToolSchema = ToolInsertSchema.extend({
|
|
1352
1392
|
imageUrl: imageUrlSchema,
|
|
1353
1393
|
availableTools: zodOpenapi.z.array(McpToolDefinitionSchema).optional(),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-CGqhPDnj.cjs';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DNsYIxBh.cjs';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DNsYIxBh.cjs';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString;
|
|
138
137
|
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
139
|
description: z.ZodString;
|
|
140
140
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
141
|
}, {
|
|
@@ -170,11 +170,12 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
170
|
description: z.ZodOptional<z.ZodString>;
|
|
171
171
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
172
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
name: z.ZodString;
|
|
174
173
|
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
description: z.ZodString;
|
|
176
|
+
prompt: z.ZodString;
|
|
175
177
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
178
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodString;
|
|
178
179
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
180
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
181
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +199,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
199
|
}, {
|
|
199
200
|
stepCountIs?: number | undefined;
|
|
200
201
|
}>>>>;
|
|
201
|
-
prompt: z.ZodString;
|
|
202
202
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
203
203
|
type: z.ZodLiteral<"internal">;
|
|
204
204
|
canUse: z.ZodArray<z.ZodObject<{
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-CGqhPDnj.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-
|
|
4
|
-
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-
|
|
3
|
+
import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-DNsYIxBh.js';
|
|
4
|
+
export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-DNsYIxBh.js';
|
|
5
5
|
export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
|
|
6
6
|
import 'pino';
|
|
7
7
|
import 'drizzle-zod';
|
|
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
|
|
|
134
134
|
}, z.core.$strip>>>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
136
|
declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
137
|
-
name: z.ZodString;
|
|
138
137
|
id: z.ZodString;
|
|
138
|
+
name: z.ZodString;
|
|
139
139
|
description: z.ZodString;
|
|
140
140
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
141
141
|
}, {
|
|
@@ -170,11 +170,12 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
170
170
|
description: z.ZodOptional<z.ZodString>;
|
|
171
171
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
172
172
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
173
|
-
name: z.ZodString;
|
|
174
173
|
id: z.ZodString;
|
|
174
|
+
name: z.ZodString;
|
|
175
|
+
description: z.ZodString;
|
|
176
|
+
prompt: z.ZodString;
|
|
175
177
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
176
178
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
177
|
-
description: z.ZodString;
|
|
178
179
|
models: z.ZodOptional<z.ZodObject<{
|
|
179
180
|
base: z.ZodOptional<z.ZodObject<{
|
|
180
181
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -198,7 +199,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
198
199
|
}, {
|
|
199
200
|
stepCountIs?: number | undefined;
|
|
200
201
|
}>>>>;
|
|
201
|
-
prompt: z.ZodString;
|
|
202
202
|
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
203
203
|
type: z.ZodLiteral<"internal">;
|
|
204
204
|
canUse: z.ZodArray<z.ZodObject<{
|
package/dist/client-exports.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE, detectAuthenticationRequired } from './chunk-OP3KPT4T.js';
|
|
2
|
-
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-
|
|
3
|
-
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-
|
|
2
|
+
import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-RBUBOGX6.js';
|
|
3
|
+
export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-RBUBOGX6.js';
|
|
4
4
|
import { CredentialStoreType } from './chunk-YFHT5M2R.js';
|
|
5
5
|
export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
|
|
6
6
|
import { z } from 'zod';
|
package/dist/db/schema.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-DNsYIxBh.cjs';
|
|
4
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DcDuYlEP.cjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/db/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'drizzle-orm';
|
|
2
2
|
import 'drizzle-orm/sqlite-core';
|
|
3
|
-
import '../utility-
|
|
4
|
-
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-
|
|
3
|
+
import '../utility-DNsYIxBh.js';
|
|
4
|
+
export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-BiVwgjkS.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import 'drizzle-zod';
|
|
7
7
|
import '@hono/zod-openapi';
|
package/dist/index.cjs
CHANGED
|
@@ -214432,8 +214432,8 @@ var CredentialStoreType = {
|
|
|
214432
214432
|
|
|
214433
214433
|
// src/validation/schemas.ts
|
|
214434
214434
|
var StopWhenSchema = zodOpenapi.z.object({
|
|
214435
|
-
transferCountIs: zodOpenapi.z.number().min(1).max(100).optional(),
|
|
214436
|
-
stepCountIs: zodOpenapi.z.number().min(1).max(1e3).optional()
|
|
214435
|
+
transferCountIs: zodOpenapi.z.number().min(1).max(100).optional().describe("The maximum number of transfers to trigger the stop condition."),
|
|
214436
|
+
stepCountIs: zodOpenapi.z.number().min(1).max(1e3).optional().describe("The maximum number of steps to trigger the stop condition.")
|
|
214437
214437
|
}).openapi("StopWhen");
|
|
214438
214438
|
var AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi(
|
|
214439
214439
|
"AgentStopWhen"
|
|
@@ -214444,15 +214444,14 @@ var SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi(
|
|
|
214444
214444
|
var MIN_ID_LENGTH = 1;
|
|
214445
214445
|
var MAX_ID_LENGTH = 255;
|
|
214446
214446
|
var URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
214447
|
-
var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, {
|
|
214447
|
+
var resourceIdSchema = zodOpenapi.z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).describe("Resource identifier").regex(URL_SAFE_ID_PATTERN, {
|
|
214448
214448
|
message: "ID must contain only letters, numbers, hyphens, underscores, and dots"
|
|
214449
214449
|
}).openapi({
|
|
214450
|
-
description: "Resource identifier",
|
|
214451
214450
|
example: "resource_789"
|
|
214452
214451
|
});
|
|
214453
214452
|
var ModelSettingsSchema = zodOpenapi.z.object({
|
|
214454
|
-
model: zodOpenapi.z.string().optional(),
|
|
214455
|
-
providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional()
|
|
214453
|
+
model: zodOpenapi.z.string().optional().describe("The model to use for the project."),
|
|
214454
|
+
providerOptions: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.any()).optional().describe("The provider options to use for the project.")
|
|
214456
214455
|
}).openapi("ModelSettings");
|
|
214457
214456
|
var ModelSchema = zodOpenapi.z.object({
|
|
214458
214457
|
base: ModelSettingsSchema.optional(),
|
|
@@ -214817,6 +214816,47 @@ var CredentialReferenceApiUpdateSchema = createApiUpdateSchema(
|
|
|
214817
214816
|
).extend({
|
|
214818
214817
|
type: zodOpenapi.z.enum(CredentialStoreType).optional()
|
|
214819
214818
|
}).openapi("CredentialReferenceUpdate");
|
|
214819
|
+
var CredentialStoreSchema = zodOpenapi.z.object({
|
|
214820
|
+
id: zodOpenapi.z.string().describe("Unique identifier of the credential store"),
|
|
214821
|
+
type: zodOpenapi.z.enum(CredentialStoreType),
|
|
214822
|
+
available: zodOpenapi.z.boolean().describe("Whether the store is functional and ready to use"),
|
|
214823
|
+
reason: zodOpenapi.z.string().nullable().describe("Reason why store is not available, if applicable")
|
|
214824
|
+
}).openapi("CredentialStore");
|
|
214825
|
+
var CredentialStoreListResponseSchema = zodOpenapi.z.object({
|
|
214826
|
+
data: zodOpenapi.z.array(CredentialStoreSchema).describe("List of credential stores")
|
|
214827
|
+
}).openapi("CredentialStoreListResponse");
|
|
214828
|
+
var CreateCredentialInStoreRequestSchema = zodOpenapi.z.object({
|
|
214829
|
+
key: zodOpenapi.z.string().describe("The credential key"),
|
|
214830
|
+
value: zodOpenapi.z.string().describe("The credential value"),
|
|
214831
|
+
metadata: zodOpenapi.z.record(zodOpenapi.z.string(), zodOpenapi.z.string()).nullish().describe("The metadata for the credential")
|
|
214832
|
+
}).openapi("CreateCredentialInStoreRequest");
|
|
214833
|
+
var CreateCredentialInStoreResponseSchema = zodOpenapi.z.object({
|
|
214834
|
+
data: zodOpenapi.z.object({
|
|
214835
|
+
key: zodOpenapi.z.string().describe("The credential key"),
|
|
214836
|
+
storeId: zodOpenapi.z.string().describe("The store ID where credential was created"),
|
|
214837
|
+
createdAt: zodOpenapi.z.string().describe("ISO timestamp of creation")
|
|
214838
|
+
})
|
|
214839
|
+
}).openapi("CreateCredentialInStoreResponse");
|
|
214840
|
+
var RelatedAgentInfoSchema = zodOpenapi.z.object({
|
|
214841
|
+
id: zodOpenapi.z.string(),
|
|
214842
|
+
name: zodOpenapi.z.string(),
|
|
214843
|
+
description: zodOpenapi.z.string()
|
|
214844
|
+
}).openapi("RelatedAgentInfo");
|
|
214845
|
+
var ComponentAssociationSchema = zodOpenapi.z.object({
|
|
214846
|
+
subAgentId: zodOpenapi.z.string(),
|
|
214847
|
+
createdAt: zodOpenapi.z.string()
|
|
214848
|
+
}).openapi("ComponentAssociation");
|
|
214849
|
+
var OAuthLoginQuerySchema = zodOpenapi.z.object({
|
|
214850
|
+
tenantId: zodOpenapi.z.string().min(1, "Tenant ID is required"),
|
|
214851
|
+
projectId: zodOpenapi.z.string().min(1, "Project ID is required"),
|
|
214852
|
+
toolId: zodOpenapi.z.string().min(1, "Tool ID is required")
|
|
214853
|
+
}).openapi("OAuthLoginQuery");
|
|
214854
|
+
var OAuthCallbackQuerySchema = zodOpenapi.z.object({
|
|
214855
|
+
code: zodOpenapi.z.string().min(1, "Authorization code is required"),
|
|
214856
|
+
state: zodOpenapi.z.string().min(1, "State parameter is required"),
|
|
214857
|
+
error: zodOpenapi.z.string().optional(),
|
|
214858
|
+
error_description: zodOpenapi.z.string().optional()
|
|
214859
|
+
}).openapi("OAuthCallbackQuery");
|
|
214820
214860
|
var McpToolSchema = ToolInsertSchema.extend({
|
|
214821
214861
|
imageUrl: imageUrlSchema,
|
|
214822
214862
|
availableTools: zodOpenapi.z.array(McpToolDefinitionSchema).optional(),
|
|
@@ -226573,6 +226613,7 @@ exports.ArtifactComponentResponse = ArtifactComponentResponse;
|
|
|
226573
226613
|
exports.ArtifactComponentSelectSchema = ArtifactComponentSelectSchema;
|
|
226574
226614
|
exports.ArtifactComponentUpdateSchema = ArtifactComponentUpdateSchema;
|
|
226575
226615
|
exports.CanUseItemSchema = CanUseItemSchema;
|
|
226616
|
+
exports.ComponentAssociationSchema = ComponentAssociationSchema;
|
|
226576
226617
|
exports.ContextCache = ContextCache;
|
|
226577
226618
|
exports.ContextCacheApiInsertSchema = ContextCacheApiInsertSchema;
|
|
226578
226619
|
exports.ContextCacheApiSelectSchema = ContextCacheApiSelectSchema;
|
|
@@ -226599,6 +226640,8 @@ exports.ConversationListResponse = ConversationListResponse;
|
|
|
226599
226640
|
exports.ConversationResponse = ConversationResponse;
|
|
226600
226641
|
exports.ConversationSelectSchema = ConversationSelectSchema;
|
|
226601
226642
|
exports.ConversationUpdateSchema = ConversationUpdateSchema;
|
|
226643
|
+
exports.CreateCredentialInStoreRequestSchema = CreateCredentialInStoreRequestSchema;
|
|
226644
|
+
exports.CreateCredentialInStoreResponseSchema = CreateCredentialInStoreResponseSchema;
|
|
226602
226645
|
exports.CredentialReferenceApiInsertSchema = CredentialReferenceApiInsertSchema;
|
|
226603
226646
|
exports.CredentialReferenceApiSelectSchema = CredentialReferenceApiSelectSchema;
|
|
226604
226647
|
exports.CredentialReferenceApiUpdateSchema = CredentialReferenceApiUpdateSchema;
|
|
@@ -226607,7 +226650,9 @@ exports.CredentialReferenceListResponse = CredentialReferenceListResponse;
|
|
|
226607
226650
|
exports.CredentialReferenceResponse = CredentialReferenceResponse;
|
|
226608
226651
|
exports.CredentialReferenceSelectSchema = CredentialReferenceSelectSchema;
|
|
226609
226652
|
exports.CredentialReferenceUpdateSchema = CredentialReferenceUpdateSchema;
|
|
226653
|
+
exports.CredentialStoreListResponseSchema = CredentialStoreListResponseSchema;
|
|
226610
226654
|
exports.CredentialStoreRegistry = CredentialStoreRegistry;
|
|
226655
|
+
exports.CredentialStoreSchema = CredentialStoreSchema;
|
|
226611
226656
|
exports.CredentialStoreType = CredentialStoreType;
|
|
226612
226657
|
exports.CredentialStuffer = CredentialStuffer;
|
|
226613
226658
|
exports.DATA_SOURCES = DATA_SOURCES;
|
|
@@ -226699,6 +226744,8 @@ exports.MessageUpdateSchema = MessageUpdateSchema;
|
|
|
226699
226744
|
exports.ModelSchema = ModelSchema;
|
|
226700
226745
|
exports.ModelSettingsSchema = ModelSettingsSchema;
|
|
226701
226746
|
exports.NangoCredentialStore = NangoCredentialStore;
|
|
226747
|
+
exports.OAuthCallbackQuerySchema = OAuthCallbackQuerySchema;
|
|
226748
|
+
exports.OAuthLoginQuerySchema = OAuthLoginQuerySchema;
|
|
226702
226749
|
exports.OPENAI_MODELS = OPENAI_MODELS;
|
|
226703
226750
|
exports.OPERATORS = OPERATORS;
|
|
226704
226751
|
exports.ORDER_DIRECTIONS = ORDER_DIRECTIONS;
|
|
@@ -226720,6 +226767,7 @@ exports.QUERY_EXPRESSIONS = QUERY_EXPRESSIONS;
|
|
|
226720
226767
|
exports.QUERY_FIELD_CONFIGS = QUERY_FIELD_CONFIGS;
|
|
226721
226768
|
exports.QUERY_TYPES = QUERY_TYPES;
|
|
226722
226769
|
exports.REDUCE_OPERATIONS = REDUCE_OPERATIONS;
|
|
226770
|
+
exports.RelatedAgentInfoSchema = RelatedAgentInfoSchema;
|
|
226723
226771
|
exports.RemovedResponseSchema = RemovedResponseSchema;
|
|
226724
226772
|
exports.SPAN_KEYS = SPAN_KEYS;
|
|
226725
226773
|
exports.SPAN_NAMES = SPAN_NAMES;
|