@inkeep/agents-core 0.63.2 → 0.63.3

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.
@@ -2,7 +2,7 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
2
2
  import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
3
3
  import * as zod0 from "zod";
4
4
  import * as better_auth0 from "better-auth";
5
- import * as better_auth_plugins0 from "better-auth/plugins";
5
+ import * as better_auth_plugins20 from "better-auth/plugins";
6
6
 
7
7
  //#region src/auth/auth.d.ts
8
8
 
@@ -38,10 +38,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
38
38
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
39
39
  }[];
40
40
  };
41
- options: better_auth_plugins0.BearerOptions | undefined;
41
+ options: better_auth_plugins20.BearerOptions | undefined;
42
42
  }, {
43
43
  id: "oauth-proxy";
44
- options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
44
+ options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
45
45
  endpoints: {
46
46
  oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
47
47
  method: "GET";
@@ -93,7 +93,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
93
93
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
94
94
  }[];
95
95
  };
96
- }, better_auth_plugins0.DefaultOrganizationPlugin<{
96
+ }, better_auth_plugins20.DefaultOrganizationPlugin<{
97
97
  schema: {
98
98
  invitation: {
99
99
  additionalFields: {
@@ -456,8 +456,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
456
456
  AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
457
457
  };
458
458
  options: Partial<{
459
- expiresIn: better_auth_plugins0.TimeString;
460
- interval: better_auth_plugins0.TimeString;
459
+ expiresIn: better_auth_plugins20.TimeString;
460
+ interval: better_auth_plugins20.TimeString;
461
461
  deviceCodeLength: number;
462
462
  userCodeLength: number;
463
463
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins4 from "better-auth/plugins";
1
+ import * as better_auth_plugins0 from "better-auth/plugins";
2
2
  import { AccessControl } from "better-auth/plugins/access";
3
3
  import { organizationClient } from "better-auth/client/plugins";
4
4
 
5
5
  //#region src/auth/permissions.d.ts
6
6
  declare const ac: AccessControl;
7
7
  declare const memberRole: {
8
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
- actions: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
8
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
12
- statements: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
- actions: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
15
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
19
- statements: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
- actions: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>[key];
22
+ authorize<K_1 extends "invitation" | "member" | "organization" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
26
- statements: better_auth_plugins4.Subset<"organization" | "project" | "member" | "invitation" | "team" | "ac", better_auth_plugins4.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"invitation" | "member" | "organization" | "project" | "team" | "ac", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -35,8 +35,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
35
35
  transferCountIs?: number | undefined;
36
36
  } | null;
37
37
  prompt: string | null;
38
- defaultSubAgentId: string | null;
39
38
  contextConfigId: string | null;
39
+ defaultSubAgentId: string | null;
40
40
  statusUpdates: {
41
41
  enabled?: boolean | undefined;
42
42
  numEvents?: number | undefined;
@@ -82,8 +82,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
82
82
  transferCountIs?: number | undefined;
83
83
  } | null;
84
84
  prompt: string | null;
85
- defaultSubAgentId: string | null;
86
85
  contextConfigId: string | null;
86
+ defaultSubAgentId: string | null;
87
87
  statusUpdates: {
88
88
  enabled?: boolean | undefined;
89
89
  numEvents?: number | undefined;
@@ -158,8 +158,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
158
158
  transferCountIs?: number | undefined;
159
159
  } | null;
160
160
  prompt: string | null;
161
- defaultSubAgentId: string | null;
162
161
  contextConfigId: string | null;
162
+ defaultSubAgentId: string | null;
163
163
  statusUpdates: {
164
164
  enabled?: boolean | undefined;
165
165
  numEvents?: number | undefined;
@@ -276,8 +276,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
276
276
  transferCountIs?: number | undefined;
277
277
  } | null;
278
278
  prompt: string | null;
279
- defaultSubAgentId: string | null;
280
279
  contextConfigId: string | null;
280
+ defaultSubAgentId: string | null;
281
281
  statusUpdates: {
282
282
  enabled?: boolean | undefined;
283
283
  numEvents?: number | undefined;
@@ -164,10 +164,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  tenantId: string;
165
165
  agentId: string;
166
166
  subAgentId: string;
167
- functionToolId: string;
168
167
  toolPolicies: Record<string, {
169
168
  needsApproval?: boolean;
170
169
  }> | null;
170
+ functionToolId: string;
171
171
  }>;
172
172
  /**
173
173
  * Update an agent-function tool relation
@@ -229,10 +229,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  tenantId: string;
230
230
  agentId: string;
231
231
  subAgentId: string;
232
- functionToolId: string;
233
232
  toolPolicies: Record<string, {
234
233
  needsApproval?: boolean;
235
234
  }> | null;
235
+ functionToolId: string;
236
236
  }>;
237
237
  //#endregion
238
238
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -146,9 +146,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
146
146
  tenantId: string;
147
147
  agentId: string;
148
148
  subAgentId: string;
149
+ skillId: string;
149
150
  index: number;
150
151
  alwaysLoaded: boolean;
151
- skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -15,9 +15,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
15
15
  projectId: string;
16
16
  tenantId: string;
17
17
  agentId: string;
18
+ relationType: string | null;
18
19
  sourceSubAgentId: string;
19
20
  targetSubAgentId: string | null;
20
- relationType: string | null;
21
21
  } | undefined>;
22
22
  declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: AgentScopeConfig;
@@ -50,9 +50,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
50
50
  projectId: string;
51
51
  tenantId: string;
52
52
  agentId: string;
53
+ relationType: string | null;
53
54
  sourceSubAgentId: string;
54
55
  targetSubAgentId: string | null;
55
- relationType: string | null;
56
56
  }[]>;
57
57
  declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -63,9 +63,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
63
63
  projectId: string;
64
64
  tenantId: string;
65
65
  agentId: string;
66
+ relationType: string | null;
66
67
  sourceSubAgentId: string;
67
68
  targetSubAgentId: string | null;
68
- relationType: string | null;
69
69
  }[]>;
70
70
  declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -132,9 +132,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
132
132
  projectId: string;
133
133
  tenantId: string;
134
134
  agentId: string;
135
+ relationType: string | null;
135
136
  sourceSubAgentId: string;
136
137
  targetSubAgentId: string | null;
137
- relationType: string | null;
138
138
  }>;
139
139
  /**
140
140
  * Check if sub-agent relation exists by agent, source, target, and relation type
@@ -151,9 +151,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
151
151
  projectId: string;
152
152
  tenantId: string;
153
153
  agentId: string;
154
+ relationType: string | null;
154
155
  sourceSubAgentId: string;
155
156
  targetSubAgentId: string | null;
156
- relationType: string | null;
157
157
  } | undefined>;
158
158
  /**
159
159
  * Upsert agent relation (create if it doesn't exist, no-op if it does)
@@ -165,9 +165,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
165
165
  projectId: string;
166
166
  tenantId: string;
167
167
  agentId: string;
168
+ relationType: string | null;
168
169
  sourceSubAgentId: string;
169
170
  targetSubAgentId: string | null;
170
- relationType: string | null;
171
171
  }>;
172
172
  declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
173
173
  scopes: AgentScopeConfig;
@@ -211,12 +211,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
211
211
  tenantId: string;
212
212
  agentId: string;
213
213
  subAgentId: string;
214
- headers: Record<string, string> | null;
215
214
  toolId: string;
215
+ headers: Record<string, string> | null;
216
+ selectedTools: string[] | null;
216
217
  toolPolicies: Record<string, {
217
218
  needsApproval?: boolean;
218
219
  }> | null;
219
- selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -255,12 +255,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
255
255
  tenantId: string;
256
256
  agentId: string;
257
257
  subAgentId: string;
258
- headers: Record<string, string> | null;
259
258
  toolId: string;
259
+ headers: Record<string, string> | null;
260
+ selectedTools: string[] | null;
260
261
  toolPolicies: Record<string, {
261
262
  needsApproval?: boolean;
262
263
  }> | null;
263
- selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -27,13 +27,13 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
27
27
  updatedAt: string;
28
28
  projectId: string;
29
29
  tenantId: string;
30
- headers: Record<string, string> | null;
31
30
  config: {
32
31
  type: "mcp";
33
32
  mcp: ToolMcpConfig;
34
33
  };
35
34
  credentialReferenceId: string | null;
36
35
  credentialScope: string;
36
+ headers: Record<string, string> | null;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
39
39
  lastError: string | null;
@@ -85,13 +85,13 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
85
85
  updatedAt: string;
86
86
  projectId: string;
87
87
  tenantId: string;
88
- headers: Record<string, string> | null;
89
88
  config: {
90
89
  type: "mcp";
91
90
  mcp: ToolMcpConfig;
92
91
  };
93
92
  credentialReferenceId: string | null;
94
93
  credentialScope: string;
94
+ headers: Record<string, string> | null;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
97
97
  lastError: string | null;
@@ -142,12 +142,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
142
142
  tenantId: string;
143
143
  agentId: string;
144
144
  subAgentId: string;
145
- headers: Record<string, string> | null;
146
145
  toolId: string;
146
+ headers: Record<string, string> | null;
147
+ selectedTools: string[] | null;
147
148
  toolPolicies: Record<string, {
148
149
  needsApproval?: boolean;
149
150
  }> | null;
150
- selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -161,12 +161,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
161
161
  tenantId: string;
162
162
  agentId: string;
163
163
  subAgentId: string;
164
- headers: Record<string, string> | null;
165
164
  toolId: string;
165
+ headers: Record<string, string> | null;
166
+ selectedTools: string[] | null;
166
167
  toolPolicies: Record<string, {
167
168
  needsApproval?: boolean;
168
169
  }> | 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)
@@ -189,12 +189,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
189
189
  tenantId: string;
190
190
  agentId: string;
191
191
  subAgentId: string;
192
- headers: Record<string, string> | null;
193
192
  toolId: string;
193
+ headers: Record<string, string> | null;
194
+ selectedTools: string[] | null;
194
195
  toolPolicies: Record<string, {
195
196
  needsApproval?: boolean;
196
197
  }> | null;
197
- selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -209,13 +209,13 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
209
209
  updatedAt: string;
210
210
  projectId: string;
211
211
  tenantId: string;
212
- headers: Record<string, string> | null;
213
212
  config: {
214
213
  type: "mcp";
215
214
  mcp: ToolMcpConfig;
216
215
  };
217
216
  credentialReferenceId: string | null;
218
217
  credentialScope: string;
218
+ headers: Record<string, string> | null;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
221
221
  lastError: string | null;
@@ -14,12 +14,12 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
14
14
  updatedAt: string;
15
15
  projectId: string;
16
16
  tenantId: string;
17
+ expiresAt: string | null;
17
18
  agentId: string;
18
19
  publicId: string;
19
20
  keyHash: string;
20
21
  keyPrefix: string;
21
22
  lastUsedAt: string | null;
22
- expiresAt: 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
  projectId: string;
30
30
  tenantId: string;
31
+ expiresAt: string | null;
31
32
  agentId: string;
32
33
  publicId: string;
33
34
  keyHash: string;
34
35
  keyPrefix: string;
35
36
  lastUsedAt: string | null;
36
- expiresAt: 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
  projectId: string;
47
47
  tenantId: string;
48
+ expiresAt: string | null;
48
49
  agentId: string;
49
50
  publicId: string;
50
51
  keyHash: string;
51
52
  keyPrefix: string;
52
53
  lastUsedAt: string | null;
53
- expiresAt: 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
  projectId: string;
74
74
  tenantId: string;
75
+ expiresAt: string | null;
75
76
  agentId: string;
76
77
  publicId: string;
77
78
  keyHash: string;
78
79
  keyPrefix: string;
79
80
  lastUsedAt: string | null;
80
- expiresAt: string | null;
81
81
  }>;
82
82
  declare const updateApiKey: (db: AgentsRunDatabaseClient) => (params: {
83
83
  scopes: ProjectScopeConfig;
@@ -5,7 +5,6 @@ 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
8
  id: string;
10
9
  name: string;
11
10
  description: string | null;
@@ -13,6 +12,10 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
13
12
  updatedAt: string;
14
13
  projectId: string | null;
15
14
  tenantId: string | null;
15
+ type: AppType;
16
+ lastUsedAt: string | null;
17
+ defaultProjectId: string | null;
18
+ defaultAgentId: string | null;
16
19
  prompt: string | null;
17
20
  enabled: boolean;
18
21
  config: {
@@ -35,9 +38,6 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
35
38
  type: "api";
36
39
  api: Record<string, never>;
37
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: {
@@ -64,7 +64,6 @@ declare const listAppsPaginated: (db: AgentsRunDatabaseClient) => (params: {
64
64
  };
65
65
  }>;
66
66
  declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) => Promise<{
67
- type: AppType;
68
67
  id: string;
69
68
  name: string;
70
69
  description: string | null;
@@ -72,6 +71,10 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
72
71
  updatedAt: string;
73
72
  projectId: string | null;
74
73
  tenantId: string | null;
74
+ type: AppType;
75
+ lastUsedAt: string | null;
76
+ defaultProjectId: string | null;
77
+ defaultAgentId: string | null;
75
78
  prompt: string | null;
76
79
  enabled: boolean;
77
80
  config: {
@@ -94,9 +97,6 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
94
97
  type: "api";
95
98
  api: Record<string, never>;
96
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;
@@ -22,13 +22,13 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
22
22
  projectId: string;
23
23
  tenantId: string;
24
24
  title: string | null;
25
- agentId: string | null;
26
- userId: string | null;
27
25
  ref: {
28
26
  type: "commit" | "tag" | "branch";
29
27
  name: string;
30
28
  hash: string;
31
29
  } | null;
30
+ userId: string | null;
31
+ agentId: string | null;
32
32
  activeSubAgentId: string;
33
33
  lastContextResolution: string | null;
34
34
  }>;
@@ -91,13 +91,13 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
91
91
  projectId: string;
92
92
  tenantId: string;
93
93
  title: string | null;
94
- agentId: string | null;
95
- userId: string | null;
96
94
  ref: {
97
95
  type: "commit" | "tag" | "branch";
98
96
  name: string;
99
97
  hash: string;
100
98
  } | null;
99
+ userId: string | null;
100
+ agentId: string | null;
101
101
  activeSubAgentId: string;
102
102
  lastContextResolution: string | null;
103
103
  } | undefined>;
@@ -127,13 +127,13 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
127
127
  projectId: string;
128
128
  tenantId: string;
129
129
  title: string | null;
130
- agentId: string | null;
131
- userId: string | null;
132
130
  ref: {
133
131
  type: "commit" | "tag" | "branch";
134
132
  name: string;
135
133
  hash: string;
136
134
  } | null;
135
+ userId: string | null;
136
+ agentId: string | null;
137
137
  activeSubAgentId: string;
138
138
  lastContextResolution: string | null;
139
139
  }>;
@@ -159,13 +159,13 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
159
159
  projectId: string;
160
160
  tenantId: string;
161
161
  title: string | null;
162
- agentId: string | null;
163
- userId: string | null;
164
162
  ref: {
165
163
  type: "commit" | "tag" | "branch";
166
164
  name: string;
167
165
  hash: string;
168
166
  } | null;
167
+ userId: string | null;
168
+ agentId: string | null;
169
169
  activeSubAgentId: string;
170
170
  lastContextResolution: string | null;
171
171
  } | undefined>;
@@ -17,19 +17,19 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
17
17
  updatedAt: string;
18
18
  projectId: string;
19
19
  tenantId: string;
20
+ role: string;
21
+ conversationId: string;
20
22
  fromSubAgentId: string | null;
21
23
  toSubAgentId: string | null;
22
24
  fromExternalAgentId: string | null;
23
25
  toExternalAgentId: string | null;
24
- taskId: string | null;
25
- a2aTaskId: string | null;
26
- conversationId: string;
27
- role: string;
28
26
  fromTeamAgentId: string | null;
29
27
  toTeamAgentId: string | null;
30
28
  visibility: string;
31
29
  messageType: string;
30
+ taskId: string | null;
32
31
  parentMessageId: string | null;
32
+ a2aTaskId: string | null;
33
33
  a2aSessionId: string | null;
34
34
  } | undefined>;
35
35
  declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
@@ -151,19 +151,19 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
151
151
  updatedAt: string;
152
152
  projectId: string;
153
153
  tenantId: string;
154
+ role: string;
155
+ conversationId: string;
154
156
  fromSubAgentId: string | null;
155
157
  toSubAgentId: string | null;
156
158
  fromExternalAgentId: string | null;
157
159
  toExternalAgentId: string | null;
158
- taskId: string | null;
159
- a2aTaskId: string | null;
160
- conversationId: string;
161
- role: string;
162
160
  fromTeamAgentId: string | null;
163
161
  toTeamAgentId: string | null;
164
162
  visibility: string;
165
163
  messageType: string;
164
+ taskId: string | null;
166
165
  parentMessageId: string | null;
166
+ a2aTaskId: string | null;
167
167
  a2aSessionId: string | null;
168
168
  }>;
169
169
  declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
@@ -204,19 +204,19 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
204
204
  updatedAt: string;
205
205
  projectId: string;
206
206
  tenantId: string;
207
+ role: string;
208
+ conversationId: string;
207
209
  fromSubAgentId: string | null;
208
210
  toSubAgentId: string | null;
209
211
  fromExternalAgentId: string | null;
210
212
  toExternalAgentId: string | null;
211
- taskId: string | null;
212
- a2aTaskId: string | null;
213
- conversationId: string;
214
- role: string;
215
213
  fromTeamAgentId: string | null;
216
214
  toTeamAgentId: string | null;
217
215
  visibility: string;
218
216
  messageType: string;
217
+ taskId: string | null;
219
218
  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" | "failed" | "running" | "completed" | "cancelled";
43
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
44
44
  scheduledFor: string;
45
45
  startedAt: string | null;
46
46
  completedAt: string | null;
@@ -194,7 +194,7 @@ declare const listUpcomingInvocationsForAgentPaginated: (db: AgentsRunDatabaseCl
194
194
  name: string;
195
195
  hash: string;
196
196
  } | null;
197
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
197
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
198
198
  scheduledFor: string;
199
199
  startedAt: string | null;
200
200
  completedAt: string | null;
@@ -233,7 +233,7 @@ declare const listProjectScheduledTriggerInvocationsPaginated: (db: AgentsRunDat
233
233
  name: string;
234
234
  hash: string;
235
235
  } | null;
236
- status: "pending" | "failed" | "running" | "completed" | "cancelled";
236
+ status: "pending" | "running" | "completed" | "failed" | "cancelled";
237
237
  scheduledFor: string;
238
238
  startedAt: string | null;
239
239
  completedAt: string | null;
@@ -13,15 +13,15 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
13
13
  updatedAt: string;
14
14
  projectId: string;
15
15
  tenantId: string;
16
- agentId: string;
17
16
  status: string;
18
- subAgentId: string;
19
17
  ref: {
20
18
  type: "commit" | "tag" | "branch";
21
19
  name: string;
22
20
  hash: string;
23
21
  } | null;
22
+ agentId: string;
24
23
  contextId: string;
24
+ subAgentId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
27
27
  id: string;