@inkeep/agents-core 0.0.0-dev-20260129235824 → 0.0.0-dev-20260130091014
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 +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +57 -57
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -6
- package/dist/client-exports.js +3 -7
- package/dist/data-access/manage/agentFull.js +1 -1
- package/dist/data-access/manage/artifactComponents.js +1 -1
- package/dist/data-access/manage/dataComponents.js +1 -1
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/conversations.d.ts +11 -11
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +3 -3
- package/dist/db/manage/manage-schema.d.ts +381 -381
- package/dist/db/runtime/runtime-schema.d.ts +181 -181
- package/dist/index.d.ts +2 -4
- package/dist/index.js +8 -10
- package/dist/validation/agentFull.js +1 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +4 -23
- package/dist/validation/drizzle-schema-helpers.js +3 -30
- package/dist/validation/index.d.ts +2 -4
- package/dist/validation/index.js +4 -6
- package/dist/validation/schemas.d.ts +1381 -1378
- package/dist/validation/schemas.js +87 -77
- package/package.json +1 -1
- package/dist/validation/id-validation.d.ts +0 -24
- package/dist/validation/id-validation.js +0 -52
|
@@ -4,7 +4,7 @@ import { jmespathString, validateJMESPathSecure, validateRegex } from "../utils/
|
|
|
4
4
|
import { agents, artifactComponents, contextConfigs, credentialReferences, dataComponents, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, functionTools, functions, projects, subAgentArtifactComponents, subAgentDataComponents, subAgentExternalAgentRelations, subAgentFunctionToolRelations, subAgentRelations, subAgentTeamAgentRelations, subAgentToolRelations, subAgents, tools, triggers } from "../db/manage/manage-schema.js";
|
|
5
5
|
import { apiKeys, contextCache, conversations, datasetRun, datasetRunConversationRelations, evaluationResult, evaluationRun, ledgerArtifacts, messages, projectMetadata, taskRelations, tasks, triggerInvocations } from "../db/runtime/runtime-schema.js";
|
|
6
6
|
import { ResolvedRefSchema } from "./dolt-schemas.js";
|
|
7
|
-
import {
|
|
7
|
+
import { createInsertSchema, createSelectSchema, registerFieldSchemas } from "./drizzle-schema-helpers.js";
|
|
8
8
|
import { z } from "@hono/zod-openapi";
|
|
9
9
|
|
|
10
10
|
//#region src/validation/schemas.ts
|
|
@@ -15,6 +15,13 @@ const StopWhenSchema = z.object({
|
|
|
15
15
|
}).openapi("StopWhen");
|
|
16
16
|
const AgentStopWhenSchema = StopWhenSchema.pick({ transferCountIs: true }).openapi("AgentStopWhen");
|
|
17
17
|
const SubAgentStopWhenSchema = StopWhenSchema.pick({ stepCountIs: true }).openapi("SubAgentStopWhen");
|
|
18
|
+
const MIN_ID_LENGTH = 1;
|
|
19
|
+
const MAX_ID_LENGTH = 255;
|
|
20
|
+
const URL_SAFE_ID_PATTERN = /^[a-zA-Z0-9\-_.]+$/;
|
|
21
|
+
const ResourceIdSchema = z.string().min(MIN_ID_LENGTH).max(MAX_ID_LENGTH).regex(URL_SAFE_ID_PATTERN, { message: "ID must contain only letters, numbers, hyphens, underscores, and dots" }).refine((value) => value !== "new", "Must not use a reserved name \"new\"").openapi({
|
|
22
|
+
description: "Resource identifier",
|
|
23
|
+
example: "resource_789"
|
|
24
|
+
});
|
|
18
25
|
const pageNumber = z.coerce.number().min(1).default(1).openapi("PaginationPageQueryParam");
|
|
19
26
|
const limitNumber = z.coerce.number().min(1).max(100).default(10).openapi("PaginationLimitQueryParam");
|
|
20
27
|
const ModelSettingsSchema = z.object({
|
|
@@ -72,7 +79,7 @@ const createAgentScopedApiUpdateSchema = (schema) => schema.omit({
|
|
|
72
79
|
}).partial();
|
|
73
80
|
const SubAgentSelectSchema = createSelectSchema(subAgents);
|
|
74
81
|
const SubAgentInsertSchema = createInsertSchema(subAgents).extend({
|
|
75
|
-
id:
|
|
82
|
+
id: ResourceIdSchema,
|
|
76
83
|
models: ModelSchema.optional()
|
|
77
84
|
});
|
|
78
85
|
const SubAgentUpdateSchema = SubAgentInsertSchema.partial();
|
|
@@ -81,12 +88,12 @@ const SubAgentApiInsertSchema = createAgentScopedApiInsertSchema(SubAgentInsertS
|
|
|
81
88
|
const SubAgentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentUpdateSchema).openapi("SubAgentUpdate");
|
|
82
89
|
const SubAgentRelationSelectSchema = createSelectSchema(subAgentRelations);
|
|
83
90
|
const SubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
84
|
-
id:
|
|
85
|
-
agentId:
|
|
86
|
-
sourceSubAgentId:
|
|
87
|
-
targetSubAgentId:
|
|
88
|
-
externalSubAgentId:
|
|
89
|
-
teamSubAgentId:
|
|
91
|
+
id: ResourceIdSchema,
|
|
92
|
+
agentId: ResourceIdSchema,
|
|
93
|
+
sourceSubAgentId: ResourceIdSchema,
|
|
94
|
+
targetSubAgentId: ResourceIdSchema.optional(),
|
|
95
|
+
externalSubAgentId: ResourceIdSchema.optional(),
|
|
96
|
+
teamSubAgentId: ResourceIdSchema.optional()
|
|
90
97
|
});
|
|
91
98
|
const SubAgentRelationUpdateSchema = SubAgentRelationInsertSchema.partial();
|
|
92
99
|
const SubAgentRelationApiSelectSchema = createAgentScopedApiSchema(SubAgentRelationSelectSchema).openapi("SubAgentRelation");
|
|
@@ -127,22 +134,25 @@ const SubAgentRelationQuerySchema = z.object({
|
|
|
127
134
|
teamSubAgentId: z.string().optional()
|
|
128
135
|
});
|
|
129
136
|
const ExternalSubAgentRelationInsertSchema = createInsertSchema(subAgentRelations).extend({
|
|
130
|
-
id:
|
|
131
|
-
agentId:
|
|
132
|
-
sourceSubAgentId:
|
|
133
|
-
externalSubAgentId:
|
|
137
|
+
id: ResourceIdSchema,
|
|
138
|
+
agentId: ResourceIdSchema,
|
|
139
|
+
sourceSubAgentId: ResourceIdSchema,
|
|
140
|
+
externalSubAgentId: ResourceIdSchema
|
|
134
141
|
});
|
|
135
142
|
const ExternalSubAgentRelationApiInsertSchema = createApiInsertSchema(ExternalSubAgentRelationInsertSchema);
|
|
136
143
|
const AgentSelectSchema = createSelectSchema(agents);
|
|
137
144
|
const DEFAULT_SUB_AGENT_ID_DESCRIPTION = "ID of the default sub-agent that handles initial user messages. Required at runtime but nullable on creation to avoid circular FK dependency. Workflow: 1) POST Agent (without defaultSubAgentId), 2) POST SubAgent, 3) PATCH Agent with defaultSubAgentId.";
|
|
138
145
|
const AgentInsertSchema = createInsertSchema(agents, {
|
|
139
|
-
id: () =>
|
|
146
|
+
id: () => ResourceIdSchema,
|
|
140
147
|
name: () => z.string().trim().nonempty().describe("Agent name").openapi({ description: "Agent name" }),
|
|
141
|
-
defaultSubAgentId: () =>
|
|
148
|
+
defaultSubAgentId: () => ResourceIdSchema.clone().nullable().optional().openapi({
|
|
149
|
+
description: DEFAULT_SUB_AGENT_ID_DESCRIPTION,
|
|
150
|
+
example: "my-default-subagent"
|
|
151
|
+
})
|
|
142
152
|
});
|
|
143
153
|
const AgentUpdateSchema = AgentInsertSchema.partial();
|
|
144
154
|
const AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
|
|
145
|
-
const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id:
|
|
155
|
+
const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id: ResourceIdSchema }).openapi("AgentCreate");
|
|
146
156
|
const AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi("AgentUpdate");
|
|
147
157
|
const TriggerAuthHeaderInputSchema = z.object({
|
|
148
158
|
name: z.string().min(1).describe("Header name (e.g., X-API-Key, Authorization)"),
|
|
@@ -334,7 +344,7 @@ const TriggerSelectSchema = registerFieldSchemas(createSelectSchema(triggers).ex
|
|
|
334
344
|
signatureVerification: SignatureVerificationConfigSchema.nullable().optional()
|
|
335
345
|
}));
|
|
336
346
|
const TriggerInsertSchemaBase = createInsertSchema(triggers, {
|
|
337
|
-
id: () =>
|
|
347
|
+
id: () => ResourceIdSchema,
|
|
338
348
|
name: () => z.string().trim().nonempty().describe("Trigger name"),
|
|
339
349
|
description: () => z.string().optional().describe("Trigger description"),
|
|
340
350
|
enabled: () => z.boolean().default(true).describe("Whether the trigger is enabled"),
|
|
@@ -418,14 +428,14 @@ const TriggerInsertSchema = TriggerInsertSchemaBase.superRefine((data, ctx) => {
|
|
|
418
428
|
});
|
|
419
429
|
const TriggerUpdateSchema = TriggerInsertSchemaBase.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
|
|
420
430
|
const TriggerApiSelectSchema = createAgentScopedApiSchema(TriggerSelectSchema).openapi("Trigger");
|
|
421
|
-
const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id:
|
|
431
|
+
const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: ResourceIdSchema.optional() }).openapi("TriggerCreate");
|
|
422
432
|
const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
|
|
423
433
|
const TriggerWithWebhookUrlSchema = TriggerApiSelectSchema.extend({ webhookUrl: z.string().describe("Fully qualified webhook URL for this trigger") }).openapi("TriggerWithWebhookUrl");
|
|
424
434
|
const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
|
|
425
435
|
const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
|
|
426
|
-
id: () =>
|
|
427
|
-
triggerId: () =>
|
|
428
|
-
conversationId: () =>
|
|
436
|
+
id: () => ResourceIdSchema,
|
|
437
|
+
triggerId: () => ResourceIdSchema,
|
|
438
|
+
conversationId: () => ResourceIdSchema.optional(),
|
|
429
439
|
status: () => TriggerInvocationStatusEnum.default("pending"),
|
|
430
440
|
requestPayload: () => z.record(z.string(), z.unknown()).describe("Original webhook payload"),
|
|
431
441
|
transformedPayload: () => z.record(z.string(), z.unknown()).optional().describe("Transformed payload"),
|
|
@@ -433,12 +443,12 @@ const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
|
|
|
433
443
|
});
|
|
434
444
|
const TriggerInvocationUpdateSchema = TriggerInvocationInsertSchema.partial();
|
|
435
445
|
const TriggerInvocationApiSelectSchema = createAgentScopedApiSchema(TriggerInvocationSelectSchema).openapi("TriggerInvocation");
|
|
436
|
-
const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id:
|
|
446
|
+
const TriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInvocationInsertSchema).extend({ id: ResourceIdSchema }).openapi("TriggerInvocationCreate");
|
|
437
447
|
const TriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(TriggerInvocationUpdateSchema).openapi("TriggerInvocationUpdate");
|
|
438
448
|
const TaskSelectSchema = createSelectSchema(tasks);
|
|
439
449
|
const TaskInsertSchema = createInsertSchema(tasks).extend({
|
|
440
|
-
id:
|
|
441
|
-
conversationId:
|
|
450
|
+
id: ResourceIdSchema,
|
|
451
|
+
conversationId: ResourceIdSchema.optional(),
|
|
442
452
|
ref: ResolvedRefSchema
|
|
443
453
|
});
|
|
444
454
|
const TaskUpdateSchema = TaskInsertSchema.partial();
|
|
@@ -447,9 +457,9 @@ const TaskApiInsertSchema = createApiInsertSchema(TaskInsertSchema);
|
|
|
447
457
|
const TaskApiUpdateSchema = createApiUpdateSchema(TaskUpdateSchema);
|
|
448
458
|
const TaskRelationSelectSchema = createSelectSchema(taskRelations);
|
|
449
459
|
const TaskRelationInsertSchema = createInsertSchema(taskRelations).extend({
|
|
450
|
-
id:
|
|
451
|
-
parentTaskId:
|
|
452
|
-
childTaskId:
|
|
460
|
+
id: ResourceIdSchema,
|
|
461
|
+
parentTaskId: ResourceIdSchema,
|
|
462
|
+
childTaskId: ResourceIdSchema
|
|
453
463
|
});
|
|
454
464
|
const TaskRelationUpdateSchema = TaskRelationInsertSchema.partial();
|
|
455
465
|
const TaskRelationApiSelectSchema = createApiSchema(TaskRelationSelectSchema);
|
|
@@ -487,7 +497,7 @@ const McpToolDefinitionSchema = z.object({
|
|
|
487
497
|
});
|
|
488
498
|
const ToolSelectSchema = createSelectSchema(tools);
|
|
489
499
|
const ToolInsertSchema = createInsertSchema(tools).extend({
|
|
490
|
-
id:
|
|
500
|
+
id: ResourceIdSchema,
|
|
491
501
|
imageUrl: imageUrlSchema,
|
|
492
502
|
config: z.object({
|
|
493
503
|
type: z.literal("mcp"),
|
|
@@ -516,8 +526,8 @@ const ToolInsertSchema = createInsertSchema(tools).extend({
|
|
|
516
526
|
});
|
|
517
527
|
const ConversationSelectSchema = createSelectSchema(conversations);
|
|
518
528
|
const ConversationInsertSchema = createInsertSchema(conversations).extend({
|
|
519
|
-
id:
|
|
520
|
-
contextConfigId:
|
|
529
|
+
id: ResourceIdSchema,
|
|
530
|
+
contextConfigId: ResourceIdSchema.optional(),
|
|
521
531
|
ref: ResolvedRefSchema
|
|
522
532
|
});
|
|
523
533
|
const ConversationUpdateSchema = ConversationInsertSchema.partial();
|
|
@@ -526,9 +536,9 @@ const ConversationApiInsertSchema = createApiInsertSchema(ConversationInsertSche
|
|
|
526
536
|
const ConversationApiUpdateSchema = createApiUpdateSchema(ConversationUpdateSchema).openapi("ConversationUpdate");
|
|
527
537
|
const MessageSelectSchema = createSelectSchema(messages);
|
|
528
538
|
const MessageInsertSchema = createInsertSchema(messages).extend({
|
|
529
|
-
id:
|
|
530
|
-
conversationId:
|
|
531
|
-
taskId:
|
|
539
|
+
id: ResourceIdSchema,
|
|
540
|
+
conversationId: ResourceIdSchema,
|
|
541
|
+
taskId: ResourceIdSchema.optional()
|
|
532
542
|
});
|
|
533
543
|
const MessageUpdateSchema = MessageInsertSchema.partial();
|
|
534
544
|
const MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
|
|
@@ -541,80 +551,80 @@ const ContextCacheApiSelectSchema = createApiSchema(ContextCacheSelectSchema);
|
|
|
541
551
|
const ContextCacheApiInsertSchema = createApiInsertSchema(ContextCacheInsertSchema);
|
|
542
552
|
const ContextCacheApiUpdateSchema = createApiUpdateSchema(ContextCacheUpdateSchema);
|
|
543
553
|
const DatasetRunSelectSchema = createSelectSchema(datasetRun);
|
|
544
|
-
const DatasetRunInsertSchema = createInsertSchema(datasetRun).extend({ id:
|
|
554
|
+
const DatasetRunInsertSchema = createInsertSchema(datasetRun).extend({ id: ResourceIdSchema });
|
|
545
555
|
const DatasetRunUpdateSchema = DatasetRunInsertSchema.partial();
|
|
546
556
|
const DatasetRunApiSelectSchema = createApiSchema(DatasetRunSelectSchema).openapi("DatasetRun");
|
|
547
557
|
const DatasetRunApiInsertSchema = createApiInsertSchema(DatasetRunInsertSchema).omit({ id: true }).openapi("DatasetRunCreate");
|
|
548
558
|
const DatasetRunApiUpdateSchema = createApiUpdateSchema(DatasetRunUpdateSchema).omit({ id: true }).openapi("DatasetRunUpdate");
|
|
549
559
|
const DatasetRunConversationRelationSelectSchema = createSelectSchema(datasetRunConversationRelations);
|
|
550
|
-
const DatasetRunConversationRelationInsertSchema = createInsertSchema(datasetRunConversationRelations).extend({ id:
|
|
560
|
+
const DatasetRunConversationRelationInsertSchema = createInsertSchema(datasetRunConversationRelations).extend({ id: ResourceIdSchema });
|
|
551
561
|
const DatasetRunConversationRelationUpdateSchema = DatasetRunConversationRelationInsertSchema.partial();
|
|
552
562
|
const DatasetRunConversationRelationApiSelectSchema = createApiSchema(DatasetRunConversationRelationSelectSchema).openapi("DatasetRunConversationRelation");
|
|
553
563
|
const DatasetRunConversationRelationApiInsertSchema = createApiInsertSchema(DatasetRunConversationRelationInsertSchema).omit({ id: true }).openapi("DatasetRunConversationRelationCreate");
|
|
554
564
|
const DatasetRunConversationRelationApiUpdateSchema = createApiUpdateSchema(DatasetRunConversationRelationUpdateSchema).omit({ id: true }).openapi("DatasetRunConversationRelationUpdate");
|
|
555
565
|
const EvaluationResultSelectSchema = createSelectSchema(evaluationResult);
|
|
556
|
-
const EvaluationResultInsertSchema = createInsertSchema(evaluationResult).extend({ id:
|
|
566
|
+
const EvaluationResultInsertSchema = createInsertSchema(evaluationResult).extend({ id: ResourceIdSchema });
|
|
557
567
|
const EvaluationResultUpdateSchema = EvaluationResultInsertSchema.partial();
|
|
558
568
|
const EvaluationResultApiSelectSchema = createApiSchema(EvaluationResultSelectSchema).openapi("EvaluationResult");
|
|
559
569
|
const EvaluationResultApiInsertSchema = createApiInsertSchema(EvaluationResultInsertSchema).omit({ id: true }).openapi("EvaluationResultCreate");
|
|
560
570
|
const EvaluationResultApiUpdateSchema = createApiUpdateSchema(EvaluationResultUpdateSchema).omit({ id: true }).openapi("EvaluationResultUpdate");
|
|
561
571
|
const EvaluationRunSelectSchema = createSelectSchema(evaluationRun);
|
|
562
|
-
const EvaluationRunInsertSchema = createInsertSchema(evaluationRun).extend({ id:
|
|
572
|
+
const EvaluationRunInsertSchema = createInsertSchema(evaluationRun).extend({ id: ResourceIdSchema });
|
|
563
573
|
const EvaluationRunUpdateSchema = EvaluationRunInsertSchema.partial();
|
|
564
574
|
const EvaluationRunApiSelectSchema = createApiSchema(EvaluationRunSelectSchema).openapi("EvaluationRun");
|
|
565
575
|
const EvaluationRunApiInsertSchema = createApiInsertSchema(EvaluationRunInsertSchema).omit({ id: true }).openapi("EvaluationRunCreate");
|
|
566
576
|
const EvaluationRunApiUpdateSchema = createApiUpdateSchema(EvaluationRunUpdateSchema).omit({ id: true }).openapi("EvaluationRunUpdate");
|
|
567
577
|
const EvaluationRunConfigSelectSchema = createSelectSchema(evaluationRunConfig);
|
|
568
|
-
const EvaluationRunConfigInsertSchema = createInsertSchema(evaluationRunConfig).extend({ id:
|
|
578
|
+
const EvaluationRunConfigInsertSchema = createInsertSchema(evaluationRunConfig).extend({ id: ResourceIdSchema });
|
|
569
579
|
const EvaluationRunConfigUpdateSchema = EvaluationRunConfigInsertSchema.partial();
|
|
570
580
|
const EvaluationRunConfigApiSelectSchema = createApiSchema(EvaluationRunConfigSelectSchema).openapi("EvaluationRunConfig");
|
|
571
581
|
const EvaluationRunConfigApiInsertSchema = createApiInsertSchema(EvaluationRunConfigInsertSchema).omit({ id: true }).extend({ suiteConfigIds: z.array(z.string()).min(1, "At least one suite config is required") }).openapi("EvaluationRunConfigCreate");
|
|
572
582
|
const EvaluationRunConfigApiUpdateSchema = createApiUpdateSchema(EvaluationRunConfigUpdateSchema).omit({ id: true }).extend({ suiteConfigIds: z.array(z.string()).optional() }).openapi("EvaluationRunConfigUpdate");
|
|
573
583
|
const EvaluationRunConfigWithSuiteConfigsApiSelectSchema = EvaluationRunConfigApiSelectSchema.extend({ suiteConfigIds: z.array(z.string()) }).openapi("EvaluationRunConfigWithSuiteConfigs");
|
|
574
584
|
const EvaluationJobConfigSelectSchema = createSelectSchema(evaluationJobConfig);
|
|
575
|
-
const EvaluationJobConfigInsertSchema = createInsertSchema(evaluationJobConfig).extend({ id:
|
|
585
|
+
const EvaluationJobConfigInsertSchema = createInsertSchema(evaluationJobConfig).extend({ id: ResourceIdSchema });
|
|
576
586
|
const EvaluationJobConfigUpdateSchema = EvaluationJobConfigInsertSchema.partial();
|
|
577
587
|
const EvaluationJobConfigApiSelectSchema = createApiSchema(EvaluationJobConfigSelectSchema).openapi("EvaluationJobConfig");
|
|
578
588
|
const EvaluationJobConfigApiInsertSchema = createApiInsertSchema(EvaluationJobConfigInsertSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).min(1, "At least one evaluator is required") }).openapi("EvaluationJobConfigCreate");
|
|
579
589
|
const EvaluationJobConfigApiUpdateSchema = createApiUpdateSchema(EvaluationJobConfigUpdateSchema).omit({ id: true }).openapi("EvaluationJobConfigUpdate");
|
|
580
590
|
const EvaluationSuiteConfigSelectSchema = createSelectSchema(evaluationSuiteConfig);
|
|
581
|
-
const EvaluationSuiteConfigInsertSchema = createInsertSchema(evaluationSuiteConfig).extend({ id:
|
|
591
|
+
const EvaluationSuiteConfigInsertSchema = createInsertSchema(evaluationSuiteConfig).extend({ id: ResourceIdSchema });
|
|
582
592
|
const EvaluationSuiteConfigUpdateSchema = EvaluationSuiteConfigInsertSchema.partial();
|
|
583
593
|
const EvaluationSuiteConfigApiSelectSchema = createApiSchema(EvaluationSuiteConfigSelectSchema).openapi("EvaluationSuiteConfig");
|
|
584
594
|
const EvaluationSuiteConfigApiInsertSchema = createApiInsertSchema(EvaluationSuiteConfigInsertSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).min(1, "At least one evaluator is required") }).openapi("EvaluationSuiteConfigCreate");
|
|
585
595
|
const EvaluationSuiteConfigApiUpdateSchema = createApiUpdateSchema(EvaluationSuiteConfigUpdateSchema).omit({ id: true }).extend({ evaluatorIds: z.array(z.string()).optional() }).openapi("EvaluationSuiteConfigUpdate");
|
|
586
596
|
const EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema = createSelectSchema(evaluationRunConfigEvaluationSuiteConfigRelations);
|
|
587
|
-
const EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema = createInsertSchema(evaluationRunConfigEvaluationSuiteConfigRelations).extend({ id:
|
|
597
|
+
const EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema = createInsertSchema(evaluationRunConfigEvaluationSuiteConfigRelations).extend({ id: ResourceIdSchema });
|
|
588
598
|
const EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema = EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema.partial();
|
|
589
599
|
const EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema = createApiSchema(EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema).openapi("EvaluationRunConfigEvaluationSuiteConfigRelation");
|
|
590
600
|
const EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema = createApiInsertSchema(EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema).omit({ id: true }).openapi("EvaluationRunConfigEvaluationSuiteConfigRelationCreate");
|
|
591
601
|
const EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema = createApiUpdateSchema(EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema).omit({ id: true }).openapi("EvaluationRunConfigEvaluationSuiteConfigRelationUpdate");
|
|
592
602
|
const EvaluationJobConfigEvaluatorRelationSelectSchema = createSelectSchema(evaluationJobConfigEvaluatorRelations);
|
|
593
|
-
const EvaluationJobConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationJobConfigEvaluatorRelations).extend({ id:
|
|
603
|
+
const EvaluationJobConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationJobConfigEvaluatorRelations).extend({ id: ResourceIdSchema });
|
|
594
604
|
const EvaluationJobConfigEvaluatorRelationUpdateSchema = EvaluationJobConfigEvaluatorRelationInsertSchema.partial();
|
|
595
605
|
const EvaluationJobConfigEvaluatorRelationApiSelectSchema = createApiSchema(EvaluationJobConfigEvaluatorRelationSelectSchema).openapi("EvaluationJobConfigEvaluatorRelation");
|
|
596
606
|
const EvaluationJobConfigEvaluatorRelationApiInsertSchema = createApiInsertSchema(EvaluationJobConfigEvaluatorRelationInsertSchema).omit({ id: true }).openapi("EvaluationJobConfigEvaluatorRelationCreate");
|
|
597
607
|
const EvaluationJobConfigEvaluatorRelationApiUpdateSchema = createApiUpdateSchema(EvaluationJobConfigEvaluatorRelationUpdateSchema).omit({ id: true }).openapi("EvaluationJobConfigEvaluatorRelationUpdate");
|
|
598
608
|
const EvaluationSuiteConfigEvaluatorRelationSelectSchema = createSelectSchema(evaluationSuiteConfigEvaluatorRelations);
|
|
599
|
-
const EvaluationSuiteConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationSuiteConfigEvaluatorRelations).extend({ id:
|
|
609
|
+
const EvaluationSuiteConfigEvaluatorRelationInsertSchema = createInsertSchema(evaluationSuiteConfigEvaluatorRelations).extend({ id: ResourceIdSchema });
|
|
600
610
|
const EvaluationSuiteConfigEvaluatorRelationUpdateSchema = EvaluationSuiteConfigEvaluatorRelationInsertSchema.partial();
|
|
601
611
|
const EvaluationSuiteConfigEvaluatorRelationApiSelectSchema = createApiSchema(EvaluationSuiteConfigEvaluatorRelationSelectSchema).openapi("EvaluationSuiteConfigEvaluatorRelation");
|
|
602
612
|
const EvaluationSuiteConfigEvaluatorRelationApiInsertSchema = createApiInsertSchema(EvaluationSuiteConfigEvaluatorRelationInsertSchema).omit({ id: true }).openapi("EvaluationSuiteConfigEvaluatorRelationCreate");
|
|
603
613
|
const EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema = createApiUpdateSchema(EvaluationSuiteConfigEvaluatorRelationUpdateSchema).omit({ id: true }).openapi("EvaluationSuiteConfigEvaluatorRelationUpdate");
|
|
604
614
|
const EvaluatorSelectSchema = createSelectSchema(evaluator);
|
|
605
|
-
const EvaluatorInsertSchema = createInsertSchema(evaluator).extend({ id:
|
|
615
|
+
const EvaluatorInsertSchema = createInsertSchema(evaluator).extend({ id: ResourceIdSchema });
|
|
606
616
|
const EvaluatorUpdateSchema = EvaluatorInsertSchema.partial();
|
|
607
617
|
const EvaluatorApiSelectSchema = createApiSchema(EvaluatorSelectSchema).openapi("Evaluator");
|
|
608
618
|
const EvaluatorApiInsertSchema = createApiInsertSchema(EvaluatorInsertSchema).omit({ id: true }).openapi("EvaluatorCreate");
|
|
609
619
|
const EvaluatorApiUpdateSchema = createApiUpdateSchema(EvaluatorUpdateSchema).omit({ id: true }).openapi("EvaluatorUpdate");
|
|
610
620
|
const DatasetSelectSchema = createSelectSchema(dataset);
|
|
611
|
-
const DatasetInsertSchema = createInsertSchema(dataset).extend({ id:
|
|
621
|
+
const DatasetInsertSchema = createInsertSchema(dataset).extend({ id: ResourceIdSchema });
|
|
612
622
|
const DatasetUpdateSchema = DatasetInsertSchema.partial();
|
|
613
623
|
const DatasetApiSelectSchema = createApiSchema(DatasetSelectSchema).openapi("Dataset");
|
|
614
624
|
const DatasetApiInsertSchema = createApiInsertSchema(DatasetInsertSchema).omit({ id: true }).openapi("DatasetCreate");
|
|
615
625
|
const DatasetApiUpdateSchema = createApiUpdateSchema(DatasetUpdateSchema).omit({ id: true }).openapi("DatasetUpdate");
|
|
616
626
|
const DatasetItemSelectSchema = createSelectSchema(datasetItem);
|
|
617
|
-
const DatasetItemInsertSchema = createInsertSchema(datasetItem).extend({ id:
|
|
627
|
+
const DatasetItemInsertSchema = createInsertSchema(datasetItem).extend({ id: ResourceIdSchema });
|
|
618
628
|
const DatasetItemUpdateSchema = DatasetItemInsertSchema.partial();
|
|
619
629
|
const DatasetItemApiSelectSchema = createApiSchema(DatasetItemSelectSchema).openapi("DatasetItem");
|
|
620
630
|
const DatasetItemApiInsertSchema = createApiInsertSchema(DatasetItemInsertSchema).omit({
|
|
@@ -657,19 +667,19 @@ const TriggerEvaluationJobSchema = z.object({
|
|
|
657
667
|
jobFilters: EvaluationJobFilterCriteriaSchema.nullable().optional()
|
|
658
668
|
}).openapi("TriggerEvaluationJob");
|
|
659
669
|
const DatasetRunConfigSelectSchema = createSelectSchema(datasetRunConfig);
|
|
660
|
-
const DatasetRunConfigInsertSchema = createInsertSchema(datasetRunConfig).extend({ id:
|
|
670
|
+
const DatasetRunConfigInsertSchema = createInsertSchema(datasetRunConfig).extend({ id: ResourceIdSchema });
|
|
661
671
|
const DatasetRunConfigUpdateSchema = DatasetRunConfigInsertSchema.partial();
|
|
662
672
|
const DatasetRunConfigApiSelectSchema = createApiSchema(DatasetRunConfigSelectSchema).openapi("DatasetRunConfig");
|
|
663
673
|
const DatasetRunConfigApiInsertSchema = createApiInsertSchema(DatasetRunConfigInsertSchema).omit({ id: true }).openapi("DatasetRunConfigCreate");
|
|
664
674
|
const DatasetRunConfigApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigUpdateSchema).omit({ id: true }).openapi("DatasetRunConfigUpdate");
|
|
665
675
|
const DatasetRunConfigAgentRelationSelectSchema = createSelectSchema(datasetRunConfigAgentRelations);
|
|
666
|
-
const DatasetRunConfigAgentRelationInsertSchema = createInsertSchema(datasetRunConfigAgentRelations).extend({ id:
|
|
676
|
+
const DatasetRunConfigAgentRelationInsertSchema = createInsertSchema(datasetRunConfigAgentRelations).extend({ id: ResourceIdSchema });
|
|
667
677
|
const DatasetRunConfigAgentRelationUpdateSchema = DatasetRunConfigAgentRelationInsertSchema.partial();
|
|
668
678
|
const DatasetRunConfigAgentRelationApiSelectSchema = createApiSchema(DatasetRunConfigAgentRelationSelectSchema).openapi("DatasetRunConfigAgentRelation");
|
|
669
679
|
const DatasetRunConfigAgentRelationApiInsertSchema = createApiInsertSchema(DatasetRunConfigAgentRelationInsertSchema).omit({ id: true }).openapi("DatasetRunConfigAgentRelationCreate");
|
|
670
680
|
const DatasetRunConfigAgentRelationApiUpdateSchema = createApiUpdateSchema(DatasetRunConfigAgentRelationUpdateSchema).omit({ id: true }).openapi("DatasetRunConfigAgentRelationUpdate");
|
|
671
681
|
const DataComponentSelectSchema = createSelectSchema(dataComponents);
|
|
672
|
-
const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id:
|
|
682
|
+
const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id: ResourceIdSchema });
|
|
673
683
|
const DataComponentBaseSchema = DataComponentInsertSchema.omit({
|
|
674
684
|
createdAt: true,
|
|
675
685
|
updatedAt: true
|
|
@@ -690,7 +700,7 @@ const SubAgentDataComponentApiInsertSchema = SubAgentDataComponentInsertSchema.o
|
|
|
690
700
|
});
|
|
691
701
|
const SubAgentDataComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentDataComponentUpdateSchema);
|
|
692
702
|
const ArtifactComponentSelectSchema = createSelectSchema(artifactComponents);
|
|
693
|
-
const ArtifactComponentInsertSchema = createInsertSchema(artifactComponents).extend({ id:
|
|
703
|
+
const ArtifactComponentInsertSchema = createInsertSchema(artifactComponents).extend({ id: ResourceIdSchema });
|
|
694
704
|
const ArtifactComponentUpdateSchema = ArtifactComponentInsertSchema.partial();
|
|
695
705
|
const ArtifactComponentApiSelectSchema = createApiSchema(ArtifactComponentSelectSchema).openapi("ArtifactComponent");
|
|
696
706
|
const ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
@@ -702,9 +712,9 @@ const ArtifactComponentApiInsertSchema = ArtifactComponentInsertSchema.omit({
|
|
|
702
712
|
const ArtifactComponentApiUpdateSchema = createApiUpdateSchema(ArtifactComponentUpdateSchema).openapi("ArtifactComponentUpdate");
|
|
703
713
|
const SubAgentArtifactComponentSelectSchema = createSelectSchema(subAgentArtifactComponents);
|
|
704
714
|
const SubAgentArtifactComponentInsertSchema = createInsertSchema(subAgentArtifactComponents).extend({
|
|
705
|
-
id:
|
|
706
|
-
subAgentId:
|
|
707
|
-
artifactComponentId:
|
|
715
|
+
id: ResourceIdSchema,
|
|
716
|
+
subAgentId: ResourceIdSchema,
|
|
717
|
+
artifactComponentId: ResourceIdSchema
|
|
708
718
|
});
|
|
709
719
|
const SubAgentArtifactComponentUpdateSchema = SubAgentArtifactComponentInsertSchema.partial();
|
|
710
720
|
const SubAgentArtifactComponentApiSelectSchema = createAgentScopedApiSchema(SubAgentArtifactComponentSelectSchema);
|
|
@@ -716,7 +726,7 @@ const SubAgentArtifactComponentApiInsertSchema = SubAgentArtifactComponentInsert
|
|
|
716
726
|
});
|
|
717
727
|
const SubAgentArtifactComponentApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentArtifactComponentUpdateSchema);
|
|
718
728
|
const ExternalAgentSelectSchema = createSelectSchema(externalAgents).extend({ credentialReferenceId: z.string().nullable().optional() });
|
|
719
|
-
const ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({ id:
|
|
729
|
+
const ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({ id: ResourceIdSchema });
|
|
720
730
|
const ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
|
|
721
731
|
const ExternalAgentApiSelectSchema = createApiSchema(ExternalAgentSelectSchema).openapi("ExternalAgent");
|
|
722
732
|
const ExternalAgentApiInsertSchema = createApiInsertSchema(ExternalAgentInsertSchema).openapi("ExternalAgentCreate");
|
|
@@ -724,8 +734,8 @@ const ExternalAgentApiUpdateSchema = createApiUpdateSchema(ExternalAgentUpdateSc
|
|
|
724
734
|
const AllAgentSchema = z.discriminatedUnion("type", [SubAgentApiSelectSchema.extend({ type: z.literal("internal") }), ExternalAgentApiSelectSchema.extend({ type: z.literal("external") })]);
|
|
725
735
|
const ApiKeySelectSchema = createSelectSchema(apiKeys);
|
|
726
736
|
const ApiKeyInsertSchema = createInsertSchema(apiKeys).extend({
|
|
727
|
-
id:
|
|
728
|
-
agentId:
|
|
737
|
+
id: ResourceIdSchema,
|
|
738
|
+
agentId: ResourceIdSchema
|
|
729
739
|
});
|
|
730
740
|
const ApiKeyUpdateSchema = ApiKeyInsertSchema.partial().omit({
|
|
731
741
|
tenantId: true,
|
|
@@ -757,9 +767,9 @@ const ApiKeyApiInsertSchema = ApiKeyInsertSchema.omit({
|
|
|
757
767
|
const ApiKeyApiUpdateSchema = ApiKeyUpdateSchema.openapi("ApiKeyUpdate");
|
|
758
768
|
const CredentialReferenceSelectSchema = createSelectSchema(credentialReferences);
|
|
759
769
|
const CredentialReferenceInsertSchema = createInsertSchema(credentialReferences).extend({
|
|
760
|
-
id:
|
|
770
|
+
id: ResourceIdSchema,
|
|
761
771
|
type: z.string(),
|
|
762
|
-
credentialStoreId:
|
|
772
|
+
credentialStoreId: ResourceIdSchema,
|
|
763
773
|
retrievalParams: z.record(z.string(), z.unknown()).nullish()
|
|
764
774
|
});
|
|
765
775
|
const CredentialReferenceUpdateSchema = CredentialReferenceInsertSchema.partial();
|
|
@@ -847,16 +857,16 @@ const ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
|
|
|
847
857
|
const ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema).openapi("ToolCreate");
|
|
848
858
|
const ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("ToolUpdate");
|
|
849
859
|
const FunctionToolSelectSchema = createSelectSchema(functionTools);
|
|
850
|
-
const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id:
|
|
860
|
+
const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id: ResourceIdSchema });
|
|
851
861
|
const FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
|
|
852
862
|
const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).extend({ relationshipId: z.string().optional() }).openapi("FunctionTool");
|
|
853
863
|
const FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
|
|
854
864
|
const FunctionToolApiUpdateSchema = createApiUpdateSchema(FunctionToolUpdateSchema).openapi("FunctionToolUpdate");
|
|
855
865
|
const SubAgentFunctionToolRelationSelectSchema = createSelectSchema(subAgentFunctionToolRelations);
|
|
856
866
|
const SubAgentFunctionToolRelationInsertSchema = createInsertSchema(subAgentFunctionToolRelations).extend({
|
|
857
|
-
id:
|
|
858
|
-
subAgentId:
|
|
859
|
-
functionToolId:
|
|
867
|
+
id: ResourceIdSchema,
|
|
868
|
+
subAgentId: ResourceIdSchema,
|
|
869
|
+
functionToolId: ResourceIdSchema
|
|
860
870
|
});
|
|
861
871
|
const SubAgentFunctionToolRelationApiSelectSchema = createAgentScopedApiSchema(SubAgentFunctionToolRelationSelectSchema).openapi("SubAgentFunctionToolRelation");
|
|
862
872
|
const SubAgentFunctionToolRelationApiInsertSchema = SubAgentFunctionToolRelationInsertSchema.omit({
|
|
@@ -868,7 +878,7 @@ const SubAgentFunctionToolRelationApiInsertSchema = SubAgentFunctionToolRelation
|
|
|
868
878
|
updatedAt: true
|
|
869
879
|
}).openapi("SubAgentFunctionToolRelationCreate");
|
|
870
880
|
const FunctionSelectSchema = createSelectSchema(functions);
|
|
871
|
-
const FunctionInsertSchema = createInsertSchema(functions).extend({ id:
|
|
881
|
+
const FunctionInsertSchema = createInsertSchema(functions).extend({ id: ResourceIdSchema });
|
|
872
882
|
const FunctionUpdateSchema = FunctionInsertSchema.partial();
|
|
873
883
|
const FunctionApiSelectSchema = createApiSchema(FunctionSelectSchema).openapi("Function");
|
|
874
884
|
const FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).openapi("FunctionCreate");
|
|
@@ -902,7 +912,7 @@ const ContextConfigSelectSchema = createSelectSchema(contextConfigs).extend({ he
|
|
|
902
912
|
description: "JSON Schema for validating request headers"
|
|
903
913
|
}) });
|
|
904
914
|
const ContextConfigInsertSchema = createInsertSchema(contextConfigs).extend({
|
|
905
|
-
id:
|
|
915
|
+
id: ResourceIdSchema.optional(),
|
|
906
916
|
headersSchema: z.any().nullable().optional().openapi({
|
|
907
917
|
type: "object",
|
|
908
918
|
description: "JSON Schema for validating request headers"
|
|
@@ -921,9 +931,9 @@ const ContextConfigApiInsertSchema = createApiInsertSchema(ContextConfigInsertSc
|
|
|
921
931
|
const ContextConfigApiUpdateSchema = createApiUpdateSchema(ContextConfigUpdateSchema).omit({ agentId: true }).openapi("ContextConfigUpdate");
|
|
922
932
|
const SubAgentToolRelationSelectSchema = createSelectSchema(subAgentToolRelations);
|
|
923
933
|
const SubAgentToolRelationInsertSchema = createInsertSchema(subAgentToolRelations).extend({
|
|
924
|
-
id:
|
|
925
|
-
subAgentId:
|
|
926
|
-
toolId:
|
|
934
|
+
id: ResourceIdSchema,
|
|
935
|
+
subAgentId: ResourceIdSchema,
|
|
936
|
+
toolId: ResourceIdSchema,
|
|
927
937
|
selectedTools: z.array(z.string()).nullish(),
|
|
928
938
|
headers: z.record(z.string(), z.string()).nullish(),
|
|
929
939
|
toolPolicies: z.record(z.string(), z.object({ needsApproval: z.boolean().optional() })).nullish()
|
|
@@ -934,9 +944,9 @@ const SubAgentToolRelationApiInsertSchema = createAgentScopedApiInsertSchema(Sub
|
|
|
934
944
|
const SubAgentToolRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentToolRelationUpdateSchema).openapi("SubAgentToolRelationUpdate");
|
|
935
945
|
const SubAgentExternalAgentRelationSelectSchema = createSelectSchema(subAgentExternalAgentRelations);
|
|
936
946
|
const SubAgentExternalAgentRelationInsertSchema = createInsertSchema(subAgentExternalAgentRelations).extend({
|
|
937
|
-
id:
|
|
938
|
-
subAgentId:
|
|
939
|
-
externalAgentId:
|
|
947
|
+
id: ResourceIdSchema,
|
|
948
|
+
subAgentId: ResourceIdSchema,
|
|
949
|
+
externalAgentId: ResourceIdSchema,
|
|
940
950
|
headers: z.record(z.string(), z.string()).nullish()
|
|
941
951
|
});
|
|
942
952
|
const SubAgentExternalAgentRelationUpdateSchema = SubAgentExternalAgentRelationInsertSchema.partial();
|
|
@@ -948,9 +958,9 @@ const SubAgentExternalAgentRelationApiInsertSchema = createAgentScopedApiInsertS
|
|
|
948
958
|
const SubAgentExternalAgentRelationApiUpdateSchema = createAgentScopedApiUpdateSchema(SubAgentExternalAgentRelationUpdateSchema).openapi("SubAgentExternalAgentRelationUpdate");
|
|
949
959
|
const SubAgentTeamAgentRelationSelectSchema = createSelectSchema(subAgentTeamAgentRelations);
|
|
950
960
|
const SubAgentTeamAgentRelationInsertSchema = createInsertSchema(subAgentTeamAgentRelations).extend({
|
|
951
|
-
id:
|
|
952
|
-
subAgentId:
|
|
953
|
-
targetAgentId:
|
|
961
|
+
id: ResourceIdSchema,
|
|
962
|
+
subAgentId: ResourceIdSchema,
|
|
963
|
+
targetAgentId: ResourceIdSchema,
|
|
954
964
|
headers: z.record(z.string(), z.string()).nullish()
|
|
955
965
|
});
|
|
956
966
|
const SubAgentTeamAgentRelationUpdateSchema = SubAgentTeamAgentRelationInsertSchema.partial();
|
|
@@ -1328,13 +1338,13 @@ const SubAgentId = z.string().openapi("SubAgentIdPathParam", {
|
|
|
1328
1338
|
example: "sub_agent_123"
|
|
1329
1339
|
});
|
|
1330
1340
|
const TenantParamsSchema = z.object({ tenantId: TenantId });
|
|
1331
|
-
const TenantIdParamsSchema = TenantParamsSchema.extend({ id:
|
|
1341
|
+
const TenantIdParamsSchema = TenantParamsSchema.extend({ id: ResourceIdSchema });
|
|
1332
1342
|
const TenantProjectParamsSchema = TenantParamsSchema.extend({ projectId: ProjectId });
|
|
1333
|
-
const TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({ id:
|
|
1343
|
+
const TenantProjectIdParamsSchema = TenantProjectParamsSchema.extend({ id: ResourceIdSchema });
|
|
1334
1344
|
const TenantProjectAgentParamsSchema = TenantProjectParamsSchema.extend({ agentId: AgentId });
|
|
1335
|
-
const TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({ id:
|
|
1345
|
+
const TenantProjectAgentIdParamsSchema = TenantProjectAgentParamsSchema.extend({ id: ResourceIdSchema });
|
|
1336
1346
|
const TenantProjectAgentSubAgentParamsSchema = TenantProjectAgentParamsSchema.extend({ subAgentId: SubAgentId });
|
|
1337
|
-
const TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({ id:
|
|
1347
|
+
const TenantProjectAgentSubAgentIdParamsSchema = TenantProjectAgentSubAgentParamsSchema.extend({ id: ResourceIdSchema });
|
|
1338
1348
|
const RefQueryParamSchema = z.object({ ref: z.string().optional().describe("Branch name, tag name, or commit hash to query from") });
|
|
1339
1349
|
const PaginationQueryParamsSchema = z.object({
|
|
1340
1350
|
page: pageNumber,
|
|
@@ -1358,4 +1368,4 @@ const ProjectMetadataSelectSchema = createSelectSchema(projectMetadata);
|
|
|
1358
1368
|
const ProjectMetadataInsertSchema = createInsertSchema(projectMetadata).omit({ createdAt: true });
|
|
1359
1369
|
|
|
1360
1370
|
//#endregion
|
|
1361
|
-
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoinSchema, 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, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationApiInsertSchema, DatasetRunConfigAgentRelationApiSelectSchema, DatasetRunConfigAgentRelationApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, ErrorResponseSchema, EvaluationJobConfigApiInsertSchema, EvaluationJobConfigApiSelectSchema, EvaluationJobConfigApiUpdateSchema, EvaluationJobConfigEvaluatorRelationApiInsertSchema, EvaluationJobConfigEvaluatorRelationApiSelectSchema, EvaluationJobConfigEvaluatorRelationApiUpdateSchema, EvaluationJobConfigEvaluatorRelationInsertSchema, EvaluationJobConfigEvaluatorRelationSelectSchema, EvaluationJobConfigEvaluatorRelationUpdateSchema, EvaluationJobConfigInsertSchema, EvaluationJobConfigSelectSchema, EvaluationJobConfigUpdateSchema, EvaluationJobFilterCriteriaSchema, EvaluationResultApiInsertSchema, EvaluationResultApiSelectSchema, EvaluationResultApiUpdateSchema, EvaluationResultInsertSchema, EvaluationResultSelectSchema, EvaluationResultUpdateSchema, EvaluationRunApiInsertSchema, EvaluationRunApiSelectSchema, EvaluationRunApiUpdateSchema, EvaluationRunConfigApiInsertSchema, EvaluationRunConfigApiSelectSchema, EvaluationRunConfigApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema, EvaluationRunConfigInsertSchema, EvaluationRunConfigSelectSchema, EvaluationRunConfigUpdateSchema, EvaluationRunConfigWithSuiteConfigsApiSelectSchema, EvaluationRunInsertSchema, EvaluationRunSelectSchema, EvaluationRunUpdateSchema, EvaluationSuiteConfigApiInsertSchema, EvaluationSuiteConfigApiSelectSchema, EvaluationSuiteConfigApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationApiInsertSchema, EvaluationSuiteConfigEvaluatorRelationApiSelectSchema, EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationInsertSchema, EvaluationSuiteConfigEvaluatorRelationSelectSchema, EvaluationSuiteConfigEvaluatorRelationUpdateSchema, EvaluationSuiteConfigInsertSchema, EvaluationSuiteConfigSelectSchema, EvaluationSuiteConfigUpdateSchema, EvaluatorApiInsertSchema, EvaluatorApiSelectSchema, EvaluatorApiUpdateSchema, EvaluatorInsertSchema, EvaluatorSelectSchema, EvaluatorUpdateSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, 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, PaginationWithRefQueryParamsSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SimulationAgentSchema, 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, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, 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, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema, resourceIdSchema };
|
|
1371
|
+
export { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoinSchema, 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, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationApiInsertSchema, DatasetRunConfigAgentRelationApiSelectSchema, DatasetRunConfigAgentRelationApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, ErrorResponseSchema, EvaluationJobConfigApiInsertSchema, EvaluationJobConfigApiSelectSchema, EvaluationJobConfigApiUpdateSchema, EvaluationJobConfigEvaluatorRelationApiInsertSchema, EvaluationJobConfigEvaluatorRelationApiSelectSchema, EvaluationJobConfigEvaluatorRelationApiUpdateSchema, EvaluationJobConfigEvaluatorRelationInsertSchema, EvaluationJobConfigEvaluatorRelationSelectSchema, EvaluationJobConfigEvaluatorRelationUpdateSchema, EvaluationJobConfigInsertSchema, EvaluationJobConfigSelectSchema, EvaluationJobConfigUpdateSchema, EvaluationJobFilterCriteriaSchema, EvaluationResultApiInsertSchema, EvaluationResultApiSelectSchema, EvaluationResultApiUpdateSchema, EvaluationResultInsertSchema, EvaluationResultSelectSchema, EvaluationResultUpdateSchema, EvaluationRunApiInsertSchema, EvaluationRunApiSelectSchema, EvaluationRunApiUpdateSchema, EvaluationRunConfigApiInsertSchema, EvaluationRunConfigApiSelectSchema, EvaluationRunConfigApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema, EvaluationRunConfigInsertSchema, EvaluationRunConfigSelectSchema, EvaluationRunConfigUpdateSchema, EvaluationRunConfigWithSuiteConfigsApiSelectSchema, EvaluationRunInsertSchema, EvaluationRunSelectSchema, EvaluationRunUpdateSchema, EvaluationSuiteConfigApiInsertSchema, EvaluationSuiteConfigApiSelectSchema, EvaluationSuiteConfigApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationApiInsertSchema, EvaluationSuiteConfigEvaluatorRelationApiSelectSchema, EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationInsertSchema, EvaluationSuiteConfigEvaluatorRelationSelectSchema, EvaluationSuiteConfigEvaluatorRelationUpdateSchema, EvaluationSuiteConfigInsertSchema, EvaluationSuiteConfigSelectSchema, EvaluationSuiteConfigUpdateSchema, EvaluatorApiInsertSchema, EvaluatorApiSelectSchema, EvaluatorApiUpdateSchema, EvaluatorInsertSchema, EvaluatorSelectSchema, EvaluatorUpdateSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, 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, PaginationWithRefQueryParamsSchema, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ResourceIdSchema, SignatureSourceSchema, SignatureValidationOptionsSchema, SignatureVerificationConfigSchema, SignedComponentSchema, SimulationAgentSchema, 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, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, 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, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, URL_SAFE_ID_PATTERN, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260130091014",
|
|
4
4
|
"description": "Agents Core contains the database schema, types, and validation schemas for Inkeep Agent Framework, along with core components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
//#region src/validation/id-validation.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Valid URL-safe characters for resource IDs based on RFC 3986.
|
|
4
|
-
*
|
|
5
|
-
* Allowed characters:
|
|
6
|
-
* - Letters: a-z, A-Z
|
|
7
|
-
* - Numbers: 0-9
|
|
8
|
-
* - Hyphens: -
|
|
9
|
-
* - Underscores: _
|
|
10
|
-
*
|
|
11
|
-
* Note: While dots (.) and tildes (~) are technically URL-safe,
|
|
12
|
-
* we exclude them for consistency with existing patterns in the codebase.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Helper function to validate if a string is a valid resource ID
|
|
16
|
-
*/
|
|
17
|
-
declare function isValidResourceId(id: string): boolean;
|
|
18
|
-
/**
|
|
19
|
-
* Helper function to generate a URL-safe ID from a name or title.
|
|
20
|
-
* Converts to lowercase and replaces invalid characters with hyphens.
|
|
21
|
-
*/
|
|
22
|
-
declare function generateIdFromName(name: string): string;
|
|
23
|
-
//#endregion
|
|
24
|
-
export { generateIdFromName, isValidResourceId };
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { MAX_ID_LENGTH, resourceIdSchema } from "./drizzle-schema-helpers.js";
|
|
2
|
-
|
|
3
|
-
//#region src/validation/id-validation.ts
|
|
4
|
-
/**
|
|
5
|
-
* Valid URL-safe characters for resource IDs based on RFC 3986.
|
|
6
|
-
*
|
|
7
|
-
* Allowed characters:
|
|
8
|
-
* - Letters: a-z, A-Z
|
|
9
|
-
* - Numbers: 0-9
|
|
10
|
-
* - Hyphens: -
|
|
11
|
-
* - Underscores: _
|
|
12
|
-
*
|
|
13
|
-
* Note: While dots (.) and tildes (~) are technically URL-safe,
|
|
14
|
-
* we exclude them for consistency with existing patterns in the codebase.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Helper function to validate if a string is a valid resource ID
|
|
18
|
-
*/
|
|
19
|
-
function isValidResourceId(id) {
|
|
20
|
-
return resourceIdSchema.safeParse(id).success;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Helper function to generate a URL-safe ID from a name or title.
|
|
24
|
-
* Converts to lowercase and replaces invalid characters with hyphens.
|
|
25
|
-
*/
|
|
26
|
-
function generateIdFromName(name) {
|
|
27
|
-
const id = name.toLowerCase().replace(/[^a-z0-9_-]+/g, "-").replace(/^-+|-+$/g, "").replace(/-{2,}/g, "-");
|
|
28
|
-
if (!id) throw new Error("Cannot generate valid ID from provided name");
|
|
29
|
-
const truncatedId = id.substring(0, MAX_ID_LENGTH);
|
|
30
|
-
const result = resourceIdSchema.safeParse(truncatedId);
|
|
31
|
-
if (!result.success) throw new Error(`Generated ID "${truncatedId}" is not valid: ${result.error.message}`);
|
|
32
|
-
return truncatedId;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Example valid IDs:
|
|
36
|
-
* - "qa-agent"
|
|
37
|
-
* - "customer_support_123"
|
|
38
|
-
* - "router"
|
|
39
|
-
* - "tool-executor-v2"
|
|
40
|
-
* - "PRODUCTION_CONFIG"
|
|
41
|
-
*
|
|
42
|
-
* Example invalid IDs:
|
|
43
|
-
* - "my.agent" (contains dot)
|
|
44
|
-
* - "agent@123" (contains @)
|
|
45
|
-
* - "agent/router" (contains slash)
|
|
46
|
-
* - "my agent" (contains space)
|
|
47
|
-
* - "agent#1" (contains hash)
|
|
48
|
-
* - "" (empty string)
|
|
49
|
-
*/
|
|
50
|
-
|
|
51
|
-
//#endregion
|
|
52
|
-
export { generateIdFromName, isValidResourceId };
|