@inkeep/agents-core 0.0.0-dev-20260327195114 → 0.0.0-dev-20260328075633

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.
@@ -9,14 +9,14 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  subAgentId: string;
11
11
  }) => Promise<{
12
- id: string;
13
- name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
12
  description: string | null;
17
- agentId: string;
18
- projectId: string;
19
- tenantId: string;
13
+ name: string;
14
+ stopWhen: {
15
+ stepCountIs?: number | undefined;
16
+ } | null;
17
+ prompt: string | null;
18
+ id: string;
19
+ conversationHistoryConfig: ConversationHistoryConfig | null;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -31,23 +31,23 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
31
31
  providerOptions?: Record<string, unknown> | undefined;
32
32
  } | undefined;
33
33
  } | null;
34
- prompt: string | null;
35
- stopWhen: {
36
- stepCountIs?: number | undefined;
37
- } | null;
38
- conversationHistoryConfig: ConversationHistoryConfig | null;
39
- } | undefined>;
40
- declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
- scopes: AgentScopeConfig;
42
- }) => Promise<{
43
- id: string;
44
- name: string;
45
34
  createdAt: string;
46
35
  updatedAt: string;
47
- description: string | null;
48
36
  agentId: string;
49
37
  projectId: string;
50
38
  tenantId: string;
39
+ } | undefined>;
40
+ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
41
+ scopes: AgentScopeConfig;
42
+ }) => Promise<{
43
+ description: string | null;
44
+ name: string;
45
+ stopWhen: {
46
+ stepCountIs?: number | undefined;
47
+ } | null;
48
+ prompt: string | null;
49
+ id: string;
50
+ conversationHistoryConfig: ConversationHistoryConfig | null;
51
51
  models: {
52
52
  base?: {
53
53
  model?: string | undefined;
@@ -62,11 +62,11 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
62
62
  providerOptions?: Record<string, unknown> | undefined;
63
63
  } | undefined;
64
64
  } | null;
65
- prompt: string | null;
66
- stopWhen: {
67
- stepCountIs?: number | undefined;
68
- } | null;
69
- conversationHistoryConfig: ConversationHistoryConfig | null;
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ agentId: string;
68
+ projectId: string;
69
+ tenantId: string;
70
70
  }[]>;
71
71
  declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
72
72
  scopes: AgentScopeConfig;
@@ -109,14 +109,14 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
109
109
  };
110
110
  }>;
111
111
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
112
- id: string;
113
- name: string;
114
- createdAt: string;
115
- updatedAt: string;
116
112
  description: string | null;
117
- agentId: string;
118
- projectId: string;
119
- tenantId: string;
113
+ name: string;
114
+ stopWhen: {
115
+ stepCountIs?: number | undefined;
116
+ } | null;
117
+ prompt: string | null;
118
+ id: string;
119
+ conversationHistoryConfig: ConversationHistoryConfig | null;
120
120
  models: {
121
121
  base?: {
122
122
  model?: string | undefined;
@@ -131,11 +131,11 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
131
131
  providerOptions?: Record<string, unknown> | undefined;
132
132
  } | undefined;
133
133
  } | null;
134
- prompt: string | null;
135
- stopWhen: {
136
- stepCountIs?: number | undefined;
137
- } | null;
138
- conversationHistoryConfig: ConversationHistoryConfig | null;
134
+ createdAt: string;
135
+ updatedAt: string;
136
+ agentId: string;
137
+ projectId: string;
138
+ tenantId: string;
139
139
  }>;
140
140
  declare const updateSubAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  scopes: AgentScopeConfig;
@@ -20,20 +20,20 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
20
20
  scopes: ProjectScopeConfig;
21
21
  toolId: string;
22
22
  }) => Promise<{
23
- id: string;
23
+ description: string | null;
24
24
  name: string;
25
+ id: string;
25
26
  createdAt: string;
26
27
  updatedAt: string;
27
- description: string | null;
28
28
  projectId: string;
29
29
  tenantId: string;
30
+ headers: Record<string, string> | null;
30
31
  config: {
31
32
  type: "mcp";
32
33
  mcp: ToolMcpConfig;
33
34
  };
34
35
  credentialReferenceId: string | null;
35
36
  credentialScope: string;
36
- headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -78,20 +78,20 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
78
78
  };
79
79
  }>;
80
80
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
81
- id: string;
81
+ description: string | null;
82
82
  name: string;
83
+ id: string;
83
84
  createdAt: string;
84
85
  updatedAt: string;
85
- description: string | null;
86
86
  projectId: string;
87
87
  tenantId: string;
88
+ headers: Record<string, string> | null;
88
89
  config: {
89
90
  type: "mcp";
90
91
  mcp: ToolMcpConfig;
91
92
  };
92
93
  credentialReferenceId: string | null;
93
94
  credentialScope: string;
94
- headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -141,13 +141,13 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
141
141
  agentId: string;
142
142
  projectId: string;
143
143
  tenantId: string;
144
- subAgentId: string;
145
- toolId: string;
146
144
  headers: Record<string, string> | null;
