@inkeep/agents-core 0.58.0 → 0.58.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.
@@ -8,49 +8,49 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
13
+ agentId: string;
14
+ name: string | null;
11
15
  id: string;
12
16
  createdAt: string;
13
17
  updatedAt: string;
14
18
  expiresAt: string | null;
15
- name: string | null;
16
- tenantId: string;
17
- projectId: string;
18
- agentId: string;
19
- lastUsedAt: string | null;
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
+ tenantId: string;
26
+ projectId: string;
27
+ agentId: string;
28
+ name: string | null;
25
29
  id: string;
26
30
  createdAt: string;
27
31
  updatedAt: string;
28
32
  expiresAt: string | null;
29
- name: string | null;
30
- tenantId: string;
31
- projectId: string;
32
- agentId: string;
33
- lastUsedAt: string | null;
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;
40
40
  agentId?: string;
41
41
  }) => Promise<{
42
+ tenantId: string;
43
+ projectId: string;
44
+ agentId: string;
45
+ name: string | null;
42
46
  id: string;
43
47
  createdAt: string;
44
48
  updatedAt: string;
45
49
  expiresAt: string | null;
46
- name: string | null;
47
- tenantId: string;
48
- projectId: string;
49
- agentId: string;
50
- lastUsedAt: string | null;
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;
@@ -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
+ tenantId: string;
70
+ projectId: string;
71
+ agentId: string;
72
+ name: string | null;
69
73
  id: string;
70
74
  createdAt: string;
71
75
  updatedAt: string;
72
76
  expiresAt: string | null;
73
- name: string | null;
74
- tenantId: string;
75
- projectId: string;
76
- agentId: string;
77
- lastUsedAt: string | null;
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;
@@ -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
- metadata: ConversationMetadata | null;
19
+ tenantId: string;
20
+ projectId: string;
21
+ agentId: string | null;
22
+ title: string | null;
23
+ userId: string | null;
20
24
  id: string;
21
25
  createdAt: string;
22
26
  updatedAt: string;
23
- userId: string | null;
27
+ metadata: ConversationMetadata | null;
24
28
  ref: {
25
29
  type: "commit" | "tag" | "branch";
26
30
  name: string;
27
31
  hash: string;
28
32
  } | 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
  }>;
@@ -85,20 +85,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
85
85
  scopes: ProjectScopeConfig;
86
86
  conversationId: string;
87
87
  }) => Promise<{
88
- metadata: ConversationMetadata | null;
88
+ tenantId: string;
89
+ projectId: string;
90
+ agentId: string | null;
91
+ title: string | null;
92
+ userId: string | null;
89
93
  id: string;
90
94
  createdAt: string;
91
95
  updatedAt: string;
92
- userId: string | null;
96
+ metadata: ConversationMetadata | null;
93
97
  ref: {
94
98
  type: "commit" | "tag" | "branch";
95
99
  name: string;
96
100
  hash: string;
97
101
  } | 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>;
@@ -121,20 +121,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
121
121
  metadata?: ConversationMetadata | null | undefined;
122
122
  contextConfigId?: string | undefined;
123
123
  } | {
124
- metadata: ConversationMetadata | null;
124
+ tenantId: string;
125
+ projectId: string;
126
+ agentId: string | null;
127
+ title: string | null;
128
+ userId: string | null;
125
129
  id: string;
126
130
  createdAt: string;
127
131
  updatedAt: string;
128
- userId: string | null;
132
+ metadata: ConversationMetadata | null;
129
133
  ref: {
130
134
  type: "commit" | "tag" | "branch";
131
135
  name: string;
132
136
  hash: string;
133
137
  } | 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
- metadata: ConversationMetadata | null;
156
+ tenantId: string;
157
+ projectId: string;
158
+ agentId: string | null;
159
+ title: string | null;
160
+ userId: string | null;
157
161
  id: string;
158
162
  createdAt: string;
159
163
  updatedAt: string;
160
- userId: string | null;
164
+ metadata: ConversationMetadata | null;
161
165
  ref: {
162
166
  type: "commit" | "tag" | "branch";
163
167
  name: string;
164
168
  hash: string;
165
169
  } | 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,11 +10,6 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
- metadata: MessageMetadata | null;
14
- id: string;
15
- createdAt: string;
16
- updatedAt: string;
17
- role: string;
18
13
  tenantId: string;
19
14
  projectId: string;
20
15
  content: MessageContent;
@@ -24,6 +19,11 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
24
19
  toExternalAgentId: string | null;
25
20
  taskId: string | null;
26
21
  a2aTaskId: string | null;
22
+ id: string;
23
+ createdAt: string;
24
+ updatedAt: string;
25
+ metadata: MessageMetadata | null;
26
+ role: string;
27
27
  conversationId: string;
28
28
  fromTeamAgentId: string | null;
29
29
  toTeamAgentId: string | null;
@@ -141,11 +141,6 @@ declare const getVisibleMessages: (db: AgentsRunDatabaseClient) => (params: {
141
141
  id: string;
142
142
  }[]>;
143
143
  declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageInsert) => Promise<{
144
- metadata: MessageMetadata | null;
145
- id: string;
146
- createdAt: string;
147
- updatedAt: string;
148
- role: string;
149
144
  tenantId: string;
150
145
  projectId: string;
151
146
  content: MessageContent;
@@ -155,6 +150,11 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
155
150
  toExternalAgentId: string | null;
156
151
  taskId: string | null;
157
152
  a2aTaskId: string | null;
153
+ id: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ metadata: MessageMetadata | null;
157
+ role: string;
158
158
  conversationId: string;
159
159
  fromTeamAgentId: string | null;
160
160
  toTeamAgentId: string | null;
@@ -194,11 +194,6 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
194
194
  scopes: ProjectScopeConfig;
195
195
  messageId: string;
196
196
  }) => Promise<{
197
- metadata: MessageMetadata | null;
198
- id: string;
199
- createdAt: string;
200
- updatedAt: string;
201
- role: string;
202
197
  tenantId: string;
203
198
  projectId: string;
204
199
  content: MessageContent;
@@ -208,6 +203,11 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
208
203
  toExternalAgentId: string | null;
209
204
  taskId: string | null;
210
205
  a2aTaskId: string | null;
206
+ id: string;
207
+ createdAt: string;
208
+ updatedAt: string;
209
+ metadata: MessageMetadata | null;
210
+ role: string;
211
211
  conversationId: string;
212
212
  fromTeamAgentId: string | null;
213
213
  toTeamAgentId: string | null;
@@ -34,7 +34,7 @@ declare const listScheduledTriggerInvocationsPaginated: (db: AgentsRunDatabaseCl
34
34
  }) => Promise<{
35
35
  data: {
36
36
  scheduledTriggerId: string;
37
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
37
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
177
+ status: "pending" | "running" | "completed" | "failed" | "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" | "failed" | "running" | "completed" | "cancelled";
211
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
212
212
  scheduledFor: string;
213
213
  startedAt: string | null;
214
214
  completedAt: string | null;
@@ -6,20 +6,20 @@ 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
- metadata: TaskMetadataConfig | null;
9
+ tenantId: string;
10
+ projectId: string;
11
+ agentId: string;
12
+ subAgentId: string;
13
+ status: string;
10
14
  id: string;
11
15
  createdAt: string;
12
16
  updatedAt: string;
13
- status: string;
17
+ metadata: TaskMetadataConfig | null;
14
18
  ref: {
15
19
  type: "commit" | "tag" | "branch";
16
20
  name: string;
17
21
  hash: string;
18
22
  } | null;
19
- tenantId: string;
20
- projectId: string;
21
- agentId: string;
22
- subAgentId: string;
23
23
  contextId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {