@inkeep/agents-core 0.0.0-dev-20260205001322 → 0.0.0-dev-20260205075846

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.
@@ -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;
24
22
  name: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ headers: Record<string, string> | null;
25
26
  description: string | null;
27
+ tenantId: string;
28
+ projectId: string;
29
+ credentialReferenceId: string | null;
26
30
  config: {
27
31
  type: "mcp";
28
32
  mcp: ToolMcpConfig;
29
33
  };
30
- 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;
@@ -76,19 +76,19 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
76
76
  };
77
77
  }>;
78
78
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
79
- tenantId: string;
80
- projectId: string;
81
79
  id: string;
82
80
  name: string;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ headers: Record<string, string> | null;
83
84
  description: string | null;
85
+ tenantId: string;
86
+ projectId: string;
87
+ credentialReferenceId: string | null;
84
88
  config: {
85
89
  type: "mcp";
86
90
  mcp: ToolMcpConfig;
87
91
  };
88
- credentialReferenceId: string | null;
89
- createdAt: string;
90
- updatedAt: string;
91
- headers: Record<string, string> | null;
92
92
  credentialScope: string;
93
93
  imageUrl: string | null;
94
94
  capabilities: ToolServerCapabilities | null;
@@ -133,38 +133,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
- tenantId: string;
137
- projectId: string;
136
+ subAgentId: string;
138
137
  id: string;
139
- agentId: string;
140
138
  createdAt: string;
141
139
  updatedAt: string;
142
- toolId: string;
143
140
  headers: Record<string, string> | null;
141
+ tenantId: string;
142
+ projectId: string;
143
+ agentId: string;
144
+ toolId: string;
145
+ selectedTools: string[] | null;
144
146
  toolPolicies: Record<string, {
145
147
  needsApproval?: boolean;
146
148
  }> | null;
147
- subAgentId: string;
148
- selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
151
151
  scopes: AgentScopeConfig;
152
152
  subAgentId: string;
153
153
  toolId: string;
154
154
  }) => Promise<{
155
- tenantId: string;
156
- projectId: string;
155
+ subAgentId: string;
157
156
  id: string;
158
- agentId: string;
159
157
  createdAt: string;
160
158
  updatedAt: string;
161
- toolId: string;
162
159
  headers: Record<string, string> | null;
160
+ tenantId: string;
161
+ projectId: string;
162
+ agentId: string;
163
+ toolId: string;
164
+ selectedTools: string[] | null;
163
165
  toolPolicies: Record<string, {
164
166
  needsApproval?: boolean;
165
167
  }> | null;
166
- subAgentId: string;
167
- selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
170
170
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -180,19 +180,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
180
180
  }> | null;
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
- tenantId: string;
184
- projectId: string;
183
+ subAgentId: string;
185
184
  id: string;
186
- agentId: string;
187
185
  createdAt: string;
188
186
  updatedAt: string;
189
- toolId: string;
190
187
  headers: Record<string, string> | null;
188
+ tenantId: string;
189
+ projectId: string;
190
+ agentId: string;
191
+ toolId: string;
192
+ selectedTools: string[] | null;
191
193
  toolPolicies: Record<string, {
192
194
  needsApproval?: boolean;
193
195
  }> | null;
194
- subAgentId: string;
195
- selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
198
198
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -200,19 +200,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
200
200
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
201
201
  data: ToolInsert;
202
202
  }) => Promise<{
203
- tenantId: string;
204
- projectId: string;
205
203
  id: string;
206
204
  name: string;
205
+ createdAt: string;
206
+ updatedAt: string;
207
+ headers: Record<string, string> | null;
207
208
  description: string | null;
209
+ tenantId: string;
210
+ projectId: string;
211
+ credentialReferenceId: string | null;
208
212
  config: {
209
213
  type: "mcp";
210
214
  mcp: ToolMcpConfig;
211
215
  };
212
- credentialReferenceId: string | null;
213
- createdAt: string;
214
- updatedAt: string;
215
- headers: Record<string, string> | null;
216
216
  credentialScope: string;
217
217
  imageUrl: string | null;
218
218
  capabilities: ToolServerCapabilities | null;
@@ -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: "query" | "body" | "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: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -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;
13
11
  name: string | null;
12
+ createdAt: string;
13
+ updatedAt: string;
14
+ expiresAt: string | null;
15
+ tenantId: string;
16
+ projectId: string;
14
17
  agentId: string;
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;
27
25
  name: string | null;
26
+ createdAt: string;
27
+ updatedAt: string;
28
+ expiresAt: string | null;
29
+ tenantId: string;
30
+ projectId: string;
28
31
  agentId: string;
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;
44
42
  name: string | null;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ expiresAt: string | null;
46
+ tenantId: string;
47
+ projectId: string;
45
48
  agentId: string;
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;
71
69
  name: string | null;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ expiresAt: string | null;
73
+ tenantId: string;
74
+ projectId: string;
72
75
  agentId: string;
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;
26
- metadata: ConversationMetadata | null;
27
21
  ref: {
28
22
  type: "commit" | "tag" | "branch";
29
23
  name: string;
30
24
  hash: string;
31
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ title: string | null;
29
+ tenantId: string;
30
+ projectId: string;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -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;
95
- metadata: ConversationMetadata | null;
96
90
  ref: {
97
91
  type: "commit" | "tag" | "branch";
98
92
  name: string;
99
93
  hash: string;
100
94
  } | null;
95
+ userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ title: string | null;
98
+ tenantId: string;
99
+ projectId: string;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -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;
131
- metadata: ConversationMetadata | null;
132
126
  ref: {
133
127
  type: "commit" | "tag" | "branch";
134
128
  name: string;
135
129
  hash: string;
136
130
  } | null;
131
+ userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ title: string | null;
134
+ tenantId: string;
135
+ projectId: string;
136
+ agentId: 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;
163
- metadata: ConversationMetadata | null;
164
158
  ref: {
165
159
  type: "commit" | "tag" | "branch";
166
160
  name: string;
167
161
  hash: string;
168
162
  } | null;
163
+ userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ title: string | null;
166
+ tenantId: string;
167
+ projectId: string;
168
+ agentId: 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;
12
+ fromSubAgentId: string | null;
13
+ toSubAgentId: string | null;
14
+ fromExternalAgentId: string | null;
15
+ toExternalAgentId: string | null;
16
+ taskId: string | null;
17
+ a2aTaskId: string | null;
14
18
  id: string;
15
19
  createdAt: string;
16
20
  updatedAt: string;
17
21
  metadata: MessageMetadata | null;
18
- content: MessageContent;
19
22
  role: string;
23
+ tenantId: string;
24
+ projectId: string;
25
+ content: MessageContent;
20
26
  conversationId: string;
21
- fromSubAgentId: string | null;
22
- toSubAgentId: string | null;
23
- fromExternalAgentId: string | null;
24
- toExternalAgentId: string | null;
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
- tenantId: string;
144
- projectId: string;
143
+ fromSubAgentId: string | null;
144
+ toSubAgentId: string | null;
145
+ fromExternalAgentId: string | null;
146
+ toExternalAgentId: string | null;
147
+ taskId: string | null;
148
+ a2aTaskId: string | null;
145
149
  id: string;
146
150
  createdAt: string;
147
151
  updatedAt: string;
148
152
  metadata: MessageMetadata | null;
149
- content: MessageContent;
150
153
  role: string;
154
+ tenantId: string;
155
+ projectId: string;
156
+ content: MessageContent;
151
157
  conversationId: string;
152
- fromSubAgentId: string | null;
153
- toSubAgentId: string | null;
154
- fromExternalAgentId: string | null;
155
- toExternalAgentId: string | null;
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
- tenantId: string;
197
- projectId: string;
196
+ fromSubAgentId: string | null;
197
+ toSubAgentId: string | null;
198
+ fromExternalAgentId: string | null;
199
+ toExternalAgentId: string | null;
200
+ taskId: string | null;
201
+ a2aTaskId: string | null;
198
202
  id: string;
199
203
  createdAt: string;
200
204
  updatedAt: string;
201
205
  metadata: MessageMetadata | null;
202
- content: MessageContent;
203
206
  role: string;
207
+ tenantId: string;
208
+ projectId: string;
209
+ content: MessageContent;
204
210
  conversationId: string;
205
- fromSubAgentId: string | null;
206
- toSubAgentId: string | null;
207
- fromExternalAgentId: string | null;
208
- toExternalAgentId: string | null;
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,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;
9
+ subAgentId: string;
11
10
  id: string;
12
- agentId: string;
13
11
  createdAt: string;
14
12
  updatedAt: string;
15
- metadata: TaskMetadataConfig | null;
16
13
  ref: {
17
14
  type: "commit" | "tag" | "branch";
18
15
  name: string;
19
16
  hash: string;
20
17
  } | null;
18
+ metadata: TaskMetadataConfig | null;
21
19
  status: string;
20
+ tenantId: string;
21
+ projectId: string;
22
+ agentId: string;
22
23
  contextId: string;
23
- subAgentId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;