@inkeep/agents-core 0.0.0-dev-20260204160325 → 0.0.0-dev-20260204170416

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.
@@ -11,9 +11,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- tenantId: string;
15
- projectId: string;
16
14
  agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
17
17
  sourceSubAgentId: string;
18
18
  targetSubAgentId: string | null;
19
19
  relationType: string | null;
@@ -46,9 +46,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
- projectId: string;
51
49
  agentId: string;
50
+ projectId: string;
51
+ tenantId: string;
52
52
  sourceSubAgentId: string;
53
53
  targetSubAgentId: string | null;
54
54
  relationType: string | null;
@@ -59,9 +59,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- tenantId: string;
63
- projectId: string;
64
62
  agentId: string;
63
+ projectId: string;
64
+ tenantId: string;
65
65
  sourceSubAgentId: string;
66
66
  targetSubAgentId: string | null;
67
67
  relationType: string | null;
@@ -128,9 +128,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
128
128
  id: string;
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
- tenantId: string;
132
- projectId: string;
133
131
  agentId: string;
132
+ projectId: string;
133
+ tenantId: string;
134
134
  sourceSubAgentId: string;
135
135
  targetSubAgentId: string | null;
136
136
  relationType: string | null;
@@ -147,9 +147,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- tenantId: string;
151
- projectId: string;
152
150
  agentId: string;
151
+ projectId: string;
152
+ tenantId: string;
153
153
  sourceSubAgentId: string;
154
154
  targetSubAgentId: string | null;
155
155
  relationType: string | null;
@@ -161,9 +161,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
161
161
  id: string;
162
162
  createdAt: string;
163
163
  updatedAt: string;
164
- tenantId: string;
165
- projectId: string;
166
164
  agentId: string;
165
+ projectId: string;
166
+ tenantId: string;
167
167
  sourceSubAgentId: string;
168
168
  targetSubAgentId: string | null;
169
169
  relationType: string | null;
@@ -203,19 +203,19 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
- headers: Record<string, string> | null;
207
206
  id: string;
208
207
  createdAt: string;
209
208
  updatedAt: string;
210
- tenantId: string;
211
- projectId: string;
209
+ headers: Record<string, string> | null;
212
210
  agentId: string;
211
+ projectId: string;
212
+ tenantId: string;
213
213
  toolId: string;
214
+ subAgentId: string;
215
+ selectedTools: string[] | null;
214
216
  toolPolicies: Record<string, {
215
217
  needsApproval?: boolean;
216
218
  }> | null;
217
- subAgentId: string;
218
- selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,19 +247,19 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
251
250
  id: string;
252
251
  createdAt: string;
253
252
  updatedAt: string;
254
- tenantId: string;
255
- projectId: string;
253
+ headers: Record<string, string> | null;
256
254
  agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
257
  toolId: string;
258
+ subAgentId: string;
259
+ selectedTools: string[] | null;
258
260
  toolPolicies: Record<string, {
259
261
  needsApproval?: boolean;
260
262
  }> | null;
261
- subAgentId: string;
262
- selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;
@@ -8,13 +8,13 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
- headers: Record<string, string> | null;
12
11
  id: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
15
- tenantId: string;
16
- projectId: string;
14
+ headers: Record<string, string> | null;
17
15
  agentId: string;
16
+ projectId: string;
17
+ tenantId: string;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
@@ -43,26 +43,26 @@ declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =
43
43
  declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
- headers: Record<string, string> | null;
47
46
  id: string;
48
47
  createdAt: string;
49
48
  updatedAt: string;
50
- tenantId: string;
51
- projectId: string;
49
+ headers: Record<string, string> | null;
52
50
  agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
- headers: Record<string, string> | null;
60
59
  id: string;
61
60
  createdAt: string;
62
61
  updatedAt: string;
63
- tenantId: string;
64
- projectId: string;
62
+ headers: Record<string, string> | null;
65
63
  agentId: string;
64
+ projectId: string;
65
+ tenantId: string;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
68
68
  }[]>;
@@ -209,13 +209,13 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
209
209
  headers?: Record<string, string> | null;
210
210
  };
211
211
  }) => Promise<{
212
- headers: Record<string, string> | null;
213
212
  id: string;
214
213
  createdAt: string;
215
214
  updatedAt: string;
216
- tenantId: string;
217
- projectId: string;
215
+ headers: Record<string, string> | null;
218
216
  agentId: string;
217
+ projectId: string;
218
+ tenantId: string;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
221
221
  }>;
