@inkeep/agents-core 0.53.6 → 0.53.7

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 (32) hide show
  1. package/dist/auth/auth-schema.d.ts +85 -85
  2. package/dist/auth/auth-validation-schemas.d.ts +152 -152
  3. package/dist/auth/auth.d.ts +28 -28
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/client-exports.d.ts +2 -2
  6. package/dist/data-access/manage/agents.d.ts +31 -31
  7. package/dist/data-access/manage/artifactComponents.d.ts +20 -20
  8. package/dist/data-access/manage/contextConfigs.d.ts +12 -12
  9. package/dist/data-access/manage/dataComponents.d.ts +8 -8
  10. package/dist/data-access/manage/functionTools.d.ts +20 -20
  11. package/dist/data-access/manage/skills.d.ts +20 -20
  12. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
  13. package/dist/data-access/manage/subAgentRelations.d.ts +28 -28
  14. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +24 -24
  15. package/dist/data-access/manage/subAgents.d.ts +21 -21
  16. package/dist/data-access/manage/tools.d.ts +27 -27
  17. package/dist/data-access/manage/triggers.d.ts +2 -2
  18. package/dist/data-access/runtime/apiKeys.d.ts +20 -20
  19. package/dist/data-access/runtime/conversations.d.ts +31 -31
  20. package/dist/data-access/runtime/messages.d.ts +27 -27
  21. package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
  22. package/dist/data-access/runtime/tasks.d.ts +9 -9
  23. package/dist/db/manage/manage-schema.d.ts +357 -357
  24. package/dist/db/runtime/runtime-schema.d.ts +272 -272
  25. package/dist/utils/service-token-auth.d.ts +1 -1
  26. package/dist/utils/service-token-auth.js +2 -2
  27. package/dist/utils/slack-user-token.js +1 -1
  28. package/dist/validation/dolt-schemas.d.ts +1 -1
  29. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  30. package/dist/validation/schemas.d.ts +1982 -1982
  31. package/dist/validation/schemas.js +7 -1
  32. package/package.json +1 -1
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
- id: string;
11
+ agentId: string;
12
+ projectId: string;
13
+ tenantId: string;
12
14
  name: string | null;
15
+ id: string;
13
16
  createdAt: string;
14
17
  updatedAt: string;
15
- expiresAt: string | null;
16
- tenantId: string;
17
- projectId: string;
18
- agentId: string;
19
18
  publicId: string;
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;
25
+ agentId: string;
26
+ projectId: string;
27
+ tenantId: string;
26
28
  name: string | null;
29
+ id: string;
27
30
  createdAt: string;
28
31
  updatedAt: string;
29
- expiresAt: string | null;
30
- tenantId: string;
31
- projectId: string;
32
- agentId: string;
33
32
  publicId: string;
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;
42
+ agentId: string;
43
+ projectId: string;
44
+ tenantId: string;
43
45
  name: string | null;
46
+ id: string;
44
47
  createdAt: string;
45
48
  updatedAt: string;
46
- expiresAt: string | null;
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
49
  publicId: string;
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,18 +66,18 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
66
66
  };
67
67
  }>;
68
68
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
69
- id: string;
69
+ agentId: string;
70
+ projectId: string;
71
+ tenantId: string;
70
72
  name: string | null;
73
+ id: string;
71
74
  createdAt: string;
72
75
  updatedAt: string;
73
- expiresAt: string | null;
74
- tenantId: string;
75
- projectId: string;
76
- agentId: string;
77
76
  publicId: string;
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;
@@ -16,20 +16,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
16
16
  total: number;
17
17
  }>;
18
18
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
19
+ agentId: string | null;
20
+ projectId: string;
21
+ tenantId: string;
22
+ userId: string | null;
23
+ title: string | null;
19
24
  id: string;
20
25
  createdAt: string;
21
26
  updatedAt: string;
27
+ metadata: ConversationMetadata | null;
22
28
  ref: {
23
- type: "tag" | "commit" | "branch";
29
+ type: "commit" | "tag" | "branch";
24
30
  name: string;
25
31
  hash: string;
26
32
  } | null;
27
- userId: string | null;
28
- metadata: ConversationMetadata | null;
29
- tenantId: string;
30
- projectId: string;
31
- agentId: string | null;
32
- title: 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;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
+ agentId: string | null;
89
+ projectId: string;
90
+ tenantId: string;
91
+ userId: string | null;
92
+ title: string | null;
88
93
  id: string;
89
94
  createdAt: string;
90
95
  updatedAt: string;
96
+ metadata: ConversationMetadata | null;
91
97
  ref: {
92
- type: "tag" | "commit" | "branch";
98
+ type: "commit" | "tag" | "branch";
93
99
  name: string;
94
100
  hash: string;
95
101
  } | null;
96
- userId: string | null;
97
- metadata: ConversationMetadata | null;
98
- tenantId: string;
99
- projectId: string;
100
- agentId: string | null;
101
- title: 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
  };
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
+ agentId: string | null;
125
+ projectId: string;
126
+ tenantId: string;
127
+ userId: string | null;
128
+ title: string | null;
124
129
  id: string;
125
130
  createdAt: string;
126
131
  updatedAt: string;
132
+ metadata: ConversationMetadata | null;
127
133
  ref: {
128
- type: "tag" | "commit" | "branch";
134
+ type: "commit" | "tag" | "branch";
129
135
  name: string;
130
136
  hash: string;
131
137
  } | null;
