@inkeep/agents-core 0.0.0-dev-20260402205032 → 0.0.0-dev-20260403004910

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 (43) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/init.js +2 -2
  5. package/dist/auth/permissions.d.ts +13 -13
  6. package/dist/constants/otel-attributes.d.ts +5 -0
  7. package/dist/constants/otel-attributes.js +7 -2
  8. package/dist/constants/signoz-queries.d.ts +1 -0
  9. package/dist/constants/signoz-queries.js +2 -1
  10. package/dist/data-access/manage/agents.d.ts +10 -10
  11. package/dist/data-access/manage/artifactComponents.d.ts +4 -4
  12. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  13. package/dist/data-access/manage/functionTools.d.ts +4 -4
  14. package/dist/data-access/manage/skills.d.ts +6 -6
  15. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
  16. package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
  17. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
  18. package/dist/data-access/manage/subAgents.d.ts +6 -6
  19. package/dist/data-access/manage/tools.d.ts +12 -12
  20. package/dist/data-access/manage/triggers.d.ts +4 -4
  21. package/dist/data-access/runtime/apiKeys.d.ts +8 -8
  22. package/dist/data-access/runtime/apps.d.ts +8 -8
  23. package/dist/data-access/runtime/conversations.d.ts +24 -24
  24. package/dist/data-access/runtime/messages.d.ts +6 -6
  25. package/dist/data-access/runtime/tasks.d.ts +6 -6
  26. package/dist/db/manage/manage-schema.d.ts +453 -453
  27. package/dist/db/runtime/runtime-schema.d.ts +374 -374
  28. package/dist/index.d.ts +3 -3
  29. package/dist/index.js +3 -3
  30. package/dist/setup/setup.d.ts +3 -1
  31. package/dist/setup/setup.js +14 -10
  32. package/dist/utils/error.d.ts +51 -51
  33. package/dist/utils/index.d.ts +3 -3
  34. package/dist/utils/index.js +3 -3
  35. package/dist/utils/jwt-helpers.d.ts +2 -3
  36. package/dist/utils/jwt-helpers.js +2 -3
  37. package/dist/utils/temp-jwt.d.ts +1 -6
  38. package/dist/utils/temp-jwt.js +1 -12
  39. package/dist/utils/work-app-mcp.js +1 -2
  40. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  41. package/dist/validation/schemas/skills.d.ts +30 -30
  42. package/dist/validation/schemas.d.ts +2120 -2120
  43. package/package.json +1 -1
@@ -20,14 +20,14 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- id: string;
24
23
  name: string;
24
+ id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- description: string | null;
28
- headers: Record<string, string> | null;
29
27
  projectId: string;
30
28
  tenantId: string;
