@inkeep/agents-core 0.80.2 → 0.80.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.
@@ -4,7 +4,7 @@ import * as jose0 from "jose";
4
4
  import * as zod0 from "zod";
5
5
  import * as better_auth0 from "better-auth";
6
6
  import * as _better_auth_oauth_provider0 from "@better-auth/oauth-provider";
7
- import * as better_auth_plugins20 from "better-auth/plugins";
7
+ import * as better_auth_plugins0 from "better-auth/plugins";
8
8
  import * as zod_v4_core0 from "zod/v4/core";
9
9
 
10
10
  //#region src/auth/auth.d.ts
@@ -42,11 +42,11 @@ declare function _inferAuthType(): better_auth0.Auth<{
42
42
  handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
43
43
  }[];
44
44
  };
45
- options: better_auth_plugins20.BearerOptions | undefined;
45
+ options: better_auth_plugins0.BearerOptions | undefined;
46
46
  }, {
47
47
  id: "oauth-proxy";
48
48
  version: string;
49
- options: NoInfer<better_auth_plugins20.OAuthProxyOptions>;
49
+ options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
50
50
  endpoints: {
51
51
  oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
52
52
  method: "GET";
@@ -101,7 +101,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
101
101
  }, {
102
102
  id: "jwt";
103
103
  version: string;
104
- options: NoInfer<better_auth_plugins20.JwtOptions>;
104
+ options: NoInfer<better_auth_plugins0.JwtOptions>;
105
105
  endpoints: {
106
106
  getJwks: better_auth0.StrictEndpoint<string, {
107
107
  method: "GET";
@@ -238,7 +238,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
238
238
  $Infer: {
239
239
  body: {
240
240
  payload: jose0.JWTPayload;
241
- overrideOptions?: better_auth_plugins20.JwtOptions | undefined;
241
+ overrideOptions?: better_auth_plugins0.JwtOptions | undefined;
242
242
  };
243
243
  };
244
244
  };
@@ -336,7 +336,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
336
336
  SERVER_ONLY: true;
337
337
  };
338
338
  }, Omit<_better_auth_oauth_provider0.OIDCMetadata, "id_token_signing_alg_values_supported"> & {
339
- id_token_signing_alg_values_supported: better_auth_plugins20.JWSAlgorithms[] | ["HS256"];
339
+ id_token_signing_alg_values_supported: better_auth_plugins0.JWSAlgorithms[] | ["HS256"];
340
340
  }>;
341
341
  oauth2Authorize: better_auth0.StrictEndpoint<"/oauth2/authorize", {
342
342
  method: "GET";
@@ -2346,7 +2346,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
2346
2346
  window: number;
2347
2347
  max: number;
2348
2348
  })[];
2349
- }, better_auth_plugins20.DefaultOrganizationPlugin<{
2349
+ }, better_auth_plugins0.DefaultOrganizationPlugin<{
2350
2350
  schema: {
2351
2351
  invitation: {
2352
2352
  additionalFields: {
@@ -2710,8 +2710,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
2710
2710
  AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
2711
2711
  };
2712
2712
  options: Partial<{
2713
- expiresIn: better_auth_plugins20.TimeString;
2714
- interval: better_auth_plugins20.TimeString;
2713
+ expiresIn: better_auth_plugins0.TimeString;
2714
+ interval: better_auth_plugins0.TimeString;
2715
2715
  deviceCodeLength: number;
2716
2716
  userCodeLength: number;
2717
2717
  schema: {
@@ -1,29 +1,29 @@
1
- import * as better_auth_plugins0 from "better-auth/plugins";
1
+ import * as better_auth_plugins7 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 "project" | "organization" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
9
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
8
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
9
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
10
10
  connector: "OR" | "AND";
11
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
12
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "project" | "organization" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
16
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
15
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
16
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
17
17
  connector: "OR" | "AND";
18
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
19
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "project" | "organization" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
23
- actions: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
22
+ authorize<K_1 extends "project" | "organization" | "member" | "invitation" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key] | {
23
+ actions: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>[key];
24
24
  connector: "OR" | "AND";
25
- } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
- statements: better_auth_plugins0.Subset<"project" | "organization" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins7.AuthorizeResponse;
26
+ statements: better_auth_plugins7.Subset<"project" | "organization" | "member" | "invitation" | "team" | "ac", better_auth_plugins7.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -39,6 +39,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  createdAt: string;
40
40
  updatedAt: string;
41
41
  tenantId: string;
42
+ projectId: string;
42
43
  defaultSubAgentId: string | null;
43
44
  contextConfigId: string | null;
44
45
  prompt: string | null;
@@ -58,7 +59,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
58
59
  }[] | undefined;
59
60
  } | null;
60
61
  executionMode: "classic" | "durable";
61
- projectId: string;
62
62
  } | null>;
63
63
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
64
64
  scopes: AgentScopeConfig;
@@ -92,6 +92,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
92
92
  createdAt: string;
93
93
  updatedAt: string;
94
94
  tenantId: string;
95
+ projectId: string;
95
96
  defaultSubAgentId: string | null;
96
97
  contextConfigId: string | null;
97
98
  prompt: string | null;
@@ -111,7 +112,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
111
112
  }[] | undefined;
