@inkeep/agents-core 0.0.0-dev-20251125083010 → 0.0.0-dev-20251125090054

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 (37) hide show
  1. package/dist/auth/auth-schema.d.ts +47 -1
  2. package/dist/auth/auth-schema.js +1 -1
  3. package/dist/auth/auth-validation-schemas.d.ts +34 -0
  4. package/dist/auth/auth-validation-schemas.js +1 -1
  5. package/dist/auth/auth.d.ts +22 -22
  6. package/dist/auth/auth.js +9 -2
  7. package/dist/auth/permissions.d.ts +9 -9
  8. package/dist/auth/permissions.js +1 -1
  9. package/dist/{chunk-W3QDM7WH.js → chunk-4FHCJ65J.js} +1 -1
  10. package/dist/{chunk-PVRIMF6N.js → chunk-DEYPSEXR.js} +1 -1
  11. package/dist/chunk-GENLXHZ4.js +159 -0
  12. package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
  13. package/dist/{chunk-K6GMXJPW.js → chunk-XHODTX4H.js} +1 -1
  14. package/dist/{chunk-I6IF7ZTL.js → chunk-ZSYMSL55.js} +2 -2
  15. package/dist/{client-CD-dO-so.d.ts → client-DsyOtfXi.d.ts} +1 -1
  16. package/dist/client-exports.d.ts +2 -2
  17. package/dist/client-exports.js +2 -2
  18. package/dist/credential-stores/index.d.ts +2 -2
  19. package/dist/db/schema.d.ts +2 -2
  20. package/dist/db/schema.js +2 -2
  21. package/dist/db/test-client.d.ts +3 -3
  22. package/dist/db/test-client.js +1 -1
  23. package/dist/index.d.ts +9 -9
  24. package/dist/index.js +9 -9
  25. package/dist/{schema-BGPkUUmn.d.ts → schema-el4dcgfD.d.ts} +1 -1
  26. package/dist/{server-DuzlQdBX.d.ts → server-DKDjEFRy.d.ts} +1 -1
  27. package/dist/types/index.d.ts +2 -2
  28. package/dist/validation/index.d.ts +2 -2
  29. package/dist/validation/index.js +2 -2
  30. package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
  31. package/drizzle/0003_sweet_human_robot.sql +6 -0
  32. package/drizzle/meta/0002_snapshot.json +3637 -0
  33. package/drizzle/meta/0003_snapshot.json +3643 -0
  34. package/drizzle/meta/_journal.json +14 -0
  35. package/package.json +1 -1
  36. package/dist/chunk-NFTJ5JBY.js +0 -82
  37. package/dist/{utility-Cw2pFmu3.d.ts → utility-Cnh0tsog.d.ts} +11 -11
@@ -15,6 +15,20 @@
15
15
  "when": 1764024513126,
16
16
  "tag": "0001_calm_sheva_callister",
17
17
  "breakpoints": true
18
+ },
19
+ {
20
+ "idx": 2,
21
+ "version": "7",
22
+ "when": 1764045769142,
23
+ "tag": "0002_puzzling_goblin_queen",
24
+ "breakpoints": true
25
+ },
26
+ {
27
+ "idx": 3,
28
+ "version": "7",
29
+ "when": 1764060547473,
30
+ "tag": "0003_sweet_human_robot",
31
+ "breakpoints": true
18
32
  }
19
33
  ]
