@inkeep/agents-core 0.68.0 → 0.68.1

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.
@@ -14,12 +14,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
14
14
  updatedAt: string;
15
15
  expiresAt: string | null;
16
16
  tenantId: string;
17
- agentId: string;
18
17
  projectId: string;
19
- lastUsedAt: string | null;
18
+ agentId: string;
20
19
  publicId: string;
21
20
  keyHash: string;
22
21
  keyPrefix: string;
22
+ lastUsedAt: string | null;
23
23
  } | undefined>;
24
24
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
25
25
  id: string;
@@ -28,12 +28,12 @@ declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: s
28
28
  updatedAt: string;
29
29
  expiresAt: string | null;
30
30
  tenantId: string;
31
- agentId: string;
32
31
  projectId: string;
33
- lastUsedAt: string | null;
32
+ agentId: string;
34
33
  publicId: string;
35
34
  keyHash: string;
36
35
  keyPrefix: string;
36
+ lastUsedAt: string | null;
37
37
  } | undefined>;
38
38
  declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
39
39
  scopes: ProjectScopeConfig;
@@ -45,12 +45,12 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
45
45
  updatedAt: string;
46
46
  expiresAt: string | null;
47
47
  tenantId: string;
48
- agentId: string;
49
48
  projectId: string;
50
- lastUsedAt: string | null;
49
+ agentId: string;
51
50
  publicId: string;
52
51
  keyHash: string;
53
52
  keyPrefix: string;
53
+ lastUsedAt: string | null;
54
54
  }[]>;
55
55
  declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
56
56
  scopes: ProjectScopeConfig;
@@ -72,12 +72,12 @@ declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInse
72
72
  updatedAt: string;
73
73
  expiresAt: string | null;
74
74
  tenantId: string;
75
- agentId: string;
76
75
  projectId: string;
77
- lastUsedAt: string | null;
76
+ agentId: string;
78
77
  publicId: string;
79
78
  keyHash: string;
80
79
  keyPrefix: string;
80
+ lastUsedAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -5,13 +5,13 @@ 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
- type: AppType;
9
- enabled: boolean;
10
8
  id: string;
11
9
  name: string;
12
10
  createdAt: string;
13
11
  updatedAt: string;
12
+ type: AppType;
14
13
  description: string | null;
14
+ enabled: boolean;
15
15
  prompt: string | null;
16
16
  tenantId: string | null;
17
17
  projectId: string | null;
@@ -32,9 +32,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
32
32
  type: "api";
33
33
  api: Record<string, never>;
34
34
  };
35
- defaultAgentId: string | null;
36
- defaultProjectId: string | null;
37
35
  lastUsedAt: string | null;
36
+ defaultProjectId: string | null;
37
+ defaultAgentId: string | null;
38
38
  } | undefined>;
39
39
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
40
40
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -61,13 +61,13 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
61
61
  };
62
62
  }>;
63
63
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
64
- type: AppType;
65
- enabled: boolean;
66
64
  id: string;
67
65
  name: string;
68
66
  createdAt: string;
69
67
  updatedAt: string;
68
+ type: AppType;
70
69
  description: string | null;
70
+ enabled: boolean;
71
71
  prompt: string | null;
72
72
  tenantId: string | null;
73
73
  projectId: string | null;
@@ -88,9 +88,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
88
88
  type: "api";
89
89
  api: Record<string, never>;
90
90
  };
91
- defaultAgentId: string | null;
92
- defaultProjectId: string | null;
93
91
  lastUsedAt: string | null;
92
+ defaultProjectId: string | null;
93
+ defaultAgentId: string | null;
94
94
  }>;
95
95
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
96
96
  scopes: TenantScopeConfig;
@@ -25,10 +25,10 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
25
25
  } | null;
26
26
  userId: string | null;
27
27
  metadata: ConversationMetadata | null;
28
- tenantId: string;
29
28
  title: string | null;
30
- agentId: string | null;
29
+ tenantId: string;
31
30
  projectId: string;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -94,10 +94,10 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
94
94
  } | null;
95
95
  userId: string | null;
96
96
  metadata: ConversationMetadata | null;
97
- tenantId: string;
98
97
  title: string | null;
99
- agentId: string | null;
98
+ tenantId: string;
100
99
  projectId: string;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -130,10 +130,10 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
130
130
  } | null;
131
131
  userId: string | null;
132
132
  metadata: ConversationMetadata | null;
133
- tenantId: string;
134
133
  title: string | null;
135
- agentId: string | null;
134
+ tenantId: string;
136
135
  projectId: string;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -162,10 +162,10 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
162
162
  } | null;
163
163
  userId: string | null;
164
164
  metadata: ConversationMetadata | null;
165
- tenantId: string;
166
165
  title: string | null;
