@inkeep/agents-core 0.45.3 → 0.46.0

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.
@@ -1,9 +1,9 @@
1
1
  import { z } from "@hono/zod-openapi";
2
2
  import * as drizzle_orm_pg_core1242 from "drizzle-orm/pg-core";
3
- import * as drizzle_zod315 from "drizzle-zod";
3
+ import * as drizzle_zod319 from "drizzle-zod";
4
4
 
5
5
  //#region src/auth/auth-validation-schemas.d.ts
6
- declare const UserSelectSchema: drizzle_zod315.BuildSchema<"select", {
6
+ declare const UserSelectSchema: drizzle_zod319.BuildSchema<"select", {
7
7
  id: drizzle_orm_pg_core1242.PgColumn<{
8
8
  name: "id";
9
9
  tableName: "user";
@@ -124,7 +124,7 @@ declare const UserSelectSchema: drizzle_zod315.BuildSchema<"select", {
124
124
  generated: undefined;
125
125
  }, {}, {}>;
126
126
  }, undefined, undefined>;
127
- declare const UserInsertSchema: drizzle_zod315.BuildSchema<"insert", {
127
+ declare const UserInsertSchema: drizzle_zod319.BuildSchema<"insert", {
128
128
  id: drizzle_orm_pg_core1242.PgColumn<{
129
129
  name: "id";
130
130
  tableName: "user";
@@ -245,7 +245,7 @@ declare const UserInsertSchema: drizzle_zod315.BuildSchema<"insert", {
245
245
  generated: undefined;
246
246
  }, {}, {}>;
247
247
  }, undefined, undefined>;
248
- declare const SessionSelectSchema: drizzle_zod315.BuildSchema<"select", {
248
+ declare const SessionSelectSchema: drizzle_zod319.BuildSchema<"select", {
249
249
  id: drizzle_orm_pg_core1242.PgColumn<{
250
250
  name: "id";
251
251
  tableName: "session";
@@ -400,7 +400,7 @@ declare const SessionSelectSchema: drizzle_zod315.BuildSchema<"select", {
400
400
  generated: undefined;
401
401
  }, {}, {}>;
402
402
  }, undefined, undefined>;
403
- declare const SessionInsertSchema: drizzle_zod315.BuildSchema<"insert", {
403
+ declare const SessionInsertSchema: drizzle_zod319.BuildSchema<"insert", {
404
404
  id: drizzle_orm_pg_core1242.PgColumn<{
405
405
  name: "id";
406
406
  tableName: "session";
@@ -555,7 +555,7 @@ declare const SessionInsertSchema: drizzle_zod315.BuildSchema<"insert", {
555
555
  generated: undefined;
556
556
  }, {}, {}>;
557
557
  }, undefined, undefined>;
558
- declare const AccountSelectSchema: drizzle_zod315.BuildSchema<"select", {
558
+ declare const AccountSelectSchema: drizzle_zod319.BuildSchema<"select", {
559
559
  id: drizzle_orm_pg_core1242.PgColumn<{
560
560
  name: "id";
561
561
  tableName: "account";
@@ -778,7 +778,7 @@ declare const AccountSelectSchema: drizzle_zod315.BuildSchema<"select", {
778
778
  generated: undefined;
779
779
  }, {}, {}>;
780
780
  }, undefined, undefined>;
781
- declare const AccountInsertSchema: drizzle_zod315.BuildSchema<"insert", {
781
+ declare const AccountInsertSchema: drizzle_zod319.BuildSchema<"insert", {
782
782
  id: drizzle_orm_pg_core1242.PgColumn<{
783
783
  name: "id";
784
784
  tableName: "account";
@@ -1001,7 +1001,7 @@ declare const AccountInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1001
1001
  generated: undefined;
1002
1002
  }, {}, {}>;
1003
1003
  }, undefined, undefined>;
1004
- declare const OrganizationSelectSchema: drizzle_zod315.BuildSchema<"select", {
1004
+ declare const OrganizationSelectSchema: drizzle_zod319.BuildSchema<"select", {
1005
1005
  id: drizzle_orm_pg_core1242.PgColumn<{
1006
1006
  name: "id";
1007
1007
  tableName: "organization";
@@ -1105,7 +1105,7 @@ declare const OrganizationSelectSchema: drizzle_zod315.BuildSchema<"select", {
1105
1105
  generated: undefined;
1106
1106
  }, {}, {}>;
1107
1107
  }, undefined, undefined>;
1108
- declare const OrganizationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1108
+ declare const OrganizationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1109
1109
  id: drizzle_orm_pg_core1242.PgColumn<{
1110
1110
  name: "id";
1111
1111
  tableName: "organization";
@@ -1209,7 +1209,7 @@ declare const OrganizationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1209
1209
  generated: undefined;
1210
1210
  }, {}, {}>;
1211
1211
  }, undefined, undefined>;
1212
- declare const MemberSelectSchema: drizzle_zod315.BuildSchema<"select", {
1212
+ declare const MemberSelectSchema: drizzle_zod319.BuildSchema<"select", {
1213
1213
  id: drizzle_orm_pg_core1242.PgColumn<{
1214
1214
  name: "id";
1215
1215
  tableName: "member";
@@ -1296,7 +1296,7 @@ declare const MemberSelectSchema: drizzle_zod315.BuildSchema<"select", {
1296
1296
  generated: undefined;
1297
1297
  }, {}, {}>;
1298
1298
  }, undefined, undefined>;
1299
- declare const MemberInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1299
+ declare const MemberInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1300
1300
  id: drizzle_orm_pg_core1242.PgColumn<{
1301
1301
  name: "id";
1302
1302
  tableName: "member";
@@ -1383,7 +1383,7 @@ declare const MemberInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1383
1383
  generated: undefined;
1384
1384
  }, {}, {}>;
1385
1385
  }, undefined, undefined>;
1386
- declare const InvitationSelectSchema: drizzle_zod315.BuildSchema<"select", {
1386
+ declare const InvitationSelectSchema: drizzle_zod319.BuildSchema<"select", {
1387
1387
  id: drizzle_orm_pg_core1242.PgColumn<{
1388
1388
  name: "id";
1389
1389
  tableName: "invitation";
@@ -1521,7 +1521,7 @@ declare const InvitationSelectSchema: drizzle_zod315.BuildSchema<"select", {
1521
1521
  generated: undefined;
1522
1522
  }, {}, {}>;
1523
1523
  }, undefined, undefined>;
1524
- declare const InvitationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1524
+ declare const InvitationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1525
1525
  id: drizzle_orm_pg_core1242.PgColumn<{
1526
1526
  name: "id";
1527
1527
  tableName: "invitation";
@@ -1659,7 +1659,7 @@ declare const InvitationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1659
1659
  generated: undefined;
1660
1660
  }, {}, {}>;
1661
1661
  }, undefined, undefined>;
1662
- declare const DeviceCodeSelectSchema: drizzle_zod315.BuildSchema<"select", {
1662
+ declare const DeviceCodeSelectSchema: drizzle_zod319.BuildSchema<"select", {
1663
1663
  id: drizzle_orm_pg_core1242.PgColumn<{
1664
1664
  name: "id";
1665
1665
  tableName: "device_code";
@@ -1831,7 +1831,7 @@ declare const DeviceCodeSelectSchema: drizzle_zod315.BuildSchema<"select", {
1831
1831
  generated: undefined;
1832
1832
  }, {}, {}>;
1833
1833
  }, undefined, undefined>;
1834
- declare const DeviceCodeInsertSchema: drizzle_zod315.BuildSchema<"insert", {
1834
+ declare const DeviceCodeInsertSchema: drizzle_zod319.BuildSchema<"insert", {
1835
1835
  id: drizzle_orm_pg_core1242.PgColumn<{
1836
1836
  name: "id";
1837
1837
  tableName: "device_code";
@@ -2003,7 +2003,7 @@ declare const DeviceCodeInsertSchema: drizzle_zod315.BuildSchema<"insert", {
2003
2003
  generated: undefined;
2004
2004
  }, {}, {}>;
2005
2005
  }, undefined, undefined>;
2006
- declare const VerificationSelectSchema: drizzle_zod315.BuildSchema<"select", {
2006
+ declare const VerificationSelectSchema: drizzle_zod319.BuildSchema<"select", {
2007
2007
  id: drizzle_orm_pg_core1242.PgColumn<{
2008
2008
  name: "id";
2009
2009
  tableName: "verification";
@@ -2107,7 +2107,7 @@ declare const VerificationSelectSchema: drizzle_zod315.BuildSchema<"select", {
2107
2107
  generated: undefined;
2108
2108
  }, {}, {}>;
2109
2109
  }, undefined, undefined>;
2110
- declare const VerificationInsertSchema: drizzle_zod315.BuildSchema<"insert", {
2110
+ declare const VerificationInsertSchema: drizzle_zod319.BuildSchema<"insert", {
2111
2111
  id: drizzle_orm_pg_core1242.PgColumn<{
2112
2112
  name: "id";
2113
2113
  tableName: "verification";
@@ -1063,7 +1063,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1063
1063
  id: string;
1064
1064
  organizationId: string;
1065
1065
  email: string;
1066
- role: "member" | "owner" | "admin";
1066
+ role: "member" | "admin" | "owner";
1067
1067
  status: better_auth_plugins0.InvitationStatus;
1068
1068
  inviterId: string;
1069
1069
  expiresAt: Date;
@@ -1072,7 +1072,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1072
1072
  Member: {
1073
1073
  id: string;
1074
1074
  organizationId: string;
1075
- role: "member" | "owner" | "admin";
1075
+ role: "member" | "admin" | "owner";
1076
1076
  createdAt: Date;
1077
1077
  userId: string;
1078
1078
  user: {
@@ -1088,7 +1088,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1088
1088
  members: {
1089
1089
  id: string;
1090
1090
  organizationId: string;
1091
- role: "member" | "owner" | "admin";
1091
+ role: "member" | "admin" | "owner";
1092
1092
  createdAt: Date;
1093
1093
  userId: string;
1094
1094
  user: {
@@ -1102,7 +1102,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1102
1102
  id: string;
1103
1103
  organizationId: string;
1104
1104
  email: string;
1105
- role: "member" | "owner" | "admin";
1105
+ role: "member" | "admin" | "owner";
1106
1106
  status: better_auth_plugins0.InvitationStatus;
1107
1107
  inviterId: string;
1108
1108
  expiresAt: Date;
@@ -47,6 +47,7 @@ async function canUseProject(params) {
47
47
  * Use this when orgRole is not available (e.g., run-api from JWT).
48
48
  */
49
49
  async function canUseProjectStrict(params) {
50
+ if (params.userId === "system" || params.userId.startsWith("apikey:")) return true;
50
51
  return checkPermission({
51
52
  resourceType: SpiceDbResourceTypes.PROJECT,
52
53
  resourceId: params.projectId,
@@ -79,6 +79,8 @@ declare const QUERY_EXPRESSIONS: {
79
79
  readonly LAST_ACTIVITY: "lastActivity";
80
80
  readonly CONVERSATION_METADATA: "conversationMetadata";
81
81
  readonly FILTERED_CONVERSATIONS: "filteredConversations";
82
+ readonly PAGE_CONVERSATIONS: "pageConversations";
83
+ readonly TOTAL_CONVERSATIONS: "totalConversations";
82
84
  readonly TOOLS: "tools";
83
85
  readonly TRANSFERS: "transfers";
84
86
  readonly DELEGATIONS: "delegations";
@@ -79,6 +79,8 @@ const QUERY_EXPRESSIONS = {
79
79
  LAST_ACTIVITY: "lastActivity",
80
80
  CONVERSATION_METADATA: "conversationMetadata",
81
81
  FILTERED_CONVERSATIONS: "filteredConversations",
82
+ PAGE_CONVERSATIONS: "pageConversations",
83
+ TOTAL_CONVERSATIONS: "totalConversations",
82
84
  TOOLS: "tools",
83
85
  TRANSFERS: "transfers",
84
86
  DELEGATIONS: "delegations",
@@ -8,17 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
12
14
  name: string;
13
15
  description: string | null;
16
+ prompt: string | null;
14
17
  createdAt: string;
15
18
  updatedAt: string;
16
- projectId: string;
17
- tenantId: string;
18
- stopWhen: {
19
- transferCountIs?: number | undefined;
20
- } | null;
21
- prompt: string | null;
22
19
  models: {
23
20
  base?: {
24
21
  model?: string | undefined;
@@ -33,6 +30,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
33
30
  providerOptions?: Record<string, any> | undefined;
34
31
  } | undefined;
35
32
  } | null;
33
+ stopWhen: {
34
+ transferCountIs?: number | undefined;
35
+ } | null;
36
36
  defaultSubAgentId: string | null;
37
37
  contextConfigId: string | null;
38
38
  statusUpdates: {
@@ -54,17 +54,14 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
+ tenantId: string;
58
+ projectId: string;
57
59
  id: string;
58
60
  name: string;
59
61
  description: string | null;
62
+ prompt: string | null;
60
63
  createdAt: string;
61
64
  updatedAt: string;
62
- projectId: string;
63
- tenantId: string;
64
- stopWhen: {
65
- transferCountIs?: number | undefined;
66
- } | null;
67
- prompt: string | null;
68
65
  models: {
69
66
  base?: {
70
67
  model?: string | undefined;
@@ -79,6 +76,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
79
76
  providerOptions?: Record<string, any> | undefined;
80
77
  } | undefined;
81
78
  } | null;
79
+ stopWhen: {
80
+ transferCountIs?: number | undefined;
81
+ } | null;
82
82
  defaultSubAgentId: string | null;
83
83
  contextConfigId: string | null;
84
84
  statusUpdates: {
@@ -97,19 +97,15 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
+ tenantId: string;
101
+ projectId: string;
100
102
  id: string;
101
103
  name: string;
102
104
  description: string | null;
105
+ prompt: string | null;
106
+ agentId: string;
103
107
  createdAt: string;
104
108
  updatedAt: string;
105
- projectId: string;
106
- tenantId: string;
107
- agentId: string;
108
- stopWhen: {
109
- stepCountIs?: number | undefined;
110
- } | null;
111
- prompt: string | null;
112
- conversationHistoryConfig: ConversationHistoryConfig | null;
113
109
  models: {
114
110
  base?: {
115
111
  model?: string | undefined;
@@ -124,22 +120,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
124
120
  providerOptions?: Record<string, any> | undefined;
125
121
  } | undefined;
126
122
  } | null;
123
+ stopWhen: {
124
+ stepCountIs?: number | undefined;
125
+ } | null;
126
+ conversationHistoryConfig: ConversationHistoryConfig | null;
127
127
  } | null;
128
128
  } | null>;
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
+ tenantId: string;
133
+ projectId: string;
132
134
  id: string;
133
135
  name: string;
134
136
  description: string | null;
137
+ prompt: string | null;
135
138
  createdAt: string;
136
139
  updatedAt: string;
137
- projectId: string;
138
- tenantId: string;
139
- stopWhen: {
140
- transferCountIs?: number | undefined;
141
- } | null;
142
- prompt: string | null;
143
140
  models: {
144
141
  base?: {
145
142
  model?: string | undefined;
@@ -154,6 +151,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
154
151
  providerOptions?: Record<string, any> | undefined;
155
152
  } | undefined;
156
153
  } | null;
154
+ stopWhen: {
155
+ transferCountIs?: number | undefined;
156
+ } | null;
157
157
  defaultSubAgentId: string | null;
158
158
  contextConfigId: string | null;
159
159
  statusUpdates: {
@@ -245,17 +245,14 @@ declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient,
245
245
  projectIds: string[];
246
246
  }): Promise<AvailableAgentInfo[]>;
247
247
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
248
+ tenantId: string;
249
+ projectId: string;
248
250
  id: string;
249
251
  name: string;
250
252
  description: string | null;
253
+ prompt: string | null;
251
254
  createdAt: string;
252
255
  updatedAt: string;
253
- projectId: string;
254
- tenantId: string;
255
- stopWhen: {
256
- transferCountIs?: number | undefined;
257
- } | null;
258
- prompt: string | null;
259
256
  models: {
260
257
  base?: {
261
258
  model?: string | undefined;
@@ -270,6 +267,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
270
267
  providerOptions?: Record<string, any> | undefined;
271
268
  } | undefined;
272
269
  } | null;
270
+ stopWhen: {
271
+ transferCountIs?: number | undefined;
272
+ } | null;
273
273
  defaultSubAgentId: string | null;
274
274
  contextConfigId: string | null;
275
275
  statusUpdates: {
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
+ tenantId: string;
11
+ projectId: string;
10
12
  id: string;
11
13
  name: string;
12
14
  description: string | null;
13
15
  createdAt: string;
14
16
  updatedAt: string;
15
- projectId: string;
16
- tenantId: string;
17
17
  props: Record<string, unknown> | null;
18
18
  render: {
19
19
  component: string;
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
49
49
  };
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
+ tenantId: string;
53
+ projectId: string;
52
54
  id: string;
53
55
  name: string;
54
56
  description: string | null;
55
57
  createdAt: string;
56
58
  updatedAt: string;
57
- projectId: string;
58
- tenantId: string;
59
59
  props: Record<string, unknown> | null;
60
60
  render: {
61
61
  component: string;
@@ -104,11 +104,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
104
104
  scopes: SubAgentScopeConfig;
105
105
  artifactComponentId: string;
106
106
  }) => Promise<{
107
- id: string;
108
- createdAt: string;
109
- projectId: string;
110
107
  tenantId: string;
108
+ projectId: string;
109
+ id: string;
111
110
  agentId: string;
111
+ createdAt: string;
112
112
  subAgentId: string;
113
113
  artifactComponentId: string;
114
114
  }>;
@@ -147,11 +147,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
147
147
  scopes: SubAgentScopeConfig;
148
148
  artifactComponentId: string;
149
149
  }) => Promise<{
150
- id: string;
151
- createdAt: string;
152
- projectId: string;
153
150
  tenantId: string;
151
+ projectId: string;
152
+ id: string;
154
153
  agentId: string;
154
+ createdAt: string;
155
155
  subAgentId: string;
156
156
  artifactComponentId: string;
157
157
  } | null>;
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
8
8
  scopes: AgentScopeConfig;
9
9
  id: string;
10
10
  }) => Promise<{
11
+ tenantId: string;
12
+ projectId: string;
11
13
  id: string;
14
+ agentId: string;
12
15
  createdAt: string;
13
16
  updatedAt: string;
14
- projectId: string;
15
- tenantId: string;
16
- agentId: string;
17
17
  headersSchema: unknown;
18
18
  contextVariables: Record<string, ContextFetchDefinition> | null;
19
19
  } | undefined>;
20
20
  declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
21
21
  scopes: AgentScopeConfig;
22
22
  }) => Promise<{
23
+ tenantId: string;
24
+ projectId: string;
23
25
  id: string;
26
+ agentId: string;
24
27
  createdAt: string;
25
28
  updatedAt: string;
26
- projectId: string;
27
- tenantId: string;
28
- agentId: string;
29
29
  headersSchema: unknown;
30
30
  contextVariables: Record<string, ContextFetchDefinition> | null;
31
31
  }[]>;
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
42
42
  };
43
43
  }>;
44
44
  declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
45
+ tenantId: string;
46
+ projectId: string;
45
47
  id: string;
48
+ agentId: string;
46
49
  createdAt: string;
47
50
  updatedAt: string;
48
- projectId: string;
49
- tenantId: string;
50
- agentId: string;
51
51
  headersSchema: unknown;
52
52
  contextVariables: Record<string, ContextFetchDefinition> | null;
53
53
  }>;
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: AgentsManageDatabaseClient) => (params:
82
82
  declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params: {
83
83
  data: ContextConfigInsert;
84
84
  }) => Promise<{
85
+ tenantId: string;
86
+ projectId: string;
85
87
  id: string;
88
+ agentId: string;
86
89
  createdAt: string;
87
90
  updatedAt: string;
88
- projectId: string;
89
- tenantId: string;
90
- agentId: string;
91
91
  headersSchema: unknown;
92
92
  contextVariables: Record<string, ContextFetchDefinition> | null;
93
93
  }>;
@@ -64,11 +64,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
64
64
  scopes: SubAgentScopeConfig;
65
65
  dataComponentId: string;
66
66
  }) => Promise<{
67
- id: string;
68
- createdAt: string;
69
- projectId: string;
70
67
  tenantId: string;
68
+ projectId: string;
69
+ id: string;
71
70
  agentId: string;
71
+ createdAt: string;
72
72
  subAgentId: string;
73
73
  dataComponentId: string;
74
74
  }>;
@@ -106,11 +106,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
106
106
  scopes: SubAgentScopeConfig;
107
107
  dataComponentId: string;
108
108
  }) => Promise<{
109
- id: string;
110
- createdAt: string;
111
- projectId: string;
112
109
  tenantId: string;
110
+ projectId: string;
111
+ id: string;
113
112
  agentId: string;
113
+ createdAt: string;
114
114
  subAgentId: string;
115
115
  dataComponentId: string;
116
116
  } | null>;
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
+ tenantId: string;
57
+ projectId: string;
56
58
  id: string;
57
59
  name: string;
58
60
  description: string | null;
61
+ agentId: string;
59
62
  createdAt: string;
60
63
  updatedAt: string;
61
- projectId: string;
62
- tenantId: string;
63
- agentId: string;
64
64
  functionId: string;
65
65
  }>;
66
66
  /**
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
+ tenantId: string;
99
+ projectId: string;
98
100
  id: string;
99
101
  name: string;
100
102
  description: string | null;
103
+ agentId: string;
101
104
  createdAt: string;
102
105
  updatedAt: string;
103
- projectId: string;
104
- tenantId: string;
105
- agentId: string;
106
106
  functionId: string;
107
107
  }>;
108
108
  declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
@@ -161,17 +161,17 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
161
161
  needsApproval?: boolean;
162
162
  }> | null;
163
163
  }) => Promise<{
164
+ tenantId: string;
165
+ projectId: string;
164
166
  id: string;
167
+ agentId: string;
165
168
  createdAt: string;
166
169
  updatedAt: string;
167
- projectId: string;
168
- tenantId: string;
169
- agentId: string;
170
- subAgentId: string;
171
- functionToolId: string;
172
170
  toolPolicies: Record<string, {
173
171
  needsApproval?: boolean;
174
172
  }> | null;
173
+ subAgentId: string;
174
+ functionToolId: string;
175
175
  }>;
176
176
  /**
177
177
  * Update an agent-function tool relation
@@ -226,17 +226,17 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
226
226
  needsApproval?: boolean;
227
227
  }> | null;
228
228
  }) => Promise<{
229
+ tenantId: string;
230
+ projectId: string;
229
231
  id: string;
232
+ agentId: string;
230
233
  createdAt: string;
231
234
  updatedAt: string;
232
- projectId: string;
233
- tenantId: string;
234
- agentId: string;
235
- subAgentId: string;
236
- functionToolId: string;
237
235
  toolPolicies: Record<string, {
238
236
  needsApproval?: boolean;
239
237
  }> | null;
238
+ subAgentId: string;
239
+ functionToolId: string;
240
240
  }>;
241
241
  //#endregion
242
242
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };