@inkeep/agents-core 0.67.3 → 0.67.4
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 +108 -108
- package/dist/auth/auth-validation-schemas.d.ts +154 -154
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +47 -47
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/skills.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +21 -21
- package/dist/data-access/manage/tools.d.ts +27 -27
- package/dist/data-access/manage/triggers.d.ts +5 -5
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/apps.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/feedback.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +18 -18
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +4 -4
- package/dist/data-access/runtime/scheduledTriggerUsers.d.ts +1 -1
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/db/manage/manage-schema.d.ts +499 -499
- package/dist/db/manage/manage-schema.js +39 -40
- package/dist/db/runtime/runtime-schema.d.ts +407 -407
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +40 -40
- package/dist/validation/schemas.d.ts +2375 -2375
- package/package.json +1 -1
- package/dist/db/manage/dolt-safe-jsonb.d.ts +0 -12
- package/dist/db/manage/dolt-safe-jsonb.js +0 -61
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { __exportAll } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { jsonb as jsonb$1 } from "./dolt-safe-jsonb.js";
|
|
3
2
|
import { relations } from "drizzle-orm";
|
|
4
|
-
import { boolean, doublePrecision, foreignKey, index, integer, numeric, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
|
|
3
|
+
import { boolean, doublePrecision, foreignKey, index, integer, jsonb, numeric, pgTable, primaryKey, text, timestamp, unique, varchar } from "drizzle-orm/pg-core";
|
|
5
4
|
|
|
6
5
|
//#region src/db/manage/manage-schema.ts
|
|
7
6
|
var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -92,8 +91,8 @@ const timestamps = {
|
|
|
92
91
|
const projects = pgTable("projects", {
|
|
93
92
|
...tenantScoped,
|
|
94
93
|
...uiProperties,
|
|
95
|
-
models: jsonb
|
|
96
|
-
stopWhen: jsonb
|
|
94
|
+
models: jsonb("models").$type(),
|
|
95
|
+
stopWhen: jsonb("stop_when").$type(),
|
|
97
96
|
...timestamps
|
|
98
97
|
}, (table) => [primaryKey({ columns: [table.tenantId, table.id] })]);
|
|
99
98
|
const agents = pgTable("agent", {
|
|
@@ -101,10 +100,10 @@ const agents = pgTable("agent", {
|
|
|
101
100
|
...uiProperties,
|
|
102
101
|
defaultSubAgentId: varchar("default_sub_agent_id", { length: 256 }),
|
|
103
102
|
contextConfigId: varchar("context_config_id", { length: 256 }),
|
|
104
|
-
models: jsonb
|
|
105
|
-
statusUpdates: jsonb
|
|
103
|
+
models: jsonb("models").$type(),
|
|
104
|
+
statusUpdates: jsonb("status_updates").$type(),
|
|
106
105
|
prompt: text("prompt"),
|
|
107
|
-
stopWhen: jsonb
|
|
106
|
+
stopWhen: jsonb("stop_when").$type(),
|
|
108
107
|
executionMode: varchar("execution_mode", { length: 50 }).$type().notNull().default("classic"),
|
|
109
108
|
...timestamps
|
|
110
109
|
}, (table) => [primaryKey({ columns: [
|
|
@@ -118,8 +117,8 @@ const agents = pgTable("agent", {
|
|
|
118
117
|
}).onDelete("cascade")]);
|
|
119
118
|
const contextConfigs = pgTable("context_configs", {
|
|
120
119
|
...agentScoped,
|
|
121
|
-
headersSchema: jsonb
|
|
122
|
-
contextVariables: jsonb
|
|
120
|
+
headersSchema: jsonb("headers_schema").$type(),
|
|
121
|
+
contextVariables: jsonb("context_variables").$type(),
|
|
123
122
|
...timestamps
|
|
124
123
|
}, (table) => [primaryKey({ columns: [
|
|
125
124
|
table.tenantId,
|
|
@@ -143,12 +142,12 @@ const triggers = pgTable("triggers", {
|
|
|
143
142
|
...agentScoped,
|
|
144
143
|
...uiProperties,
|
|
145
144
|
enabled: boolean("enabled").notNull().default(true),
|
|
146
|
-
inputSchema: jsonb
|
|
147
|
-
outputTransform: jsonb
|
|
145
|
+
inputSchema: jsonb("input_schema").$type(),
|
|
146
|
+
outputTransform: jsonb("output_transform").$type(),
|
|
148
147
|
messageTemplate: text("message_template"),
|
|
149
|
-
authentication: jsonb
|
|
148
|
+
authentication: jsonb("authentication").$type(),
|
|
150
149
|
signingSecretCredentialReferenceId: varchar("signing_secret_credential_reference_id", { length: 256 }),
|
|
151
|
-
signatureVerification: jsonb
|
|
150
|
+
signatureVerification: jsonb("signature_verification").$type().default(null),
|
|
152
151
|
runAsUserId: varchar("run_as_user_id", { length: 256 }),
|
|
153
152
|
dispatchDelayMs: integer("dispatch_delay_ms"),
|
|
154
153
|
createdBy: varchar("created_by", { length: 256 }),
|
|
@@ -222,15 +221,15 @@ const subAgents = pgTable("sub_agents", {
|
|
|
222
221
|
...agentScoped,
|
|
223
222
|
...uiProperties,
|
|
224
223
|
prompt: text("prompt"),
|
|
225
|
-
conversationHistoryConfig: jsonb
|
|
224
|
+
conversationHistoryConfig: jsonb("conversation_history_config").$type().default({
|
|
226
225
|
mode: "full",
|
|
227
226
|
limit: 50,
|
|
228
227
|
maxOutputTokens: 4e3,
|
|
229
228
|
includeInternal: false,
|
|
230
229
|
messageTypes: ["chat", "tool-result"]
|
|
231
230
|
}),
|
|
232
|
-
models: jsonb
|
|
233
|
-
stopWhen: jsonb
|
|
231
|
+
models: jsonb("models").$type(),
|
|
232
|
+
stopWhen: jsonb("stop_when").$type(),
|
|
234
233
|
...timestamps
|
|
235
234
|
}, (table) => [primaryKey({ columns: [
|
|
236
235
|
table.tenantId,
|
|
@@ -256,7 +255,7 @@ const skills = pgTable("skills", {
|
|
|
256
255
|
name: varchar("name", { length: 64 }).notNull(),
|
|
257
256
|
description: text("description").notNull(),
|
|
258
257
|
content: text("content").notNull(),
|
|
259
|
-
metadata: jsonb
|
|
258
|
+
metadata: jsonb("metadata").$type(),
|
|
260
259
|
...timestamps
|
|
261
260
|
}, (table) => [primaryKey({ columns: [
|
|
262
261
|
table.tenantId,
|
|
@@ -389,8 +388,8 @@ const externalAgents = pgTable("external_agents", {
|
|
|
389
388
|
const dataComponents = pgTable("data_components", {
|
|
390
389
|
...projectScoped,
|
|
391
390
|
...uiProperties,
|
|
392
|
-
props: jsonb
|
|
393
|
-
render: jsonb
|
|
391
|
+
props: jsonb("props").$type().notNull(),
|
|
392
|
+
render: jsonb("render").$type(),
|
|
394
393
|
...timestamps
|
|
395
394
|
}, (table) => [primaryKey({ columns: [
|
|
396
395
|
table.tenantId,
|
|
@@ -443,8 +442,8 @@ const subAgentDataComponents = pgTable("sub_agent_data_components", {
|
|
|
443
442
|
const artifactComponents = pgTable("artifact_components", {
|
|
444
443
|
...projectScoped,
|
|
445
444
|
...uiProperties,
|
|
446
|
-
props: jsonb
|
|
447
|
-
render: jsonb
|
|
445
|
+
props: jsonb("props").$type(),
|
|
446
|
+
render: jsonb("render").$type(),
|
|
448
447
|
...timestamps
|
|
449
448
|
}, (table) => [primaryKey({ columns: [
|
|
450
449
|
table.tenantId,
|
|
@@ -502,12 +501,12 @@ const subAgentArtifactComponents = pgTable("sub_agent_artifact_components", {
|
|
|
502
501
|
const tools = pgTable("tools", {
|
|
503
502
|
...projectScoped,
|
|
504
503
|
...uiProperties,
|
|
505
|
-
config: jsonb
|
|
504
|
+
config: jsonb("config").$type().notNull(),
|
|
506
505
|
credentialReferenceId: varchar("credential_reference_id", { length: 256 }),
|
|
507
506
|
credentialScope: varchar("credential_scope", { length: 50 }).notNull().default("project"),
|
|
508
|
-
headers: jsonb
|
|
507
|
+
headers: jsonb("headers").$type(),
|
|
509
508
|
imageUrl: text("image_url"),
|
|
510
|
-
capabilities: jsonb
|
|
509
|
+
capabilities: jsonb("capabilities").$type(),
|
|
511
510
|
lastError: text("last_error"),
|
|
512
511
|
isWorkApp: boolean("is_work_app").notNull().default(false),
|
|
513
512
|
...timestamps
|
|
@@ -569,9 +568,9 @@ const functionTools = pgTable("function_tools", {
|
|
|
569
568
|
]);
|
|
570
569
|
const functions = pgTable("functions", {
|
|
571
570
|
...projectScoped,
|
|
572
|
-
inputSchema: jsonb
|
|
571
|
+
inputSchema: jsonb("input_schema").$type(),
|
|
573
572
|
executeCode: text("execute_code").notNull(),
|
|
574
|
-
dependencies: jsonb
|
|
573
|
+
dependencies: jsonb("dependencies").$type(),
|
|
575
574
|
...timestamps
|
|
576
575
|
}, (table) => [primaryKey({ columns: [
|
|
577
576
|
table.tenantId,
|
|
@@ -585,9 +584,9 @@ const functions = pgTable("functions", {
|
|
|
585
584
|
const subAgentToolRelations = pgTable("sub_agent_tool_relations", {
|
|
586
585
|
...subAgentScoped,
|
|
587
586
|
toolId: varchar("tool_id", { length: 256 }).notNull(),
|
|
588
|
-
selectedTools: jsonb
|
|
589
|
-
headers: jsonb
|
|
590
|
-
toolPolicies: jsonb
|
|
587
|
+
selectedTools: jsonb("selected_tools").$type(),
|
|
588
|
+
headers: jsonb("headers").$type(),
|
|
589
|
+
toolPolicies: jsonb("tool_policies").$type(),
|
|
591
590
|
...timestamps
|
|
592
591
|
}, (table) => [
|
|
593
592
|
primaryKey({ columns: [
|
|
@@ -628,7 +627,7 @@ const subAgentToolRelations = pgTable("sub_agent_tool_relations", {
|
|
|
628
627
|
const subAgentExternalAgentRelations = pgTable("sub_agent_external_agent_relations", {
|
|
629
628
|
...subAgentScoped,
|
|
630
629
|
externalAgentId: varchar("external_agent_id", { length: 256 }).notNull(),
|
|
631
|
-
headers: jsonb
|
|
630
|
+
headers: jsonb("headers").$type(),
|
|
632
631
|
...timestamps
|
|
633
632
|
}, (table) => [
|
|
634
633
|
primaryKey({
|
|
@@ -672,7 +671,7 @@ const subAgentExternalAgentRelations = pgTable("sub_agent_external_agent_relatio
|
|
|
672
671
|
const subAgentTeamAgentRelations = pgTable("sub_agent_team_agent_relations", {
|
|
673
672
|
...subAgentScoped,
|
|
674
673
|
targetAgentId: varchar("target_agent_id", { length: 256 }).notNull(),
|
|
675
|
-
headers: jsonb
|
|
674
|
+
headers: jsonb("headers").$type(),
|
|
676
675
|
...timestamps
|
|
677
676
|
}, (table) => [
|
|
678
677
|
primaryKey({
|
|
@@ -716,7 +715,7 @@ const subAgentTeamAgentRelations = pgTable("sub_agent_team_agent_relations", {
|
|
|
716
715
|
const subAgentFunctionToolRelations = pgTable("sub_agent_function_tool_relations", {
|
|
717
716
|
...subAgentScoped,
|
|
718
717
|
functionToolId: varchar("function_tool_id", { length: 256 }).notNull(),
|
|
719
|
-
toolPolicies: jsonb
|
|
718
|
+
toolPolicies: jsonb("tool_policies").$type(),
|
|
720
719
|
...timestamps
|
|
721
720
|
}, (table) => [
|
|
722
721
|
primaryKey({
|
|
@@ -764,7 +763,7 @@ const credentialReferences = pgTable("credential_references", {
|
|
|
764
763
|
name: uiProperties.name,
|
|
765
764
|
type: varchar("type", { length: 256 }).notNull(),
|
|
766
765
|
credentialStoreId: varchar("credential_store_id", { length: 256 }).notNull(),
|
|
767
|
-
retrievalParams: jsonb
|
|
766
|
+
retrievalParams: jsonb("retrieval_params").$type(),
|
|
768
767
|
toolId: varchar("tool_id", { length: 256 }),
|
|
769
768
|
userId: varchar("user_id", { length: 256 }),
|
|
770
769
|
createdBy: varchar("created_by", { length: 256 }),
|
|
@@ -817,8 +816,8 @@ const dataset = pgTable("dataset", {
|
|
|
817
816
|
const datasetItem = pgTable("dataset_item", {
|
|
818
817
|
...projectScoped,
|
|
819
818
|
datasetId: varchar("dataset_id", { length: 256 }).notNull(),
|
|
820
|
-
input: jsonb
|
|
821
|
-
expectedOutput: jsonb
|
|
819
|
+
input: jsonb("input").$type().notNull(),
|
|
820
|
+
expectedOutput: jsonb("expected_output").$type(),
|
|
822
821
|
...timestamps
|
|
823
822
|
}, (table) => [primaryKey({ columns: [
|
|
824
823
|
table.tenantId,
|
|
@@ -841,9 +840,9 @@ const evaluator = pgTable("evaluator", {
|
|
|
841
840
|
...projectScoped,
|
|
842
841
|
...uiProperties,
|
|
843
842
|
prompt: text("prompt").notNull(),
|
|
844
|
-
schema: jsonb
|
|
845
|
-
model: jsonb
|
|
846
|
-
passCriteria: jsonb
|
|
843
|
+
schema: jsonb("schema").$type().notNull(),
|
|
844
|
+
model: jsonb("model").$type().notNull(),
|
|
845
|
+
passCriteria: jsonb("pass_criteria").$type(),
|
|
847
846
|
...timestamps
|
|
848
847
|
}, (table) => [primaryKey({ columns: [
|
|
849
848
|
table.tenantId,
|
|
@@ -901,7 +900,7 @@ const datasetRunConfig = pgTable("dataset_run_config", {
|
|
|
901
900
|
*/
|
|
902
901
|
const evaluationSuiteConfig = pgTable("evaluation_suite_config", {
|
|
903
902
|
...projectScoped,
|
|
904
|
-
filters: jsonb
|
|
903
|
+
filters: jsonb("filters").$type(),
|
|
905
904
|
sampleRate: doublePrecision("sample_rate"),
|
|
906
905
|
...timestamps
|
|
907
906
|
}, (table) => [primaryKey({ columns: [
|
|
@@ -1052,7 +1051,7 @@ const evaluationRunConfig = pgTable("evaluation_run_config", {
|
|
|
1052
1051
|
*/
|
|
1053
1052
|
const evaluationJobConfig = pgTable("evaluation_job_config", {
|
|
1054
1053
|
...projectScoped,
|
|
1055
|
-
jobFilters: jsonb
|
|
1054
|
+
jobFilters: jsonb("job_filters").$type(),
|
|
1056
1055
|
...timestamps
|
|
1057
1056
|
}, (table) => [primaryKey({ columns: [
|
|
1058
1057
|
table.tenantId,
|