132
- userId: string | null;
133
- metadata: ConversationMetadata | null;
134
- tenantId: string;
135
- projectId: string;
136
- agentId: string | null;
137
- title: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -153,20 +153,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
153
153
  scopes: ProjectScopeConfig;
154
154
  conversationId: string;
155
155
  }) => Promise<{
156
+ agentId: string | null;
157
+ projectId: string;
158
+ tenantId: string;
159
+ userId: string | null;
160
+ title: string | null;
156
161
  id: string;
157
162
  createdAt: string;
158
163
  updatedAt: string;
164
+ metadata: ConversationMetadata | null;
159
165
  ref: {
160
- type: "tag" | "commit" | "branch";
166
+ type: "commit" | "tag" | "branch";
161
167
  name: string;
162
168
  hash: string;
163
169
  } | null;
164
- userId: string | null;
165
- metadata: ConversationMetadata | null;
166
- tenantId: string;
167
- projectId: string;
168
- agentId: string | null;
169
- title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | undefined>;
@@ -10,26 +10,26 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- id: string;
14
- createdAt: string;
15
- updatedAt: string;
16
- metadata: MessageMetadata | null;
17
- role: string;
18
- tenantId: string;
19
13
  projectId: string;
14
+ tenantId: string;
20
15
  content: MessageContent;
21
- conversationId: string;
22
16
  fromSubAgentId: string | null;
23
17
  toSubAgentId: string | null;
24
18
  fromExternalAgentId: string | null;
25
19
  toExternalAgentId: string | null;
20
+ taskId: string | null;
21
+ a2aTaskId: string | null;
22
+ id: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ metadata: MessageMetadata | null;
26
+ conversationId: string;
27
+ role: string;
26
28
  fromTeamAgentId: string | null;
27
29
  toTeamAgentId: string | null;
28
30
  visibility: string;
29
31
  messageType: string;
30
- taskId: string | null;
31
32
  parentMessageId: string | null;
32
- a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -141,26 +141,26 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- id: string;
145
- createdAt: string;
146
- updatedAt: string;
147
- metadata: MessageMetadata | null;
148
- role: string;
149
- tenantId: string;
150
144
  projectId: string;
145
+ tenantId: string;
151
146
  content: MessageContent;
152
- conversationId: string;
153
147
  fromSubAgentId: string | null;
154
148
  toSubAgentId: string | null;
155
149
  fromExternalAgentId: string | null;
156
150
  toExternalAgentId: string | null;
151
+ taskId: string | null;
152
+ a2aTaskId: string | null;
153
+ id: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ metadata: MessageMetadata | null;
157
+ conversationId: string;
158
+ role: string;
157
159
  fromTeamAgentId: string | null;
158
160
  toTeamAgentId: string | null;
159
161
  visibility: string;
160
162
  messageType: string;
161
- taskId: string | null;
162
163
  parentMessageId: string | null;
163
- a2aTaskId: string | null;
164
164
  a2aSessionId: string | null;
165
165
  }>;
166
166
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -194,26 +194,26 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- id: string;
198
- createdAt: string;
199
- updatedAt: string;
200
- metadata: MessageMetadata | null;
201
- role: string;
202
- tenantId: string;
203
197
  projectId: string;
198
+ tenantId: string;
204
199
  content: MessageContent;
205
- conversationId: string;
206
200
  fromSubAgentId: string | null;
207
201
  toSubAgentId: string | null;
208
202
  fromExternalAgentId: string | null;
209
203
  toExternalAgentId: string | null;
204
+ taskId: string | null;
205
+ a2aTaskId: string | null;
206
+ id: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
+ metadata: MessageMetadata | null;
210
+ conversationId: string;
211
+ role: string;
210
212
  fromTeamAgentId: string | null;
211
213
  toTeamAgentId: string | null;
212
214
  visibility: string;
213
215
  messageType: string;
214
- taskId: string | null;
215
216
  parentMessageId: string | null;
216
- a2aTaskId: string | null;
217
217
  a2aSessionId: string | null;
218
218
  }>;
219
219
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
37
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
38
38
  scheduledFor: string;
39
39
  startedAt: string | null;
40
40
  completedAt: string | null;
@@ -174,7 +174,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
174
174
  }) => Promise<{
175
175
  data: {
176
176
  scheduledTriggerId: string;
177
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
177
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
178
178
  scheduledFor: string;
179
179
  startedAt: string | null;
180
180
  completedAt: string | null;
@@ -208,7 +208,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
208
208
  }) => Promise<{
209
209
  data: {
210
210
  scheduledTriggerId: string;
211
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
211
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;
@@ -6,21 +6,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
6
6
 
7
7
  //#region src/data-access/runtime/tasks.d.ts
8
8
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
9
+ agentId: string;
10
+ projectId: string;
11
+ tenantId: string;
12
+ subAgentId: string;
9
13
  id: string;
10
14
  createdAt: string;
11
15
  updatedAt: string;
16
+ metadata: TaskMetadataConfig | null;
17
+ status: string;
18
+ contextId: string;
12
19
  ref: {
13
- type: "tag" | "commit" | "branch";
20
+ type: "commit" | "tag" | "branch";
14
21
  name: string;
15
22
  hash: string;
16
23
  } | null;
17
- metadata: TaskMetadataConfig | null;
18
- status: string;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string;
22
- subAgentId: string;
23
- contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -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;