@inkeep/agents-core 0.0.0-dev-20260125001234 → 0.0.0-dev-20260126174131

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/dist/auth/auth-schema.d.ts +82 -82
  2. package/dist/auth/auth.d.ts +57 -57
  3. package/dist/auth/permissions.d.ts +13 -13
  4. package/dist/client-exports.d.ts +3 -3
  5. package/dist/context/TemplateEngine.d.ts +0 -6
  6. package/dist/context/TemplateEngine.js +4 -18
  7. package/dist/data-access/manage/agents.d.ts +46 -46
  8. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  9. package/dist/data-access/manage/contextConfigs.d.ts +20 -20
  10. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  11. package/dist/data-access/manage/functionTools.d.ts +18 -18
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +34 -34
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  15. package/dist/data-access/manage/subAgents.d.ts +18 -18
  16. package/dist/data-access/manage/tools.d.ts +30 -30
  17. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  18. package/dist/data-access/runtime/conversations.d.ts +27 -27
  19. package/dist/data-access/runtime/messages.d.ts +15 -15
  20. package/dist/data-access/runtime/tasks.d.ts +6 -6
  21. package/dist/db/manage/manage-schema.d.ts +377 -377
  22. package/dist/db/runtime/runtime-schema.d.ts +181 -181
  23. package/dist/utils/JsonTransformer.d.ts +1 -3
  24. package/dist/utils/JsonTransformer.js +14 -23
  25. package/dist/utils/jmespath-utils.d.ts +152 -0
  26. package/dist/utils/jmespath-utils.js +213 -0
  27. package/dist/utils/signature-validation.d.ts +2 -39
  28. package/dist/utils/signature-validation.js +1 -69
  29. package/dist/utils/trigger-auth.js +3 -5
  30. package/dist/validation/dolt-schemas.d.ts +1 -1
  31. package/dist/validation/schemas.d.ts +1438 -1438
  32. package/dist/validation/schemas.js +32 -36
  33. package/package.json +1 -1
@@ -18,19 +18,19 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- tenantId: string;
22
- projectId: string;
23
21
  id: string;
22
+ createdAt: string;
24
23
  name: string;
24
+ updatedAt: string;
25
+ projectId: string;
26
+ tenantId: string;
25
27
  description: string | null;
28
+ headers: Record<string, string> | null;
26
29
  config: {
27
30
  type: "mcp";
28
31
  mcp: ToolMcpConfig;
29
32
  };
30
33
  credentialReferenceId: string | null;
31
- createdAt: string;
32
- updatedAt: string;
33
- headers: Record<string, string> | null;
34
34
  credentialScope: string;
35
35
  imageUrl: string | null;
36
36
  capabilities: ToolServerCapabilities | null;
@@ -74,19 +74,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
74
74
  };
75
75
  }>;
76
76
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
77
- tenantId: string;
78
- projectId: string;
79
77
  id: string;
78
+ createdAt: string;
80
79
  name: string;
80
+ updatedAt: string;
81
+ projectId: string;
82
+ tenantId: string;
81
83
  description: string | null;
84
+ headers: Record<string, string> | null;
82
85
  config: {
83
86
  type: "mcp";
84
87
  mcp: ToolMcpConfig;
85
88
  };
86
89
  credentialReferenceId: string | null;
87
- createdAt: string;
88
- updatedAt: string;
89
- headers: Record<string, string> | null;
90
90
  credentialScope: string;
91
91
  imageUrl: string | null;
92
92
  capabilities: ToolServerCapabilities | null;
@@ -129,18 +129,18 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
129
129
  needsApproval?: boolean;
130
130
  }> | null;
131
131
  }) => Promise<{
132
- tenantId: string;
133
- projectId: string;
134
132
  id: string;
135
- agentId: string;
136
133
  createdAt: string;
137
134
  updatedAt: string;
138
- toolId: string;
135
+ agentId: string;
136
+ projectId: string;
137
+ tenantId: string;
139
138
  headers: Record<string, string> | null;
139
+ subAgentId: string;
140
+ toolId: string;
140
141
  toolPolicies: Record<string, {
141
142
  needsApproval?: boolean;
142
143
  }> | null;
143
- subAgentId: string;
144
144
  selectedTools: string[] | null;
145
145
  }>;
146
146
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -148,18 +148,18 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
148
148
  subAgentId: string;
149
149
  toolId: string;
