@inkeep/agents-core 0.58.9 → 0.58.12

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.
Files changed (33) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +9 -9
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +4 -4
  6. package/dist/client-exports.js +2 -2
  7. package/dist/data-access/manage/agents.d.ts +40 -40
  8. package/dist/data-access/manage/artifactComponents.d.ts +12 -12
  9. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  10. package/dist/data-access/manage/credentialReferences.d.ts +2 -2
  11. package/dist/data-access/manage/credentialReferences.js +46 -18
  12. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  13. package/dist/data-access/manage/functionTools.d.ts +18 -18
  14. package/dist/data-access/manage/skills.d.ts +14 -14
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  16. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  18. package/dist/data-access/manage/subAgents.d.ts +24 -24
  19. package/dist/data-access/manage/tools.d.ts +28 -27
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +16 -16
  22. package/dist/data-access/runtime/apps.d.ts +8 -8
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/messages.d.ts +18 -18
  25. package/dist/data-access/runtime/tasks.d.ts +7 -7
  26. package/dist/db/manage/manage-schema.d.ts +453 -453
  27. package/dist/db/runtime/runtime-schema.d.ts +326 -326
  28. package/dist/middleware/no-auth.d.ts +2 -2
  29. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  30. package/dist/validation/extend-schemas.d.ts +5 -1
  31. package/dist/validation/schemas.d.ts +2408 -3219
  32. package/dist/validation/schemas.js +41 -10
  33. package/package.json +3 -3
@@ -201,7 +201,10 @@ const AgentInsertSchema = createInsertSchema(agents, {
201
201
  });
202
202
  const AgentUpdateSchema = AgentInsertSchema.partial();
203
203
  const AgentApiSelectSchema = createApiSchema(AgentSelectSchema).openapi("Agent");
204
- const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id: ResourceIdSchema }).openapi("AgentCreate");
204
+ const AgentApiInsertSchema = createApiInsertSchema(AgentInsertSchema).extend({ id: ResourceIdSchema }).omit({
205
+ createdAt: true,
206
+ updatedAt: true
207
+ }).openapi("AgentCreate");
205
208
  const AgentApiUpdateSchema = createApiUpdateSchema(AgentUpdateSchema).openapi("AgentUpdate");
206
209
  const TriggerAuthHeaderInputSchema = z.object({
207
210
  name: z.string().min(1).describe("Header name (e.g., X-API-Key, Authorization)"),
@@ -479,7 +482,10 @@ const TriggerInsertSchema = createInsertSchema(triggers, {
479
482
  });
480
483
  const TriggerUpdateSchema = TriggerInsertSchema.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
481
484
  const TriggerApiSelectSchema = createAgentScopedApiSchema(TriggerSelectSchema).openapi("Trigger");
482
- const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: ResourceIdSchema.optional() }).openapi("TriggerCreate");
485
+ const TriggerApiInsertSchema = createAgentScopedApiInsertSchema(TriggerInsertSchema).extend({ id: ResourceIdSchema.optional() }).omit({
486
+ createdAt: true,
487
+ updatedAt: true
488
+ }).openapi("TriggerCreate");
483
489
  const TriggerApiUpdateSchema = TriggerUpdateSchema.openapi("TriggerUpdate");
484
490
  const TriggerWithWebhookUrlSchema = TriggerApiSelectSchema.extend({ webhookUrl: z.string().describe("Fully qualified webhook URL for this trigger") }).openapi("TriggerWithWebhookUrl");
485
491
  const TriggerInvocationSelectSchema = createSelectSchema(triggerInvocations);
@@ -516,9 +522,18 @@ const ScheduledTriggerInsertSchemaBase = createInsertSchema(scheduledTriggers, {
516
522
  retryDelaySeconds: () => z.number().int().min(10).max(3600).default(60),
517
523
  timeoutSeconds: () => z.number().int().min(30).max(780).default(780),
518
524
  createdBy: () => UserIdSchema.nullable().optional().describe("User ID of the user who created this trigger")
525
+ }).omit({
526
+ createdAt: true,
527
+ updatedAt: true
519
528
  });
520
529
  const ScheduledTriggerInsertSchema = ScheduledTriggerInsertSchemaBase.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" });
521
- const ScheduledTriggerUpdateSchema = ScheduledTriggerInsertSchemaBase.extend({ enabled: z.boolean().optional().describe("Whether the trigger is enabled") }).partial();
530
+ const ScheduledTriggerUpdateSchema = ScheduledTriggerInsertSchemaBase.extend({
531
+ enabled: z.boolean().optional().describe("Whether the trigger is enabled"),
532
+ cronTimezone: z.string().max(64).nullable().optional().describe("IANA timezone for cron expression (e.g., America/New_York, Europe/London)"),
533
+ maxRetries: z.number().int().min(0).max(10).optional(),
534
+ retryDelaySeconds: z.number().int().min(10).max(3600).optional(),
535
+ timeoutSeconds: z.number().int().min(30).max(780).optional()
536
+ }).partial();
522
537
  const ScheduledTriggerApiSelectSchema = createAgentScopedApiSchema(ScheduledTriggerSelectSchema).openapi("ScheduledTrigger");
523
538
  const ScheduledTriggerApiInsertBaseSchema = createAgentScopedApiInsertSchema(ScheduledTriggerInsertSchemaBase).extend({ id: ResourceIdSchema.optional() }).openapi("ScheduledTriggerInsertBase");
524
539
  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");
@@ -641,6 +656,9 @@ const ToolInsertSchema = createInsertSchema(tools).extend({
641
656
  prompt: z.string().optional()
642
657
  })
643
658
  })
659
+ }).omit({
660
+ createdAt: true,
661
+ updatedAt: true
644
662
  });
645
663
  const ConversationSelectSchema = createSelectSchema(conversations);
646
664
  const ConversationInsertSchema = createInsertSchema(conversations).extend({
@@ -813,7 +831,10 @@ const SkillApiSelectSchema = createApiSchema(SkillSelectSchema).openapi("Skill")
813
831
  const SkillApiInsertSchema = createApiInsertSchema(SkillInsertSchema).openapi("SkillCreate");
814
832
  const SkillApiUpdateSchema = createApiUpdateSchema(SkillUpdateSchema).openapi("SkillUpdate");
815
833
  const DataComponentSelectSchema = createSelectSchema(dataComponents);
816
- const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id: ResourceIdSchema });
834
+ const DataComponentInsertSchema = createInsertSchema(dataComponents).extend({ id: ResourceIdSchema }).omit({
835
+ createdAt: true,
836
+ updatedAt: true
837
+ });
817
838
  const DataComponentUpdateSchema = DataComponentInsertSchema.partial();
818
839
  const DataComponentApiSelectSchema = createApiSchema(DataComponentSelectSchema).openapi("DataComponent");
819
840
  const DataComponentApiInsertSchema = createApiInsertSchema(DataComponentInsertSchema).extend(DataComponentExtendSchema).openapi("DataComponentCreate");
@@ -886,6 +907,9 @@ const ExternalAgentInsertSchema = createInsertSchema(externalAgents).extend({
886
907
  description: DescriptionSchema,
887
908
  baseUrl: z.url(),
888
909
  credentialReferenceId: z.string().trim().nonempty().max(256).nullish()
910
+ }).omit({
911
+ createdAt: true,
912
+ updatedAt: true
889
913
  });
890
914
  const ExternalAgentUpdateSchema = ExternalAgentInsertSchema.partial();
891
915
  const ExternalAgentApiSelectSchema = createApiSchema(ExternalAgentSelectSchema).openapi("ExternalAgent");
@@ -970,6 +994,9 @@ const CredentialReferenceInsertSchema = createInsertSchema(credentialReferences)
970
994
  type: z.string(),
971
995
  credentialStoreId: ResourceIdSchema,
972
996
  retrievalParams: z.record(z.string(), z.unknown()).nullish()
997
+ }).omit({
998
+ createdAt: true,
999
+ updatedAt: true
973
1000
  });
974
1001
  const CredentialReferenceUpdateSchema = CredentialReferenceInsertSchema.partial();
