@inkeep/agents-core 0.34.1 → 0.35.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 (33) hide show
  1. package/dist/{chunk-UMFCT6A6.js → chunk-DYGTCLJO.js} +1 -1
  2. package/dist/{chunk-4VUM4EJL.js → chunk-J5AHY6M2.js} +1 -1
  3. package/dist/{chunk-E6R6PML7.js → chunk-SIAA4J6H.js} +1 -3
  4. package/dist/{chunk-YECQCT5N.js → chunk-W3L4M7FO.js} +6 -8
  5. package/dist/{chunk-EKV6C5GS.js → chunk-YZ5ZBVHJ.js} +104 -5
  6. package/dist/client-exports.cjs +92 -1
  7. package/dist/client-exports.d.cts +5 -5
  8. package/dist/client-exports.d.ts +5 -5
  9. package/dist/client-exports.js +2 -2
  10. package/dist/db/schema.cjs +100 -1
  11. package/dist/db/schema.d.cts +2 -2
  12. package/dist/db/schema.d.ts +2 -2
  13. package/dist/db/schema.js +1 -1
  14. package/dist/index.cjs +1541 -1317
  15. package/dist/index.d.cts +462 -252
  16. package/dist/index.d.ts +462 -252
  17. package/dist/index.js +589 -478
  18. package/dist/{schema-CaEvIRdT.d.cts → schema-DQBYINXB.d.cts} +1105 -3
  19. package/dist/{schema-DvYv9PQ1.d.ts → schema-DlcSfZRM.d.ts} +1105 -3
  20. package/dist/types/index.d.cts +2 -2
  21. package/dist/types/index.d.ts +2 -2
  22. package/dist/{utility-htaewQEL.d.cts → utility-Ct1UMzr_.d.cts} +305 -305
  23. package/dist/{utility-htaewQEL.d.ts → utility-Ct1UMzr_.d.ts} +305 -305
  24. package/dist/utils/schema-conversion.cjs +6 -10
  25. package/dist/utils/schema-conversion.js +1 -1
  26. package/dist/validation/index.cjs +92 -1
  27. package/dist/validation/index.d.cts +2 -2
  28. package/dist/validation/index.d.ts +2 -2
  29. package/dist/validation/index.js +2 -2
  30. package/drizzle/0001_fair_malice.sql +115 -0
  31. package/drizzle/meta/0001_snapshot.json +3520 -0
  32. package/drizzle/meta/_journal.json +8 -1
  33. package/package.json +3 -1
@@ -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-EKV6C5GS.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-YZ5ZBVHJ.js';
2
2
  import { VALID_RELATION_TYPES, MCPTransportType, TOOL_STATUS_VALUES, CredentialStoreType, MCPServerType } from './chunk-YFHT5M2R.js';
3
3
  import { z } from '@hono/zod-openapi';
4
4
  import { createSelectSchema as createSelectSchema$1, createInsertSchema as createInsertSchema$1 } from 'drizzle-zod';
@@ -1,4 +1,4 @@
1
- import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-UMFCT6A6.js';
1
+ import { AgentWithinContextOfProjectSchema, resourceIdSchema, MAX_ID_LENGTH } from './chunk-DYGTCLJO.js';
2
2
  import { z } from 'zod';
3
3
 
4
4
  // src/validation/cycleDetection.ts
