@inkeep/agents-core 0.59.2 → 0.59.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 (51) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +137 -137
  3. package/dist/auth/auth.js +2 -2
  4. package/dist/auth/permissions.d.ts +9 -9
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/client-exports.js +2 -2
  7. package/dist/constants/signoz-queries.d.ts +30 -106
  8. package/dist/constants/signoz-queries.js +55 -108
  9. package/dist/data-access/manage/credentialReferences.js +1 -1
  10. package/dist/data-access/manage/dataComponents.js +1 -1
  11. package/dist/data-access/manage/skills.d.ts +1 -1
  12. package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
  13. package/dist/data-access/manage/triggers.d.ts +2 -2
  14. package/dist/data-access/runtime/apiKeys.d.ts +4 -4
  15. package/dist/data-access/runtime/apps.d.ts +4 -4
  16. package/dist/data-access/runtime/conversations.d.ts +11 -11
  17. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  18. package/dist/data-access/runtime/tasks.d.ts +4 -4
  19. package/dist/data-access/runtime/triggerInvocations.d.ts +1 -1
  20. package/dist/db/manage/manage-schema.d.ts +361 -361
  21. package/dist/db/runtime/runtime-schema.d.ts +14 -14
  22. package/dist/db/runtime/test-runtime-client.js +1 -1
  23. package/dist/dolt/advisory-lock.d.ts +7 -0
  24. package/dist/dolt/advisory-lock.js +18 -0
  25. package/dist/dolt/branches-api.d.ts +19 -9
  26. package/dist/dolt/branches-api.js +58 -29
  27. package/dist/dolt/index.d.ts +7 -4
  28. package/dist/dolt/index.js +7 -4
  29. package/dist/dolt/merge.d.ts +41 -5
  30. package/dist/dolt/merge.js +161 -24
  31. package/dist/dolt/pk-map.d.ts +6 -0
  32. package/dist/dolt/pk-map.js +27 -0
  33. package/dist/dolt/ref-middleware.d.ts +2 -1
  34. package/dist/dolt/ref-middleware.js +18 -4
  35. package/dist/dolt/resolve-conflicts.d.ts +10 -0
  36. package/dist/dolt/resolve-conflicts.js +100 -0
  37. package/dist/dolt/schema-sync.js +17 -17
  38. package/dist/index.d.ts +10 -7
  39. package/dist/index.js +11 -8
  40. package/dist/utils/error.d.ts +51 -51
  41. package/dist/utils/index.d.ts +2 -2
  42. package/dist/utils/index.js +3 -3
  43. package/dist/utils/schema-conversion.d.ts +27 -1
  44. package/dist/utils/schema-conversion.js +68 -1
  45. package/dist/utils/work-app-mcp.js +4 -3
  46. package/dist/validation/dolt-schemas.d.ts +96 -3
  47. package/dist/validation/dolt-schemas.js +54 -2
  48. package/dist/validation/index.d.ts +2 -2
  49. package/dist/validation/index.js +2 -2
  50. package/dist/validation/schemas.d.ts +1425 -1425
  51. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { credentialReferences, externalAgents, tools } from "../../db/manage/manage-schema.js";
2
- import { projectScopedWhere } from "./scope-helpers.js";
3
2
  import { isUniqueConstraintError } from "../../utils/error.js";
3
+ import { projectScopedWhere } from "./scope-helpers.js";
4
4
  import { and, count, desc, eq, sql } from "drizzle-orm";
5
5
 
6
6
  //#region src/data-access/manage/credentialReferences.ts
@@ -2,8 +2,8 @@ import { dataComponents, subAgentDataComponents } from "../../db/manage/manage-s
2
2
  import { validatePropsAsJsonSchema } from "../../validation/props-validation.js";
3
3
  import { validateRender } from "../../validation/render-validation.js";
4
4
  import { generateId } from "../../utils/conversations.js";
5
- import { projectScopedWhere, subAgentScopedWhere } from "./scope-helpers.js";
6
5
  import { createApiError } from "../../utils/error.js";
6
+ import { projectScopedWhere, subAgentScopedWhere } from "./scope-helpers.js";
7
7
  import "../../utils/index.js";
8
8
  import { and, count, desc, eq } from "drizzle-orm";
9
9
 
@@ -99,8 +99,8 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
99
99
  updatedAt: string;
100
100
  index: number;
101
101
  alwaysLoaded: boolean;
102
- subAgentId: string;
103
102
  skillId: string;
103
+ subAgentId: string;
104
104
  }>;
105
105
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
106
106
  scopes: AgentScopeConfig;
@@ -15,9 +15,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
15
15
  agentId: string;
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
- relationType: string | null;
19
18
  sourceSubAgentId: string;
20
19
  targetSubAgentId: string | null;
20
+ relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -50,9 +50,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
50
50
  agentId: string;
51
51
  createdAt: string;
52
52
  updatedAt: string;
53
- relationType: string | null;
54
53
  sourceSubAgentId: string;
55
54
  targetSubAgentId: string | null;
55
+ relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -63,9 +63,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
63
63
  agentId: string;
64
64
  createdAt: string;
65
65
  updatedAt: string;
66
- relationType: string | null;
67
66
  sourceSubAgentId: string;
68
67
  targetSubAgentId: string | null;
68
+ relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -132,9 +132,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
132
132
  agentId: string;
133
133
  createdAt: string;
134
134
  updatedAt: string;
135
- relationType: string | null;
136
135
  sourceSubAgentId: string;
137
136
  targetSubAgentId: string | null;
137
+ relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -151,9 +151,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
151
151
  agentId: string;
152
152
  createdAt: string;
153
153
  updatedAt: string;
154
- relationType: string | null;
155
154
  sourceSubAgentId: string;
156
155
  targetSubAgentId: string | null;
156
+ relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -165,9 +165,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
165
165
  agentId: string;
166
166
  createdAt: string;
167
167
  updatedAt: string;
168
- relationType: string | null;
169
168
  sourceSubAgentId: string;
170
169
  targetSubAgentId: string | null;
170
+ relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -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" | "header" | "body";
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: "literal" | "header" | "body";
49
+ source: "literal" | "body" | "header";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -16,10 +16,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
16
16
  createdAt: string;
17
17
  updatedAt: string;
18
18
  expiresAt: string | null;
19
+ lastUsedAt: string | null;
19
20
  publicId: string;
20
21
  keyHash: string;
21
22
  keyPrefix: string;
22
- lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
@@ -30,10 +30,10 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
30
30
  createdAt: string;
31
31
  updatedAt: string;
32
32
  expiresAt: string | null;
33
+ lastUsedAt: string | null;
33
34
  publicId: string;
34
35
  keyHash: string;
35
36
  keyPrefix: string;
36
- lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -47,10 +47,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
49
  expiresAt: string | null;
50
+ lastUsedAt: string | null;
50
51
  publicId: string;
51
52
  keyHash: string;
52
53
  keyPrefix: string;
53
- lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -74,10 +74,10 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
74
74
  createdAt: string;
75
75
  updatedAt: string;
76
76
  expiresAt: string | null;
77
+ lastUsedAt: string | null;
77
78
  publicId: string;
78
79
  keyHash: string;
79
80
  keyPrefix: string;
80
- lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -23,9 +23,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
23
23
  type: "api";
24
24
  api: Record<string, never>;
25
25
  };
26
- lastUsedAt: string | null;
27
- defaultProjectId: string | null;
28
26
  defaultAgentId: string | null;
27
+ defaultProjectId: string | null;
28
+ lastUsedAt: string | null;
29
29
  } | undefined>;
30
30
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
31
31
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -70,9 +70,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
70
70
  type: "api";
71
71
  api: Record<string, never>;
72
72
  };
73
- lastUsedAt: string | null;
74
- defaultProjectId: string | null;
75
73
  defaultAgentId: string | null;
74
+ defaultProjectId: string | null;
75
+ lastUsedAt: string | null;
76
76
  }>;
77
77
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
78
78
  scopes: TenantScopeConfig;
@@ -24,12 +24,12 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
26
  metadata: ConversationMetadata | null;
27
- userId: string | null;
28
27
  ref: {
29
- type: "tag" | "commit" | "branch";
28
+ type: "commit" | "tag" | "branch";
30
29
  name: string;
31
30
  hash: string;
32
31
  } | null;
