@inkeep/agents-core 0.0.0-dev-20251125083010 → 0.0.0-dev-20251125085423
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 +47 -1
- package/dist/auth/auth-schema.js +1 -1
- package/dist/auth/auth-validation-schemas.d.ts +34 -0
- package/dist/auth/auth-validation-schemas.js +1 -1
- package/dist/auth/auth.d.ts +22 -22
- package/dist/auth/auth.js +9 -2
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/permissions.js +1 -1
- package/dist/{chunk-W3QDM7WH.js → chunk-4FHCJ65J.js} +1 -1
- package/dist/{chunk-PVRIMF6N.js → chunk-DEYPSEXR.js} +1 -1
- package/dist/chunk-GENLXHZ4.js +159 -0
- package/dist/{chunk-VMSYBWFH.js → chunk-JNBVHWXX.js} +7 -4
- package/dist/{chunk-K6GMXJPW.js → chunk-XHODTX4H.js} +1 -1
- package/dist/{chunk-I6IF7ZTL.js → chunk-ZSYMSL55.js} +2 -2
- package/dist/{client-CD-dO-so.d.ts → client-B_3j-V4-.d.ts} +1 -1
- package/dist/client-exports.d.ts +5 -5
- package/dist/client-exports.js +2 -2
- package/dist/credential-stores/index.d.ts +2 -2
- package/dist/db/schema.d.ts +2 -2
- package/dist/db/schema.js +2 -2
- package/dist/db/test-client.d.ts +3 -3
- package/dist/db/test-client.js +1 -1
- package/dist/index.d.ts +253 -253
- package/dist/index.js +9 -9
- package/dist/{schema-BGPkUUmn.d.ts → schema-DKbG39on.d.ts} +1 -1
- package/dist/{server-DuzlQdBX.d.ts → server-BXoUiBMg.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/{utility-Cw2pFmu3.d.ts → utility-Lo5NoRHK.d.ts} +300 -300
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/drizzle/0002_puzzling_goblin_queen.sql +8 -0
- package/drizzle/meta/0002_snapshot.json +3637 -0
- package/drizzle/meta/_journal.json +7 -0
- package/package.json +1 -1
- package/dist/chunk-NFTJ5JBY.js +0 -82
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20251125085423",
|
|
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",
|
package/dist/chunk-NFTJ5JBY.js
DELETED
|
@@ -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 };
|