@inkeep/agents-core 0.0.0-dev-20260219225345 → 0.0.0-dev-20260220015147

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 (36) hide show
  1. package/dist/auth/auth-schema.d.ts +105 -105
  2. package/dist/auth/auth-validation-schemas.d.ts +131 -131
  3. package/dist/auth/auth.d.ts +4 -4
  4. package/dist/client-exports.d.ts +5 -5
  5. package/dist/data-access/manage/agents.d.ts +31 -31
  6. package/dist/data-access/manage/artifactComponents.d.ts +14 -14
  7. package/dist/data-access/manage/contextConfigs.d.ts +8 -8
  8. package/dist/data-access/manage/dataComponents.d.ts +6 -6
  9. package/dist/data-access/manage/functionTools.d.ts +14 -14
  10. package/dist/data-access/manage/skills.d.ts +13 -13
  11. package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
  12. package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
  13. package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
  14. package/dist/data-access/manage/subAgents.d.ts +21 -21
  15. package/dist/data-access/manage/tools.d.ts +18 -18
  16. package/dist/data-access/runtime/apiKeys.d.ts +12 -12
  17. package/dist/data-access/runtime/conversations.d.ts +16 -16
  18. package/dist/data-access/runtime/messages.d.ts +15 -15
  19. package/dist/data-access/runtime/tasks.d.ts +4 -4
  20. package/dist/data-access/runtime/workAppSlack.js +1 -0
  21. package/dist/db/manage/manage-schema.d.ts +445 -445
  22. package/dist/db/manage/manage-schema.js +1 -1
  23. package/dist/db/runtime/runtime-schema.d.ts +17 -0
  24. package/dist/db/runtime/runtime-schema.js +1 -0
  25. package/dist/middleware/no-auth.d.ts +2 -2
  26. package/dist/types/utility.d.ts +6 -0
  27. package/dist/utils/slack-user-token.d.ts +11 -0
  28. package/dist/utils/slack-user-token.js +11 -3
  29. package/dist/validation/schemas.d.ts +390 -390
  30. package/drizzle/manage/0010_oval_angel.sql +2 -0
  31. package/drizzle/manage/meta/0010_snapshot.json +3673 -0
  32. package/drizzle/manage/meta/_journal.json +7 -0
  33. package/drizzle/runtime/0014_odd_oracle.sql +1 -0
  34. package/drizzle/runtime/meta/0014_snapshot.json +3753 -0
  35. package/drizzle/runtime/meta/_journal.json +7 -0
  36. package/package.json +1 -1
@@ -1084,7 +1084,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1084
1084
  id: string;
1085
1085
  organizationId: string;
1086
1086
  email: string;
1087
- role: "member" | "owner" | "admin";
1087
+ role: "owner" | "admin" | "member";
1088
1088
  status: better_auth_plugins0.InvitationStatus;
1089
1089
  inviterId: string;
1090
1090
  expiresAt: Date;