20
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-core",
3
- "version": "0.0.0-dev-20251125083010",
3
+ "version": "0.0.0-dev-20251125090054",
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,82 +0,0 @@
1
- import { pgTable, timestamp, text, boolean } from 'drizzle-orm/pg-core';
2
-
3
- // src/auth/auth-schema.ts
4
- var user = pgTable("user", {
5
- id: text("id").primaryKey(),
6
- name: text("name").notNull(),
7
- email: text("email").notNull().unique(),
8
- emailVerified: boolean("email_verified").default(false).notNull(),
9
- image: text("image"),
10
- createdAt: timestamp("created_at").defaultNow().notNull(),
11
- updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
12
- });
13
- var session = pgTable("session", {
14
- id: text("id").primaryKey(),
15
- expiresAt: timestamp("expires_at").notNull(),
16
- token: text("token").notNull().unique(),
17
- createdAt: timestamp("created_at").defaultNow().notNull(),
18
- updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
19
- ipAddress: text("ip_address"),
20
- userAgent: text("user_agent"),
21
- userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
22
- activeOrganizationId: text("active_organization_id")
23
- });
24
- var account = pgTable("account", {
25
- id: text("id").primaryKey(),
26
- accountId: text("account_id").notNull(),
27
- providerId: text("provider_id").notNull(),
28
- userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
29
- accessToken: text("access_token"),
30
- refreshToken: text("refresh_token"),
31
- idToken: text("id_token"),
32
- accessTokenExpiresAt: timestamp("access_token_expires_at"),
33
- refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
34
- scope: text("scope"),
35
- password: text("password"),
36
- createdAt: timestamp("created_at").defaultNow().notNull(),
37
- updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
38
- });
39
- var verification = pgTable("verification", {
40
- id: text("id").primaryKey(),
41
- identifier: text("identifier").notNull(),
42
- value: text("value").notNull(),
43
- expiresAt: timestamp("expires_at").notNull(),
44
- createdAt: timestamp("created_at").defaultNow().notNull(),
45
- updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
46
- });
47
- var ssoProvider = pgTable("sso_provider", {
48
- id: text("id").primaryKey(),
49
- issuer: text("issuer").notNull(),
50
- oidcConfig: text("oidc_config"),
51
- samlConfig: text("saml_config"),
52
- userId: text("user_id").references(() => user.id, { onDelete: "cascade" }),
53
- providerId: text("provider_id").notNull().unique(),
54
- organizationId: text("organization_id"),
55
- domain: text("domain").notNull()
56
- });
57
- var organization = pgTable("organization", {
58
- id: text("id").primaryKey(),
59
- name: text("name").notNull(),
60
- slug: text("slug").notNull().unique(),
61
- logo: text("logo"),
62
- createdAt: timestamp("created_at").notNull(),
63
- metadata: text("metadata")
64
- });
65
- var member = pgTable("member", {
66
- id: text("id").primaryKey(),
67
- organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
68
- userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
69
- role: text("role").default("member").notNull(),
70
- createdAt: timestamp("created_at").notNull()
71
- });
72
- var invitation = pgTable("invitation", {
73
- id: text("id").primaryKey(),
74
- organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
75
- email: text("email").notNull(),
76
- role: text("role"),
77
- status: text("status").default("pending").notNull(),
78
- expiresAt: timestamp("expires_at").notNull(),
79
- inviterId: text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" })
80
- });
81
-
82
- export { account, invitation, member, organization, session, ssoProvider, user, verification };
@@ -9675,6 +9675,7 @@ declare const ToolApiSelectSchema: z.ZodObject<{
9675
9675
  id: z.ZodString;
9676
9676
  createdAt: z.ZodString;
9677
9677
  updatedAt: z.ZodString;
9678
+ description: z.ZodNullable<z.ZodString>;
9678
9679
  headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
9679
9680
  config: z.ZodType<{
9680
9681
  type: "mcp";
@@ -9689,7 +9690,6 @@ declare const ToolApiSelectSchema: z.ZodObject<{
9689
9690
  type: "mcp";
9690
9691
  mcp: ToolMcpConfig;
9691
9692
  }>>;
9692
- description: z.ZodNullable<z.ZodString>;
9693
9693
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
9694
9694
  credentialReferenceId: z.ZodNullable<z.ZodString>;
9695
9695
  imageUrl: z.ZodNullable<z.ZodString>;
@@ -9700,6 +9700,7 @@ declare const ToolApiInsertSchema: z.ZodObject<{
9700
9700
  id: z.ZodString;
9701
9701
  createdAt: z.ZodOptional<z.ZodString>;
9702
9702
  updatedAt: z.ZodOptional<z.ZodString>;
9703
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9703
9704
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
9704
9705
  config: z.ZodObject<{
9705
9706
  type: z.ZodLiteral<"mcp">;
@@ -9720,7 +9721,6 @@ declare const ToolApiInsertSchema: z.ZodObject<{
9720
9721
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
9721
9722
  }, z.core.$strip>;
9722
9723
  }, z.core.$strip>;
9723
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9724
9724
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
9725
9725
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9726
9726
  imageUrl: z.ZodOptional<z.ZodString>;
@@ -9731,6 +9731,7 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
9731
9731
  id: z.ZodOptional<z.ZodOptional<z.ZodString>>;
9732
9732
  createdAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
9733
9733
  updatedAt: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
9734
+ description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9734
9735
  headers: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>>>;
9735
9736
  config: z.ZodOptional<z.ZodOptional<z.ZodObject<{
9736
9737
  type: z.ZodLiteral<"mcp">;
@@ -9751,7 +9752,6 @@ declare const ToolApiUpdateSchema: z.ZodObject<{
9751
9752
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
9752
9753
  }, z.core.$strip>;
9753
9754
  }, z.core.$strip>>>;
9754
- description: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9755
9755
  capabilities: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>>>;
9756
9756
  credentialReferenceId: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>>;
9757
9757
  imageUrl: z.ZodOptional<z.ZodOptional<z.ZodOptional<z.ZodString>>>;
@@ -13445,6 +13445,7 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
13445
13445
  id: z.ZodString;
13446
13446
  createdAt: z.ZodOptional<z.ZodString>;
13447
13447
  updatedAt: z.ZodOptional<z.ZodString>;
13448
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13448
13449
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
13449
13450
  config: z.ZodObject<{
13450
13451
  type: z.ZodLiteral<"mcp">;
@@ -13465,7 +13466,6 @@ declare const AgentWithinContextOfProjectSchema: z.ZodObject<{
13465
13466
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
13466
13467
  }, z.core.$strip>;
13467
13468
  }, z.core.$strip>;
13468
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13469
13469
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
13470
13470
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13471
13471
  imageUrl: z.ZodOptional<z.ZodString>;
@@ -13819,6 +13819,7 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
13819
13819
  id: z.ZodString;
13820
13820
  createdAt: z.ZodOptional<z.ZodString>;
13821
13821
  updatedAt: z.ZodOptional<z.ZodString>;
13822
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13822
13823
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
13823
13824
  config: z.ZodObject<{
13824
13825
  type: z.ZodLiteral<"mcp">;
@@ -13839,7 +13840,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
13839
13840
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
13840
13841
  }, z.core.$strip>;
13841
13842
  }, z.core.$strip>;
13842
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13843
13843
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
13844
13844
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13845
13845
  imageUrl: z.ZodOptional<z.ZodString>;
@@ -13919,6 +13919,7 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
13919
13919
  id: z.ZodString;
13920
13920
  createdAt: z.ZodOptional<z.ZodString>;
13921
13921
  updatedAt: z.ZodOptional<z.ZodString>;
13922
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13922
13923
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
13923
13924
  config: z.ZodObject<{
13924
13925
  type: z.ZodLiteral<"mcp">;
@@ -13939,7 +13940,6 @@ declare const FullProjectDefinitionSchema: z.ZodObject<{
13939
13940
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
13940
13941
  }, z.core.$strip>;
13941
13942
  }, z.core.$strip>;
13942
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13943
13943
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
13944
13944
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13945
13945
  imageUrl: z.ZodOptional<z.ZodString>;
@@ -14274,6 +14274,7 @@ declare const ToolResponse: z.ZodObject<{
14274
14274
  id: z.ZodString;
14275
14275
  createdAt: z.ZodString;
14276
14276
  updatedAt: z.ZodString;
14277
+ description: z.ZodNullable<z.ZodString>;
14277
14278
  headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
14278
14279
  config: z.ZodType<{
14279
14280
  type: "mcp";
@@ -14288,7 +14289,6 @@ declare const ToolResponse: z.ZodObject<{
14288
14289
  type: "mcp";
14289
14290
  mcp: ToolMcpConfig;
14290
14291
  }>>;
14291
- description: z.ZodNullable<z.ZodString>;
14292
14292
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
14293
14293
  credentialReferenceId: z.ZodNullable<z.ZodString>;
14294
14294
  imageUrl: z.ZodNullable<z.ZodString>;
@@ -15218,6 +15218,7 @@ declare const ToolListResponse: z.ZodObject<{
15218
15218
  id: z.ZodString;
15219
15219
  createdAt: z.ZodString;
15220
15220
  updatedAt: z.ZodString;
15221
+ description: z.ZodNullable<z.ZodString>;
15221
15222
  headers: z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>;
15222
15223
  config: z.ZodType<{
15223
15224
  type: "mcp";
@@ -15232,7 +15233,6 @@ declare const ToolListResponse: z.ZodObject<{
15232
15233
  type: "mcp";
15233
15234
  mcp: ToolMcpConfig;
15234
15235
  }>>;
15235
- description: z.ZodNullable<z.ZodString>;
15236
15236
  capabilities: z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>;
15237
15237
  credentialReferenceId: z.ZodNullable<z.ZodString>;
15238
15238
  imageUrl: z.ZodNullable<z.ZodString>;
@@ -16116,6 +16116,7 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
16116
16116
  id: z.ZodString;
16117
16117
  createdAt: z.ZodOptional<z.ZodString>;
16118
16118
  updatedAt: z.ZodOptional<z.ZodString>;
16119
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16119
16120
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
16120
16121
  config: z.ZodObject<{
16121
16122
  type: z.ZodLiteral<"mcp">;
@@ -16136,7 +16137,6 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
16136
16137
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
16137
16138
  }, z.core.$strip>;
16138
16139
  }, z.core.$strip>;
16139
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16140
16140
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
16141
16141
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16142
16142
  imageUrl: z.ZodOptional<z.ZodString>;
@@ -16216,6 +16216,7 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
16216
16216
  id: z.ZodString;
16217
16217
  createdAt: z.ZodOptional<z.ZodString>;
16218
16218
  updatedAt: z.ZodOptional<z.ZodString>;
16219
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16219
16220
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
16220
16221
  config: z.ZodObject<{
16221
16222
  type: z.ZodLiteral<"mcp">;
@@ -16236,7 +16237,6 @@ declare const FullProjectDefinitionResponse: z.ZodObject<{
16236
16237
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
16237
16238
  }, z.core.$strip>;
16238
16239
  }, z.core.$strip>;
16239
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16240
16240
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
16241
16241
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16242
16242
  imageUrl: z.ZodOptional<z.ZodString>;
@@ -16400,6 +16400,7 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
16400
16400
  id: z.ZodString;
16401
16401
  createdAt: z.ZodOptional<z.ZodString>;
16402
16402
  updatedAt: z.ZodOptional<z.ZodString>;
16403
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16403
16404
  headers: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, string>, Record<string, string>, z.core.$ZodTypeInternals<Record<string, string>, Record<string, string>>>>>;
16404
16405
  config: z.ZodObject<{
16405
16406
  type: z.ZodLiteral<"mcp">;
@@ -16420,7 +16421,6 @@ declare const AgentWithinContextOfProjectResponse: z.ZodObject<{
16420
16421
  activeTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
16421
16422
  }, z.core.$strip>;
16422
16423
  }, z.core.$strip>;
16423
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16424
16424
  capabilities: z.ZodOptional<z.ZodNullable<z.ZodType<ToolServerCapabilities, ToolServerCapabilities, z.core.$ZodTypeInternals<ToolServerCapabilities, ToolServerCapabilities>>>>;
16425
16425
  credentialReferenceId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16426
16426
  imageUrl: z.ZodOptional<z.ZodString>;