167
- agentId: string | null;
166
+ tenantId: string;
168
167
  projectId: string;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -58,15 +58,15 @@ declare const listFeedback: (db: AgentsRunDatabaseClient) => (params: {
58
58
  total: number;
59
59
  }>;
60
60
  declare const createFeedback: (db: AgentsRunDatabaseClient) => (params: FeedbackInsert) => Promise<{
61
- type: "positive" | "negative";
62
61
  id: string;
63
62
  createdAt: string;
64
63
  updatedAt: string;
64
+ type: "positive" | "negative";
65
65
  tenantId: string;
66
66
  projectId: string;
67
+ details: string | null;
67
68
  conversationId: string;
68
69
  messageId: string | null;
69
- details: string | null;
70
70
  }>;
71
71
  declare const updateFeedback: (db: AgentsRunDatabaseClient) => (params: {
72
72
  scopes: ProjectScopeConfig;
@@ -87,15 +87,15 @@ declare const deleteFeedback: (db: AgentsRunDatabaseClient) => (params: {
87
87
  scopes: ProjectScopeConfig;
88
88
  feedbackId: string;
89
89
  }) => Promise<{
90
- type: "positive" | "negative";
91
90
  id: string;
92
91
  createdAt: string;
93
92
  updatedAt: string;
93
+ type: "positive" | "negative";
94
94
  tenantId: string;
95
95
  projectId: string;
96
+ details: string | null;
96
97
  conversationId: string;
97
98
  messageId: string | null;
98
- details: string | null;
99
99
  }>;
100
100
  //#endregion
101
101
  export { createFeedback, deleteFeedback, getFeedbackById, listFeedback, listFeedbackByConversation, updateFeedback };
@@ -16,20 +16,20 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
16
16
  metadata: MessageMetadata | null;
17
17
  role: string;
18
18
  tenantId: string;
19
- content: MessageContent;
20
19
  projectId: string;
21
- conversationId: string;
20
+ content: MessageContent;
22
21
  fromSubAgentId: string | null;
23
22
  toSubAgentId: string | null;
24
23
  fromExternalAgentId: string | null;
25
24
  toExternalAgentId: string | null;
25
+ taskId: string | null;
26
+ a2aTaskId: string | null;
27
+ conversationId: 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: {
@@ -150,20 +150,20 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
150
150
  metadata: MessageMetadata | null;
151
151
  role: string;
152
152
  tenantId: string;
153
- content: MessageContent;
154
153
  projectId: string;
155
- conversationId: string;
154
+ content: MessageContent;
156
155
  fromSubAgentId: string | null;
157
156
  toSubAgentId: string | null;
158
157
  fromExternalAgentId: string | null;
159
158
  toExternalAgentId: string | null;
159
+ taskId: string | null;
160
+ a2aTaskId: string | null;
161
+ conversationId: string;
160
162
  fromTeamAgentId: string | null;
161
163
  toTeamAgentId: string | null;
162
164
  visibility: string;
163
165
  messageType: string;
164
- taskId: string | null;
165
166
  parentMessageId: string | null;
166
- a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -203,20 +203,20 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
203
203
  metadata: MessageMetadata | null;
204
204
  role: string;
205
205
  tenantId: string;
206
- content: MessageContent;
207
206
  projectId: string;
208
- conversationId: string;
207
+ content: MessageContent;
209
208
  fromSubAgentId: string | null;
210
209
  toSubAgentId: string | null;
211
210
  fromExternalAgentId: string | null;
212
211
  toExternalAgentId: string | null;
212
+ taskId: string | null;
213
+ a2aTaskId: string | null;
214
+ conversationId: string;
213
215
  fromTeamAgentId: string | null;
214
216
  toTeamAgentId: string | null;
215
217
  visibility: string;
216
218
  messageType: string;
217
- taskId: string | null;
218
219
  parentMessageId: string | null;
219
- a2aTaskId: string | null;
220
220
  a2aSessionId: string | null;
221
221
  }>;
222
222
  declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
@@ -40,7 +40,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;
43
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
43
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -199,7 +199,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
199
199
  name: string;
200
200
  hash: string;
201
201
  } | null;
202
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
202
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
203
203
  scheduledFor: string;
204
204
  startedAt: string | null;
205
205
  completedAt: string | null;
@@ -239,7 +239,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
239
239
  name: string;
240
240
  hash: string;
241
241
  } | null;
242
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
242
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
243
243
  scheduledFor: string;
244
244
  startedAt: string | null;
245
245
  completedAt: string | null;
@@ -292,7 +292,7 @@ declare const listScheduledTriggerInvocationsByTriggerId: (db: AgentsRunDatabase
292
292
  name: string;
293
293
  hash: string;
294
294
  } | null;
295
- status: "pending" | "running" | "completed" | "failed" | "cancelled";
295
+ status: "pending" | "failed" | "running" | "completed" | "cancelled";
296
296
  scheduledFor: string;
297
297
  startedAt: string | null;
298
298
  completedAt: string | null;
@@ -18,8 +18,8 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
18
18
  metadata: TaskMetadataConfig | null;
19
19
  status: string;
20
20
  tenantId: string;
21
- agentId: string;
22
21
  projectId: string;
22
+ agentId: string;
23
23
  subAgentId: string;
24
24
  contextId: string;
25
25
  }>;