147
- selectedTools: string[] | null;
145
+ toolId: string;
146
+ subAgentId: string;
148
147
  toolPolicies: Record<string, {
149
148
  needsApproval?: boolean;
150
149
  }> | null;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -160,13 +160,13 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
160
160
  agentId: string;
161
161
  projectId: string;
162
162
  tenantId: string;
163
- subAgentId: string;
164
- toolId: string;
165
163
  headers: Record<string, string> | null;
166
- selectedTools: string[] | null;
164
+ toolId: string;
165
+ subAgentId: string;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | null;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -188,13 +188,13 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
188
188
  agentId: string;
189
189
  projectId: string;
190
190
  tenantId: string;
191
- subAgentId: string;
192
- toolId: string;
193
191
  headers: Record<string, string> | null;
194
- selectedTools: string[] | null;
192
+ toolId: string;
193
+ subAgentId: string;
195
194
  toolPolicies: Record<string, {
196
195
  needsApproval?: boolean;
197
196
  }> | null;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -202,20 +202,20 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
202
202
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
203
203
  data: ToolInsert;
204
204
  }) => Promise<{
205
- id: string;
205
+ description: string | null;
206
206
  name: string;
207
+ id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- description: string | null;
210
210
  projectId: string;
211
211
  tenantId: string;
212
+ headers: Record<string, string> | null;
212
213
  config: {
213
214
  type: "mcp";
214
215
  mcp: ToolMcpConfig;
215
216
  };
216
217
  credentialReferenceId: string | null;
217
218
  credentialScope: string;
218
- headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -46,7 +46,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
46
46
  regex?: string | undefined;
47
47
  };
48
48
  signedComponents: {
49
- source: "literal" | "header" | "body";
49
+ source: "header" | "literal" | "body";
50
50
  required: boolean;
51
51
  key?: string | undefined;
52
52
  value?: string | undefined;
@@ -8,49 +8,49 @@ 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;
19
- lastUsedAt: string | null;
20
18
  publicId: string;
21
19
  keyHash: string;
22
20
  keyPrefix: string;
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;
33
- lastUsedAt: string | null;
34
32
  publicId: string;
35
33
  keyHash: string;
36
34
  keyPrefix: string;
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;
50
- lastUsedAt: string | null;
51
49
  publicId: string;
52
50
  keyHash: string;
53
51
  keyPrefix: string;
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;
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;
77
- lastUsedAt: string | null;
78
76
  publicId: string;
79
77
  keyHash: string;
80
78
  keyPrefix: string;
79
+ lastUsedAt: string | null;
80
+ expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -6,15 +6,15 @@ import { AppInsert, AppSelect, AppUpdate } from "../../types/entities.js";
6
6
  //#region src/data-access/runtime/apps.d.ts
7
7
  declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promise<{
8
8
  type: AppType;
9
- id: string;
9
+ description: string | null;
10
10
  name: string;
11
+ prompt: string | null;
12
+ id: string;
11
13
  createdAt: string;
12
14
  updatedAt: string;
13
- description: string | null;
14
15
  projectId: string | null;
15
16
  tenantId: string | null;
16
17
  enabled: boolean;
17
- prompt: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -35,9 +35,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
35
35
  type: "api";
36
36
  api: Record<string, never>;
37
37
  };
38
- defaultAgentId: string | null;
39
- defaultProjectId: string | null;
40
38
  lastUsedAt: string | null;
39
+ defaultProjectId: string | null;
40
+ defaultAgentId: string | null;
41
41
  } | undefined>;
42
42
  declare const updateAppLastUsed: (db: AgentsRunDatabaseClient) => (id: string) => Promise<void>;
