@inkeep/agents-core 0.0.0-dev-20260109041402 → 0.0.0-dev-20260112224755
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 -2
- package/dist/data-access/agents.d.ts +32 -32
- package/dist/data-access/apiKeys.d.ts +12 -12
- package/dist/data-access/artifactComponents.d.ts +6 -6
- 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 +4 -4
- package/dist/data-access/functionTools.d.ts +4 -4
- package/dist/data-access/messages.d.ts +9 -9
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgentRelations.d.ts +20 -20
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgents.d.ts +12 -12
- package/dist/data-access/tasks.d.ts +3 -3
- package/dist/data-access/tools.d.ts +21 -21
- package/dist/db/schema.d.ts +405 -405
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +818 -818
- 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 zod0 from "zod";
|
|
7
7
|
import { GoogleOptions } from "better-auth/social-providers";
|
|
8
8
|
|
|
@@ -185,7 +185,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
185
185
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
186
186
|
}[];
|
|
187
187
|
};
|
|
188
|
-
options:
|
|
188
|
+
options: better_auth_plugins20.BearerOptions | undefined;
|
|
189
189
|
}, {
|
|
190
190
|
id: "sso";
|
|
191
191
|
endpoints: {
|
|
@@ -813,30 +813,30 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
813
813
|
};
|
|
814
814
|
}, {
|
|
815
815
|
id: "organization";
|
|
816
|
-
endpoints:
|
|
816
|
+
endpoints: better_auth_plugins20.OrganizationEndpoints<{
|
|
817
817
|
allowUserToCreateOrganization: true;
|
|
818
|
-
ac:
|
|
818
|
+
ac: better_auth_plugins20.AccessControl;
|
|
819
819
|
roles: {
|
|
820
820
|
member: {
|
|
821
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
822
|
-
actions:
|
|
821
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
822
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
823
823
|
connector: "OR" | "AND";
|
|
824
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
825
|
-
statements:
|
|
824
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
825
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
826
826
|
};
|
|
827
827
|
admin: {
|
|
828
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
829
|
-
actions:
|
|
828
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
829
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
830
830
|
connector: "OR" | "AND";
|
|
831
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
832
|
-
statements:
|
|
831
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
832
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
833
833
|
};
|
|
834
834
|
owner: {
|
|
835
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
836
|
-
actions:
|
|
835
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
836
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
837
837
|
connector: "OR" | "AND";
|
|
838
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
839
|
-
statements:
|
|
838
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
839
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
840
840
|
};
|
|
841
841
|
};
|
|
842
842
|
membershipLimit: number;
|
|
@@ -846,9 +846,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
846
846
|
id: string;
|
|
847
847
|
role: string;
|
|
848
848
|
email: string;
|
|
849
|
-
organization:
|
|
850
|
-
invitation:
|
|
851
|
-
inviter:
|
|
849
|
+
organization: better_auth_plugins20.Organization;
|
|
850
|
+
invitation: better_auth_plugins20.Invitation;
|
|
851
|
+
inviter: better_auth_plugins20.Member & {
|
|
852
852
|
user: better_auth0.User;
|
|
853
853
|
};
|
|
854
854
|
}): Promise<void>;
|
|
@@ -981,7 +981,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
981
981
|
organizationId: string;
|
|
982
982
|
email: string;
|
|
983
983
|
role: "member" | "admin" | "owner";
|
|
984
|
-
status:
|
|
984
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
985
985
|
inviterId: string;
|
|
986
986
|
expiresAt: Date;
|
|
987
987
|
createdAt: Date;
|
|
@@ -1020,7 +1020,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1020
1020
|
organizationId: string;
|
|
1021
1021
|
email: string;
|
|
1022
1022
|
role: "member" | "admin" | "owner";
|
|
1023
|
-
status:
|
|
1023
|
+
status: better_auth_plugins20.InvitationStatus;
|
|
1024
1024
|
inviterId: string;
|
|
1025
1025
|
expiresAt: Date;
|
|
1026
1026
|
createdAt: Date;
|
|
@@ -1094,28 +1094,28 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1094
1094
|
};
|
|
1095
1095
|
options: NoInfer<{
|
|
1096
1096
|
allowUserToCreateOrganization: true;
|
|
1097
|
-
ac:
|
|
1097
|
+
ac: better_auth_plugins20.AccessControl;
|
|
1098
1098
|
roles: {
|
|
1099
1099
|
member: {
|
|
1100
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1101
|
-
actions:
|
|
1100
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1101
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1102
1102
|
connector: "OR" | "AND";
|
|
1103
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1104
|
-
statements:
|
|
1103
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1104
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1105
1105
|
};
|
|
1106
1106
|
admin: {
|
|
1107
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1108
|
-
actions:
|
|
1107
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1109
1109
|
connector: "OR" | "AND";
|
|
1110
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1111
|
-
statements:
|
|
1110
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1111
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1112
1112
|
};
|
|
1113
1113
|
owner: {
|
|
1114
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1115
|
-
actions:
|
|
1114
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>[key];
|
|
1116
1116
|
connector: "OR" | "AND";
|
|
1117
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
1118
|
-
statements:
|
|
1117
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1118
|
+
statements: better_auth_plugins20.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins20.Statements>;
|
|
1119
1119
|
};
|
|
1120
1120
|
};
|
|
1121
1121
|
membershipLimit: number;
|
|
@@ -1125,9 +1125,9 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1125
1125
|
id: string;
|
|
1126
1126
|
role: string;
|
|
1127
1127
|
email: string;
|
|
1128
|
-
organization:
|
|
1129
|
-
invitation:
|
|
1130
|
-
inviter:
|
|
1128
|
+
organization: better_auth_plugins20.Organization;
|
|
1129
|
+
invitation: better_auth_plugins20.Invitation;
|
|
1130
|
+
inviter: better_auth_plugins20.Member & {
|
|
1131
1131
|
user: better_auth0.User;
|
|
1132
1132
|
};
|
|
1133
1133
|
}): Promise<void>;
|
|
@@ -1465,8 +1465,8 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1465
1465
|
readonly AUTHENTICATION_REQUIRED: "Authentication required";
|
|
1466
1466
|
};
|
|
1467
1467
|
options: Partial<{
|
|
1468
|
-
expiresIn:
|
|
1469
|
-
interval:
|
|
1468
|
+
expiresIn: better_auth_plugins20.TimeString;
|
|
1469
|
+
interval: better_auth_plugins20.TimeString;
|
|
1470
1470
|
deviceCodeLength: number;
|
|
1471
1471
|
userCodeLength: number;
|
|
1472
1472
|
schema: {
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins0 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" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "member" | "invitation" | "agent" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team" | "ac", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -64,8 +64,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
64
64
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
65
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
66
|
type: z.ZodOptional<z.ZodEnum<{
|
|
67
|
-
internal: "internal";
|
|
68
67
|
external: "external";
|
|
68
|
+
internal: "internal";
|
|
69
69
|
}>>;
|
|
70
70
|
}, z.core.$strip>;
|
|
71
71
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -192,9 +192,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
192
192
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
193
193
|
id: z.ZodString;
|
|
194
194
|
name: z.ZodString;
|
|
195
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
196
195
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
197
196
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
197
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
198
198
|
models: z.ZodOptional<z.ZodObject<{
|
|
199
199
|
base: z.ZodOptional<z.ZodObject<{
|
|
200
200
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -13,6 +13,10 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
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,7 +47,9 @@ 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;
|
|
@@ -59,6 +59,10 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
59
59
|
createdAt: string;
|
|
60
60
|
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
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
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
102
|
createdAt: string;
|
|
103
103
|
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
+
agentId: string;
|
|
106
|
+
projectId: string;
|
|
107
|
+
tenantId: string;
|
|
105
108
|
models: {
|
|
106
109
|
base?: {
|
|
107
110
|
model?: string | undefined;
|
|
@@ -116,13 +119,10 @@ 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>;
|
|
@@ -134,6 +134,10 @@ declare const listAgents: (db: DatabaseClient) => (params: {
|
|
|
134
134
|
createdAt: string;
|
|
135
135
|
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
+
projectId: string;
|
|
138
|
+
tenantId: string;
|
|
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;
|
|
@@ -233,6 +233,10 @@ declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promis
|
|
|
233
233
|
createdAt: string;
|
|
234
234
|
updatedAt: string;
|
|
235
235
|
description: string | null;
|
|
236
|
+
projectId: string;
|
|
237
|
+
tenantId: string;
|
|
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;
|
|
@@ -11,28 +11,28 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
11
11
|
name: string | null;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
|
|
15
|
-
projectId: string;
|
|
14
|
+
expiresAt: string | null;
|
|
16
15
|
agentId: string;
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
17
18
|
publicId: string;
|
|
18
19
|
keyHash: string;
|
|
19
20
|
keyPrefix: string;
|
|
20
21
|
lastUsedAt: string | null;
|
|
21
|
-
expiresAt: string | null;
|
|
22
22
|
} | undefined>;
|
|
23
23
|
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
24
24
|
id: string;
|
|
25
25
|
name: string | null;
|
|
26
26
|
createdAt: string;
|
|
27
27
|
updatedAt: string;
|
|
28
|
-
|
|
29
|
-
projectId: string;
|
|
28
|
+
expiresAt: string | null;
|
|
30
29
|
agentId: string;
|
|
30
|
+
projectId: string;
|
|
31
|
+
tenantId: string;
|
|
31
32
|
publicId: string;
|
|
32
33
|
keyHash: string;
|
|
33
34
|
keyPrefix: string;
|
|
34
35
|
lastUsedAt: string | null;
|
|
35
|
-
expiresAt: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -42,14 +42,14 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
|
42
42
|
name: string | null;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
|
-
|
|
46
|
-
projectId: string;
|
|
45
|
+
expiresAt: string | null;
|
|
47
46
|
agentId: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
tenantId: string;
|
|
48
49
|
publicId: string;
|
|
49
50
|
keyHash: string;
|
|
50
51
|
keyPrefix: string;
|
|
51
52
|
lastUsedAt: string | null;
|
|
52
|
-
expiresAt: string | null;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -69,14 +69,14 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
|
|
|
69
69
|
name: string | null;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
-
|
|
73
|
-
projectId: string;
|
|
72
|
+
expiresAt: string | null;
|
|
74
73
|
agentId: string;
|
|
74
|
+
projectId: string;
|
|
75
|
+
tenantId: string;
|
|
75
76
|
publicId: string;
|
|
76
77
|
keyHash: string;
|
|
77
78
|
keyPrefix: string;
|
|
78
79
|
lastUsedAt: string | null;
|
|
79
|
-
expiresAt: string | null;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -12,8 +12,8 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
14
|
description: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
16
|
+
tenantId: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -54,8 +54,8 @@ declare const createArtifactComponent: (db: DatabaseClient) => (params: Artifact
|
|
|
54
54
|
createdAt: string;
|
|
55
55
|
updatedAt: string;
|
|
56
56
|
description: string | null;
|
|
57
|
-
tenantId: string;
|
|
58
57
|
projectId: string;
|
|
58
|
+
tenantId: string;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -106,9 +106,9 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
106
106
|
}) => Promise<{
|
|
107
107
|
id: string;
|
|
108
108
|
createdAt: string;
|
|
109
|
-
tenantId: string;
|
|
110
|
-
projectId: string;
|
|
111
109
|
agentId: string;
|
|
110
|
+
projectId: string;
|
|
111
|
+
tenantId: string;
|
|
112
112
|
subAgentId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
@@ -149,9 +149,9 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
149
149
|
}) => Promise<{
|
|
150
150
|
id: string;
|
|
151
151
|
createdAt: string;
|
|
152
|
-
tenantId: string;
|
|
153
|
-
projectId: string;
|
|
154
152
|
agentId: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
tenantId: string;
|
|
155
155
|
subAgentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
tenantId: string;
|
|
15
|
-
projectId: string;
|
|
16
14
|
headersSchema: unknown;
|
|
17
15
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
18
16
|
agentId: string;
|
|
17
|
+
projectId: string;
|
|
18
|
+
tenantId: string;
|
|
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
|
-
tenantId: string;
|
|
27
|
-
projectId: string;
|
|
28
26
|
headersSchema: unknown;
|
|
29
27
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
30
28
|
agentId: string;
|
|
29
|
+
projectId: string;
|
|
30
|
+
tenantId: string;
|
|
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
|
-
tenantId: string;
|
|
49
|
-
projectId: string;
|
|
50
48
|
headersSchema: unknown;
|
|
51
49
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
52
50
|
agentId: string;
|
|
51
|
+
projectId: string;
|
|
52
|
+
tenantId: string;
|
|
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
|
-
tenantId: string;
|
|
89
|
-
projectId: string;
|
|
90
88
|
headersSchema: unknown;
|
|
91
89
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
92
90
|
agentId: string;
|
|
91
|
+
projectId: string;
|
|
92
|
+
tenantId: string;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|