@inkeep/agents-core 0.0.0-dev-20260414201919 → 0.0.0-dev-20260415134917

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,19 +2,21 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
2
2
  import * as pg0 from "pg";
3
3
  import { z } from "zod";
4
4
  import { BetterAuthAdvancedOptions } from "better-auth";
5
- import { GoogleOptions } from "better-auth/social-providers";
5
+ import { GoogleOptions, MicrosoftOptions } from "better-auth/social-providers";
6
6
 
7
7
  //#region src/auth/auth-types.d.ts
8
- type AuthMethodType = 'email-password' | 'google' | 'sso';
8
+ type AuthMethodType = 'email-password' | 'google' | 'microsoft' | 'sso';
9
9
  declare const authMethodTypeSchema: z.ZodEnum<{
10
10
  "email-password": "email-password";
11
11
  google: "google";
12
+ microsoft: "microsoft";
12
13
  sso: "sso";
13
14
  }>;
14
15
  declare const methodOptionSchema: z.ZodObject<{
15
16
  method: z.ZodEnum<{
16
17
  "email-password": "email-password";
17
18
  google: "google";
19
+ microsoft: "microsoft";
18
20
  sso: "sso";
19
21
  }>;
20
22
  providerId: z.ZodOptional<z.ZodString>;
@@ -33,6 +35,7 @@ declare const orgAuthInfoSchema: z.ZodObject<{
33
35
  method: z.ZodEnum<{
34
36
  "email-password": "email-password";
35
37
  google: "google";
38
+ microsoft: "microsoft";
36
39
  sso: "sso";
37
40
  }>;
38
41
  providerId: z.ZodOptional<z.ZodString>;
@@ -53,6 +56,7 @@ declare const authLookupResponseSchema: z.ZodObject<{
53
56
  method: z.ZodEnum<{
54
57
  "email-password": "email-password";
55
58
  google: "google";
59
+ microsoft: "microsoft";
56
60
  sso: "sso";
57
61
  }>;
58
62
  providerId: z.ZodOptional<z.ZodString>;
@@ -115,6 +119,8 @@ declare const allowedAuthMethodSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
119
  method: z.ZodLiteral<"email-password">;
116
120
  }, z.core.$strip>, z.ZodObject<{
117
121
  method: z.ZodLiteral<"google">;
122
+ }, z.core.$strip>, z.ZodObject<{
123
+ method: z.ZodLiteral<"microsoft">;
118
124
  }, z.core.$strip>, z.ZodObject<{
119
125
  method: z.ZodLiteral<"sso">;
120
126
  providerId: z.ZodString;
@@ -156,6 +162,7 @@ interface BetterAuthConfig {
156
162
  cookieDomain?: string;
157
163
  socialProviders?: {
158
164
  google?: GoogleOptions;
165
+ microsoft?: MicrosoftOptions;
159
166
  };
160
167
  advanced?: BetterAuthAdvancedOptions;
161
168
  emailService?: EmailServiceConfig;
@@ -163,6 +170,7 @@ interface BetterAuthConfig {
163
170
  interface UserAuthConfig {
164
171
  socialProviders?: {
165
172
  google?: GoogleOptions;
173
+ microsoft?: MicrosoftOptions;
166
174
  };
167
175
  advanced?: BetterAuthAdvancedOptions;
168
176
  }
@@ -4,6 +4,7 @@ import { z } from "zod";
4
4
  const authMethodTypeSchema = z.enum([
5
5
  "email-password",
6
6
  "google",
7
+ "microsoft",
7
8
  "sso"
8
9
  ]);
9
10
  const methodOptionSchema = z.object({
@@ -22,6 +23,7 @@ const authLookupResponseSchema = z.object({ organizations: z.array(orgAuthInfoSc
22
23
  const allowedAuthMethodSchema = z.discriminatedUnion("method", [
23
24
  z.object({ method: z.literal("email-password") }),
24
25
  z.object({ method: z.literal("google") }),
26
+ z.object({ method: z.literal("microsoft") }),
25
27
  z.object({
26
28
  method: z.literal("sso"),
27
29
  providerId: z.string(),
package/dist/auth/auth.js CHANGED
@@ -51,7 +51,11 @@ function createAuth(config) {
51
51
  account: { accountLinking: {
52
52
  enabled: true,
53
53
  trustedProviders: async () => {
54
- const base = ["google", "email-password"];
54
+ const base = [
55
+ "google",
56
+ "microsoft",
57
+ "email-password"
58
+ ];
55
59
  try {
56
60
  const providerIds = await querySsoProviderIds(config.dbClient)();
57
61
  return [...base, ...providerIds];
@@ -67,10 +71,16 @@ function createAuth(config) {
67
71
  activeOrganizationId: organization$1?.id ?? null
68
72
  } };
69
73
  } } } },
70
- socialProviders: config.socialProviders?.google && { google: {
71
- ...config.socialProviders.google,
72
- ...env.OAUTH_PROXY_PRODUCTION_URL && { redirectURI: `${env.OAUTH_PROXY_PRODUCTION_URL}/api/auth/callback/google` }
73
- } },
74
+ socialProviders: (config.socialProviders?.google || config.socialProviders?.microsoft) && {
75
+ ...config.socialProviders?.google && { google: {
76
+ ...config.socialProviders.google,
77
+ ...env.OAUTH_PROXY_PRODUCTION_URL && { redirectURI: `${env.OAUTH_PROXY_PRODUCTION_URL}/api/auth/callback/google` }
78
+ } },
79
+ ...config.socialProviders?.microsoft && { microsoft: {
80
+ ...config.socialProviders.microsoft,
81
+ ...env.OAUTH_PROXY_PRODUCTION_URL && { redirectURI: `${env.OAUTH_PROXY_PRODUCTION_URL}/api/auth/callback/microsoft` }
82
+ } }
83
+ },
74
84
  session: {
75
85
  storeSessionInDatabase: true,
76
86
  expiresIn: 3600 * 24 * 7,
@@ -16,10 +16,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
16
16
  updatedAt: string;
17
17
  description: string | null;
18
18
  prompt: string | null;
19
- projectId: string;
20
19
  tenantId: string;
21
- defaultSubAgentId: string | null;
22
- contextConfigId: string | null;
20
+ projectId: string;
23
21
  models: {
24
22
  base?: {
25
23
  model?: string | undefined;
@@ -40,6 +38,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
40
38
  allowedProviders?: string[] | undefined;
41
39
  } | undefined;
42
40
  } | null;
41
+ stopWhen: {
42
+ transferCountIs?: number | undefined;
43
+ } | null;
44
+ defaultSubAgentId: string | null;
45
+ contextConfigId: string | null;
43
46
  statusUpdates: {
44
47
  enabled?: boolean | undefined;
45
48
  numEvents?: number | undefined;
@@ -55,9 +58,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
55
58
  } | undefined;
56
59
  }[] | undefined;
57
60
  } | null;
58
- stopWhen: {
59
- transferCountIs?: number | undefined;
60
- } | null;
61
61
  executionMode: "classic" | "durable";
62
62
  } | null>;
63
63
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -69,10 +69,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
69
69
  updatedAt: string;
70
70
  description: string | null;
71
71
  prompt: string | null;
72
- projectId: string;
73
72
  tenantId: string;
74
- defaultSubAgentId: string | null;
75
- contextConfigId: string | null;
73
+ projectId: string;
76
74
  models: {
77
75
  base?: {
78
76
  model?: string | undefined;
@@ -93,6 +91,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
93
91
  allowedProviders?: string[] | undefined;
94
92
  } | undefined;
95
93
  } | null;
94
+ stopWhen: {
95
+ transferCountIs?: number | undefined;
96
+ } | null;
97
+ defaultSubAgentId: string | null;
98
+ contextConfigId: string | null;
96
99
  statusUpdates: {
97
100
  enabled?: boolean | undefined;
98
101
  numEvents?: number | undefined;
@@ -108,9 +111,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
108
111
  } | undefined;
109
112
  }[] | undefined;
110
113
  } | null;
111
- stopWhen: {
112
- transferCountIs?: number | undefined;
113
- } | null;
114
114
  executionMode: "classic" | "durable";
115
115
  defaultSubAgent: {
116
116
  id: string;
@@ -119,9 +119,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
119
119
  updatedAt: string;
120
120
  description: string | null;
121
121
  prompt: string | null;
122
- agentId: string;
123
- projectId: string;
124
122
  tenantId: string;
123
+ projectId: string;
124
+ agentId: string;
125
+ conversationHistoryConfig: ConversationHistoryConfig | null;
125
126
  models: {
126
127
  base?: {
127
128
  model?: string | undefined;
@@ -145,7 +146,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
145
146
  stopWhen: {
146
147
  stepCountIs?: number | undefined;
147
148
  } | null;
148
- conversationHistoryConfig: ConversationHistoryConfig | null;
149
149
  } | null;
150
150
  } | null>;
151
151
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
@@ -157,10 +157,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
157
157
  updatedAt: string;
158
158
  description: string | null;
159
159
  prompt: string | null;
160
- projectId: string;
161
160
  tenantId: string;
162
- defaultSubAgentId: string | null;
163
- contextConfigId: string | null;
161
+ projectId: string;
164
162
  models: {
165
163
  base?: {
166
164
  model?: string | undefined;
@@ -181,6 +179,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
181
179
  allowedProviders?: string[] | undefined;
182
180
  } | undefined;
183
181
  } | null;
182
+ stopWhen: {
183
+ transferCountIs?: number | undefined;
184
+ } | null;
185
+ defaultSubAgentId: string | null;
186
+ contextConfigId: string | null;
184
187
  statusUpdates: {
185
188
  enabled?: boolean | undefined;
186
189
  numEvents?: number | undefined;
@@ -196,9 +199,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
196
199
  } | undefined;
197
200
  }[] | undefined;
198
201
  } | null;
199
- stopWhen: {
200
- transferCountIs?: number | undefined;
201
- } | null;
202
202
  executionMode: "classic" | "durable";
203
203
  }[]>;
204
204
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
@@ -287,10 +287,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
287
287
  updatedAt: string;
288
288
  description: string | null;
289
289
  prompt: string | null;
290
- projectId: string;
291
290
  tenantId: string;
292
- defaultSubAgentId: string | null;
293
- contextConfigId: string | null;
291
+ projectId: string;
294
292
  models: {
295
293
  base?: {
296
294
  model?: string | undefined;
@@ -311,6 +309,11 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
311
309
  allowedProviders?: string[] | undefined;
312
310
  } | undefined;
313
311
  } | null;
312
+ stopWhen: {
313
+ transferCountIs?: number | undefined;
314
+ } | null;
315
+ defaultSubAgentId: string | null;
316
+ contextConfigId: string | null;
314
317
  statusUpdates: {
315
318
  enabled?: boolean | undefined;
316
319
  numEvents?: number | undefined;
@@ -326,9 +329,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
326
329
  } | undefined;
327
330
  }[] | undefined;
328
331
  } | null;
329
- stopWhen: {
330
- transferCountIs?: number | undefined;
331
- } | null;
332
332
  executionMode: "classic" | "durable";
333
333
  }>;
334
334
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -14,8 +14,8 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
14
14
  createdAt: string;
15
15
  updatedAt: string;
16
16
  description: string | null;
17
- projectId: string;
18
17
  tenantId: string;
18
+ projectId: string;
19
19
  props: {
20
20
  [x: string]: unknown;
21
21
  type: "object";
@@ -70,8 +70,8 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
70
70
  createdAt: string;
71
71
  updatedAt: string;
72
72
  description: string | null;
73
- projectId: string;
74
73
  tenantId: string;
74
+ projectId: string;
75
75
  props: {
76
76
  [x: string]: unknown;
77
77
  type: "object";
@@ -143,9 +143,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
143
143
  }) => Promise<{
144
144
  id: string;
145
145
  createdAt: string;
146
- agentId: string;
147
- projectId: string;
148
146
  tenantId: string;
147
+ projectId: string;
148
+ agentId: string;
149
149
  subAgentId: string;
150
150
  artifactComponentId: string;
151
151
  }>;
@@ -186,9 +186,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
186
186
  }) => Promise<{
187
187
  id: string;
188
188
  createdAt: string;
189
- agentId: string;
190
- projectId: string;
191
189
  tenantId: string;
190
+ projectId: string;
191
+ agentId: string;
192
192
  subAgentId: string;
193
193
  artifactComponentId: string;
194
194
  } | null>;
@@ -12,9 +12,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  headersSchema: unknown;
19
19
  contextVariables: Record<string, ContextFetchDefinition> | null;
20
20
  } | undefined>;
@@ -24,9 +24,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
24
24
  id: string;
25
25
  createdAt: string;
26
26
  updatedAt: string;
27
- agentId: string;
28
- projectId: string;
29
27
  tenantId: string;
28
+ projectId: string;
29
+ agentId: string;
30
30
  headersSchema: unknown;
31
31
  contextVariables: Record<string, ContextFetchDefinition> | null;
32
32
  }[]>;
@@ -46,9 +46,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
- agentId: string;
50
- projectId: string;
51
49
  tenantId: string;
50
+ projectId: string;
51
+ agentId: string;
52
52
  headersSchema: unknown;
53
53
  contextVariables: Record<string, ContextFetchDefinition> | null;
54
54
  }>;
@@ -86,9 +86,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
86
86
  id: string;
87
87
  createdAt: string;
88
88
  updatedAt: string;
89
- agentId: string;
90
- projectId: string;
91
89
  tenantId: string;
90
+ projectId: string;
91
+ agentId: string;
92
92
  headersSchema: unknown;
93
93
  contextVariables: Record<string, ContextFetchDefinition> | null;
94
94
  }>;
@@ -67,9 +67,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
67
67
  }) => Promise<{
68
68
  id: string;
69
69
  createdAt: string;
70
- agentId: string;
71
- projectId: string;
72
70
  tenantId: string;
71
+ projectId: string;
72
+ agentId: string;
73
73
  subAgentId: string;
74
74
  dataComponentId: string;
75
75
  }>;
@@ -109,9 +109,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
109
109
  }) => Promise<{
110
110
  id: string;
111
111
  createdAt: string;
112
- agentId: string;
113
- projectId: string;
114
112
  tenantId: string;
113
+ projectId: string;
114
+ agentId: string;
115
115
  subAgentId: string;
116
116
  dataComponentId: string;
117
117
  } | null>;
@@ -58,9 +58,9 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  description: string | null;
61
- agentId: string;
62
- projectId: string;
63
61
  tenantId: string;
62
+ projectId: string;
63
+ agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -100,9 +100,9 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
100
100
  createdAt: string;
101
101
  updatedAt: string;
102
102
  description: string | null;
103
- agentId: string;
104
- projectId: string;
105
103
  tenantId: string;
104
+ projectId: string;
105
+ agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -160,9 +160,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
160
160
  id: string;
161
161
  createdAt: string;
162
162
  updatedAt: string;
163
- agentId: string;
164
- projectId: string;
165
163
  tenantId: string;
164
+ projectId: string;
165
+ agentId: string;
166
166
  subAgentId: string;
167
167
  functionToolId: string;
168
168
  toolPolicies: Record<string, {
@@ -225,9 +225,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
225
225
  id: string;
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
- agentId: string;
229
- projectId: string;
230
228
  tenantId: string;
229
+ projectId: string;
230
+ agentId: string;
231
231
  subAgentId: string;
232
232
  functionToolId: string;
233
233
  toolPolicies: Record<string, {
@@ -21,8 +21,8 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
21
21
  updatedAt: string;
22
22
  metadata: Record<string, string> | null;
23
23
  description: string;
24
- projectId: string;
25
24
  tenantId: string;
25
+ projectId: string;
26
26
  content: string;
27
27
  } | null>;
28
28
  declare const getSkillByIdWithFiles: (db: AgentsManageDatabaseClient) => (params: {
@@ -116,8 +116,8 @@ declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillApiIn
116
116
  updatedAt: string;
117
117
  metadata: Record<string, string> | null;
118
118
  description: string;
119
- projectId: string;
120
119
  tenantId: string;
120
+ projectId: string;
121
121
  content: string;
122
122
  }>;
123
123
  declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
@@ -142,9 +142,9 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
142
142
  id: string;
143
143
  createdAt: string;
144
144
  updatedAt: string;
145
- agentId: string;
146
- projectId: string;
147
145
  tenantId: string;
146
+ projectId: string;
147
+ agentId: string;
148
148
  subAgentId: string;
149
149
  index: number;
150
150
  alwaysLoaded: boolean;
@@ -13,9 +13,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  externalAgentId: string;
21
21
  } | undefined>;
@@ -48,9 +48,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
50
  headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
51
  tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  externalAgentId: string;
56
56
  }[]>;
