@inkeep/agents-core 0.50.5 → 0.50.6
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 +105 -105
- package/dist/auth/auth-validation-schemas.d.ts +148 -148
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/manage/agents.d.ts +48 -48
- package/dist/data-access/manage/artifactComponents.d.ts +14 -14
- package/dist/data-access/manage/contextConfigs.d.ts +20 -20
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +18 -18
- package/dist/data-access/manage/scope-helpers.d.ts +5 -5
- package/dist/data-access/manage/skills.d.ts +17 -17
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +30 -30
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +24 -24
- package/dist/data-access/manage/tools.d.ts +30 -30
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +16 -16
- package/dist/data-access/runtime/conversations.d.ts +20 -20
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +96 -96
- package/dist/db/manage/manage-schema.js +1 -1
- package/dist/db/runtime/runtime-schema.d.ts +28 -28
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +404 -404
- package/drizzle/manage/meta/_journal.json +0 -7
- package/package.json +1 -1
- package/drizzle/manage/0010_oval_angel.sql +0 -2
- package/drizzle/manage/meta/0010_snapshot.json +0 -3673
|
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
16
16
|
}>;
|
|
17
17
|
declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
18
18
|
id: string;
|
|
19
|
-
tenantId: string;
|
|
20
|
-
projectId: string;
|
|
21
|
-
agentId: string | null;
|
|
22
|
-
title: string | null;
|
|
23
19
|
createdAt: string;
|
|
24
20
|
updatedAt: string;
|
|
21
|
+
agentId: string | null;
|
|
22
|
+
projectId: string;
|
|
23
|
+
tenantId: string;
|
|
24
|
+
title: string | null;
|
|
25
25
|
metadata: ConversationMetadata | null;
|
|
26
|
+
userId: string | null;
|
|
26
27
|
ref: {
|
|
27
28
|
type: "tag" | "commit" | "branch";
|
|
28
29
|
name: string;
|
|
29
30
|
hash: string;
|
|
30
31
|
} | null;
|
|
31
|
-
userId: string | null;
|
|
32
32
|
activeSubAgentId: string;
|
|
33
33
|
lastContextResolution: string | null;
|
|
34
34
|
}>;
|
|
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
85
85
|
conversationId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
|
-
tenantId: string;
|
|
89
|
-
projectId: string;
|
|
90
|
-
agentId: string | null;
|
|
91
|
-
title: string | null;
|
|
92
88
|
createdAt: string;
|
|
93
89
|
updatedAt: string;
|
|
90
|
+
agentId: string | null;
|
|
91
|
+
projectId: string;
|
|
92
|
+
tenantId: string;
|
|
93
|
+
title: string | null;
|
|
94
94
|
metadata: ConversationMetadata | null;
|
|
95
|
+
userId: string | null;
|
|
95
96
|
ref: {
|
|
96
97
|
type: "tag" | "commit" | "branch";
|
|
97
98
|
name: string;
|
|
98
99
|
hash: string;
|
|
99
100
|
} | null;
|
|
100
|
-
userId: string | null;
|
|
101
101
|
activeSubAgentId: string;
|
|
102
102
|
lastContextResolution: string | null;
|
|
103
103
|
} | undefined>;
|
|
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
|
|
|
121
121
|
contextConfigId?: string | undefined;
|
|
122
122
|
} | {
|
|
123
123
|
id: string;
|
|
124
|
-
tenantId: string;
|
|
125
|
-
projectId: string;
|
|
126
|
-
agentId: string | null;
|
|
127
|
-
title: string | null;
|
|
128
124
|
createdAt: string;
|
|
129
125
|
updatedAt: string;
|
|
126
|
+
agentId: string | null;
|
|
127
|
+
projectId: string;
|
|
128
|
+
tenantId: string;
|
|
129
|
+
title: string | null;
|
|
130
130
|
metadata: ConversationMetadata | null;
|
|
131
|
+
userId: string | null;
|
|
131
132
|
ref: {
|
|
132
133
|
type: "tag" | "commit" | "branch";
|
|
133
134
|
name: string;
|
|
134
135
|
hash: string;
|
|
135
136
|
} | null;
|
|
136
|
-
userId: string | null;
|
|
137
137
|
activeSubAgentId: string;
|
|
138
138
|
lastContextResolution: string | null;
|
|
139
139
|
}>;
|
|
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
|
|
|
153
153
|
conversationId: string;
|
|
154
154
|
}) => Promise<{
|
|
155
155
|
id: string;
|
|
156
|
-
tenantId: string;
|
|
157
|
-
projectId: string;
|
|
158
|
-
agentId: string | null;
|
|
159
|
-
title: string | null;
|
|
160
156
|
createdAt: string;
|
|
161
157
|
updatedAt: string;
|
|
158
|
+
agentId: string | null;
|
|
159
|
+
projectId: string;
|
|
160
|
+
tenantId: string;
|
|
161
|
+
title: string | null;
|
|
162
162
|
metadata: ConversationMetadata | null;
|
|
163
|
+
userId: string | null;
|
|
163
164
|
ref: {
|
|
164
165
|
type: "tag" | "commit" | "branch";
|
|
165
166
|
name: string;
|
|
166
167
|
hash: string;
|
|
167
168
|
} | null;
|
|
168
|
-
userId: string | null;
|
|
169
169
|
activeSubAgentId: string;
|
|
170
170
|
lastContextResolution: string | null;
|
|
171
171
|
} | undefined>;
|
|
@@ -10,25 +10,25 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
10
10
|
messageId: string;
|
|
11
11
|
}) => Promise<{
|
|
12
12
|
id: string;
|
|
13
|
-
tenantId: string;
|
|
14
|
-
projectId: string;
|
|
15
13
|
createdAt: string;
|
|
16
14
|
updatedAt: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
19
|
role: string;
|
|
20
|
-
conversationId: string;
|
|
21
20
|
fromSubAgentId: string | null;
|
|
22
21
|
toSubAgentId: string | null;
|
|
23
22
|
fromExternalAgentId: string | null;
|
|
24
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
conversationId: string;
|
|
25
27
|
fromTeamAgentId: string | null;
|
|
26
28
|
toTeamAgentId: string | null;
|
|
27
29
|
visibility: string;
|
|
28
30
|
messageType: string;
|
|
29
|
-
taskId: string | null;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -141,25 +141,25 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
141
141
|
}[]>;
|
|
142
142
|
declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
|
|
143
143
|
id: string;
|
|
144
|
-
tenantId: string;
|
|
145
|
-
projectId: string;
|
|
146
144
|
createdAt: string;
|
|
147
145
|
updatedAt: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
tenantId: string;
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
150
|
role: string;
|
|
151
|
-
conversationId: string;
|
|
152
151
|
fromSubAgentId: string | null;
|
|
153
152
|
toSubAgentId: string | null;
|
|
154
153
|
fromExternalAgentId: string | null;
|
|
155
154
|
toExternalAgentId: string | null;
|
|
155
|
+
taskId: string | null;
|
|
156
|
+
a2aTaskId: string | null;
|
|
157
|
+
conversationId: string;
|
|
156
158
|
fromTeamAgentId: string | null;
|
|
157
159
|
toTeamAgentId: string | null;
|
|
158
160
|
visibility: string;
|
|
159
161
|
messageType: string;
|
|
160
|
-
taskId: string | null;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -194,25 +194,25 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
194
194
|
messageId: string;
|
|
195
195
|
}) => Promise<{
|
|
196
196
|
id: string;
|
|
197
|
-
tenantId: string;
|
|
198
|
-
projectId: string;
|
|
199
197
|
createdAt: string;
|
|
200
198
|
updatedAt: string;
|
|
199
|
+
projectId: string;
|
|
200
|
+
tenantId: string;
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
203
|
role: string;
|
|
204
|
-
conversationId: string;
|
|
205
204
|
fromSubAgentId: string | null;
|
|
206
205
|
toSubAgentId: string | null;
|
|
207
206
|
fromExternalAgentId: string | null;
|
|
208
207
|
toExternalAgentId: string | null;
|
|
208
|
+
taskId: string | null;
|
|
209
|
+
a2aTaskId: string | null;
|
|
210
|
+
conversationId: string;
|
|
209
211
|
fromTeamAgentId: string | null;
|
|
210
212
|
toTeamAgentId: string | null;
|
|
211
213
|
visibility: string;
|
|
212
214
|
messageType: string;
|
|
213
|
-
taskId: string | null;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -7,20 +7,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
|
|
|
7
7
|
//#region src/data-access/runtime/tasks.d.ts
|
|
8
8
|
declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
|
|
9
9
|
id: string;
|
|
10
|
-
tenantId: string;
|
|
11
|
-
projectId: string;
|
|
12
|
-
agentId: string;
|
|
13
10
|
createdAt: string;
|
|
14
11
|
updatedAt: string;
|
|
12
|
+
agentId: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
tenantId: string;
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
|
+
status: string;
|
|
16
17
|
ref: {
|
|
17
18
|
type: "tag" | "commit" | "branch";
|
|
18
19
|
name: string;
|
|
19
20
|
hash: string;
|
|
20
21
|
} | null;
|
|
21
|
-
status: string;
|
|
22
|
-
contextId: string;
|
|
23
22
|
subAgentId: string;
|
|
23
|
+
contextId: string;
|
|
24
24
|
}>;
|
|
25
25
|
declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
|
|
26
26
|
id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ContextFetchDefinition, ConversationHistoryConfig, DatasetItemExpectedOutput, DatasetItemInput, EvaluationSuiteFilterCriteria, Filter, PassCriteria, ToolMcpConfig, ToolServerCapabilities } from "../../types/utility.js";
|
|
2
2
|
import { JsonSchemaProperty } from "../../validation/json-schemas.js";
|
|
3
|
-
import * as
|
|
3
|
+
import * as drizzle_orm20 from "drizzle-orm";
|
|
4
4
|
import * as drizzle_orm_pg_core1479 from "drizzle-orm/pg-core";
|
|
5
5
|
|
|
6
6
|
//#region src/db/manage/manage-schema.d.ts
|
|
@@ -814,13 +814,13 @@ declare const triggers: drizzle_orm_pg_core1479.PgTableWithColumns<{
|
|
|
814
814
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
815
815
|
encoding: "hex" | "base64";
|
|
816
816
|
signature: {
|
|
817
|
-
source: "query" | "
|
|
817
|
+
source: "query" | "body" | "header";
|
|
818
818
|
key: string;
|
|
819
819
|
prefix?: string | undefined;
|
|
820
820
|
regex?: string | undefined;
|
|
821
821
|
};
|
|
822
822
|
signedComponents: {
|
|
823
|
-
source: "literal" | "
|
|
823
|
+
source: "literal" | "body" | "header";
|
|
824
824
|
required: boolean;
|
|
825
825
|
key?: string | undefined;
|
|
826
826
|
value?: string | undefined;
|
|
@@ -851,13 +851,13 @@ declare const triggers: drizzle_orm_pg_core1479.PgTableWithColumns<{
|
|
|
851
851
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
852
852
|
encoding: "hex" | "base64";
|
|
853
853
|
signature: {
|
|
854
|
-
source: "query" | "
|
|
854
|
+
source: "query" | "body" | "header";
|
|
855
855
|
key: string;
|
|
856
856
|
prefix?: string | undefined;
|
|
857
857
|
regex?: string | undefined;
|
|
858
858
|
};
|
|
859
859
|
signedComponents: {
|
|
860
|
-
source: "literal" | "
|
|
860
|
+
source: "literal" | "body" | "header";
|
|
861
861
|
required: boolean;
|
|
862
862
|
key?: string | undefined;
|
|
863
863
|
value?: string | undefined;
|
|
@@ -6301,118 +6301,118 @@ declare const evaluationJobConfigEvaluatorRelations: drizzle_orm_pg_core1479.PgT
|
|
|
6301
6301
|
};
|
|
6302
6302
|
dialect: "pg";
|
|
6303
6303
|
}>;
|
|
6304
|
-
declare const projectsRelations:
|
|
6305
|
-
subAgents:
|
|
6306
|
-
agents:
|
|
6307
|
-
tools:
|
|
6308
|
-
functions:
|
|
6309
|
-
contextConfigs:
|
|
6310
|
-
externalAgents:
|
|
6311
|
-
dataComponents:
|
|
6312
|
-
artifactComponents:
|
|
6313
|
-
credentialReferences:
|
|
6314
|
-
skills:
|
|
6304
|
+
declare const projectsRelations: drizzle_orm20.Relations<"projects", {
|
|
6305
|
+
subAgents: drizzle_orm20.Many<"sub_agents">;
|
|
6306
|
+
agents: drizzle_orm20.Many<"agent">;
|
|
6307
|
+
tools: drizzle_orm20.Many<"tools">;
|
|
6308
|
+
functions: drizzle_orm20.Many<"functions">;
|
|
6309
|
+
contextConfigs: drizzle_orm20.Many<"context_configs">;
|
|
6310
|
+
externalAgents: drizzle_orm20.Many<"external_agents">;
|
|
6311
|
+
dataComponents: drizzle_orm20.Many<"data_components">;
|
|
6312
|
+
artifactComponents: drizzle_orm20.Many<"artifact_components">;
|
|
6313
|
+
credentialReferences: drizzle_orm20.Many<"credential_references">;
|
|
6314
|
+
skills: drizzle_orm20.Many<"skills">;
|
|
6315
6315
|
}>;
|
|
6316
|
-
declare const contextConfigsRelations:
|
|
6317
|
-
project:
|
|
6318
|
-
agents:
|
|
6316
|
+
declare const contextConfigsRelations: drizzle_orm20.Relations<"context_configs", {
|
|
6317
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6318
|
+
agents: drizzle_orm20.Many<"agent">;
|
|
6319
6319
|
}>;
|
|
6320
|
-
declare const subAgentsRelations:
|
|
6321
|
-
project:
|
|
6322
|
-
defaultForAgents:
|
|
6323
|
-
sourceRelations:
|
|
6324
|
-
targetRelations:
|
|
6325
|
-
toolRelations:
|
|
6326
|
-
functionToolRelations:
|
|
6327
|
-
dataComponentRelations:
|
|
6328
|
-
artifactComponentRelations:
|
|
6329
|
-
skillRelations:
|
|
6320
|
+
declare const subAgentsRelations: drizzle_orm20.Relations<"sub_agents", {
|
|
6321
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6322
|
+
defaultForAgents: drizzle_orm20.Many<"agent">;
|
|
6323
|
+
sourceRelations: drizzle_orm20.Many<"sub_agent_relations">;
|
|
6324
|
+
targetRelations: drizzle_orm20.Many<"sub_agent_relations">;
|
|
6325
|
+
toolRelations: drizzle_orm20.Many<"sub_agent_tool_relations">;
|
|
6326
|
+
functionToolRelations: drizzle_orm20.Many<"sub_agent_function_tool_relations">;
|
|
6327
|
+
dataComponentRelations: drizzle_orm20.Many<"sub_agent_data_components">;
|
|
6328
|
+
artifactComponentRelations: drizzle_orm20.Many<"sub_agent_artifact_components">;
|
|
6329
|
+
skillRelations: drizzle_orm20.Many<"sub_agent_skills">;
|
|
6330
6330
|
}>;
|
|
6331
|
-
declare const agentRelations:
|
|
6332
|
-
project:
|
|
6333
|
-
defaultSubAgent:
|
|
6334
|
-
contextConfig:
|
|
6335
|
-
functionTools:
|
|
6336
|
-
scheduledWorkflows:
|
|
6337
|
-
scheduledTriggers:
|
|
6331
|
+
declare const agentRelations: drizzle_orm20.Relations<"agent", {
|
|
6332
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6333
|
+
defaultSubAgent: drizzle_orm20.One<"sub_agents", false>;
|
|
6334
|
+
contextConfig: drizzle_orm20.One<"context_configs", false>;
|
|
6335
|
+
functionTools: drizzle_orm20.Many<"function_tools">;
|
|
6336
|
+
scheduledWorkflows: drizzle_orm20.Many<"scheduled_workflows">;
|
|
6337
|
+
scheduledTriggers: drizzle_orm20.Many<"scheduled_triggers">;
|
|
6338
6338
|
}>;
|
|
6339
|
-
declare const scheduledTriggersRelations:
|
|
6340
|
-
agent:
|
|
6341
|
-
scheduledWorkflow:
|
|
6339
|
+
declare const scheduledTriggersRelations: drizzle_orm20.Relations<"scheduled_triggers", {
|
|
6340
|
+
agent: drizzle_orm20.One<"agent", true>;
|
|
6341
|
+
scheduledWorkflow: drizzle_orm20.One<"scheduled_workflows", false>;
|
|
6342
6342
|
}>;
|
|
6343
|
-
declare const scheduledWorkflowsRelations:
|
|
6344
|
-
agent:
|
|
6345
|
-
scheduledTrigger:
|
|
6343
|
+
declare const scheduledWorkflowsRelations: drizzle_orm20.Relations<"scheduled_workflows", {
|
|
6344
|
+
agent: drizzle_orm20.One<"agent", true>;
|
|
6345
|
+
scheduledTrigger: drizzle_orm20.One<"scheduled_triggers", true>;
|
|
6346
6346
|
}>;
|
|
6347
|
-
declare const externalAgentsRelations:
|
|
6348
|
-
project:
|
|
6349
|
-
subAgentExternalAgentRelations:
|
|
6350
|
-
credentialReference:
|
|
6347
|
+
declare const externalAgentsRelations: drizzle_orm20.Relations<"external_agents", {
|
|
6348
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6349
|
+
subAgentExternalAgentRelations: drizzle_orm20.Many<"sub_agent_external_agent_relations">;
|
|
6350
|
+
credentialReference: drizzle_orm20.One<"credential_references", false>;
|
|
6351
6351
|
}>;
|
|
6352
|
-
declare const agentToolRelationsRelations:
|
|
6353
|
-
subAgent:
|
|
6354
|
-
tool:
|
|
6352
|
+
declare const agentToolRelationsRelations: drizzle_orm20.Relations<"sub_agent_tool_relations", {
|
|
6353
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6354
|
+
tool: drizzle_orm20.One<"tools", true>;
|
|
6355
6355
|
}>;
|
|
6356
|
-
declare const credentialReferencesRelations:
|
|
6357
|
-
project:
|
|
6358
|
-
tools:
|
|
6359
|
-
externalAgents:
|
|
6356
|
+
declare const credentialReferencesRelations: drizzle_orm20.Relations<"credential_references", {
|
|
6357
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6358
|
+
tools: drizzle_orm20.Many<"tools">;
|
|
6359
|
+
externalAgents: drizzle_orm20.Many<"external_agents">;
|
|
6360
6360
|
}>;
|
|
6361
|
-
declare const toolsRelations:
|
|
6362
|
-
project:
|
|
6363
|
-
subAgentRelations:
|
|
6364
|
-
credentialReference:
|
|
6361
|
+
declare const toolsRelations: drizzle_orm20.Relations<"tools", {
|
|
6362
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6363
|
+
subAgentRelations: drizzle_orm20.Many<"sub_agent_tool_relations">;
|
|
6364
|
+
credentialReference: drizzle_orm20.One<"credential_references", false>;
|
|
6365
6365
|
}>;
|
|
6366
|
-
declare const artifactComponentsRelations:
|
|
6367
|
-
project:
|
|
6368
|
-
subAgentRelations:
|
|
6366
|
+
declare const artifactComponentsRelations: drizzle_orm20.Relations<"artifact_components", {
|
|
6367
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6368
|
+
subAgentRelations: drizzle_orm20.Many<"sub_agent_artifact_components">;
|
|
6369
6369
|
}>;
|
|
6370
|
-
declare const subAgentArtifactComponentsRelations:
|
|
6371
|
-
subAgent:
|
|
6372
|
-
artifactComponent:
|
|
6370
|
+
declare const subAgentArtifactComponentsRelations: drizzle_orm20.Relations<"sub_agent_artifact_components", {
|
|
6371
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6372
|
+
artifactComponent: drizzle_orm20.One<"artifact_components", true>;
|
|
6373
6373
|
}>;
|
|
6374
|
-
declare const dataComponentsRelations:
|
|
6375
|
-
project:
|
|
6376
|
-
subAgentRelations:
|
|
6374
|
+
declare const dataComponentsRelations: drizzle_orm20.Relations<"data_components", {
|
|
6375
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6376
|
+
subAgentRelations: drizzle_orm20.Many<"sub_agent_data_components">;
|
|
6377
6377
|
}>;
|
|
6378
|
-
declare const subAgentDataComponentsRelations:
|
|
6379
|
-
subAgent:
|
|
6380
|
-
dataComponent:
|
|
6378
|
+
declare const subAgentDataComponentsRelations: drizzle_orm20.Relations<"sub_agent_data_components", {
|
|
6379
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6380
|
+
dataComponent: drizzle_orm20.One<"data_components", true>;
|
|
6381
6381
|
}>;
|
|
6382
|
-
declare const skillsRelations:
|
|
6383
|
-
project:
|
|
6384
|
-
subAgentRelations:
|
|
6382
|
+
declare const skillsRelations: drizzle_orm20.Relations<"skills", {
|
|
6383
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6384
|
+
subAgentRelations: drizzle_orm20.Many<"sub_agent_skills">;
|
|
6385
6385
|
}>;
|
|
6386
|
-
declare const subAgentSkillsRelations:
|
|
6387
|
-
subAgent:
|
|
6388
|
-
skill:
|
|
6386
|
+
declare const subAgentSkillsRelations: drizzle_orm20.Relations<"sub_agent_skills", {
|
|
6387
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6388
|
+
skill: drizzle_orm20.One<"skills", true>;
|
|
6389
6389
|
}>;
|
|
6390
|
-
declare const functionsRelations:
|
|
6391
|
-
functionTools:
|
|
6392
|
-
project:
|
|
6390
|
+
declare const functionsRelations: drizzle_orm20.Relations<"functions", {
|
|
6391
|
+
functionTools: drizzle_orm20.Many<"function_tools">;
|
|
6392
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6393
6393
|
}>;
|
|
6394
|
-
declare const subAgentRelationsRelations:
|
|
6395
|
-
agent:
|
|
6396
|
-
sourceSubAgent:
|
|
6397
|
-
targetSubAgent:
|
|
6394
|
+
declare const subAgentRelationsRelations: drizzle_orm20.Relations<"sub_agent_relations", {
|
|
6395
|
+
agent: drizzle_orm20.One<"agent", true>;
|
|
6396
|
+
sourceSubAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6397
|
+
targetSubAgent: drizzle_orm20.One<"sub_agents", false>;
|
|
6398
6398
|
}>;
|
|
6399
|
-
declare const functionToolsRelations:
|
|
6400
|
-
project:
|
|
6401
|
-
agent:
|
|
6402
|
-
function:
|
|
6403
|
-
subAgentRelations:
|
|
6399
|
+
declare const functionToolsRelations: drizzle_orm20.Relations<"function_tools", {
|
|
6400
|
+
project: drizzle_orm20.One<"projects", true>;
|
|
6401
|
+
agent: drizzle_orm20.One<"agent", true>;
|
|
6402
|
+
function: drizzle_orm20.One<"functions", true>;
|
|
6403
|
+
subAgentRelations: drizzle_orm20.Many<"sub_agent_function_tool_relations">;
|
|
6404
6404
|
}>;
|
|
6405
|
-
declare const subAgentFunctionToolRelationsRelations:
|
|
6406
|
-
subAgent:
|
|
6407
|
-
functionTool:
|
|
6405
|
+
declare const subAgentFunctionToolRelationsRelations: drizzle_orm20.Relations<"sub_agent_function_tool_relations", {
|
|
6406
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6407
|
+
functionTool: drizzle_orm20.One<"function_tools", true>;
|
|
6408
6408
|
}>;
|
|
6409
|
-
declare const subAgentExternalAgentRelationsRelations:
|
|
6410
|
-
subAgent:
|
|
6411
|
-
externalAgent:
|
|
6409
|
+
declare const subAgentExternalAgentRelationsRelations: drizzle_orm20.Relations<"sub_agent_external_agent_relations", {
|
|
6410
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6411
|
+
externalAgent: drizzle_orm20.One<"external_agents", true>;
|
|
6412
6412
|
}>;
|
|
6413
|
-
declare const subAgentTeamAgentRelationsRelations:
|
|
6414
|
-
subAgent:
|
|
6415
|
-
targetAgent:
|
|
6413
|
+
declare const subAgentTeamAgentRelationsRelations: drizzle_orm20.Relations<"sub_agent_team_agent_relations", {
|
|
6414
|
+
subAgent: drizzle_orm20.One<"sub_agents", true>;
|
|
6415
|
+
targetAgent: drizzle_orm20.One<"agent", true>;
|
|
6416
6416
|
}>;
|
|
6417
6417
|
/**
|
|
6418
6418
|
* Links agents to dataset run configs. Many-to-many relationship that
|
|
@@ -338,7 +338,7 @@ const subAgentSkills = pgTable("sub_agent_skills", {
|
|
|
338
338
|
],
|
|
339
339
|
name: "sub_agent_skills_skill_fk"
|
|
340
340
|
}).onDelete("cascade"),
|
|
341
|
-
unique("sub_agent_skills_sub_agent_skill_unique").on(table.
|
|
341
|
+
unique("sub_agent_skills_sub_agent_skill_unique").on(table.subAgentId, table.skillId),
|
|
342
342
|
index("sub_agent_skills_skill_idx").on(table.skillId)
|
|
343
343
|
]);
|
|
344
344
|
const subAgentRelations = pgTable("sub_agent_relations", {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Part } from "../../types/a2a.js";
|
|
2
2
|
import { ConversationMetadata, MessageContent, MessageMetadata, TaskMetadataConfig } from "../../types/utility.js";
|
|
3
3
|
import { account, deviceCode, invitation, member, organization, session, ssoProvider, user, verification } from "../../auth/auth-schema.js";
|
|
4
|
-
import * as
|
|
4
|
+
import * as drizzle_orm111 from "drizzle-orm";
|
|
5
5
|
import * as drizzle_orm_pg_core1831 from "drizzle-orm/pg-core";
|
|
6
6
|
|
|
7
7
|
//#region src/db/runtime/runtime-schema.d.ts
|
|
@@ -3827,27 +3827,27 @@ declare const evaluationResult: drizzle_orm_pg_core1831.PgTableWithColumns<{
|
|
|
3827
3827
|
};
|
|
3828
3828
|
dialect: "pg";
|
|
3829
3829
|
}>;
|
|
3830
|
-
declare const conversationsRelations:
|
|
3831
|
-
messages:
|
|
3830
|
+
declare const conversationsRelations: drizzle_orm111.Relations<"conversations", {
|
|
3831
|
+
messages: drizzle_orm111.Many<"messages">;
|
|
3832
3832
|
}>;
|
|
3833
|
-
declare const messagesRelations:
|
|
3834
|
-
conversation:
|
|
3835
|
-
task:
|
|
3836
|
-
parentMessage:
|
|
3837
|
-
childMessages:
|
|
3833
|
+
declare const messagesRelations: drizzle_orm111.Relations<"messages", {
|
|
3834
|
+
conversation: drizzle_orm111.One<"conversations", true>;
|
|
3835
|
+
task: drizzle_orm111.One<"tasks", false>;
|
|
3836
|
+
parentMessage: drizzle_orm111.One<"messages", false>;
|
|
3837
|
+
childMessages: drizzle_orm111.Many<"messages">;
|
|
3838
3838
|
}>;
|
|
3839
|
-
declare const tasksRelations:
|
|
3840
|
-
messages:
|
|
3841
|
-
ledgerArtifacts:
|
|
3842
|
-
parentRelations:
|
|
3843
|
-
childRelations:
|
|
3839
|
+
declare const tasksRelations: drizzle_orm111.Relations<"tasks", {
|
|
3840
|
+
messages: drizzle_orm111.Many<"messages">;
|
|
3841
|
+
ledgerArtifacts: drizzle_orm111.Many<"ledger_artifacts">;
|
|
3842
|
+
parentRelations: drizzle_orm111.Many<"task_relations">;
|
|
3843
|
+
childRelations: drizzle_orm111.Many<"task_relations">;
|
|
3844
3844
|
}>;
|
|
3845
|
-
declare const taskRelationsRelations:
|
|
3846
|
-
parentTask:
|
|
3847
|
-
childTask:
|
|
3845
|
+
declare const taskRelationsRelations: drizzle_orm111.Relations<"task_relations", {
|
|
3846
|
+
parentTask: drizzle_orm111.One<"tasks", true>;
|
|
3847
|
+
childTask: drizzle_orm111.One<"tasks", true>;
|
|
3848
3848
|
}>;
|
|
3849
|
-
declare const ledgerArtifactsRelations:
|
|
3850
|
-
task:
|
|
3849
|
+
declare const ledgerArtifactsRelations: drizzle_orm111.Relations<"ledger_artifacts", {
|
|
3850
|
+
task: drizzle_orm111.One<"tasks", true>;
|
|
3851
3851
|
}>;
|
|
3852
3852
|
/**
|
|
3853
3853
|
* Tracks GitHub App installations linked to tenants.
|
|
@@ -4679,19 +4679,19 @@ declare const workAppGitHubMcpToolAccessMode: drizzle_orm_pg_core1831.PgTableWit
|
|
|
4679
4679
|
};
|
|
4680
4680
|
dialect: "pg";
|
|
4681
4681
|
}>;
|
|
4682
|
-
declare const workAppGitHubInstallationsRelations:
|
|
4683
|
-
repositories:
|
|
4682
|
+
declare const workAppGitHubInstallationsRelations: drizzle_orm111.Relations<"work_app_github_installations", {
|
|
4683
|
+
repositories: drizzle_orm111.Many<"work_app_github_repositories">;
|
|
4684
4684
|
}>;
|
|
4685
|
-
declare const workAppGitHubRepositoriesRelations:
|
|
4686
|
-
installation:
|
|
4687
|
-
projectAccess:
|
|
4688
|
-
mcpToolAccess:
|
|
4685
|
+
declare const workAppGitHubRepositoriesRelations: drizzle_orm111.Relations<"work_app_github_repositories", {
|
|
4686
|
+
installation: drizzle_orm111.One<"work_app_github_installations", true>;
|
|
4687
|
+
projectAccess: drizzle_orm111.Many<"work_app_github_project_repository_access">;
|
|
4688
|
+
mcpToolAccess: drizzle_orm111.Many<"work_app_github_mcp_tool_repository_access">;
|
|
4689
4689
|
}>;
|
|
4690
|
-
declare const workAppGitHubProjectRepositoryAccessRelations:
|
|
4691
|
-
repository:
|
|
4690
|
+
declare const workAppGitHubProjectRepositoryAccessRelations: drizzle_orm111.Relations<"work_app_github_project_repository_access", {
|
|
4691
|
+
repository: drizzle_orm111.One<"work_app_github_repositories", true>;
|
|
4692
4692
|
}>;
|
|
4693
|
-
declare const workAppGitHubMcpToolRepositoryAccessRelations:
|
|
4694
|
-
repository:
|
|
4693
|
+
declare const workAppGitHubMcpToolRepositoryAccessRelations: drizzle_orm111.Relations<"work_app_github_mcp_tool_repository_access", {
|
|
4694
|
+
repository: drizzle_orm111.One<"work_app_github_repositories", true>;
|
|
4695
4695
|
}>;
|
|
4696
4696
|
//#endregion
|
|
4697
4697
|
export { account, apiKeys, contextCache, conversations, conversationsRelations, datasetRun, datasetRunConversationRelations, deviceCode, evaluationResult, evaluationRun, invitation, ledgerArtifacts, ledgerArtifactsRelations, member, messages, messagesRelations, organization, projectMetadata, runtime_schema_d_exports, scheduledTriggerInvocations, session, ssoProvider, taskRelations, taskRelationsRelations, tasks, tasksRelations, triggerInvocations, user, verification, workAppGitHubInstallations, workAppGitHubInstallationsRelations, workAppGitHubMcpToolAccessMode, workAppGitHubMcpToolRepositoryAccess, workAppGitHubMcpToolRepositoryAccessRelations, workAppGitHubProjectAccessMode, workAppGitHubProjectRepositoryAccess, workAppGitHubProjectRepositoryAccessRelations, workAppGitHubRepositories, workAppGitHubRepositoriesRelations, workAppSlackChannelAgentConfigs, workAppSlackUserMappings, workAppSlackWorkspaces };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "@hono/zod-openapi";
|
|
2
|
-
import * as
|
|
2
|
+
import * as drizzle_zod15 from "drizzle-zod";
|
|
3
3
|
import { AnySQLiteTable } from "drizzle-orm/sqlite-core";
|
|
4
4
|
|
|
5
5
|
//#region src/validation/drizzle-schema-helpers.d.ts
|
|
6
|
-
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
7
|
-
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>):
|
|
6
|
+
declare function createSelectSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"select", T["_"]["columns"], drizzle_zod15.BuildRefine<T["_"]["columns"], undefined>, undefined>;
|
|
7
|
+
declare function createInsertSchemaWithModifiers<T extends AnySQLiteTable>(table: T, overrides?: Partial<Record<keyof T['_']['columns'], (schema: z.ZodTypeAny) => z.ZodTypeAny>>): drizzle_zod15.BuildSchema<"insert", T["_"]["columns"], drizzle_zod15.BuildRefine<Pick<T["_"]["columns"], keyof T["$inferInsert"]>, undefined>, undefined>;
|
|
8
8
|
declare const createSelectSchema: typeof createSelectSchemaWithModifiers;
|
|
9
9
|
declare const createInsertSchema: typeof createInsertSchemaWithModifiers;
|
|
10
10
|
/**
|