@inkeep/agents-core 0.0.0-dev-20260121155444 → 0.0.0-dev-20260121155706

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" | "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];
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];
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" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
859
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
860
860
  };
861
861
  admin: {
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];
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];
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" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
866
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
867
867
  };
868
868
  owner: {
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];
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];
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" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
873
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
874
874
  };
875
875
  };
876
876
  membershipLimit: number;
@@ -1044,7 +1044,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1044
1044
  id: string;
1045
1045
  organizationId: string;
1046
1046
  email: string;
1047
- role: "member" | "admin" | "owner";
1047
+ role: "owner" | "admin" | "member";
1048
1048
  status: better_auth_plugins0.InvitationStatus;
1049
1049
  inviterId: string;
1050
1050
  expiresAt: Date;
@@ -1053,7 +1053,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1053
1053
  Member: {
1054
1054
  id: string;
1055
1055
  organizationId: string;
1056
- role: "member" | "admin" | "owner";
1056
+ role: "owner" | "admin" | "member";
1057
1057
  createdAt: Date;
1058
1058
  userId: string;
1059
1059
  user: {
@@ -1069,7 +1069,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1069
1069
  members: {
1070
1070
  id: string;
1071
1071
  organizationId: string;
1072
- role: "member" | "admin" | "owner";
1072
+ role: "owner" | "admin" | "member";
1073
1073
  createdAt: Date;
1074
1074
  userId: string;
1075
1075
  user: {
@@ -1083,7 +1083,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1083
1083
  id: string;
1084
1084
  organizationId: string;
1085
1085
  email: string;
1086
- role: "member" | "admin" | "owner";
1086
+ role: "owner" | "admin" | "member";
1087
1087
  status: better_auth_plugins0.InvitationStatus;
1088
1088
  inviterId: string;
1089
1089
  expiresAt: Date;
@@ -1161,25 +1161,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
1161
1161
  ac: better_auth_plugins0.AccessControl;
1162
1162
  roles: {
1163
1163
  member: {
1164
- 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] | {
1165
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1164
+ 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] | {
1165
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1166
1166
  connector: "OR" | "AND";
1167
1167
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1168
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1168
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1169
1169
  };
1170
1170
  admin: {
1171
- 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] | {
1172
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1171
+ 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] | {
1172
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1173
1173
  connector: "OR" | "AND";
1174
1174
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1175
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1175
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1176
1176
  };
1177
1177
  owner: {
1178
- 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] | {
1179
- actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>[key];
1178
+ 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] | {
1179
+ actions: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
1180
1180
  connector: "OR" | "AND";
1181
1181
  } | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
1182
- statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "ac" | "project" | "team", better_auth_plugins0.Statements>;
1182
+ statements: better_auth_plugins0.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
1183
1183
  };
1184
1184
  };
1185
1185
  membershipLimit: number;
@@ -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" | "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];
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];
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" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
12
+ statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
13
13
  };
14
14
  declare const adminRole: {
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];
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];
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" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
19
+ statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
20
20
  };
21
21
  declare const ownerRole: {
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];
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];
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" | "ac" | "project" | "team", better_auth_plugins69.Statements>;
26
+ statements: better_auth_plugins69.Subset<"organization" | "project" | "member" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
27
27
  };
28
28
  //#endregion
29
29
  export { ac, adminRole, memberRole, organizationClient, ownerRole };
@@ -6,7 +6,6 @@ import "./types/index.js";
6
6
  import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
7
7
  import { detectAuthenticationRequired } from "./utils/auth-detection.js";
8
8
  import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
9
- import "./index.js";
10
9
  import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse } from "./validation/schemas.js";
11
10
  import { z } from "@hono/zod-openapi";
12
11
 
@@ -142,9 +141,9 @@ declare const DataComponentApiInsertSchema: z.ZodObject<{
142
141
  }, z.core.$strip>>>;
