@inkeep/agents-core 0.0.0-dev-20260121155444 → 0.0.0-dev-20260121172937

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.
@@ -12,20 +12,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
- description: string | null;
16
- name: string;
15
+ id: string;
17
16
  tenantId: string;
17
+ createdAt: string;
18
+ name: string;
19
+ description: string | null;
20
+ updatedAt: string;
18
21
  projectId: string;
19
- id: string;
22
+ credentialReferenceId: string | null;
20
23
  config: {
21
24
  type: "mcp";
22
25
  mcp: ToolMcpConfig;
23
26
  };
24
- credentialReferenceId: string | null;
25
- createdAt: string;
26
- updatedAt: string;
27
- headers: Record<string, string> | null;
28
27
  credentialScope: string;
28
+ headers: Record<string, string> | null;
29
29
  imageUrl: string | null;
30
30
  capabilities: ToolServerCapabilities | null;
31
31
  lastError: string | null;
@@ -68,20 +68,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
68
68
  };
69
69
  }>;
70
70
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
71
- description: string | null;
72
- name: string;
71
+ id: string;
73
72
  tenantId: string;
73
+ createdAt: string;
74
+ name: string;
75
+ description: string | null;
76
+ updatedAt: string;
74
77
  projectId: string;
75
- id: string;
78
+ credentialReferenceId: string | null;
76
79
  config: {
77
80
  type: "mcp";
78
81
  mcp: ToolMcpConfig;
79
82
  };
80
- credentialReferenceId: string | null;
81
- createdAt: string;
82
- updatedAt: string;
83
- headers: Record<string, string> | null;
84
83
  credentialScope: string;
84
+ headers: Record<string, string> | null;
85
85
  imageUrl: string | null;
86
86
  capabilities: ToolServerCapabilities | null;
87
87
  lastError: string | null;
@@ -123,38 +123,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
123
123
  needsApproval?: boolean;
124
124
  }> | null;
125
125
  }) => Promise<{
126
- tenantId: string;
127
- projectId: string;
128
126
  id: string;
129
- agentId: string;
127
+ tenantId: string;
130
128
  createdAt: string;
131
129
  updatedAt: string;
130
+ subAgentId: string;
131
+ agentId: string;
132
+ projectId: string;
132
133
  toolId: string;
133
134
  headers: Record<string, string> | null;
135
+ selectedTools: string[] | null;
134
136
  toolPolicies: Record<string, {
135
137
  needsApproval?: boolean;
136
138
  }> | null;
137
- subAgentId: string;
138
- selectedTools: string[] | null;
139
139
  }>;
140
140
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
142
142
  subAgentId: string;
143
143
  toolId: string;
144
144
  }) => Promise<{
145
- tenantId: string;
146
- projectId: string;
147
145
  id: string;
148
- agentId: string;
146
+ tenantId: string;
149
147
  createdAt: string;
150
148
  updatedAt: string;
149
+ subAgentId: string;
150
+ agentId: string;
151
+ projectId: string;
151
152
  toolId: string;
152
153
  headers: Record<string, string> | null;
154
+ selectedTools: string[] | null;
153
155
  toolPolicies: Record<string, {
154
156
  needsApproval?: boolean;
155
157
  }> | null;
156
- subAgentId: string;
157
- selectedTools: string[] | null;
158
158
  }>;
159
159
  /**
160
160
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -170,19 +170,19 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
170
170
  }> | null;
171
171
  relationId?: string;
172
172
  }) => Promise<{
173
- tenantId: string;
174
- projectId: string;
175
173
  id: string;
176
- agentId: string;
174
+ tenantId: string;
177
175
  createdAt: string;
178
176
  updatedAt: string;
177
+ subAgentId: string;
178
+ agentId: string;
179
+ projectId: string;
179
180
  toolId: string;
180
181
  headers: Record<string, string> | null;
182
+ selectedTools: string[] | null;
181
183
  toolPolicies: Record<string, {
182
184
  needsApproval?: boolean;
183
185
  }> | null;
184
- subAgentId: string;
185
- selectedTools: string[] | null;
186
186
  }>;
187
187
  /**
188
188
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -190,20 +190,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
190
190
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
191
191
  data: ToolInsert;
192
192
  }) => Promise<{
193
- description: string | null;
194
- name: string;
193
+ id: string;
195
194
  tenantId: string;
195
+ createdAt: string;
196
+ name: string;
197
+ description: string | null;
198
+ updatedAt: string;
196
199
  projectId: string;
197
- id: string;
200
+ credentialReferenceId: string | null;
198
201
  config: {
199
202
  type: "mcp";
200
203
  mcp: ToolMcpConfig;
201
204
  };
202
- credentialReferenceId: string | null;
203
- createdAt: string;
204
- updatedAt: string;
205
- headers: Record<string, string> | null;
206
205
  credentialScope: string;
206
+ headers: Record<string, string> | null;
207
207
  imageUrl: string | null;
208
208
  capabilities: ToolServerCapabilities | null;
209
209
  lastError: string | null;
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- name: string | null;
11
- tenantId: string;
12
- projectId: string;
13
10
  id: string;
11
+ tenantId: string;
12
+ createdAt: string;
13
+ name: string | null;
14
+ updatedAt: string;
14
15
  agentId: string;
16
+ projectId: 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
- name: string | null;
25
- tenantId: string;
26
- projectId: string;
27
24
  id: string;
25
+ tenantId: string;
26
+ createdAt: string;
27
+ name: string | null;
28
+ updatedAt: string;
28
29
  agentId: string;
30
+ projectId: 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
- name: string | null;
42
- tenantId: string;
43
- projectId: string;
44
41
  id: string;
42
+ tenantId: string;
43
+ createdAt: string;
44
+ name: string | null;
45
+ updatedAt: string;
45
46
  agentId: string;
47
+ projectId: 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
- name: string | null;
69
- tenantId: string;
70
- projectId: string;
71
68
  id: string;
69
+ tenantId: string;
70
+ createdAt: string;
71
+ name: string | null;
72
+ updatedAt: string;
72
73
  agentId: string;
74
+ projectId: 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
- title: string | null;
19
- tenantId: string;
20
- projectId: string;
21
18
  id: string;
22
- agentId: string | null;
19
+ tenantId: string;
23
20
  createdAt: string;
24
- updatedAt: string;
25
- userId: string | null;
26
21
  metadata: ConversationMetadata | null;
22
+ title: string | null;
27
23
  ref: {
28
- type: "tag" | "commit" | "branch";
24
+ type: "commit" | "tag" | "branch";
29
25
  name: string;
30
26
  hash: string;
31
27
  } | null;
28
+ updatedAt: string;
29
+ agentId: string | null;
30
+ projectId: string;
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: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "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: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "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
- title: string | null;
88
- tenantId: string;
89
- projectId: string;
90
87
  id: string;
91
- agentId: string | null;
88
+ tenantId: string;
92
89
  createdAt: string;
93
- updatedAt: string;
94
- userId: string | null;
95
90
  metadata: ConversationMetadata | null;
91
+ title: string | null;
96
92
  ref: {
97
- type: "tag" | "commit" | "branch";
93
+ type: "commit" | "tag" | "branch";
98
94
  name: string;
99
95
  hash: string;
100
96
  } | null;
97
+ updatedAt: string;
98
+ agentId: string | null;
99
+ projectId: string;
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: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "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
- title: string | null;
124
- tenantId: string;
125
- projectId: string;
126
123
  id: string;
127
- agentId: string | null;
124
+ tenantId: string;
128
125
  createdAt: string;
129
- updatedAt: string;
130
- userId: string | null;
131
126
  metadata: ConversationMetadata | null;
127
+ title: string | null;
132
128
  ref: {
133
- type: "tag" | "commit" | "branch";
129
+ type: "commit" | "tag" | "branch";
134
130
  name: string;
135
131
  hash: string;
136
132
  } | null;
133
+ updatedAt: string;
134
+ agentId: string | null;
135
+ projectId: string;
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
- title: string | null;
156
- tenantId: string;
157
- projectId: string;
158
155
  id: string;
159
- agentId: string | null;
156
+ tenantId: string;
160
157
  createdAt: string;
161
- updatedAt: string;
162
- userId: string | null;
163
158
  metadata: ConversationMetadata | null;
159
+ title: string | null;
164
160
  ref: {
165
- type: "tag" | "commit" | "branch";
161
+ type: "commit" | "tag" | "branch";
166
162
  name: string;
167
163
  hash: string;
168
164
  } | null;
165
+ updatedAt: string;
166
+ agentId: string | null;
167
+ projectId: string;
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;
13
+ tenantId: string;
15
14
  createdAt: string;
16
- updatedAt: string;
17
15
  metadata: MessageMetadata | null;
18
16
  content: MessageContent;
19
- role: string;
17
+ updatedAt: string;
18
+ projectId: string;
20
19
  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
+ role: 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
- tenantId: string;
144
- projectId: string;
145
143
  id: string;
144
+ tenantId: string;
146
145
  createdAt: string;
147
- updatedAt: string;
148
146
  metadata: MessageMetadata | null;
149
147
  content: MessageContent;
150
- role: string;
148
+ updatedAt: string;
149
+ projectId: string;
151
150
  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
+ role: 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
- tenantId: string;
197
- projectId: string;
198
196
  id: string;
197
+ tenantId: string;
199
198
  createdAt: string;
200
- updatedAt: string;
201
199
  metadata: MessageMetadata | null;
202
200
  content: MessageContent;
203
- role: string;
201
+ updatedAt: string;
202
+ projectId: string;
204
203
  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
+ role: 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,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;
10
+ tenantId: string;
13
11
  createdAt: string;
14
- updatedAt: string;
15
12
  metadata: TaskMetadataConfig | null;
13
+ contextId: string;
16
14
  ref: {
17
- type: "tag" | "commit" | "branch";
15
+ type: "commit" | "tag" | "branch";
18
16
  name: string;
19
17
  hash: string;
20
18
  } | null;
21
19
  status: string;
22
- contextId: string;
20
+ updatedAt: string;
23
21
  subAgentId: string;
22
+ agentId: string;
23
+ projectId: 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: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;