@inkeep/agents-core 0.0.0-dev-20260106154123 → 0.0.0-dev-20260106194315
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 +37 -37
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/client-exports.d.ts +14 -2
- package/dist/data-access/agents.d.ts +42 -42
- package/dist/data-access/apiKeys.d.ts +12 -12
- package/dist/data-access/artifactComponents.d.ts +32 -12
- package/dist/data-access/artifactComponents.js +22 -1
- package/dist/data-access/contextConfigs.d.ts +8 -8
- package/dist/data-access/conversations.d.ts +12 -12
- package/dist/data-access/dataComponents.d.ts +6 -6
- package/dist/data-access/functionTools.d.ts +8 -8
- package/dist/data-access/messages.d.ts +27 -27
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/subAgentRelations.d.ts +20 -20
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +24 -24
- package/dist/data-access/subAgents.d.ts +18 -18
- package/dist/data-access/tasks.d.ts +4 -4
- package/dist/data-access/tools.d.ts +27 -27
- package/dist/db/schema.d.ts +429 -404
- package/dist/db/schema.js +1 -0
- package/dist/index.js +1 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1291 -1111
- package/drizzle/0007_slim_karma.sql +1 -0
- package/drizzle/meta/0007_snapshot.json +3772 -0
- package/drizzle/meta/_journal.json +7 -0
- 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_plugins20 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_plugins20.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_plugins20.OrganizationEndpoints<{
|
|
825
825
|
allowUserToCreateOrganization: true;
|
|
826
|
-
ac:
|
|
826
|
+
ac: better_auth_plugins20.AccessControl;
|
|
827
827
|
roles: {
|
|
828
828
|
member: {
|
|
829
|
-
authorize<K_1 extends "function" | "
|
|
830
|
-
actions:
|
|
829
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
|
|
830
|
+
actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key];
|
|
831
831
|
connector: "OR" | "AND";
|
|
832
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
833
|
-
statements:
|
|
832
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
833
|
+
statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>;
|
|
834
834
|
};
|
|
835
835
|
admin: {
|
|
836
|
-
authorize<K_1 extends "function" | "
|
|
837
|
-
actions:
|
|
836
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
|
|
837
|
+
actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key];
|
|
838
838
|
connector: "OR" | "AND";
|
|
839
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
840
|
-
statements:
|
|
839
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
840
|
+
statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>;
|
|
841
841
|
};
|
|
842
842
|
owner: {
|
|
843
|
-
authorize<K_1 extends "function" | "
|
|
844
|
-
actions:
|
|
843
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
|
|
844
|
+
actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key];
|
|
845
845
|
connector: "OR" | "AND";
|
|
846
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
847
|
-
statements:
|
|
846
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
847
|
+
statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.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_plugins20.Organization;
|
|
858
|
+
invitation: better_auth_plugins20.Invitation;
|
|
859
|
+
inviter: better_auth_plugins20.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_plugins20.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_plugins20.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_plugins20.AccessControl;
|
|
1106
1106
|
roles: {
|
|
1107
1107
|
member: {
|
|
1108
|
-
authorize<K_1 extends "function" | "
|
|
1109
|
-
actions:
|
|
1108
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
|
|
1109
|
+
actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key];
|
|
1110
1110
|
connector: "OR" | "AND";
|
|
1111
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1112
|
-
statements:
|
|
1111
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1112
|
+
statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>;
|
|
1113
1113
|
};
|
|
1114
1114
|
admin: {
|
|
1115
|
-
authorize<K_1 extends "function" | "
|
|
1116
|
-
actions:
|
|
1115
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
|
|
1116
|
+
actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key];
|
|
1117
1117
|
connector: "OR" | "AND";
|
|
1118
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1119
|
-
statements:
|
|
1118
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1119
|
+
statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>;
|
|
1120
1120
|
};
|
|
1121
1121
|
owner: {
|
|
1122
|
-
authorize<K_1 extends "function" | "
|
|
1123
|
-
actions:
|
|
1122
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key] | {
|
|
1123
|
+
actions: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.Statements>[key];
|
|
1124
1124
|
connector: "OR" | "AND";
|
|
1125
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1126
|
-
statements:
|
|
1125
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1126
|
+
statements: better_auth_plugins20.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins20.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_plugins20.Organization;
|
|
1137
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1138
|
+
inviter: better_auth_plugins20.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_plugins0 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" | "
|
|
8
|
-
actions:
|
|
7
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
8
|
+
actions: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
9
9
|
connector: "OR" | "AND";
|
|
10
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
11
|
-
statements:
|
|
10
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
11
|
+
statements: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
12
12
|
};
|
|
13
13
|
declare const adminRole: {
|
|
14
|
-
authorize<K_1 extends "function" | "
|
|
15
|
-
actions:
|
|
14
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
15
|
+
actions: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
16
16
|
connector: "OR" | "AND";
|
|
17
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
18
|
-
statements:
|
|
17
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
18
|
+
statements: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
19
19
|
};
|
|
20
20
|
declare const ownerRole: {
|
|
21
|
-
authorize<K_1 extends "function" | "
|
|
22
|
-
actions:
|
|
21
|
+
authorize<K_1 extends "function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key] | {
|
|
22
|
+
actions: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>[key];
|
|
23
23
|
connector: "OR" | "AND";
|
|
24
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
25
|
-
statements:
|
|
24
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
25
|
+
statements: better_auth_plugins0.Subset<"function" | "project" | "agent" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "ac" | "organization" | "member" | "invitation" | "team", better_auth_plugins0.Statements>;
|
|
26
26
|
};
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ac, adminRole, memberRole, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAge
|
|
|
4
4
|
import "./types/index.js";
|
|
5
5
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
6
6
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
7
|
-
import "./index.js";
|
|
8
7
|
import { ConversationHistoryConfig, CredentialStoreType, MCPTransportType } from "./types/utility.js";
|
|
9
8
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
10
9
|
import { z } from "@hono/zod-openapi";
|
|
@@ -145,6 +144,19 @@ declare const ArtifactComponentApiInsertSchema: z.ZodObject<{
|
|
|
145
144
|
name: z.ZodString;
|
|
146
145
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
147
146
|
props: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, unknown>, Record<string, unknown>, z.core.$ZodTypeInternals<Record<string, unknown>, Record<string, unknown>>>>>;
|
|
147
|
+
render: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
148
|
+
component: string;
|
|
149
|
+
mockData: Record<string, unknown>;
|
|
150
|
+
}, {
|
|
151
|
+
component: string;
|
|
152
|
+
mockData: Record<string, unknown>;
|
|
153
|
+
}, z.core.$ZodTypeInternals<{
|
|
154
|
+
component: string;
|
|
155
|
+
mockData: Record<string, unknown>;
|
|
156
|
+
}, {
|
|
157
|
+
component: string;
|
|
158
|
+
mockData: Record<string, unknown>;
|
|
159
|
+
}>>>>;
|
|
148
160
|
}, {
|
|
149
161
|
out: {};
|
|
150
162
|
in: {};
|
|
@@ -179,9 +191,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
179
191
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
180
192
|
id: z.ZodString;
|
|
181
193
|
name: z.ZodString;
|
|
182
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
183
194
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
184
195
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
196
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
185
197
|
models: z.ZodOptional<z.ZodObject<{
|
|
186
198
|
base: z.ZodOptional<z.ZodObject<{
|
|
187
199
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -8,11 +8,15 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
8
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
description: string | null;
|
|
12
|
-
name: string;
|
|
13
11
|
id: string;
|
|
12
|
+
name: string;
|
|
14
13
|
createdAt: string;
|
|
15
14
|
updatedAt: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
|
+
description: string | null;
|
|
18
|
+
defaultSubAgentId: string | null;
|
|
19
|
+
contextConfigId: string | null;
|
|
16
20
|
models: {
|
|
17
21
|
base?: {
|
|
18
22
|
model?: string | undefined;
|
|
@@ -27,12 +31,6 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
27
31
|
providerOptions?: Record<string, any> | undefined;
|
|
28
32
|
} | undefined;
|
|
29
33
|
} | null;
|
|
30
|
-
stopWhen: {
|
|
31
|
-
transferCountIs?: number | undefined;
|
|
32
|
-
} | null;
|
|
33
|
-
tenantId: string;
|
|
34
|
-
defaultSubAgentId: string | null;
|
|
35
|
-
contextConfigId: string | null;
|
|
36
34
|
prompt: string | null;
|
|
37
35
|
statusUpdates: {
|
|
38
36
|
enabled?: boolean | undefined;
|
|
@@ -49,16 +47,22 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
49
47
|
} | undefined;
|
|
50
48
|
}[] | undefined;
|
|
51
49
|
} | null;
|
|
52
|
-
|
|
50
|
+
stopWhen: {
|
|
51
|
+
transferCountIs?: number | undefined;
|
|
52
|
+
} | null;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
56
56
|
}) => Promise<{
|
|
57
|
-
description: string | null;
|
|
58
|
-
name: string;
|
|
59
57
|
id: string;
|
|
58
|
+
name: string;
|
|
60
59
|
createdAt: string;
|
|
61
60
|
updatedAt: string;
|
|
61
|
+
projectId: string;
|
|
62
|
+
tenantId: string;
|
|
63
|
+
description: string | null;
|
|
64
|
+
defaultSubAgentId: string | null;
|
|
65
|
+
contextConfigId: string | null;
|
|
62
66
|
models: {
|
|
63
67
|
base?: {
|
|
64
68
|
model?: string | undefined;
|
|
@@ -73,12 +77,6 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
73
77
|
providerOptions?: Record<string, any> | undefined;
|
|
74
78
|
} | undefined;
|
|
75
79
|
} | null;
|
|
76
|
-
stopWhen: {
|
|
77
|
-
transferCountIs?: number | undefined;
|
|
78
|
-
} | null;
|
|
79
|
-
tenantId: string;
|
|
80
|
-
defaultSubAgentId: string | null;
|
|
81
|
-
contextConfigId: string | null;
|
|
82
80
|
prompt: string | null;
|
|
83
81
|
statusUpdates: {
|
|
84
82
|
enabled?: boolean | undefined;
|
|
@@ -95,13 +93,18 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
95
93
|
} | undefined;
|
|
96
94
|
}[] | undefined;
|
|
97
95
|
} | null;
|
|
98
|
-
|
|
96
|
+
stopWhen: {
|
|
97
|
+
transferCountIs?: number | undefined;
|
|
98
|
+
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
-
description: string | null;
|
|
101
|
-
name: string;
|
|
102
100
|
id: string;
|
|
101
|
+
name: string;
|
|
103
102
|
createdAt: string;
|
|
104
103
|
updatedAt: string;
|
|
104
|
+
agentId: string;
|
|
105
|
+
projectId: string;
|
|
106
|
+
tenantId: string;
|
|
107
|
+
description: string | null;
|
|
105
108
|
models: {
|
|
106
109
|
base?: {
|
|
107
110
|
model?: string | undefined;
|
|
@@ -116,24 +119,25 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
116
119
|
providerOptions?: Record<string, any> | undefined;
|
|
117
120
|
} | undefined;
|
|
118
121
|
} | null;
|
|
122
|
+
prompt: string | null;
|
|
119
123
|
stopWhen: {
|
|
120
124
|
stepCountIs?: number | undefined;
|
|
121
125
|
} | null;
|
|
122
|
-
tenantId: string;
|
|
123
|
-
prompt: string | null;
|
|
124
|
-
projectId: string;
|
|
125
|
-
agentId: string;
|
|
126
126
|
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
130
130
|
scopes: ProjectScopeConfig;
|
|
131
131
|
}) => Promise<{
|
|
132
|
-
description: string | null;
|
|
133
|
-
name: string;
|
|
134
132
|
id: string;
|
|
133
|
+
name: string;
|
|
135
134
|
createdAt: string;
|
|
136
135
|
updatedAt: string;
|
|
136
|
+
projectId: string;
|
|
137
|
+
tenantId: string;
|
|
138
|
+
description: string | null;
|
|
139
|
+
defaultSubAgentId: string | null;
|
|
140
|
+
contextConfigId: string | null;
|
|
137
141
|
models: {
|
|
138
142
|
base?: {
|
|
139
143
|
model?: string | undefined;
|
|
@@ -148,12 +152,6 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
148
152
|
providerOptions?: Record<string, any> | undefined;
|
|
149
153
|
} | undefined;
|
|
150
154
|
} | null;
|
|
151
|
-
stopWhen: {
|
|
152
|
-
transferCountIs?: number | undefined;
|
|
153
|
-
} | null;
|
|
154
|
-
tenantId: string;
|
|
155
|
-
defaultSubAgentId: string | null;
|
|
156
|
-
contextConfigId: string | null;
|
|
157
155
|
prompt: string | null;
|
|
158
156
|
statusUpdates: {
|
|
159
157
|
enabled?: boolean | undefined;
|
|
@@ -170,7 +168,9 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
170
168
|
} | undefined;
|
|
171
169
|
}[] | undefined;
|
|
172
170
|
} | null;
|
|
173
|
-
|
|
171
|
+
stopWhen: {
|
|
172
|
+
transferCountIs?: number | undefined;
|
|
173
|
+
} | null;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -228,11 +228,15 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
231
|
-
description: string | null;
|
|
232
|
-
name: string;
|
|
233
231
|
id: string;
|
|
232
|
+
name: string;
|
|
234
233
|
createdAt: string;
|
|
235
234
|
updatedAt: string;
|
|
235
|
+
projectId: string;
|
|
236
|
+
tenantId: string;
|
|
237
|
+
description: string | null;
|
|
238
|
+
defaultSubAgentId: string | null;
|
|
239
|
+
contextConfigId: string | null;
|
|
236
240
|
models: {
|
|
237
241
|
base?: {
|
|
238
242
|
model?: string | undefined;
|
|
@@ -247,12 +251,6 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
247
251
|
providerOptions?: Record<string, any> | undefined;
|
|
248
252
|
} | undefined;
|
|
249
253
|
} | null;
|
|
250
|
-
stopWhen: {
|
|
251
|
-
transferCountIs?: number | undefined;
|
|
252
|
-
} | null;
|
|
253
|
-
tenantId: string;
|
|
254
|
-
defaultSubAgentId: string | null;
|
|
255
|
-
contextConfigId: string | null;
|
|
256
254
|
prompt: string | null;
|
|
257
255
|
statusUpdates: {
|
|
258
256
|
enabled?: boolean | undefined;
|
|
@@ -269,7 +267,9 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
269
267
|
} | undefined;
|
|
270
268
|
}[] | undefined;
|
|
271
269
|
} | null;
|
|
272
|
-
|
|
270
|
+
stopWhen: {
|
|
271
|
+
transferCountIs?: number | undefined;
|
|
272
|
+
} | null;
|
|
273
273
|
}>;
|
|
274
274
|
declare const updateAgent: (db: DatabaseClient) => (params: {
|
|
275
275
|
scopes: AgentScopeConfig;
|
|
@@ -7,28 +7,28 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
name: string | null;
|
|
11
10
|
id: string;
|
|
11
|
+
name: string | null;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
expiresAt: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
18
18
|
publicId: string;
|
|
19
19
|
keyHash: string;
|
|
20
20
|
keyPrefix: string;
|
|
21
21
|
lastUsedAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
name: string | null;
|
|
25
24
|
id: string;
|
|
25
|
+
name: string | null;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
28
|
expiresAt: string | null;
|
|
29
|
-
tenantId: string;
|
|
30
|
-
projectId: string;
|
|
31
29
|
agentId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
32
32
|
publicId: string;
|
|
33
33
|
keyHash: string;
|
|
34
34
|
keyPrefix: string;
|
|
@@ -38,14 +38,14 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
name: string | null;
|
|
42
41
|
id: string;
|
|
42
|
+
name: string | null;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
45
|
expiresAt: string | null;
|
|
46
|
-
tenantId: string;
|
|
47
|
-
projectId: string;
|
|
48
46
|
agentId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
49
49
|
publicId: string;
|
|
50
50
|
keyHash: string;
|
|
51
51
|
keyPrefix: string;
|
|
@@ -65,14 +65,14 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
-
name: string | null;
|
|
69
68
|
id: string;
|
|
69
|
+
name: string | null;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
72
|
expiresAt: string | null;
|
|
73
|
-
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
73
|
agentId: string;
|
|
74
|
+
projectId: string;
|
|
75
|
+
tenantId: string;
|
|
76
76
|
publicId: string;
|
|
77
77
|
keyHash: string;
|
|
78
78
|
keyPrefix: string;
|