@@ -61,9 +61,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
63
  headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
64
  tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  externalAgentId: string;
69
69
  }[]>;
@@ -190,9 +190,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
190
190
  createdAt: string;
191
191
  updatedAt: string;
192
192
  headers: Record<string, string> | null;
193
- agentId: string;
194
- projectId: string;
195
193
  tenantId: string;
194
+ projectId: string;
195
+ agentId: string;
196
196
  subAgentId: string;
197
197
  externalAgentId: string;
198
198
  }>;
@@ -207,9 +207,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
207
207
  createdAt: string;
208
208
  updatedAt: string;
209
209
  headers: Record<string, string> | null;
210
- agentId: string;
211
- projectId: string;
212
210
  tenantId: string;
211
+ projectId: string;
212
+ agentId: string;
213
213
  subAgentId: string;
214
214
  externalAgentId: string;
215
215
  } | undefined>;
@@ -228,9 +228,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
228
228
  createdAt: string;
229
229
  updatedAt: string;
230
230
  headers: Record<string, string> | null;
231
- agentId: string;
232
- projectId: string;
233
231
  tenantId: string;
232
+ projectId: string;
233
+ agentId: string;
234
234
  subAgentId: string;
235
235
  externalAgentId: string;
236
236
  }>;
@@ -12,9 +12,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
12
12
  id: string;
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
- agentId: string;
16
- projectId: string;
17
15
  tenantId: string;
16
+ projectId: string;
17
+ agentId: string;
18
18
  sourceSubAgentId: string;
19
19
  targetSubAgentId: string | null;
20
20
  relationType: string | null;
@@ -47,9 +47,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
47
47
  id: string;
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
- agentId: string;
51
- projectId: string;
52
50
  tenantId: string;
51
+ projectId: string;
52
+ agentId: string;
53
53
  sourceSubAgentId: string;
54
54
  targetSubAgentId: string | null;
55
55
  relationType: string | null;
@@ -60,9 +60,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
60
60
  id: string;
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
- agentId: string;
64
- projectId: string;
65
63
  tenantId: string;
64
+ projectId: string;
65
+ agentId: string;
66
66
  sourceSubAgentId: string;
67
67
  targetSubAgentId: string | null;
68
68
  relationType: string | null;
@@ -129,9 +129,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
129
129
  id: string;
130
130
  createdAt: string;
131
131
  updatedAt: string;
132
- agentId: string;
133
- projectId: string;
134
132
  tenantId: string;
133
+ projectId: string;
134
+ agentId: string;
135
135
  sourceSubAgentId: string;
136
136
  targetSubAgentId: string | null;
137
137
  relationType: string | null;
@@ -148,9 +148,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
148
148
  id: string;
149
149
  createdAt: string;
