@inkeep/agents-core 0.0.0-dev-20260219165156 → 0.0.0-dev-20260219204727

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 (28) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +148 -148
  3. package/dist/auth/auth.d.ts +53 -53
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/data-access/manage/agents.d.ts +38 -38
  7. package/dist/data-access/manage/artifactComponents.d.ts +10 -10
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  10. package/dist/data-access/manage/functionTools.d.ts +14 -14
  11. package/dist/data-access/manage/scope-helpers.d.ts +5 -5
  12. package/dist/data-access/manage/skills.d.ts +15 -15
  13. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  14. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  15. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  16. package/dist/data-access/manage/subAgents.d.ts +18 -18
  17. package/dist/data-access/manage/tools.d.ts +24 -24
  18. package/dist/data-access/manage/triggers.d.ts +2 -2
  19. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  20. package/dist/data-access/runtime/conversations.d.ts +35 -35
  21. package/dist/data-access/runtime/messages.d.ts +18 -18
  22. package/dist/data-access/runtime/tasks.d.ts +8 -8
  23. package/dist/db/manage/manage-schema.d.ts +357 -357
  24. package/dist/db/runtime/runtime-schema.d.ts +268 -268
  25. package/dist/validation/dolt-schemas.d.ts +1 -1
  26. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  27. package/dist/validation/schemas.d.ts +1841 -1841
  28. package/package.json +1 -1
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- id: string;
22
21
  name: string;
22
+ headers: Record<string, string> | null;
23
+ id: string;
23
24
  createdAt: string;
24
25
  updatedAt: string;
25
- headers: Record<string, string> | null;
26
- description: string | null;
27
- tenantId: string;
28
26
  projectId: string;
