@inkeep/agents-core 0.0.0-dev-20260102022857 → 0.0.0-dev-20260105192809
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.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -1
- package/dist/data-access/agents.d.ts +20 -20
- package/dist/data-access/apiKeys.d.ts +20 -20
- package/dist/data-access/artifactComponents.d.ts +10 -10
- package/dist/data-access/contextConfigs.d.ts +12 -12
- 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 +8 -8
- package/dist/data-access/messages.d.ts +15 -15
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/subAgentRelations.d.ts +26 -26
- 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 +4 -4
- package/dist/data-access/tools.d.ts +27 -27
- package/dist/db/schema.d.ts +288 -288
- package/dist/validation/schemas.d.ts +858 -858
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -826,25 +826,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
826
826
|
ac: better_auth_plugins0.AccessControl;
|
|
827
827
|
roles: {
|
|
828
828
|
member: {
|
|
829
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
830
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
829
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
830
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
831
831
|
connector: "OR" | "AND";
|
|
832
832
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
833
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
833
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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" | "
|
|
837
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
836
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
837
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
838
838
|
connector: "OR" | "AND";
|
|
839
839
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
840
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
840
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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" | "
|
|
844
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
843
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
844
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
845
845
|
connector: "OR" | "AND";
|
|
846
846
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
847
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
847
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
848
848
|
};
|
|
849
849
|
};
|
|
850
850
|
membershipLimit: number;
|
|
@@ -1105,25 +1105,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1105
1105
|
ac: better_auth_plugins0.AccessControl;
|
|
1106
1106
|
roles: {
|
|
1107
1107
|
member: {
|
|
1108
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1109
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1108
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1109
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1110
1110
|
connector: "OR" | "AND";
|
|
1111
1111
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1112
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1112
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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" | "
|
|
1116
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1115
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1116
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1117
1117
|
connector: "OR" | "AND";
|
|
1118
1118
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1119
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1119
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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" | "
|
|
1123
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1122
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1123
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1124
1124
|
connector: "OR" | "AND";
|
|
1125
1125
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1126
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1126
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1127
1127
|
};
|
|
1128
1128
|
};
|
|
1129
1129
|
membershipLimit: number;
|
|
@@ -4,25 +4,25 @@ import { AccessControl } from "better-auth/plugins/access";
|
|
|
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" | "
|
|
8
|
-
actions: better_auth_plugins53.Subset<"function" | "organization" | "
|
|
7
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
|
|
8
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
|
|
9
9
|
connector: "OR" | "AND";
|
|
10
10
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
11
|
-
statements: better_auth_plugins53.Subset<"function" | "organization" | "
|
|
11
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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" | "
|
|
15
|
-
actions: better_auth_plugins53.Subset<"function" | "organization" | "
|
|
14
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
|
|
15
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
|
|
16
16
|
connector: "OR" | "AND";
|
|
17
17
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
18
|
-
statements: better_auth_plugins53.Subset<"function" | "organization" | "
|
|
18
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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" | "
|
|
22
|
-
actions: better_auth_plugins53.Subset<"function" | "organization" | "
|
|
21
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key] | {
|
|
22
|
+
actions: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins53.Statements>[key];
|
|
23
23
|
connector: "OR" | "AND";
|
|
24
24
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins53.AuthorizeResponse;
|
|
25
|
-
statements: better_auth_plugins53.Subset<"function" | "organization" | "
|
|
25
|
+
statements: better_auth_plugins53.Subset<"function" | "organization" | "agent" | "member" | "invitation" | "project" | "credential" | "tool" | "ac" | "sub_agent" | "api_key" | "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 };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ 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";
|
|
7
8
|
import { ConversationHistoryConfig, CredentialStoreType, MCPTransportType } from "./types/utility.js";
|
|
8
9
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
9
10
|
import { z } from "@hono/zod-openapi";
|
|
@@ -178,9 +179,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
178
179
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
179
180
|
id: z.ZodString;
|
|
180
181
|
name: z.ZodString;
|
|
182
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
181
183
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
182
184
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
183
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
184
185
|
models: z.ZodOptional<z.ZodObject<{
|
|
185
186
|
base: z.ZodOptional<z.ZodObject<{
|
|
186
187
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -8,14 +8,14 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
8
|
declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
tenantId: string;
|
|
12
|
+
projectId: string;
|
|
11
13
|
id: string;
|
|
12
14
|
name: string;
|
|
13
|
-
createdAt: string;
|
|
14
|
-
updatedAt: string;
|
|
15
15
|
description: string | null;
|
|
16
|
-
tenantId: string;
|
|
17
|
-
projectId: string;
|
|
18
16
|
prompt: string | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
updatedAt: string;
|
|
19
19
|
models: {
|
|
20
20
|
base?: {
|
|
21
21
|
model?: string | undefined;
|
|
@@ -54,14 +54,14 @@ declare const getAgentById: (db: DatabaseClient) => (params: {
|
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
56
56
|
}) => Promise<{
|
|
57
|
+
tenantId: string;
|
|
58
|
+
projectId: string;
|
|
57
59
|
id: string;
|
|
58
60
|
name: string;
|
|
59
|
-
createdAt: string;
|
|
60
|
-
updatedAt: string;
|
|
61
61
|
description: string | null;
|
|
62
|
-
tenantId: string;
|
|
63
|
-
projectId: string;
|
|
64
62
|
prompt: string | null;
|
|
63
|
+
createdAt: string;
|
|
64
|
+
updatedAt: string;
|
|
65
65
|
models: {
|
|
66
66
|
base?: {
|
|
67
67
|
model?: string | undefined;
|
|
@@ -97,15 +97,15 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
97
97
|
}[] | undefined;
|
|
98
98
|
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
+
tenantId: string;
|
|
101
|
+
projectId: string;
|
|
100
102
|
id: string;
|
|
101
103
|
name: string;
|
|
102
|
-
createdAt: string;
|
|
103
|
-
updatedAt: string;
|
|
104
104
|
description: string | null;
|
|
105
|
-
tenantId: string;
|
|
106
|
-
projectId: string;
|
|
107
105
|
prompt: string | null;
|
|
108
106
|
agentId: string;
|
|
107
|
+
createdAt: string;
|
|
108
|
+
updatedAt: string;
|
|
109
109
|
models: {
|
|
110
110
|
base?: {
|
|
111
111
|
model?: string | undefined;
|
|
@@ -129,14 +129,14 @@ declare const getAgentWithDefaultSubAgent: (db: DatabaseClient) => (params: {
|
|
|
129
129
|
declare const listAgents: (db: DatabaseClient) => (params: {
|
|
130
130
|
scopes: ProjectScopeConfig;
|
|
131
131
|
}) => Promise<{
|
|
132
|
+
tenantId: string;
|
|
133
|
+
projectId: string;
|
|
132
134
|
id: string;
|
|
133
135
|
name: string;
|
|
134
|
-
createdAt: string;
|
|
135
|
-
updatedAt: string;
|
|
136
136
|
description: string | null;
|
|
137
|
-
tenantId: string;
|
|
138
|
-
projectId: string;
|
|
139
137
|
prompt: string | null;
|
|
138
|
+
createdAt: string;
|
|
139
|
+
updatedAt: string;
|
|
140
140
|
models: {
|
|
141
141
|
base?: {
|
|
142
142
|
model?: string | undefined;
|
|
@@ -228,14 +228,14 @@ declare const listAgentsPaginated: (db: DatabaseClient) => (params: {
|
|
|
228
228
|
};
|
|
229
229
|
}>;
|
|
230
230
|
declare const createAgent: (db: DatabaseClient) => (data: AgentInsert) => Promise<{
|
|
231
|
+
tenantId: string;
|
|
232
|
+
projectId: string;
|
|
231
233
|
id: string;
|
|
232
234
|
name: string;
|
|
233
|
-
createdAt: string;
|
|
234
|
-
updatedAt: string;
|
|
235
235
|
description: string | null;
|
|
236
|
-
tenantId: string;
|
|
237
|
-
projectId: string;
|
|
238
236
|
prompt: string | null;
|
|
237
|
+
createdAt: string;
|
|
238
|
+
updatedAt: string;
|
|
239
239
|
models: {
|
|
240
240
|
base?: {
|
|
241
241
|
model?: string | undefined;
|
|
@@ -7,49 +7,49 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
id: string;
|
|
11
|
-
name: string | null;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
10
|
tenantId: string;
|
|
16
11
|
projectId: string;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string | null;
|
|
17
14
|
agentId: string;
|
|
18
15
|
publicId: string;
|
|
19
16
|
keyHash: string;
|
|
20
17
|
keyPrefix: string;
|
|
21
18
|
lastUsedAt: string | null;
|
|
22
|
-
|
|
23
|
-
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
24
|
-
id: string;
|
|
25
|
-
name: string | null;
|
|
19
|
+
expiresAt: string | null;
|
|
26
20
|
createdAt: string;
|
|
27
21
|
updatedAt: string;
|
|
28
|
-
|
|
22
|
+
} | undefined>;
|
|
23
|
+
declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) => Promise<{
|
|
29
24
|
tenantId: string;
|
|
30
25
|
projectId: string;
|
|
26
|
+
id: string;
|
|
27
|
+
name: string | null;
|
|
31
28
|
agentId: string;
|
|
32
29
|
publicId: string;
|
|
33
30
|
keyHash: string;
|
|
34
31
|
keyPrefix: string;
|
|
35
32
|
lastUsedAt: string | null;
|
|
33
|
+
expiresAt: string | null;
|
|
34
|
+
createdAt: string;
|
|
35
|
+
updatedAt: string;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
39
39
|
agentId?: string;
|
|
40
40
|
}) => Promise<{
|
|
41
|
-
id: string;
|
|
42
|
-
name: string | null;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
41
|
tenantId: string;
|
|
47
42
|
projectId: string;
|
|
43
|
+
id: string;
|
|
44
|
+
name: string | null;
|
|
48
45
|
agentId: string;
|
|
49
46
|
publicId: string;
|
|
50
47
|
keyHash: string;
|
|
51
48
|
keyPrefix: string;
|
|
52
49
|
lastUsedAt: string | null;
|
|
50
|
+
expiresAt: string | null;
|
|
51
|
+
createdAt: string;
|
|
52
|
+
updatedAt: string;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -65,18 +65,18 @@ declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
|
65
65
|
};
|
|
66
66
|
}>;
|
|
67
67
|
declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Promise<{
|
|
68
|
-
id: string;
|
|
69
|
-
name: string | null;
|
|
70
|
-
createdAt: string;
|
|
71
|
-
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
68
|
tenantId: string;
|
|
74
69
|
projectId: string;
|
|
70
|
+
id: string;
|
|
71
|
+
name: string | null;
|
|
75
72
|
agentId: string;
|
|
76
73
|
publicId: string;
|
|
77
74
|
keyHash: string;
|
|
78
75
|
keyPrefix: string;
|
|
79
76
|
lastUsedAt: string | null;
|
|
77
|
+
expiresAt: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
updatedAt: string;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: DatabaseClient) => (params: {
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
+
tenantId: string;
|
|
11
|
+
projectId: string;
|
|
10
12
|
id: string;
|
|
11
13
|
name: string;
|
|
14
|
+
description: string | null;
|
|
12
15
|
createdAt: string;
|
|
13
16
|
updatedAt: string;
|
|
14
|
-
description: string | null;
|
|
15
|
-
tenantId: string;
|
|
16
|
-
projectId: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
} | undefined>;
|
|
19
19
|
declare const listArtifactComponents: (db: DatabaseClient) => (params: {
|
|
@@ -41,13 +41,13 @@ declare const listArtifactComponentsPaginated: (db: DatabaseClient) => (params:
|
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
declare const createArtifactComponent: (db: DatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
44
|
+
tenantId: string;
|
|
45
|
+
projectId: string;
|
|
44
46
|
id: string;
|
|
45
47
|
name: string;
|
|
48
|
+
description: string | null;
|
|
46
49
|
createdAt: string;
|
|
47
50
|
updatedAt: string;
|
|
48
|
-
description: string | null;
|
|
49
|
-
tenantId: string;
|
|
50
|
-
projectId: string;
|
|
51
51
|
props: Record<string, unknown> | null;
|
|
52
52
|
}>;
|
|
53
53
|
declare const updateArtifactComponent: (db: DatabaseClient) => (params: {
|
|
@@ -84,11 +84,11 @@ declare const associateArtifactComponentWithAgent: (db: DatabaseClient) => (para
|
|
|
84
84
|
scopes: SubAgentScopeConfig;
|
|
85
85
|
artifactComponentId: string;
|
|
86
86
|
}) => Promise<{
|
|
87
|
-
id: string;
|
|
88
|
-
createdAt: string;
|
|
89
87
|
tenantId: string;
|
|
90
88
|
projectId: string;
|
|
89
|
+
id: string;
|
|
91
90
|
agentId: string;
|
|
91
|
+
createdAt: string;
|
|
92
92
|
subAgentId: string;
|
|
93
93
|
artifactComponentId: string;
|
|
94
94
|
}>;
|
|
@@ -127,11 +127,11 @@ declare const upsertAgentArtifactComponentRelation: (db: DatabaseClient) => (par
|
|
|
127
127
|
scopes: SubAgentScopeConfig;
|
|
128
128
|
artifactComponentId: string;
|
|
129
129
|
}) => Promise<{
|
|
130
|
-
id: string;
|
|
131
|
-
createdAt: string;
|
|
132
130
|
tenantId: string;
|
|
133
131
|
projectId: string;
|
|
132
|
+
id: string;
|
|
134
133
|
agentId: string;
|
|
134
|
+
createdAt: string;
|
|
135
135
|
subAgentId: string;
|
|
136
136
|
artifactComponentId: string;
|
|
137
137
|
} | null>;
|
|
@@ -8,24 +8,24 @@ declare const getContextConfigById: (db: DatabaseClient) => (params: {
|
|
|
8
8
|
scopes: AgentScopeConfig;
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
id: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
updatedAt: string;
|
|
14
11
|
tenantId: string;
|
|
15
12
|
projectId: string;
|
|
13
|
+
id: string;
|
|
16
14
|
agentId: string;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
17
|
headersSchema: unknown;
|
|
18
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: DatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
|
-
id: string;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
23
|
tenantId: string;
|
|
27
24
|
projectId: string;
|
|
25
|
+
id: string;
|
|
28
26
|
agentId: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
updatedAt: string;
|
|
29
29
|
headersSchema: unknown;
|
|
30
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
@@ -42,12 +42,12 @@ declare const listContextConfigsPaginated: (db: DatabaseClient) => (params: {
|
|
|
42
42
|
};
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: DatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
|
-
id: string;
|
|
46
|
-
createdAt: string;
|
|
47
|
-
updatedAt: string;
|
|
48
45
|
tenantId: string;
|
|
49
46
|
projectId: string;
|
|
47
|
+
id: string;
|
|
50
48
|
agentId: string;
|
|
49
|
+
createdAt: string;
|
|
50
|
+
updatedAt: string;
|
|
51
51
|
headersSchema: unknown;
|
|
52
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
@@ -82,12 +82,12 @@ declare const countContextConfigs: (db: DatabaseClient) => (params: {
|
|
|
82
82
|
declare const upsertContextConfig: (db: DatabaseClient) => (params: {
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
|
-
id: string;
|
|
86
|
-
createdAt: string;
|
|
87
|
-
updatedAt: string;
|
|
88
85
|
tenantId: string;
|
|
89
86
|
projectId: string;
|
|
87
|
+
id: string;
|
|
90
88
|
agentId: string;
|
|
89
|
+
createdAt: string;
|
|
90
|
+
updatedAt: string;
|
|
91
91
|
headersSchema: unknown;
|
|
92
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
@@ -14,14 +14,14 @@ declare const listConversations: (db: DatabaseClient) => (params: {
|
|
|
14
14
|
total: number;
|
|
15
15
|
}>;
|
|
16
16
|
declare const createConversation: (db: DatabaseClient) => (params: ConversationInsert) => Promise<{
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
17
19
|
id: string;
|
|
20
|
+
title: string | null;
|
|
18
21
|
createdAt: string;
|
|
19
22
|
updatedAt: string;
|
|
20
23
|
userId: string | null;
|
|
21
24
|
metadata: ConversationMetadata | null;
|
|
22
|
-
tenantId: string;
|
|
23
|
-
projectId: string;
|
|
24
|
-
title: string | null;
|
|
25
25
|
activeSubAgentId: string;
|
|
26
26
|
lastContextResolution: string | null;
|
|
27
27
|
}>;
|
|
@@ -65,14 +65,14 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
65
65
|
scopes: ProjectScopeConfig;
|
|
66
66
|
conversationId: string;
|
|
67
67
|
}) => Promise<{
|
|
68
|
+
tenantId: string;
|
|
69
|
+
projectId: string;
|
|
68
70
|
id: string;
|
|
71
|
+
title: string | null;
|
|
69
72
|
createdAt: string;
|
|
70
73
|
updatedAt: string;
|
|
71
74
|
userId: string | null;
|
|
72
75
|
metadata: ConversationMetadata | null;
|
|
73
|
-
tenantId: string;
|
|
74
|
-
projectId: string;
|
|
75
|
-
title: string | null;
|
|
76
76
|
activeSubAgentId: string;
|
|
77
77
|
lastContextResolution: string | null;
|
|
78
78
|
} | undefined>;
|
|
@@ -89,14 +89,14 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
89
89
|
metadata?: ConversationMetadata | null | undefined;
|
|
90
90
|
contextConfigId?: string | undefined;
|
|
91
91
|
} | {
|
|
92
|
+
tenantId: string;
|
|
93
|
+
projectId: string;
|
|
92
94
|
id: string;
|
|
95
|
+
title: string | null;
|
|
93
96
|
createdAt: string;
|
|
94
97
|
updatedAt: string;
|
|
95
98
|
userId: string | null;
|
|
96
99
|
metadata: ConversationMetadata | null;
|
|
97
|
-
tenantId: string;
|
|
98
|
-
projectId: string;
|
|
99
|
-
title: string | null;
|
|
100
100
|
activeSubAgentId: string;
|
|
101
101
|
lastContextResolution: string | null;
|
|
102
102
|
}>;
|
|
@@ -115,14 +115,14 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
115
115
|
scopes: ProjectScopeConfig;
|
|
116
116
|
conversationId: string;
|
|
117
117
|
}) => Promise<{
|
|
118
|
+
tenantId: string;
|
|
119
|
+
projectId: string;
|
|
118
120
|
id: string;
|
|
121
|
+
title: string | null;
|
|
119
122
|
createdAt: string;
|
|
120
123
|
updatedAt: string;
|
|
121
124
|
userId: string | null;
|
|
122
125
|
metadata: ConversationMetadata | null;
|
|
123
|
-
tenantId: string;
|
|
124
|
-
projectId: string;
|
|
125
|
-
title: string | null;
|
|
126
126
|
activeSubAgentId: string;
|
|
127
127
|
lastContextResolution: string | null;
|
|
128
128
|
} | undefined>;
|
|
@@ -64,11 +64,11 @@ declare const associateDataComponentWithAgent: (db: DatabaseClient) => (params:
|
|
|
64
64
|
scopes: SubAgentScopeConfig;
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
|
-
id: string;
|
|
68
|
-
createdAt: string;
|
|
69
67
|
tenantId: string;
|
|
70
68
|
projectId: string;
|
|
69
|
+
id: string;
|
|
71
70
|
agentId: string;
|
|
71
|
+
createdAt: string;
|
|
72
72
|
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
@@ -106,11 +106,11 @@ declare const upsertAgentDataComponentRelation: (db: DatabaseClient) => (params:
|
|
|
106
106
|
scopes: SubAgentScopeConfig;
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
|
-
id: string;
|
|
110
|
-
createdAt: string;
|
|
111
109
|
tenantId: string;
|
|
112
110
|
projectId: string;
|
|
111
|
+
id: string;
|
|
113
112
|
agentId: string;
|
|
113
|
+
createdAt: string;
|
|
114
114
|
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
+
tenantId: string;
|
|
57
|
+
projectId: string;
|
|
56
58
|
id: string;
|
|
57
59
|
name: string;
|
|
58
|
-
createdAt: string;
|
|
59
|
-
updatedAt: string;
|
|
60
60
|
description: string | null;
|
|
61
|
-
tenantId: string;
|
|
62
|
-
projectId: string;
|
|
63
61
|
agentId: string;
|
|
62
|
+
createdAt: string;
|
|
63
|
+
updatedAt: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: DatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
+
tenantId: string;
|
|
99
|
+
projectId: string;
|
|
98
100
|
id: string;
|
|
99
101
|
name: string;
|
|
100
|
-
createdAt: string;
|
|
101
|
-
updatedAt: string;
|
|
102
102
|
description: string | null;
|
|
103
|
-
tenantId: string;
|
|
104
|
-
projectId: string;
|
|
105
103
|
agentId: string;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: DatabaseClient) => (params: {
|