@@ -226,13 +226,13 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
226
226
  scopes: SubAgentScopeConfig;
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
- headers: Record<string, string> | null;
230
229
  id: string;
231
230
  createdAt: string;
232
231
  updatedAt: string;
233
- tenantId: string;
234
- projectId: string;
232
+ headers: Record<string, string> | null;
235
233
  agentId: string;
234
+ projectId: string;
235
+ tenantId: string;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
@@ -247,13 +247,13 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
247
247
  headers?: Record<string, string> | null;
248
248
  };
249
249
  }) => Promise<{
250
- headers: Record<string, string> | null;
251
250
  id: string;
252
251
  createdAt: string;
253
252
  updatedAt: string;
254
- tenantId: string;
255
- projectId: string;
253
+ headers: Record<string, string> | null;
256
254
  agentId: string;
255
+ projectId: string;
256
+ tenantId: string;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
259
259
  }>;
@@ -9,14 +9,13 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
+ name: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
- name: string;
15
- tenantId: string;
16
- projectId: string;
17
15
  description: string | null;
18
- prompt: string | null;
19
16
  agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
20
19
  models: {
21
20
  base?: {
22
21
  model?: string | undefined;
@@ -31,6 +30,7 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
30
  providerOptions?: Record<string, any> | undefined;
32
31
  } | undefined;
33
32
  } | null;
33
+ prompt: string | null;
34
34
  stopWhen: {
35
35
  stepCountIs?: number | undefined;
36
36
  } | null;
@@ -40,14 +40,13 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
42
  id: string;
43
+ name: string;
43
44
  createdAt: string;
44
45
  updatedAt: string;
45
- name: string;
46
- tenantId: string;
47
- projectId: string;
48
46
  description: string | null;
49
- prompt: string | null;
50
47
  agentId: string;
48
+ projectId: string;
49
+ tenantId: string;
51
50
  models: {
52
51
  base?: {
53
52
  model?: string | undefined;
@@ -62,6 +61,7 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
61
  providerOptions?: Record<string, any> | undefined;
63
62
  } | undefined;
64
63
  } | null;
64
+ prompt: string | null;
65
65
  stopWhen: {
66
66
  stepCountIs?: number | undefined;
67
67
  } | null;
@@ -109,14 +109,13 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
111
  id: string;
112
+ name: string;
112
113
  createdAt: string;
113
114
  updatedAt: string;
114
- name: string;
115
- tenantId: string;
116
- projectId: string;
117
115
  description: string | null;
118
- prompt: string | null;
119
116
  agentId: string;
117
+ projectId: string;
118
+ tenantId: string;
120
119
  models: {
121
120
  base?: {
122
121
  model?: string | undefined;
@@ -131,6 +130,7 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
130
  providerOptions?: Record<string, any> | undefined;
132
131
  } | undefined;
133
132
  } | null;
133
+ prompt: string | null;
134
134
  stopWhen: {
135
135
  stepCountIs?: number | undefined;
136
136
  } | null;
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- headers: Record<string, string> | null;
22
21
  id: string;
22
+ name: string;
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
- name: string;
26
- tenantId: string;
27
- projectId: string;
28
25
  description: string | null;
26
+ headers: Record<string, string> | null;
27
+ projectId: string;
28
+ tenantId: string;
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
- headers: Record<string, string> | null;
80
79
  id: string;
80
+ name: string;
81
81
  createdAt: string;
82
82
  updatedAt: string;
83
- name: string;
84
- tenantId: string;
85
- projectId: string;
86
83
  description: string | null;
84
+ headers: Record<string, string> | null;
85
+ projectId: string;
86
+ tenantId: string;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -133,38 +133,38 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
133
133
  needsApproval?: boolean;
134
134
  }> | null;