27
+ tenantId: string;
28
+ description: string | null;
29
29
  config: {
30
30
  type: "mcp";
31
31
  mcp: ToolMcpConfig;
@@ -76,14 +76,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- id: string;
80
79
  name: string;
80
+ headers: Record<string, string> | null;
81
+ id: string;
81
82
  createdAt: string;
82
83
  updatedAt: string;
83
- headers: Record<string, string> | null;
84
- description: string | null;
85
- tenantId: string;
86
84
  projectId: string;
85
+ tenantId: string;
86
+ description: string | null;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -133,18 +133,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
+ headers: Record<string, string> | null;
136
137
  id: string;
137
138
  createdAt: string;
138
139
  updatedAt: string;
139
- headers: Record<string, string> | null;
140
- tenantId: string;
141
- projectId: string;
142
140
  agentId: string;
141
+ projectId: string;
142
+ tenantId: string;
143
+ subAgentId: string;
143
144
  toolId: string;
144
145
  toolPolicies: Record<string, {
145
146
  needsApproval?: boolean;
146
147
  }> | null;
147
- subAgentId: string;
148
148
  selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -152,18 +152,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
+ headers: Record<string, string> | null;
155
156
  id: string;
156
157
  createdAt: string;
157
158
  updatedAt: string;
158
- headers: Record<string, string> | null;
159
- tenantId: string;
160
- projectId: string;
161
159
  agentId: string;
160
+ projectId: string;
161
+ tenantId: string;
162
+ subAgentId: string;
162
163
  toolId: string;
163
164
  toolPolicies: Record<string, {
164
165
  needsApproval?: boolean;
165
166
  }> | null;
166
- subAgentId: string;
167
167
  selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
@@ -180,18 +180,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
+ headers: Record<string, string> | null;
183
184
  id: string;
184
185
  createdAt: string;
185
186
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
- tenantId: string;
188
- projectId: string;
189
187
  agentId: string;
188
+ projectId: string;
189
+ tenantId: string;
190
+ subAgentId: string;
190
191
  toolId: string;
191
192
  toolPolicies: Record<string, {
192
193
  needsApproval?: boolean;
193
194
  }> | null;
194
- subAgentId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -200,14 +200,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- id: string;
204
203
  name: string;
204
+ headers: Record<string, string> | null;
205
+ id: string;
205
206
  createdAt: string;
206
207
  updatedAt: string;
207
- headers: Record<string, string> | null;
208
- description: string | null;
209
- tenantId: string;
210
208
  projectId: string;
209
+ tenantId: string;
210
+ description: string | null;
211
211
  config: {
212
212
  type: "mcp";
213
213
  mcp: ToolMcpConfig;
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "query" | "header" | "body";
43
+ source: "body" | "query" | "header";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "body" | "header" | "literal";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -7,28 +7,28 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- id: string;
11
10
  name: string | null;
11
+ id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
15
- tenantId: string;
16
- projectId: string;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  publicId: string;
19
19
  keyHash: string;
20
20
  keyPrefix: string;
21
21
  lastUsedAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- id: string;
25
24
  name: string | null;
25
+ id: string;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
29
- tenantId: string;
30
- projectId: string;
31
29
  agentId: string;
30
+ projectId: string;
31
+ tenantId: string;
32
32
  publicId: string;
33
33
  keyHash: string;
34
34
  keyPrefix: string;
@@ -38,14 +38,14 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- id: string;
42
41
  name: string | null;
42
+ id: string;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
46
- tenantId: string;
47
- projectId: string;
48
46
  agentId: string;
47
+ projectId: string;
48
+ tenantId: string;
49
49
  publicId: string;
50
50
  keyHash: string;
51
51
  keyPrefix: string;
@@ -65,14 +65,14 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- id: string;
69
68
  name: string | null;
69
+ id: string;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
73
- tenantId: string;
74
- projectId: string;
75
73
  agentId: string;
74
+ projectId: string;
75
+ tenantId: string;
76
76
  publicId: string;
77
77
  keyHash: string;
78
78
  keyPrefix: string;
@@ -15,21 +15,21 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ metadata: ConversationMetadata | null;
18
19
  id: string;
20
+ userId: string | null;
19
21
  createdAt: string;
20
22
  updatedAt: string;
23
+ agentId: string | null;
24
+ projectId: string;
25
+ tenantId: string;
26
+ title: string | null;
27
+ activeSubAgentId: string;
21
28
  ref: {
22
- type: "commit" | "tag" | "branch";
29
+ type: "tag" | "commit" | "branch";
23
30
  name: string;
24
31
  hash: string;
25
32
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- tenantId: string;
29
- projectId: string;
30
- agentId: string | null;
31
- title: string | null;
32
- activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
35
35
  declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "commit" | "tag" | "branch";
46
+ type: "tag" | "commit" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "commit" | "tag" | "branch";
72
+ type: "tag" | "commit" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -84,21 +84,21 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ metadata: ConversationMetadata | null;
87
88
  id: string;
89
+ userId: string | null;
88
90
  createdAt: string;
89
91
  updatedAt: string;
92
+ agentId: string | null;
93
+ projectId: string;
94
+ tenantId: string;
95
+ title: string | null;
96
+ activeSubAgentId: string;
90
97
  ref: {
91
- type: "commit" | "tag" | "branch";
98
+ type: "tag" | "commit" | "branch";
92
99
  name: string;
93
100
  hash: string;
94
101
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- tenantId: string;
98
- projectId: string;
99
- agentId: string | null;
100
- title: string | null;
101
- activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
104
104
  declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input: ConversationInsert) => Promise<{
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "commit" | "tag" | "branch";
110
+ type: "tag" | "commit" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -120,21 +120,21 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ metadata: ConversationMetadata | null;
123
124
  id: string;
125
+ userId: string | null;
124
126
  createdAt: string;
125
127
  updatedAt: string;
128
+ agentId: string | null;
129
+ projectId: string;
130
+ tenantId: string;
131
+ title: string | null;
132
+ activeSubAgentId: string;
126
133
  ref: {
127
- type: "commit" | "tag" | "branch";
134
+ type: "tag" | "commit" | "branch";
128
135
  name: string;
129
136
  hash: string;
130
137
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- tenantId: string;
134
- projectId: string;
135
- agentId: string | null;
136
- title: string | null;
137
- activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
140
140
  /**
@@ -152,21 +152,21 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ metadata: ConversationMetadata | null;
155
156
  id: string;
157
+ userId: string | null;
156
158
  createdAt: string;
157
159
  updatedAt: string;
160
+ agentId: string | null;
161
+ projectId: string;
162
+ tenantId: string;
163
+ title: string | null;
164
+ activeSubAgentId: string;
158
165
  ref: {
159
- type: "commit" | "tag" | "branch";
166
+ type: "tag" | "commit" | "branch";
160
167
  name: string;
161
168
  hash: string;
162
169
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- tenantId: string;
166
- projectId: string;
167
- agentId: string | null;
168
- title: string | null;
169
- activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
172
172
  /**
@@ -9,26 +9,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
+ metadata: MessageMetadata | null;
12
13
  id: string;
14
+ role: string;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- metadata: MessageMetadata | null;
16
- role: string;
17
- tenantId: string;
18
17
  projectId: string;
18
+ tenantId: string;
19
19
  content: MessageContent;
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: {
@@ -140,26 +140,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
140
140
  id: string;
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
+ metadata: MessageMetadata | null;
143
144
  id: string;
145
+ role: string;
144
146
  createdAt: string;
145
147
  updatedAt: string;
146
- metadata: MessageMetadata | null;
147
- role: string;
148
- tenantId: string;
149
148
  projectId: string;
149
+ tenantId: string;
150
150
  content: MessageContent;
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: {
@@ -193,26 +193,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
193
193
  scopes: ProjectScopeConfig;
194
194
  messageId: string;
195
195
  }) => Promise<{
196
+ metadata: MessageMetadata | null;
196
197
  id: string;
198
+ role: string;
197
199
  createdAt: string;
198
200
  updatedAt: string;
199
- metadata: MessageMetadata | null;
200
- role: string;
201
- tenantId: string;
202
201
  projectId: string;
202
+ tenantId: string;
203
203
  content: MessageContent;
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: {
@@ -6,20 +6,20 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
+ metadata: TaskMetadataConfig | null;
9
10
  id: string;
10
11
  createdAt: string;
11
12
  updatedAt: string;
13
+ status: string;
14
+ agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ subAgentId: string;
12
18
  ref: {
13
- type: "commit" | "tag" | "branch";
19
+ type: "tag" | "commit" | "branch";
14
20
  name: string;
15
21
  hash: string;
16
22
  } | null;
17
- metadata: TaskMetadataConfig | null;
18
- status: string;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string;
22
- subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "commit" | "tag" | "branch";
39
+ type: "tag" | "commit" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;