@inkeep/agents-core 0.37.2 → 0.38.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/auth/auth-validation-schemas.js +1 -1
  2. package/dist/auth/auth.d.ts +4 -3
  3. package/dist/auth/auth.js +2 -2
  4. package/dist/chunk-3OPS2LN5.js +4 -0
  5. package/dist/{chunk-7CLFCY6J.js → chunk-7IQFIW44.js} +2 -0
  6. package/dist/{chunk-BJLC7EI4.js → chunk-AJCP2QYU.js} +1 -1
  7. package/dist/{chunk-6CYQZ5KX.js → chunk-AUGHKZEB.js} +41 -1
  8. package/dist/{chunk-5QZSNATS.js → chunk-CWAFZVRI.js} +1 -1
  9. package/dist/{chunk-ZSYMSL55.js → chunk-DW4DNYUS.js} +1 -1
  10. package/dist/{chunk-DEYPSEXR.js → chunk-LH6OJIIM.js} +26 -11
  11. package/dist/{chunk-3HACEHXF.js → chunk-MGHGIB7U.js} +3 -10
  12. package/dist/{chunk-YSFXXC6K.js → chunk-S4XQEAAF.js} +7 -4
  13. package/dist/{chunk-XHODTX4H.js → chunk-UK63CULA.js} +7 -14
  14. package/dist/{client-B3nwdklT.d.ts → client-DG_xZdlN.d.ts} +1 -1
  15. package/dist/client-exports.d.ts +15 -8
  16. package/dist/client-exports.js +9 -3
  17. package/dist/constants/models.d.ts +2 -0
  18. package/dist/constants/models.js +1 -1
  19. package/dist/constants/schema-validation/index.js +1 -1
  20. package/dist/credential-stores/index.d.ts +5 -4
  21. package/dist/credential-stores/index.js +1 -1
  22. package/dist/db/schema.d.ts +2 -2
  23. package/dist/db/schema.js +1 -1
  24. package/dist/db/test-client.d.ts +3 -3
  25. package/dist/db/test-client.js +1 -1
  26. package/dist/index.d.ts +343 -326
  27. package/dist/index.js +167 -116
  28. package/dist/{schema-BhYTubhP.d.ts → schema-DA6PfmoP.d.ts} +83 -7
  29. package/dist/{server-CHLmv-Jb.d.ts → server-BviIeoo5.d.ts} +1 -1
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/{utility-5USfJ5Xd.d.ts → utility-dsfXkYTu.d.ts} +1040 -387
  32. package/dist/utils/schema-conversion.d.ts +11 -1
  33. package/dist/utils/schema-conversion.js +1 -1
  34. package/dist/validation/index.d.ts +2 -2
  35. package/dist/validation/index.js +2 -2
  36. package/drizzle/0004_cuddly_shooting_star.sql +6 -0
  37. package/drizzle/0005_reflective_starfox.sql +9 -0
  38. package/drizzle/meta/{0002_snapshot.json → 0005_snapshot.json} +70 -14
  39. package/drizzle/meta/_journal.json +14 -0
  40. package/package.json +8 -8
  41. package/dist/{chunk-RUTYLJB7.js → chunk-ZIXAWYZI.js} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { user, session, account, organization, member, invitation, verification } from '../chunk-GENLXHZ4.js';
2
- import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
3
2
  import { z } from '@hono/zod-openapi';
3
+ import { createSelectSchema, createInsertSchema } from 'drizzle-zod';
4
4
 
5
5
  var UserSelectSchema = createSelectSchema(user);
6
6
  var UserInsertSchema = createInsertSchema(user);
@@ -4,13 +4,13 @@ import * as zod from 'zod';
4
4
  import * as better_auth from 'better-auth';
5
5
  import { BetterAuthAdvancedOptions } from 'better-auth';
6
6
  import { GoogleOptions } from 'better-auth/social-providers';
7
- import { D as DatabaseClient } from '../client-B3nwdklT.js';
7
+ import { D as DatabaseClient } from '../client-DG_xZdlN.js';
8
8
  import 'drizzle-orm/node-postgres';
9
9
  import 'drizzle-orm/pglite';
10
- import '../schema-BhYTubhP.js';
10
+ import '../schema-DA6PfmoP.js';
11
11
  import 'drizzle-orm';
12
12
  import 'drizzle-orm/pg-core';
13
- import '../utility-5USfJ5Xd.js';
13
+ import '../utility-dsfXkYTu.js';
14
14
  import '@hono/zod-openapi';
15
15
  import 'drizzle-zod';
16
16
  import './auth-schema.js';
@@ -122,6 +122,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth.Auth<{
122
122
  useNumberId?: boolean;
123
123
  generateId?: better_auth.GenerateIdFn | false | "serial" | "uuid";
124
124
  } | undefined;
125
+ trustedProxyHeaders?: boolean | undefined;
125
126
  };
126
127
  trustedOrigins: string[];
127
128
  plugins: [{
package/dist/auth/auth.js CHANGED
@@ -1,5 +1,5 @@
1
- import { generateId } from '../chunk-3HACEHXF.js';
2
- import { env } from '../chunk-RUTYLJB7.js';
1
+ import { generateId } from '../chunk-MGHGIB7U.js';
2
+ import { env } from '../chunk-ZIXAWYZI.js';
3
3
  import { ssoProvider } from '../chunk-GENLXHZ4.js';
4
4
  import { ownerRole, adminRole, memberRole, ac } from '../chunk-JNBVHWXX.js';
5
5
  import { sso } from '@better-auth/sso';
@@ -0,0 +1,4 @@
1
+ // src/credential-stores/default-constants.ts
2
+ var DEFAULT_NANGO_STORE_ID = "nango-default";
3
+
4
+ export { DEFAULT_NANGO_STORE_ID };
@@ -1,5 +1,7 @@
1
1
  // src/constants/models.ts
2
2
  var ANTHROPIC_MODELS = {
3
+ CLAUDE_OPUS_4_5: "anthropic/claude-opus-4-5",
4
+ CLAUDE_OPUS_4_5_20251101: "anthropic/claude-opus-4-5-20251101",
3
5
  CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1",
4
6
  CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805",
5
7
  CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5",
@@ -1,5 +1,5 @@
1
1
  import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
2
- import { loadEnvironmentFiles } from './chunk-RUTYLJB7.js';
2
+ import { loadEnvironmentFiles } from './chunk-ZIXAWYZI.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
 
5
5
  loadEnvironmentFiles();
@@ -2,6 +2,46 @@ import { getLogger } from './chunk-DN4B564Y.js';
2
2
  import { z } from '@hono/zod-openapi';
3
3
 
4
4
  var logger = getLogger("schema-conversion");
5
+ function jsonSchemaToZod(jsonSchema) {
6
+ if (!jsonSchema || typeof jsonSchema !== "object") {
7
+ logger.warn({ jsonSchema }, "Invalid JSON schema provided, using string fallback");
8
+ return z.string();
9
+ }
10
+ const schemaType = jsonSchema.type;
11
+ switch (schemaType) {
12
+ case "object": {
13
+ const properties = jsonSchema.properties;
14
+ if (properties && typeof properties === "object") {
15
+ const shape = {};
16
+ for (const [key, prop] of Object.entries(properties)) {
17
+ shape[key] = jsonSchemaToZod(prop);
18
+ }
19
+ return z.object(shape);
20
+ }
21
+ return z.record(z.string(), z.string());
22
+ }
23
+ case "array": {
24
+ const items = jsonSchema.items;
25
+ const itemSchema = items ? jsonSchemaToZod(items) : z.string();
26
+ return z.array(itemSchema);
27
+ }
28
+ case "string":
29
+ return z.string();
30
+ case "number":
31
+ case "integer":
32
+ return z.number();
33
+ case "boolean":
34
+ return z.boolean();
35
+ case "null":
36
+ return z.null();
37
+ default:
38
+ logger.warn(
39
+ { unsupportedType: schemaType, schema: jsonSchema },
40
+ "Unsupported JSON schema type, using string fallback"
41
+ );
42
+ return z.string();
43
+ }
44
+ }
5
45
  function convertZodToJsonSchema(zodSchema) {
6
46
  try {
7
47
  const jsonSchema = z.toJSONSchema(zodSchema);
@@ -60,4 +100,4 @@ function extractPreviewFields(schema) {
60
100
  return previewFields;
61
101
  }
62
102
 
63
- export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, preview };
103
+ export { convertZodToJsonSchema, convertZodToJsonSchemaWithPreview, extractPreviewFields, isZodSchema, jsonSchemaToZod, preview };
@@ -1,4 +1,4 @@
1
- import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-XHODTX4H.js';
1
+ import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-UK63CULA.js';
2
2
  import { z } from '@hono/zod-openapi';
3
3
 
4
4
  // src/validation/cycleDetection.ts
@@ -1,4 +1,4 @@
1
- import { schema_exports, projects } from './chunk-DEYPSEXR.js';
1
+ import { schema_exports, projects } from './chunk-LH6OJIIM.js';
2
2
  import { organization } from './chunk-GENLXHZ4.js';
3
3
  import { dirname, join } from 'path';
4
4
  import { fileURLToPath } from 'url';
@@ -83,7 +83,7 @@ var subAgentScoped = {
83
83
  };
84
84
  var uiProperties = {
85
85
  name: varchar("name", { length: 256 }).notNull(),
86
- description: text("description").notNull()
86
+ description: text("description")
87
87
  };
88
88
  var timestamps = {
89
89
  createdAt: timestamp("created_at", { mode: "string" }).notNull().defaultNow(),
@@ -180,7 +180,7 @@ var subAgents = pgTable(
180
180
  {
181
181
  ...agentScoped,
182
182
  ...uiProperties,
183
- prompt: text("prompt").notNull(),
183
+ prompt: text("prompt"),
184
184
  conversationHistoryConfig: jsonb("conversation_history_config").$type().default({
185
185
  mode: "full",
186
186
  limit: 50,
@@ -236,14 +236,10 @@ var externalAgents = pgTable(
236
236
  name: "external_agents_project_fk"
237
237
  }).onDelete("cascade"),
238
238
  foreignKey({
239
- columns: [table.tenantId, table.projectId, table.credentialReferenceId],
240
- foreignColumns: [
241
- credentialReferences.tenantId,
242
- credentialReferences.projectId,
243
- credentialReferences.id
244
- ],
239
+ columns: [table.credentialReferenceId],
240
+ foreignColumns: [credentialReferences.id],
245
241
  name: "external_agents_credential_reference_fk"
246
- }).onDelete("cascade")
242
+ }).onDelete("set null")
247
243
  ]
248
244
  );
249
245
  var tasks = pgTable(
@@ -373,6 +369,8 @@ var tools = pgTable(
373
369
  description: text("description"),
374
370
  config: jsonb("config").$type().notNull(),
375
371
  credentialReferenceId: varchar("credential_reference_id", { length: 256 }),
372
+ credentialScope: varchar("credential_scope", { length: 50 }).notNull().default("project"),
373
+ // 'project' | 'user'
376
374
  headers: jsonb("headers").$type(),
377
375
  imageUrl: text("image_url"),
378
376
  capabilities: jsonb("capabilities").$type(),
@@ -385,7 +383,12 @@ var tools = pgTable(
385
383
  columns: [table.tenantId, table.projectId],
386
384
  foreignColumns: [projects.tenantId, projects.id],
387
385
  name: "tools_project_fk"
388
- }).onDelete("cascade")
386
+ }).onDelete("cascade"),
387
+ foreignKey({
388
+ columns: [table.credentialReferenceId],
389
+ foreignColumns: [credentialReferences.id],
390
+ name: "tools_credential_reference_fk"
391
+ }).onDelete("set null")
389
392
  ]
390
393
  );
391
394
  var functionTools = pgTable(
@@ -651,6 +654,13 @@ var credentialReferences = pgTable(
651
654
  type: varchar("type", { length: 256 }).notNull(),
652
655
  credentialStoreId: varchar("credential_store_id", { length: 256 }).notNull(),
653
656
  retrievalParams: jsonb("retrieval_params").$type(),
657
+ // For user-scoped credentials
658
+ toolId: varchar("tool_id", { length: 256 }),
659
+ // Links to the tool this credential is for
660
+ userId: varchar("user_id", { length: 256 }),
661
+ // User who owns this credential (null = project-scoped)
662
+ createdBy: varchar("created_by", { length: 256 }),
663
+ // User who created this credential
654
664
  ...timestamps
655
665
  },
656
666
  (t) => [
@@ -659,7 +669,12 @@ var credentialReferences = pgTable(
659
669
  columns: [t.tenantId, t.projectId],
660
670
  foreignColumns: [projects.tenantId, projects.id],
661
671
  name: "credential_references_project_fk"
662
- }).onDelete("cascade")
672
+ }).onDelete("cascade"),
673
+ // Unique constraint on id alone to support simple FK references
674
+ // (id is globally unique via nanoid generation)
675
+ unique("credential_references_id_unique").on(t.id),
676
+ // One credential per user per tool (for user-scoped credentials)
677
+ unique("credential_references_tool_user_unique").on(t.toolId, t.userId)
663
678
  ]