135
135
  }) => Promise<{
136
- headers: Record<string, string> | null;
137
136
  id: string;
138
137
  createdAt: string;
139
138
  updatedAt: string;
140
- tenantId: string;
141
- projectId: string;
139
+ headers: Record<string, string> | null;
142
140
  agentId: string;
141
+ projectId: string;
142
+ tenantId: string;
143
143
  toolId: string;
144
+ subAgentId: 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
- headers: Record<string, string> | null;
156
155
  id: string;
157
156
  createdAt: string;
158
157
  updatedAt: string;
159
- tenantId: string;
160
- projectId: string;
158
+ headers: Record<string, string> | null;
161
159
  agentId: string;
160
+ projectId: string;
161
+ tenantId: string;
162
162
  toolId: string;
163
+ subAgentId: 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
- headers: Record<string, string> | null;
184
183
  id: string;
185
184
  createdAt: string;
186
185
  updatedAt: string;
187
- tenantId: string;
188
- projectId: string;
186
+ headers: Record<string, string> | null;
189
187
  agentId: string;
188
+ projectId: string;
189
+ tenantId: string;
190
190
  toolId: string;
191
+ subAgentId: 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,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
- headers: Record<string, string> | null;
204
203
  id: string;
204
+ name: string;
205
205
  createdAt: string;
206
206
  updatedAt: string;
207
- name: string;
208
- tenantId: string;
209
- projectId: string;
210
207
  description: string | null;
208
+ headers: Record<string, string> | null;
209
+ projectId: string;
210
+ tenantId: string;
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: "body" | "query" | "header";
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: "body" | "header" | "literal";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -8,13 +8,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
+ name: string | null;
11
12
  createdAt: string;
12
13
  updatedAt: string;
13
- name: string | null;
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;
@@ -22,13 +22,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
24
  id: string;
25
+ name: string | null;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- name: string | null;
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;
@@ -39,13 +39,13 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
41
  id: string;
42
+ name: string | null;
42
43
  createdAt: string;
43
44
  updatedAt: string;
44
- name: string | null;
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;
@@ -66,13 +66,13 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
68
  id: string;
69
+ name: string | null;
69
70
  createdAt: string;
70
71
  updatedAt: string;
71
- name: string | null;
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,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
- metadata: ConversationMetadata | null;
19
18
  id: string;
20
- userId: string | null;
21
19
  createdAt: string;
22
20
  updatedAt: string;
23
- tenantId: string;
24
- projectId: string;
25
- title: string | null;
26
- agentId: string | null;
27
21
  ref: {
28
22
  type: "tag" | "commit" | "branch";
29
23
  name: string;
30
24
  hash: string;
31
25
  } | null;
26
+ userId: string | null;
27
+ metadata: ConversationMetadata | null;
28
+ agentId: string | null;
29
+ projectId: string;
30
+ tenantId: string;
31
+ title: 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
- metadata: ConversationMetadata | null;
88
87
  id: string;
89
- userId: string | null;
90
88
  createdAt: string;
91
89
  updatedAt: string;
92
- tenantId: string;
93
- projectId: string;
94
- title: string | null;
95
- agentId: string | null;
96
90
  ref: {
97
91
  type: "tag" | "commit" | "branch";
98
92
  name: string;
99
93
  hash: string;
100
94
  } | null;
95
+ userId: string | null;
96
+ metadata: ConversationMetadata | null;
97
+ agentId: string | null;
98
+ projectId: string;
99
+ tenantId: string;
100
+ title: 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
- metadata: ConversationMetadata | null;
124
123
  id: string;
125
- userId: string | null;
126
124
  createdAt: string;
127
125
  updatedAt: string;
128
- tenantId: string;
129
- projectId: string;
130
- title: string | null;
131
- agentId: string | null;
132
126
  ref: {
133
127
  type: "tag" | "commit" | "branch";
134
128
  name: string;
135
129
  hash: string;
136
130
  } | null;
131
+ userId: string | null;
132
+ metadata: ConversationMetadata | null;
133
+ agentId: string | null;
134
+ projectId: string;
135
+ tenantId: string;
136
+ title: 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
- metadata: ConversationMetadata | null;
156
155
  id: string;
157
- userId: string | null;
158
156
  createdAt: string;
159
157
  updatedAt: string;
160
- tenantId: string;
161
- projectId: string;
162
- title: string | null;
163
- agentId: string | null;
164
158
  ref: {
165
159
  type: "tag" | "commit" | "branch";
166
160
  name: string;
167
161
  hash: string;
168
162
  } | null;
163
+ userId: string | null;
164
+ metadata: ConversationMetadata | null;
165
+ agentId: string | null;
166
+ projectId: string;
167
+ tenantId: string;
168
+ title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;