@inkeep/agents-core 0.0.0-dev-20260105203442 → 0.0.0-dev-20260105203532
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 +82 -82
- package/dist/auth/auth-validation-schemas.d.ts +129 -129
- package/dist/auth/auth.d.ts +37 -37
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/data-access/agents.d.ts +37 -37
- package/dist/data-access/artifactComponents.d.ts +2 -2
- package/dist/data-access/contextConfigs.d.ts +8 -8
- package/dist/data-access/conversations.d.ts +4 -4
- package/dist/data-access/dataComponents.d.ts +2 -2
- package/dist/data-access/messages.d.ts +18 -18
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/subAgentRelations.d.ts +2 -2
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/subAgents.d.ts +15 -15
- package/dist/data-access/tasks.d.ts +1 -1
- package/dist/data-access/tools.d.ts +6 -6
- package/dist/db/schema.d.ts +288 -288
- package/dist/validation/schemas.d.ts +789 -789
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DatabaseClient } from "../db/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 better_auth_social_providers0 from "better-auth/social-providers";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
import * as zod0 from "zod";
|
|
@@ -770,7 +770,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
770
770
|
};
|
|
771
771
|
}, {
|
|
772
772
|
id: "oauth-proxy";
|
|
773
|
-
options:
|
|
773
|
+
options: better_auth_plugins0.OAuthProxyOptions | undefined;
|
|
774
774
|
endpoints: {
|
|
775
775
|
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
776
776
|
method: "GET";
|
|
@@ -821,30 +821,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
821
821
|
};
|
|
822
822
|
}, {
|
|
823
823
|
id: "organization";
|
|
824
|
-
endpoints:
|
|
824
|
+
endpoints: better_auth_plugins0.OrganizationEndpoints<{
|
|
825
825
|
allowUserToCreateOrganization: true;
|
|
826
|
-
ac:
|
|
826
|
+
ac: better_auth_plugins0.AccessControl;
|
|
827
827
|
roles: {
|
|
828
828
|
member: {
|
|
829
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
830
|
-
actions:
|
|
829
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
830
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
831
831
|
connector: "OR" | "AND";
|
|
832
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
833
|
-
statements:
|
|
832
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
833
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
834
834
|
};
|
|
835
835
|
admin: {
|
|
836
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
837
|
-
actions:
|
|
836
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
837
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
838
838
|
connector: "OR" | "AND";
|
|
839
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
840
|
-
statements:
|
|
839
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
840
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
841
841
|
};
|
|
842
842
|
owner: {
|
|
843
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
844
|
-
actions:
|
|
843
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
844
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
845
845
|
connector: "OR" | "AND";
|
|
846
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
847
|
-
statements:
|
|
846
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
847
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
848
848
|
};
|
|
849
849
|
};
|
|
850
850
|
membershipLimit: number;
|
|
@@ -854,9 +854,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
854
854
|
id: string;
|
|
855
855
|
role: string;
|
|
856
856
|
email: string;
|
|
857
|
-
organization:
|
|
858
|
-
invitation:
|
|
859
|
-
inviter:
|
|
857
|
+
organization: better_auth_plugins0.Organization;
|
|
858
|
+
invitation: better_auth_plugins0.Invitation;
|
|
859
|
+
inviter: better_auth_plugins0.Member & {
|
|
860
860
|
user: better_auth0.User;
|
|
861
861
|
};
|
|
862
862
|
}): Promise<void>;
|
|
@@ -989,7 +989,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
989
989
|
organizationId: string;
|
|
990
990
|
email: string;
|
|
991
991
|
role: "member" | "admin" | "owner";
|
|
992
|
-
status:
|
|
992
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
993
993
|
inviterId: string;
|
|
994
994
|
expiresAt: Date;
|
|
995
995
|
createdAt: Date;
|
|
@@ -1028,7 +1028,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1028
1028
|
organizationId: string;
|
|
1029
1029
|
email: string;
|
|
1030
1030
|
role: "member" | "admin" | "owner";
|
|
1031
|
-
status:
|
|
1031
|
+
status: better_auth_plugins0.InvitationStatus;
|
|
1032
1032
|
inviterId: string;
|
|
1033
1033
|
expiresAt: Date;
|
|
1034
1034
|
createdAt: Date;
|
|
@@ -1102,28 +1102,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1102
1102
|
};
|
|
1103
1103
|
options: {
|
|
1104
1104
|
allowUserToCreateOrganization: true;
|
|
1105
|
-
ac:
|
|
1105
|
+
ac: better_auth_plugins0.AccessControl;
|
|
1106
1106
|
roles: {
|
|
1107
1107
|
member: {
|
|
1108
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
1109
|
-
actions:
|
|
1108
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1109
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1110
1110
|
connector: "OR" | "AND";
|
|
1111
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1112
|
-
statements:
|
|
1111
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1112
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1113
1113
|
};
|
|
1114
1114
|
admin: {
|
|
1115
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
1116
|
-
actions:
|
|
1115
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1116
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1117
1117
|
connector: "OR" | "AND";
|
|
1118
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1119
|
-
statements:
|
|
1118
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1119
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1120
1120
|
};
|
|
1121
1121
|
owner: {
|
|
1122
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
1123
|
-
actions:
|
|
1122
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1123
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1124
1124
|
connector: "OR" | "AND";
|
|
1125
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1126
|
-
statements:
|
|
1125
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1126
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1127
1127
|
};
|
|
1128
1128
|
};
|
|
1129
1129
|
membershipLimit: number;
|
|
@@ -1133,9 +1133,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1133
1133
|
id: string;
|
|
1134
1134
|
role: string;
|
|
1135
1135
|
email: string;
|
|
1136
|
-
organization:
|
|
1137
|
-
invitation:
|
|
1138
|
-
inviter:
|
|
1136
|
+
organization: better_auth_plugins0.Organization;
|
|
1137
|
+
invitation: better_auth_plugins0.Invitation;
|
|
1138
|
+
inviter: better_auth_plugins0.Member & {
|
|
1139
1139
|
user: better_auth0.User;
|
|
1140
1140
|
};
|
|
1141
1141
|
}): Promise<void>;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins53 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
|
|
4
4
|
//#region src/auth/permissions.d.ts
|
|
5
5
|
declare const ac: AccessControl;
|
|
6
6
|
declare const memberRole: {
|
|
7
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
8
|
-
actions:
|
|
7
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
|
|
8
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
|
|
9
9
|
connector: "OR" | "AND";
|
|
10
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
11
|
-
statements:
|
|
10
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
11
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>;
|
|
12
12
|
};
|
|
13
13
|
declare const adminRole: {
|
|
14
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
15
|
-
actions:
|
|
14
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
|
|
15
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
|
|
16
16
|
connector: "OR" | "AND";
|
|
17
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
18
|
-
statements:
|
|
17
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
18
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>;
|
|
19
19
|
};
|
|
20
20
|
declare const ownerRole: {
|
|
21
|
-
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "
|
|
22
|
-
actions:
|
|
21
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
|
|
22
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
|
|
23
23
|
connector: "OR" | "AND";
|
|
24
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
25
|
-
statements:
|
|
24
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
25
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "member" | "invitation" | "ac" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>;
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ac, adminRole, memberRole, ownerRole };
|
|
@@ -13,10 +13,7 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
|
|
17
|
-
tenantId: string;
|
|
18
|
-
defaultSubAgentId: string | null;
|
|
19
|
-
contextConfigId: string | null;
|
|
16
|
+
prompt: string | null;
|
|
20
17
|
models: {
|
|
21
18
|
base?: {
|
|
22
19
|
model?: string | undefined;
|
|
@@ -31,7 +28,13 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
31
28
|
providerOptions?: Record<string, any> | undefined;
|
|
32
29
|
} | undefined;
|
|
33
30
|
} | null;
|
|
34
|
-
|
|
31
|
+
stopWhen: {
|
|
32
|
+
transferCountIs?: number | undefined;
|
|
33
|
+
} | null;
|
|
34
|
+
projectId: string;
|
|
35
|
+
tenantId: string;
|
|
36
|
+
defaultSubAgentId: string | null;
|
|
37
|
+
contextConfigId: string | null;
|
|
35
38
|
statusUpdates: {
|
|
36
39
|
enabled?: boolean | undefined;
|
|
37
40
|
numEvents?: number | undefined;
|
|
@@ -47,9 +50,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
47
50
|
} | undefined;
|
|
48
51
|
}[] | undefined;
|
|
49
52
|
} | null;
|
|
50
|
-
stopWhen: {
|
|
51
|
-
transferCountIs?: number | undefined;
|
|
52
|
-
} | null;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -59,10 +59,7 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
|
|
63
|
-
tenantId: string;
|
|
64
|
-
defaultSubAgentId: string | null;
|
|
65
|
-
contextConfigId: string | null;
|
|
62
|
+
prompt: string | null;
|
|
66
63
|
models: {
|
|
67
64
|
base?: {
|
|
68
65
|
model?: string | undefined;
|
|
@@ -77,7 +74,13 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
77
74
|
providerOptions?: Record<string, any> | undefined;
|
|
78
75
|
} | undefined;
|
|
79
76
|
} | null;
|
|
80
|
-
|
|
77
|
+
stopWhen: {
|
|
78
|
+
transferCountIs?: number | undefined;
|
|
79
|
+
} | null;
|
|
80
|
+
projectId: string;
|
|
81
|
+
tenantId: string;
|
|
82
|
+
defaultSubAgentId: string | null;
|
|
83
|
+
contextConfigId: string | null;
|
|
81
84
|
statusUpdates: {
|
|
82
85
|
enabled?: boolean | undefined;
|
|
83
86
|
numEvents?: number | undefined;
|
|
@@ -93,18 +96,14 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
93
96
|
} | undefined;
|
|
94
97
|
}[] | undefined;
|
|
95
98
|
} | null;
|
|
96
|
-
stopWhen: {
|
|
97
|
-
transferCountIs?: number | undefined;
|
|
98
|
-
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
tenantId: string;
|
|
105
|
+
prompt: string | null;
|
|
106
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
108
107
|
models: {
|
|
109
108
|
base?: {
|
|
110
109
|
model?: string | undefined;
|
|
@@ -119,11 +118,12 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
119
118
|
providerOptions?: Record<string, any> | undefined;
|
|
120
119
|
} | undefined;
|
|
121
120
|
} | null;
|
|
122
|
-
prompt: string | null;
|
|
123
121
|
stopWhen: {
|
|
124
122
|
stepCountIs?: number | undefined;
|
|
125
123
|
} | null;
|
|
126
|
-
|
|
124
|
+
agentId: string;
|
|
125
|
+
projectId: string;
|
|
126
|
+
tenantId: string;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
@@ -134,10 +134,7 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
|
|
138
|
-
tenantId: string;
|
|
139
|
-
defaultSubAgentId: string | null;
|
|
140
|
-
contextConfigId: string | null;
|
|
137
|
+
prompt: string | null;
|
|
141
138
|
models: {
|
|
142
139
|
base?: {
|
|
143
140
|
model?: string | undefined;
|
|
@@ -152,7 +149,13 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
152
149
|
providerOptions?: Record<string, any> | undefined;
|
|
153
150
|
} | undefined;
|
|
154
151
|
} | null;
|
|
155
|
-
|
|
152
|
+
stopWhen: {
|
|
153
|
+
transferCountIs?: number | undefined;
|
|
154
|
+
} | null;
|
|
155
|
+
projectId: string;
|
|
156
|
+
tenantId: string;
|
|
157
|
+
defaultSubAgentId: string | null;
|
|
158
|
+
contextConfigId: string | null;
|
|
156
159
|
statusUpdates: {
|
|
157
160
|
enabled?: boolean | undefined;
|
|
158
161
|
numEvents?: number | undefined;
|
|
@@ -168,9 +171,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
168
171
|
} | undefined;
|
|
169
172
|
}[] | undefined;
|
|
170
173
|
} | null;
|
|
171
|
-
stopWhen: {
|
|
172
|
-
transferCountIs?: number | undefined;
|
|
173
|
-
} | null;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -233,10 +233,7 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
233
233
|
createdAt: string;
|
|
234
234
|
updatedAt: string;
|
|
235
235
|
description: string | null;
|
|
236
|
-
|
|
237
|
-
tenantId: string;
|
|
238
|
-
defaultSubAgentId: string | null;
|
|
239
|
-
contextConfigId: string | null;
|
|
236
|
+
prompt: string | null;
|
|
240
237
|
models: {
|
|
241
238
|
base?: {
|
|
242
239
|
model?: string | undefined;
|
|
@@ -251,7 +248,13 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
251
248
|
providerOptions?: Record<string, any> | undefined;
|
|
252
249
|
} | undefined;
|
|
253
250
|
} | null;
|
|
254
|
-
|
|
251
|
+
stopWhen: {
|
|
252
|
+
transferCountIs?: number | undefined;
|
|
253
|
+
} | null;
|
|
254
|
+
projectId: string;
|
|
255
|
+
tenantId: string;
|
|
256
|
+
defaultSubAgentId: string | null;
|
|
257
|
+
contextConfigId: string | null;
|
|
255
258
|
statusUpdates: {
|
|
256
259
|
enabled?: boolean | undefined;
|
|
257
260
|
numEvents?: number | undefined;
|
|
@@ -267,9 +270,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
267
270
|
} | undefined;
|
|
268
271
|
}[] | undefined;
|
|
269
272
|
} | null;
|
|
270
|
-
stopWhen: {
|
|
271
|
-
transferCountIs?: number | undefined;
|
|
272
|
-
} | null;
|
|
273
273
|
}>;
|
|
274
274
|
declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
275
275
|
scopes: AgentScopeConfig;
|
|
@@ -86,10 +86,10 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
86
86
|
}) => Promise<{
|
|
87
87
|
id: string;
|
|
88
88
|
createdAt: string;
|
|
89
|
+
subAgentId: string;
|
|
89
90
|
agentId: string;
|
|
90
91
|
projectId: string;
|
|
91
92
|
tenantId: string;
|
|
92
|
-
subAgentId: string;
|
|
93
93
|
artifactComponentId: string;
|
|
94
94
|
}>;
|
|
95
95
|
declare const removeArtifactComponentFromAgent: (db: DatabaseClient) => (params: {
|
|
@@ -129,10 +129,10 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
129
129
|
}) => Promise<{
|
|
130
130
|
id: string;
|
|
131
131
|
createdAt: string;
|
|
132
|
+
subAgentId: string;
|
|
132
133
|
agentId: string;
|
|
133
134
|
projectId: string;
|
|
134
135
|
tenantId: string;
|
|
135
|
-
subAgentId: string;
|
|
136
136
|
artifactComponentId: string;
|
|
137
137
|
} | null>;
|
|
138
138
|
/**
|
|
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
headersSchema: unknown;
|
|
15
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
16
14
|
agentId: string;
|
|
17
15
|
projectId: string;
|
|
18
16
|
tenantId: string;
|
|
17
|
+
headersSchema: unknown;
|
|
18
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
-
headersSchema: unknown;
|
|
27
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
28
26
|
agentId: string;
|
|
29
27
|
projectId: string;
|
|
30
28
|
tenantId: string;
|
|
29
|
+
headersSchema: unknown;
|
|
30
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfi
|
|
|
45
45
|
id: string;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
|
-
headersSchema: unknown;
|
|
49
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
50
48
|
agentId: string;
|
|
51
49
|
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
51
|
+
headersSchema: unknown;
|
|
52
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
|
85
85
|
id: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
updatedAt: string;
|
|
88
|
-
headersSchema: unknown;
|
|
89
|
-
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
90
88
|
agentId: string;
|
|
91
89
|
projectId: string;
|
|
92
90
|
tenantId: string;
|
|
91
|
+
headersSchema: unknown;
|
|
92
|
+
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -19,9 +19,9 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
|
|
|
19
19
|
updatedAt: string;
|
|
20
20
|
userId: string | null;
|
|
21
21
|
metadata: ConversationMetadata | null;
|
|
22
|
+
title: string | null;
|
|
22
23
|
projectId: string;
|
|
23
24
|
tenantId: string;
|
|
24
|
-
title: string | null;
|
|
25
25
|
activeSubAgentId: string;
|
|
26
26
|
lastContextResolution: string | null;
|
|
27
27
|
}>;
|
|
@@ -70,9 +70,9 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
70
70
|
updatedAt: string;
|
|
71
71
|
userId: string | null;
|
|
72
72
|
metadata: ConversationMetadata | null;
|
|
73
|
+
title: string | null;
|
|
73
74
|
projectId: string;
|
|
74
75
|
tenantId: string;
|
|
75
|
-
title: string | null;
|
|
76
76
|
activeSubAgentId: string;
|
|
77
77
|
lastContextResolution: string | null;
|
|
78
78
|
} | undefined>;
|
|
@@ -94,9 +94,9 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
94
94
|
updatedAt: string;
|
|
95
95
|
userId: string | null;
|
|
96
96
|
metadata: ConversationMetadata | null;
|
|
97
|
+
title: string | null;
|
|
97
98
|
projectId: string;
|
|
98
99
|
tenantId: string;
|
|
99
|
-
title: string | null;
|
|
100
100
|
activeSubAgentId: string;
|
|
101
101
|
lastContextResolution: string | null;
|
|
102
102
|
}>;
|
|
@@ -120,9 +120,9 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
120
120
|
updatedAt: string;
|
|
121
121
|
userId: string | null;
|
|
122
122
|
metadata: ConversationMetadata | null;
|
|
123
|
+
title: string | null;
|
|
123
124
|
projectId: string;
|
|
124
125
|
tenantId: string;
|
|
125
|
-
title: string | null;
|
|
126
126
|
activeSubAgentId: string;
|
|
127
127
|
lastContextResolution: string | null;
|
|
128
128
|
} | undefined>;
|
|
@@ -66,10 +66,10 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
|
+
subAgentId: string;
|
|
69
70
|
agentId: string;
|
|
70
71
|
projectId: string;
|
|
71
72
|
tenantId: string;
|
|
72
|
-
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
@@ -108,10 +108,10 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
108
108
|
}) => Promise<{
|
|
109
109
|
id: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
+
subAgentId: string;
|
|
111
112
|
agentId: string;
|
|
112
113
|
projectId: string;
|
|
113
114
|
tenantId: string;
|
|
114
|
-
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
@@ -14,21 +14,21 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
metadata: MessageMetadata | null;
|
|
16
16
|
role: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
|
-
content: MessageContent;
|
|
20
|
-
conversationId: string;
|
|
21
17
|
fromSubAgentId: string | null;
|
|
22
18
|
toSubAgentId: string | null;
|
|
23
19
|
fromExternalAgentId: string | null;
|
|
24
20
|
toExternalAgentId: string | null;
|
|
21
|
+
taskId: string | null;
|
|
22
|
+
a2aTaskId: string | null;
|
|
23
|
+
projectId: string;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
content: MessageContent;
|
|
26
|
+
conversationId: string;
|
|
25
27
|
fromTeamAgentId: string | null;
|
|
26
28
|
toTeamAgentId: string | null;
|
|
27
29
|
visibility: string;
|
|
28
30
|
messageType: string;
|
|
29
|
-
taskId: string | null;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: DatabaseClient) => (params: {
|
|
@@ -145,21 +145,21 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
145
145
|
updatedAt: string;
|
|
146
146
|
metadata: MessageMetadata | null;
|
|
147
147
|
role: string;
|
|
148
|
-
projectId: string;
|
|
149
|
-
tenantId: string;
|
|
150
|
-
content: MessageContent;
|
|
151
|
-
conversationId: string;
|
|
152
148
|
fromSubAgentId: string | null;
|
|
153
149
|
toSubAgentId: string | null;
|
|
154
150
|
fromExternalAgentId: string | null;
|
|
155
151
|
toExternalAgentId: string | null;
|
|
152
|
+
taskId: string | null;
|
|
153
|
+
a2aTaskId: string | null;
|
|
154
|
+
projectId: string;
|
|
155
|
+
tenantId: string;
|
|
156
|
+
content: MessageContent;
|
|
157
|
+
conversationId: string;
|
|
156
158
|
fromTeamAgentId: string | null;
|
|
157
159
|
toTeamAgentId: string | null;
|
|
158
160
|
visibility: string;
|
|
159
161
|
messageType: string;
|
|
160
|
-
taskId: string | null;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: DatabaseClient) => (params: {
|
|
@@ -198,21 +198,21 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
198
198
|
updatedAt: string;
|
|
199
199
|
metadata: MessageMetadata | null;
|
|
200
200
|
role: string;
|
|
201
|
-
projectId: string;
|
|
202
|
-
tenantId: string;
|
|
203
|
-
content: MessageContent;
|
|
204
|
-
conversationId: string;
|
|
205
201
|
fromSubAgentId: string | null;
|
|
206
202
|
toSubAgentId: string | null;
|
|
207
203
|
fromExternalAgentId: string | null;
|
|
208
204
|
toExternalAgentId: string | null;
|
|
205
|
+
taskId: string | null;
|
|
206
|
+
a2aTaskId: string | null;
|
|
207
|
+
projectId: string;
|
|
208
|
+
tenantId: string;
|
|
209
|
+
content: MessageContent;
|
|
210
|
+
conversationId: string;
|
|
209
211
|
fromTeamAgentId: string | null;
|
|
210
212
|
toTeamAgentId: string | null;
|
|
211
213
|
visibility: string;
|
|
212
214
|
messageType: string;
|
|
213
|
-
taskId: string | null;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: DatabaseClient) => (params: {
|