@inkeep/agents-core 0.0.0-dev-20260203033642 → 0.0.0-dev-20260203035246

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" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
856
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
855
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
856
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
859
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
860
860
  };
861
861
  admin: {
862
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
863
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
862
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
863
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
866
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
867
867
  };
868
868
  owner: {
869
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
870
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
869
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
870
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
873
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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: "owner" | "admin" | "member";
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: "owner" | "admin" | "member";
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: "owner" | "admin" | "member";
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: "owner" | "admin" | "member";
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" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1166
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1165
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1166
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1169
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1170
1170
  };
1171
1171
  admin: {
1172
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1173
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1172
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1173
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1176
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1177
1177
  };
1178
1178
  owner: {
1179
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
1180
- actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1179
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key] | {
1180
+ actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1183
+ statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
9
- actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
8
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
9
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
12
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
15
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
16
- actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
15
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
16
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
19
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
22
- authorize<K_1 extends "organization" | "project" | "member" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
23
- actions: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key];
22
+ authorize<K_1 extends "organization" | "member" | "invitation" | "ac" | "project" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>[key] | {
23
+ actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", 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" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
26
+ statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -7,6 +7,7 @@ import "./types/index.js";
7
7
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
8
8
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
9
9
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
10
+ import "./index.js";
10
11
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, ResourceIdSchema, SignatureSource, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
11
12
  import { z } from "@hono/zod-openapi";
12
13
 
@@ -65,8 +66,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
65
66
  canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
66
67
  canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
68
  type: z.ZodOptional<z.ZodEnum<{
68
- external: "external";
69
69
  internal: "internal";
70
+ external: "external";
70
71
  }>>;
71
72
  }, z.core.$strip>;
72
73
  declare const ToolApiInsertSchema: z.ZodObject<{
@@ -10,11 +10,13 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
10
10
  }) => Promise<{
11
11
  id: string;
12
12
  name: string;
13
- description: string | null;
14
13
  createdAt: string;
15
14
  updatedAt: string;
15
+ description: string | null;
16
16
  projectId: string;
17
17
  tenantId: string;
18
+ defaultSubAgentId: string | null;
19
+ contextConfigId: string | null;
18
20
  models: {
19
21
  base?: {
20
22
  model?: string | undefined;
@@ -29,12 +31,7 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
29
31
  providerOptions?: Record<string, any> | undefined;
30
32
  } | undefined;
31
33
  } | null;
32
- stopWhen: {
33
- transferCountIs?: number | undefined;
34
- } | null;
35
34
  prompt: string | null;
36
- defaultSubAgentId: string | null;
37
- contextConfigId: string | null;
38
35
  statusUpdates: {
39
36
  enabled?: boolean | undefined;
40
37
  numEvents?: number | undefined;
@@ -50,17 +47,22 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
50
47
  } | undefined;
51
48
  }[] | undefined;
52
49
  } | null;
50
+ stopWhen: {
51
+ transferCountIs?: number | undefined;
52
+ } | null;
53
53
  } | null>;
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
57
  id: string;
58
58
  name: string;
59
- description: string | null;
60
59
  createdAt: string;
61
60
  updatedAt: string;
61
+ description: string | null;
62
62
  projectId: string;
63
63
  tenantId: string;
64
+ defaultSubAgentId: string | null;
65
+ contextConfigId: string | null;
64
66
  models: {
65
67
  base?: {
66
68
  model?: string | undefined;
@@ -75,12 +77,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
75
77
  providerOptions?: Record<string, any> | undefined;
76
78
  } | undefined;
77
79
  } | null;
78
- stopWhen: {
79
- transferCountIs?: number | undefined;
80
- } | null;
81
80
  prompt: string | null;
82
- defaultSubAgentId: string | null;
83
- contextConfigId: string | null;
84
81
  statusUpdates: {
85
82
  enabled?: boolean | undefined;
86
83
  numEvents?: number | undefined;
@@ -96,12 +93,16 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
96
93
  } | undefined;