664
679
  );
665
680
  var tasksRelations = relations(tasks, ({ one, many }) => ({
@@ -1,4 +1,4 @@
1
- import { loadEnvironmentFiles, env } from './chunk-RUTYLJB7.js';
1
+ import { loadEnvironmentFiles, env } from './chunk-ZIXAWYZI.js';
2
2
  import { getLogger } from './chunk-DN4B564Y.js';
3
3
  import { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
4
4
  import { z } from '@hono/zod-openapi';
@@ -685,6 +685,7 @@ var nimDefault = createOpenAICompatible({
685
685
  var ModelFactory = class _ModelFactory {
686
686
  /**
687
687
  * Create a provider instance with custom configuration
688
+ * Returns a provider with at least languageModel method
688
689
  */
689
690
  static createProvider(provider, config) {
690
691
  switch (provider) {
@@ -695,15 +696,7 @@ var ModelFactory = class _ModelFactory {
695
696
  case "google":
696
697
  return createGoogleGenerativeAI(config);
697
698
  case "openrouter":
698
- return {
699
- ...createOpenRouter(config),
700
- textEmbeddingModel: () => {
701
- throw new Error("OpenRouter does not support text embeddings");
702
- },
703
- imageModel: () => {
704
- throw new Error("OpenRouter does not support image generation");
705
- }
706
- };
699
+ return createOpenRouter(config);
707
700
  case "gateway":
708
701
  return createGateway(config);
709
702
  case "nim": {
@@ -1,7 +1,8 @@
1
+ import { DEFAULT_NANGO_STORE_ID } from './chunk-3OPS2LN5.js';
1
2
  import { getLogger } from './chunk-DN4B564Y.js';
2
3
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
3
- import { Nango } from '@nangohq/node';
4
4
  import { z } from '@hono/zod-openapi';
5
+ import { Nango } from '@nangohq/node';
5
6
 
6
7
  // src/credential-stores/CredentialStoreRegistry.ts
7
8
  var CredentialStoreRegistry = class {
@@ -93,7 +94,10 @@ var KeyChainStore = class {
93
94
  return;
94
95
  }
95
96
  try {
96
- this.keytar = (await import('keytar')).default;
97
+ this.keytar = (await import(
98
+ /* webpackIgnore: true */
99
+ 'keytar'
100
+ )).default;
97
101
  this.keytarAvailable = true;
98
102
  this.logger.info(
99
103
  {
@@ -146,7 +150,6 @@ var KeyChainStore = class {
146
150
  }
147
151
  /**
148
152
  * Set a credential in the keychain
149
- * @param metadata - Optional metadata (ignored by keychain store)
150
153
  */
151
154
  async set(key, value, _metadata) {
152
155
  await this.initializationPromise;
@@ -743,7 +746,7 @@ function createDefaultCredentialStores() {
743
746
  stores.push(new InMemoryCredentialStore("memory-default"));
744
747
  if (process.env.NANGO_SECRET_KEY) {
745
748
  stores.push(
746
- createNangoCredentialStore("nango-default", {
749
+ createNangoCredentialStore(DEFAULT_NANGO_STORE_ID, {
747
750
  apiUrl: process.env.NANGO_SERVER_URL || "https://api.nango.dev",
748
751
  secretKey: process.env.NANGO_SECRET_KEY
749
752
  })
@@ -1,4 +1,4 @@
1
- import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-DEYPSEXR.js';
1
+ import { subAgents, subAgentRelations, agents, tasks, taskRelations, conversations, messages, contextCache, dataComponents, subAgentDataComponents, artifactComponents, subAgentArtifactComponents, externalAgents, apiKeys, credentialReferences, tools, functionTools, functions, contextConfigs, subAgentToolRelations, subAgentExternalAgentRelations, subAgentTeamAgentRelations, ledgerArtifacts, projects } from './chunk-LH6OJIIM.js';
2
2
  import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
3
3
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
4
4
  import { z } from '@hono/zod-openapi';
@@ -508,17 +508,7 @@ var ApiKeyApiInsertSchema = ApiKeyInsertSchema.omit({
508
508
  // Not set on creation
509
509
  }).openapi("ApiKeyCreate");
510
510
  var ApiKeyApiUpdateSchema = ApiKeyUpdateSchema.openapi("ApiKeyUpdate");
511
- var CredentialReferenceSelectSchema = z.object({
512
- id: z.string(),
513
- tenantId: z.string(),
514
- projectId: z.string(),
515
- name: z.string(),
516
- type: z.string(),
517
- credentialStoreId: z.string(),
518
- retrievalParams: z.record(z.string(), z.unknown()).nullish(),
519
- createdAt: z.string(),
520
- updatedAt: z.string()
521
- });
511
+ var CredentialReferenceSelectSchema = createSelectSchema(credentialReferences);
522
512
  var CredentialReferenceInsertSchema = createInsertSchema(credentialReferences).extend({
523
513
  id: resourceIdSchema,
524
514
  type: z.string(),
@@ -565,7 +555,7 @@ var CreateCredentialInStoreResponseSchema = z.object({
565
555
  var RelatedAgentInfoSchema = z.object({
566
556
  id: z.string(),
567
557
  name: z.string(),
568
- description: z.string()
558
+ description: z.string().nullable()
569
559
  }).openapi("RelatedAgentInfo");
570
560
  var ComponentAssociationSchema = z.object({
571
561
  subAgentId: z.string(),
@@ -588,6 +578,7 @@ var McpToolSchema = ToolInsertSchema.extend({
588
578
  status: ToolStatusSchema.default("unknown"),
589
579
  version: z.string().optional(),
590
580
  expiresAt: z.string().optional(),
581
+ createdBy: z.string().optional(),
591
582
  relationshipId: z.string().optional()
592
583
  }).openapi("McpTool");
593
584
  var MCPToolConfigSchema = McpToolSchema.omit({
@@ -636,6 +627,8 @@ var FetchConfigSchema = z.object({
636
627
  body: z.record(z.string(), z.unknown()).optional(),
637
628
  transform: z.string().optional(),
638
629
  // JSONPath or JS transform function
630
+ requiredToFetch: z.array(z.string()).optional(),
631
+ // Context variables that are required to run the fetch request. If the given variables cannot be resolved, the fetch request will be skipped.
639
632
  timeout: z.number().min(0).optional().default(CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT).optional()
640
633
  }).openapi("FetchConfig");
641
634
  var FetchDefinitionSchema = z.object({
@@ -793,7 +786,7 @@ var FullAgentAgentInsertSchema = SubAgentApiInsertSchema.extend({
793
786
  dataComponents: z.array(z.string()).optional(),
794
787
  artifactComponents: z.array(z.string()).optional(),
795
788
  canTransferTo: z.array(z.string()).optional(),
796
- prompt: z.string().trim().nonempty(),
789
+ prompt: z.string().trim().optional(),
797
790
  canDelegateTo: z.array(
798
791
  z.union([
799
792
  z.string(),
@@ -1,6 +1,6 @@
1
1
  import { NodePgDatabase } from 'drizzle-orm/node-postgres';
2
2
  import { PgliteDatabase } from 'drizzle-orm/pglite';
3
- import { s as schema } from './schema-BhYTubhP.js';
3
+ import { s as schema } from './schema-DA6PfmoP.js';
4
4
 
5
5
  type DatabaseClient = NodePgDatabase<typeof schema> | PgliteDatabase<typeof schema>;
6
6
  interface DatabaseConfig {
@@ -1,12 +1,14 @@
1
1
  export { i as ACTIVITY_NAMES, g as ACTIVITY_STATUS, f as ACTIVITY_TYPES, h as AGENT_IDS, p as AGGREGATE_OPERATORS, A as AI_OPERATIONS, j as AI_TOOL_TYPES, o as DATA_SOURCES, k as DATA_TYPES, D as DELEGATION_FROM_SUB_AGENT_ID, b as DELEGATION_ID, a as DELEGATION_TO_SUB_AGENT_ID, F as FIELD_TYPES, O as OPERATORS, m as ORDER_DIRECTIONS, P as PANEL_TYPES, q as QUERY_DEFAULTS, l as QUERY_EXPRESSIONS, Q as QUERY_FIELD_CONFIGS, n as QUERY_TYPES, R as REDUCE_OPERATIONS, e as SPAN_KEYS, S as SPAN_NAMES, T as TRANSFER_FROM_SUB_AGENT_ID, c as TRANSFER_TO_SUB_AGENT_ID, U as UNKNOWN_VALUE, d as detectAuthenticationRequired } from './auth-detection-7G0Dxt55.js';
2
2
  import { z } from '@hono/zod-openapi';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-5USfJ5Xd.js';
4
- export { e as AgentStopWhen, b as AgentStopWhenSchema, h as CredentialStoreType, j as FunctionApiSelectSchema, k as FunctionApiUpdateSchema, i as MCPTransportType, g as ModelSettings, M as ModelSettingsSchema, d as StopWhen, S as StopWhenSchema, f as SubAgentStopWhen, c as SubAgentStopWhenSchema } from './utility-5USfJ5Xd.js';
3
+ import { a as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, g as FullAgentAgentInsertSchema } from './utility-dsfXkYTu.js';
4
+ export { k as AgentStopWhen, h as AgentStopWhenSchema, f as CredentialStoreType, p as FunctionApiSelectSchema, q as FunctionApiUpdateSchema, o as MCPTransportType, n as ModelSettings, m as ModelSettingsSchema, j as StopWhen, S as StopWhenSchema, l as SubAgentStopWhen, i as SubAgentStopWhenSchema } from './utility-dsfXkYTu.js';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
8
8
  import 'drizzle-orm/pg-core';
9
9
 
10
+ declare const DEFAULT_NANGO_STORE_ID = "nango-default";
11
+
10
12
  declare const TenantParamsSchema: z.ZodObject<{
11
13
  tenantId: z.ZodString;
12
14
  }, z.core.$strip>;
@@ -121,6 +123,11 @@ declare const CredentialReferenceApiInsertSchema: z.ZodObject<{
121
123
  }>;
122
124
  credentialStoreId: z.ZodString;
123
125
  retrievalParams: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
126
+ createdAt: z.ZodOptional<z.ZodString>;
127
+ updatedAt: z.ZodOptional<z.ZodString>;
128
+ userId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ toolId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
+ createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
131
  }, z.core.$strip>;
125
132
  declare const DataComponentApiInsertSchema: z.ZodObject<{
126
133
  id: z.ZodString;
@@ -133,9 +140,9 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
133
140
  }, z.core.$strip>>>;
134
141
  }, z.core.$strip>;
135
142
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
136
- name: z.ZodString;
137
143
  id: z.ZodString;
138
- description: z.ZodString;
144
+ name: z.ZodString;
145
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
146
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
140
147
  }, {
141
148
  out: {};
@@ -169,11 +176,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
169
176
  description: z.ZodOptional<z.ZodString>;
170
177
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
171
178
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
172
- name: z.ZodString;
173
179
  id: z.ZodString;
180
+ name: z.ZodString;
181
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
174
182
  createdAt: z.ZodOptional<z.ZodString>;
175
183
  updatedAt: z.ZodOptional<z.ZodString>;
176
- description: z.ZodString;
177
184
  models: z.ZodOptional<z.ZodObject<{
178
185
  base: z.ZodOptional<z.ZodObject<{
179
186
  model: z.ZodOptional<z.ZodString>;
@@ -211,7 +218,7 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
211
218
  dataComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
212
219
  artifactComponents: z.ZodOptional<z.ZodArray<z.ZodString>>;
213
220
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
214
- prompt: z.ZodString;
221
+ prompt: z.ZodOptional<z.ZodString>;
215
222
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
216
223
  externalAgentId: z.ZodString;
217
224
  subAgentExternalAgentRelationId: z.ZodOptional<z.ZodString>;
@@ -288,4 +295,4 @@ declare function generateIdFromName(name: string): string;
288
295
  type ToolInsert = ToolApiInsert;
289
296
  type AgentAgentInsert = AgentAgentApiInsert;
290
297
 
291
- export { type AgentAgentApiInsert, AgentAgentApiInsertSchema, type AgentAgentInsert, type AgentApiInsert, AgentApiInsertSchema, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullAgentDefinition, FullAgentDefinitionSchema, type FunctionApiInsert, FunctionApiInsertSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
298
+ export { type AgentAgentApiInsert, AgentAgentApiInsertSchema, type AgentAgentInsert, type AgentApiInsert, AgentApiInsertSchema, type ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, type ApiKeyApiSelect, ApiKeyApiSelectSchema, type ApiKeyApiUpdateResponse, type ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, type ContextConfigApiInsert, ContextConfigApiInsertSchema, type CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, DEFAULT_NANGO_STORE_ID, type DataComponentApiInsert, DataComponentApiInsertSchema, type ErrorResponse, ErrorResponseSchema, type ExternalAgentApiInsert, ExternalAgentApiInsertSchema, type ExternalAgentDefinition, type FullAgentDefinition, FullAgentDefinitionSchema, type FunctionApiInsert, FunctionApiInsertSchema, IdParamsSchema, type InternalAgentDefinition, ListResponseSchema, MAX_ID_LENGTH, MIN_ID_LENGTH, PaginationSchema, SingleResponseSchema, type TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, type ToolApiInsert, ToolApiInsertSchema, type ToolInsert, URL_SAFE_ID_PATTERN, generateIdFromName, resourceIdSchema };
@@ -1,8 +1,9 @@
1
1
  export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, DATA_SOURCES, DATA_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from './chunk-MQMMFK2K.js';
2
- import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-XHODTX4H.js';
3
- export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-XHODTX4H.js';
2
+ import { ModelSettingsSchema, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-UK63CULA.js';
3
+ export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-UK63CULA.js';
4
4
  import { schemaValidationDefaults } from './chunk-Z64UK4CA.js';
5
5
  export { detectAuthenticationRequired } from './chunk-4JZT4QEE.js';
6
+ export { DEFAULT_NANGO_STORE_ID } from './chunk-3OPS2LN5.js';
6
7
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
7
8
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
8
9
  import { z } from '@hono/zod-openapi';
@@ -93,7 +94,12 @@ var CredentialReferenceApiInsertSchema = z.object({
93
94
  name: z.string(),
94
95
  type: z.enum(CredentialStoreType),
95
96
  credentialStoreId: z.string(),
96
- retrievalParams: z.record(z.string(), z.unknown()).nullish()
97
+ retrievalParams: z.record(z.string(), z.unknown()).nullish(),
98
+ createdAt: z.string().optional(),
99
+ updatedAt: z.string().optional(),
100
+ userId: z.string().nullish(),
101
+ toolId: z.string().nullish(),
102
+ createdBy: z.string().nullish()
97
103
  });
98
104
  var DataComponentApiInsertSchema = z.object({
99
105
  id: z.string(),
@@ -2,6 +2,8 @@
2
2
  * Model name constants used throughout the Inkeep Agents SDK
3
3
  */
4
4
  declare const ANTHROPIC_MODELS: {
5
+ readonly CLAUDE_OPUS_4_5: "anthropic/claude-opus-4-5";
6
+ readonly CLAUDE_OPUS_4_5_20251101: "anthropic/claude-opus-4-5-20251101";
5
7
  readonly CLAUDE_OPUS_4_1: "anthropic/claude-opus-4-1";
6
8
  readonly CLAUDE_OPUS_4_1_20250805: "anthropic/claude-opus-4-1-20250805";
7
9
  readonly CLAUDE_SONNET_4_5: "anthropic/claude-sonnet-4-5";
@@ -1 +1 @@
1
- export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-7CLFCY6J.js';
1
+ export { ANTHROPIC_MODELS, GOOGLE_MODELS, OPENAI_MODELS } from '../chunk-7IQFIW44.js';
@@ -1,2 +1,2 @@
1
- export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from '../../chunk-BJLC7EI4.js';
1
+ export { AGENT_EXECUTION_TRANSFER_COUNT_DEFAULT, AGENT_EXECUTION_TRANSFER_COUNT_MAX, AGENT_EXECUTION_TRANSFER_COUNT_MIN, CONTEXT_FETCHER_HTTP_TIMEOUT_MS_DEFAULT, STATUS_UPDATE_MAX_INTERVAL_SECONDS, STATUS_UPDATE_MAX_NUM_EVENTS, SUB_AGENT_TURN_GENERATION_STEPS_DEFAULT, SUB_AGENT_TURN_GENERATION_STEPS_MAX, SUB_AGENT_TURN_GENERATION_STEPS_MIN, VALIDATION_AGENT_PROMPT_MAX_CHARS, VALIDATION_SUB_AGENT_PROMPT_MAX_CHARS } from '../../chunk-AJCP2QYU.js';
2
2
  export { schemaValidationDefaults } from '../../chunk-Z64UK4CA.js';
@@ -1,6 +1,6 @@
1
- import { C as CredentialStore } from '../server-CHLmv-Jb.js';
1
+ import { C as CredentialStore } from '../server-BviIeoo5.js';
2
2
  import 'hono';
3
- import '../utility-5USfJ5Xd.js';
3
+ import '../utility-dsfXkYTu.js';
4
4
  import '@hono/zod-openapi';
5
5
  import 'drizzle-zod';
6
6
  import 'drizzle-orm/pg-core';
@@ -93,9 +93,10 @@ declare class KeyChainStore implements CredentialStore {
93
93
  get(key: string): Promise<string | null>;
94
94
  /**
95
95
  * Set a credential in the keychain
96
- * @param metadata - Optional metadata (ignored by keychain store)
97
96
  */
98
- set(key: string, value: string, _metadata?: Record<string, string>): Promise<void>;
97
+ set(key: string, value: string,
98
+ /** Optional metadata (ignored by keychain store) */
99
+ _metadata?: Record<string, string>): Promise<void>;
99
100
  /**
100
101
  * Check if a credential exists in the keychain
101
102
  */
@@ -1 +1 @@
1
- export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from '../chunk-YSFXXC6K.js';
1
+ export { CredentialStoreRegistry, InMemoryCredentialStore, KeyChainStore, NangoCredentialStore, createDefaultCredentialStores, createKeyChainStore, createNangoCredentialStore } from '../chunk-S4XQEAAF.js';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/pg-core';
3
- import '../utility-5USfJ5Xd.js';
3
+ import '../utility-dsfXkYTu.js';
4
4
  export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../auth/auth-schema.js';
5
- export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-BhYTubhP.js';
5
+ export { G as agentRelations, J as agentToolRelationsRelations, a as agents, y as apiKeys, I as apiKeysRelations, j as artifactComponents, O as artifactComponentsRelations, b as contextCache, E as contextCacheRelations, c as contextConfigs, D as contextConfigsRelations, v as conversations, M as conversationsRelations, z as credentialReferences, K as credentialReferencesRelations, h as dataComponents, Q as dataComponentsRelations, f as externalAgents, H as externalAgentsRelations, m as functionTools, V as functionToolsRelations, n as functions, T as functionsRelations, x as ledgerArtifacts, S as ledgerArtifactsRelations, w as messages, N as messagesRelations, p as projects, B as projectsRelations, k as subAgentArtifactComponents, P as subAgentArtifactComponentsRelations, i as subAgentDataComponents, R as subAgentDataComponentsRelations, q as subAgentExternalAgentRelations, X as subAgentExternalAgentRelationsRelations, u as subAgentFunctionToolRelations, W as subAgentFunctionToolRelationsRelations, e as subAgentRelations, U as subAgentRelationsRelations, r as subAgentTeamAgentRelations, Y as subAgentTeamAgentRelationsRelations, o as subAgentToolRelations, d as subAgents, F as subAgentsRelations, g as taskRelations, C as taskRelationsRelations, t as tasks, A as tasksRelations, l as tools, L as toolsRelations } from '../schema-DA6PfmoP.js';
6
6
  import '@hono/zod-openapi';
7
7
  import 'drizzle-zod';
package/dist/db/schema.js CHANGED
@@ -1,2 +1,2 @@
1
- export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-DEYPSEXR.js';
1
+ export { agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, ledgerArtifacts, ledgerArtifactsRelations, messages, messagesRelations, projects, projectsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations } from '../chunk-LH6OJIIM.js';
2
2
  export { account, invitation, member, organization, session, ssoProvider, user, verification } from '../chunk-GENLXHZ4.js';
@@ -1,10 +1,10 @@
1
- import { D as DatabaseClient } from '../client-B3nwdklT.js';
1
+ import { D as DatabaseClient } from '../client-DG_xZdlN.js';
2
2
  import 'drizzle-orm/node-postgres';
3
3
  import 'drizzle-orm/pglite';
4
- import '../schema-BhYTubhP.js';
4
+ import '../schema-DA6PfmoP.js';
5
5
  import 'drizzle-orm';
6
6
  import 'drizzle-orm/pg-core';
7
- import '../utility-5USfJ5Xd.js';
7
+ import '../utility-dsfXkYTu.js';
8
8
  import '@hono/zod-openapi';
9
9
  import 'drizzle-zod';
10
10
  import '../auth/auth-schema.js';
@@ -1 +1 @@
1
- export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from '../chunk-ZSYMSL55.js';
1
+ export { cleanupTestDatabase, closeTestDatabase, createTestDatabaseClient, createTestOrganization, createTestProject } from '../chunk-DW4DNYUS.js';