32
+ userId: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -44,7 +44,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
44
44
  agentId: string | null;
45
45
  activeSubAgentId: string;
46
46
  ref: {
47
- type: "tag" | "commit" | "branch";
47
+ type: "commit" | "tag" | "branch";
48
48
  name: string;
49
49
  hash: string;
50
50
  } | null;
@@ -70,7 +70,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
70
70
  agentId: string | null;
71
71
  activeSubAgentId: string;
72
72
  ref: {
73
- type: "tag" | "commit" | "branch";
73
+ type: "commit" | "tag" | "branch";
74
74
  name: string;
75
75
  hash: string;
76
76
  } | null;
@@ -93,12 +93,12 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
93
93
  createdAt: string;
94
94
  updatedAt: string;
95
95
  metadata: ConversationMetadata | null;
96
- userId: string | null;
97
96
  ref: {
98
- type: "tag" | "commit" | "branch";
97
+ type: "commit" | "tag" | "branch";
99
98
  name: string;
100
99
  hash: string;
101
100
  } | null;
101
+ userId: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -108,7 +108,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
108
108
  tenantId: string;
109
109
  id: string;
110
110
  ref: {
111
- type: "tag" | "commit" | "branch";
111
+ type: "commit" | "tag" | "branch";
112
112
  name: string;
113
113
  hash: string;
114
114
  };
@@ -129,12 +129,12 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
129
129
  createdAt: string;
130
130
  updatedAt: string;
131
131
  metadata: ConversationMetadata | null;
132
- userId: string | null;
133
132
  ref: {
134
- type: "tag" | "commit" | "branch";
133
+ type: "commit" | "tag" | "branch";
135
134
  name: string;
136
135
  hash: string;
137
136
  } | null;
137
+ userId: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -161,12 +161,12 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
163
  metadata: ConversationMetadata | null;
164
- userId: string | null;
165
164
  ref: {
166
- type: "tag" | "commit" | "branch";
165
+ type: "commit" | "tag" | "branch";
167
166
  name: string;
168
167
  hash: string;
169
168
  } | null;
169
+ userId: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -35,7 +35,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
37
  ref: {
38
- type: "tag" | "commit" | "branch";
38
+ type: "commit" | "tag" | "branch";
39
39
  name: string;
40
40
  hash: string;
41
41
  } | null;
@@ -189,7 +189,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
189
189
  data: {
190
190
  scheduledTriggerId: string;
191
191
  ref: {
192
- type: "tag" | "commit" | "branch";
192
+ type: "commit" | "tag" | "branch";
193
193
  name: string;
194
194
  hash: string;
195
195
  } | null;
@@ -228,7 +228,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
228
228
  data: {
229
229
  scheduledTriggerId: string;
230
230
  ref: {
231
- type: "tag" | "commit" | "branch";
231
+ type: "commit" | "tag" | "branch";
232
232
  name: string;
233
233
  hash: string;
234
234
  } | null;
@@ -14,14 +14,14 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  metadata: TaskMetadataConfig | null;
17
- status: string;
18
17
  ref: {
19
- type: "tag" | "commit" | "branch";
18
+ type: "commit" | "tag" | "branch";
20
19
  name: string;
21
20
  hash: string;
22
21
  } | null;
23
- contextId: string;
22
+ status: string;
24
23
  subAgentId: string;
24
+ contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;
@@ -39,7 +39,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
39
39
  updatedAt: string;
40
40
  contextId: string;
41
41
  ref: {
42
- type: "tag" | "commit" | "branch";
42
+ type: "commit" | "tag" | "branch";
43
43
  name: string;
44
44
  hash: string;
45
45
  } | null;
@@ -29,7 +29,7 @@ declare const listTriggerInvocationsPaginated: (db: AgentsRunDatabaseClient) =>
29
29
  triggerId: string;
30
30
  conversationId: string | null;
31
31
  ref: {
32
- type: "tag" | "commit" | "branch";
32
+ type: "commit" | "tag" | "branch";
33
33
  name: string;
34
34
  hash: string;
35
35
  } | null;