112
113
  } | null;
113
114
  executionMode: "classic" | "durable";
114
- projectId: string;
115
115
  defaultSubAgent: {
116
116
  id: string;
117
117
  name: string;
@@ -142,8 +142,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
142
142
  createdAt: string;
143
143
  updatedAt: string;
144
144
  tenantId: string;
145
- prompt: string | null;
146
145
  projectId: string;
146
+ prompt: string | null;
147
147
  agentId: string;
148
148
  conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  outputContract: {
@@ -189,6 +189,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
189
189
  createdAt: string;
190
190
  updatedAt: string;
191
191
  tenantId: string;
192
+ projectId: string;
192
193
  defaultSubAgentId: string | null;
193
194
  contextConfigId: string | null;
194
195
  prompt: string | null;
@@ -208,7 +209,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
208
209
  }[] | undefined;
209
210
  } | null;
210
211
  executionMode: "classic" | "durable";
211
- projectId: string;
212
212
  }[]>;
213
213
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
214
214
  scopes: ProjectScopeConfig;
@@ -319,6 +319,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
319
319
  createdAt: string;
320
320
  updatedAt: string;
321
321
  tenantId: string;
322
+ projectId: string;
322
323
  defaultSubAgentId: string | null;
323
324
  contextConfigId: string | null;
324
325
  prompt: string | null;
@@ -338,7 +339,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
338
339
  }[] | undefined;
339
340
  } | null;
340
341
  executionMode: "classic" | "durable";
341
- projectId: string;
342
342
  }>;
343
343
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
344
344
  scopes: AgentScopeConfig;
@@ -14,9 +14,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
14
14
  updatedAt: string;
15
15
  tenantId: string;
16
16
  projectId: string;
17
+ agentId: string;
17
18
  headersSchema: unknown;
18
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
- agentId: string;
20
20
  } | undefined>;
21
21
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: AgentScopeConfig;
@@ -26,9 +26,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
26
26
  updatedAt: string;
27
27
  tenantId: string;
28
28
  projectId: string;
29
+ agentId: string;
29
30
  headersSchema: unknown;
30
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
- agentId: string;
32
32
  }[]>;
33
33
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
34
34
  scopes: AgentScopeConfig;
@@ -48,9 +48,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
48
48
  updatedAt: string;
49
49
  tenantId: string;
50
50
  projectId: string;
51
+ agentId: string;
51
52
  headersSchema: unknown;
52
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
- agentId: string;
54
54
  }>;
55
55
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
56
56
  scopes: AgentScopeConfig;
@@ -88,9 +88,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
88
88
  updatedAt: string;
89
89
  tenantId: string;
90
90
  projectId: string;
91
+ agentId: string;
91
92
  headersSchema: unknown;
92
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
- agentId: string;
94
94
  }>;
95
95
  //#endregion
96
96
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -163,10 +163,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
163
163
  tenantId: string;
164
164
  projectId: string;
165
165
  agentId: string;
166
- subAgentId: string;
167
166
  toolPolicies: Record<string, {
168
167
  needsApproval?: boolean;
169
168
  }> | null;
169
+ subAgentId: string;
170
170
  functionToolId: string;
171
171
  }>;