97
94
  }[] | undefined;
98
95
  } | null;
96
+ stopWhen: {
97
+ transferCountIs?: number | undefined;
98
+ } | null;
99
99
  defaultSubAgent: {
100
100
  id: string;
101
101
  name: string;
102
- description: string | null;
103
102
  createdAt: string;
104
103
  updatedAt: string;
104
+ description: string | null;
105
+ agentId: string;
105
106
  projectId: string;
106
107
  tenantId: string;
107
108
  models: {
@@ -118,11 +119,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
118
119
  providerOptions?: Record<string, any> | undefined;
119
120
  } | undefined;
120
121
  } | null;
122
+ prompt: string | null;
121
123
  stopWhen: {
122
124
  stepCountIs?: number | undefined;
123
125
  } | null;
124
- agentId: string;
125
- prompt: string | null;
126
126
  conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
@@ -131,11 +131,13 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
131
131
  }) => Promise<{
132
132
  id: string;
133
133
  name: string;
134
- description: string | null;
135
134
  createdAt: string;
136
135
  updatedAt: string;
136
+ description: string | null;
137
137
  projectId: string;
138
138
  tenantId: string;
139
+ defaultSubAgentId: string | null;
140
+ contextConfigId: string | null;
139
141
  models: {
140
142
  base?: {
141
143
  model?: string | undefined;
@@ -150,12 +152,7 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
150
152
  providerOptions?: Record<string, any> | undefined;
151
153
  } | undefined;
152
154
  } | null;
153
- stopWhen: {
154
- transferCountIs?: number | undefined;
155
- } | null;
156
155
  prompt: string | null;
157
- defaultSubAgentId: string | null;
158
- contextConfigId: string | null;
159
156
  statusUpdates: {
160
157
  enabled?: boolean | undefined;
161
158
  numEvents?: number | undefined;
@@ -171,6 +168,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
171
168
  } | undefined;
172
169
  }[] | undefined;
173
170
  } | null;
171
+ stopWhen: {
172
+ transferCountIs?: number | undefined;
173
+ } | null;
174
174
  }[]>;
175
175
  declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
176
176
  scopes: ProjectScopeConfig;
@@ -230,11 +230,13 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
231
  id: string;
232
232
  name: string;
233
- description: string | null;
234
233
  createdAt: string;
235
234
  updatedAt: string;
235
+ description: string | null;
236
236
  projectId: string;
237
237
  tenantId: string;
238
+ defaultSubAgentId: string | null;
239
+ contextConfigId: string | null;
238
240
  models: {
239
241
  base?: {
240
242
  model?: string | undefined;
@@ -249,12 +251,7 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
249
251
  providerOptions?: Record<string, any> | undefined;
250
252
  } | undefined;
251
253
  } | null;
252
- stopWhen: {
253
- transferCountIs?: number | undefined;
254
- } | null;
255
254
  prompt: string | null;
256
- defaultSubAgentId: string | null;
257
- contextConfigId: string | null;
258
255
  statusUpdates: {
259
256
  enabled?: boolean | undefined;
260
257
  numEvents?: number | undefined;
@@ -270,6 +267,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
267
  } | undefined;
271
268
  }[] | undefined;
272
269
  } | null;
270
+ stopWhen: {
271
+ transferCountIs?: number | undefined;
272
+ } | null;
273
273
  }>;
274
274
  declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
275
275
  scopes: AgentScopeConfig;
@@ -9,16 +9,16 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
9
9
  }) => Promise<{
10
10
  id: string;
11
11
  name: string;
12
+ createdAt: string;
13
+ updatedAt: string;
12
14
  description: string | null;
15
+ projectId: string;
16
+ tenantId: string;
13
17
  props: Record<string, unknown> | null;
14
18
  render: {
15
19
  component: string;
16
20
  mockData: Record<string, unknown>;
17
21
  } | null;
18
- createdAt: string;
19
- updatedAt: string;
20
- projectId: string;
21
- tenantId: string;
22
22
  } | undefined>;
23
23
  declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
24
24
  scopes: ProjectScopeConfig;
@@ -51,16 +51,16 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
52
  id: string;
53
53
  name: string;
54
+ createdAt: string;
55
+ updatedAt: string;
54
56
  description: string | null;
57
+ projectId: string;
58
+ tenantId: string;
55
59
  props: Record<string, unknown> | null;
56
60
  render: {
57
61
  component: string;
58
62
  mockData: Record<string, unknown>;
59
63
  } | null;
60
- createdAt: string;
61
- updatedAt: string;
62
- projectId: string;
63
- tenantId: string;
64
64
  }>;
65
65
  declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
66
66
  scopes: ProjectScopeConfig;
@@ -106,10 +106,10 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
106
106
  }) => Promise<{
107
107
  id: string;
108
108
  createdAt: string;
109
+ agentId: string;
109
110
  projectId: string;
110
111
  tenantId: string;
111
112
  subAgentId: string;
112
- agentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
115
115
  declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -149,10 +149,10 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
149
149
  }) => Promise<{
150
150
  id: string;
151
151
  createdAt: string;
152
+ agentId: string;
152
153
  projectId: string;
153
154
  tenantId: string;
154
155
  subAgentId: string;
155
- agentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
158
158
  /**
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
- projectId: string;
15
- tenantId: string;
16
- agentId: string;
17
14
  headersSchema: unknown;
18
15
  contextVariables: Record<string, ContextFetchDefinition> | null;
16
+ agentId: string;
17
+ projectId: string;
18
+ tenantId: string;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
23
23
  id: string;
24
24
  createdAt: string;
25
25
  updatedAt: string;
26
- projectId: string;
27
- tenantId: string;
28
- agentId: string;
29
26
  headersSchema: unknown;
30
27
  contextVariables: Record<string, ContextFetchDefinition> | null;
28
+ agentId: string;
29
+ projectId: string;
30
+ tenantId: string;
31
31
  }[]>;
32
32
  declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
33
33
  scopes: AgentScopeConfig;
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
45
45
  id: string;
46
46
  createdAt: string;
47
47
  updatedAt: string;
48
- projectId: string;
49
- tenantId: string;
50
- agentId: string;
51
48
  headersSchema: unknown;
52
49
  contextVariables: Record<string, ContextFetchDefinition> | null;
50
+ agentId: string;
51
+ projectId: string;
52
+ tenantId: string;
53
53
  }>;
54
54
  declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
85
85
  id: string;
86
86
  createdAt: string;
87
87
  updatedAt: string;
88
- projectId: string;
89
- tenantId: string;
90
- agentId: string;
91
88
  headersSchema: unknown;
92
89
  contextVariables: Record<string, ContextFetchDefinition> | null;
90
+ agentId: string;
91
+ projectId: string;
92
+ tenantId: string;
93
93
  }>;
94
94
  //#endregion
95
95
  export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
@@ -66,11 +66,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
66
66
  }) => Promise<{
67
67
  id: string;
68
68
  createdAt: string;
69
+ agentId: string;
69
70
  projectId: string;
70
71
  tenantId: string;
71
- dataComponentId: string;
72
72
  subAgentId: string;
73
- agentId: string;
73
+ dataComponentId: string;
74
74
  }>;
75
75
  /**
76
76
  * Remove association between data component and agent
@@ -108,11 +108,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
108
108
  }) => Promise<{
109
109
  id: string;
110
110
  createdAt: string;
111
+ agentId: string;
111
112
  projectId: string;
112
113
  tenantId: string;
113
- dataComponentId: string;
114
114
  subAgentId: string;
115
- agentId: string;
115
+ dataComponentId: string;
116
116
  } | null>;
117
117
  /**
118
118
  * Count data components for a tenant/project
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
55
55
  }) => Promise<{
56
56
  id: string;
57
57
  name: string;
58
- description: string | null;
59
58
  createdAt: string;
60
59
  updatedAt: string;
60
+ description: string | null;
61
+ agentId: string;
61
62
  projectId: string;
62
63
  tenantId: string;
63
- agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
97
97
  }) => Promise<{
98
98
  id: string;
99
99
  name: string;
100
- description: string | null;
101
100
  createdAt: string;
102
101
  updatedAt: string;
102
+ description: string | null;
103
+ agentId: string;
103
104
  projectId: string;
104
105
  tenantId: string;
105
- agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -164,14 +164,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
164
164
  id: string;
165
165
  createdAt: string;
166
166
  updatedAt: string;
167
+ agentId: string;
167
168
  projectId: string;
168
169
  tenantId: string;
169
- subAgentId: string;
170
- agentId: string;
170
+ functionToolId: string;
171
171
  toolPolicies: Record<string, {
172
172
  needsApproval?: boolean;
173
173
  }> | null;
174
- functionToolId: string;
174
+ subAgentId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -229,14 +229,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
229
229
  id: string;
230
230
  createdAt: string;
231
231
  updatedAt: string;
232
+ agentId: string;
232
233
  projectId: string;
233
234
  tenantId: string;
234
- subAgentId: string;
235
- agentId: string;
235
+ functionToolId: string;
236
236
  toolPolicies: Record<string, {
237
237
  needsApproval?: boolean;
238
238
  }> | null;
239
- functionToolId: string;
239
+ subAgentId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -11,11 +11,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
11
11
  id: string;
12
12
  createdAt: string;
13
13
  updatedAt: string;
14
+ headers: Record<string, string> | null;
15
+ agentId: string;
14
16
  projectId: string;
15
17
  tenantId: string;
16
18
  subAgentId: string;
17
- agentId: string;
18
- headers: Record<string, string> | null;
19
19
  externalAgentId: string;
20
20
  } | undefined>;
21
21
  declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
@@ -46,11 +46,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
46
46
  id: string;
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
+ headers: Record<string, string> | null;
50
+ agentId: string;
49
51
  projectId: string;
50
52
  tenantId: string;
51
53
  subAgentId: string;
52
- agentId: string;
53
- headers: Record<string, string> | null;
54
54
  externalAgentId: string;
55
55
  }[]>;
56
56
  declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -59,11 +59,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
59
59
  id: string;
60
60
  createdAt: string;
61
61
  updatedAt: string;
62
+ headers: Record<string, string> | null;
63
+ agentId: string;
62
64
  projectId: string;
63
65
  tenantId: string;
64
66
  subAgentId: string;
65
- agentId: string;
66
- headers: Record<string, string> | null;
67
67
  externalAgentId: string;
68
68
  }[]>;
69
69
  declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -182,11 +182,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
182
182
  id: string;
183
183
  createdAt: string;
184
184
  updatedAt: string;
185
+ headers: Record<string, string> | null;
186
+ agentId: string;
185
187
  projectId: string;
186
188
  tenantId: string;
187
189
  subAgentId: string;
188
- agentId: string;
189
- headers: Record<string, string> | null;
190
190
  externalAgentId: string;
191
191
  }>;
192
192
  /**
@@ -199,11 +199,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
199
199
  id: string;
200
200
  createdAt: string;
201
201
  updatedAt: string;
202
+ headers: Record<string, string> | null;
203
+ agentId: string;
202
204
  projectId: string;
203
205
  tenantId: string;
204
206
  subAgentId: string;
205
- agentId: string;
206
- headers: Record<string, string> | null;
207
207
  externalAgentId: string;
208
208
  } | undefined>;
209
209
  /**
@@ -220,11 +220,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
220
220
  id: string;
221
221
  createdAt: string;
222
222
  updatedAt: string;
223
+ headers: Record<string, string> | null;
224
+ agentId: string;
223
225
  projectId: string;
224
226
  tenantId: string;
225
227
  subAgentId: string;
226
- agentId: string;
227
- headers: Record<string, string> | null;
228
228
  externalAgentId: string;
229
229
  }>;
230
230
  declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {