@inkeep/agents-core 0.0.0-dev-20260331052759 → 0.0.0-dev-20260331152429
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-validation-schemas.d.ts +17 -17
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/auth.js +28 -9
- package/dist/auth/entitlement-constants.d.ts +11 -0
- package/dist/auth/entitlement-constants.js +10 -0
- package/dist/auth/entitlement-lock.d.ts +6 -0
- package/dist/auth/entitlement-lock.js +13 -0
- package/dist/auth/entitlements.d.ts +11 -0
- package/dist/auth/entitlements.js +55 -0
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +4 -3
- package/dist/client-exports.js +2 -1
- package/dist/data-access/index.d.ts +3 -2
- package/dist/data-access/index.js +2 -1
- package/dist/data-access/manage/agents.d.ts +18 -18
- package/dist/data-access/manage/artifactComponents.d.ts +8 -8
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/evalConfig.d.ts +1 -1
- package/dist/data-access/manage/functionTools.d.ts +10 -10
- package/dist/data-access/manage/projectLifecycle.d.ts +1 -1
- package/dist/data-access/manage/skills.d.ts +11 -11
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +14 -14
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/apps.d.ts +14 -14
- package/dist/data-access/runtime/cascade-delete.d.ts +1 -1
- package/dist/data-access/runtime/conversations.d.ts +17 -17
- package/dist/data-access/runtime/entitlements.d.ts +13 -0
- package/dist/data-access/runtime/entitlements.js +33 -0
- package/dist/data-access/runtime/ledgerArtifacts.d.ts +1 -1
- package/dist/data-access/runtime/messages.d.ts +22 -22
- package/dist/data-access/runtime/tasks.d.ts +6 -6
- package/dist/data-access/runtime/workflowExecutions.d.ts +1 -1
- package/dist/data-reconciliation/types.d.ts +1 -1
- package/dist/db/clean.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +2 -218
- package/dist/db/manage/manage-schema.js +2 -128
- package/dist/db/runtime/runtime-schema.d.ts +485 -372
- package/dist/db/runtime/runtime-schema.js +20 -3
- package/dist/index.d.ts +13 -9
- package/dist/index.js +7 -3
- package/dist/middleware/create-protected-route.d.ts +3 -0
- package/dist/middleware/create-protected-route.js +7 -2
- package/dist/middleware/entitlement-meta.d.ts +9 -0
- package/dist/middleware/entitlement-meta.js +11 -0
- package/dist/middleware/index.d.ts +2 -1
- package/dist/middleware/index.js +2 -1
- package/dist/utils/error.d.ts +54 -51
- package/dist/utils/error.js +3 -0
- package/dist/utils/index.d.ts +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas/skills.d.ts +49 -49
- package/dist/validation/schemas.d.ts +450 -450
- package/drizzle/manage/0016_complex_klaw.sql +2 -0
- package/drizzle/manage/meta/0016_snapshot.json +3530 -0
- package/drizzle/manage/meta/_journal.json +7 -0
- package/drizzle/runtime/0029_burly_satana.sql +13 -0
- package/drizzle/runtime/meta/0029_snapshot.json +4756 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
- /package/drizzle/runtime/meta/{0023_snapshot.json → 0025_snapshot.json} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
2
|
import { MessageContent, MessageMetadata, MessageVisibility, PaginationConfig } from "../../types/utility.js";
|
|
3
|
-
import "../../types/index.js";
|
|
4
3
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
5
|
import "../../index.js";
|
|
6
6
|
import { MessageInsert, MessageUpdate } from "../../types/entities.js";
|
|
7
7
|
|
|
@@ -11,25 +11,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
11
11
|
messageId: string;
|
|
12
12
|
}) => Promise<{
|
|
13
13
|
id: string;
|
|
14
|
-
content: MessageContent;
|
|
15
|
-
metadata: MessageMetadata | null;
|
|
16
14
|
createdAt: string;
|
|
17
15
|
updatedAt: string;
|
|
18
|
-
|
|
19
|
-
tenantId: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
20
17
|
role: string;
|
|
21
|
-
|
|
18
|
+
content: MessageContent;
|
|
19
|
+
tenantId: string;
|
|
20
|
+
projectId: string;
|
|
22
21
|
fromSubAgentId: string | null;
|
|
23
22
|
toSubAgentId: string | null;
|
|
24
23
|
fromExternalAgentId: string | null;
|
|
25
24
|
toExternalAgentId: string | null;
|
|
25
|
+
taskId: string | null;
|
|
26
|
+
a2aTaskId: string | null;
|
|
27
|
+
conversationId: string;
|
|
26
28
|
fromTeamAgentId: string | null;
|
|
27
29
|
toTeamAgentId: string | null;
|
|
28
30
|
visibility: string;
|
|
29
31
|
messageType: string;
|
|
30
|
-
taskId: string | null;
|
|
31
32
|
parentMessageId: string | null;
|
|
32
|
-
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -145,25 +145,25 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
145
145
|
data: Omit<MessageInsert, "tenantId" | "projectId">;
|
|
146
146
|
}) => Promise<{
|
|
147
147
|
id: string;
|
|
148
|
-
content: MessageContent;
|
|
149
|
-
metadata: MessageMetadata | null;
|
|
150
148
|
createdAt: string;
|
|
151
149
|
updatedAt: string;
|
|
152
|
-
|
|
153
|
-
tenantId: string;
|
|
150
|
+
metadata: MessageMetadata | null;
|
|
154
151
|
role: string;
|
|
155
|
-
|
|
152
|
+
content: MessageContent;
|
|
153
|
+
tenantId: string;
|
|
154
|
+
projectId: string;
|
|
156
155
|
fromSubAgentId: string | null;
|
|
157
156
|
toSubAgentId: string | null;
|
|
158
157
|
fromExternalAgentId: string | null;
|
|
159
158
|
toExternalAgentId: string | null;
|
|
159
|
+
taskId: string | null;
|
|
160
|
+
a2aTaskId: string | null;
|
|
161
|
+
conversationId: string;
|
|
160
162
|
fromTeamAgentId: string | null;
|
|
161
163
|
toTeamAgentId: string | null;
|
|
162
164
|
visibility: string;
|
|
163
165
|
messageType: string;
|
|
164
|
-
taskId: string | null;
|
|
165
166
|
parentMessageId: string | null;
|
|
166
|
-
a2aTaskId: string | null;
|
|
167
167
|
a2aSessionId: string | null;
|
|
168
168
|
}>;
|
|
169
169
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -198,25 +198,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
198
198
|
messageId: string;
|
|
199
199
|
}) => Promise<{
|
|
200
200
|
id: string;
|
|
201
|
-
content: MessageContent;
|
|
202
|
-
metadata: MessageMetadata | null;
|
|
203
201
|
createdAt: string;
|
|
204
202
|
updatedAt: string;
|
|
205
|
-
|
|
206
|
-
tenantId: string;
|
|
203
|
+
metadata: MessageMetadata | null;
|
|
207
204
|
role: string;
|
|
208
|
-
|
|
205
|
+
content: MessageContent;
|
|
206
|
+
tenantId: string;
|
|
207
|
+
projectId: string;
|
|
209
208
|
fromSubAgentId: string | null;
|
|
210
209
|
toSubAgentId: string | null;
|
|
211
210
|
fromExternalAgentId: string | null;
|
|
212
211
|
toExternalAgentId: string | null;
|
|
212
|
+
taskId: string | null;
|
|
213
|
+
a2aTaskId: string | null;
|
|
214
|
+
conversationId: string;
|
|
213
215
|
fromTeamAgentId: string | null;
|
|
214
216
|
toTeamAgentId: string | null;
|
|
215
217
|
visibility: string;
|
|
216
218
|
messageType: string;
|
|
217
|
-
taskId: string | null;
|
|
218
219
|
parentMessageId: string | null;
|
|
219
|
-
a2aTaskId: string | null;
|
|
220
220
|
a2aSessionId: string | null;
|
|
221
221
|
}>;
|
|
222
222
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { ProjectScopeConfig } from "../../db/manage/scope-definitions.js";
|
|
2
2
|
import { TaskMetadataConfig } from "../../types/utility.js";
|
|
3
|
-
import "../../types/index.js";
|
|
4
3
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
4
|
+
import "../../types/index.js";
|
|
5
5
|
import "../../index.js";
|
|
6
6
|
import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
7
7
|
|
|
8
8
|
//#region src/data-access/runtime/tasks.d.ts
|
|
9
9
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
10
10
|
id: string;
|
|
11
|
-
metadata: TaskMetadataConfig | null;
|
|
12
11
|
createdAt: string;
|
|
13
12
|
updatedAt: string;
|
|
14
|
-
projectId: string;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
status: string;
|
|
17
13
|
ref: {
|
|
18
14
|
type: "commit" | "tag" | "branch";
|
|
19
15
|
name: string;
|
|
20
16
|
hash: string;
|
|
21
17
|
} | null;
|
|
18
|
+
metadata: TaskMetadataConfig | null;
|
|
19
|
+
status: string;
|
|
20
|
+
tenantId: string;
|
|
21
|
+
projectId: string;
|
|
22
|
+
subAgentId: string;
|
|
22
23
|
agentId: string;
|
|
23
24
|
contextId: string;
|
|
24
|
-
subAgentId: string;
|
|
25
25
|
}>;
|
|
26
26
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
27
27
|
id: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../types/index.js";
|
|
2
1
|
import { AgentsRunDatabaseClient } from "../../db/runtime/runtime-client.js";
|
|
2
|
+
import "../../types/index.js";
|
|
3
3
|
import { WorkflowExecutionInsert, WorkflowExecutionSelect } from "../../types/entities.js";
|
|
4
4
|
|
|
5
5
|
//#region src/data-access/runtime/workflowExecutions.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
1
2
|
import { PinoLogger } from "../utils/logger.js";
|
|
2
3
|
import { AgentsManageDatabaseClient } from "../db/manage/manage-client.js";
|
|
3
|
-
import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
4
4
|
import { AgentSelect, ContextConfigSelect, SubAgentSelect, ToolSelect } from "../types/entities.js";
|
|
5
5
|
|
|
6
6
|
//#region src/data-reconciliation/types.d.ts
|
package/dist/db/clean.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as drizzle_orm_pg_core1432 from "drizzle-orm/pg-core";
|
|
|
5
5
|
|
|
6
6
|
//#region src/db/manage/manage-schema.d.ts
|
|
7
7
|
declare namespace manage_schema_d_exports {
|
|
8
|
-
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, projects, projectsRelations,
|
|
8
|
+
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, projects, projectsRelations, skillFiles, skillFilesRelations, skills, skillsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentSkills, subAgentSkillsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|
|
9
9
|
}
|
|
10
10
|
declare const projects: drizzle_orm_pg_core1432.PgTableWithColumns<{
|
|
11
11
|
name: "projects";
|
|
@@ -1047,216 +1047,6 @@ declare const triggers: drizzle_orm_pg_core1432.PgTableWithColumns<{
|
|
|
1047
1047
|
};
|
|
1048
1048
|
dialect: "pg";
|
|
1049
1049
|
}>;
|
|
1050
|
-
declare const scheduledWorkflows: drizzle_orm_pg_core1432.PgTableWithColumns<{
|
|
1051
|
-
name: "scheduled_workflows";
|
|
1052
|
-
schema: undefined;
|
|
1053
|
-
columns: {
|
|
1054
|
-
createdAt: drizzle_orm_pg_core1432.PgColumn<{
|
|
1055
|
-
name: "created_at";
|
|
1056
|
-
tableName: "scheduled_workflows";
|
|
1057
|
-
dataType: "string";
|
|
1058
|
-
columnType: "PgTimestampString";
|
|
1059
|
-
data: string;
|
|
1060
|
-
driverParam: string;
|
|
1061
|
-
notNull: true;
|
|
1062
|
-
hasDefault: true;
|
|
1063
|
-
isPrimaryKey: false;
|
|
1064
|
-
isAutoincrement: false;
|
|
1065
|
-
hasRuntimeDefault: false;
|
|
1066
|
-
enumValues: undefined;
|
|
1067
|
-
baseColumn: never;
|
|
1068
|
-
identity: undefined;
|
|
1069
|
-
generated: undefined;
|
|
1070
|
-
}, {}, {}>;
|
|
1071
|
-
updatedAt: drizzle_orm_pg_core1432.PgColumn<{
|
|
1072
|
-
name: "updated_at";
|
|
1073
|
-
tableName: "scheduled_workflows";
|
|
1074
|
-
dataType: "string";
|
|
1075
|
-
columnType: "PgTimestampString";
|
|
1076
|
-
data: string;
|
|
1077
|
-
driverParam: string;
|
|
1078
|
-
notNull: true;
|
|
1079
|
-
hasDefault: true;
|
|
1080
|
-
isPrimaryKey: false;
|
|
1081
|
-
isAutoincrement: false;
|
|
1082
|
-
hasRuntimeDefault: false;
|
|
1083
|
-
enumValues: undefined;
|
|
1084
|
-
baseColumn: never;
|
|
1085
|
-
identity: undefined;
|
|
1086
|
-
generated: undefined;
|
|
1087
|
-
}, {}, {}>;
|
|
1088
|
-
workflowRunId: drizzle_orm_pg_core1432.PgColumn<{
|
|
1089
|
-
name: "workflow_run_id";
|
|
1090
|
-
tableName: "scheduled_workflows";
|
|
1091
|
-
dataType: "string";
|
|
1092
|
-
columnType: "PgVarchar";
|
|
1093
|
-
data: string;
|
|
1094
|
-
driverParam: string;
|
|
1095
|
-
notNull: false;
|
|
1096
|
-
hasDefault: false;
|
|
1097
|
-
isPrimaryKey: false;
|
|
1098
|
-
isAutoincrement: false;
|
|
1099
|
-
hasRuntimeDefault: false;
|
|
1100
|
-
enumValues: [string, ...string[]];
|
|
1101
|
-
baseColumn: never;
|
|
1102
|
-
identity: undefined;
|
|
1103
|
-
generated: undefined;
|
|
1104
|
-
}, {}, {
|
|
1105
|
-
length: 256;
|
|
1106
|
-
}>;
|
|
1107
|
-
status: drizzle_orm_pg_core1432.PgColumn<{
|
|
1108
|
-
name: "status";
|
|
1109
|
-
tableName: "scheduled_workflows";
|
|
1110
|
-
dataType: "string";
|
|
1111
|
-
columnType: "PgVarchar";
|
|
1112
|
-
data: string;
|
|
1113
|
-
driverParam: string;
|
|
1114
|
-
notNull: true;
|
|
1115
|
-
hasDefault: true;
|
|
1116
|
-
isPrimaryKey: false;
|
|
1117
|
-
isAutoincrement: false;
|
|
1118
|
-
hasRuntimeDefault: false;
|
|
1119
|
-
enumValues: [string, ...string[]];
|
|
1120
|
-
baseColumn: never;
|
|
1121
|
-
identity: undefined;
|
|
1122
|
-
generated: undefined;
|
|
1123
|
-
}, {}, {
|
|
1124
|
-
length: 50;
|
|
1125
|
-
}>;
|
|
1126
|
-
scheduledTriggerId: drizzle_orm_pg_core1432.PgColumn<{
|
|
1127
|
-
name: "scheduled_trigger_id";
|
|
1128
|
-
tableName: "scheduled_workflows";
|
|
1129
|
-
dataType: "string";
|
|
1130
|
-
columnType: "PgVarchar";
|
|
1131
|
-
data: string;
|
|
1132
|
-
driverParam: string;
|
|
1133
|
-
notNull: true;
|
|
1134
|
-
hasDefault: false;
|
|
1135
|
-
isPrimaryKey: false;
|
|
1136
|
-
isAutoincrement: false;
|
|
1137
|
-
hasRuntimeDefault: false;
|
|
1138
|
-
enumValues: [string, ...string[]];
|
|
1139
|
-
baseColumn: never;
|
|
1140
|
-
identity: undefined;
|
|
1141
|
-
generated: undefined;
|
|
1142
|
-
}, {}, {
|
|
1143
|
-
length: 256;
|
|
1144
|
-
}>;
|
|
1145
|
-
name: drizzle_orm_pg_core1432.PgColumn<{
|
|
1146
|
-
name: "name";
|
|
1147
|
-
tableName: "scheduled_workflows";
|
|
1148
|
-
dataType: "string";
|
|
1149
|
-
columnType: "PgVarchar";
|
|
1150
|
-
data: string;
|
|
1151
|
-
driverParam: string;
|
|
1152
|
-
notNull: true;
|
|
1153
|
-
hasDefault: false;
|
|
1154
|
-
isPrimaryKey: false;
|
|
1155
|
-
isAutoincrement: false;
|
|
1156
|
-
hasRuntimeDefault: false;
|
|
1157
|
-
enumValues: [string, ...string[]];
|
|
1158
|
-
baseColumn: never;
|
|
1159
|
-
identity: undefined;
|
|
1160
|
-
generated: undefined;
|
|
1161
|
-
}, {}, {
|
|
1162
|
-
length: 256;
|
|
1163
|
-
}>;
|
|
1164
|
-
description: drizzle_orm_pg_core1432.PgColumn<{
|
|
1165
|
-
name: "description";
|
|
1166
|
-
tableName: "scheduled_workflows";
|
|
1167
|
-
dataType: "string";
|
|
1168
|
-
columnType: "PgText";
|
|
1169
|
-
data: string;
|
|
1170
|
-
driverParam: string;
|
|
1171
|
-
notNull: false;
|
|
1172
|
-
hasDefault: false;
|
|
1173
|
-
isPrimaryKey: false;
|
|
1174
|
-
isAutoincrement: false;
|
|
1175
|
-
hasRuntimeDefault: false;
|
|
1176
|
-
enumValues: [string, ...string[]];
|
|
1177
|
-
baseColumn: never;
|
|
1178
|
-
identity: undefined;
|
|
1179
|
-
generated: undefined;
|
|
1180
|
-
}, {}, {}>;
|
|
1181
|
-
agentId: drizzle_orm_pg_core1432.PgColumn<{
|
|
1182
|
-
name: "agent_id";
|
|
1183
|
-
tableName: "scheduled_workflows";
|
|
1184
|
-
dataType: "string";
|
|
1185
|
-
columnType: "PgVarchar";
|
|
1186
|
-
data: string;
|
|
1187
|
-
driverParam: string;
|
|
1188
|
-
notNull: true;
|
|
1189
|
-
hasDefault: false;
|
|
1190
|
-
isPrimaryKey: false;
|
|
1191
|
-
isAutoincrement: false;
|
|
1192
|
-
hasRuntimeDefault: false;
|
|
1193
|
-
enumValues: [string, ...string[]];
|
|
1194
|
-
baseColumn: never;
|
|
1195
|
-
identity: undefined;
|
|
1196
|
-
generated: undefined;
|
|
1197
|
-
}, {}, {
|
|
1198
|
-
length: 256;
|
|
1199
|
-
}>;
|
|
1200
|
-
projectId: drizzle_orm_pg_core1432.PgColumn<{
|
|
1201
|
-
name: "project_id";
|
|
1202
|
-
tableName: "scheduled_workflows";
|
|
1203
|
-
dataType: "string";
|
|
1204
|
-
columnType: "PgVarchar";
|
|
1205
|
-
data: string;
|
|
1206
|
-
driverParam: string;
|
|
1207
|
-
notNull: true;
|
|
1208
|
-
hasDefault: false;
|
|
1209
|
-
isPrimaryKey: false;
|
|
1210
|
-
isAutoincrement: false;
|
|
1211
|
-
hasRuntimeDefault: false;
|
|
1212
|
-
enumValues: [string, ...string[]];
|
|
1213
|
-
baseColumn: never;
|
|
1214
|
-
identity: undefined;
|
|
1215
|
-
generated: undefined;
|
|
1216
|
-
}, {}, {
|
|
1217
|
-
length: 256;
|
|
1218
|
-
}>;
|
|
1219
|
-
tenantId: drizzle_orm_pg_core1432.PgColumn<{
|
|
1220
|
-
name: "tenant_id";
|
|
1221
|
-
tableName: "scheduled_workflows";
|
|
1222
|
-
dataType: "string";
|
|
1223
|
-
columnType: "PgVarchar";
|
|
1224
|
-
data: string;
|
|
1225
|
-
driverParam: string;
|
|
1226
|
-
notNull: true;
|
|
1227
|
-
hasDefault: false;
|
|
1228
|
-
isPrimaryKey: false;
|
|
1229
|
-
isAutoincrement: false;
|
|
1230
|
-
hasRuntimeDefault: false;
|
|
1231
|
-
enumValues: [string, ...string[]];
|
|
1232
|
-
baseColumn: never;
|
|
1233
|
-
identity: undefined;
|
|
1234
|
-
generated: undefined;
|
|
1235
|
-
}, {}, {
|
|
1236
|
-
length: 256;
|
|
1237
|
-
}>;
|
|
1238
|
-
id: drizzle_orm_pg_core1432.PgColumn<{
|
|
1239
|
-
name: "id";
|
|
1240
|
-
tableName: "scheduled_workflows";
|
|
1241
|
-
dataType: "string";
|
|
1242
|
-
columnType: "PgVarchar";
|
|
1243
|
-
data: string;
|
|
1244
|
-
driverParam: string;
|
|
1245
|
-
notNull: true;
|
|
1246
|
-
hasDefault: false;
|
|
1247
|
-
isPrimaryKey: false;
|
|
1248
|
-
isAutoincrement: false;
|
|
1249
|
-
hasRuntimeDefault: false;
|
|
1250
|
-
enumValues: [string, ...string[]];
|
|
1251
|
-
baseColumn: never;
|
|
1252
|
-
identity: undefined;
|
|
1253
|
-
generated: undefined;
|
|
1254
|
-
}, {}, {
|
|
1255
|
-
length: 256;
|
|
1256
|
-
}>;
|
|
1257
|
-
};
|
|
1258
|
-
dialect: "pg";
|
|
1259
|
-
}>;
|
|
1260
1050
|
declare const subAgents: drizzle_orm_pg_core1432.PgTableWithColumns<{
|
|
1261
1051
|
name: "sub_agents";
|
|
1262
1052
|
schema: undefined;
|
|
@@ -6233,12 +6023,6 @@ declare const agentRelations: drizzle_orm20.Relations<"agent", {
|
|
|
6233
6023
|
defaultSubAgent: drizzle_orm20.One<"sub_agents", false>;
|
|
6234
6024
|
contextConfig: drizzle_orm20.One<"context_configs", false>;
|
|
6235
6025
|
functionTools: drizzle_orm20.Many<"function_tools">;
|
|
6236
|
-
scheduledWorkflows: drizzle_orm20.Many<"scheduled_workflows">;
|
|
6237
|
-
scheduledTriggers: drizzle_orm20.Many<"scheduled_triggers">;
|
|
6238
|
-
}>;
|
|
6239
|
-
declare const scheduledWorkflowsRelations: drizzle_orm20.Relations<"scheduled_workflows", {
|
|
6240
|
-
agent: drizzle_orm20.One<"agent", true>;
|
|
6241
|
-
scheduledTrigger: drizzle_orm20.One<"scheduled_triggers", true>;
|
|
6242
6026
|
}>;
|
|
6243
6027
|
declare const externalAgentsRelations: drizzle_orm20.Relations<"external_agents", {
|
|
6244
6028
|
project: drizzle_orm20.One<"projects", true>;
|
|
@@ -6459,4 +6243,4 @@ declare const datasetRunConfigAgentRelations: drizzle_orm_pg_core1432.PgTableWit
|
|
|
6459
6243
|
dialect: "pg";
|
|
6460
6244
|
}>;
|
|
6461
6245
|
//#endregion
|
|
6462
|
-
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_d_exports, projects, projectsRelations,
|
|
6246
|
+
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_d_exports, projects, projectsRelations, skillFiles, skillFilesRelations, skills, skillsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentSkills, subAgentSkillsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|
|
@@ -34,8 +34,6 @@ var manage_schema_exports = /* @__PURE__ */ __exportAll({
|
|
|
34
34
|
functionsRelations: () => functionsRelations,
|
|
35
35
|
projects: () => projects,
|
|
36
36
|
projectsRelations: () => projectsRelations,
|
|
37
|
-
scheduledWorkflows: () => scheduledWorkflows,
|
|
38
|
-
scheduledWorkflowsRelations: () => scheduledWorkflowsRelations,
|
|
39
37
|
skillFiles: () => skillFiles,
|
|
40
38
|
skillFilesRelations: () => skillFilesRelations,
|
|
41
39
|
skills: () => skills,
|
|
@@ -174,85 +172,6 @@ const triggers = pgTable("triggers", {
|
|
|
174
172
|
name: "triggers_credential_reference_fk"
|
|
175
173
|
}).onDelete("set null")
|
|
176
174
|
]);
|
|
177
|
-
const scheduledTriggers = pgTable("scheduled_triggers", {
|
|
178
|
-
...agentScoped,
|
|
179
|
-
...uiProperties,
|
|
180
|
-
enabled: boolean("enabled").notNull().default(true),
|
|
181
|
-
cronExpression: varchar("cron_expression", { length: 256 }),
|
|
182
|
-
cronTimezone: varchar("cron_timezone", { length: 64 }).default("UTC"),
|
|
183
|
-
runAt: timestamp("run_at", {
|
|
184
|
-
withTimezone: true,
|
|
185
|
-
mode: "string"
|
|
186
|
-
}),
|
|
187
|
-
payload: jsonb("payload").$type(),
|
|
188
|
-
messageTemplate: text("message_template"),
|
|
189
|
-
maxRetries: numeric("max_retries", { mode: "number" }).notNull().default(1),
|
|
190
|
-
retryDelaySeconds: numeric("retry_delay_seconds", { mode: "number" }).notNull().default(60),
|
|
191
|
-
timeoutSeconds: numeric("timeout_seconds", { mode: "number" }).notNull().default(780),
|
|
192
|
-
runAsUserId: varchar("run_as_user_id", { length: 256 }),
|
|
193
|
-
createdBy: varchar("created_by", { length: 256 }),
|
|
194
|
-
...timestamps
|
|
195
|
-
}, (table) => [primaryKey({ columns: [
|
|
196
|
-
table.tenantId,
|
|
197
|
-
table.projectId,
|
|
198
|
-
table.agentId,
|
|
199
|
-
table.id
|
|
200
|
-
] }), foreignKey({
|
|
201
|
-
columns: [
|
|
202
|
-
table.tenantId,
|
|
203
|
-
table.projectId,
|
|
204
|
-
table.agentId
|
|
205
|
-
],
|
|
206
|
-
foreignColumns: [
|
|
207
|
-
agents.tenantId,
|
|
208
|
-
agents.projectId,
|
|
209
|
-
agents.id
|
|
210
|
-
],
|
|
211
|
-
name: "scheduled_triggers_agent_fk"
|
|
212
|
-
}).onDelete("cascade")]);
|
|
213
|
-
const scheduledWorkflows = pgTable("scheduled_workflows", {
|
|
214
|
-
...agentScoped,
|
|
215
|
-
...uiProperties,
|
|
216
|
-
workflowRunId: varchar("workflow_run_id", { length: 256 }),
|
|
217
|
-
status: varchar("status", { length: 50 }).notNull().default("pending"),
|
|
218
|
-
scheduledTriggerId: varchar("scheduled_trigger_id", { length: 256 }).notNull(),
|
|
219
|
-
...timestamps
|
|
220
|
-
}, (table) => [
|
|
221
|
-
primaryKey({ columns: [
|
|
222
|
-
table.tenantId,
|
|
223
|
-
table.projectId,
|
|
224
|
-
table.agentId,
|
|
225
|
-
table.id
|
|
226
|
-
] }),
|
|
227
|
-
foreignKey({
|
|
228
|
-
columns: [
|
|
229
|
-
table.tenantId,
|
|
230
|
-
table.projectId,
|
|
231
|
-
table.agentId
|
|
232
|
-
],
|
|
233
|
-
foreignColumns: [
|
|
234
|
-
agents.tenantId,
|
|
235
|
-
agents.projectId,
|
|
236
|
-
agents.id
|
|
237
|
-
],
|
|
238
|
-
name: "scheduled_workflows_agent_fk"
|
|
239
|
-
}).onDelete("cascade"),
|
|
240
|
-
foreignKey({
|
|
241
|
-
columns: [
|
|
242
|
-
table.tenantId,
|
|
243
|
-
table.projectId,
|
|
244
|
-
table.agentId,
|
|
245
|
-
table.scheduledTriggerId
|
|
246
|
-
],
|
|
247
|
-
foreignColumns: [
|
|
248
|
-
scheduledTriggers.tenantId,
|
|
249
|
-
scheduledTriggers.projectId,
|
|
250
|
-
scheduledTriggers.agentId,
|
|
251
|
-
scheduledTriggers.id
|
|
252
|
-
],
|
|
253
|
-
name: "scheduled_workflows_trigger_fk"
|
|
254
|
-
}).onDelete("cascade")
|
|
255
|
-
]);
|
|
256
175
|
const subAgents = pgTable("sub_agents", {
|
|
257
176
|
...agentScoped,
|
|
258
177
|
...uiProperties,
|
|
@@ -1197,52 +1116,7 @@ const agentRelations = relations(agents, ({ one, many }) => ({
|
|
|
1197
1116
|
fields: [agents.contextConfigId],
|
|
1198
1117
|
references: [contextConfigs.id]
|
|
1199
1118
|
}),
|
|
1200
|
-
functionTools: many(functionTools)
|
|
1201
|
-
scheduledWorkflows: many(scheduledWorkflows),
|
|
1202
|
-
scheduledTriggers: many(scheduledTriggers)
|
|
1203
|
-
}));
|
|
1204
|
-
relations(scheduledTriggers, ({ one }) => ({
|
|
1205
|
-
agent: one(agents, {
|
|
1206
|
-
fields: [
|
|
1207
|
-
scheduledTriggers.tenantId,
|
|
1208
|
-
scheduledTriggers.projectId,
|
|
1209
|
-
scheduledTriggers.agentId
|
|
1210
|
-
],
|
|
1211
|
-
references: [
|
|
1212
|
-
agents.tenantId,
|
|
1213
|
-
agents.projectId,
|
|
1214
|
-
agents.id
|
|
1215
|
-
]
|
|
1216
|
-
}),
|
|
1217
|
-
scheduledWorkflow: one(scheduledWorkflows)
|
|
1218
|
-
}));
|
|
1219
|
-
const scheduledWorkflowsRelations = relations(scheduledWorkflows, ({ one }) => ({
|
|
1220
|
-
agent: one(agents, {
|
|
1221
|
-
fields: [
|
|
1222
|
-
scheduledWorkflows.tenantId,
|
|
1223
|
-
scheduledWorkflows.projectId,
|
|
1224
|
-
scheduledWorkflows.agentId
|
|
1225
|
-
],
|
|
1226
|
-
references: [
|
|
1227
|
-
agents.tenantId,
|
|
1228
|
-
agents.projectId,
|
|
1229
|
-
agents.id
|
|
1230
|
-
]
|
|
1231
|
-
}),
|
|
1232
|
-
scheduledTrigger: one(scheduledTriggers, {
|
|
1233
|
-
fields: [
|
|
1234
|
-
scheduledWorkflows.tenantId,
|
|
1235
|
-
scheduledWorkflows.projectId,
|
|
1236
|
-
scheduledWorkflows.agentId,
|
|
1237
|
-
scheduledWorkflows.scheduledTriggerId
|
|
1238
|
-
],
|
|
1239
|
-
references: [
|
|
1240
|
-
scheduledTriggers.tenantId,
|
|
1241
|
-
scheduledTriggers.projectId,
|
|
1242
|
-
scheduledTriggers.agentId,
|
|
1243
|
-
scheduledTriggers.id
|
|
1244
|
-
]
|
|
1245
|
-
})
|
|
1119
|
+
functionTools: many(functionTools)
|
|
1246
1120
|
}));
|
|
1247
1121
|
const externalAgentsRelations = relations(externalAgents, ({ one, many }) => ({
|
|
1248
1122
|
project: one(projects, {
|
|
@@ -1539,4 +1413,4 @@ const datasetRunConfigAgentRelations = pgTable("dataset_run_config_agent_relatio
|
|
|
1539
1413
|
]);
|
|
1540
1414
|
|
|
1541
1415
|
//#endregion
|
|
1542
|
-
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_exports, projects, projectsRelations,
|
|
1416
|
+
export { agentRelations, agentToolRelationsRelations, agents, artifactComponents, artifactComponentsRelations, contextConfigs, contextConfigsRelations, credentialReferences, credentialReferencesRelations, dataComponents, dataComponentsRelations, dataset, datasetItem, datasetRunConfig, datasetRunConfigAgentRelations, evaluationJobConfig, evaluationJobConfigEvaluatorRelations, evaluationRunConfig, evaluationRunConfigEvaluationSuiteConfigRelations, evaluationSuiteConfig, evaluationSuiteConfigEvaluatorRelations, evaluator, externalAgents, externalAgentsRelations, functionTools, functionToolsRelations, functions, functionsRelations, manage_schema_exports, projects, projectsRelations, skillFiles, skillFilesRelations, skills, skillsRelations, subAgentArtifactComponents, subAgentArtifactComponentsRelations, subAgentDataComponents, subAgentDataComponentsRelations, subAgentExternalAgentRelations, subAgentExternalAgentRelationsRelations, subAgentFunctionToolRelations, subAgentFunctionToolRelationsRelations, subAgentRelations, subAgentRelationsRelations, subAgentSkills, subAgentSkillsRelations, subAgentTeamAgentRelations, subAgentTeamAgentRelationsRelations, subAgentToolRelations, subAgents, subAgentsRelations, tools, toolsRelations, triggers };
|