@inkeep/agents-core 0.0.0-dev-20260116203411 → 0.0.0-dev-20260116220526
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.
- package/dist/auth/auth-schema.d.ts +104 -104
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +39 -39
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +2 -1
- package/dist/data-access/manage/agents.d.ts +20 -20
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +14 -14
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +21 -21
- package/dist/data-access/runtime/apiKeys.d.ts +20 -20
- package/dist/data-access/runtime/conversations.d.ts +28 -28
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +360 -360
- package/dist/db/runtime/runtime-schema.d.ts +163 -163
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1258 -1258
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { AgentsRunDatabaseClient } from "../db/runtime/runtime-client.js";
|
|
|
2
2
|
import * as _better_auth_sso0 from "@better-auth/sso";
|
|
3
3
|
import * as better_auth0 from "better-auth";
|
|
4
4
|
import { BetterAuthAdvancedOptions } from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
6
6
|
import * as zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -213,7 +213,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
213
213
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
214
214
|
}[];
|
|
215
215
|
};
|
|
216
|
-
options:
|
|
216
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
217
217
|
}, {
|
|
218
218
|
id: "sso";
|
|
219
219
|
endpoints: {
|
|
@@ -841,30 +841,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
841
841
|
};
|
|
842
842
|
}, {
|
|
843
843
|
id: "organization";
|
|
844
|
-
endpoints:
|
|
844
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
845
845
|
allowUserToCreateOrganization: true;
|
|
846
|
-
ac:
|
|
846
|
+
ac: better_auth_plugins0.AccessControl;
|
|
847
847
|
roles: {
|
|
848
848
|
member: {
|
|
849
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
850
|
-
actions:
|
|
849
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
850
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
851
851
|
connector: "OR" | "AND";
|
|
852
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
853
|
-
statements:
|
|
852
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
853
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
854
854
|
};
|
|
855
855
|
admin: {
|
|
856
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
857
|
-
actions:
|
|
856
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
857
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
858
858
|
connector: "OR" | "AND";
|
|
859
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
860
|
-
statements:
|
|
859
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
860
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
861
861
|
};
|
|
862
862
|
owner: {
|
|
863
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
864
|
-
actions:
|
|
863
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
864
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
865
865
|
connector: "OR" | "AND";
|
|
866
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
867
|
-
statements:
|
|
866
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
867
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
870
|
membershipLimit: number;
|
|
@@ -874,9 +874,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
874
874
|
id: string;
|
|
875
875
|
role: string;
|
|
876
876
|
email: string;
|
|
877
|
-
organization:
|
|
878
|
-
invitation:
|
|
879
|
-
inviter:
|
|
877
|
+
organization: better_auth_plugins0.Organization;
|
|
878
|
+
invitation: better_auth_plugins0.Invitation;
|
|
879
|
+
inviter: better_auth_plugins0.Member & {
|
|
880
880
|
user: better_auth0.User;
|
|
881
881
|
};
|
|
882
882
|
}): Promise<void>;
|
|
@@ -1009,7 +1009,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1009
1009
|
organizationId: string;
|
|
1010
1010
|
email: string;
|
|
1011
1011
|
role: "member" | "admin" | "owner";
|
|
1012
|
-
status:
|
|
1012
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1013
1013
|
inviterId: string;
|
|
1014
1014
|
expiresAt: Date;
|
|
1015
1015
|
createdAt: Date;
|
|
@@ -1048,7 +1048,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1048
1048
|
organizationId: string;
|
|
1049
1049
|
email: string;
|
|
1050
1050
|
role: "member" | "admin" | "owner";
|
|
1051
|
-
status:
|
|
1051
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1052
1052
|
inviterId: string;
|
|
1053
1053
|
expiresAt: Date;
|
|
1054
1054
|
createdAt: Date;
|
|
@@ -1122,28 +1122,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1122
1122
|
};
|
|
1123
1123
|
options: NoInfer<{
|
|
1124
1124
|
allowUserToCreateOrganization: true;
|
|
1125
|
-
ac:
|
|
1125
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1126
1126
|
roles: {
|
|
1127
1127
|
member: {
|
|
1128
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1129
|
-
actions:
|
|
1128
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1129
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1130
1130
|
connector: "OR" | "AND";
|
|
1131
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1132
|
-
statements:
|
|
1131
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1132
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1133
1133
|
};
|
|
1134
1134
|
admin: {
|
|
1135
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1136
|
-
actions:
|
|
1135
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1136
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1137
1137
|
connector: "OR" | "AND";
|
|
1138
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1139
|
-
statements:
|
|
1138
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1139
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1140
1140
|
};
|
|
1141
1141
|
owner: {
|
|
1142
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1143
|
-
actions:
|
|
1142
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1143
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1144
1144
|
connector: "OR" | "AND";
|
|
1145
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1146
|
-
statements:
|
|
1145
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1146
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1147
1147
|
};
|
|
1148
1148
|
};
|
|
1149
1149
|
membershipLimit: number;
|
|
@@ -1153,9 +1153,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1153
1153
|
id: string;
|
|
1154
1154
|
role: string;
|
|
1155
1155
|
email: string;
|
|
1156
|
-
organization:
|
|
1157
|
-
invitation:
|
|
1158
|
-
inviter:
|
|
1156
|
+
organization: better_auth_plugins0.Organization;
|
|
1157
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1158
|
+
inviter: better_auth_plugins0.Member & {
|
|
1159
1159
|
user: better_auth0.User;
|
|
1160
1160
|
};
|
|
1161
1161
|
}): Promise<void>;
|
|
@@ -1493,8 +1493,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1493
1493
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1494
1494
|
};
|
|
1495
1495
|
options: Partial<{
|
|
1496
|
-
expiresIn:
|
|
1497
|
-
interval:
|
|
1496
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
1497
|
+
interval: better_auth_plugins0.TimeString;
|
|
1498
1498
|
deviceCodeLength: number;
|
|
1499
1499
|
userCodeLength: number;
|
|
1500
1500
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins55 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ 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";
|
|
9
10
|
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema } from "./validation/schemas.js";
|
|
10
11
|
import { z } from "@hono/zod-openapi";
|
|
11
12
|
|
|
@@ -192,9 +193,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
192
193
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
193
194
|
id: z.ZodString;
|
|
194
195
|
name: z.ZodString;
|
|
196
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
195
197
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
196
198
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
199
|
models: z.ZodOptional<z.ZodObject<{
|
|
199
200
|
base: z.ZodOptional<z.ZodObject<{
|
|
200
201
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -8,14 +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
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
16
|
prompt: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -54,14 +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
|
-
createdAt: string;
|
|
60
|
-
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
prompt: string | null;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
65
65
|
models: {
|
|
66
66
|
base?: {
|
|
67
67
|
model?: string | undefined;
|
|
@@ -97,15 +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
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
tenantId: string;
|
|
106
|
-
projectId: string;
|
|
107
105
|
prompt: string | null;
|
|
108
106
|
agentId: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
updatedAt: string;
|
|
109
109
|
models: {
|
|
110
110
|
base?: {
|
|
111
111
|
model?: string | undefined;
|
|
@@ -129,14 +129,14 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
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
|
-
createdAt: string;
|
|
135
|
-
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
tenantId: string;
|
|
138
|
-
projectId: string;
|
|
139
137
|
prompt: string | null;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
140
140
|
models: {
|
|
141
141
|
base?: {
|
|
142
142
|
model?: string | undefined;
|
|
@@ -228,14 +228,14 @@ declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params:
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
231
|
+
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
231
233
|
id: string;
|
|
232
234
|
name: string;
|
|
233
|
-
createdAt: string;
|
|
234
|
-
updatedAt: string;
|
|
235
235
|
description: string | null;
|
|
236
|
-
tenantId: string;
|
|
237
|
-
projectId: string;
|
|
238
236
|
prompt: string | null;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
updatedAt: string;
|
|
239
239
|
models: {
|
|
240
240
|
base?: {
|
|
241
241
|
model?: string | undefined;
|
|
@@ -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;
|
|
14
|
+
description: string | null;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: 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;
|
|
56
|
+
description: string | null;
|
|
54
57
|
createdAt: string;
|
|
55
58
|
updatedAt: string;
|
|
56
|
-
description: string | null;
|
|
57
|
-
tenantId: string;
|
|
58
|
-
projectId: 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
107
|
tenantId: string;
|
|
110
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
150
|
tenantId: string;
|
|
153
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
|
-
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
11
|
tenantId: string;
|
|
15
12
|
projectId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: 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
|
-
id: string;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
23
|
tenantId: string;
|
|
27
24
|
projectId: string;
|
|
25
|
+
id: string;
|
|
28
26
|
agentId: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: 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
|
-
id: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt: string;
|
|
48
45
|
tenantId: string;
|
|
49
46
|
projectId: string;
|
|
47
|
+
id: string;
|
|
50
48
|
agentId: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: 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
|
-
id: string;
|
|
86
|
-
createdAt: string;
|
|
87
|
-
updatedAt: string;
|
|
88
85
|
tenantId: string;
|
|
89
86
|
projectId: string;
|
|
87
|
+
id: string;
|
|
90
88
|
agentId: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: 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
67
|
tenantId: string;
|
|
70
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
109
|
tenantId: string;
|
|
112
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
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
61
|
agentId: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: 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
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
tenantId: string;
|
|
104
|
-
projectId: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -150,12 +150,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
150
150
|
subAgentId: string;
|
|
151
151
|
functionToolId: string;
|
|
152
152
|
}) => Promise<{
|
|
153
|
-
id: string;
|
|
154
|
-
createdAt: string;
|
|
155
|
-
updatedAt: string;
|
|
156
153
|
tenantId: string;
|
|
157
154
|
projectId: string;
|
|
155
|
+
id: string;
|
|
158
156
|
agentId: string;
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
159
|
subAgentId: string;
|
|
160
160
|
functionToolId: string;
|
|
161
161
|
}>;
|
|
@@ -206,12 +206,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
206
206
|
subAgentId: string;
|
|
207
207
|
functionToolId: string;
|
|
208
208
|
}) => Promise<{
|
|
209
|
-
id: string;
|
|
210
|
-
createdAt: string;
|
|
211
|
-
updatedAt: string;
|
|
212
209
|
tenantId: string;
|
|
213
210
|
projectId: string;
|
|
211
|
+
id: string;
|
|
214
212
|
agentId: string;
|
|
213
|
+
createdAt: string;
|
|
214
|
+
updatedAt: string;
|
|
215
215
|
subAgentId: string;
|
|
216
216
|
functionToolId: string;
|
|
217
217
|
}>;
|