@inkeep/agents-core 0.61.0 → 0.62.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-validation-schemas.d.ts +154 -154
- package/dist/auth/auth.d.ts +6 -6
- package/dist/auth/init.js +3 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/constants/allowed-file-formats.d.ts +3 -1
- package/dist/constants/allowed-file-formats.js +27 -3
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +2 -2
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/tools.d.ts +6 -6
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/db/manage/manage-schema.d.ts +454 -454
- package/dist/db/runtime/runtime-schema.d.ts +342 -342
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/middleware/no-auth.d.ts +2 -2
- package/dist/utils/error.d.ts +51 -51
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/jwt-helpers.d.ts +7 -1
- package/dist/utils/jwt-helpers.js +11 -1
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1550 -1550
- package/dist/validation/schemas.js +1 -1
- package/drizzle/runtime/0027_seed-playground-app.sql +13 -0
- package/drizzle/runtime/meta/0027_snapshot.json +4389 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { BetterAuthConfig, EmailServiceConfig, OIDCProviderConfig, SAMLProviderC
|
|
|
2
2
|
import { extractCookieDomain, hasCredentialAccount } from "./auth-config-utils.js";
|
|
3
3
|
import * as zod0 from "zod";
|
|
4
4
|
import * as better_auth0 from "better-auth";
|
|
5
|
-
import * as
|
|
5
|
+
import * as better_auth_plugins0 from "better-auth/plugins";
|
|
6
6
|
|
|
7
7
|
//#region src/auth/auth.d.ts
|
|
8
8
|
|
|
@@ -38,10 +38,10 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
38
38
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
|
-
options:
|
|
41
|
+
options: better_auth_plugins0.BearerOptions | undefined;
|
|
42
42
|
}, {
|
|
43
43
|
id: "oauth-proxy";
|
|
44
|
-
options: NoInfer<
|
|
44
|
+
options: NoInfer<better_auth_plugins0.OAuthProxyOptions>;
|
|
45
45
|
endpoints: {
|
|
46
46
|
oAuthProxy: better_auth0.StrictEndpoint<"/oauth-proxy-callback", {
|
|
47
47
|
method: "GET";
|
|
@@ -93,7 +93,7 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
93
93
|
handler: (inputContext: better_auth0.MiddlewareInputContext<better_auth0.MiddlewareOptions>) => Promise<void>;
|
|
94
94
|
}[];
|
|
95
95
|
};
|
|
96
|
-
},
|
|
96
|
+
}, better_auth_plugins0.DefaultOrganizationPlugin<{
|
|
97
97
|
schema: {
|
|
98
98
|
invitation: {
|
|
99
99
|
additionalFields: {
|
|
@@ -456,8 +456,8 @@ declare function _inferAuthType(): better_auth0.Auth<{
|
|
|
456
456
|
AUTHENTICATION_REQUIRED: better_auth0.RawError<"AUTHENTICATION_REQUIRED">;
|
|
457
457
|
};
|
|
458
458
|
options: Partial<{
|
|
459
|
-
expiresIn:
|
|
460
|
-
interval:
|
|
459
|
+
expiresIn: better_auth_plugins0.TimeString;
|
|
460
|
+
interval: better_auth_plugins0.TimeString;
|
|
461
461
|
deviceCodeLength: number;
|
|
462
462
|
userCodeLength: number;
|
|
463
463
|
schema: {
|
package/dist/auth/init.js
CHANGED
|
@@ -127,9 +127,11 @@ async function init() {
|
|
|
127
127
|
else {
|
|
128
128
|
const publicKeys = [];
|
|
129
129
|
if (tempJwtPublicKeyB64) {
|
|
130
|
+
const { derivePlaygroundKid } = await import("../utils/jwt-helpers.js");
|
|
130
131
|
const publicKeyPem = Buffer.from(tempJwtPublicKeyB64, "base64").toString("utf-8");
|
|
132
|
+
const kid = await derivePlaygroundKid(publicKeyPem);
|
|
131
133
|
publicKeys.push({
|
|
132
|
-
kid
|
|
134
|
+
kid,
|
|
133
135
|
publicKey: publicKeyPem,
|
|
134
136
|
algorithm: "RS256",
|
|
135
137
|
addedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins4 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?:
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "team" | "ac">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins4.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins4.Subset<"organization" | "member" | "invitation" | "project" | "team" | "ac", better_auth_plugins4.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
//#region src/constants/allowed-file-formats.d.ts
|
|
2
2
|
declare const ALLOWED_IMAGE_MIME_TYPES: Set<string>;
|
|
3
|
+
declare const ALLOWED_TEXT_DOCUMENT_MIME_TYPES: Set<string>;
|
|
3
4
|
declare const DATA_URI_IMAGE_BASE64_REGEX: RegExp;
|
|
4
5
|
declare const DATA_URI_PDF_BASE64_REGEX: RegExp;
|
|
6
|
+
declare const DATA_URI_TEXT_BASE64_REGEX: RegExp;
|
|
5
7
|
declare function normalizeMimeType(mimeType: string): string;
|
|
6
8
|
declare function getExtensionFromMimeType(mimeType?: string): string;
|
|
7
9
|
declare function getMimeTypeFromExtension(extension?: string): string;
|
|
8
10
|
//#endregion
|
|
9
|
-
export { ALLOWED_IMAGE_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
11
|
+
export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
@@ -4,19 +4,42 @@ const ALLOWED_IMAGE_MIME_TYPES = new Set([
|
|
|
4
4
|
"image/jpeg",
|
|
5
5
|
"image/webp"
|
|
6
6
|
]);
|
|
7
|
+
const ALLOWED_TEXT_DOCUMENT_MIME_TYPES = new Set([
|
|
8
|
+
"text/plain",
|
|
9
|
+
"text/markdown",
|
|
10
|
+
"text/html",
|
|
11
|
+
"text/csv",
|
|
12
|
+
"text/x-log",
|
|
13
|
+
"application/json"
|
|
14
|
+
]);
|
|
7
15
|
const FILE_MIME_TYPE_TO_EXTENSION = {
|
|
8
16
|
"image/png": "png",
|
|
9
17
|
"image/jpeg": "jpg",
|
|
10
18
|
"image/jpg": "jpg",
|
|
11
19
|
"image/webp": "webp",
|
|
12
|
-
"application/pdf": "pdf"
|
|
20
|
+
"application/pdf": "pdf",
|
|
21
|
+
"text/plain": "txt",
|
|
22
|
+
"text/markdown": "md",
|
|
23
|
+
"text/html": "html",
|
|
24
|
+
"text/csv": "csv",
|
|
25
|
+
"text/x-log": "log",
|
|
26
|
+
"application/json": "json"
|
|
13
27
|
};
|
|
14
28
|
const FILE_EXTENSION_TO_MIME_TYPE = {
|
|
15
29
|
png: "image/png",
|
|
16
30
|
jpg: "image/jpeg",
|
|
17
31
|
jpeg: "image/jpeg",
|
|
18
32
|
webp: "image/webp",
|
|
19
|
-
pdf: "application/pdf"
|
|
33
|
+
pdf: "application/pdf",
|
|
34
|
+
txt: "text/plain",
|
|
35
|
+
text: "text/plain",
|
|
36
|
+
md: "text/markdown",
|
|
37
|
+
markdown: "text/markdown",
|
|
38
|
+
html: "text/html",
|
|
39
|
+
htm: "text/html",
|
|
40
|
+
csv: "text/csv",
|
|
41
|
+
log: "text/x-log",
|
|
42
|
+
json: "application/json"
|
|
20
43
|
};
|
|
21
44
|
const dataUriSubtypes = Array.from(ALLOWED_IMAGE_MIME_TYPES).flatMap((mime) => {
|
|
22
45
|
const subtype = mime.replace("image/", "");
|
|
@@ -24,6 +47,7 @@ const dataUriSubtypes = Array.from(ALLOWED_IMAGE_MIME_TYPES).flatMap((mime) => {
|
|
|
24
47
|
});
|
|
25
48
|
const DATA_URI_IMAGE_BASE64_REGEX = /* @__PURE__ */ new RegExp(`^data:image/(${dataUriSubtypes.join("|")});base64,`);
|
|
26
49
|
const DATA_URI_PDF_BASE64_REGEX = /^data:application\/pdf;base64,/;
|
|
50
|
+
const DATA_URI_TEXT_BASE64_REGEX = /^data:(text\/(plain|markdown|html|csv|x-log)|application\/json);base64,/;
|
|
27
51
|
function normalizeMimeType(mimeType) {
|
|
28
52
|
return mimeType.split(";")[0]?.trim().toLowerCase() || "";
|
|
29
53
|
}
|
|
@@ -38,4 +62,4 @@ function getMimeTypeFromExtension(extension) {
|
|
|
38
62
|
}
|
|
39
63
|
|
|
40
64
|
//#endregion
|
|
41
|
-
export { ALLOWED_IMAGE_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
65
|
+
export { ALLOWED_IMAGE_MIME_TYPES, ALLOWED_TEXT_DOCUMENT_MIME_TYPES, DATA_URI_IMAGE_BASE64_REGEX, DATA_URI_PDF_BASE64_REGEX, DATA_URI_TEXT_BASE64_REGEX, getExtensionFromMimeType, getMimeTypeFromExtension, normalizeMimeType };
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
15
16
|
agentId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
tenantId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
externalAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
50
51
|
agentId: string;
|
|
51
52
|
projectId: string;
|
|
52
53
|
tenantId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
externalAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
63
64
|
agentId: string;
|
|
64
65
|
projectId: string;
|
|
65
66
|
tenantId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
externalAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -183,11 +183,11 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
183
183
|
id: string;
|
|
184
184
|
createdAt: string;
|
|
185
185
|
updatedAt: string;
|
|
186
|
+
headers: Record<string, string> | null;
|
|
186
187
|
agentId: string;
|
|
187
188
|
projectId: string;
|
|
188
189
|
tenantId: string;
|
|
189
190
|
subAgentId: string;
|
|
190
|
-
headers: Record<string, string> | null;
|
|
191
191
|
externalAgentId: string;
|
|
192
192
|
}>;
|
|
193
193
|
/**
|
|
@@ -200,11 +200,11 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
200
200
|
id: string;
|
|
201
201
|
createdAt: string;
|
|
202
202
|
updatedAt: string;
|
|
203
|
+
headers: Record<string, string> | null;
|
|
203
204
|
agentId: string;
|
|
204
205
|
projectId: string;
|
|
205
206
|
tenantId: string;
|
|
206
207
|
subAgentId: string;
|
|
207
|
-
headers: Record<string, string> | null;
|
|
208
208
|
externalAgentId: string;
|
|
209
209
|
} | undefined>;
|
|
210
210
|
/**
|
|
@@ -221,11 +221,11 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
221
221
|
id: string;
|
|
222
222
|
createdAt: string;
|
|
223
223
|
updatedAt: string;
|
|
224
|
+
headers: Record<string, string> | null;
|
|
224
225
|
agentId: string;
|
|
225
226
|
projectId: string;
|
|
226
227
|
tenantId: string;
|
|
227
228
|
subAgentId: string;
|
|
228
|
-
headers: Record<string, string> | null;
|
|
229
229
|
externalAgentId: string;
|
|
230
230
|
}>;
|
|
231
231
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -207,12 +207,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
207
207
|
id: string;
|
|
208
208
|
createdAt: string;
|
|
209
209
|
updatedAt: string;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
210
211
|
agentId: string;
|
|
211
212
|
projectId: string;
|
|
212
213
|
tenantId: string;
|
|
213
214
|
subAgentId: string;
|
|
214
215
|
toolId: string;
|
|
215
|
-
headers: Record<string, string> | null;
|
|
216
216
|
toolPolicies: Record<string, {
|
|
217
217
|
needsApproval?: boolean;
|
|
218
218
|
}> | null;
|
|
@@ -251,12 +251,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
254
255
|
agentId: string;
|
|
255
256
|
projectId: string;
|
|
256
257
|
tenantId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
259
|
toolId: string;
|
|
259
|
-
headers: Record<string, string> | null;
|
|
260
260
|
toolPolicies: Record<string, {
|
|
261
261
|
needsApproval?: boolean;
|
|
262
262
|
}> | null;
|
|
@@ -12,11 +12,11 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
12
12
|
id: string;
|
|
13
13
|
createdAt: string;
|
|
14
14
|
updatedAt: string;
|
|
15
|
+
headers: Record<string, string> | null;
|
|
15
16
|
agentId: string;
|
|
16
17
|
projectId: string;
|
|
17
18
|
tenantId: string;
|
|
18
19
|
subAgentId: string;
|
|
19
|
-
headers: Record<string, string> | null;
|
|
20
20
|
targetAgentId: string;
|
|
21
21
|
} | undefined>;
|
|
22
22
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -47,11 +47,11 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
47
47
|
id: string;
|
|
48
48
|
createdAt: string;
|
|
49
49
|
updatedAt: string;
|
|
50
|
+
headers: Record<string, string> | null;
|
|
50
51
|
agentId: string;
|
|
51
52
|
projectId: string;
|
|
52
53
|
tenantId: string;
|
|
53
54
|
subAgentId: string;
|
|
54
|
-
headers: Record<string, string> | null;
|
|
55
55
|
targetAgentId: string;
|
|
56
56
|
}[]>;
|
|
57
57
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -60,11 +60,11 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
60
60
|
id: string;
|
|
61
61
|
createdAt: string;
|
|
62
62
|
updatedAt: string;
|
|
63
|
+
headers: Record<string, string> | null;
|
|
63
64
|
agentId: string;
|
|
64
65
|
projectId: string;
|
|
65
66
|
tenantId: string;
|
|
66
67
|
subAgentId: string;
|
|
67
|
-
headers: Record<string, string> | null;
|
|
68
68
|
targetAgentId: string;
|
|
69
69
|
}[]>;
|
|
70
70
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -213,11 +213,11 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
213
213
|
id: string;
|
|
214
214
|
createdAt: string;
|
|
215
215
|
updatedAt: string;
|
|
216
|
+
headers: Record<string, string> | null;
|
|
216
217
|
agentId: string;
|
|
217
218
|
projectId: string;
|
|
218
219
|
tenantId: string;
|
|
219
220
|
subAgentId: string;
|
|
220
|
-
headers: Record<string, string> | null;
|
|
221
221
|
targetAgentId: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
@@ -230,11 +230,11 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
230
230
|
id: string;
|
|
231
231
|
createdAt: string;
|
|
232
232
|
updatedAt: string;
|
|
233
|
+
headers: Record<string, string> | null;
|
|
233
234
|
agentId: string;
|
|
234
235
|
projectId: string;
|
|
235
236
|
tenantId: string;
|
|
236
237
|
subAgentId: string;
|
|
237
|
-
headers: Record<string, string> | null;
|
|
238
238
|
targetAgentId: string;
|
|
239
239
|
} | undefined>;
|
|
240
240
|
/**
|
|
@@ -251,11 +251,11 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
251
251
|
id: string;
|
|
252
252
|
createdAt: string;
|
|
253
253
|
updatedAt: string;
|
|
254
|
+
headers: Record<string, string> | null;
|
|
254
255
|
agentId: string;
|
|
255
256
|
projectId: string;
|
|
256
257
|
tenantId: string;
|
|
257
258
|
subAgentId: string;
|
|
258
|
-
headers: Record<string, string> | null;
|
|
259
259
|
targetAgentId: string;
|
|
260
260
|
}>;
|
|
261
261
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -25,9 +25,9 @@ declare const getToolById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
updatedAt: string;
|
|
27
27
|
description: string | null;
|
|
28
|
+
headers: Record<string, string> | null;
|
|
28
29
|
projectId: string;
|
|
29
30
|
tenantId: string;
|
|
30
|
-
headers: Record<string, string> | null;
|
|
31
31
|
config: {
|
|
32
32
|
type: "mcp";
|
|
33
33
|
mcp: ToolMcpConfig;
|
|
@@ -83,9 +83,9 @@ declare const createTool: (db: AgentsManageDatabaseClient) => (params: ToolInser
|
|
|
83
83
|
createdAt: string;
|
|
84
84
|
updatedAt: string;
|
|
85
85
|
description: string | null;
|
|
86
|
+
headers: Record<string, string> | null;
|
|
86
87
|
projectId: string;
|
|
87
88
|
tenantId: string;
|
|
88
|
-
headers: Record<string, string> | null;
|
|
89
89
|
config: {
|
|
90
90
|
type: "mcp";
|
|
91
91
|
mcp: ToolMcpConfig;
|
|
@@ -138,12 +138,12 @@ declare const addToolToAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
138
138
|
id: string;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
updatedAt: string;
|
|
141
|
+
headers: Record<string, string> | null;
|
|
141
142
|
agentId: string;
|
|
142
143
|
projectId: string;
|
|
143
144
|
tenantId: string;
|
|
144
145
|
subAgentId: string;
|
|
145
146
|
toolId: string;
|
|
146
|
-
headers: Record<string, string> | null;
|
|
147
147
|
toolPolicies: Record<string, {
|
|
148
148
|
needsApproval?: boolean;
|
|
149
149
|
}> | null;
|
|
@@ -157,12 +157,12 @@ declare const removeToolFromAgent: (db: AgentsManageDatabaseClient) => (params:
|
|
|
157
157
|
id: string;
|
|
158
158
|
createdAt: string;
|
|
159
159
|
updatedAt: string;
|
|
160
|
+
headers: Record<string, string> | null;
|
|
160
161
|
agentId: string;
|
|
161
162
|
projectId: string;
|
|
162
163
|
tenantId: string;
|
|
163
164
|
subAgentId: string;
|
|
164
165
|
toolId: string;
|
|
165
|
-
headers: Record<string, string> | null;
|
|
166
166
|
toolPolicies: Record<string, {
|
|
167
167
|
needsApproval?: boolean;
|
|
168
168
|
}> | null;
|
|
@@ -185,12 +185,12 @@ declare const upsertSubAgentToolRelation: (db: AgentsManageDatabaseClient) => (p
|
|
|
185
185
|
id: string;
|
|
186
186
|
createdAt: string;
|
|
187
187
|
updatedAt: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
188
189
|
agentId: string;
|
|
189
190
|
projectId: string;
|
|
190
191
|
tenantId: string;
|
|
191
192
|
subAgentId: string;
|
|
192
193
|
toolId: string;
|
|
193
|
-
headers: Record<string, string> | null;
|
|
194
194
|
toolPolicies: Record<string, {
|
|
195
195
|
needsApproval?: boolean;
|
|
196
196
|
}> | null;
|
|
@@ -207,9 +207,9 @@ declare const upsertTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
207
207
|
createdAt: string;
|
|
208
208
|
updatedAt: string;
|
|
209
209
|
description: string | null;
|
|
210
|
+
headers: Record<string, string> | null;
|
|
210
211
|
projectId: string;
|
|
211
212
|
tenantId: string;
|
|
212
|
-
headers: Record<string, string> | null;
|
|
213
213
|
config: {
|
|
214
214
|
type: "mcp";
|
|
215
215
|
mcp: ToolMcpConfig;
|
|
@@ -40,13 +40,13 @@ declare const listTriggersPaginated: (db: AgentsManageDatabaseClient) => (params
|
|
|
40
40
|
algorithm: "sha256" | "sha512" | "sha384" | "sha1" | "md5";
|
|
41
41
|
encoding: "hex" | "base64";
|
|
42
42
|
signature: {
|
|
43
|
-
source: "query" | "
|
|
43
|
+
source: "query" | "body" | "header";
|
|
44
44
|
key: string;
|
|
45
45
|
prefix?: string | undefined;
|
|
46
46
|
regex?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
signedComponents: {
|
|
49
|
-
source: "literal" | "
|
|
49
|
+
source: "literal" | "body" | "header";
|
|
50
50
|
required: boolean;
|
|
51
51
|
key?: string | undefined;
|
|
52
52
|
value?: string | undefined;
|
|
@@ -18,18 +18,18 @@ declare const getMessageById: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
18
18
|
projectId: string;
|
|
19
19
|
tenantId: string;
|
|
20
20
|
content: MessageContent;
|
|
21
|
+
conversationId: string;
|
|
21
22
|
fromSubAgentId: string | null;
|
|
22
23
|
toSubAgentId: string | null;
|
|
23
24
|
fromExternalAgentId: string | null;
|
|
24
25
|
toExternalAgentId: string | null;
|
|
25
|
-
taskId: string | null;
|
|
26
|
-
a2aTaskId: string | null;
|
|
27
|
-
conversationId: string;
|
|
28
26
|
fromTeamAgentId: string | null;
|
|
29
27
|
toTeamAgentId: string | null;
|
|
30
28
|
visibility: string;
|
|
31
29
|
messageType: string;
|
|
30
|
+
taskId: string | null;
|
|
32
31
|
parentMessageId: string | null;
|
|
32
|
+
a2aTaskId: string | null;
|
|
33
33
|
a2aSessionId: string | null;
|
|
34
34
|
} | undefined>;
|
|
35
35
|
declare const listMessages: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -152,18 +152,18 @@ declare const createMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
152
152
|
projectId: string;
|
|
153
153
|
tenantId: string;
|
|
154
154
|
content: MessageContent;
|
|
155
|
+
conversationId: string;
|
|
155
156
|
fromSubAgentId: string | null;
|
|
156
157
|
toSubAgentId: string | null;
|
|
157
158
|
fromExternalAgentId: string | null;
|
|
158
159
|
toExternalAgentId: string | null;
|
|
159
|
-
taskId: string | null;
|
|
160
|
-
a2aTaskId: string | null;
|
|
161
|
-
conversationId: string;
|
|
162
160
|
fromTeamAgentId: string | null;
|
|
163
161
|
toTeamAgentId: string | null;
|
|
164
162
|
visibility: string;
|
|
165
163
|
messageType: string;
|
|
164
|
+
taskId: string | null;
|
|
166
165
|
parentMessageId: string | null;
|
|
166
|
+
a2aTaskId: string | null;
|
|
167
167
|
a2aSessionId: string | null;
|
|
168
168
|
}>;
|
|
169
169
|
declare const updateMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
@@ -205,18 +205,18 @@ declare const deleteMessage: (db: AgentsRunDatabaseClient) => (params: {
|
|
|
205
205
|
projectId: string;
|
|
206
206
|
tenantId: string;
|
|
207
207
|
content: MessageContent;
|
|
208
|
+
conversationId: string;
|
|
208
209
|
fromSubAgentId: string | null;
|
|
209
210
|
toSubAgentId: string | null;
|
|
210
211
|
fromExternalAgentId: string | null;
|
|
211
212
|
toExternalAgentId: string | null;
|
|
212
|
-
taskId: string | null;
|
|
213
|
-
a2aTaskId: string | null;
|
|
214
|
-
conversationId: string;
|
|
215
213
|
fromTeamAgentId: string | null;
|
|
216
214
|
toTeamAgentId: string | null;
|
|
217
215
|
visibility: string;
|
|
218
216
|
messageType: string;
|
|
217
|
+
taskId: string | null;
|
|
219
218
|
parentMessageId: string | null;
|
|
219
|
+
a2aTaskId: string | null;
|
|
220
220
|
a2aSessionId: string | null;
|
|
221
221
|
}>;
|
|
222
222
|
declare const countMessagesByConversation: (db: AgentsRunDatabaseClient) => (params: {
|