43
43
  declare const getAppByIdForTenant: (db: AgentsRunDatabaseClient) => (params: {
@@ -65,15 +65,15 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  }>;
66
66
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
67
67
  type: AppType;
68
- id: string;
68
+ description: string | null;
69
69
  name: string;
70
+ prompt: string | null;
71
+ id: string;
70
72
  createdAt: string;
71
73
  updatedAt: string;
72
- description: string | null;
73
74
  projectId: string | null;
74
75
  tenantId: string | null;
75
76
  enabled: boolean;
76
- prompt: string | null;
77
77
  config: {
78
78
  type: "web_client";
79
79
  webClient: {
@@ -94,9 +94,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
94
94
  type: "api";
95
95
  api: Record<string, never>;
96
96
  };
97
- defaultAgentId: string | null;
98
- defaultProjectId: string | null;
99
97
  lastUsedAt: string | null;
98
+ defaultProjectId: string | null;
99
+ defaultAgentId: string | null;
100
100
  }>;
101
101
  declare const updateAppForTenant: (db: AgentsRunDatabaseClient) => (params: {
102
102
  scopes: TenantScopeConfig;
@@ -15,20 +15,20 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
+ title: string | null;
19
+ metadata: ConversationMetadata | null;
18
20
  id: string;
19
21
  createdAt: string;
20
22
  updatedAt: string;
23
+ agentId: string | null;
24
+ projectId: string;
25
+ tenantId: string;
26
+ userId: string | null;
21
27
  ref: {
22
28
  type: "commit" | "tag" | "branch";
23
29
  name: string;
24
30
  hash: string;
25
31
  } | null;
26
- userId: string | null;
27
- metadata: ConversationMetadata | null;
28
- agentId: string | null;
29
- projectId: string;
30
- tenantId: string;
31
- title: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -84,20 +84,20 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
+ title: string | null;
88
+ metadata: ConversationMetadata | null;
87
89
  id: string;
88
90
  createdAt: string;
89
91
  updatedAt: string;
92
+ agentId: string | null;
93
+ projectId: string;
94
+ tenantId: string;
95
+ userId: string | null;
90
96
  ref: {
91
97
  type: "commit" | "tag" | "branch";
92
98
  name: string;
93
99
  hash: string;
94
100
  } | null;
95
- userId: string | null;
96
- metadata: ConversationMetadata | null;
97
- agentId: string | null;
98
- projectId: string;
99
- tenantId: string;
100
- title: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -120,20 +120,20 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
+ title: string | null;
124
+ metadata: ConversationMetadata | null;
123
125
  id: string;
124
126
  createdAt: string;
125
127
  updatedAt: string;
128
+ agentId: string | null;
129
+ projectId: string;
130
+ tenantId: string;
131
+ userId: string | null;
126
132
  ref: {
127
133
  type: "commit" | "tag" | "branch";
128
134
  name: string;
129
135
  hash: string;
130
136
  } | null;
131
- userId: string | null;
132
- metadata: ConversationMetadata | null;
133
- agentId: string | null;
134
- projectId: string;
135
- tenantId: string;
136
- title: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -152,20 +152,20 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
+ title: string | null;
156
+ metadata: ConversationMetadata | null;
155
157
  id: string;
156
158
  createdAt: string;
157
159
  updatedAt: string;
160
+ agentId: string | null;
161
+ projectId: string;
162
+ tenantId: string;
163
+ userId: string | null;
158
164
  ref: {
159
165
  type: "commit" | "tag" | "branch";
160
166
  name: string;
161
167
  hash: string;
162
168
  } | null;
163
- userId: string | null;
164
- metadata: ConversationMetadata | null;
165
- agentId: string | null;
166
- projectId: string;
167
- tenantId: string;
168
- title: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -10,15 +10,15 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
10
10
  scopes: ProjectScopeConfig;
11
11
  messageId: string;
12
12
  }) => Promise<{
13
+ metadata: MessageMetadata | null;
13
14
  id: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- metadata: MessageMetadata | null;
17
- role: string;
18
17
  projectId: string;
19
18
  tenantId: string;
20
19
  content: MessageContent;
21
20
  conversationId: string;
21
+ role: string;
22
22
  fromSubAgentId: string | null;
23
23
  toSubAgentId: string | null;
24
24
  fromExternalAgentId: string | null;
@@ -144,15 +144,15 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
144
144
  scopes: ProjectScopeConfig;
145
145
  data: Omit<MessageInsert, "tenantId" | "projectId">;
146
146
  }) => Promise<{
147
+ metadata: MessageMetadata | null;
147
148
  id: string;
148
149
  createdAt: string;
149
150
  updatedAt: string;
150
- metadata: MessageMetadata | null;
151
- role: string;
152
151
  projectId: string;
153
152
  tenantId: string;
154
153
  content: MessageContent;
155
154
  conversationId: string;
155
+ role: string;
156
156
  fromSubAgentId: string | null;
157
157
  toSubAgentId: string | null;
158
158
  fromExternalAgentId: string | null;
@@ -197,15 +197,15 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
197
197
  scopes: ProjectScopeConfig;
198
198
  messageId: string;
199
199
  }) => Promise<{
200
+ metadata: MessageMetadata | null;
200
201
  id: string;
201
202
  createdAt: string;
202
203
  updatedAt: string;
203
- metadata: MessageMetadata | null;
204
- role: string;
205
204
  projectId: string;
206
205
  tenantId: string;
207
206
  content: MessageContent;
208
207
  conversationId: string;
208
+ role: string;
209
209
  fromSubAgentId: string | null;
210
210
  toSubAgentId: string | null;
211
211
  fromExternalAgentId: string | null;
@@ -7,21 +7,21 @@ import { TaskInsert, TaskSelect } from "../../types/entities.js";
7
7
 
8
8
  //#region src/data-access/runtime/tasks.d.ts
9
9
  declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert) => Promise<{
10
+ metadata: TaskMetadataConfig | null;
10
11
  id: string;
11
12
  createdAt: string;
12
13
  updatedAt: string;
14
+ agentId: string;
15
+ projectId: string;
16
+ tenantId: string;
13
17
  ref: {
14
18
  type: "commit" | "tag" | "branch";
15
19
  name: string;
16
20
  hash: string;
17
21
  } | null;
18
- metadata: TaskMetadataConfig | null;
19
22
  status: string;
20
- agentId: string;
21
- projectId: string;
22
- tenantId: string;
23
- subAgentId: string;
24
23
  contextId: string;
24
+ subAgentId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;