@@ -1094,7 +1094,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1094
1094
  Member: {
1095
1095
  id: string;
1096
1096
  organizationId: string;
1097
- role: "member" | "owner" | "admin";
1097
+ role: "owner" | "admin" | "member";
1098
1098
  createdAt: Date;
1099
1099
  userId: string;
1100
1100
  user: {
@@ -1110,7 +1110,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1110
1110
  members: {
1111
1111
  id: string;
1112
1112
  organizationId: string;
1113
- role: "member" | "owner" | "admin";
1113
+ role: "owner" | "admin" | "member";
1114
1114
  createdAt: Date;
1115
1115
  userId: string;
1116
1116
  user: {
@@ -1124,7 +1124,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1124
1124
  id: string;
1125
1125
  organizationId: string;
1126
1126
  email: string;
1127
- role: "member" | "owner" | "admin";
1127
+ role: "owner" | "admin" | "member";
1128
1128
  status: better_auth_plugins0.InvitationStatus;
1129
1129
  inviterId: string;
1130
1130
  expiresAt: Date;
@@ -17,11 +17,10 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
17
17
  description: z.ZodOptional<z.ZodString>;
18
18
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
19
19
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
20
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
- name: z.ZodString;
22
20
  id: z.ZodString;
23
- createdAt: z.ZodOptional<z.ZodString>;
24
- updatedAt: z.ZodOptional<z.ZodString>;
21
+ name: z.ZodString;
22
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
25
24
  models: z.ZodOptional<z.ZodObject<{
26
25
  base: z.ZodOptional<z.ZodObject<{
27
26
  model: z.ZodOptional<z.ZodString>;
@@ -45,7 +44,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
45
44
  }, {
46
45
  stepCountIs?: number | undefined;
47
46
  }>>>>;
48
- conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
47
+ createdAt: z.ZodOptional<z.ZodString>;
48
+ updatedAt: z.ZodOptional<z.ZodString>;
49
49
  type: z.ZodLiteral<"internal">;
50
50
  canUse: z.ZodArray<z.ZodObject<{
51
51
  agentToolRelationId: z.ZodOptional<z.ZodString>;
@@ -8,13 +8,13 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
+ id: string;
12
+ name: string;
11
13
  description: string | null;
14
+ defaultSubAgentId: string | null;
12
15
  tenantId: string;
13
- name: string;
14
16
  projectId: string;
15
- id: string;
16
- createdAt: string;
17
- updatedAt: string;
17
+ prompt: string | null;
18
18
  models: {
19
19
  base?: {
20
20
  model?: string | undefined;
@@ -32,8 +32,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
32
32
  stopWhen: {
33
33
  transferCountIs?: number | undefined;
34
34
  } | null;
35
- prompt: string | null;
36
- defaultSubAgentId: string | null;
35
+ createdAt: string;
36
+ updatedAt: string;
37
37
  contextConfigId: string | null;
38
38
  statusUpdates: {
39
39
  enabled?: boolean | undefined;
@@ -54,13 +54,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
+ id: string;
58
+ name: string;
57
59
  description: string | null;
60
+ defaultSubAgentId: string | null;
58
61
  tenantId: string;
59
- name: string;
60
62
  projectId: string;
61
- id: string;
62
- createdAt: string;
63
- updatedAt: string;
63
+ prompt: string | null;
64
64
  models: {
65
65
  base?: {
66
66
  model?: string | undefined;
@@ -78,8 +78,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
78
78
  stopWhen: {
79
79
  transferCountIs?: number | undefined;
80
80
  } | null;
81
- prompt: string | null;
82
- defaultSubAgentId: string | null;
81
+ createdAt: string;
82
+ updatedAt: string;
83
83
  contextConfigId: string | null;
84
84
  statusUpdates: {
85
85
  enabled?: boolean | undefined;
@@ -97,13 +97,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
+ id: string;
101
+ name: string;
100
102
  description: string | null;
101
103
  tenantId: string;
102
- name: string;
103
104
  projectId: string;
104
- id: string;
105
- createdAt: string;
106
- updatedAt: string;
105
+ agentId: string;
106
+ prompt: string | null;
107
+ conversationHistoryConfig: ConversationHistoryConfig | null;
107
108
  models: {
108
109
  base?: {
109
110
  model?: string | undefined;
@@ -121,21 +122,20 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
121
122
  stopWhen: {
122
123
  stepCountIs?: number | undefined;
123
124
  } | null;
124
- prompt: string | null;
125
- conversationHistoryConfig: ConversationHistoryConfig | null;
126
- agentId: string;
125
+ createdAt: string;
126
+ updatedAt: string;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
+ id: string;
133
+ name: string;
132
134
  description: string | null;
135
+ defaultSubAgentId: string | null;
133
136
  tenantId: string;
134
- name: string;
135
137
  projectId: string;
136
- id: string;
137
- createdAt: string;
138
- updatedAt: string;
138
+ prompt: string | null;
139
139
  models: {
140
140
  base?: {
141
141
  model?: string | undefined;
@@ -153,8 +153,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
153
153
  stopWhen: {
154
154
  transferCountIs?: number | undefined;
155
155
  } | null;
156
- prompt: string | null;
157
- defaultSubAgentId: string | null;
156
+ createdAt: string;
157
+ updatedAt: string;
158
158
  contextConfigId: string | null;
159
159
  statusUpdates: {
160
160
  enabled?: boolean | undefined;
@@ -245,13 +245,13 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
245
245
  projectIds: string[];
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
+ id: string;
249
+ name: string;
248
250
  description: string | null;
251
+ defaultSubAgentId: string | null;
249
252
  tenantId: string;
250
- name: string;
251
253
  projectId: string;
252
- id: string;
253
- createdAt: string;
254
- updatedAt: string;
254
+ prompt: string | null;
255
255
  models: {
256
256
  base?: {
257
257
  model?: string | undefined;
@@ -269,8 +269,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
269
269
  stopWhen: {
270
270
  transferCountIs?: number | undefined;
271
271
  } | null;
272
- prompt: string | null;
273
- defaultSubAgentId: string | null;
272
+ createdAt: string;
273
+ updatedAt: string;
274
274
  contextConfigId: string | null;
275
275
  statusUpdates: {
276
276
  enabled?: boolean | undefined;
@@ -8,11 +8,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  scopes: ProjectScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ id: string;
12
+ name: string;
11
13
  description: string | null;
12
14
  tenantId: string;
13
- name: string;
14
15
  projectId: string;
15
- id: string;
16
+ createdAt: string;
17
+ updatedAt: string;
16
18
  props: {
17
19
  [x: string]: unknown;
18
20
  type: "object";
@@ -25,8 +27,6 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
25
27
  component: string;
26
28
  mockData: Record<string, unknown>;
27
29
  } | null;
28
- createdAt: string;
29
- updatedAt: string;
30
30
  } | undefined>;
31
31
  declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
32
32
  scopes: ProjectScopeConfig;
@@ -64,11 +64,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
64
64
  };
65
65
  }>;
66
66
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
67
+ id: string;
68
+ name: string;
67
69
  description: string | null;
68
70
  tenantId: string;
69
- name: string;
70
71
  projectId: string;
71
- id: string;
72
+ createdAt: string;
73
+ updatedAt: string;
72
74
  props: {
73
75
  [x: string]: unknown;
74
76
  type: "object";
@@ -81,8 +83,6 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
81
83
  component: string;
82
84
  mockData: Record<string, unknown>;
83
85
  } | null;
84
- createdAt: string;
85
- updatedAt: string;
86
86
  }>;
87
87
  declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
88
88
  scopes: ProjectScopeConfig;
@@ -140,12 +140,12 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
140
140
  scopes: SubAgentScopeConfig;
141
141
  artifactComponentId: string;
142
142
  }) => Promise<{
143
+ id: string;
143
144
  tenantId: string;
144
145
  projectId: string;
145
- subAgentId: string;
146
- id: string;
147
- createdAt: string;
148
146
  agentId: string;
147
+ createdAt: string;
148
+ subAgentId: string;
149
149
  artifactComponentId: string;
150
150
  }>;
151
151
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -183,12 +183,12 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
183
183
  scopes: SubAgentScopeConfig;
184
184
  artifactComponentId: string;
185
185
  }) => Promise<{
186
+ id: string;
186
187
  tenantId: string;
187
188
  projectId: string;
188
- subAgentId: string;
189
- id: string;
190
- createdAt: string;
191
189
  agentId: string;
190
+ createdAt: string;
191
+ subAgentId: string;
192
192
  artifactComponentId: string;
193
193
  } | null>;
194
194
  /**
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ id: string;
11
12
  tenantId: string;
12
13
  projectId: string;
13
- id: string;
14
+ agentId: string;
14
15
  createdAt: string;
15
16
  updatedAt: string;
16
- agentId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
+ id: string;
23
24
  tenantId: string;
24
25
  projectId: string;
25
- id: string;
26
+ agentId: string;
26
27
  createdAt: string;
27
28
  updatedAt: string;
28
- agentId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
42
42
  };
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
+ id: string;
45
46
  tenantId: string;
46
47
  projectId: string;
47
- id: string;
48
+ agentId: string;
48
49
  createdAt: string;
49
50
  updatedAt: string;
50
- agentId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
82
82
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
+ id: string;
85
86
  tenantId: string;
86
87
  projectId: string;
87
- id: string;
88
+ agentId: string;
88
89
  createdAt: string;
89
90
  updatedAt: string;
90
- agentId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -64,12 +64,12 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
+ id: string;
67
68
  tenantId: string;
68
69
  projectId: string;
69
- subAgentId: string;
70
- id: string;
71
- createdAt: string;
72
70
  agentId: string;
71
+ createdAt: string;
72
+ subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
75
75
  /**
@@ -106,12 +106,12 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
+ id: string;
109
110
  tenantId: string;
110
111
  projectId: string;
111
- subAgentId: string;
112
- id: string;
113
- createdAt: string;
114
112
  agentId: string;
113
+ createdAt: string;
114
+ subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
117
117
  /**
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
+ id: string;
57
+ name: string;
56
58
  description: string | null;
57
59
  tenantId: string;
58
- name: string;
59
60
  projectId: string;
60
- id: string;
61
+ agentId: string;
61
62
  createdAt: string;
62
63
  updatedAt: string;
63
- agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
+ id: string;
99
+ name: string;
98
100
  description: string | null;
99
101
  tenantId: string;
100
- name: string;
101
102
  projectId: string;
102
- id: string;
103
+ agentId: string;
103
104
  createdAt: string;
104
105
  updatedAt: string;
105
- agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
+ id: string;
164
165
  tenantId: string;
165
166
  projectId: string;
166
- subAgentId: string;
167
- id: string;
167
+ agentId: string;
168
168
  createdAt: string;
169
169
  updatedAt: string;
170
- agentId: string;
171
- functionToolId: string;
172
170
  toolPolicies: Record<string, {
173
171
  needsApproval?: boolean;
174
172
  }> | null;
173
+ subAgentId: string;
174
+ functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
+ id: string;
229
230
  tenantId: string;
230
231
  projectId: string;
231
- subAgentId: string;
232
- id: string;
232
+ agentId: string;
233
233
  createdAt: string;
234
234
  updatedAt: string;
235
- agentId: string;
236
- functionToolId: string;
237
235
  toolPolicies: Record<string, {
238
236
  needsApproval?: boolean;
239
237
  }> | null;
238
+ subAgentId: string;
239
+ functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -7,15 +7,15 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  skillId: string;
9
9
  }) => Promise<{
10
+ id: string;
11
+ name: string;
10
12
  description: string;
11
13
  tenantId: string;
12
- name: string;
13
- content: string;
14
14
  projectId: string;
15
- id: string;
16
15
  createdAt: string;
17
16
  updatedAt: string;
18
17
  metadata: Record<string, string> | null;
18
+ content: string;
19
19
  } | null>;
20
20
  declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: ProjectScopeConfig;
@@ -40,26 +40,26 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
40
40
  };
41
41
  }>;
42
42
  declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
43
+ id: string;
44
+ name: string;
43
45
  description: string;
44
46
  tenantId: string;
45
- name: string;
46
- content: string;
47
47
  projectId: string;
48
- id: string;
49
48
  createdAt: string;
50
49
  updatedAt: string;
51
50
  metadata: Record<string, string> | null;
51
+ content: string;
52
52
  }>;
53
53
  declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
54
+ id: string;
55
+ name: string;
54
56
  description: string;
55
57
  tenantId: string;
56
- name: string;
57
- content: string;
58
58
  projectId: string;
59
- id: string;
60
59
  createdAt: string;
61
60
  updatedAt: string;
62
61
  metadata: Record<string, string> | null;
62
+ content: string;
63
63
  }>;
64
64
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
65
65
  scopes: ProjectScopeConfig;
@@ -90,16 +90,16 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
90
90
  index: number;
91
91
  alwaysLoaded?: boolean;
92
92
  }) => Promise<{
93
+ id: string;
93
94
  tenantId: string;
94
95
  projectId: string;
95
- subAgentId: string;
96
- id: string;
96
+ agentId: string;
97
97
  createdAt: string;
98
98
  updatedAt: string;
99
- agentId: string;
100
- skillId: string;
101
99
  index: number;
102
100
  alwaysLoaded: boolean;
101
+ subAgentId: string;
102
+ skillId: string;
103
103
  }>;
104
104
  declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
105
105
  scopes: AgentScopeConfig;
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ id: string;
11
12
  tenantId: string;
12
13
  projectId: string;
13
- subAgentId: string;
14
- id: string;
14
+ agentId: string;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
- agentId: string;
18
17
  headers: Record<string, string> | null;
19
18
  externalAgentId: string;
19
+ subAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
22
22
  scopes: SubAgentScopeConfig;
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
43
43
  declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
44
44
  scopes: SubAgentScopeConfig;
45
45
  }) => Promise<{
46
+ id: string;
46
47
  tenantId: string;
47
48
  projectId: string;
48
- subAgentId: string;
49
- id: string;
49
+ agentId: string;
50
50
  createdAt: string;
51
51
  updatedAt: string;
52
- agentId: string;
53
52
  headers: Record<string, string> | null;
54
53
  externalAgentId: string;
54
+ subAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
57
57
  scopes: AgentScopeConfig;
58
58
  }) => Promise<{
59
+ id: string;
59
60
  tenantId: string;
60
61
  projectId: string;
61
- subAgentId: string;
62
- id: string;
62
+ agentId: string;
63
63
  createdAt: string;
64
64
  updatedAt: string;
65
- agentId: string;
66
65
  headers: Record<string, string> | null;
67
66
  externalAgentId: string;
67
+ subAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
70
70
  scopes: AgentScopeConfig;
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
179
179
  headers?: Record<string, string> | null;
180
180
  };
181
181
  }) => Promise<{
182
+ id: string;
182
183
  tenantId: string;
183
184
  projectId: string;
184
- subAgentId: string;
185
- id: string;
185
+ agentId: string;
186
186
  createdAt: string;
187
187
  updatedAt: string;
188
- agentId: string;
189
188
  headers: Record<string, string> | null;
190
189
  externalAgentId: string;
190
+ subAgentId: string;
191
191
  }>;
192
192
  /**
193
193
  * Check if sub-agent external agent relation exists by params
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
196
196
  scopes: SubAgentScopeConfig;
197
197
  externalAgentId: string;
198
198
  }) => Promise<{
199
+ id: string;
199
200
  tenantId: string;
200
201
  projectId: string;
201
- subAgentId: string;
202
- id: string;
202
+ agentId: string;
203
203
  createdAt: string;
204
204
  updatedAt: string;
205
- agentId: string;
206
205
  headers: Record<string, string> | null;
207
206
  externalAgentId: string;
207
+ subAgentId: string;
208
208
  } | undefined>;
209
209
  /**
210
210
  * Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
217
217
  headers?: Record<string, string> | null;
218
218
  };
219
219
  }) => Promise<{
220
+ id: string;
220
221
  tenantId: string;
221
222
  projectId: string;
222
- subAgentId: string;
223
- id: string;
223
+ agentId: string;
224
224
  createdAt: string;
225
225
  updatedAt: string;
226
- agentId: string;
227
226
  headers: Record<string, string> | null;
228
227
  externalAgentId: string;
228
+ subAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
231
231
  scopes: SubAgentScopeConfig;