@inkeep/agents-core 0.0.0-dev-20260324170433 → 0.0.0-dev-20260324172420

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.
@@ -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,11 +138,11 @@ 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;
145
+ headers: Record<string, string> | null;
146
146
  toolId: string;
147
147
  toolPolicies: Record<string, {
148
148
  needsApproval?: boolean;
@@ -157,11 +157,11 @@ 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;
164
+ headers: Record<string, string> | null;
165
165
  toolId: string;
166
166
  toolPolicies: Record<string, {
167
167
  needsApproval?: boolean;
@@ -185,11 +185,11 @@ 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;
192
+ headers: Record<string, string> | null;
193
193
  toolId: string;
194
194
  toolPolicies: Record<string, {
195
195
  needsApproval?: boolean;
@@ -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;
@@ -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" | "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,18 +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;
8
+ type: AppType;
9
9
  name: string;
10
+ id: string;
10
11
  createdAt: string;
11
12
  updatedAt: string;
12
- description: string | null;
13
- enabled: boolean;
14
- type: AppType;
15
13
  projectId: string | null;
16
14
  tenantId: string | null;
17
- lastUsedAt: string | null;
18
- defaultProjectId: string | null;
19
- defaultAgentId: string | null;
15
+ description: string | null;
16
+ enabled: boolean;
20
17
  config: {
21
18
  type: "web_client";
22
19
  webClient: {
@@ -26,6 +23,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
26
23
  type: "api";
27
24
  api: Record<string, never>;
28
25
  };
26
+ lastUsedAt: string | null;
27
+ defaultProjectId: string | null;
28
+ defaultAgentId: string | null;
29
29
  } | undefined>;
30
30
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
31
31
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -52,18 +52,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
52
52
  };
53
53
  }>;
54
54
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
55
- id: string;
55
+ type: AppType;
56
56
  name: string;
57
+ id: string;
57
58
  createdAt: string;
58
59
  updatedAt: string;
59
- description: string | null;
60
- enabled: boolean;
61
- type: AppType;
62
60
  projectId: string | null;
63
61
  tenantId: string | null;
64
- lastUsedAt: string | null;
65
- defaultProjectId: string | null;
66
- defaultAgentId: string | null;
62
+ description: string | null;
63
+ enabled: boolean;
67
64
  config: {
68
65
  type: "web_client";
69
66
  webClient: {
@@ -73,6 +70,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
73
70
  type: "api";
74
71
  api: Record<string, never>;
75
72
  };
73
+ lastUsedAt: string | null;
74
+ defaultProjectId: string | null;
75
+ defaultAgentId: string | null;
76
76
  }>;
77
77
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
78
78
  scopes: TenantScopeConfig;
@@ -19,17 +19,17 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
19
19
  id: string;
20
20
  createdAt: string;
21
21
  updatedAt: string;
22
+ agentId: string | null;
23
+ projectId: string;
24
+ tenantId: string;
25
+ title: string | null;
26
+ metadata: ConversationMetadata | null;
27
+ userId: string | null;
22
28
  ref: {
23
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
- agentId: string | null;
30
- projectId: string;
31
- tenantId: string;
32
- title: string | null;
33
33
  activeSubAgentId: string;
34
34
  lastContextResolution: string | null;
35
35
  }>;
@@ -88,17 +88,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
88
88
  id: string;
89
89
  createdAt: string;
90
90
  updatedAt: string;
91
+ agentId: string | null;
92
+ projectId: string;
93
+ tenantId: string;
94
+ title: string | null;
95
+ metadata: ConversationMetadata | null;
96
+ userId: string | null;
91
97
  ref: {
92
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
- agentId: string | null;
99
- projectId: string;
100
- tenantId: string;
101
- title: string | null;
102
102
  activeSubAgentId: string;
103
103
  lastContextResolution: string | null;
104
104
  } | undefined>;
@@ -124,17 +124,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
124
124
  id: string;
125
125
  createdAt: string;
126
126
  updatedAt: string;
127
+ agentId: string | null;
128
+ projectId: string;
129
+ tenantId: string;
130
+ title: string | null;
131
+ metadata: ConversationMetadata | null;
132
+ userId: string | null;
127
133
  ref: {
128
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
- agentId: string | null;
135
- projectId: string;
136
- tenantId: string;
137
- title: string | null;
138
138
  activeSubAgentId: string;
139
139
  lastContextResolution: string | null;
140
140
  }>;
@@ -156,17 +156,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
156
156
  id: string;
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
+ agentId: string | null;
160
+ projectId: string;
161
+ tenantId: string;
162
+ title: string | null;
163
+ metadata: ConversationMetadata | null;
164
+ userId: string | null;
159
165
  ref: {
160
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
- agentId: string | null;
167
- projectId: string;
168
- tenantId: string;
169
- title: string | null;
170
170
  activeSubAgentId: string;
171
171
  lastContextResolution: string | null;
172
172
  } | 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
+ status: string;
18
+ subAgentId: 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: {