143
142
  }, z.core.$strip>;
144
143
  declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
145
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
- name: z.ZodString;
147
144
  id: z.ZodString;
145
+ name: z.ZodString;
146
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
148
147
  props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
149
148
  render: z.ZodOptional<z.ZodNullable<z.ZodType<{
150
149
  component: string;
@@ -191,9 +190,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
191
190
  description: z.ZodOptional<z.ZodString>;
192
191
  defaultSubAgentId: z.ZodOptional<z.ZodString>;
193
192
  subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
194
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
- name: z.ZodString;
196
193
  id: z.ZodString;
194
+ name: z.ZodString;
195
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
197
196
  createdAt: z.ZodOptional<z.ZodString>;
198
197
  updatedAt: z.ZodOptional<z.ZodString>;
199
198
  models: z.ZodOptional<z.ZodObject<{
@@ -8,11 +8,11 @@ import { PgTable } from "drizzle-orm/pg-core";
8
8
  declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
9
9
  scopes: AgentScopeConfig;
10
10
  }) => Promise<{
11
- description: string | null;
12
- name: string;
13
11
  tenantId: string;
14
12
  projectId: string;
15
13
  id: string;
14
+ name: string;
15
+ description: string | null;
16
16
  prompt: string | null;
17
17
  createdAt: string;
18
18
  updatedAt: string;
@@ -54,11 +54,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
54
54
  declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
55
55
  scopes: AgentScopeConfig;
56
56
  }) => Promise<{
57
- description: string | null;
58
- name: string;
59
57
  tenantId: string;
60
58
  projectId: string;
61
59
  id: string;
60
+ name: string;
61
+ description: string | null;
62
62
  prompt: string | null;
63
63
  createdAt: string;
64
64
  updatedAt: string;
@@ -97,11 +97,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
97
97
  }[] | undefined;
98
98
  } | null;
99
99
  defaultSubAgent: {
100
- description: string | null;
101
- name: string;
102
100
  tenantId: string;
103
101
  projectId: string;
104
102
  id: string;
103
+ name: string;
104
+ description: string | null;
105
105
  prompt: string | null;
106
106
  agentId: string;
107
107
  createdAt: string;
@@ -129,11 +129,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
129
129
  declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
130
130
  scopes: ProjectScopeConfig;
131
131
  }) => Promise<{
132
- description: string | null;
133
- name: string;
134
132
  tenantId: string;
135
133
  projectId: string;
136
134
  id: string;
135
+ name: string;
136
+ description: string | null;
137
137
  prompt: string | null;
138
138
  createdAt: string;
139
139
  updatedAt: string;
@@ -228,11 +228,11 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
228
228
  };
229
229
  }>;
230
230
  declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
231
- description: string | null;
232
- name: string;
233
231
  tenantId: string;
234
232
  projectId: string;
235
233
  id: string;
234
+ name: string;
235
+ description: string | null;
236
236
  prompt: string | null;
237
237
  createdAt: string;
238
238
  updatedAt: string;
@@ -7,11 +7,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- description: string | null;
11
- name: string;
12
10
  tenantId: string;
13
11
  projectId: string;
14
12
  id: string;
13
+ name: string;
14
+ description: string | null;
15
15
  createdAt: string;
16
16
  updatedAt: string;
17
17
  props: Record<string, unknown> | null;
@@ -49,11 +49,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
49
49
  };
50
50
  }>;
51
51
  declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
52
- description: string | null;
53
- name: string;
54
52
  tenantId: string;
55
53
  projectId: string;
56
54
  id: string;
55
+ name: string;
56
+ description: string | null;
57
57
  createdAt: string;
58
58
  updatedAt: string;
59
59
  props: Record<string, unknown> | null;
@@ -53,11 +53,11 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
53
53
  data: FunctionToolApiInsert;
54
54
  scopes: AgentScopeConfig;