150
150
  }) => Promise<{
151
- tenantId: string;
152
- projectId: string;
153
151
  id: string;
154
- agentId: string;
155
152
  createdAt: string;
156
153
  updatedAt: string;
157
- toolId: string;
154
+ agentId: string;
155
+ projectId: string;
156
+ tenantId: string;
158
157
  headers: Record<string, string> | null;
158
+ subAgentId: string;
159
+ toolId: string;
159
160
  toolPolicies: Record<string, {
160
161
  needsApproval?: boolean;
161
162
  }> | null;
162
- subAgentId: string;
163
163
  selectedTools: string[] | null;
164
164
  }>;
165
165
  /**
@@ -176,18 +176,18 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
176
176
  }> | null;
177
177
  relationId?: string;
178
178
  }) => Promise<{
179
- tenantId: string;
180
- projectId: string;
181
179
  id: string;
182
- agentId: string;
183
180
  createdAt: string;
184
181
  updatedAt: string;
185
- toolId: string;
182
+ agentId: string;
183
+ projectId: string;
184
+ tenantId: string;
186
185
  headers: Record<string, string> | null;
186
+ subAgentId: string;
187
+ toolId: string;
187
188
  toolPolicies: Record<string, {
188
189
  needsApproval?: boolean;
189
190
  }> | null;
190
- subAgentId: string;
191
191
  selectedTools: string[] | null;
192
192
  }>;
193
193
  /**
@@ -196,19 +196,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
196
196
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
197
197
  data: ToolInsert;
198
198
  }) => Promise<{
199
- tenantId: string;
200
- projectId: string;
201
199
  id: string;
200
+ createdAt: string;
202
201
  name: string;
202
+ updatedAt: string;
203
+ projectId: string;
204
+ tenantId: string;
203
205
  description: string | null;
206
+ headers: Record<string, string> | null;
204
207
  config: {
205
208
  type: "mcp";
206
209
  mcp: ToolMcpConfig;
207
210
  };
208
211
  credentialReferenceId: string | null;
209
- createdAt: string;
210
- updatedAt: string;
211
- headers: Record<string, string> | null;
212
212
  credentialScope: string;
213
213
  imageUrl: string | null;
214
214
  capabilities: ToolServerCapabilities | null;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- tenantId: string;
11
- projectId: string;
12
10
  id: string;
11
+ createdAt: string;
13
12
  name: string | null;
13
+ updatedAt: string;
14
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
+ expiresAt: string | null;
15
18
  publicId: string;
16
19
  keyHash: string;
17
20
  keyPrefix: string;
18
21
  lastUsedAt: string | null;
19
- expiresAt: string | null;
20
- createdAt: string;
21
- updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- tenantId: string;
25
- projectId: string;
26
24
  id: string;
25
+ createdAt: string;
27
26
  name: string | null;
27
+ updatedAt: string;
28
28
  agentId: string;
29
+ projectId: string;
30
+ tenantId: string;
31
+ expiresAt: string | null;
29
32
  publicId: string;
30
33
  keyHash: string;
31
34
  keyPrefix: string;
32
35
  lastUsedAt: string | null;
33
- expiresAt: string | null;
34
- createdAt: string;
35
- updatedAt: string;
36
36
  } | undefined>;
37
37
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- tenantId: string;
42
- projectId: string;
43
41
  id: string;
42
+ createdAt: string;
44
43
  name: string | null;
44
+ updatedAt: string;
45
45
  agentId: string;
46
+ projectId: string;
47
+ tenantId: string;
48
+ expiresAt: string | null;
46
49
  publicId: string;
47
50
  keyHash: string;
48
51
  keyPrefix: string;
49
52
  lastUsedAt: string | null;
50
- expiresAt: string | null;
51
- createdAt: string;
52
- updatedAt: string;
53
53
  }[]>;
54
54
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
55
55
  scopes: ProjectScopeConfig;
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- tenantId: string;
69
- projectId: string;
70
68
  id: string;
69
+ createdAt: string;
71
70
  name: string | null;
71
+ updatedAt: string;
72
72
  agentId: string;
73
+ projectId: string;
74
+ tenantId: string;
75
+ expiresAt: string | null;
73
76
  publicId: string;
74
77
  keyHash: string;
75
78
  keyPrefix: string;
76
79
  lastUsedAt: string | null;
77
- expiresAt: string | null;
78
- createdAt: string;
79
- updatedAt: string;
80
80
  }>;
81
81
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
82
82
  scopes: ProjectScopeConfig;
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- tenantId: string;
19
- projectId: string;
20
18
  id: string;
21
- title: string | null;
22
- agentId: string | null;
23
19
  createdAt: string;
24
20
  updatedAt: string;
25
- userId: string | null;
21
+ agentId: string | null;
22
+ projectId: string;
23
+ tenantId: string;
24
+ title: string | null;
26
25
  metadata: ConversationMetadata | null;
27
26
  ref: {
28
- type: "commit" | "tag" | "branch";
27
+ type: "tag" | "commit" | "branch";
29
28
  name: string;
30
29
  hash: string;
31
30
  } | null;
31
+ userId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -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,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- tenantId: string;
88
- projectId: string;
89
87
  id: string;
90
- title: string | null;
91
- agentId: string | null;
92
88
  createdAt: string;
93
89
  updatedAt: string;
94
- userId: string | null;
90
+ agentId: string | null;
91
+ projectId: string;
92
+ tenantId: string;
93
+ title: string | null;
95
94
  metadata: ConversationMetadata | null;
96
95
  ref: {
97
- type: "commit" | "tag" | "branch";
96
+ type: "tag" | "commit" | "branch";
98
97
  name: string;
99
98
  hash: string;
100
99
  } | null;
100
+ userId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -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,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- tenantId: string;
124
- projectId: string;
125
123
  id: string;
126
- title: string | null;
127
- agentId: string | null;
128
124
  createdAt: string;
129
125
  updatedAt: string;
130
- userId: string | null;
126
+ agentId: string | null;
127
+ projectId: string;
128
+ tenantId: string;
129
+ title: string | null;
131
130
  metadata: ConversationMetadata | null;
132
131
  ref: {
133
- type: "commit" | "tag" | "branch";
132
+ type: "tag" | "commit" | "branch";
134
133
  name: string;
135
134
  hash: string;
136
135
  } | null;
136
+ userId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- tenantId: string;
156
- projectId: string;
157
155
  id: string;
158
- title: string | null;
159
- agentId: string | null;
160
156
  createdAt: string;
161
157
  updatedAt: string;
162
- userId: string | null;
158
+ agentId: string | null;
159
+ projectId: string;
160
+ tenantId: string;
161
+ title: string | null;
163
162
  metadata: ConversationMetadata | null;
164
163
  ref: {
165
- type: "commit" | "tag" | "branch";
164
+ type: "tag" | "commit" | "branch";
166
165
  name: string;
167
166
  hash: string;
168
167
  } | null;
168
+ userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -9,26 +9,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  scopes: ProjectScopeConfig;
10
10
  messageId: string;
11
11
  }) => Promise<{
12
- tenantId: string;
13
- projectId: string;
14
12
  id: 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;
20
21
  fromSubAgentId: string | null;
21
22
  toSubAgentId: string | null;
22
23
  fromExternalAgentId: string | null;
23
24
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- conversationId: string;
27
25
  fromTeamAgentId: string | null;
28
26
  toTeamAgentId: string | null;
29
27
  visibility: string;
30
28
  messageType: string;
29
+ taskId: string | null;
31
30
  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
- tenantId: string;
144
- projectId: string;
145
143
  id: 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;
151
152
  fromSubAgentId: string | null;
152
153
  toSubAgentId: string | null;
153
154
  fromExternalAgentId: string | null;
154
155
  toExternalAgentId: string | null;
155
- taskId: string | null;
156
- a2aTaskId: string | null;
157
- conversationId: string;
158
156
  fromTeamAgentId: string | null;
159
157
  toTeamAgentId: string | null;
160
158
  visibility: string;
161
159
  messageType: string;
160
+ taskId: string | null;
162
161
  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
- tenantId: string;
197
- projectId: string;
198
196
  id: 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;
204
205
  fromSubAgentId: string | null;
205
206
  toSubAgentId: string | null;
206
207
  fromExternalAgentId: string | null;
207
208
  toExternalAgentId: string | null;
208
- taskId: string | null;
209
- a2aTaskId: string | null;
210
- conversationId: string;
211
209
  fromTeamAgentId: string | null;
212
210
  toTeamAgentId: string | null;
213
211
  visibility: string;
214
212
  messageType: string;
213
+ taskId: string | null;
215
214
  parentMessageId: string | null;
215
+ a2aTaskId: string | null;
216
216
  a2aSessionId: string | null;
217
217
  }>;
218
218
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -6,21 +6,21 @@ 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
- tenantId: string;
10
- projectId: string;
11
9
  id: 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
16
  ref: {
17
- type: "commit" | "tag" | "branch";
17
+ type: "tag" | "commit" | "branch";
18
18
  name: string;
19
19
  hash: string;
20
20
  } | null;
21
21
  status: string;
22
- subAgentId: string;
23
22
  contextId: string;
23
+ subAgentId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -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;