29
+ description: string | null;
30
+ headers: Record<string, string> | null;
31
31
  config: {
32
32
  type: "mcp";
33
33
  mcp: ToolMcpConfig;
@@ -78,14 +78,14 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- id: string;
82
81
  name: string;
82
+ id: string;
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
- description: string | null;
86
- headers: Record<string, string> | null;
87
85
  projectId: string;
88
86
  tenantId: string;
87
+ description: string | null;
88
+ headers: Record<string, string> | null;
89
89
  config: {
90
90
  type: "mcp";
91
91
  mcp: ToolMcpConfig;
@@ -138,12 +138,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
138
138
  id: string;
139
139
  createdAt: string;
140
140
  updatedAt: string;
141
- headers: Record<string, string> | null;
142
141
  agentId: string;
143
142
  projectId: string;
144
143
  tenantId: string;
145
144
  subAgentId: string;
146
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
147
  toolPolicies: Record<string, {
148
148
  needsApproval?: boolean;
149
149
  }> | null;
@@ -157,12 +157,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
157
157
  id: string;
158
158
  createdAt: string;
159
159
  updatedAt: string;
160
- headers: Record<string, string> | null;
161
160
  agentId: string;
162
161
  projectId: string;
163
162
  tenantId: string;
164
163
  subAgentId: string;
165
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
166
  toolPolicies: Record<string, {
167
167
  needsApproval?: boolean;
168
168
  }> | null;
@@ -185,12 +185,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
185
185
  id: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- headers: Record<string, string> | null;
189
188
  agentId: string;
190
189
  projectId: string;
191
190
  tenantId: string;
192
191
  subAgentId: string;
193
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
194
  toolPolicies: Record<string, {
195
195
  needsApproval?: boolean;
196
196
  }> | null;
@@ -202,14 +202,14 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- id: string;
206
205
  name: string;
206
+ id: string;
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
- description: string | null;
210
- headers: Record<string, string> | null;
211
209
  projectId: string;
212
210
  tenantId: string;
211
+ description: string | null;
212
+ headers: Record<string, string> | null;
213
213
  config: {
214
214
  type: "mcp";
215
215
  mcp: ToolMcpConfig;
@@ -37,16 +37,16 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
37
37
  authentication: unknown;
38
38
  signingSecretCredentialReferenceId: string | null;
39
39
  signatureVerification: {
40
- algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
- encoding: "hex" | "base64";
40
+ algorithm: "md5" | "sha256" | "sha512" | "sha384" | "sha1";
41
+ encoding: "base64" | "hex";
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;
@@ -8,11 +8,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- id: string;
12
11
  name: string | null;
12
+ id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- expiresAt: string | null;
16
15
  agentId: string;
17
16
  projectId: string;
18
17
  tenantId: string;
@@ -20,13 +19,13 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
20
19
  keyHash: string;
21
20
  keyPrefix: string;
22
21
  lastUsedAt: string | null;
22
+ expiresAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
- id: string;
26
25
  name: string | null;
26
+ id: string;
27
27
  createdAt: string;
28
28
  updatedAt: string;
29
- expiresAt: string | null;
30
29
  agentId: string;
31
30
  projectId: string;
32
31
  tenantId: string;
@@ -34,16 +33,16 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
34
33
  keyHash: string;
35
34
  keyPrefix: string;
36
35
  lastUsedAt: string | null;
36
+ expiresAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
- id: string;
43
42
  name: string | null;
43
+ id: string;
44
44
  createdAt: string;
45
45
  updatedAt: string;
46
- expiresAt: string | null;
47
46
  agentId: string;
48
47
  projectId: string;
49
48
  tenantId: string;
@@ -51,6 +50,7 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
51
50
  keyHash: string;
52
51
  keyPrefix: string;
53
52
  lastUsedAt: string | null;
53
+ expiresAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -66,11 +66,10 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- id: string;
70
69
  name: string | null;
70
+ id: string;
71
71
  createdAt: string;
72
72
  updatedAt: string;
73
- expiresAt: string | null;
74
73
  agentId: string;
75
74
  projectId: string;
76
75
  tenantId: string;
@@ -78,6 +77,7 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
78
77
  keyHash: string;
79
78
  keyPrefix: string;
80
79
  lastUsedAt: string | null;
80
+ expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -5,15 +5,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
5
5
 
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
- id: string;
9
8
  name: string;
9
+ id: string;
10
10
  createdAt: string;
11
11
  updatedAt: string;
12
- description: string | null;
13
- enabled: boolean;
14
- type: AppType;
15
12
  projectId: string | null;
16
13
  tenantId: string | null;
14
+ description: string | null;
15
+ type: AppType;
16
+ enabled: boolean;
17
17
  prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
@@ -61,15 +61,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
- id: string;
65
64
  name: string;
65
+ id: string;
66
66
  createdAt: string;
67
67
  updatedAt: string;
68
- description: string | null;
69
- enabled: boolean;
70
- type: AppType;
71
68
  projectId: string | null;
72
69
  tenantId: string | null;
70
+ description: string | null;
71
+ type: AppType;
72
+ enabled: boolean;
73
73
  prompt: string | null;
74
74
  config: {
75
75
  type: "web_client";
@@ -18,17 +18,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
18
18
  id: string;
19
19
  createdAt: string;
20
20
  updatedAt: string;
21
+ agentId: string | null;
22
+ projectId: string;
23
+ tenantId: string;
24
+ title: string | null;
25
+ metadata: ConversationMetadata | null;
26
+ userId: string | null;
21
27
  ref: {
22
28
  type: "commit" | "tag" | "branch";
23
29
  name: string;
24
30
  hash: string;
25
31
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- title: string | null;
29
- agentId: string | null;
30
- projectId: string;
31
- tenantId: string;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -87,17 +87,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
87
87
  id: string;
88
88
  createdAt: string;
89
89
  updatedAt: string;
90
+ agentId: string | null;
91
+ projectId: string;
92
+ tenantId: string;
93
+ title: string | null;
94
+ metadata: ConversationMetadata | null;
95
+ userId: string | null;
90
96
  ref: {
91
97
  type: "commit" | "tag" | "branch";
92
98
  name: string;
93
99
  hash: string;
94
100
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- title: string | null;
98
- agentId: string | null;
99
- projectId: string;
100
- tenantId: string;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -123,17 +123,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
123
123
  id: string;
124
124
  createdAt: string;
125
125
  updatedAt: string;
126
+ agentId: string | null;
127
+ projectId: string;
128
+ tenantId: string;
129
+ title: string | null;
130
+ metadata: ConversationMetadata | null;
131
+ userId: string | null;
126
132
  ref: {
127
133
  type: "commit" | "tag" | "branch";
128
134
  name: string;
129
135
  hash: string;
130
136
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- title: string | null;
134
- agentId: string | null;
135
- projectId: string;
136
- tenantId: string;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -155,17 +155,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
155
155
  id: string;
156
156
  createdAt: string;
157
157
  updatedAt: string;
158
+ agentId: string | null;
159
+ projectId: string;
160
+ tenantId: string;
161
+ title: string | null;
162
+ metadata: ConversationMetadata | null;
163
+ userId: string | null;
158
164
  ref: {
159
165
  type: "commit" | "tag" | "branch";
160
166
  name: string;
161
167
  hash: string;
162
168
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- title: string | null;
166
- agentId: string | null;
167
- projectId: string;
168
- tenantId: string;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -13,10 +13,9 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
13
13
  id: string;
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
- metadata: MessageMetadata | null;
17
- role: string;
18
16
  projectId: string;
19
17
  tenantId: string;
18
+ metadata: MessageMetadata | null;
20
19
  content: MessageContent;
21
20
  fromSubAgentId: string | null;
22
21
  toSubAgentId: string | null;
@@ -25,6 +24,7 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
25
24
  taskId: string | null;
26
25
  a2aTaskId: string | null;
27
26
  conversationId: string;
27
+ role: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
30
30
  visibility: string;
@@ -147,10 +147,9 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
147
147
  id: string;
148
148
  createdAt: string;
149
149
  updatedAt: string;
150
- metadata: MessageMetadata | null;
151
- role: string;
152
150
  projectId: string;
153
151
  tenantId: string;
152
+ metadata: MessageMetadata | null;
154
153
  content: MessageContent;
155
154
  fromSubAgentId: string | null;
156
155
  toSubAgentId: string | null;
@@ -159,6 +158,7 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
159
158
  taskId: string | null;
160
159
  a2aTaskId: string | null;
161
160
  conversationId: string;
161
+ role: string;
162
162
  fromTeamAgentId: string | null;
163
163
  toTeamAgentId: string | null;
164
164
  visibility: string;
@@ -200,10 +200,9 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
200
200
  id: string;
201
201
  createdAt: string;
202
202
  updatedAt: string;
203
- metadata: MessageMetadata | null;
204
- role: string;
205
203
  projectId: string;
206
204
  tenantId: string;
205
+ metadata: MessageMetadata | null;
207
206
  content: MessageContent;
208
207
  fromSubAgentId: string | null;
209
208
  toSubAgentId: string | null;
@@ -212,6 +211,7 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
212
211
  taskId: string | null;
213
212
  a2aTaskId: string | null;
214
213
  conversationId: string;
214
+ role: string;
215
215
  fromTeamAgentId: string | null;
216
216
  toTeamAgentId: string | null;
217
217
  visibility: string;
@@ -10,17 +10,17 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
10
10
  id: string;
11
11
  createdAt: string;
12
12
  updatedAt: string;
13
+ agentId: string;
14
+ projectId: string;
15
+ tenantId: string;
16
+ metadata: TaskMetadataConfig | null;
17
+ subAgentId: string;
18
+ status: string;
13
19
  ref: {
14
20
  type: "commit" | "tag" | "branch";
15
21
  name: string;
16
22
  hash: string;
17
23
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
- status: string;
20
- agentId: string;
21
- projectId: string;
22
- tenantId: string;
23
- subAgentId: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {