@inkeep/agents-core 0.0.0-dev-20260403132729 → 0.0.0-dev-20260403194639

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.
Files changed (32) hide show
  1. package/dist/auth/auth-schema.d.ts +86 -86
  2. package/dist/auth/auth-validation-schemas.d.ts +154 -154
  3. package/dist/auth/auth.d.ts +6 -6
  4. package/dist/auth/permissions.d.ts +13 -13
  5. package/dist/data-access/manage/agents.d.ts +16 -16
  6. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  7. package/dist/data-access/manage/contextConfigs.d.ts +4 -4
  8. package/dist/data-access/manage/dataComponents.d.ts +4 -4
  9. package/dist/data-access/manage/functionTools.d.ts +10 -10
  10. package/dist/data-access/manage/skills.d.ts +10 -10
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  12. package/dist/data-access/manage/subAgentRelations.d.ts +12 -12
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  14. package/dist/data-access/manage/subAgents.d.ts +12 -12
  15. package/dist/data-access/manage/tools.d.ts +21 -21
  16. package/dist/data-access/manage/tools.js +1 -1
  17. package/dist/data-access/manage/triggers.d.ts +3 -3
  18. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  19. package/dist/data-access/runtime/apps.d.ts +8 -8
  20. package/dist/data-access/runtime/conversations.d.ts +24 -24
  21. package/dist/data-access/runtime/messages.d.ts +24 -24
  22. package/dist/data-access/runtime/tasks.d.ts +5 -5
  23. package/dist/db/manage/dolt-safe-jsonb.d.ts +12 -0
  24. package/dist/db/manage/dolt-safe-jsonb.js +61 -0
  25. package/dist/db/manage/manage-schema.d.ts +394 -394
  26. package/dist/db/manage/manage-schema.js +40 -39
  27. package/dist/db/runtime/runtime-schema.d.ts +344 -344
  28. package/dist/utils/error.d.ts +51 -51
  29. package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
  30. package/dist/validation/schemas/skills.d.ts +34 -34
  31. package/dist/validation/schemas.d.ts +2279 -2279
  32. package/package.json +1 -1
@@ -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" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
9
- actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
8
+ authorize<K_1 extends "organization" | "project" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
9
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", 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" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
11
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
12
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
16
- actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
15
+ authorize<K_1 extends "organization" | "project" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
16
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", 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" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
18
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
19
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
23
- actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
22
+ authorize<K_1 extends "organization" | "project" | "member" | "team" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
23
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", 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" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
25
+ } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
26
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "team" | "ac" | "invitation", better_auth_plugins0.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -10,13 +10,13 @@ import { PgColumn } from "drizzle-orm/pg-core";
10
10
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
11
11
  scopes: AgentScopeConfig;
12
12
  }) => Promise<{
13
- id: string;
14
13
  name: string;
14
+ description: string | null;
15
+ id: string;
15
16
  createdAt: string;
16
17
  updatedAt: string;
17
- description: string | null;
18
- tenantId: string;
19
18
  projectId: string;
19
+ tenantId: string;
20
20
  models: {
21
21
  base?: {
22
22
  model?: string | undefined;
@@ -63,13 +63,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
63
63
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
64
64
  scopes: AgentScopeConfig;
65
65
  }) => Promise<{
66
- id: string;
67
66
  name: string;
67
+ description: string | null;
68
+ id: string;
68
69
  createdAt: string;
69
70
  updatedAt: string;
70
- description: string | null;
71
- tenantId: string;
72
71
  projectId: string;
72
+ tenantId: string;
73
73
  models: {
74
74
  base?: {
75
75
  model?: string | undefined;
@@ -113,14 +113,13 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
113
113
  } | null;
114
114
  executionMode: "classic" | "durable";
115
115
  defaultSubAgent: {
116
- id: string;
117
116
  name: string;
117
+ description: string | null;
118
+ id: string;
118
119
  createdAt: string;
119
120
  updatedAt: string;
120
- description: string | null;
121
- tenantId: string;
122
121
  projectId: string;
123
- agentId: string;
122
+ tenantId: string;
124
123
  models: {
125
124
  base?: {
126
125
  model?: string | undefined;
@@ -146,18 +145,19 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
146
145
  } | null;
147
146
  prompt: string | null;
148
147
  conversationHistoryConfig: ConversationHistoryConfig | null;
148
+ agentId: string;
149
149
  } | null;
150
150
  } | null>;
151
151
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
152
152
  scopes: ProjectScopeConfig;
153
153
  }) => Promise<{
154
- id: string;
155
154
  name: string;
155
+ description: string | null;
156
+ id: string;
156
157
  createdAt: string;
157
158
  updatedAt: string;
158
- description: string | null;
159
- tenantId: string;
160
159
  projectId: string;
160
+ tenantId: string;
161
161
  models: {
162
162
  base?: {
163
163
  model?: string | undefined;
@@ -281,13 +281,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
281
281
  projectIds: string[];
282
282
  }): Promise<AvailableAgentInfo[]>;
283
283
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
284
- id: string;
285
284
  name: string;
285
+ description: string | null;
286
+ id: string;
286
287
  createdAt: string;
287
288
  updatedAt: string;
288
- description: string | null;
289
- tenantId: string;
290
289
  projectId: string;
290
+ tenantId: string;
291
291
  models: {
292
292
  base?: {
293
293
  model?: string | undefined;
@@ -9,13 +9,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  scopes: ProjectScopeConfig;
10
10
  id: string;
11
11
  }) => Promise<{
12
- id: string;
13
12
  name: string;
14
- createdAt: string;
15
- updatedAt: string;
16
13
  description: string | null;
17
- tenantId: string;
18
- projectId: string;
14
+ id: string;
19
15
  props: {
20
16
  [x: string]: unknown;
21
17
  type: "object";
@@ -28,6 +24,10 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
28
24
  component: string;
29
25
  mockData: Record<string, unknown>;
30
26
  } | null;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  } | undefined>;
32
32
  declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: ProjectScopeConfig;
@@ -65,13 +65,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
65
65
  };
66
66
  }>;
67
67
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
68
- id: string;
69
68
  name: string;
70
- createdAt: string;
71
- updatedAt: string;
72
69
  description: string | null;
73
- tenantId: string;
74
- projectId: string;
70
+ id: string;
75
71
  props: {
76
72
  [x: string]: unknown;
77
73
  type: "object";
@@ -84,6 +80,10 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
84
80
  component: string;
85
81
  mockData: Record<string, unknown>;
86
82
  } | null;
83
+ createdAt: string;
84
+ updatedAt: string;
85
+ projectId: string;
86
+ tenantId: string;
87
87
  }>;
88
88
  declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
89
89
  scopes: ProjectScopeConfig;
@@ -141,12 +141,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
141
141
  scopes: SubAgentScopeConfig;
142
142
  artifactComponentId: string;
143
143
  }) => Promise<{
144
+ subAgentId: string;
144
145
  id: string;
145
146
  createdAt: string;
146
- tenantId: string;
147
147
  projectId: string;
148
+ tenantId: string;
148
149
  agentId: string;
149
- subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
152
152
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -184,12 +184,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
184
184
  scopes: SubAgentScopeConfig;
185
185
  artifactComponentId: string;
186
186
  }) => Promise<{
187
+ subAgentId: string;
187
188
  id: string;
188
189
  createdAt: string;
189
- tenantId: string;
190
190
  projectId: string;
191
+ tenantId: string;
191
192
  agentId: string;
192
- subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
195
195
  /**
@@ -12,8 +12,8 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -24,8 +24,8 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- tenantId: string;
28
27
  projectId: string;
28
+ tenantId: string;
29
29
  agentId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -46,8 +46,8 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- tenantId: string;
50
49
  projectId: string;
50
+ tenantId: string;
51
51
  agentId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -86,8 +86,8 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- tenantId: string;
90
89
  projectId: string;
90
+ tenantId: string;
91
91
  agentId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
@@ -65,12 +65,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
65
65
  scopes: SubAgentScopeConfig;
66
66
  dataComponentId: string;
67
67
  }) => Promise<{
68
+ subAgentId: string;
68
69
  id: string;
69
70
  createdAt: string;
70
- tenantId: string;
71
71
  projectId: string;
72
+ tenantId: string;
72
73
  agentId: string;
73
- subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
76
76
  /**
@@ -107,12 +107,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
107
107
  scopes: SubAgentScopeConfig;
108
108
  dataComponentId: string;
109
109
  }) => Promise<{
110
+ subAgentId: string;
110
111
  id: string;
111
112
  createdAt: string;
112
- tenantId: string;
113
113
  projectId: string;
114
+ tenantId: string;
114
115
  agentId: string;
115
- subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
118
118
  /**
@@ -53,13 +53,13 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- id: string;
57
56
  name: string;
57
+ description: string | null;
58
+ id: string;
58
59
  createdAt: string;
59
60
  updatedAt: string;
60
- description: string | null;
61
- tenantId: string;
62
61
  projectId: string;
62
+ tenantId: string;
63
63
  agentId: string;
64
64
  functionId: string;
65
65
  }>;
@@ -95,13 +95,13 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- id: string;
99
98
  name: string;
99
+ description: string | null;
100
+ id: string;
100
101
  createdAt: string;
101
102
  updatedAt: string;
102
- description: string | null;
103
- tenantId: string;
104
103
  projectId: string;
104
+ tenantId: string;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -157,13 +157,13 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
157
157
  needsApproval?: boolean;
158
158
  }> | null;
159
159
  }) => Promise<{
160
+ subAgentId: string;
160
161
  id: string;
161
162
  createdAt: string;
162
163
  updatedAt: string;
163
- tenantId: string;
164
164
  projectId: string;
165
+ tenantId: string;
165
166
  agentId: string;
166
- subAgentId: string;
167
167
  functionToolId: string;
168
168
  toolPolicies: Record<string, {
169
169
  needsApproval?: boolean;
@@ -222,13 +222,13 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
222
222
  needsApproval?: boolean;
223
223
  }> | null;
224
224
  }) => Promise<{
225
+ subAgentId: string;
225
226
  id: string;
226
227
  createdAt: string;
227
228
  updatedAt: string;
228
- tenantId: string;
229
229
  projectId: string;
230
+ tenantId: string;
230
231
  agentId: string;
231
- subAgentId: string;
232
232
  functionToolId: string;
233
233
  toolPolicies: Record<string, {
234
234
  needsApproval?: boolean;
@@ -15,14 +15,14 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
15
15
  scopes: ProjectScopeConfig;
16
16
  skillId: string;
17
17
  }) => Promise<{
18
- id: string;
19
18
  name: string;
19
+ description: string;
20
+ id: string;
20
21
  createdAt: string;
21
22
  updatedAt: string;
22
- metadata: Record<string, string> | null;
23
- description: string;
24
- tenantId: string;
25
23
  projectId: string;
24
+ tenantId: string;
25
+ metadata: Record<string, string> | null;
26
26
  content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
@@ -110,14 +110,14 @@ interface WithTenantIdProjectId {
110
110
  }
111
111
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<SkillRecordWithFiles>;
112
112
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiInsert & WithTenantIdProjectId) => Promise<{
113
- id: string;
114
113
  name: string;
114
+ description: string;
115
+ id: string;
115
116
  createdAt: string;
116
117
  updatedAt: string;
117
- metadata: Record<string, string> | null;
118
- description: string;
119
- tenantId: string;
120
118
  projectId: string;
119
+ tenantId: string;
120
+ metadata: Record<string, string> | null;
121
121
  content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -139,13 +139,13 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
139
139
  index: number;
140
140
  alwaysLoaded?: boolean;
141
141
  }) => Promise<{
142
+ subAgentId: string;
142
143
  id: string;
143
144
  createdAt: string;
144
145
  updatedAt: string;
145
- tenantId: string;
146
146
  projectId: string;
147
+ tenantId: string;
147
148
  agentId: string;
148
- subAgentId: string;
149
149
  index: number;
150
150
  alwaysLoaded: boolean;
151
151
  skillId: string;
@@ -9,14 +9,14 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
9
9
  scopes: SubAgentScopeConfig;
10
10
  relationId: string;
11
11
  }) => Promise<{
12
+ subAgentId: string;
12
13
  id: string;
13
14
  createdAt: string;
14
15
  updatedAt: string;
15
- headers: Record<string, string> | null;
16
- tenantId: string;
17
16
  projectId: string;
17
+ tenantId: string;
18
18
  agentId: string;
19
- subAgentId: string;
19
+ headers: Record<string, string> | null;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
22
22
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -44,27 +44,27 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
44
44
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
45
45
  scopes: SubAgentScopeConfig;
46
46
  }) => Promise<{
47
+ subAgentId: string;
47
48
  id: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- headers: Record<string, string> | null;
51
- tenantId: string;
52
51
  projectId: string;
52
+ tenantId: string;
53
53
  agentId: string;
54
- subAgentId: string;
54
+ headers: Record<string, string> | null;
55
55
  externalAgentId: string;
56
56
  }[]>;
57
57
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
58
58
  scopes: AgentScopeConfig;
59
59
  }) => Promise<{
60
+ subAgentId: string;
60
61
  id: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- headers: Record<string, string> | null;
64
- tenantId: string;
65
64
  projectId: string;
65
+ tenantId: string;
66
66
  agentId: string;
67
- subAgentId: string;
67
+ headers: Record<string, string> | null;
68
68
  externalAgentId: string;
69
69
  }[]>;
70
70
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -186,14 +186,14 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
186
186
  headers?: Record<string, string> | null;
187
187
  };
188
188
  }) => Promise<{
189
+ subAgentId: string;
189
190
  id: string;
190
191
  createdAt: string;
191
192
  updatedAt: string;
192
- headers: Record<string, string> | null;
193
- tenantId: string;
194
193
  projectId: string;
194
+ tenantId: string;
195
195
  agentId: string;
196
- subAgentId: string;
196
+ headers: Record<string, string> | null;
197
197
  externalAgentId: string;
198
198
  }>;
199
199
  /**
@@ -203,14 +203,14 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
203
203
  scopes: SubAgentScopeConfig;
204
204
  externalAgentId: string;
205
205
  }) => Promise<{
206
+ subAgentId: string;
206
207
  id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
209
- headers: Record<string, string> | null;
210
- tenantId: string;
211
210
  projectId: string;
211
+ tenantId: string;
212
212
  agentId: string;
213
- subAgentId: string;
213
+ headers: Record<string, string> | null;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
216
216
  /**
@@ -224,14 +224,14 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
224
224
  headers?: Record<string, string> | null;
225
225
  };
226
226
  }) => Promise<{
227
+ subAgentId: string;
227
228
  id: string;
228
229
  createdAt: string;
229
230
  updatedAt: string;
230
- headers: Record<string, string> | null;
231
- tenantId: string;
232
231
  projectId: string;
232
+ tenantId: string;
233
233
  agentId: string;
234
- subAgentId: string;
234
+ headers: Record<string, string> | null;
235
235
  externalAgentId: string;
236
236
  }>;
237
237
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
@@ -12,8 +12,8 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- tenantId: string;
16
15
  projectId: string;
16
+ tenantId: string;
17
17
  agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
@@ -47,8 +47,8 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- tenantId: string;
51
50
  projectId: string;
51
+ tenantId: string;
52
52
  agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
@@ -60,8 +60,8 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- tenantId: string;
64
63
  projectId: string;
64
+ tenantId: string;
65
65
  agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
@@ -129,8 +129,8 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- tenantId: string;
133
132
  projectId: string;
133
+ tenantId: string;
134
134
  agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
@@ -148,8 +148,8 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- tenantId: string;
152
151
  projectId: string;
152
+ tenantId: string;
153
153
  agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
@@ -162,8 +162,8 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- tenantId: string;
166
165
  projectId: string;
166
+ tenantId: string;
167
167
  agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
@@ -204,14 +204,14 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
204
204
  }> | null;
205
205
  };
206
206
  }) => Promise<{
207
+ subAgentId: string;
207
208
  id: string;
208
209
  createdAt: string;
209
210
  updatedAt: string;
210
- headers: Record<string, string> | null;
211
- tenantId: string;
212
211
  projectId: string;
212
+ tenantId: string;
213
213
  agentId: string;
214
- subAgentId: string;
214
+ headers: Record<string, string> | null;
215
215
  toolId: string;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
@@ -248,14 +248,14 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
248
248
  scopes: SubAgentScopeConfig;
249
249
  relationId: string;
250
250
  }) => Promise<{
251
+ subAgentId: string;
251
252
  id: string;
252
253
  createdAt: string;
253
254
  updatedAt: string;
254
- headers: Record<string, string> | null;
255
- tenantId: string;
256
255
  projectId: string;
256
+ tenantId: string;
257
257
  agentId: string;
258
- subAgentId: string;
258
+ headers: Record<string, string> | null;
259
259
  toolId: string;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;