@inkeep/agents-core 0.48.2 → 0.48.4

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 (34) hide show
  1. package/dist/auth/auth.d.ts +18 -18
  2. package/dist/auth/permissions.d.ts +9 -9
  3. package/dist/data-access/manage/agents.d.ts +21 -21
  4. package/dist/data-access/manage/artifactComponents.d.ts +6 -6
  5. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  6. package/dist/data-access/manage/dataComponents.d.ts +2 -2
  7. package/dist/data-access/manage/functionTools.d.ts +8 -8
  8. package/dist/data-access/manage/skills.d.ts +8 -8
  9. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  10. package/dist/data-access/manage/subAgentRelations.d.ts +16 -16
  11. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
  12. package/dist/data-access/manage/subAgents.d.ts +15 -15
  13. package/dist/data-access/manage/tools.d.ts +12 -12
  14. package/dist/data-access/manage/triggers.d.ts +2 -2
  15. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  16. package/dist/data-access/runtime/conversations.d.ts +16 -16
  17. package/dist/data-access/runtime/messages.d.ts +6 -6
  18. package/dist/data-access/runtime/tasks.d.ts +5 -5
  19. package/dist/db/manage/manage-schema.d.ts +4 -4
  20. package/dist/db/runtime/runtime-schema.d.ts +2 -2
  21. package/dist/index.d.ts +4 -2
  22. package/dist/index.js +4 -2
  23. package/dist/types/@vercel__functions/index.d.ts +11 -0
  24. package/dist/utils/index.d.ts +4 -2
  25. package/dist/utils/index.js +4 -2
  26. package/dist/utils/mock-provider.d.ts +41 -0
  27. package/dist/utils/mock-provider.js +117 -0
  28. package/dist/utils/model-factory.js +5 -2
  29. package/dist/utils/tracer-factory.d.ts +13 -1
  30. package/dist/utils/tracer-factory.js +21 -1
  31. package/dist/utils/wait-until.d.ts +22 -0
  32. package/dist/utils/wait-until.js +40 -0
  33. package/dist/validation/schemas.d.ts +150 -150
  34. package/package.json +7 -5
@@ -9,11 +9,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
9
9
  relationId: string;
10
10
  }) => Promise<{
11
11
  id: string;
12
+ createdAt: string;
13
+ updatedAt: string;
12
14
  tenantId: string;
13
15
  projectId: string;
14
16
  agentId: string;
15
- createdAt: string;
16
- updatedAt: string;
17
17
  headers: Record<string, string> | null;
18
18
  subAgentId: string;
19
19
  targetAgentId: string;
@@ -44,11 +44,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
46
  id: string;
47
+ createdAt: string;
48
+ updatedAt: string;
47
49
  tenantId: string;
48
50
  projectId: string;
49
51
  agentId: string;
50
- createdAt: string;
51
- updatedAt: string;
52
52
  headers: Record<string, string> | null;
53
53
  subAgentId: string;
54
54
  targetAgentId: string;
@@ -57,11 +57,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
59
  id: string;
60
+ createdAt: string;
61
+ updatedAt: string;
60
62
  tenantId: string;
61
63
  projectId: string;
62
64
  agentId: string;
63
- createdAt: string;
64
- updatedAt: string;
65
65
  headers: Record<string, string> | null;
66
66
  subAgentId: string;
67
67
  targetAgentId: string;
@@ -210,11 +210,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
210
210
  };
211
211
  }) => Promise<{
212
212
  id: string;
213
+ createdAt: string;
214
+ updatedAt: string;
213
215
  tenantId: string;
214
216
  projectId: string;
215
217
  agentId: string;
216
- createdAt: string;
217
- updatedAt: string;
218
218
  headers: Record<string, string> | null;
219
219
  subAgentId: string;
220
220
  targetAgentId: string;
@@ -227,11 +227,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
227
227
  targetAgentId: string;
228
228
  }) => Promise<{
229
229
  id: string;
230
+ createdAt: string;
231
+ updatedAt: string;
230
232
  tenantId: string;
231
233
  projectId: string;
232
234
  agentId: string;
233
- createdAt: string;
234
- updatedAt: string;
235
235
  headers: Record<string, string> | null;
236
236
  subAgentId: string;
237
237
  targetAgentId: string;
@@ -248,11 +248,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
248
248
  };
249
249
  }) => Promise<{
250
250
  id: string;
251
+ createdAt: string;
252
+ updatedAt: string;
251
253
  tenantId: string;
252
254
  projectId: string;
253
255
  agentId: string;
254
- createdAt: string;
255
- updatedAt: string;
256
256
  headers: Record<string, string> | null;
257
257
  subAgentId: string;
258
258
  targetAgentId: string;
@@ -11,11 +11,6 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  id: string;
12
12
  name: string;
13
13
  description: string | null;
14
- tenantId: string;
15
- projectId: string;
16
- agentId: string;
17
- prompt: string | null;
18
- conversationHistoryConfig: ConversationHistoryConfig | null;
19
14
  models: {
20
15
  base?: {
21
16
  model?: string | undefined;
@@ -35,6 +30,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
30
  } | null;
36
31
  createdAt: string;
37
32
  updatedAt: string;
33
+ tenantId: string;
34
+ projectId: string;
35
+ prompt: string | null;
36
+ agentId: string;
37
+ conversationHistoryConfig: ConversationHistoryConfig | null;
38
38
  } | undefined>;
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
@@ -42,11 +42,6 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
42
42
  id: string;
43
43
  name: string;
44
44
  description: string | null;
45
- tenantId: string;
46
- projectId: string;
47
- agentId: string;
48
- prompt: string | null;
49
- conversationHistoryConfig: ConversationHistoryConfig | null;
50
45
  models: {
51
46
  base?: {
52
47
  model?: string | undefined;
@@ -66,6 +61,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
66
61
  } | null;
67
62
  createdAt: string;
68
63
  updatedAt: string;
64
+ tenantId: string;
65
+ projectId: string;
66
+ prompt: string | null;
67
+ agentId: string;
68
+ conversationHistoryConfig: ConversationHistoryConfig | null;
69
69
  }[]>;
70
70
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -111,11 +111,6 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
111
111
  id: string;
112
112
  name: string;
113
113
  description: string | null;
114
- tenantId: string;
115
- projectId: string;
116
- agentId: string;
117
- prompt: string | null;
118
- conversationHistoryConfig: ConversationHistoryConfig | null;
119
114
  models: {
120
115
  base?: {
121
116
  model?: string | undefined;
@@ -135,6 +130,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
135
130
  } | null;
136
131
  createdAt: string;
137
132
  updatedAt: string;
133
+ tenantId: string;
134
+ projectId: string;
135
+ prompt: string | null;
136
+ agentId: string;
137
+ conversationHistoryConfig: ConversationHistoryConfig | null;
138
138
  }>;
139
139
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
140
140
  scopes: AgentScopeConfig;
@@ -21,10 +21,10 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  id: string;
22
22
  name: string;
23
23
  description: string | null;
24
- tenantId: string;
25
- projectId: string;
26
24
  createdAt: string;
27
25
  updatedAt: string;
26
+ tenantId: string;
27
+ projectId: string;
28
28
  headers: Record<string, string> | null;
29
29
  config: {
30
30
  type: "mcp";
@@ -79,10 +79,10 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
79
79
  id: string;
80
80
  name: string;
81
81
  description: string | null;
82
- tenantId: string;
83
- projectId: string;
84
82
  createdAt: string;
85
83
  updatedAt: string;
84
+ tenantId: string;
85
+ projectId: string;
86
86
  headers: Record<string, string> | null;
87
87
  config: {
88
88
  type: "mcp";
@@ -134,11 +134,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
134
134
  }> | null;
135
135
  }) => Promise<{
136
136
  id: string;
137
+ createdAt: string;
138
+ updatedAt: string;
137
139
  tenantId: string;
138
140
  projectId: string;
139
141
  agentId: string;
140
- createdAt: string;
141
- updatedAt: string;
142
142
  toolId: string;
143
143
  headers: Record<string, string> | null;
144
144
  toolPolicies: Record<string, {
@@ -153,11 +153,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
153
153
  toolId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
+ createdAt: string;
157
+ updatedAt: string;
156
158
  tenantId: string;
157
159
  projectId: string;
158
160
  agentId: string;
159
- createdAt: string;
160
- updatedAt: string;
161
161
  toolId: string;
162
162
  headers: Record<string, string> | null;
163
163
  toolPolicies: Record<string, {
@@ -181,11 +181,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
181
181
  relationId?: string;
182
182
  }) => Promise<{
183
183
  id: string;
184
+ createdAt: string;
185
+ updatedAt: string;
184
186
  tenantId: string;
185
187
  projectId: string;
186
188
  agentId: string;
187
- createdAt: string;
188
- updatedAt: string;
189
189
  toolId: string;
190
190
  headers: Record<string, string> | null;
191
191
  toolPolicies: Record<string, {
@@ -203,10 +203,10 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  id: string;
204
204
  name: string;
205
205
  description: string | null;
206
- tenantId: string;
207
- projectId: string;
208
206
  createdAt: string;
209
207
  updatedAt: string;
208
+ tenantId: string;
209
+ projectId: string;
210
210
  headers: Record<string, string> | null;
211
211
  config: {
212
212
  type: "mcp";
@@ -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" | "body" | "header";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "body" | "header";
49
+ source: "literal" | "header" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -9,11 +9,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
9
9
  }) => Promise<{
10
10
  id: string;
11
11
  name: string | null;
12
+ createdAt: string;
13
+ updatedAt: string;
12
14
  tenantId: string;
13
15
  projectId: string;
14
16
  agentId: string;
15
- createdAt: string;
16
- updatedAt: string;
17
17
  expiresAt: string | null;
18
18
  publicId: string;
19
19
  keyHash: string;
@@ -23,11 +23,11 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
24
  id: string;
25
25
  name: string | null;
26
+ createdAt: string;
27
+ updatedAt: string;
26
28
  tenantId: string;
27
29
  projectId: string;
28
30
  agentId: string;
29
- createdAt: string;
30
- updatedAt: string;
31
31
  expiresAt: string | null;
32
32
  publicId: string;
33
33
  keyHash: string;
@@ -40,11 +40,11 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
40
40
  }) => Promise<{
41
41
  id: string;
42
42
  name: string | null;
43
+ createdAt: string;
44
+ updatedAt: string;
43
45
  tenantId: string;
44
46
  projectId: string;
45
47
  agentId: string;
46
- createdAt: string;
47
- updatedAt: string;
48
48
  expiresAt: string | null;
49
49
  publicId: string;
50
50
  keyHash: string;
@@ -67,11 +67,11 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
68
  id: string;
69
69
  name: string | null;
70
+ createdAt: string;
71
+ updatedAt: string;
70
72
  tenantId: string;
71
73
  projectId: string;
72
74
  agentId: string;
73
- createdAt: string;
74
- updatedAt: string;
75
75
  expiresAt: string | null;
76
76
  publicId: string;
77
77
  keyHash: string;
@@ -16,19 +16,19 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
18
  id: string;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string | null;
22
19
  title: string | null;
23
20
  createdAt: string;
24
21
  updatedAt: string;
22
+ tenantId: string;
23
+ projectId: string;
25
24
  metadata: ConversationMetadata | null;
25
+ agentId: string | null;
26
+ userId: string | null;
26
27
  ref: {
27
28
  type: "commit" | "tag" | "branch";
28
29
  name: string;
29
30
  hash: string;
30
31
  } | null;
31
- userId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -85,19 +85,19 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
87
  id: string;
88
- tenantId: string;
89
- projectId: string;
90
- agentId: string | null;
91
88
  title: string | null;
92
89
  createdAt: string;
93
90
  updatedAt: string;
91
+ tenantId: string;
92
+ projectId: string;
94
93
  metadata: ConversationMetadata | null;
94
+ agentId: string | null;
95
+ userId: string | null;
95
96
  ref: {
96
97
  type: "commit" | "tag" | "branch";
97
98
  name: string;
98
99
  hash: string;
99
100
  } | null;
100
- userId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -121,19 +121,19 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
123
  id: string;
124
- tenantId: string;
125
- projectId: string;
126
- agentId: string | null;
127
124
  title: string | null;
128
125
  createdAt: string;
129
126
  updatedAt: string;
127
+ tenantId: string;
128
+ projectId: string;
130
129
  metadata: ConversationMetadata | null;
130
+ agentId: string | null;
131
+ userId: string | null;
131
132
  ref: {
132
133
  type: "commit" | "tag" | "branch";
133
134
  name: string;
134
135
  hash: string;
135
136
  } | null;
136
- userId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -153,19 +153,19 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
155
  id: string;
156
- tenantId: string;
157
- projectId: string;
158
- agentId: string | null;
159
156
  title: string | null;
160
157
  createdAt: string;
161
158
  updatedAt: string;
159
+ tenantId: string;
160
+ projectId: string;
162
161
  metadata: ConversationMetadata | null;
162
+ agentId: string | null;
163
+ userId: string | null;
163
164
  ref: {
164
165
  type: "commit" | "tag" | "branch";
165
166
  name: string;
166
167
  hash: string;
167
168
  } | null;
168
- userId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -10,10 +10,10 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  messageId: string;
11
11
  }) => Promise<{
12
12
  id: string;
13
- tenantId: string;
14
- projectId: string;
15
13
  createdAt: string;
16
14
  updatedAt: string;
15
+ tenantId: string;
16
+ projectId: string;
17
17
  metadata: MessageMetadata | null;
18
18
  content: MessageContent;
19
19
  role: string;
@@ -141,10 +141,10 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  }[]>;
142
142
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
143
143
  id: string;
144
- tenantId: string;
145
- projectId: string;
146
144
  createdAt: string;
147
145
  updatedAt: string;
146
+ tenantId: string;
147
+ projectId: string;
148
148
  metadata: MessageMetadata | null;
149
149
  content: MessageContent;
150
150
  role: string;
@@ -194,10 +194,10 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  messageId: string;
195
195
  }) => Promise<{
196
196
  id: string;
197
- tenantId: string;
198
- projectId: string;
199
197
  createdAt: string;
200
198
  updatedAt: string;
199
+ tenantId: string;
200
+ projectId: string;
201
201
  metadata: MessageMetadata | null;
202
202
  content: MessageContent;
203
203
  role: string;
@@ -7,19 +7,19 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
9
  id: string;
10
- tenantId: string;
11
- projectId: string;
12
- agentId: string;
13
10
  createdAt: string;
14
11
  updatedAt: string;
12
+ tenantId: string;
13
+ projectId: string;
15
14
  metadata: TaskMetadataConfig | null;
15
+ agentId: string;
16
+ subAgentId: string;
17
+ status: string;
16
18
  ref: {
17
19
  type: "commit" | "tag" | "branch";
18
20
  name: string;
19
21
  hash: string;
20
22
  } | null;
21
- status: string;
22
- subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
@@ -814,13 +814,13 @@ declare const triggers: drizzle_orm_pg_core1479.PgTableWithColumns<{
814
814
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
815
815
  encoding: "hex" | "base64";
816
816
  signature: {
817
- source: "query" | "body" | "header";
817
+ source: "query" | "header" | "body";
818
818
  key: string;
819
819
  prefix?: string | undefined;
820
820
  regex?: string | undefined;
821
821
  };
822
822
  signedComponents: {
823
- source: "literal" | "body" | "header";
823
+ source: "literal" | "header" | "body";
824
824
  required: boolean;
825
825
  key?: string | undefined;
826
826
  value?: string | undefined;
@@ -851,13 +851,13 @@ declare const triggers: drizzle_orm_pg_core1479.PgTableWithColumns<{
851
851
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
852
852
  encoding: "hex" | "base64";
853
853
  signature: {
854
- source: "query" | "body" | "header";
854
+ source: "query" | "header" | "body";
855
855
  key: string;
856
856
  prefix?: string | undefined;
857
857
  regex?: string | undefined;
858
858
  };
859
859
  signedComponents: {
860
- source: "literal" | "body" | "header";
860
+ source: "literal" | "header" | "body";
861
861
  required: boolean;
862
862
  key?: string | undefined;
863
863
  value?: string | undefined;
@@ -3933,7 +3933,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1831.PgTableWithCol
3933
3933
  tableName: "work_app_github_installations";
3934
3934
  dataType: "string";
3935
3935
  columnType: "PgVarchar";
3936
- data: "Organization" | "User";
3936
+ data: "User" | "Organization";
3937
3937
  driverParam: string;
3938
3938
  notNull: true;
3939
3939
  hasDefault: false;
@@ -3946,7 +3946,7 @@ declare const workAppGitHubInstallations: drizzle_orm_pg_core1831.PgTableWithCol
3946
3946
  generated: undefined;
3947
3947
  }, {}, {
3948
3948
  length: 20;
3949
- $type: "Organization" | "User";
3949
+ $type: "User" | "Organization";
3950
3950
  }>;
3951
3951
  status: drizzle_orm_pg_core1831.PgColumn<{
3952
3952
  name: "status";