@inkeep/agents-core 0.0.0-dev-20260206223853 → 0.0.0-dev-20260207223415

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-schema.d.ts +83 -83
  2. package/dist/auth/auth.d.ts +53 -53
  3. package/dist/auth/authz/config.d.ts +5 -1
  4. package/dist/auth/authz/config.js +8 -3
  5. package/dist/auth/init.js +11 -1
  6. package/dist/auth/permissions.d.ts +13 -13
  7. package/dist/auth/spicedb-schema.d.ts +9 -0
  8. package/dist/auth/spicedb-schema.js +24 -0
  9. package/dist/client-exports.d.ts +4 -192
  10. package/dist/client-exports.js +2 -97
  11. package/dist/data-access/manage/agents.d.ts +10 -10
  12. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  13. package/dist/data-access/manage/functionTools.d.ts +8 -8
  14. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
  15. package/dist/data-access/manage/subAgentRelations.d.ts +4 -4
  16. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  17. package/dist/data-access/manage/subAgents.d.ts +6 -6
  18. package/dist/data-access/manage/tools.d.ts +15 -15
  19. package/dist/data-access/manage/tools.js +1 -1
  20. package/dist/data-access/manage/triggers.d.ts +2 -2
  21. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  22. package/dist/data-access/runtime/conversations.d.ts +11 -11
  23. package/dist/data-access/runtime/tasks.d.ts +2 -2
  24. package/dist/db/manage/manage-schema.d.ts +4 -4
  25. package/dist/db/runtime/runtime-schema.d.ts +6 -6
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +5 -5
  28. package/dist/types/index.js +1 -1
  29. package/dist/validation/dolt-schemas.d.ts +1 -1
  30. package/dist/validation/index.d.ts +2 -2
  31. package/dist/validation/index.js +2 -2
  32. package/dist/validation/schemas.d.ts +1400 -1399
  33. package/dist/validation/schemas.js +3 -2
  34. package/package.json +5 -2
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- headers: Record<string, string> | null;
15
14
  agentId: string;
16
15
  projectId: string;
17
16
  tenantId: string;
18
17
  subAgentId: string;
18
+ headers: Record<string, string> | null;
19
19
  targetAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- headers: Record<string, string> | null;
50
49
  agentId: string;
51
50
  projectId: string;
52
51
  tenantId: string;
53
52
  subAgentId: string;
53
+ headers: Record<string, string> | null;
54
54
  targetAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
- headers: Record<string, string> | null;
63
62
  agentId: string;
64
63
  projectId: string;
65
64
  tenantId: string;
66
65
  subAgentId: string;
66
+ headers: Record<string, string> | null;
67
67
  targetAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
212
212
  id: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- headers: Record<string, string> | null;
216
215
  agentId: string;
217
216
  projectId: string;
218
217
  tenantId: string;
219
218
  subAgentId: string;
219
+ headers: Record<string, string> | null;
220
220
  targetAgentId: string;
221
221
  }>;