975
1002
  const CredentialReferenceApiSelectSchema = createApiSchema(CredentialReferenceSelectSchema).extend({
@@ -1031,8 +1058,6 @@ const MCPToolConfigSchema = McpToolSchema.omit({
1031
1058
  projectId: true,
1032
1059
  status: true,
1033
1060
  version: true,
1034
- createdAt: true,
1035
- updatedAt: true,
1036
1061
  credentialReferenceId: true
1037
1062
  }).extend({
1038
1063
  tenantId: z.string().optional(),
@@ -1056,7 +1081,10 @@ const ToolApiSelectSchema = createApiSchema(ToolSelectSchema).openapi("Tool");
1056
1081
  const ToolApiInsertSchema = createApiInsertSchema(ToolInsertSchema).openapi("ToolCreate");
1057
1082
  const ToolApiUpdateSchema = createApiUpdateSchema(ToolUpdateSchema).openapi("ToolUpdate");
1058
1083
  const FunctionToolSelectSchema = createSelectSchema(functionTools);
1059
- const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id: ResourceIdSchema });
1084
+ const FunctionToolInsertSchema = createInsertSchema(functionTools).extend({ id: ResourceIdSchema }).omit({
1085
+ createdAt: true,
1086
+ updatedAt: true
1087
+ });
1060
1088
  const FunctionToolUpdateSchema = FunctionToolInsertSchema.partial();
1061
1089
  const FunctionToolApiSelectSchema = createApiSchema(FunctionToolSelectSchema).extend({ relationshipId: z.string().optional() }).openapi("FunctionTool");
1062
1090
  const FunctionToolApiInsertSchema = createAgentScopedApiInsertSchema(FunctionToolInsertSchema).openapi("FunctionToolCreate");
@@ -1086,8 +1114,8 @@ const validateExecuteCode = (val, ctx) => {
1086
1114
  if (isAnonymousFunction) val = `(${val})`;
1087
1115
  const { body } = parse(val, { sourceType: "module" }).program;
1088
1116
  for (const node of body) {
1089
- if (node.type === "ExportDefaultDeclaration") throw SyntaxError("Export default declarations are not supported. Provide a single function instead.");
1090
- if (node.type === "ExportNamedDeclaration") throw SyntaxError("Export declarations are not supported. Provide a single function instead.");
1117
+ if (node.type === "ExportDefaultDeclaration") throw new SyntaxError("Export default declarations are not supported. Provide a single function instead.");
1118
+ if (node.type === "ExportNamedDeclaration") throw new SyntaxError("Export declarations are not supported. Provide a single function instead.");
1091
1119
  }
1092
1120
  const functionsCount = body.filter((node) => {
1093
1121
  if (node.type === "FunctionDeclaration") return true;
@@ -1108,7 +1136,10 @@ const validateExecuteCode = (val, ctx) => {
1108
1136
  });
1109
1137
  }
1110
1138
  };
1111
- const FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).openapi("FunctionCreate").extend({ executeCode: z.string().trim().nonempty().superRefine(validateExecuteCode) });
1139
+ const FunctionApiInsertSchema = createApiInsertSchema(FunctionInsertSchema).extend({ executeCode: z.string().trim().nonempty().superRefine(validateExecuteCode) }).omit({
1140
+ createdAt: true,
1141
+ updatedAt: true
1142
+ }).openapi("FunctionCreate");
1112
1143
  const FunctionApiUpdateSchema = createApiUpdateSchema(FunctionUpdateSchema).openapi("FunctionUpdate");
1113
1144
  const FetchConfigSchema = z.object({
1114
1145
  url: z.string().min(1, "URL is required"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.58.9",
3
+ "version": "0.58.12",
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",
@@ -122,7 +122,7 @@
122
122
  "@better-auth/sso": "1.4.19",
123
123
  "@composio/core": "^0.2.4",
124
124
  "@electric-sql/pglite": "^0.3.13",
125
- "@modelcontextprotocol/sdk": "^1.17.2",
125
+ "@modelcontextprotocol/sdk": "^1.26.0",
126
126
  "@nangohq/node": "^0.69.41",
127
127
  "@nangohq/types": "^0.69.41",
128
128
  "@napi-rs/keyring": "^1.2.0",
@@ -140,7 +140,7 @@
140
140
  "drizzle-zod": "^0.8.2",
141
141
  "exit-hook": "^4.0.0",
142
142
  "find-up": "^7.0.0",
143
- "hono": "^4.12.4",
143
+ "hono": "^4.12.7",
144
144
  "iwanthue": "^2.0.0",
145
145
  "jmespath": "^0.16.0",
146
146
  "jose": "^6.1.0",