55
55
  }) => Promise<{
56
- description: string | null;
57
- name: string;
58
56
  tenantId: string;
59
57
  projectId: string;
60
58
  id: string;
59
+ name: string;
60
+ description: string | null;
61
61
  agentId: string;
62
62
  createdAt: string;
63
63
  updatedAt: string;
@@ -95,11 +95,11 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
95
95
  data: FunctionToolApiInsert;
96
96
  scopes: AgentScopeConfig;
97
97
  }) => Promise<{
98
- description: string | null;
99
- name: string;
100
98
  tenantId: string;
101
99
  projectId: string;
102
100
  id: string;
101
+ name: string;
102
+ description: string | null;
103
103
  agentId: string;
104
104
  createdAt: string;
105
105
  updatedAt: string;
@@ -156,8 +156,8 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
156
156
  agentId: string;
157
157
  createdAt: string;
158
158
  updatedAt: string;
159
- subAgentId: string;
160
159
  functionToolId: string;
160
+ subAgentId: string;
161
161
  }>;
162
162
  /**
163
163
  * Update an agent-function tool relation
@@ -212,8 +212,8 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
212
212
  agentId: string;
213
213
  createdAt: string;
214
214
  updatedAt: string;
215
- subAgentId: string;
216
215
  functionToolId: string;
216
+ subAgentId: string;
217
217
  }>;
218
218
  //#endregion
219
219
  export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
@@ -8,11 +8,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
8
8
  scopes: AgentScopeConfig;
9
9
  subAgentId: string;
10
10
  }) => Promise<{
11
- description: string | null;
12
- name: string;
13
11
  tenantId: string;
14
12
  projectId: string;
15
13
  id: string;
14
+ name: string;
15
+ description: string | null;
16
16
  prompt: string | null;
17
17
  agentId: string;
18
18
  createdAt: string;
@@ -39,11 +39,11 @@ declare const getSubAgentById: (db: AgentsManageDatabaseClient) => (params: {
39
39
  declare const listSubAgents: (db: AgentsManageDatabaseClient) => (params: {
40
40
  scopes: AgentScopeConfig;
41
41
  }) => Promise<{
42
- description: string | null;
43
- name: string;
44
42
  tenantId: string;
45
43
  projectId: string;
46
44
  id: string;
45
+ name: string;
46
+ description: string | null;
47
47
  prompt: string | null;
48
48
  agentId: string;
49
49
  createdAt: string;
@@ -108,11 +108,11 @@ declare const listSubAgentsPaginated: (db: AgentsManageDatabaseClient) => (param
108
108
  };
109
109
  }>;
110
110
  declare const createSubAgent: (db: AgentsManageDatabaseClient) => (params: SubAgentInsert) => Promise<{
111
- description: string | null;
112
- name: string;
113
111
  tenantId: string;
114
112
  projectId: string;
115
113
  id: string;
114
+ name: string;
115
+ description: string | null;
116
116
  prompt: string | null;
117
117
  agentId: string;
118
118
  createdAt: string;
@@ -12,11 +12,11 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
12
12
  scopes: ProjectScopeConfig;
13
13
  toolId: string;
14
14
  }) => Promise<{
15
- description: string | null;
16
- name: string;
17
15
  tenantId: string;
18
16
  projectId: string;
19
17
  id: string;
18
+ name: string;
19
+ description: string | null;
20
20
  config: {
21
21
  type: "mcp";
22
22
  mcp: ToolMcpConfig;
@@ -68,11 +68,11 @@ declare const listTools: (db: AgentsManageDatabaseClient) => (params: {
68
68
  };
69
69
  }>;
70
70
  declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInsert) => Promise<{
71
- description: string | null;
72
- name: string;
73
71
  tenantId: string;
74
72
  projectId: string;
75
73
  id: string;
74
+ name: string;
75
+ description: string | null;
76
76
  config: {
77
77
  type: "mcp";
78
78
  mcp: ToolMcpConfig;
@@ -190,11 +190,11 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
190
190
  declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
191
191
  data: ToolInsert;
192
192
  }) => Promise<{
193
- description: string | null;
194
- name: string;
195
193
  tenantId: string;
196
194
  projectId: string;
197
195
  id: string;
196
+ name: string;
197
+ description: string | null;
198
198
  config: {
199
199
  type: "mcp";
200
200
  mcp: ToolMcpConfig;
@@ -7,10 +7,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
7
7
  scopes: ProjectScopeConfig;
8
8
  id: string;
9
9
  }) => Promise<{
10
- name: string | null;
11
10
  tenantId: string;
12
11
  projectId: string;
13
12
  id: string;
13
+ name: string | null;
14
14
  agentId: string;
15
15
  publicId: string;
16
16
  keyHash: string;
@@ -21,10 +21,10 @@ declare const getApiKeyById: (db: AgentsRunDatabaseClient) => (params: {
21
21
  updatedAt: string;
22
22
  } | undefined>;
23
23
  declare const getApiKeyByPublicId: (db: AgentsRunDatabaseClient) => (publicId: string) => Promise<{
24
- name: string | null;
25
24
  tenantId: string;
26
25
  projectId: string;
27
26
  id: string;
27
+ name: string | null;
28
28
  agentId: string;
29
29
  publicId: string;
30
30
  keyHash: string;
@@ -38,10 +38,10 @@ declare const listApiKeys: (db: AgentsRunDatabaseClient) => (params: {
38
38
  scopes: ProjectScopeConfig;
39
39
  agentId?: string;
40
40
  }) => Promise<{
41
- name: string | null;
42
41
  tenantId: string;
43
42
  projectId: string;
44
43
  id: string;
44
+ name: string | null;
45
45
  agentId: string;
46
46
  publicId: string;
47
47
  keyHash: string;
@@ -65,10 +65,10 @@ declare const listApiKeysPaginated: (db: AgentsRunDatabaseClient) => (params: {
65
65
  };
66
66
  }>;
67
67
  declare const createApiKey: (db: AgentsRunDatabaseClient) => (params: ApiKeyInsert) => Promise<{
68
- name: string | null;
69
68
  tenantId: string;
70
69
  projectId: string;
71
70
  id: string;
71
+ name: string | null;
72
72
  agentId: string;
73
73
  publicId: string;
74
74
  keyHash: string;
@@ -15,17 +15,17 @@ declare const listConversations: (db: AgentsRunDatabaseClient) => (params: {
15
15
  total: number;
16
16
  }>;
17
17
  declare const createConversation: (db: AgentsRunDatabaseClient) => (params: ConversationInsert) => Promise<{
18
- title: string | null;
19
18
  tenantId: string;
20
19
  projectId: string;
21
20
  id: string;
21
+ title: string | null;
22
22
  agentId: string | null;
23
23
  createdAt: string;
24
24
  updatedAt: string;
25
25
  userId: string | null;
26
26
  metadata: ConversationMetadata | null;
27
27
  ref: {
28
- type: "tag" | "commit" | "branch";
28
+ type: "commit" | "tag" | "branch";
29
29
  name: string;
30
30
  hash: string;
31
31
  } | null;
@@ -43,7 +43,7 @@ declare const updateConversation: (db: AgentsRunDatabaseClient) => (params: {
43
43
  agentId: string | null;
44
44
  activeSubAgentId: string;
45
45
  ref: {
46
- type: "tag" | "commit" | "branch";
46
+ type: "commit" | "tag" | "branch";
47
47
  name: string;
48
48
  hash: string;
49
49
  } | null;
@@ -69,7 +69,7 @@ declare const updateConversationActiveSubAgent: (db: AgentsRunDatabaseClient) =>
69
69
  agentId: string | null;
70
70
  activeSubAgentId: string;
71
71
  ref: {
72
- type: "tag" | "commit" | "branch";
72
+ type: "commit" | "tag" | "branch";
73
73
  name: string;
74
74
  hash: string;
75
75
  } | null;
@@ -84,17 +84,17 @@ declare const getConversation: (db: AgentsRunDatabaseClient) => (params: {
84
84
  scopes: ProjectScopeConfig;
85
85
  conversationId: string;
86
86
  }) => Promise<{
87
- title: string | null;
88
87
  tenantId: string;
89
88
  projectId: string;
90
89
  id: string;
90
+ title: string | null;
91
91
  agentId: string | null;
92
92
  createdAt: string;
93
93
  updatedAt: string;
94
94
  userId: string | null;
95
95
  metadata: ConversationMetadata | null;
96
96
  ref: {
97
- type: "tag" | "commit" | "branch";
97
+ type: "commit" | "tag" | "branch";
98
98
  name: string;
99
99
  hash: string;
100
100
  } | null;
@@ -107,7 +107,7 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
107
107
  tenantId: string;
108
108
  id: string;
109
109
  ref: {
110
- type: "tag" | "commit" | "branch";
110
+ type: "commit" | "tag" | "branch";
111
111
  name: string;
112
112
  hash: string;
113
113
  };
@@ -120,17 +120,17 @@ declare const createOrGetConversation: (db: AgentsRunDatabaseClient) => (input:
120
120
  metadata?: ConversationMetadata | null | undefined;
121
121
  contextConfigId?: string | undefined;
122
122
  } | {
123
- title: string | null;
124
123
  tenantId: string;
125
124
  projectId: string;
126
125
  id: string;
126
+ title: string | null;
127
127
  agentId: string | null;
128
128
  createdAt: string;
129
129
  updatedAt: string;
130
130
  userId: string | null;
131
131
  metadata: ConversationMetadata | null;
132
132
  ref: {
133
- type: "tag" | "commit" | "branch";
133
+ type: "commit" | "tag" | "branch";
134
134
  name: string;
135
135
  hash: string;
136
136
  } | null;
@@ -152,17 +152,17 @@ declare const getActiveAgentForConversation: (db: AgentsRunDatabaseClient) => (p
152
152
  scopes: ProjectScopeConfig;
153
153
  conversationId: string;
154
154
  }) => Promise<{
155
- title: string | null;
156
155
  tenantId: string;
157
156
  projectId: string;
158
157
  id: string;
158
+ title: string | null;
159
159
  agentId: string | null;
160
160
  createdAt: string;
161
161
  updatedAt: string;
162
162
  userId: string | null;
163
163
  metadata: ConversationMetadata | null;
164
164
  ref: {
165
- type: "tag" | "commit" | "branch";
165
+ type: "commit" | "tag" | "branch";
166
166
  name: string;
167
167
  hash: string;
168
168
  } | null;
@@ -13,14 +13,14 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
13
13
  createdAt: string;
14
14
  updatedAt: string;
15
15
  metadata: TaskMetadataConfig | null;
16
+ subAgentId: string;
16
17
  ref: {
17
- type: "tag" | "commit" | "branch";
18
+ type: "commit" | "tag" | "branch";
18
19
  name: string;
19
20
  hash: string;
20
21
  } | null;
21
22
  status: string;
22
23
  contextId: string;
23
- subAgentId: string;
24
24
  }>;
25
25
  declare const getTask: (db: AgentsRunDatabaseClient) => (params: {
26
26
  id: string;
@@ -36,7 +36,7 @@ declare const updateTask: (db: AgentsRunDatabaseClient) => (params: {
36
36
  updatedAt: string;
37
37
  contextId: string;
38
38
  ref: {
39
- type: "tag" | "commit" | "branch";
39
+ type: "commit" | "tag" | "branch";
40
40
  name: string;
41
41
  hash: string;
42
42
  } | null;