@@ -1,6 +1,5 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __getOwnPropNames = Object.getOwnPropertyNames;
3
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
3
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
5
4
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
6
5
  }) : x)(function(x) {
@@ -14,6 +13,5 @@ var __export = (target, all) => {
14
13
  for (var name in all)
15
14
  __defProp(target, name, { get: all[name], enumerable: true });
16
15
  };
17
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
18
16
 
19
- export { __commonJS, __export, __publicField, __require };
17
+ export { __commonJS, __export, __require };
@@ -1,14 +1,11 @@
1
- import { __publicField } from './chunk-E6R6PML7.js';
2
1
  import { z } from 'zod';
3
2
  import pino from 'pino';
4
3
  import pinoPretty from 'pino-pretty';
5
4
 
5
+ // src/utils/schema-conversion.ts
6
6
  var PinoLogger = class {
7
7
  constructor(name, config = {}) {
8
8
  this.name = name;
9
- __publicField(this, "transportConfigs", []);
10
- __publicField(this, "pinoInstance");
11
- __publicField(this, "options");
12
9
  this.options = {
13
10
  name: this.name,
14
11
  level: process.env.LOG_LEVEL || (process.env.ENVIRONMENT === "test" ? "silent" : "info"),
@@ -37,6 +34,9 @@ var PinoLogger = class {
37
34
  }
38
35
  }
39
36
  }
37
+ transportConfigs = [];
38
+ pinoInstance;
39
+ options;
40
40
  /**
41
41
  * Recreate the pino instance with current transports
42
42
  */
@@ -114,10 +114,8 @@ var PinoLogger = class {
114
114
  }
115
115
  };
116
116
  var LoggerFactory = class {
117
- constructor() {
118
- __publicField(this, "config", {});
119
- __publicField(this, "loggers", /* @__PURE__ */ new Map());
120
- }
117
+ config = {};
118
+ loggers = /* @__PURE__ */ new Map();
121
119
  /**
122
120
  * Configure the logger factory
123
121
  */
@@ -1,10 +1,11 @@
1
- import { __export } from './chunk-E6R6PML7.js';
1
+ import { __export } from './chunk-SIAA4J6H.js';
2
2
  import { relations } from 'drizzle-orm';
3
- import { pgTable, varchar, text, timestamp, jsonb, primaryKey, foreignKey, integer, index, unique } from 'drizzle-orm/pg-core';
3
+ import { pgTable, timestamp, text, boolean, varchar, jsonb, primaryKey, foreignKey, integer, index, unique } from 'drizzle-orm/pg-core';
4
4
 
5
5
  // src/db/schema.ts
6
6
  var schema_exports = {};
7
7
  __export(schema_exports, {
8
+ account: () => account,
8
9
  agentRelations: () => agentRelations,
9
10
  agentToolRelationsRelations: () => agentToolRelationsRelations,
10
11
  agents: () => agents,
@@ -28,12 +29,17 @@ __export(schema_exports, {
28
29
  functionToolsRelations: () => functionToolsRelations,
29
30
  functions: () => functions,
30
31
  functionsRelations: () => functionsRelations,
32
+ invitation: () => invitation,
31
33
  ledgerArtifacts: () => ledgerArtifacts,
32
34
  ledgerArtifactsRelations: () => ledgerArtifactsRelations,
35
+ member: () => member,
33
36
  messages: () => messages,
34
37
  messagesRelations: () => messagesRelations,
38
+ organization: () => organization,
35
39
  projects: () => projects,
36
40
  projectsRelations: () => projectsRelations,
41
+ session: () => session,
42
+ ssoProvider: () => ssoProvider,
37
43
  subAgentArtifactComponents: () => subAgentArtifactComponents,
38
44
  subAgentArtifactComponentsRelations: () => subAgentArtifactComponentsRelations,
39
45
  subAgentDataComponents: () => subAgentDataComponents,
@@ -54,8 +60,89 @@ __export(schema_exports, {
54
60
  tasks: () => tasks,
55
61
  tasksRelations: () => tasksRelations,
56
62
  tools: () => tools,
57
- toolsRelations: () => toolsRelations
63
+ toolsRelations: () => toolsRelations,
64
+ user: () => user,
65
+ verification: () => verification
58
66
  });
67
+ var user = pgTable("user", {
68
+ id: text("id").primaryKey(),
69
+ name: text("name").notNull(),
70
+ email: text("email").notNull().unique(),
71
+ emailVerified: boolean("email_verified").default(false).notNull(),
72
+ image: text("image"),
73
+ createdAt: timestamp("created_at").defaultNow().notNull(),
74
+ updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
75
+ });
76
+ var session = pgTable("session", {
77
+ id: text("id").primaryKey(),
78
+ expiresAt: timestamp("expires_at").notNull(),
79
+ token: text("token").notNull().unique(),
80
+ createdAt: timestamp("created_at").defaultNow().notNull(),
81
+ updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
82
+ ipAddress: text("ip_address"),
83
+ userAgent: text("user_agent"),
84
+ userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
85
+ activeOrganizationId: text("active_organization_id")
86
+ });
87
+ var account = pgTable("account", {
88
+ id: text("id").primaryKey(),
89
+ accountId: text("account_id").notNull(),
90
+ providerId: text("provider_id").notNull(),
91
+ userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
92
+ accessToken: text("access_token"),
93
+ refreshToken: text("refresh_token"),
94
+ idToken: text("id_token"),
95
+ accessTokenExpiresAt: timestamp("access_token_expires_at"),
96
+ refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
97
+ scope: text("scope"),
98
+ password: text("password"),
99
+ createdAt: timestamp("created_at").defaultNow().notNull(),
100
+ updatedAt: timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
101
+ });
102
+ var verification = pgTable("verification", {
103
+ id: text("id").primaryKey(),
104
+ identifier: text("identifier").notNull(),
105
+ value: text("value").notNull(),
106
+ expiresAt: timestamp("expires_at").notNull(),
107
+ createdAt: timestamp("created_at").defaultNow().notNull(),
108
+ updatedAt: timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
109
+ });
110
+ var ssoProvider = pgTable("sso_provider", {
111
+ id: text("id").primaryKey(),
112
+ issuer: text("issuer").notNull(),
113
+ oidcConfig: text("oidc_config"),
114
+ samlConfig: text("saml_config"),
115
+ userId: text("user_id").references(() => user.id, { onDelete: "cascade" }),
116
+ providerId: text("provider_id").notNull().unique(),
117
+ organizationId: text("organization_id"),
118
+ domain: text("domain").notNull()
119
+ });
120
+ var organization = pgTable("organization", {
121
+ id: text("id").primaryKey(),
122
+ name: text("name").notNull(),
123
+ slug: text("slug").notNull().unique(),
124
+ logo: text("logo"),
125
+ createdAt: timestamp("created_at").notNull(),
126
+ metadata: text("metadata")
127
+ });
128
+ var member = pgTable("member", {
129
+ id: text("id").primaryKey(),
130
+ organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
131
+ userId: text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
132
+ role: text("role").default("member").notNull(),
133
+ createdAt: timestamp("created_at").notNull()
134
+ });
135
+ var invitation = pgTable("invitation", {
136
+ id: text("id").primaryKey(),
137
+ organizationId: text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
138
+ email: text("email").notNull(),
139
+ role: text("role"),
140
+ status: text("status").default("pending").notNull(),
141
+ expiresAt: timestamp("expires_at").notNull(),
142
+ inviterId: text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" })
143
+ });
144
+
145
+ // src/db/schema.ts
59
146
  var tenantScoped = {
60
147
  tenantId: varchar("tenant_id", { length: 256 }).notNull(),
61
148
  id: varchar("id", { length: 256 }).notNull()
@@ -89,7 +176,14 @@ var projects = pgTable(
89
176
  stopWhen: jsonb("stop_when").$type(),
90
177
  ...timestamps
91
178
  },
92
- (table) => [primaryKey({ columns: [table.tenantId, table.id] })]
179
+ (table) => [
180
+ primaryKey({ columns: [table.tenantId, table.id] }),
181
+ foreignKey({
182
+ columns: [table.tenantId],
183
+ foreignColumns: [organization.id],
184
+ name: "projects_tenant_id_fk"
185
+ }).onDelete("cascade")
186
+ ]
93
187
  );
94
188
  var agents = pgTable(
95
189
  "agent",
@@ -606,6 +700,11 @@ var apiKeys = pgTable(
606
700
  ...timestamps
607
701
  },
608
702
  (t) => [
703
+ foreignKey({
704
+ columns: [t.tenantId],
705
+ foreignColumns: [organization.id],
706
+ name: "api_keys_organization_fk"
707
+ }).onDelete("cascade"),
609
708
  foreignKey({
610
709
  columns: [t.tenantId, t.projectId],
611
710
  foreignColumns: [projects.tenantId, projects.id],
@@ -991,4 +1090,4 @@ var subAgentTeamAgentRelationsRelations = relations(
991
1090
  })
992
1091
  );
993
1092
 
994
- 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, schema_exports, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations };
1093
+ export { account, agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, invitation, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, organization, projects, projectsRelations, schema_exports, session, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations, user, verification };
@@ -62,6 +62,85 @@ var CredentialStoreType = {
62
62
  keychain: "keychain",
63
63
  nango: "nango"
64
64
  };
65
+ var user = pgCore.pgTable("user", {
66
+ id: pgCore.text("id").primaryKey(),
67
+ name: pgCore.text("name").notNull(),
68
+ email: pgCore.text("email").notNull().unique(),
69
+ emailVerified: pgCore.boolean("email_verified").default(false).notNull(),
70
+ image: pgCore.text("image"),
71
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
72
+ updatedAt: pgCore.timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
73
+ });
74
+ pgCore.pgTable("session", {
75
+ id: pgCore.text("id").primaryKey(),
76
+ expiresAt: pgCore.timestamp("expires_at").notNull(),
77
+ token: pgCore.text("token").notNull().unique(),
78
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
79
+ updatedAt: pgCore.timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
80
+ ipAddress: pgCore.text("ip_address"),
81
+ userAgent: pgCore.text("user_agent"),
82
+ userId: pgCore.text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
83
+ activeOrganizationId: pgCore.text("active_organization_id")
84
+ });
85
+ pgCore.pgTable("account", {
86
+ id: pgCore.text("id").primaryKey(),
87
+ accountId: pgCore.text("account_id").notNull(),
88
+ providerId: pgCore.text("provider_id").notNull(),
89
+ userId: pgCore.text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
90
+ accessToken: pgCore.text("access_token"),
91
+ refreshToken: pgCore.text("refresh_token"),
92
+ idToken: pgCore.text("id_token"),
93
+ accessTokenExpiresAt: pgCore.timestamp("access_token_expires_at"),
94
+ refreshTokenExpiresAt: pgCore.timestamp("refresh_token_expires_at"),
95
+ scope: pgCore.text("scope"),
96
+ password: pgCore.text("password"),
97
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
98
+ updatedAt: pgCore.timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
99
+ });
100
+ pgCore.pgTable("verification", {
101
+ id: pgCore.text("id").primaryKey(),
102
+ identifier: pgCore.text("identifier").notNull(),
103
+ value: pgCore.text("value").notNull(),
104
+ expiresAt: pgCore.timestamp("expires_at").notNull(),
105
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
106
+ updatedAt: pgCore.timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
107
+ });
108
+ pgCore.pgTable("sso_provider", {
109
+ id: pgCore.text("id").primaryKey(),
110
+ issuer: pgCore.text("issuer").notNull(),
111
+ oidcConfig: pgCore.text("oidc_config"),
112
+ samlConfig: pgCore.text("saml_config"),
113
+ userId: pgCore.text("user_id").references(() => user.id, { onDelete: "cascade" }),
114
+ providerId: pgCore.text("provider_id").notNull().unique(),
115
+ organizationId: pgCore.text("organization_id"),
116
+ domain: pgCore.text("domain").notNull()
117
+ });
118
+ var organization = pgCore.pgTable("organization", {
119
+ id: pgCore.text("id").primaryKey(),
120
+ name: pgCore.text("name").notNull(),
121
+ slug: pgCore.text("slug").notNull().unique(),
122
+ logo: pgCore.text("logo"),
123
+ createdAt: pgCore.timestamp("created_at").notNull(),
124
+ metadata: pgCore.text("metadata")
125
+ });
126
+ pgCore.pgTable("member", {
127
+ id: pgCore.text("id").primaryKey(),
128
+ organizationId: pgCore.text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
129
+ userId: pgCore.text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
130
+ role: pgCore.text("role").default("member").notNull(),
131
+ createdAt: pgCore.timestamp("created_at").notNull()
132
+ });
133
+ pgCore.pgTable("invitation", {
134
+ id: pgCore.text("id").primaryKey(),
135
+ organizationId: pgCore.text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
136
+ email: pgCore.text("email").notNull(),
137
+ role: pgCore.text("role"),
138
+ status: pgCore.text("status").default("pending").notNull(),
139
+ expiresAt: pgCore.timestamp("expires_at").notNull(),
140
+ inviterId: pgCore.text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" })
141
+ });
142
+
143
+ // src/db/schema.ts
65
144
  var tenantScoped = {
66
145
  tenantId: pgCore.varchar("tenant_id", { length: 256 }).notNull(),
67
146
  id: pgCore.varchar("id", { length: 256 }).notNull()
@@ -95,7 +174,14 @@ var projects = pgCore.pgTable(
95
174
  stopWhen: pgCore.jsonb("stop_when").$type(),
96
175
  ...timestamps
97
176
  },
98
- (table) => [pgCore.primaryKey({ columns: [table.tenantId, table.id] })]
177
+ (table) => [
178
+ pgCore.primaryKey({ columns: [table.tenantId, table.id] }),
179
+ pgCore.foreignKey({
180
+ columns: [table.tenantId],
181
+ foreignColumns: [organization.id],
182
+ name: "projects_tenant_id_fk"
183
+ }).onDelete("cascade")
184
+ ]
99
185
  );
100
186
  var agents = pgCore.pgTable(
101
187
  "agent",
@@ -612,6 +698,11 @@ var apiKeys = pgCore.pgTable(
612
698
  ...timestamps
613
699
  },
614
700
  (t) => [
701
+ pgCore.foreignKey({
702
+ columns: [t.tenantId],
703
+ foreignColumns: [organization.id],
704
+ name: "api_keys_organization_fk"
705
+ }).onDelete("cascade"),
615
706
  pgCore.foreignKey({
616
707
  columns: [t.tenantId, t.projectId],
617
708
  foreignColumns: [projects.tenantId, projects.id],
@@ -1,7 +1,7 @@
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-CGqhPDnj.cjs';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-htaewQEL.cjs';
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-htaewQEL.cjs';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-Ct1UMzr_.cjs';
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-Ct1UMzr_.cjs';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.cjs';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>>;
135
135
  }, z.core.$strip>;
136
136
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
- id: z.ZodString;
138
137
  name: z.ZodString;
138
+ id: z.ZodString;
139
139
  description: z.ZodString;
140
140
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
141
141
  }, {
@@ -170,11 +170,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
170
170
  description: z.ZodOptional<z.ZodString>;
171
171
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
172
172
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
173
- id: z.ZodString;
174
173
  name: z.ZodString;
175
- description: z.ZodString;
174
+ id: z.ZodString;
176
175
  createdAt: z.ZodOptional<z.ZodString>;
177
176
  updatedAt: z.ZodOptional<z.ZodString>;
177
+ description: z.ZodString;
178
178
  models: z.ZodOptional<z.ZodObject<{
179
179
  base: z.ZodOptional<z.ZodObject<{
180
180
  model: z.ZodOptional<z.ZodString>;
@@ -1,7 +1,7 @@
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-CGqhPDnj.js';
2
2
  import { z } from 'zod';
3
- import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-htaewQEL.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-htaewQEL.js';
3
+ import { C as ConversationHistoryConfig, F as FunctionApiInsertSchema, A as ApiKeyApiUpdateSchema, a as FullAgentAgentInsertSchema } from './utility-Ct1UMzr_.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-Ct1UMzr_.js';
5
5
  export { v as validatePropsAsJsonSchema } from './props-validation-BMR1qNiy.js';
6
6
  import 'pino';
7
7
  import 'drizzle-zod';
@@ -134,8 +134,8 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
134
134
  }, z.core.$strip>>>;
135
135
  }, z.core.$strip>;
136
136
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
137
- id: z.ZodString;
138
137
  name: z.ZodString;
138
+ id: z.ZodString;
139
139
  description: z.ZodString;
140
140
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
141
141
  }, {
@@ -170,11 +170,11 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
170
170
  description: z.ZodOptional<z.ZodString>;
171
171
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
172
172
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
173
- id: z.ZodString;
174
173
  name: z.ZodString;
175
- description: z.ZodString;
174
+ id: z.ZodString;
176
175
  createdAt: z.ZodOptional<z.ZodString>;
177
176
  updatedAt: z.ZodOptional<z.ZodString>;
177
+ description: z.ZodString;
178
178
  models: z.ZodOptional<z.ZodObject<{
179
179
  base: z.ZodOptional<z.ZodObject<{
180
180
  model: z.ZodOptional<z.ZodString>;
@@ -1,6 +1,6 @@
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, detectAuthenticationRequired } from './chunk-OP3KPT4T.js';
2
- import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-UMFCT6A6.js';
3
- export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-UMFCT6A6.js';
2
+ import { ModelSettingsSchema, schemaValidationDefaults, FullAgentAgentInsertSchema, ArtifactComponentApiInsertSchema } from './chunk-DYGTCLJO.js';
3
+ export { AgentStopWhenSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettingsSchema, StopWhenSchema, SubAgentStopWhenSchema, validatePropsAsJsonSchema } from './chunk-DYGTCLJO.js';
4
4
  import { CredentialStoreType } from './chunk-YFHT5M2R.js';
5
5
  export { CredentialStoreType, MCPTransportType } from './chunk-YFHT5M2R.js';
6
6
  import { z } from 'zod';
@@ -3,6 +3,85 @@
3
3
  var drizzleOrm = require('drizzle-orm');
4
4
  var pgCore = require('drizzle-orm/pg-core');
5
5
 
6
+ // src/db/schema.ts
7
+ var user = pgCore.pgTable("user", {
8
+ id: pgCore.text("id").primaryKey(),
9
+ name: pgCore.text("name").notNull(),
10
+ email: pgCore.text("email").notNull().unique(),
11
+ emailVerified: pgCore.boolean("email_verified").default(false).notNull(),
12
+ image: pgCore.text("image"),
13
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
14
+ updatedAt: pgCore.timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
15
+ });
16
+ var session = pgCore.pgTable("session", {
17
+ id: pgCore.text("id").primaryKey(),
18
+ expiresAt: pgCore.timestamp("expires_at").notNull(),
19
+ token: pgCore.text("token").notNull().unique(),
20
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
21
+ updatedAt: pgCore.timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull(),
22
+ ipAddress: pgCore.text("ip_address"),
23
+ userAgent: pgCore.text("user_agent"),
24
+ userId: pgCore.text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
25
+ activeOrganizationId: pgCore.text("active_organization_id")
26
+ });
27
+ var account = pgCore.pgTable("account", {
28
+ id: pgCore.text("id").primaryKey(),
29
+ accountId: pgCore.text("account_id").notNull(),
30
+ providerId: pgCore.text("provider_id").notNull(),
31
+ userId: pgCore.text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
32
+ accessToken: pgCore.text("access_token"),
33
+ refreshToken: pgCore.text("refresh_token"),
34
+ idToken: pgCore.text("id_token"),
35
+ accessTokenExpiresAt: pgCore.timestamp("access_token_expires_at"),
36
+ refreshTokenExpiresAt: pgCore.timestamp("refresh_token_expires_at"),
37
+ scope: pgCore.text("scope"),
38
+ password: pgCore.text("password"),
39
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
40
+ updatedAt: pgCore.timestamp("updated_at").$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
41
+ });
42
+ var verification = pgCore.pgTable("verification", {
43
+ id: pgCore.text("id").primaryKey(),
44
+ identifier: pgCore.text("identifier").notNull(),
45
+ value: pgCore.text("value").notNull(),
46
+ expiresAt: pgCore.timestamp("expires_at").notNull(),
47
+ createdAt: pgCore.timestamp("created_at").defaultNow().notNull(),
48
+ updatedAt: pgCore.timestamp("updated_at").defaultNow().$onUpdate(() => /* @__PURE__ */ new Date()).notNull()
49
+ });
50
+ var ssoProvider = pgCore.pgTable("sso_provider", {
51
+ id: pgCore.text("id").primaryKey(),
52
+ issuer: pgCore.text("issuer").notNull(),
53
+ oidcConfig: pgCore.text("oidc_config"),
54
+ samlConfig: pgCore.text("saml_config"),
55
+ userId: pgCore.text("user_id").references(() => user.id, { onDelete: "cascade" }),
56
+ providerId: pgCore.text("provider_id").notNull().unique(),
57
+ organizationId: pgCore.text("organization_id"),
58
+ domain: pgCore.text("domain").notNull()
59
+ });
60
+ var organization = pgCore.pgTable("organization", {
61
+ id: pgCore.text("id").primaryKey(),
62
+ name: pgCore.text("name").notNull(),
63
+ slug: pgCore.text("slug").notNull().unique(),
64
+ logo: pgCore.text("logo"),
65
+ createdAt: pgCore.timestamp("created_at").notNull(),
66
+ metadata: pgCore.text("metadata")
67
+ });
68
+ var member = pgCore.pgTable("member", {
69
+ id: pgCore.text("id").primaryKey(),
70
+ organizationId: pgCore.text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
71
+ userId: pgCore.text("user_id").notNull().references(() => user.id, { onDelete: "cascade" }),
72
+ role: pgCore.text("role").default("member").notNull(),
73
+ createdAt: pgCore.timestamp("created_at").notNull()
74
+ });
75
+ var invitation = pgCore.pgTable("invitation", {
76
+ id: pgCore.text("id").primaryKey(),
77
+ organizationId: pgCore.text("organization_id").notNull().references(() => organization.id, { onDelete: "cascade" }),
78
+ email: pgCore.text("email").notNull(),
79
+ role: pgCore.text("role"),
80
+ status: pgCore.text("status").default("pending").notNull(),
81
+ expiresAt: pgCore.timestamp("expires_at").notNull(),
82
+ inviterId: pgCore.text("inviter_id").notNull().references(() => user.id, { onDelete: "cascade" })
83
+ });
84
+
6
85
  // src/db/schema.ts
7
86
  var tenantScoped = {
8
87
  tenantId: pgCore.varchar("tenant_id", { length: 256 }).notNull(),
@@ -37,7 +116,14 @@ var projects = pgCore.pgTable(
37
116
  stopWhen: pgCore.jsonb("stop_when").$type(),
38
117
  ...timestamps
39
118
  },
40
- (table) => [pgCore.primaryKey({ columns: [table.tenantId, table.id] })]
119
+ (table) => [
120
+ pgCore.primaryKey({ columns: [table.tenantId, table.id] }),
121
+ pgCore.foreignKey({
122
+ columns: [table.tenantId],
123
+ foreignColumns: [organization.id],
124
+ name: "projects_tenant_id_fk"
125
+ }).onDelete("cascade")
126
+ ]
41
127
  );
42
128
  var agents = pgCore.pgTable(
43
129
  "agent",
@@ -554,6 +640,11 @@ var apiKeys = pgCore.pgTable(
554
640
  ...timestamps
555
641
  },
556
642
  (t) => [
643
+ pgCore.foreignKey({
644
+ columns: [t.tenantId],
645
+ foreignColumns: [organization.id],
646
+ name: "api_keys_organization_fk"
647
+ }).onDelete("cascade"),
557
648
  pgCore.foreignKey({
558
649
  columns: [t.tenantId, t.projectId],
559
650
  foreignColumns: [projects.tenantId, projects.id],
@@ -939,6 +1030,7 @@ var subAgentTeamAgentRelationsRelations = drizzleOrm.relations(
939
1030
  })
940
1031
  );
941
1032
 
1033
+ exports.account = account;
942
1034
  exports.agentRelations = agentRelations;
943
1035
  exports.agentToolRelationsRelations = agentToolRelationsRelations;
944
1036
  exports.agents = agents;
@@ -962,12 +1054,17 @@ exports.functionTools = functionTools;
962
1054
  exports.functionToolsRelations = functionToolsRelations;
963
1055
  exports.functions = functions;
964
1056
  exports.functionsRelations = functionsRelations;
1057
+ exports.invitation = invitation;
965
1058
  exports.ledgerArtifacts = ledgerArtifacts;
966
1059
  exports.ledgerArtifactsRelations = ledgerArtifactsRelations;
1060
+ exports.member = member;
967
1061
  exports.messages = messages;
968
1062
  exports.messagesRelations = messagesRelations;
1063
+ exports.organization = organization;
969
1064
  exports.projects = projects;
970
1065
  exports.projectsRelations = projectsRelations;
1066
+ exports.session = session;
1067
+ exports.ssoProvider = ssoProvider;
971
1068
  exports.subAgentArtifactComponents = subAgentArtifactComponents;
972
1069
  exports.subAgentArtifactComponentsRelations = subAgentArtifactComponentsRelations;
973
1070
  exports.subAgentDataComponents = subAgentDataComponents;
@@ -989,3 +1086,5 @@ exports.tasks = tasks;
989
1086
  exports.tasksRelations = tasksRelations;
990
1087
  exports.tools = tools;
991
1088
  exports.toolsRelations = toolsRelations;
1089
+ exports.user = user;
1090
+ exports.verification = verification;
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/pg-core';
3
- import '../utility-htaewQEL.cjs';
4
- 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-CaEvIRdT.cjs';
3
+ import '../utility-Ct1UMzr_.cjs';
4
+ export { Z as account, 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, _ as invitation, x as ledgerArtifacts, S as ledgerArtifactsRelations, $ as member, w as messages, N as messagesRelations, a0 as organization, p as projects, B as projectsRelations, a1 as session, a2 as ssoProvider, 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, a3 as user, a4 as verification } from '../schema-DQBYINXB.cjs';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
@@ -1,7 +1,7 @@
1
1
  import 'drizzle-orm';
2
2
  import 'drizzle-orm/pg-core';
3
- import '../utility-htaewQEL.js';
4
- 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-DvYv9PQ1.js';
3
+ import '../utility-Ct1UMzr_.js';
4
+ export { Z as account, 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, _ as invitation, x as ledgerArtifacts, S as ledgerArtifactsRelations, $ as member, w as messages, N as messagesRelations, a0 as organization, p as projects, B as projectsRelations, a1 as session, a2 as ssoProvider, 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, a3 as user, a4 as verification } from '../schema-DlcSfZRM.js';
5
5
  import 'zod';
6
6
  import 'drizzle-zod';
7
7
  import '@hono/zod-openapi';
package/dist/db/schema.js CHANGED
@@ -1 +1 @@
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-EKV6C5GS.js';
1
+ export { account, agentRelations, agentToolRelationsRelations, agents, apiKeys, apiKeysRelations, artifactComponents, artifactComponentsRelations, contextCache, contextCacheRelations, contextConfigs, contextConfigsRelations, conversations, conversationsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, invitation, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, organization, projects, projectsRelations, session, ssoProvider, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, taskRelations, taskRelationsRelations, tasks, tasksRelations, tools, toolsRelations, user, verification } from '../chunk-YZ5ZBVHJ.js';