@inkeep/agents-core 0.58.18 → 0.58.20
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 +85 -85
- package/dist/auth/auth-validation-schemas.d.ts +152 -152
- package/dist/auth/auth.d.ts +9 -9
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +3 -3
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +2 -0
- package/dist/data-access/index.d.ts +2 -2
- package/dist/data-access/index.js +2 -2
- package/dist/data-access/manage/agents.d.ts +24 -24
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/skills.d.ts +12 -12
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/manage/tools.js +4 -2
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/apps.d.ts +29 -16
- package/dist/data-access/runtime/apps.js +14 -7
- package/dist/data-access/runtime/cascade-delete.d.ts +4 -0
- package/dist/data-access/runtime/cascade-delete.js +27 -1
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +15 -0
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/data-access/runtime/triggerInvocations.d.ts +5 -0
- package/dist/db/manage/manage-schema.d.ts +453 -453
- package/dist/db/runtime/runtime-schema.d.ts +434 -326
- package/dist/db/runtime/runtime-schema.js +4 -0
- package/dist/env.js +7 -0
- package/dist/index.d.ts +4 -2
- package/dist/index.js +4 -2
- package/dist/utils/env-detection.d.ts +6 -0
- package/dist/utils/env-detection.js +13 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +3 -1
- package/dist/utils/work-app-mcp.d.ts +8 -0
- package/dist/utils/work-app-mcp.js +18 -0
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +2945 -4751
- package/dist/validation/schemas.js +10 -9
- package/drizzle/runtime/0023_bumpy_vampiro.sql +4 -0
- package/drizzle/runtime/meta/0023_snapshot.json +4264 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
|
@@ -490,9 +490,9 @@ const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSch
|
|
|
490
490
|
createdAt: true,
|
|
491
491
|
updatedAt: true
|
|
492
492
|
}).openapi("TriggerCreate");
|
|
493
|
-
const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
|
|
493
|
+
const TriggerApiUpdateSchema = createAgentScopedApiUpdateSchema(TriggerUpdateSchema).openapi("TriggerUpdate");
|
|
494
494
|
const TriggerWithWebhookUrlSchema = TriggerApiSelectSchema.extend({ webhookUrl: z.string().describe("Fully qualified webhook URL for this trigger") }).openapi("TriggerWithWebhookUrl");
|
|
495
|
-
const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
|
|
495
|
+
const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations).extend({ ref: ResolvedRefSchema.nullable().optional() });
|
|
496
496
|
const TriggerInvocationInsertSchema = createInsertSchema(triggerInvocations, {
|
|
497
497
|
id: () => ResourceIdSchema,
|
|
498
498
|
triggerId: () => ResourceIdSchema,
|
|
@@ -541,7 +541,7 @@ const ScheduledTriggerUpdateSchema = ScheduledTriggerInsertSchemaBase.extend({
|
|
|
541
541
|
const ScheduledTriggerApiSelectSchema = createAgentScopedApiSchema(ScheduledTriggerSelectSchema).openapi("ScheduledTrigger");
|
|
542
542
|
const ScheduledTriggerApiInsertBaseSchema = createAgentScopedApiInsertSchema(ScheduledTriggerInsertSchemaBase).extend({ id: ResourceIdSchema.optional() }).openapi("ScheduledTriggerInsertBase");
|
|
543
543
|
const ScheduledTriggerApiInsertSchema = ScheduledTriggerApiInsertBaseSchema.refine((data) => data.cronExpression || data.runAt, { message: "Either cronExpression or runAt must be provided" }).refine((data) => !(data.cronExpression && data.runAt), { message: "Cannot specify both cronExpression and runAt" }).openapi("ScheduledTriggerCreate");
|
|
544
|
-
const ScheduledTriggerApiUpdateSchema = ScheduledTriggerUpdateSchema.openapi("ScheduledTriggerUpdate");
|
|
544
|
+
const ScheduledTriggerApiUpdateSchema = createAgentScopedApiUpdateSchema(ScheduledTriggerUpdateSchema).openapi("ScheduledTriggerUpdate");
|
|
545
545
|
const ScheduledWorkflowSelectSchema = createSelectSchema(scheduledWorkflows);
|
|
546
546
|
const ScheduledWorkflowInsertSchemaBase = createInsertSchema(scheduledWorkflows, {
|
|
547
547
|
id: () => ResourceIdSchema,
|
|
@@ -554,7 +554,7 @@ const ScheduledWorkflowInsertSchema = ScheduledWorkflowInsertSchemaBase;
|
|
|
554
554
|
const ScheduledWorkflowUpdateSchema = ScheduledWorkflowInsertSchemaBase.extend({ scheduledTriggerId: z.string().optional() }).partial();
|
|
555
555
|
const ScheduledWorkflowApiSelectSchema = createAgentScopedApiSchema(ScheduledWorkflowSelectSchema).openapi("ScheduledWorkflow");
|
|
556
556
|
const ScheduledWorkflowApiInsertSchema = createAgentScopedApiInsertSchema(ScheduledWorkflowInsertSchemaBase).extend({ id: ResourceIdSchema.optional() }).openapi("ScheduledWorkflowCreate");
|
|
557
|
-
const ScheduledWorkflowApiUpdateSchema = ScheduledWorkflowUpdateSchema.openapi("ScheduledWorkflowUpdate");
|
|
557
|
+
const ScheduledWorkflowApiUpdateSchema = createAgentScopedApiUpdateSchema(ScheduledWorkflowUpdateSchema).openapi("ScheduledWorkflowUpdate");
|
|
558
558
|
const ScheduledTriggerInvocationStatusEnum = z.enum([
|
|
559
559
|
"pending",
|
|
560
560
|
"running",
|
|
@@ -563,6 +563,7 @@ const ScheduledTriggerInvocationStatusEnum = z.enum([
|
|
|
563
563
|
"cancelled"
|
|
564
564
|
]);
|
|
565
565
|
const ScheduledTriggerInvocationSelectSchema = createSelectSchema(scheduledTriggerInvocations).extend({
|
|
566
|
+
ref: ResolvedRefSchema.nullable().optional(),
|
|
566
567
|
resolvedPayload: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
567
568
|
status: ScheduledTriggerInvocationStatusEnum
|
|
568
569
|
});
|
|
@@ -582,7 +583,7 @@ const ScheduledTriggerInvocationUpdateSchema = ScheduledTriggerInvocationInsertS
|
|
|
582
583
|
const ScheduledTriggerInvocationApiSelectSchema = createAgentScopedApiSchema(ScheduledTriggerInvocationSelectSchema).openapi("ScheduledTriggerInvocation");
|
|
583
584
|
const ScheduledTriggerInvocationApiInsertSchema = createAgentScopedApiInsertSchema(ScheduledTriggerInvocationInsertSchema).extend({ id: ResourceIdSchema }).openapi("ScheduledTriggerInvocationCreate");
|
|
584
585
|
const ScheduledTriggerInvocationApiUpdateSchema = createAgentScopedApiUpdateSchema(ScheduledTriggerInvocationUpdateSchema).openapi("ScheduledTriggerInvocationUpdate");
|
|
585
|
-
const TaskSelectSchema = createSelectSchema(tasks);
|
|
586
|
+
const TaskSelectSchema = createSelectSchema(tasks).extend({ ref: ResolvedRefSchema.nullable().optional() });
|
|
586
587
|
const TaskInsertSchema = createInsertSchema(tasks).extend({
|
|
587
588
|
id: ResourceIdSchema,
|
|
588
589
|
conversationId: ResourceIdSchema.optional(),
|
|
@@ -664,7 +665,7 @@ const ToolInsertSchema = createInsertSchema(tools).extend({
|
|
|
664
665
|
createdAt: true,
|
|
665
666
|
updatedAt: true
|
|
666
667
|
});
|
|
667
|
-
const ConversationSelectSchema = createSelectSchema(conversations);
|
|
668
|
+
const ConversationSelectSchema = createSelectSchema(conversations).extend({ ref: ResolvedRefSchema.nullable().optional() });
|
|
668
669
|
const ConversationInsertSchema = createInsertSchema(conversations).extend({
|
|
669
670
|
id: ResourceIdSchema,
|
|
670
671
|
contextConfigId: ResourceIdSchema.optional(),
|
|
@@ -684,13 +685,13 @@ const MessageUpdateSchema = MessageInsertSchema.partial();
|
|
|
684
685
|
const MessageApiSelectSchema = createApiSchema(MessageSelectSchema).openapi("Message");
|
|
685
686
|
const MessageApiInsertSchema = createApiInsertSchema(MessageInsertSchema).openapi("MessageCreate");
|
|
686
687
|
const MessageApiUpdateSchema = createApiUpdateSchema(MessageUpdateSchema).openapi("MessageUpdate");
|
|
687
|
-
const ContextCacheSelectSchema = createSelectSchema(contextCache);
|
|
688
|
+
const ContextCacheSelectSchema = createSelectSchema(contextCache).extend({ ref: ResolvedRefSchema.nullable().optional() });
|
|
688
689
|
const ContextCacheInsertSchema = createInsertSchema(contextCache).extend({ ref: ResolvedRefSchema });
|
|
689
690
|
const ContextCacheUpdateSchema = ContextCacheInsertSchema.partial();
|
|
690
691
|
const ContextCacheApiSelectSchema = createApiSchema(ContextCacheSelectSchema);
|
|
691
692
|
const ContextCacheApiInsertSchema = createApiInsertSchema(ContextCacheInsertSchema);
|
|
692
693
|
const ContextCacheApiUpdateSchema = createApiUpdateSchema(ContextCacheUpdateSchema);
|
|
693
|
-
const DatasetRunSelectSchema = createSelectSchema(datasetRun);
|
|
694
|
+
const DatasetRunSelectSchema = createSelectSchema(datasetRun).extend({ ref: ResolvedRefSchema.nullable().optional() });
|
|
694
695
|
const DatasetRunInsertSchema = createInsertSchema(datasetRun).extend({ id: ResourceIdSchema });
|
|
695
696
|
const DatasetRunUpdateSchema = DatasetRunInsertSchema.partial();
|
|
696
697
|
const DatasetRunApiSelectSchema = createApiSchema(DatasetRunSelectSchema).openapi("DatasetRun");
|
|
@@ -708,7 +709,7 @@ const EvaluationResultUpdateSchema = EvaluationResultInsertSchema.partial();
|
|
|
708
709
|
const EvaluationResultApiSelectSchema = createApiSchema(EvaluationResultSelectSchema).openapi("EvaluationResult");
|
|
709
710
|
const EvaluationResultApiInsertSchema = createApiInsertSchema(EvaluationResultInsertSchema).omit({ id: true }).openapi("EvaluationResultCreate");
|
|
710
711
|
const EvaluationResultApiUpdateSchema = createApiUpdateSchema(EvaluationResultUpdateSchema).omit({ id: true }).openapi("EvaluationResultUpdate");
|
|
711
|
-
const EvaluationRunSelectSchema = createSelectSchema(evaluationRun);
|
|
712
|
+
const EvaluationRunSelectSchema = createSelectSchema(evaluationRun).extend({ ref: ResolvedRefSchema.nullable().optional() });
|
|
712
713
|
const EvaluationRunInsertSchema = createInsertSchema(evaluationRun).extend({ id: ResourceIdSchema });
|
|
713
714
|
const EvaluationRunUpdateSchema = EvaluationRunInsertSchema.partial();
|
|
714
715
|
const EvaluationRunApiSelectSchema = createApiSchema(EvaluationRunSelectSchema).openapi("EvaluationRun");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
ALTER TABLE "dataset_run" ADD COLUMN "ref" jsonb;--> statement-breakpoint
|
|
2
|
+
ALTER TABLE "evaluation_run" ADD COLUMN "ref" jsonb;--> statement-breakpoint
|
|
3
|
+
ALTER TABLE "scheduled_trigger_invocations" ADD COLUMN "ref" jsonb;--> statement-breakpoint
|
|
4
|
+
ALTER TABLE "trigger_invocations" ADD COLUMN "ref" jsonb;
|