150
150
  updatedAt: string;
151
- agentId: string;
152
- projectId: string;
153
151
  tenantId: string;
152
+ projectId: string;
153
+ agentId: string;
154
154
  sourceSubAgentId: string;
155
155
  targetSubAgentId: string | null;
156
156
  relationType: string | null;
@@ -162,9 +162,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
162
162
  id: string;
163
163
  createdAt: string;
164
164
  updatedAt: string;
165
- agentId: string;
166
- projectId: string;
167
165
  tenantId: string;
166
+ projectId: string;
167
+ agentId: string;
168
168
  sourceSubAgentId: string;
169
169
  targetSubAgentId: string | null;
170
170
  relationType: string | null;
@@ -208,11 +208,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
208
208
  createdAt: string;
209
209
  updatedAt: string;
210
210
  headers: Record<string, string> | null;
211
- agentId: string;
212
- projectId: string;
213
211
  tenantId: string;
214
- toolId: string;
212
+ projectId: string;
213
+ agentId: string;
215
214
  subAgentId: string;
215
+ toolId: string;
216
216
  toolPolicies: Record<string, {
217
217
  needsApproval?: boolean;
218
218
  }> | null;
@@ -252,11 +252,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
252
252
  createdAt: string;
253
253
  updatedAt: string;
254
254
  headers: Record<string, string> | null;
255
- agentId: string;
256
- projectId: string;
257
255
  tenantId: string;
258
- toolId: string;
256
+ projectId: string;
257
+ agentId: string;
259
258
  subAgentId: string;
259
+ toolId: string;
260
260
  toolPolicies: Record<string, {
261
261
  needsApproval?: boolean;
262
262
  }> | null;
@@ -13,9 +13,9 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  headers: Record<string, string> | null;
16
- agentId: string;
17
- projectId: string;
18
16
  tenantId: string;
17
+ projectId: string;
18
+ agentId: string;
19
19
  subAgentId: string;
20
20
  targetAgentId: string;
21
21
  } | undefined>;
@@ -48,9 +48,9 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
48
48
  createdAt: string;
49
49
  updatedAt: string;
50
50
  headers: Record<string, string> | null;
51
- agentId: string;
52
- projectId: string;
53
51
  tenantId: string;
52
+ projectId: string;
53
+ agentId: string;
54
54
  subAgentId: string;
55
55
  targetAgentId: string;
56
56
  }[]>;
@@ -61,9 +61,9 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
61
61
  createdAt: string;
62
62
  updatedAt: string;
63
63
  headers: Record<string, string> | null;
64
- agentId: string;
65
- projectId: string;
66
64
  tenantId: string;
65
+ projectId: string;
66
+ agentId: string;
67
67
  subAgentId: string;
68
68
  targetAgentId: string;
69
69
  }[]>;
@@ -226,9 +226,9 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
226
226
  createdAt: string;
227
227
  updatedAt: string;
228
228
  headers: Record<string, string> | null;
229
- agentId: string;
230
- projectId: string;
231
229
  tenantId: string;
230
+ projectId: string;
231
+ agentId: string;
232
232
  subAgentId: string;
233
233
  targetAgentId: string;
234
234
  }>;
@@ -243,9 +243,9 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
243
243
  createdAt: string;
244
244
  updatedAt: string;
245
245
  headers: Record<string, string> | null;
246
- agentId: string;
247
- projectId: string;
248
246
  tenantId: string;
247
+ projectId: string;
248
+ agentId: string;
249
249
  subAgentId: string;
250
250
  targetAgentId: string;
251
251
  } | undefined>;
@@ -264,9 +264,9 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
264
264
  createdAt: string;
265
265
  updatedAt: string;
266
266
  headers: Record<string, string> | null;
267
- agentId: string;
268
- projectId: string;
269
267
  tenantId: string;
268
+ projectId: string;
269
+ agentId: string;
270
270
  subAgentId: string;
271
271
  targetAgentId: string;
272
272
  }>;