@inkeep/agents-core 0.0.0-dev-20260204152302 → 0.0.0-dev-20260204160325

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.
@@ -852,25 +852,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
852
852
  ac: better_auth_plugins0.AccessControl;
853
853
  roles: {
854
854
  member: {
855
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
856
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
855
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
856
+ actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
857
857
  connector: "OR" | "AND";
858
858
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
859
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
859
+ statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
860
860
  };
861
861
  admin: {
862
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
863
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
862
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
863
+ actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
864
864
  connector: "OR" | "AND";
865
865
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
866
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
866
+ statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
867
867
  };
868
868
  owner: {
869
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
870
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
869
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
870
+ actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
871
871
  connector: "OR" | "AND";
872
872
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
873
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
873
+ statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
874
874
  };
875
875
  };
876
876
  creatorRole: "admin";
@@ -1045,7 +1045,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1045
1045
  id: string;
1046
1046
  organizationId: string;
1047
1047
  email: string;
1048
- role: "member" | "owner" | "admin";
1048
+ role: "member" | "admin" | "owner";
1049
1049
  status: better_auth_plugins0.InvitationStatus;
1050
1050
  inviterId: string;
1051
1051
  expiresAt: Date;
@@ -1054,7 +1054,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1054
1054
  Member: {
1055
1055
  id: string;
1056
1056
  organizationId: string;
1057
- role: "member" | "owner" | "admin";
1057
+ role: "member" | "admin" | "owner";
1058
1058
  createdAt: Date;
1059
1059
  userId: string;
1060
1060
  user: {
@@ -1070,7 +1070,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1070
1070
  members: {
1071
1071
  id: string;
1072
1072
  organizationId: string;
1073
- role: "member" | "owner" | "admin";
1073
+ role: "member" | "admin" | "owner";
1074
1074
  createdAt: Date;
1075
1075
  userId: string;
1076
1076
  user: {
@@ -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: "member" | "admin" | "owner";
1088
1088
  status: better_auth_plugins0.InvitationStatus;
1089
1089
  inviterId: string;
1090
1090
  expiresAt: Date;
@@ -1162,25 +1162,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1162
1162
  ac: better_auth_plugins0.AccessControl;
1163
1163
  roles: {
1164
1164
  member: {
1165
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1166
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1165
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1166
+ actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1167
1167
  connector: "OR" | "AND";
1168
1168
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1169
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1169
+ statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
1170
1170
  };
1171
1171
  admin: {
1172
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1173
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1172
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1173
+ actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1174
1174
  connector: "OR" | "AND";
1175
1175
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1176
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1176
+ statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
1177
1177
  };
1178
1178
  owner: {
1179
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1180
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
1179
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key] | {
1180
+ actions: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>[key];
1181
1181
  connector: "OR" | "AND";
1182
1182
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1183
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
1183
+ statements: better_auth_plugins0.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins0.Statements>;
1184
1184
  };
1185
1185
  };
1186
1186
  creatorRole: "admin";
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
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" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
8
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
9
+ actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
10
10
  connector: "OR" | "AND";
11
11
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
12
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
12
+ statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
15
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
16
+ actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
17
17
  connector: "OR" | "AND";
18
18
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
19
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
19
+ statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
22
+ authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
23
+ actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
24
24
  connector: "OR" | "AND";
25
25
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
26
- statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
26
+ statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -65,8 +65,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
65
65
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
66
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
67
  type: z.ZodOptional<z.ZodEnum<{
68
- external: "external";
69
68
  internal: "internal";
69
+ external: "external";
70
70
  }>>;
71
71
  }, z.core.$strip>;
72
72
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -192,9 +192,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
192
192
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
193
193
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
194
194
  id: z.ZodString;
195
- name: z.ZodString;
196
195
  createdAt: z.ZodOptional<z.ZodString>;
197
196
  updatedAt: z.ZodOptional<z.ZodString>;
197
+ name: z.ZodString;
198
198
  description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
199
  models: z.ZodOptional<z.ZodObject<{
200
200
  base: z.ZodOptional<z.ZodObject<{
@@ -74,6 +74,7 @@ declare const SPAN_KEYS: {
74
74
  readonly DELEGATION_FROM_SUB_AGENT_ID: "delegation.from_sub_agent_id";
75
75
  readonly DELEGATION_TO_SUB_AGENT_ID: "delegation.to_sub_agent_id";
76
76
  readonly DELEGATION_ID: "delegation.id";
77
+ readonly DELEGATION_TYPE: "delegation.type";
77
78
  readonly TRANSFER_FROM_SUB_AGENT_ID: "transfer.from_sub_agent_id";
78
79
  readonly TRANSFER_TO_SUB_AGENT_ID: "transfer.to_sub_agent_id";
79
80
  readonly HTTP_URL: "http.url";
@@ -74,6 +74,7 @@ const SPAN_KEYS = {
74
74
  DELEGATION_FROM_SUB_AGENT_ID,
75
75
  DELEGATION_TO_SUB_AGENT_ID,
76
76
  DELEGATION_ID,
77
+ DELEGATION_TYPE: "delegation.type",
77
78
  TRANSFER_FROM_SUB_AGENT_ID,
78
79
  TRANSFER_TO_SUB_AGENT_ID,
79
80
  HTTP_URL: "http.url",
@@ -9,10 +9,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
11
  id: string;
12
- name: string;
13
12
  createdAt: string;
14
13
  updatedAt: string;
14
+ name: string;
15
+ tenantId: string;
16
+ projectId: string;
15
17
  description: string | null;
18
+ prompt: string | null;
16
19
  models: {
17
20
  base?: {
18
21
  model?: string | undefined;
@@ -30,10 +33,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
30
33
  stopWhen: {
31
34
  transferCountIs?: number | undefined;
32
35
  } | null;
33
- tenantId: string;
34
36
  defaultSubAgentId: string | null;
35
37
  contextConfigId: string | null;
36
- prompt: string | null;
37
38
  statusUpdates: {
38
39
  enabled?: boolean | undefined;
39
40
  numEvents?: number | undefined;
@@ -49,16 +50,18 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
49
50
  } | undefined;
50
51
  }[] | undefined;
51
52
  } | null;
52
- projectId: string;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
- name: string;
59
58
  createdAt: string;
60
59
  updatedAt: string;
60
+ name: string;
61
+ tenantId: string;
62
+ projectId: string;
61
63
  description: string | null;
64
+ prompt: string | null;
62
65
  models: {
63
66
  base?: {
64
67
  model?: string | undefined;
@@ -76,10 +79,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
76
79
  stopWhen: {
77
80
  transferCountIs?: number | undefined;
78
81
  } | null;
79
- tenantId: string;
80
82
  defaultSubAgentId: string | null;
81
83
  contextConfigId: string | null;
82
- prompt: string | null;
83
84
  statusUpdates: {
84
85
  enabled?: boolean | undefined;
85
86
  numEvents?: number | undefined;
@@ -95,13 +96,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
95
96
  } | undefined;
96
97
  }[] | undefined;
97
98
  } | null;
98
- projectId: string;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
- name: string;
102
101
  createdAt: string;
103
102
  updatedAt: string;
103
+ name: string;
104
+ tenantId: string;
105
+ projectId: string;
104
106
  description: string | null;
107
+ prompt: string | null;
108
+ agentId: string;
105
109
  models: {
106
110
  base?: {
107
111
  model?: string | undefined;
@@ -119,10 +123,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
119
123
  stopWhen: {
120
124
  stepCountIs?: number | undefined;
121
125
  } | null;
122
- tenantId: string;
123
- prompt: string | null;
124
- projectId: string;
125
- agentId: string;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -130,10 +130,13 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
132
  id: string;
133
- name: string;
134
133
  createdAt: string;
135
134
  updatedAt: string;
135
+ name: string;
136
+ tenantId: string;
137
+ projectId: string;
136
138
  description: string | null;
139
+ prompt: string | null;
137
140
  models: {
138
141
  base?: {
139
142
  model?: string | undefined;
@@ -151,10 +154,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
151
154
  stopWhen: {
152
155
  transferCountIs?: number | undefined;
153
156
  } | null;
154
- tenantId: string;
155
157
  defaultSubAgentId: string | null;
156
158
  contextConfigId: string | null;
157
- prompt: string | null;
158
159
  statusUpdates: {
159
160
  enabled?: boolean | undefined;
160
161
  numEvents?: number | undefined;
@@ -170,7 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
170
171
  } | undefined;
171
172
  }[] | undefined;
172
173
  } | null;
173
- projectId: string;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -246,10 +246,13 @@ declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient,
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
248
  id: string;
249
- name: string;
250
249
  createdAt: string;
251
250
  updatedAt: string;
251
+ name: string;
252
+ tenantId: string;
253
+ projectId: string;
252
254
  description: string | null;
255
+ prompt: string | null;
253
256
  models: {
254
257
  base?: {
255
258
  model?: string | undefined;
@@ -267,10 +270,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
267
270
  stopWhen: {
268
271
  transferCountIs?: number | undefined;
269
272
  } | null;
270
- tenantId: string;
271
273
  defaultSubAgentId: string | null;
272
274
  contextConfigId: string | null;
273
- prompt: string | null;
274
275
  statusUpdates: {
275
276
  enabled?: boolean | undefined;
276
277
  numEvents?: number | undefined;
@@ -286,7 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
286
287
  } | undefined;
287
288
  }[] | undefined;
288
289
  } | null;
289
- projectId: string;
290
290
  }>;
291
291
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
292
292
  scopes: AgentScopeConfig;
@@ -8,12 +8,12 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
8
8
  id: string;
9
9
  }) => Promise<{
10
10
  id: string;
11
- name: string;
12
11
  createdAt: string;
13
12
  updatedAt: string;
14
- description: string | null;
13
+ name: string;
15
14
  tenantId: string;
16
15
  projectId: string;
16
+ description: string | null;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -50,12 +50,12 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
- name: string;
54
53
  createdAt: string;
55
54
  updatedAt: string;
56
- description: string | null;
55
+ name: string;
57
56
  tenantId: string;
58
57
  projectId: string;
58
+ description: string | null;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -13,9 +13,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
13
13
  updatedAt: string;
14
14
  tenantId: string;
15
15
  projectId: string;
16
+ agentId: string;
16
17
  headersSchema: unknown;
17
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
18
- agentId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -25,9 +25,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
25
25
  updatedAt: string;
26
26
  tenantId: string;
27
27
  projectId: string;
28
+ agentId: string;
28
29
  headersSchema: unknown;
29
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
30
- agentId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -47,9 +47,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
47
47
  updatedAt: string;
48
48
  tenantId: string;
49
49
  projectId: string;
50
+ agentId: string;
50
51
  headersSchema: unknown;
51
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
52
- agentId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -87,9 +87,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
87
87
  updatedAt: string;
88
88
  tenantId: string;
89
89
  projectId: string;
90
+ agentId: string;
90
91
  headersSchema: unknown;
91
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
92
- agentId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
69
69
  tenantId: string;
70
70
  projectId: string;
71
71
  agentId: string;
72
- dataComponentId: string;
73
72
  subAgentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
111
111
  tenantId: string;
112
112
  projectId: string;
113
113
  agentId: string;
114
- dataComponentId: string;
115
114
  subAgentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -54,12 +54,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
56
  id: string;
57
- name: string;
58
57
  createdAt: string;
59
58
  updatedAt: string;
60
- description: string | null;
59
+ name: string;
61
60
  tenantId: string;
62
61
  projectId: string;
62
+ description: string | null;
63
63
  agentId: string;
64
64
  functionId: string;
65
65
  }>;
@@ -96,12 +96,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
98
  id: string;
99
- name: string;
100
99
  createdAt: string;
101
100
  updatedAt: string;
102
- description: string | null;
101
+ name: string;
103
102
  tenantId: string;
104
103
  projectId: string;
104
+ description: string | null;
105
105
  agentId: string;
106
106
  functionId: string;
107
107
  }>;
@@ -167,10 +167,10 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
167
167
  tenantId: string;
168
168
  projectId: string;
169
169
  agentId: string;
170
- subAgentId: string;
171
170
  toolPolicies: Record<string, {
172
171
  needsApproval?: boolean;
173
172
  }> | null;
173
+ subAgentId: string;
174
174
  functionToolId: string;
175
175
  }>;
176
176
  /**
@@ -232,10 +232,10 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
232
232
  tenantId: string;
233
233
  projectId: string;
234
234
  agentId: string;
235
- subAgentId: string;
236
235
  toolPolicies: Record<string, {
237
236
  needsApproval?: boolean;
238
237
  }> | null;
238
+ subAgentId: string;
239
239
  functionToolId: string;
240
240
  }>;
241
241
  //#endregion
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
8
8
  scopes: SubAgentScopeConfig;
9
9
  relationId: string;
10
10
  }) => Promise<{
11
+ headers: Record<string, string> | null;
11
12
  id: string;
12
13
  createdAt: string;
13
14
  updatedAt: string;
14
15
  tenantId: string;
15
16
  projectId: string;
16
17
  agentId: string;
17
- subAgentId: string;
18
- 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
+ headers: Record<string, string> | null;
46
47
  id: string;
47
48
  createdAt: string;
48
49
  updatedAt: string;
49
50
  tenantId: string;
50
51
  projectId: string;
51
52
  agentId: string;
52
- subAgentId: string;
53
- 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
+ headers: Record<string, string> | null;
59
60
  id: string;
60
61
  createdAt: string;
61
62
  updatedAt: string;
62
63
  tenantId: string;
63
64
  projectId: string;
64
65
  agentId: string;
65
- subAgentId: string;
66
- 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
+ headers: Record<string, string> | null;
182
183
  id: string;
183
184
  createdAt: string;
184
185
  updatedAt: string;
185
186
  tenantId: string;
186
187
  projectId: string;
187
188
  agentId: string;
188
- subAgentId: string;
189
- 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
+ headers: Record<string, string> | null;
199
200
  id: string;
200
201
  createdAt: string;
201
202
  updatedAt: string;
202
203
  tenantId: string;
203
204
  projectId: string;
204
205
  agentId: string;
205
- subAgentId: string;
206
- 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
+ headers: Record<string, string> | null;
220
221
  id: string;
221
222
  createdAt: string;
222
223
  updatedAt: string;
223
224
  tenantId: string;
224
225
  projectId: string;
225
226
  agentId: string;
226
- subAgentId: string;
227
- 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;
@@ -203,6 +203,7 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
203
203
  }> | null;
204
204
  };
205
205
  }) => Promise<{
206
+ headers: Record<string, string> | null;
206
207
  id: string;
207
208
  createdAt: string;
208
209
  updatedAt: string;
@@ -210,12 +211,11 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
210
211
  projectId: string;
211
212
  agentId: string;
212
213
  toolId: string;
213
- subAgentId: string;
214
- headers: Record<string, string> | null;
215
- selectedTools: string[] | null;
216
214
  toolPolicies: Record<string, {
217
215
  needsApproval?: boolean;
218
216
  }> | null;
217
+ subAgentId: string;
218
+ selectedTools: string[] | null;
219
219
  }>;
220
220
  declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
221
221
  scopes: AgentScopeConfig;
@@ -247,6 +247,7 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
247
247
  scopes: SubAgentScopeConfig;
248
248
  relationId: string;
249
249
  }) => Promise<{
250
+ headers: Record<string, string> | null;
250
251
  id: string;
251
252
  createdAt: string;
252
253
  updatedAt: string;
@@ -254,12 +255,11 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
254
255
  projectId: string;
255
256
  agentId: string;
256
257
  toolId: string;
257
- subAgentId: string;
258
- headers: Record<string, string> | null;
259
- selectedTools: string[] | null;
260
258
  toolPolicies: Record<string, {
261
259
  needsApproval?: boolean;
262
260
  }> | null;
261
+ subAgentId: string;
262
+ selectedTools: string[] | null;
263
263
  } | undefined>;
264
264
  declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
265
265
  scopes: SubAgentScopeConfig;