222
222
  /**
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
- headers: Record<string, string> | null;
233
232
  agentId: string;
234
233
  projectId: string;
235
234
  tenantId: string;
236
235
  subAgentId: string;
236
+ headers: Record<string, string> | null;
237
237
  targetAgentId: string;
238
238
  } | undefined>;
239
239
  /**
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
250
250
  id: string;
251
251
  createdAt: string;
252
252
  updatedAt: string;
253
- headers: Record<string, string> | null;
254
253
  agentId: string;
255
254
  projectId: string;
256
255
  tenantId: string;
257
256
  subAgentId: string;
257
+ headers: Record<string, string> | null;
258
258
  targetAgentId: string;
259
259
  }>;
260
260
  declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -8,11 +8,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  name: string;
12
+ description: string | null;
13
+ id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- description: string | null;
16
16
  agentId: string;
17
17
  projectId: string;
18
18
  tenantId: string;
@@ -39,11 +39,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- id: string;
43
42
  name: string;
43
+ description: string | null;
44
+ id: string;
44
45
  createdAt: string;
45
46
  updatedAt: string;
46
- description: string | null;
47
47
  agentId: string;
48
48
  projectId: string;
49
49
  tenantId: string;
@@ -108,11 +108,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- id: string;
112
111
  name: string;
112
+ description: string | null;
113
+ id: string;
113
114
  createdAt: string;
114
115
  updatedAt: string;
115
- description: string | null;
116
116
  agentId: string;
117
117
  projectId: string;
118
118
  tenantId: string;
@@ -18,14 +18,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
18
18
  scopes: ProjectScopeConfig;
19
19
  toolId: string;
20
20
  }) => Promise<{
21
- id: string;
22
21
  name: string;
22
+ description: string | null;
23
+ id: string;
23
24
  createdAt: string;
24
25
  updatedAt: string;
25
- description: string | null;
26
- headers: Record<string, string> | null;
27
26
  projectId: string;
28
27
  tenantId: string;
28
+ headers: Record<string, string> | null;
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
- id: string;
80
79
  name: string;
80
+ description: string | null;
81
+ id: string;
81
82
  createdAt: string;
82
83
  updatedAt: string;
83
- description: string | null;
84
- headers: Record<string, string> | null;
85
84
  projectId: string;
86
85
  tenantId: string;
86
+ headers: Record<string, string> | null;
87
87
  config: {
88
88
  type: "mcp";
89
89
  mcp: ToolMcpConfig;
@@ -136,15 +136,15 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
136
136
  id: string;
137
137
  createdAt: string;
138
138
  updatedAt: string;
139
- headers: Record<string, string> | null;
140
139
  agentId: string;
141
140
  projectId: string;
142
141
  tenantId: string;
142
+ subAgentId: string;
143
+ headers: Record<string, string> | null;
143
144
  toolId: string;
144
145
  toolPolicies: Record<string, {
145
146
  needsApproval?: boolean;
146
147
  }> | null;
147
- subAgentId: string;
148
148
  selectedTools: string[] | null;
149
149
  }>;
150
150
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -155,15 +155,15 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
155
155
  id: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
- headers: Record<string, string> | null;
159
158
  agentId: string;
160
159
  projectId: string;
161
160
  tenantId: string;
161
+ subAgentId: string;
162
+ headers: Record<string, string> | null;
162
163
  toolId: string;
163
164
  toolPolicies: Record<string, {
164
165
  needsApproval?: boolean;
165
166
  }> | null;
166
- subAgentId: string;
167
167
  selectedTools: string[] | null;
168
168
  }>;
169
169
  /**
@@ -183,15 +183,15 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
183
183
  id: string;
184
184
  createdAt: string;
185
185
  updatedAt: string;
186
- headers: Record<string, string> | null;
187
186
  agentId: string;
188
187
  projectId: string;
189
188
  tenantId: string;
189
+ subAgentId: string;
190
+ headers: Record<string, string> | null;
190
191
  toolId: string;
191
192
  toolPolicies: Record<string, {
192
193
  needsApproval?: boolean;
193
194
  }> | null;
194
- subAgentId: string;
195
195
  selectedTools: string[] | null;
196
196
  }>;
197
197
  /**
@@ -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
- id: string;
204
203
  name: string;
204
+ description: string | null;
205
+ id: string;
205
206
  createdAt: string;
206
207
  updatedAt: string;
207
- description: string | null;
208
- headers: Record<string, string> | null;
209
208
  projectId: string;
210
209
  tenantId: string;
210
+ headers: Record<string, string> | null;
211
211
  config: {
212
212
  type: "mcp";
213
213
  mcp: ToolMcpConfig;
@@ -1,5 +1,5 @@
1
- import { CredentialStoreType, MCPServerType, MCPTransportType } from "../../types/utility.js";
2
1
  import { subAgentToolRelations, tools } from "../../db/manage/manage-schema.js";
2
+ import { CredentialStoreType, MCPServerType, MCPTransportType } from "../../types/utility.js";
3
3
  import { detectAuthenticationRequired } from "../../utils/auth-detection.js";
4
4
  import { env } from "../../env.js";
5
5
  import { getLogger } from "../../utils/logger.js";
@@ -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;
@@ -7,8 +7,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- id: string;
11
10
  name: string | null;
11
+ id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  expiresAt: string | null;
@@ -21,8 +21,8 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
21
21
  lastUsedAt: string | null;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- id: string;
25
24
  name: string | null;
25
+ id: string;
26
26
  createdAt: string;
27
27
  updatedAt: string;
28
28
  expiresAt: string | null;
@@ -38,8 +38,8 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- id: string;
42
41
  name: string | null;
42
+ id: string;
43
43
  createdAt: string;
44
44
  updatedAt: string;
45
45
  expiresAt: string | null;
@@ -65,8 +65,8 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- id: string;
69
68
  name: string | null;
69
+ id: string;
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  expiresAt: string | null;
@@ -15,11 +15,12 @@ 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;
18
19
  id: string;
19
20
  createdAt: string;
20
21
  updatedAt: string;
21
22
  ref: {
22
- type: "tag" | "commit" | "branch";
23
+ type: "commit" | "tag" | "branch";
23
24
  name: string;
24
25
  hash: string;
25
26
  } | null;
@@ -28,7 +29,6 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
28
29
  agentId: string | null;
29
30
  projectId: string;
30
31
  tenantId: string;
31
- title: 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,11 +84,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ title: string | null;
87
88
  id: string;
88
89
  createdAt: string;
89
90
  updatedAt: string;
90
91
  ref: {
91
- type: "tag" | "commit" | "branch";
92
+ type: "commit" | "tag" | "branch";
92
93
  name: string;
93
94
  hash: string;
94
95
  } | null;
@@ -97,7 +98,6 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
97
98
  agentId: string | null;
98
99
  projectId: string;
99
100
  tenantId: string;
100
- title: 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,11 +120,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ title: string | null;
123
124
  id: string;
124
125
  createdAt: string;
125
126
  updatedAt: string;
126
127
  ref: {
127
- type: "tag" | "commit" | "branch";
128
+ type: "commit" | "tag" | "branch";
128
129
  name: string;
129
130
  hash: string;
130
131
  } | null;
@@ -133,7 +134,6 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
133
134
  agentId: string | null;
134
135
  projectId: string;
135
136
  tenantId: string;
136
- title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,11 +152,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ title: string | null;
155
156
  id: string;
156
157
  createdAt: string;
157
158
  updatedAt: string;
158
159
  ref: {
159
- type: "tag" | "commit" | "branch";
160
+ type: "commit" | "tag" | "branch";
160
161
  name: string;
161
162
  hash: string;
162
163
  } | null;
@@ -165,7 +166,6 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
165
166
  agentId: string | null;
166
167
  projectId: string;
167
168
  tenantId: string;
168
- title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -10,7 +10,7 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
12
  ref: {
13
- type: "tag" | "commit" | "branch";
13
+ type: "commit" | "tag" | "branch";
14
14
  name: string;
15
15
  hash: string;
16
16
  } | null;
@@ -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;
@@ -813,13 +813,13 @@ declare const triggers: drizzle_orm_pg_core1373.PgTableWithColumns<{
813
813
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
814
814
  encoding: "hex" | "base64";
815
815
  signature: {
816
- source: "query" | "body" | "header";
816
+ source: "query" | "header" | "body";
817
817
  key: string;
818
818
  prefix?: string | undefined;
819
819
  regex?: string | undefined;
820
820
  };
821
821
  signedComponents: {
822
- source: "literal" | "body" | "header";
822
+ source: "literal" | "header" | "body";
823
823
  required: boolean;
824
824
  key?: string | undefined;
825
825
  value?: string | undefined;
@@ -850,13 +850,13 @@ declare const triggers: drizzle_orm_pg_core1373.PgTableWithColumns<{
850
850
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
851
851
  encoding: "hex" | "base64";
852
852
  signature: {
853
- source: "query" | "body" | "header";
853
+ source: "query" | "header" | "body";
854
854
  key: string;
855
855
  prefix?: string | undefined;
856
856
  regex?: string | undefined;
857
857
  };
858
858
  signedComponents: {
859
- source: "literal" | "body" | "header";
859
+ source: "literal" | "header" | "body";
860
860
  required: boolean;
861
861
  key?: string | undefined;
862
862
  value?: string | undefined;
@@ -216,7 +216,7 @@ declare const conversations: drizzle_orm_pg_core1674.PgTableWithColumns<{
216
216
  dataType: "json";
217
217
  columnType: "PgJsonb";
218
218
  data: {
219
- type: "tag" | "commit" | "branch";
219
+ type: "commit" | "tag" | "branch";
220
220
  name: string;
221
221
  hash: string;
222
222
  };
@@ -232,7 +232,7 @@ declare const conversations: drizzle_orm_pg_core1674.PgTableWithColumns<{
232
232
  generated: undefined;
233
233
  }, {}, {
234
234
  $type: {
235
- type: "tag" | "commit" | "branch";
235
+ type: "commit" | "tag" | "branch";
236
236
  name: string;
237
237
  hash: string;
238
238
  };
@@ -413,7 +413,7 @@ declare const tasks: drizzle_orm_pg_core1674.PgTableWithColumns<{
413
413
  dataType: "json";
414
414
  columnType: "PgJsonb";
415
415
  data: {
416
- type: "tag" | "commit" | "branch";
416
+ type: "commit" | "tag" | "branch";
417
417
  name: string;
418
418
  hash: string;
419
419
  };
@@ -429,7 +429,7 @@ declare const tasks: drizzle_orm_pg_core1674.PgTableWithColumns<{
429
429
  generated: undefined;
430
430
  }, {}, {
431
431
  $type: {
432
- type: "tag" | "commit" | "branch";
432
+ type: "commit" | "tag" | "branch";
433
433
  name: string;
434
434
  hash: string;
435
435
  };
@@ -2011,7 +2011,7 @@ declare const contextCache: drizzle_orm_pg_core1674.PgTableWithColumns<{
2011
2011
  dataType: "json";
2012
2012
  columnType: "PgJsonb";
2013
2013
  data: {
2014
- type: "tag" | "commit" | "branch";
2014
+ type: "commit" | "tag" | "branch";
2015
2015
  name: string;
2016
2016
  hash: string;
2017
2017
  };
@@ -2027,7 +2027,7 @@ declare const contextCache: drizzle_orm_pg_core1674.PgTableWithColumns<{
2027
2027
  generated: undefined;
2028
2028
  }, {}, {
2029
2029
  $type: {
2030
- type: "tag" | "commit" | "branch";
2030
+ type: "commit" | "tag" | "branch";
2031
2031
  name: string;
2032
2032
  hash: string;
2033
2033
  };