172
172
  /**
@@ -228,10 +228,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
228
228
  tenantId: string;
229
229
  projectId: string;
230
230
  agentId: string;
231
- subAgentId: string;
232
231
  toolPolicies: Record<string, {
233
232
  needsApproval?: boolean;
234
233
  }> | null;
234
+ subAgentId: string;
235
235
  functionToolId: string;
236
236
  }>;
237
237
  //#endregion
@@ -22,8 +22,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
22
22
  updatedAt: string;
23
23
  tenantId: string;
24
24
  projectId: string;
25
- content: string;
26
25
  metadata: Record<string, string> | null;
26
+ content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
29
29
  scopes: ProjectScopeConfig;
@@ -117,8 +117,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
117
117
  updatedAt: string;
118
118
  tenantId: string;
119
119
  projectId: string;
120
- content: string;
121
120
  metadata: Record<string, string> | null;
121
+ content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
124
124
  scopes: ProjectScopeConfig;
@@ -145,10 +145,10 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
145
145
  tenantId: string;
146
146
  projectId: string;
147
147
  agentId: string;
148
- skillId: string;
148
+ subAgentId: string;
149
149
  index: number;
150
150
  alwaysLoaded: boolean;
151
- subAgentId: string;
151
+ skillId: string;
152
152
  }>;
153
153
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
154
154
  scopes: AgentScopeConfig;
@@ -16,8 +16,8 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
16
16
  projectId: string;
17
17
  agentId: string;
18
18
  headers: Record<string, string> | null;
19
- subAgentId: string;
20
19
  externalAgentId: string;
20
+ subAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
23
23
  scopes: SubAgentScopeConfig;
@@ -51,8 +51,8 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
51
51
  projectId: string;
52
52
  agentId: string;
53
53
  headers: Record<string, string> | null;
54
- subAgentId: string;
55
54
  externalAgentId: string;
55
+ subAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
@@ -64,8 +64,8 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
64
64
  projectId: string;
65
65
  agentId: string;
66
66
  headers: Record<string, string> | null;
67
- subAgentId: string;
68
67
  externalAgentId: string;
68
+ subAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
71
71
  scopes: AgentScopeConfig;
@@ -193,8 +193,8 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
193
193
  projectId: string;
194
194
  agentId: string;
195
195
  headers: Record<string, string> | null;
196
- subAgentId: string;
197
196
  externalAgentId: string;
197
+ subAgentId: string;
198
198
  }>;
199
199
  /**
200
200
  * Check if sub-agent external agent relation exists by params
@@ -210,8 +210,8 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
210
210
  projectId: string;
211
211
  agentId: string;
212
212
  headers: Record<string, string> | null;
213
- subAgentId: string;
214
213
  externalAgentId: string;
214
+ subAgentId: string;
215
215
  } | undefined>;
216
216
  /**
217
217
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -231,8 +231,8 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
231
231
  projectId: string;
232
232
  agentId: string;
233
233
  headers: Record<string, string> | null;
234
- subAgentId: string;
235
234
  externalAgentId: string;
235
+ subAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
238
238
  scopes: SubAgentScopeConfig;
@@ -212,11 +212,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
212
212
  agentId: string;
213
213
  toolId: string;
214
214
  headers: Record<string, string> | null;
215
- subAgentId: string;
216
- selectedTools: string[] | null;
217
215
  toolPolicies: Record<string, {
218
216
  needsApproval?: boolean;
219
217
  }> | null;
218
+ subAgentId: string;
219
+ selectedTools: string[] | null;
220
220
  }>;
221
221
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
222
222
  scopes: AgentScopeConfig;
@@ -256,11 +256,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
256
256
  agentId: string;
257
257
  toolId: string;
258
258
  headers: Record<string, string> | null;
259
- subAgentId: string;
260
- selectedTools: string[] | null;
261
259
  toolPolicies: Record<string, {
262
260
  needsApproval?: boolean;
263
261
  }> | null;
262
+ subAgentId: string;
263
+ selectedTools: string[] | null;
264
264
  } | undefined>;
265
265
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
266
266
  scopes: SubAgentScopeConfig;
@@ -38,8 +38,8 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
38
38
  createdAt: string;
39
39
  updatedAt: string;
40
40
  tenantId: string;
41
- prompt: string | null;
42
41
  projectId: string;
42
+ prompt: string | null;
43
43
  agentId: string;
44
44
  conversationHistoryConfig: ConversationHistoryConfig | null;
45
45
  outputContract: {
@@ -84,8 +84,8 @@ declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
84
84
  createdAt: string;
85
85
  updatedAt: string;
86
86
  tenantId: string;
87
- prompt: string | null;
88
87
  projectId: string;
88
+ prompt: string | null;
89
89
  agentId: string;
90
90
  conversationHistoryConfig: ConversationHistoryConfig | null;
91
91
  outputContract: {
@@ -183,8 +183,8 @@ declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAg
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
185
  tenantId: string;
186
- prompt: string | null;
187
186
  projectId: string;
187
+ prompt: string | null;
188
188
  agentId: string;
189
189
  conversationHistoryConfig: ConversationHistoryConfig | null;
190
190
  outputContract: {
@@ -28,11 +28,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
28
28
  tenantId: string;
29
29
  projectId: string;
30
30
  headers: Record<string, string> | null;
31
- credentialReferenceId: string | null;
32
31
  config: {
33
32
  type: "mcp";
34
33
  mcp: ToolMcpConfig;
35
34
  };
35
+ credentialReferenceId: string | null;
36
36
  credentialScope: string;
37
37
  imageUrl: string | null;
38
38
  capabilities: ToolServerCapabilities | null;
@@ -86,11 +86,11 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
86
86
  tenantId: string;
87
87
  projectId: string;
88
88
  headers: Record<string, string> | null;
89
- credentialReferenceId: string | null;
90
89
  config: {
91
90
  type: "mcp";
92
91
  mcp: ToolMcpConfig;
93
92
  };
93
+ credentialReferenceId: string | null;
94
94
  credentialScope: string;
95
95
  imageUrl: string | null;
96
96
  capabilities: ToolServerCapabilities | null;
@@ -143,11 +143,11 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
143
143
  agentId: string;
144
144
  toolId: string;
145
145
  headers: Record<string, string> | null;
146
- subAgentId: string;
147
- selectedTools: string[] | null;
148
146
  toolPolicies: Record<string, {
149
147
  needsApproval?: boolean;
150
148
  }> | null;
149
+ subAgentId: string;
150
+ selectedTools: string[] | null;
151
151
  }>;
152
152
  declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params: {
153
153
  scopes: AgentScopeConfig;
@@ -162,11 +162,11 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
162
162
  agentId: string;
163
163
  toolId: string;
164
164
  headers: Record<string, string> | null;
165
- subAgentId: string;
166
- selectedTools: string[] | null;
167
165
  toolPolicies: Record<string, {
168
166
  needsApproval?: boolean;
169
167
  }> | null;
168
+ subAgentId: string;
169
+ selectedTools: string[] | null;
170
170
  }>;
171
171
  /**
172
172
  * Upsert agent-tool relation (create if it doesn't exist, update if it does)
@@ -190,11 +190,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
190
190
  agentId: string;
191
191
  toolId: string;
192
192
  headers: Record<string, string> | null;
193
- subAgentId: string;
194
- selectedTools: string[] | null;
195
193
  toolPolicies: Record<string, {
196
194
  needsApproval?: boolean;
197
195
  }> | null;
196
+ subAgentId: string;
197
+ selectedTools: string[] | null;
198
198
  }>;
199
199
  /**
200
200
  * Upsert a tool (create if it doesn't exist, update if it does)
@@ -210,11 +210,11 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
210
210
  tenantId: string;
211
211
  projectId: string;
212
212
  headers: Record<string, string> | null;
213
- credentialReferenceId: string | null;
214
213
  config: {
215
214
  type: "mcp";
216
215
  mcp: ToolMcpConfig;
217
216
  };
217
+ credentialReferenceId: string | null;
218
218
  credentialScope: string;
219
219
  imageUrl: string | null;
220
220
  capabilities: ToolServerCapabilities | null;
@@ -40,7 +40,7 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
40
40
  algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
41
41
  encoding: "hex" | "base64";
42
42
  signature: {
43
- source: "header" | "query" | "body";
43
+ source: "query" | "header" | "body";
44
44
  key: string;
45
45
  prefix?: string | undefined;
46
46
  regex?: string | undefined;
@@ -12,9 +12,9 @@ declare const getAppById: (db: AgentsRunDatabaseClient) => (id: string) => Promi
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
14
  tenantId: string | null;
15
+ projectId: string | null;
15
16
  enabled: boolean;
16
17
  prompt: string | null;
17
- projectId: string | null;
18
18
  config: {
19
19
  type: "web_client";
20
20
  webClient: {
@@ -81,9 +81,9 @@ declare const createApp: (db: AgentsRunDatabaseClient) => (params: AppInsert) =>
81
81
  createdAt: string;
82
82
  updatedAt: string;
83
83
  tenantId: string | null;
84
+ projectId: string | null;
84
85
  enabled: boolean;
85
86
  prompt: string | null;
86
- projectId: string | null;
87
87
  config: {
88
88
  type: "web_client";
89
89
  webClient: {
@@ -23,9 +23,9 @@ declare const createConversation: (db: AgentsRunDatabaseClient) => (params: Conv
23
23
  updatedAt: string;
24
24
  tenantId: string;
25
25
  projectId: string;
26
+ metadata: ConversationMetadata | null;
26
27
  agentId: string | null;
27
28
  userId: string | null;
28
- metadata: ConversationMetadata | null;
29
29
  ref: {
30
30
  type: "commit" | "tag" | "branch";
31
31
  name: string;
@@ -98,9 +98,9 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
98
98
  updatedAt: string;
99
99
  tenantId: string;
100
100
  projectId: string;
101
+ metadata: ConversationMetadata | null;
101
102
  agentId: string | null;
102
103
  userId: string | null;
103
- metadata: ConversationMetadata | null;
104
104
  ref: {
105
105
  type: "commit" | "tag" | "branch";
106
106
  name: string;
@@ -153,9 +153,9 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
153
153
  updatedAt: string;
154
154
  tenantId: string;
155
155
  projectId: string;
156
+ metadata: ConversationMetadata | null;
156
157
  agentId: string | null;
157
158
  userId: string | null;
158
- metadata: ConversationMetadata | null;
159
159
  ref: {
160
160
  type: "commit" | "tag" | "branch";
161
161
  name: string;
@@ -191,9 +191,9 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
191
191
  updatedAt: string;
192
192
  tenantId: string;
193
193
  projectId: string;
194
+ metadata: ConversationMetadata | null;
194
195
  agentId: string | null;
195
196
  userId: string | null;
196
- metadata: ConversationMetadata | null;
197
197
  ref: {
198
198
  type: "commit" | "tag" | "branch";
199
199
  name: string;
@@ -14,8 +14,8 @@ declare const createEvent: (db: AgentsRunDatabaseClient) => (params: EventInsert
14
14
  updatedAt: string;
15
15
  tenantId: string;
16
16
  projectId: string;
17
- agentId: string | null;
18
17
  metadata: Record<string, unknown> | null;
18
+ agentId: string | null;
19
19
  conversationId: string | null;
20
20
  userProperties: Record<string, unknown> | null;
21
21
  messageId: string | null;
@@ -16,8 +16,8 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
16
16
  updatedAt: string;
17
17
  tenantId: string;
18
18
  projectId: string;
19
- content: MessageContent;
20
19
  metadata: MessageMetadata | null;
20
+ content: MessageContent;
21
21
  fromSubAgentId: string | null;
22
22
  toSubAgentId: string | null;
23
23
  fromExternalAgentId: string | null;
@@ -189,8 +189,8 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
189
189
  updatedAt: string;
190
190
  tenantId: string;
191
191
  projectId: string;
192
- content: MessageContent;
193
192
  metadata: MessageMetadata | null;
193
+ content: MessageContent;
194
194
  fromSubAgentId: string | null;
195
195
  toSubAgentId: string | null;
196
196
  fromExternalAgentId: string | null;
@@ -246,8 +246,8 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
246
246
  updatedAt: string;
247
247
  tenantId: string;
248
248
  projectId: string;
249
- content: MessageContent;
250
249
  metadata: MessageMetadata | null;
250
+ content: MessageContent;
251
251
  fromSubAgentId: string | null;
252
252
  toSubAgentId: string | null;
253
253
  fromExternalAgentId: string | null;
@@ -12,15 +12,15 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
12
12
  updatedAt: string;
13
13
  tenantId: string;
14
14
  projectId: string;
15
- agentId: string;
16
15
  metadata: TaskMetadataConfig | null;
16
+ agentId: string;
17
17
  subAgentId: string;
18
- status: string;
19
18
  ref: {
20
19
  type: "commit" | "tag" | "branch";
21
20
  name: string;
22
21
  hash: string;
23
22
  } | null;
23
+ status: string;
24
24
  contextId: string;
25
25
  }>;
26
26
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {