@inkeep/agents-core 0.0.0-dev-20260117184722 → 0.0.0-dev-20260117201141
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/_virtual/rolldown_runtime.js +2 -2
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +1 -0
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/subAgentRelations.d.ts +6 -6
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +1 -1
- package/dist/db/manage/manage-schema.d.ts +284 -284
- package/dist/db/manage/manage-schema.js +2 -2
- package/dist/db/runtime/runtime-schema.d.ts +145 -145
- package/dist/db/runtime/runtime-schema.js +2 -2
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1140 -1140
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var
|
|
3
|
+
var __exportAll = (all, symbols) => {
|
|
4
4
|
let target = {};
|
|
5
5
|
for (var name in all) {
|
|
6
6
|
__defProp(target, name, {
|
|
@@ -15,4 +15,4 @@ var __export = (all, symbols) => {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
|
-
export {
|
|
18
|
+
export { __exportAll };
|
package/dist/auth/auth.d.ts
CHANGED
|
@@ -846,25 +846,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
846
846
|
ac: better_auth_plugins0.AccessControl;
|
|
847
847
|
roles: {
|
|
848
848
|
member: {
|
|
849
|
-
authorize<K_1 extends "function" | "agent" | "organization" | "
|
|
850
|
-
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
849
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
850
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
851
851
|
connector: "OR" | "AND";
|
|
852
852
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
853
|
-
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
853
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
854
854
|
};
|
|
855
855
|
admin: {
|
|
856
|
-
authorize<K_1 extends "function" | "agent" | "organization" | "
|
|
857
|
-
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
856
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
857
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
858
858
|
connector: "OR" | "AND";
|
|
859
859
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
860
|
-
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
860
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
861
861
|
};
|
|
862
862
|
owner: {
|
|
863
|
-
authorize<K_1 extends "function" | "agent" | "organization" | "
|
|
864
|
-
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
863
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
864
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
865
865
|
connector: "OR" | "AND";
|
|
866
866
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
867
|
-
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
867
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
870
|
membershipLimit: number;
|
|
@@ -1125,25 +1125,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1125
1125
|
ac: better_auth_plugins0.AccessControl;
|
|
1126
1126
|
roles: {
|
|
1127
1127
|
member: {
|
|
1128
|
-
authorize<K_1 extends "function" | "agent" | "organization" | "
|
|
1129
|
-
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
1128
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1129
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1130
1130
|
connector: "OR" | "AND";
|
|
1131
1131
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1132
|
-
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
1132
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1133
1133
|
};
|
|
1134
1134
|
admin: {
|
|
1135
|
-
authorize<K_1 extends "function" | "agent" | "organization" | "
|
|
1136
|
-
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
1135
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1136
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1137
1137
|
connector: "OR" | "AND";
|
|
1138
1138
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1139
|
-
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
1139
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1140
1140
|
};
|
|
1141
1141
|
owner: {
|
|
1142
|
-
authorize<K_1 extends "function" | "agent" | "organization" | "
|
|
1143
|
-
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
1142
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1143
|
+
actions: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>[key];
|
|
1144
1144
|
connector: "OR" | "AND";
|
|
1145
1145
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1146
|
-
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "
|
|
1146
|
+
statements: better_auth_plugins0.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins0.Statements>;
|
|
1147
1147
|
};
|
|
1148
1148
|
};
|
|
1149
1149
|
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" | "agent" | "organization" | "
|
|
9
|
-
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "
|
|
8
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "agent" | "organization" | "
|
|
12
|
+
statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "agent" | "organization" | "
|
|
16
|
-
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "
|
|
15
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "agent" | "organization" | "
|
|
19
|
+
statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "agent" | "organization" | "
|
|
23
|
-
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "
|
|
22
|
+
authorize<K_1 extends "function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "data_component" | "artifact_component" | "external_agent" | "context_config" | "team", better_auth_plugins55.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "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" | "agent" | "organization" | "
|
|
26
|
+
statements: better_auth_plugins55.Subset<"function" | "agent" | "organization" | "member" | "invitation" | "ac" | "project" | "sub_agent" | "tool" | "api_key" | "credential" | "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 };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import "./types/index.js";
|
|
|
6
6
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
7
7
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
8
8
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
9
|
+
import "./index.js";
|
|
9
10
|
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema } from "./validation/schemas.js";
|
|
10
11
|
import { z } from "@hono/zod-openapi";
|
|
11
12
|
|
|
@@ -69,8 +69,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
69
69
|
id: string;
|
|
70
70
|
agentId: string;
|
|
71
71
|
createdAt: string;
|
|
72
|
-
dataComponentId: string;
|
|
73
72
|
subAgentId: string;
|
|
73
|
+
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
76
76
|
* Remove association between data component and agent
|
|
@@ -111,8 +111,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
111
111
|
id: string;
|
|
112
112
|
agentId: string;
|
|
113
113
|
createdAt: string;
|
|
114
|
-
dataComponentId: string;
|
|
115
114
|
subAgentId: string;
|
|
115
|
+
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
118
118
|
* Count data components for a tenant/project
|
|
@@ -14,9 +14,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
14
14
|
agentId: string;
|
|
15
15
|
createdAt: string;
|
|
16
16
|
updatedAt: string;
|
|
17
|
-
relationType: string | null;
|
|
18
17
|
sourceSubAgentId: string;
|
|
19
18
|
targetSubAgentId: string | null;
|
|
19
|
+
relationType: string | null;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: AgentScopeConfig;
|
|
@@ -49,9 +49,9 @@ declare const getAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
49
49
|
agentId: string;
|
|
50
50
|
createdAt: string;
|
|
51
51
|
updatedAt: string;
|
|
52
|
-
relationType: string | null;
|
|
53
52
|
sourceSubAgentId: string;
|
|
54
53
|
targetSubAgentId: string | null;
|
|
54
|
+
relationType: string | null;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -62,9 +62,9 @@ declare const getAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (par
|
|
|
62
62
|
agentId: string;
|
|
63
63
|
createdAt: string;
|
|
64
64
|
updatedAt: string;
|
|
65
|
-
relationType: string | null;
|
|
66
65
|
sourceSubAgentId: string;
|
|
67
66
|
targetSubAgentId: string | null;
|
|
67
|
+
relationType: string | null;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getAgentRelationsBySource: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -131,9 +131,9 @@ declare const createSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
131
131
|
agentId: string;
|
|
132
132
|
createdAt: string;
|
|
133
133
|
updatedAt: string;
|
|
134
|
-
relationType: string | null;
|
|
135
134
|
sourceSubAgentId: string;
|
|
136
135
|
targetSubAgentId: string | null;
|
|
136
|
+
relationType: string | null;
|
|
137
137
|
}>;
|
|
138
138
|
/**
|
|
139
139
|
* Check if sub-agent relation exists by agent, source, target, and relation type
|
|
@@ -150,9 +150,9 @@ declare const getAgentRelationByParams: (db: AgentsManageDatabaseClient) => (par
|
|
|
150
150
|
agentId: string;
|
|
151
151
|
createdAt: string;
|
|
152
152
|
updatedAt: string;
|
|
153
|
-
relationType: string | null;
|
|
154
153
|
sourceSubAgentId: string;
|
|
155
154
|
targetSubAgentId: string | null;
|
|
155
|
+
relationType: string | null;
|
|
156
156
|
} | undefined>;
|
|
157
157
|
/**
|
|
158
158
|
* Upsert agent relation (create if it doesn't exist, no-op if it does)
|
|
@@ -164,9 +164,9 @@ declare const upsertSubAgentRelation: (db: AgentsManageDatabaseClient) => (param
|
|
|
164
164
|
agentId: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
relationType: string | null;
|
|
168
167
|
sourceSubAgentId: string;
|
|
169
168
|
targetSubAgentId: string | null;
|
|
169
|
+
relationType: string | null;
|
|
170
170
|
}>;
|
|
171
171
|
declare const updateAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
172
172
|
scopes: AgentScopeConfig;
|
|
@@ -17,18 +17,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
17
17
|
metadata: MessageMetadata | null;
|
|
18
18
|
content: MessageContent;
|
|
19
19
|
role: string;
|
|
20
|
-
taskId: string | null;
|
|
21
|
-
visibility: string;
|
|
22
|
-
conversationId: string;
|
|
23
20
|
fromSubAgentId: string | null;
|
|
24
21
|
toSubAgentId: string | null;
|
|
25
22
|
fromExternalAgentId: string | null;
|
|
26
23
|
toExternalAgentId: string | null;
|
|
24
|
+
taskId: string | null;
|
|
25
|
+
a2aTaskId: string | null;
|
|
26
|
+
conversationId: string;
|
|
27
27
|
fromTeamAgentId: string | null;
|
|
28
28
|
toTeamAgentId: string | null;
|
|
29
|
+
visibility: string;
|
|
29
30
|
messageType: string;
|
|
30
31
|
parentMessageId: string | null;
|
|
31
|
-
a2aTaskId: string | null;
|
|
32
32
|
a2aSessionId: string | null;
|
|
33
33
|
} | undefined>;
|
|
34
34
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -148,18 +148,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: MessageIn
|
|
|
148
148
|
metadata: MessageMetadata | null;
|
|
149
149
|
content: MessageContent;
|
|
150
150
|
role: string;
|
|
151
|
-
taskId: string | null;
|
|
152
|
-
visibility: string;
|
|
153
|
-
conversationId: string;
|
|
154
151
|
fromSubAgentId: string | null;
|
|
155
152
|
toSubAgentId: string | null;
|
|
156
153
|
fromExternalAgentId: string | null;
|
|
157
154
|
toExternalAgentId: string | null;
|
|
155
|
+
taskId: string | null;
|
|
156
|
+
a2aTaskId: string | null;
|
|
157
|
+
conversationId: string;
|
|
158
158
|
fromTeamAgentId: string | null;
|
|
159
159
|
toTeamAgentId: string | null;
|
|
160
|
+
visibility: string;
|
|
160
161
|
messageType: string;
|
|
161
162
|
parentMessageId: string | null;
|
|
162
|
-
a2aTaskId: string | null;
|
|
163
163
|
a2aSessionId: string | null;
|
|
164
164
|
}>;
|
|
165
165
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -201,18 +201,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
201
201
|
metadata: MessageMetadata | null;
|
|
202
202
|
content: MessageContent;
|
|
203
203
|
role: string;
|
|
204
|
-
taskId: string | null;
|
|
205
|
-
visibility: string;
|
|
206
|
-
conversationId: string;
|
|
207
204
|
fromSubAgentId: string | null;
|
|
208
205
|
toSubAgentId: string | null;
|
|
209
206
|
fromExternalAgentId: string | null;
|
|
210
207
|
toExternalAgentId: string | null;
|
|
208
|
+
taskId: string | null;
|
|
209
|
+
a2aTaskId: string | null;
|
|
210
|
+
conversationId: string;
|
|
211
211
|
fromTeamAgentId: string | null;
|
|
212
212
|
toTeamAgentId: string | null;
|
|
213
|
+
visibility: string;
|
|
213
214
|
messageType: string;
|
|
214
215
|
parentMessageId: string | null;
|
|
215
|
-
a2aTaskId: string | null;
|
|
216
216
|
a2aSessionId: string | null;
|
|
217
217
|
}>;
|
|
218
218
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -13,12 +13,12 @@ declare const createTask: (db: AgentsRunDatabaseClient) => (params: TaskInsert)
|
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
15
|
metadata: TaskMetadataConfig | null;
|
|
16
|
-
status: string;
|
|
17
16
|
ref: {
|
|
18
17
|
type: "tag" | "commit" | "branch";
|
|
19
18
|
name: string;
|
|
20
19
|
hash: string;
|
|
21
20
|
} | null;
|
|
21
|
+
status: string;
|
|
22
22
|
subAgentId: string;
|
|
23
23
|
contextId: string;
|
|
24
24
|
}>;
|