@inkeep/agents-core 0.37.1 → 0.37.2

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 (46) 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 +35 -1
  4. package/dist/auth/auth-validation-schemas.js +2 -2
  5. package/dist/auth/auth.d.ts +23 -23
  6. package/dist/auth/auth.js +11 -4
  7. package/dist/auth/permissions.d.ts +9 -9
  8. package/dist/auth/permissions.js +1 -1
  9. package/dist/{chunk-ROXPFQAM.js → chunk-3HACEHXF.js} +23 -22
  10. package/dist/{chunk-W3QDM7WH.js → chunk-5QZSNATS.js} +2 -2
  11. package/dist/{chunk-7GZHUB4J.js → chunk-6CYQZ5KX.js} +1 -1
  12. package/dist/{chunk-ZEZCCHV7.js → chunk-BJLC7EI4.js} +2 -2
  13. package/dist/{chunk-PVRIMF6N.js → chunk-DEYPSEXR.js} +1 -1
  14. package/dist/chunk-GENLXHZ4.js +159 -0
  15. package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
  16. package/dist/{chunk-LL6F3EAR.js → chunk-RUTYLJB7.js} +1 -1
  17. package/dist/{chunk-K6GMXJPW.js → chunk-XHODTX4H.js} +1 -1
  18. package/dist/{chunk-FOK3JSQN.js → chunk-YSFXXC6K.js} +1 -1
  19. package/dist/{chunk-I6IF7ZTL.js → chunk-ZSYMSL55.js} +2 -2
  20. package/dist/{client-B_3j-V4-.d.ts → client-B3nwdklT.d.ts} +1 -1
  21. package/dist/client-exports.d.ts +6 -7
  22. package/dist/client-exports.js +3 -3
  23. package/dist/constants/schema-validation/index.js +1 -1
  24. package/dist/credential-stores/index.d.ts +3 -4
  25. package/dist/credential-stores/index.js +1 -1
  26. package/dist/db/schema.d.ts +3 -4
  27. package/dist/db/schema.js +2 -2
  28. package/dist/db/test-client.d.ts +4 -5
  29. package/dist/db/test-client.js +1 -1
  30. package/dist/index.d.ts +560 -560
  31. package/dist/index.js +35 -25
  32. package/dist/{schema-DKbG39on.d.ts → schema-BhYTubhP.d.ts} +1 -1
  33. package/dist/{server-BXoUiBMg.d.ts → server-CHLmv-Jb.d.ts} +1 -1
  34. package/dist/types/index.d.ts +3 -4
  35. package/dist/{utility-Lo5NoRHK.d.ts → utility-5USfJ5Xd.d.ts} +452 -453
  36. package/dist/utils/schema-conversion.d.ts +1 -1
  37. package/dist/utils/schema-conversion.js +1 -1
  38. package/dist/validation/index.d.ts +131 -132
  39. package/dist/validation/index.js +2 -2
  40. package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
  41. package/drizzle/0003_sweet_human_robot.sql +8 -0
  42. package/drizzle/meta/0002_snapshot.json +3637 -0
  43. package/drizzle/meta/0003_snapshot.json +3643 -0
  44. package/drizzle/meta/_journal.json +14 -0
  45. package/package.json +2 -4
  46. package/dist/chunk-NFTJ5JBY.js +0 -82
@@ -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.37.1",
3
+ "version": "0.37.2",
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",
@@ -111,9 +111,7 @@
111
111
  "pg": "^8.16.3",
112
112
  "pino": "^9.11.0",
113
113
  "pino-pretty": "^13.1.1",
114
- "ts-pattern": "^5.7.1",
115
- "@hono/zod-openapi": "^1.1.5",
116
- "zod": "^4.1.11"
114
+ "ts-pattern": "^5.7.1"
117
115
  },
118
116
  "peerDependencies": {
119
117
  "@hono/zod-openapi": "^1.1.5",
@@ -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 };