@inkeep/agents-core 0.41.0 → 0.41.1
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 +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/data-access/apiKeys.d.ts +4 -4
- package/dist/data-access/conversations.d.ts +8 -8
- package/dist/data-access/messages.d.ts +6 -6
- package/dist/data-access/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/subAgentRelations.d.ts +2 -2
- package/dist/data-access/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/tasks.d.ts +2 -2
- package/dist/data-access/tools.d.ts +6 -6
- package/dist/db/schema.d.ts +405 -405
- package/dist/utils/model-factory.js +13 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +771 -771
- package/package.json +2 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -818,25 +818,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
818
818
|
ac: better_auth_plugins0.AccessControl;
|
|
819
819
|
roles: {
|
|
820
820
|
member: {
|
|
821
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
822
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
821
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
822
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
823
823
|
connector: "OR" | "AND";
|
|
824
824
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
825
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
825
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
826
826
|
};
|
|
827
827
|
admin: {
|
|
828
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
829
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
828
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
829
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
830
830
|
connector: "OR" | "AND";
|
|
831
831
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
832
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
832
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
833
833
|
};
|
|
834
834
|
owner: {
|
|
835
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
836
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
835
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
836
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
837
837
|
connector: "OR" | "AND";
|
|
838
838
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
839
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
839
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
840
840
|
};
|
|
841
841
|
};
|
|
842
842
|
membershipLimit: number;
|
|
@@ -1097,25 +1097,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1097
1097
|
ac: better_auth_plugins0.AccessControl;
|
|
1098
1098
|
roles: {
|
|
1099
1099
|
member: {
|
|
1100
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1101
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1100
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1101
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1102
1102
|
connector: "OR" | "AND";
|
|
1103
1103
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1104
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1104
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1105
1105
|
};
|
|
1106
1106
|
admin: {
|
|
1107
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1108
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1107
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1108
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1109
1109
|
connector: "OR" | "AND";
|
|
1110
1110
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1111
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1111
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1112
1112
|
};
|
|
1113
1113
|
owner: {
|
|
1114
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
1115
|
-
actions: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1114
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1115
|
+
actions: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1116
1116
|
connector: "OR" | "AND";
|
|
1117
1117
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1118
|
-
statements: better_auth_plugins0.Subset<"function" | "organization" | "
|
|
1118
|
+
statements: better_auth_plugins0.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1119
1119
|
};
|
|
1120
1120
|
};
|
|
1121
1121
|
membershipLimit: number;
|
|
@@ -5,25 +5,25 @@ import { organizationClient } from "better-auth/client/plugins";
|
|
|
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: better_auth_plugins55.Subset<"function" | "organization" | "
|
|
8
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins55.Subset<"function" | "organization" | "
|
|
12
|
+
statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
16
|
-
actions: better_auth_plugins55.Subset<"function" | "organization" | "
|
|
15
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins55.Subset<"function" | "organization" | "
|
|
19
|
+
statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "function" | "organization" | "
|
|
23
|
-
actions: better_auth_plugins55.Subset<"function" | "organization" | "
|
|
22
|
+
authorize<K_1 extends "function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins55.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins55.Subset<"function" | "organization" | "
|
|
26
|
+
statements: better_auth_plugins55.Subset<"function" | "organization" | "agent" | "project" | "tool" | "invitation" | "member" | "credential" | "ac" | "sub_agent" | "api_key" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -11,7 +11,6 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
11
11
|
name: string | null;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
expiresAt: string | null;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
agentId: string;
|
|
@@ -19,13 +18,13 @@ declare const getApiKeyById: (db: DatabaseClient) => (params: {
|
|
|
19
18
|
keyHash: string;
|
|
20
19
|
keyPrefix: string;
|
|
21
20
|
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
|
-
expiresAt: string | null;
|
|
29
28
|
tenantId: string;
|
|
30
29
|
projectId: string;
|
|
31
30
|
agentId: string;
|
|
@@ -33,6 +32,7 @@ declare const getApiKeyByPublicId: (db: DatabaseClient) => (publicId: string) =>
|
|
|
33
32
|
keyHash: string;
|
|
34
33
|
keyPrefix: string;
|
|
35
34
|
lastUsedAt: string | null;
|
|
35
|
+
expiresAt: string | null;
|
|
36
36
|
} | undefined>;
|
|
37
37
|
declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
38
38
|
scopes: ProjectScopeConfig;
|
|
@@ -42,7 +42,6 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
|
42
42
|
name: string | null;
|
|
43
43
|
createdAt: string;
|
|
44
44
|
updatedAt: string;
|
|
45
|
-
expiresAt: string | null;
|
|
46
45
|
tenantId: string;
|
|
47
46
|
projectId: string;
|
|
48
47
|
agentId: string;
|
|
@@ -50,6 +49,7 @@ declare const listApiKeys: (db: DatabaseClient) => (params: {
|
|
|
50
49
|
keyHash: string;
|
|
51
50
|
keyPrefix: string;
|
|
52
51
|
lastUsedAt: string | null;
|
|
52
|
+
expiresAt: string | null;
|
|
53
53
|
}[]>;
|
|
54
54
|
declare const listApiKeysPaginated: (db: DatabaseClient) => (params: {
|
|
55
55
|
scopes: ProjectScopeConfig;
|
|
@@ -69,7 +69,6 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
|
|
|
69
69
|
name: string | null;
|
|
70
70
|
createdAt: string;
|
|
71
71
|
updatedAt: string;
|
|
72
|
-
expiresAt: string | null;
|
|
73
72
|
tenantId: string;
|
|
74
73
|
projectId: string;
|
|
75
74
|
agentId: string;
|
|
@@ -77,6 +76,7 @@ declare const createApiKey: (db: DatabaseClient) => (params: ApiKeyInsert) => Pr
|
|
|
77
76
|
keyHash: string;
|
|
78
77
|
keyPrefix: string;
|
|
79
78
|
lastUsedAt: string | null;
|
|
79
|
+
expiresAt: string | null;
|
|
80
80
|
}>;
|
|
81
81
|
declare const updateApiKey: (db: DatabaseClient) => (params: {
|
|
82
82
|
scopes: ProjectScopeConfig;
|
|
@@ -17,11 +17,11 @@ declare const createConversation: (db: DatabaseClient) => (params: ConversationI
|
|
|
17
17
|
id: string;
|
|
18
18
|
createdAt: string;
|
|
19
19
|
updatedAt: string;
|
|
20
|
-
userId: string | null;
|
|
21
|
-
metadata: ConversationMetadata | null;
|
|
22
20
|
title: string | null;
|
|
23
21
|
tenantId: string;
|
|
22
|
+
metadata: ConversationMetadata | null;
|
|
24
23
|
projectId: string;
|
|
24
|
+
userId: string | null;
|
|
25
25
|
activeSubAgentId: string;
|
|
26
26
|
lastContextResolution: string | null;
|
|
27
27
|
}>;
|
|
@@ -68,11 +68,11 @@ declare const getConversation: (db: DatabaseClient) => (params: {
|
|
|
68
68
|
id: string;
|
|
69
69
|
createdAt: string;
|
|
70
70
|
updatedAt: string;
|
|
71
|
-
userId: string | null;
|
|
72
|
-
metadata: ConversationMetadata | null;
|
|
73
71
|
title: string | null;
|
|
74
72
|
tenantId: string;
|
|
73
|
+
metadata: ConversationMetadata | null;
|
|
75
74
|
projectId: string;
|
|
75
|
+
userId: string | null;
|
|
76
76
|
activeSubAgentId: string;
|
|
77
77
|
lastContextResolution: string | null;
|
|
78
78
|
} | undefined>;
|
|
@@ -92,11 +92,11 @@ declare const createOrGetConversation: (db: DatabaseClient) => (input: Conversat
|
|
|
92
92
|
id: string;
|
|
93
93
|
createdAt: string;
|
|
94
94
|
updatedAt: string;
|
|
95
|
-
userId: string | null;
|
|
96
|
-
metadata: ConversationMetadata | null;
|
|
97
95
|
title: string | null;
|
|
98
96
|
tenantId: string;
|
|
97
|
+
metadata: ConversationMetadata | null;
|
|
99
98
|
projectId: string;
|
|
99
|
+
userId: string | null;
|
|
100
100
|
activeSubAgentId: string;
|
|
101
101
|
lastContextResolution: string | null;
|
|
102
102
|
}>;
|
|
@@ -118,11 +118,11 @@ declare const getActiveAgentForConversation: (db: DatabaseClient) => (params: {
|
|
|
118
118
|
id: string;
|
|
119
119
|
createdAt: string;
|
|
120
120
|
updatedAt: string;
|
|
121
|
-
userId: string | null;
|
|
122
|
-
metadata: ConversationMetadata | null;
|
|
123
121
|
title: string | null;
|
|
124
122
|
tenantId: string;
|
|
123
|
+
metadata: ConversationMetadata | null;
|
|
125
124
|
projectId: string;
|
|
125
|
+
userId: string | null;
|
|
126
126
|
activeSubAgentId: string;
|
|
127
127
|
lastContextResolution: string | null;
|
|
128
128
|
} | undefined>;
|
|
@@ -12,11 +12,11 @@ declare const getMessageById: (db: DatabaseClient) => (params: {
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
-
metadata: MessageMetadata | null;
|
|
16
|
-
role: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
metadata: MessageMetadata | null;
|
|
18
17
|
projectId: string;
|
|
19
18
|
conversationId: string;
|
|
19
|
+
role: string;
|
|
20
20
|
fromSubAgentId: string | null;
|
|
21
21
|
toSubAgentId: string | null;
|
|
22
22
|
fromExternalAgentId: string | null;
|
|
@@ -143,11 +143,11 @@ declare const createMessage: (db: DatabaseClient) => (params: MessageInsert) =>
|
|
|
143
143
|
id: string;
|
|
144
144
|
createdAt: string;
|
|
145
145
|
updatedAt: string;
|
|
146
|
-
metadata: MessageMetadata | null;
|
|
147
|
-
role: string;
|
|
148
146
|
tenantId: string;
|
|
147
|
+
metadata: MessageMetadata | null;
|
|
149
148
|
projectId: string;
|
|
150
149
|
conversationId: string;
|
|
150
|
+
role: string;
|
|
151
151
|
fromSubAgentId: string | null;
|
|
152
152
|
toSubAgentId: string | null;
|
|
153
153
|
fromExternalAgentId: string | null;
|
|
@@ -196,11 +196,11 @@ declare const deleteMessage: (db: DatabaseClient) => (params: {
|
|
|
196
196
|
id: string;
|
|
197
197
|
createdAt: string;
|
|
198
198
|
updatedAt: string;
|
|
199
|
-
metadata: MessageMetadata | null;
|
|
200
|
-
role: string;
|
|
201
199
|
tenantId: string;
|
|
200
|
+
metadata: MessageMetadata | null;
|
|
202
201
|
projectId: string;
|
|
203
202
|
conversationId: string;
|
|
203
|
+
role: string;
|
|
204
204
|
fromSubAgentId: string | null;
|
|
205
205
|
toSubAgentId: string | null;
|
|
206
206
|
fromExternalAgentId: string | null;
|
|
@@ -11,11 +11,11 @@ declare const getSubAgentExternalAgentRelationById: (db: DatabaseClient) => (par
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
headers: Record<string, string> | null;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
agentId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: DatabaseClient) => (params: {
|
|
@@ -46,11 +46,11 @@ declare const getSubAgentExternalAgentRelations: (db: DatabaseClient) => (params
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
headers: Record<string, string> | null;
|
|
50
49
|
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
agentId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
@@ -59,11 +59,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: DatabaseClient) =>
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
headers: Record<string, string> | null;
|
|
63
62
|
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
agentId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: DatabaseClient) => (params: {
|
|
@@ -182,11 +182,11 @@ declare const createSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
182
182
|
id: string;
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
|
-
headers: Record<string, string> | null;
|
|
186
185
|
tenantId: string;
|
|
187
186
|
projectId: string;
|
|
188
187
|
agentId: string;
|
|
189
188
|
subAgentId: string;
|
|
189
|
+
headers: Record<string, string> | null;
|
|
190
190
|
externalAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
@@ -199,11 +199,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: DatabaseClient) =>
|
|
|
199
199
|
id: string;
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
|
-
headers: Record<string, string> | null;
|
|
203
202
|
tenantId: string;
|
|
204
203
|
projectId: string;
|
|
205
204
|
agentId: string;
|
|
206
205
|
subAgentId: string;
|
|
206
|
+
headers: Record<string, string> | null;
|
|
207
207
|
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
@@ -220,11 +220,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: DatabaseClient) => (para
|
|
|
220
220
|
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
|
-
headers: Record<string, string> | null;
|
|
224
223
|
tenantId: string;
|
|
225
224
|
projectId: string;
|
|
226
225
|
agentId: string;
|
|
227
226
|
subAgentId: string;
|
|
227
|
+
headers: Record<string, string> | null;
|
|
228
228
|
externalAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: DatabaseClient) => (params: {
|
|
@@ -206,12 +206,12 @@ declare const createAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
206
206
|
id: string;
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
|
-
headers: Record<string, string> | null;
|
|
210
209
|
tenantId: string;
|
|
211
210
|
projectId: string;
|
|
212
211
|
agentId: string;
|
|
213
212
|
toolId: string;
|
|
214
213
|
subAgentId: string;
|
|
214
|
+
headers: Record<string, string> | null;
|
|
215
215
|
selectedTools: string[] | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
@@ -250,12 +250,12 @@ declare const getAgentToolRelationById: (db: DatabaseClient) => (params: {
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
headers: Record<string, string> | null;
|
|
254
253
|
tenantId: string;
|
|
255
254
|
projectId: string;
|
|
256
255
|
agentId: string;
|
|
257
256
|
toolId: string;
|
|
258
257
|
subAgentId: string;
|
|
258
|
+
headers: Record<string, string> | null;
|
|
259
259
|
selectedTools: string[] | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
@@ -11,11 +11,11 @@ declare const getSubAgentTeamAgentRelationById: (db: DatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
headers: Record<string, string> | null;
|
|
15
14
|
tenantId: string;
|
|
16
15
|
projectId: string;
|
|
17
16
|
agentId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
headers: Record<string, string> | null;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
@@ -46,11 +46,11 @@ declare const getSubAgentTeamAgentRelations: (db: DatabaseClient) => (params: {
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
headers: Record<string, string> | null;
|
|
50
49
|
tenantId: string;
|
|
51
50
|
projectId: string;
|
|
52
51
|
agentId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
headers: Record<string, string> | null;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (params: {
|
|
@@ -59,11 +59,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: DatabaseClient) => (par
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
headers: Record<string, string> | null;
|
|
63
62
|
tenantId: string;
|
|
64
63
|
projectId: string;
|
|
65
64
|
agentId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
headers: Record<string, string> | null;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: DatabaseClient) => (params: {
|
|
@@ -212,11 +212,11 @@ declare const createSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
212
212
|
id: string;
|
|
213
213
|
createdAt: string;
|
|
214
214
|
updatedAt: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
215
|
tenantId: string;
|
|
217
216
|
projectId: string;
|
|
218
217
|
agentId: string;
|
|
219
218
|
subAgentId: string;
|
|
219
|
+
headers: Record<string, string> | null;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -229,11 +229,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: DatabaseClient) => (par
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
headers: Record<string, string> | null;
|
|
233
232
|
tenantId: string;
|
|
234
233
|
projectId: string;
|
|
235
234
|
agentId: string;
|
|
236
235
|
subAgentId: string;
|
|
236
|
+
headers: Record<string, string> | null;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -250,11 +250,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: DatabaseClient) => (params:
|
|
|
250
250
|
id: string;
|
|
251
251
|
createdAt: string;
|
|
252
252
|
updatedAt: string;
|
|
253
|
-
headers: Record<string, string> | null;
|
|
254
253
|
tenantId: string;
|
|
255
254
|
projectId: string;
|
|
256
255
|
agentId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
headers: Record<string, string> | null;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: DatabaseClient) => (params: {
|
|
@@ -9,12 +9,12 @@ declare const createTask: (db: DatabaseClient) => (params: TaskInsert) => Promis
|
|
|
9
9
|
id: string;
|
|
10
10
|
createdAt: string;
|
|
11
11
|
updatedAt: string;
|
|
12
|
-
metadata: TaskMetadataConfig | null;
|
|
13
|
-
status: string;
|
|
14
12
|
tenantId: string;
|
|
13
|
+
metadata: TaskMetadataConfig | null;
|
|
15
14
|
projectId: string;
|
|
16
15
|
agentId: string;
|
|
17
16
|
contextId: string;
|
|
17
|
+
status: string;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
}>;
|
|
20
20
|
declare const getTask: (db: DatabaseClient) => (params: {
|
|
@@ -17,7 +17,6 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
17
17
|
createdAt: string;
|
|
18
18
|
updatedAt: string;
|
|
19
19
|
description: string | null;
|
|
20
|
-
headers: Record<string, string> | null;
|
|
21
20
|
tenantId: string;
|
|
22
21
|
projectId: string;
|
|
23
22
|
credentialReferenceId: string | null;
|
|
@@ -26,6 +25,7 @@ declare const getToolById: (db: DatabaseClient) => (params: {
|
|
|
26
25
|
mcp: ToolMcpConfig;
|
|
27
26
|
};
|
|
28
27
|
credentialScope: string;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
29
29
|
imageUrl: string | null;
|
|
30
30
|
capabilities: ToolServerCapabilities | null;
|
|
31
31
|
lastError: string | null;
|
|
@@ -66,7 +66,6 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
|
|
|
66
66
|
createdAt: string;
|
|
67
67
|
updatedAt: string;
|
|
68
68
|
description: string | null;
|
|
69
|
-
headers: Record<string, string> | null;
|
|
70
69
|
tenantId: string;
|
|
71
70
|
projectId: string;
|
|
72
71
|
credentialReferenceId: string | null;
|
|
@@ -75,6 +74,7 @@ declare const createTool: (db: DatabaseClient) => (params: ToolInsert) => Promis
|
|
|
75
74
|
mcp: ToolMcpConfig;
|
|
76
75
|
};
|
|
77
76
|
credentialScope: string;
|
|
77
|
+
headers: Record<string, string> | null;
|
|
78
78
|
imageUrl: string | null;
|
|
79
79
|
capabilities: ToolServerCapabilities | null;
|
|
80
80
|
lastError: string | null;
|
|
@@ -119,12 +119,12 @@ declare const addToolToAgent: (db: DatabaseClient) => (params: {
|
|
|
119
119
|
id: string;
|
|
120
120
|
createdAt: string;
|
|
121
121
|
updatedAt: string;
|
|
122
|
-
headers: Record<string, string> | null;
|
|
123
122
|
tenantId: string;
|
|
124
123
|
projectId: string;
|
|
125
124
|
agentId: string;
|
|
126
125
|
toolId: string;
|
|
127
126
|
subAgentId: string;
|
|
127
|
+
headers: Record<string, string> | null;
|
|
128
128
|
selectedTools: string[] | null;
|
|
129
129
|
toolPolicies: Record<string, {
|
|
130
130
|
needsApproval?: boolean;
|
|
@@ -138,12 +138,12 @@ declare const removeToolFromAgent: (db: DatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
-
headers: Record<string, string> | null;
|
|
142
141
|
tenantId: string;
|
|
143
142
|
projectId: string;
|
|
144
143
|
agentId: string;
|
|
145
144
|
toolId: string;
|
|
146
145
|
subAgentId: string;
|
|
146
|
+
headers: Record<string, string> | null;
|
|
147
147
|
selectedTools: string[] | null;
|
|
148
148
|
toolPolicies: Record<string, {
|
|
149
149
|
needsApproval?: boolean;
|
|
@@ -166,12 +166,12 @@ declare const upsertSubAgentToolRelation: (db: DatabaseClient) => (params: {
|
|
|
166
166
|
id: string;
|
|
167
167
|
createdAt: string;
|
|
168
168
|
updatedAt: string;
|
|
169
|
-
headers: Record<string, string> | null;
|
|
170
169
|
tenantId: string;
|
|
171
170
|
projectId: string;
|
|
172
171
|
agentId: string;
|
|
173
172
|
toolId: string;
|
|
174
173
|
subAgentId: string;
|
|
174
|
+
headers: Record<string, string> | null;
|
|
175
175
|
selectedTools: string[] | null;
|
|
176
176
|
toolPolicies: Record<string, {
|
|
177
177
|
needsApproval?: boolean;
|
|
@@ -188,7 +188,6 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
190
|
description: string | null;
|
|
191
|
-
headers: Record<string, string> | null;
|
|
192
191
|
tenantId: string;
|
|
193
192
|
projectId: string;
|
|
194
193
|
credentialReferenceId: string | null;
|
|
@@ -197,6 +196,7 @@ declare const upsertTool: (db: DatabaseClient) => (params: {
|
|
|
197
196
|
mcp: ToolMcpConfig;
|
|
198
197
|
};
|
|
199
198
|
credentialScope: string;
|
|
199
|
+
headers: Record<string, string> | null;
|
|
200
200
|
imageUrl: string | null;
|
|
201
201
|
capabilities: ToolServerCapabilities | null;
|
|
202
202
|
lastError: string | null;
|