@inkeep/agents-core 0.45.3 → 0.46.1
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 +17 -0
- package/dist/auth/auth-schema.js +4 -3
- package/dist/auth/auth-validation-schemas.d.ts +180 -146
- package/dist/auth/auth.d.ts +56 -22
- package/dist/auth/auth.js +15 -1
- package/dist/auth/authz/config.d.ts +5 -1
- package/dist/auth/authz/config.js +8 -3
- package/dist/auth/authz/permissions.js +1 -0
- package/dist/auth/init.js +13 -3
- package/dist/auth/password-reset-link-store.d.ts +26 -0
- package/dist/auth/password-reset-link-store.js +40 -0
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/auth/spicedb-schema.d.ts +9 -0
- package/dist/auth/spicedb-schema.js +24 -0
- package/dist/client-exports.d.ts +5 -193
- package/dist/client-exports.js +2 -97
- package/dist/constants/models.d.ts +2 -0
- package/dist/constants/models.js +2 -0
- package/dist/constants/signoz-queries.d.ts +2 -0
- package/dist/constants/signoz-queries.js +2 -0
- package/dist/data-access/index.d.ts +3 -3
- package/dist/data-access/index.js +3 -3
- package/dist/data-access/manage/agents.d.ts +41 -41
- package/dist/data-access/manage/agents.js +4 -4
- package/dist/data-access/manage/artifactComponents.d.ts +6 -6
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +27 -27
- package/dist/data-access/manage/tools.d.ts +18 -18
- package/dist/data-access/manage/tools.js +1 -1
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/organizations.d.ts +10 -1
- package/dist/data-access/runtime/organizations.js +24 -3
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +382 -382
- package/dist/db/runtime/runtime-schema.d.ts +232 -232
- package/dist/index.d.ts +5 -4
- package/dist/index.js +8 -7
- package/dist/types/index.js +1 -1
- package/dist/validation/index.d.ts +2 -2
- package/dist/validation/index.js +2 -2
- package/dist/validation/schemas.d.ts +1781 -1780
- package/dist/validation/schemas.js +3 -2
- package/drizzle/runtime/0011_colorful_vivisector.sql +50 -0
- package/drizzle/runtime/meta/0011_snapshot.json +3088 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +9 -2
|
@@ -1109,6 +1109,23 @@ declare const invitation: drizzle_orm_pg_core0.PgTableWithColumns<{
|
|
|
1109
1109
|
identity: undefined;
|
|
1110
1110
|
generated: undefined;
|
|
1111
1111
|
}, {}, {}>;
|
|
1112
|
+
authMethod: drizzle_orm_pg_core0.PgColumn<{
|
|
1113
|
+
name: "auth_method";
|
|
1114
|
+
tableName: "invitation";
|
|
1115
|
+
dataType: "string";
|
|
1116
|
+
columnType: "PgText";
|
|
1117
|
+
data: string;
|
|
1118
|
+
driverParam: string;
|
|
1119
|
+
notNull: false;
|
|
1120
|
+
hasDefault: false;
|
|
1121
|
+
isPrimaryKey: false;
|
|
1122
|
+
isAutoincrement: false;
|
|
1123
|
+
hasRuntimeDefault: false;
|
|
1124
|
+
enumValues: [string, ...string[]];
|
|
1125
|
+
baseColumn: never;
|
|
1126
|
+
identity: undefined;
|
|
1127
|
+
generated: undefined;
|
|
1128
|
+
}, {}, {}>;
|
|
1112
1129
|
};
|
|
1113
1130
|
dialect: "pg";
|
|
1114
1131
|
}>;
|
package/dist/auth/auth-schema.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { relations } from "drizzle-orm";
|
|
2
|
-
import { boolean, index, integer, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
|
2
|
+
import { boolean, index, integer, pgTable, text, timestamp, uniqueIndex } from "drizzle-orm/pg-core";
|
|
3
3
|
|
|
4
4
|
//#region src/auth/auth-schema.ts
|
|
5
5
|
const user = pgTable("user", {
|
|
@@ -62,7 +62,7 @@ const organization = pgTable("organization", {
|
|
|
62
62
|
logo: text("logo"),
|
|
63
63
|
createdAt: timestamp("created_at").notNull(),
|
|
64
64
|
metadata: text("metadata")
|
|
65
|
-
});
|
|
65
|
+
}, (table) => [uniqueIndex("organization_slug_uidx").on(table.slug)]);
|
|
66
66
|
const member = pgTable("member", {
|
|
67
67
|
id: text("id").primaryKey(),
|
|
68
68
|
organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
|
|
@@ -78,7 +78,8 @@ const invitation = pgTable("invitation", {
|
|
|
78
78
|
status: text("status").default("pending").notNull(),
|
|
79
79
|
expiresAt: timestamp("expires_at").notNull(),
|
|
80
80
|
createdAt: timestamp("created_at").defaultNow().notNull(),
|
|
81
|
-
inviterId: text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" })
|
|
81
|
+
inviterId: text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" }),
|
|
82
|
+
authMethod: text("auth_method")
|
|
82
83
|
}, (table) => [index("invitation_organizationId_idx").on(table.organizationId), index("invitation_email_idx").on(table.email)]);
|
|
83
84
|
const deviceCode = pgTable("device_code", {
|
|
84
85
|
id: text("id").primaryKey(),
|