@inkeep/agents-core 0.45.2 → 0.45.3
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 +82 -82
- package/dist/auth/auth-validation-schemas.d.ts +146 -146
- package/dist/auth/auth.d.ts +41 -23
- package/dist/auth/auth.js +13 -8
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +2 -2
- package/dist/client-exports.js +2 -1
- package/dist/data-access/manage/agents.d.ts +16 -16
- package/dist/data-access/manage/artifactComponents.d.ts +4 -4
- package/dist/data-access/manage/contextConfigs.d.ts +4 -4
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +6 -6
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgentRelations.d.ts +10 -10
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +12 -12
- package/dist/data-access/manage/subAgents.d.ts +12 -12
- package/dist/data-access/manage/tools.d.ts +12 -12
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +8 -8
- package/dist/data-access/runtime/conversations.d.ts +24 -24
- package/dist/data-access/runtime/messages.d.ts +12 -12
- package/dist/data-access/runtime/tasks.d.ts +5 -5
- package/dist/db/manage/manage-schema.d.ts +382 -382
- package/dist/db/runtime/runtime-schema.d.ts +232 -232
- package/dist/env.d.ts +2 -0
- package/dist/env.js +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +2 -2
- package/dist/utils/schema-conversion.d.ts +1 -11
- package/dist/utils/schema-conversion.js +1 -44
- package/dist/validation/drizzle-schema-helpers.d.ts +3 -3
- package/dist/validation/schemas.d.ts +1511 -1511
- package/package.json +3 -6
package/dist/auth/auth.d.ts
CHANGED
|
@@ -57,6 +57,7 @@ interface BetterAuthConfig {
|
|
|
57
57
|
baseURL: string;
|
|
58
58
|
secret: string;
|
|
59
59
|
dbClient: AgentsRunDatabaseClient;
|
|
60
|
+
cookieDomain?: string;
|
|
60
61
|
ssoProviders?: SSOProviderConfig[];
|
|
61
62
|
socialProviders?: {
|
|
62
63
|
google?: GoogleOptions;
|
|
@@ -70,6 +71,23 @@ interface UserAuthConfig {
|
|
|
70
71
|
};
|
|
71
72
|
advanced?: BetterAuthAdvancedOptions;
|
|
72
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Extracts the root domain from a URL for cross-subdomain cookie sharing.
|
|
76
|
+
*
|
|
77
|
+
* When the API and UI share a common 3-part parent (e.g., api.pilot.inkeep.com
|
|
78
|
+
* and pilot.inkeep.com both share .pilot.inkeep.com), the function auto-computes
|
|
79
|
+
* the shared parent. When domains don't share a 3-part parent (e.g.,
|
|
80
|
+
* api.agents.inkeep.com and app.inkeep.com), set AUTH_COOKIE_DOMAIN explicitly.
|
|
81
|
+
*
|
|
82
|
+
* Examples (auto-computed from baseURL):
|
|
83
|
+
* - https://api.pilot.inkeep.com -> .pilot.inkeep.com
|
|
84
|
+
* - https://pilot.inkeep.com -> .pilot.inkeep.com
|
|
85
|
+
* - http://localhost:3002 -> undefined (no domain for localhost)
|
|
86
|
+
*
|
|
87
|
+
* With AUTH_COOKIE_DOMAIN=.inkeep.com:
|
|
88
|
+
* - Any *.inkeep.com URL -> .inkeep.com
|
|
89
|
+
*/
|
|
90
|
+
declare function extractCookieDomain(baseURL: string, explicitDomain?: string): string | undefined;
|
|
73
91
|
declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
74
92
|
baseURL: string;
|
|
75
93
|
secret: string;
|
|
@@ -852,25 +870,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
852
870
|
ac: better_auth_plugins0.AccessControl;
|
|
853
871
|
roles: {
|
|
854
872
|
member: {
|
|
855
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
856
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
873
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
874
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
857
875
|
connector: "OR" | "AND";
|
|
858
876
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
859
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
877
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
860
878
|
};
|
|
861
879
|
admin: {
|
|
862
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
863
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
880
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
881
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
864
882
|
connector: "OR" | "AND";
|
|
865
883
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
866
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
884
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
867
885
|
};
|
|
868
886
|
owner: {
|
|
869
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
870
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
887
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
888
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
871
889
|
connector: "OR" | "AND";
|
|
872
890
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
873
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
891
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
874
892
|
};
|
|
875
893
|
};
|
|
876
894
|
creatorRole: "admin";
|
|
@@ -1045,7 +1063,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1045
1063
|
id: string;
|
|
1046
1064
|
organizationId: string;
|
|
1047
1065
|
email: string;
|
|
1048
|
-
role: "member" | "
|
|
1066
|
+
role: "member" | "owner" | "admin";
|
|
1049
1067
|
status: better_auth_plugins0.InvitationStatus;
|
|
1050
1068
|
inviterId: string;
|
|
1051
1069
|
expiresAt: Date;
|
|
@@ -1054,7 +1072,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1054
1072
|
Member: {
|
|
1055
1073
|
id: string;
|
|
1056
1074
|
organizationId: string;
|
|
1057
|
-
role: "member" | "
|
|
1075
|
+
role: "member" | "owner" | "admin";
|
|
1058
1076
|
createdAt: Date;
|
|
1059
1077
|
userId: string;
|
|
1060
1078
|
user: {
|
|
@@ -1070,7 +1088,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1070
1088
|
members: {
|
|
1071
1089
|
id: string;
|
|
1072
1090
|
organizationId: string;
|
|
1073
|
-
role: "member" | "
|
|
1091
|
+
role: "member" | "owner" | "admin";
|
|
1074
1092
|
createdAt: Date;
|
|
1075
1093
|
userId: string;
|
|
1076
1094
|
user: {
|
|
@@ -1084,7 +1102,7 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1084
1102
|
id: string;
|
|
1085
1103
|
organizationId: string;
|
|
1086
1104
|
email: string;
|
|
1087
|
-
role: "member" | "
|
|
1105
|
+
role: "member" | "owner" | "admin";
|
|
1088
1106
|
status: better_auth_plugins0.InvitationStatus;
|
|
1089
1107
|
inviterId: string;
|
|
1090
1108
|
expiresAt: Date;
|
|
@@ -1162,25 +1180,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1162
1180
|
ac: better_auth_plugins0.AccessControl;
|
|
1163
1181
|
roles: {
|
|
1164
1182
|
member: {
|
|
1165
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1166
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
1183
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1184
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1167
1185
|
connector: "OR" | "AND";
|
|
1168
1186
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1169
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
1187
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1170
1188
|
};
|
|
1171
1189
|
admin: {
|
|
1172
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1173
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
1190
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1191
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1174
1192
|
connector: "OR" | "AND";
|
|
1175
1193
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1176
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
1194
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1177
1195
|
};
|
|
1178
1196
|
owner: {
|
|
1179
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
1180
|
-
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
1197
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1198
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1181
1199
|
connector: "OR" | "AND";
|
|
1182
1200
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1183
|
-
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "
|
|
1201
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1184
1202
|
};
|
|
1185
1203
|
};
|
|
1186
1204
|
creatorRole: "admin";
|
|
@@ -1591,4 +1609,4 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1591
1609
|
}>;
|
|
1592
1610
|
declare const auth: ReturnType<typeof createAuth>;
|
|
1593
1611
|
//#endregion
|
|
1594
|
-
export { BetterAuthConfig, OIDCProviderConfig, SAMLProviderConfig, SSOProviderConfig, UserAuthConfig, auth, createAuth };
|
|
1612
|
+
export { BetterAuthConfig, OIDCProviderConfig, SAMLProviderConfig, SSOProviderConfig, UserAuthConfig, auth, createAuth, extractCookieDomain };
|
package/dist/auth/auth.js
CHANGED
|
@@ -22,16 +22,22 @@ async function getInitialOrganization(dbClient, userId) {
|
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
24
|
* Extracts the root domain from a URL for cross-subdomain cookie sharing.
|
|
25
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* When the API and UI share a common 3-part parent (e.g., api.pilot.inkeep.com
|
|
27
|
+
* and pilot.inkeep.com both share .pilot.inkeep.com), the function auto-computes
|
|
28
|
+
* the shared parent. When domains don't share a 3-part parent (e.g.,
|
|
29
|
+
* api.agents.inkeep.com and app.inkeep.com), set AUTH_COOKIE_DOMAIN explicitly.
|
|
30
|
+
*
|
|
31
|
+
* Examples (auto-computed from baseURL):
|
|
26
32
|
* - https://api.pilot.inkeep.com -> .pilot.inkeep.com
|
|
27
33
|
* - https://pilot.inkeep.com -> .pilot.inkeep.com
|
|
28
34
|
* - http://localhost:3002 -> undefined (no domain for localhost)
|
|
29
35
|
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* For domains with exactly 2 parts, it takes both parts.
|
|
36
|
+
* With AUTH_COOKIE_DOMAIN=.inkeep.com:
|
|
37
|
+
* - Any *.inkeep.com URL -> .inkeep.com
|
|
33
38
|
*/
|
|
34
|
-
function extractCookieDomain(baseURL) {
|
|
39
|
+
function extractCookieDomain(baseURL, explicitDomain) {
|
|
40
|
+
if (explicitDomain) return explicitDomain.startsWith(".") ? explicitDomain : `.${explicitDomain}`;
|
|
35
41
|
try {
|
|
36
42
|
const hostname = new URL(baseURL).hostname;
|
|
37
43
|
if (hostname === "localhost" || hostname.match(/^\d+\.\d+\.\d+\.\d+$/)) return;
|
|
@@ -65,7 +71,7 @@ async function registerSSOProvider(dbClient, provider) {
|
|
|
65
71
|
}
|
|
66
72
|
}
|
|
67
73
|
function createAuth(config) {
|
|
68
|
-
const cookieDomain = extractCookieDomain(config.baseURL);
|
|
74
|
+
const cookieDomain = extractCookieDomain(config.baseURL, config.cookieDomain);
|
|
69
75
|
const auth$1 = betterAuth({
|
|
70
76
|
baseURL: config.baseURL,
|
|
71
77
|
secret: config.secret,
|
|
@@ -114,7 +120,6 @@ function createAuth(config) {
|
|
|
114
120
|
sameSite: "none",
|
|
115
121
|
secure: true,
|
|
116
122
|
httpOnly: true,
|
|
117
|
-
partitioned: true,
|
|
118
123
|
...cookieDomain && { domain: cookieDomain }
|
|
119
124
|
},
|
|
120
125
|
...config.advanced
|
|
@@ -219,4 +224,4 @@ function createAuth(config) {
|
|
|
219
224
|
const auth = null;
|
|
220
225
|
|
|
221
226
|
//#endregion
|
|
222
|
-
export { auth, createAuth };
|
|
227
|
+
export { auth, createAuth, extractCookieDomain };
|
|
@@ -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 "organization" | "member" | "invitation" | "
|
|
9
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
12
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
16
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
19
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "organization" | "member" | "invitation" | "
|
|
23
|
-
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "invitation" | "project" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "
|
|
26
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "invitation" | "project" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
|
10
10
|
import "./index.js";
|
|
11
11
|
import { AgentStopWhen, AgentStopWhenSchema, ApiKeyApiUpdateSchema, FullAgentAgentInsertSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, ModelSettings, ModelSettingsSchema, ResourceIdSchema, SignatureSource, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, StopWhen, StopWhenSchema, SubAgentStopWhen, SubAgentStopWhenSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema } from "./validation/schemas.js";
|
|
12
12
|
import { z } from "@hono/zod-openapi";
|
|
13
|
+
import { convertJsonSchemaToZod } from "zod-from-json-schema";
|
|
13
14
|
|
|
14
15
|
//#region src/client-exports.d.ts
|
|
15
|
-
|
|
16
16
|
declare const TenantParamsSchema: z.ZodObject<{
|
|
17
17
|
tenantId: z.ZodString;
|
|
18
18
|
}, z.core.$strip>;
|
|
@@ -311,4 +311,4 @@ declare function generateIdFromName(name: string): string;
|
|
|
311
311
|
type ToolInsert = ToolApiInsert;
|
|
312
312
|
type AgentAgentInsert = AgentAgentApiInsert;
|
|
313
313
|
//#endregion
|
|
314
|
-
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsert, AgentAgentApiInsertSchema, AgentAgentInsert, AgentApiInsert, AgentApiInsertSchema, type AgentStopWhen, AgentStopWhenSchema, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdateResponse, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, ContextConfigApiInsert, ContextConfigApiInsertSchema, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, ErrorResponse, ErrorResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentDefinition, FIELD_TYPES, FullAgentDefinition, FullAgentDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, InternalAgentDefinition, ListResponseSchema, MCPTransportType, type ModelSettings, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, type OrgRole, OrgRoles, PANEL_TYPES, PaginationSchema, type ProjectRole, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, type SignatureSource, type SignatureVerificationConfig, SignatureVerificationConfigSchema, type SignedComponent, SingleResponseSchema, type StopWhen, StopWhenSchema, type SubAgentStopWhen, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsert, ToolApiInsertSchema, ToolInsert, TriggerApiInsert, TriggerApiInsertSchema, TriggerApiSelect, TriggerApiSelectSchema, TriggerApiUpdate, TriggerApiUpdateSchema, TriggerInvocationApiSelect, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
|
|
314
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsert, AgentAgentApiInsertSchema, AgentAgentInsert, AgentApiInsert, AgentApiInsertSchema, type AgentStopWhen, AgentStopWhenSchema, ApiKeyApiCreationResponse, ApiKeyApiCreationResponseSchema, ApiKeyApiSelect, ApiKeyApiSelectSchema, ApiKeyApiUpdateResponse, ArtifactComponentApiInsert, ArtifactComponentApiInsertSchema, BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, ContextConfigApiInsert, ContextConfigApiInsertSchema, CredentialReferenceApiInsert, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsert, DataComponentApiInsertSchema, ErrorResponse, ErrorResponseSchema, ExternalAgentApiInsert, ExternalAgentApiInsertSchema, ExternalAgentDefinition, FIELD_TYPES, FullAgentDefinition, FullAgentDefinitionSchema, FunctionApiInsert, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, InternalAgentDefinition, ListResponseSchema, MCPTransportType, type ModelSettings, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, type OrgRole, OrgRoles, PANEL_TYPES, PaginationSchema, type ProjectRole, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, type SignatureSource, type SignatureVerificationConfig, SignatureVerificationConfigSchema, type SignedComponent, SingleResponseSchema, type StopWhen, StopWhenSchema, type SubAgentStopWhen, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParams, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsert, ToolApiInsertSchema, ToolInsert, TriggerApiInsert, TriggerApiInsertSchema, TriggerApiSelect, TriggerApiSelectSchema, TriggerApiUpdate, TriggerApiUpdateSchema, TriggerInvocationApiSelect, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, convertJsonSchemaToZod, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
|
package/dist/client-exports.js
CHANGED
|
@@ -9,6 +9,7 @@ import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIO
|
|
|
9
9
|
import { AGGREGATE_OPERATORS, DATA_SOURCES, DATA_TYPES, FIELD_TYPES, OPERATORS, ORDER_DIRECTIONS, PANEL_TYPES, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS } from "./constants/signoz-queries.js";
|
|
10
10
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
11
11
|
import { z } from "@hono/zod-openapi";
|
|
12
|
+
import { convertJsonSchemaToZod } from "zod-from-json-schema";
|
|
12
13
|
|
|
13
14
|
//#region src/client-exports.ts
|
|
14
15
|
/**
|
|
@@ -165,4 +166,4 @@ function generateIdFromName(name) {
|
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
//#endregion
|
|
168
|
-
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsertSchema, AgentApiInsertSchema, AgentStopWhenSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FIELD_TYPES, FullAgentDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, ListResponseSchema, MCPTransportType, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, OrgRoles, PANEL_TYPES, PaginationSchema, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, SignatureVerificationConfigSchema, SingleResponseSchema, StopWhenSchema, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
|
|
169
|
+
export { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AGGREGATE_OPERATORS, AI_OPERATIONS, AI_TOOL_TYPES, AgentAgentApiInsertSchema, AgentApiInsertSchema, AgentStopWhenSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiSelectSchema, ArtifactComponentApiInsertSchema, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextConfigApiInsertSchema, CredentialReferenceApiInsertSchema, CredentialStoreType, DATA_SOURCES, DATA_TYPES, DEFAULT_NANGO_STORE_ID, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, DataComponentApiInsertSchema, ErrorResponseSchema, ExternalAgentApiInsertSchema, FIELD_TYPES, FullAgentDefinitionSchema, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, IdParamsSchema, ListResponseSchema, MCPTransportType, ModelSettingsSchema, OPERATORS, ORDER_DIRECTIONS, OrgRoles, PANEL_TYPES, PaginationSchema, ProjectRoles, QUERY_DEFAULTS, QUERY_EXPRESSIONS, QUERY_FIELD_CONFIGS, QUERY_TYPES, REDUCE_OPERATIONS, ResourceIdSchema, SPAN_KEYS, SPAN_NAMES, SignatureVerificationConfigSchema, SingleResponseSchema, StopWhenSchema, SubAgentStopWhenSchema, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, TenantParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, ToolApiInsertSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerInvocationApiSelectSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationStatusEnum, TriggerListResponse, TriggerResponse, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, UNKNOWN_VALUE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, convertJsonSchemaToZod, createEmptyBreakdown, detectAuthenticationRequired, generateIdFromName, parseContextBreakdownFromSpan, validatePropsAsJsonSchema };
|
|
@@ -10,9 +10,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
id: string;
|
|
12
12
|
name: string;
|
|
13
|
+
description: string | null;
|
|
13
14
|
createdAt: string;
|
|
14
15
|
updatedAt: string;
|
|
15
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
tenantId: string;
|
|
16
18
|
stopWhen: {
|
|
17
19
|
transferCountIs?: number | undefined;
|
|
18
20
|
} | null;
|
|
@@ -31,8 +33,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
33
|
providerOptions?: Record<string, any> | undefined;
|
|
32
34
|
} | undefined;
|
|
33
35
|
} | null;
|
|
34
|
-
projectId: string;
|
|
35
|
-
tenantId: string;
|
|
36
36
|
defaultSubAgentId: string | null;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
38
|
statusUpdates: {
|
|
@@ -56,9 +56,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
56
56
|
}) => Promise<{
|
|
57
57
|
id: string;
|
|
58
58
|
name: string;
|
|
59
|
+
description: string | null;
|
|
59
60
|
createdAt: string;
|
|
60
61
|
updatedAt: string;
|
|
61
|
-
|
|
62
|
+
projectId: string;
|
|
63
|
+
tenantId: string;
|
|
62
64
|
stopWhen: {
|
|
63
65
|
transferCountIs?: number | undefined;
|
|
64
66
|
} | null;
|
|
@@ -77,8 +79,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
77
79
|
providerOptions?: Record<string, any> | undefined;
|
|
78
80
|
} | undefined;
|
|
79
81
|
} | null;
|
|
80
|
-
projectId: string;
|
|
81
|
-
tenantId: string;
|
|
82
82
|
defaultSubAgentId: string | null;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
84
|
statusUpdates: {
|
|
@@ -99,9 +99,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
id: string;
|
|
101
101
|
name: string;
|
|
102
|
+
description: string | null;
|
|
102
103
|
createdAt: string;
|
|
103
104
|
updatedAt: string;
|
|
104
|
-
|
|
105
|
+
projectId: string;
|
|
106
|
+
tenantId: string;
|
|
107
|
+
agentId: string;
|
|
105
108
|
stopWhen: {
|
|
106
109
|
stepCountIs?: number | undefined;
|
|
107
110
|
} | null;
|
|
@@ -121,9 +124,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
121
124
|
providerOptions?: Record<string, any> | undefined;
|
|
122
125
|
} | undefined;
|
|
123
126
|
} | null;
|
|
124
|
-
agentId: string;
|
|
125
|
-
projectId: string;
|
|
126
|
-
tenantId: string;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -131,9 +131,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
}) => Promise<{
|
|
132
132
|
id: string;
|
|
133
133
|
name: string;
|
|
134
|
+
description: string | null;
|
|
134
135
|
createdAt: string;
|
|
135
136
|
updatedAt: string;
|
|
136
|
-
|
|
137
|
+
projectId: string;
|
|
138
|
+
tenantId: string;
|
|
137
139
|
stopWhen: {
|
|
138
140
|
transferCountIs?: number | undefined;
|
|
139
141
|
} | null;
|
|
@@ -152,8 +154,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
154
|
providerOptions?: Record<string, any> | undefined;
|
|
153
155
|
} | undefined;
|
|
154
156
|
} | null;
|
|
155
|
-
projectId: string;
|
|
156
|
-
tenantId: string;
|
|
157
157
|
defaultSubAgentId: string | null;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
159
|
statusUpdates: {
|
|
@@ -247,9 +247,11 @@ declare function listAgentsAcrossProjectBranches(db: AgentsManageDatabaseClient,
|
|
|
247
247
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
248
248
|
id: string;
|
|
249
249
|
name: string;
|
|
250
|
+
description: string | null;
|
|
250
251
|
createdAt: string;
|
|
251
252
|
updatedAt: string;
|
|
252
|
-
|
|
253
|
+
projectId: string;
|
|
254
|
+
tenantId: string;
|
|
253
255
|
stopWhen: {
|
|
254
256
|
transferCountIs?: number | undefined;
|
|
255
257
|
} | null;
|
|
@@ -268,8 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
268
270
|
providerOptions?: Record<string, any> | undefined;
|
|
269
271
|
} | undefined;
|
|
270
272
|
} | null;
|
|
271
|
-
projectId: string;
|
|
272
|
-
tenantId: string;
|
|
273
273
|
defaultSubAgentId: string | null;
|
|
274
274
|
contextConfigId: string | null;
|
|
275
275
|
statusUpdates: {
|
|
@@ -9,9 +9,9 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
id: string;
|
|
11
11
|
name: string;
|
|
12
|
+
description: string | null;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
|
-
description: string | null;
|
|
15
15
|
projectId: string;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
@@ -51,9 +51,9 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
51
51
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
52
52
|
id: string;
|
|
53
53
|
name: string;
|
|
54
|
+
description: string | null;
|
|
54
55
|
createdAt: string;
|
|
55
56
|
updatedAt: string;
|
|
56
|
-
description: string | null;
|
|
57
57
|
projectId: string;
|
|
58
58
|
tenantId: string;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
@@ -106,9 +106,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
106
106
|
}) => Promise<{
|
|
107
107
|
id: string;
|
|
108
108
|
createdAt: string;
|
|
109
|
-
agentId: string;
|
|
110
109
|
projectId: string;
|
|
111
110
|
tenantId: string;
|
|
111
|
+
agentId: string;
|
|
112
112
|
subAgentId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
@@ -149,9 +149,9 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
149
149
|
}) => Promise<{
|
|
150
150
|
id: string;
|
|
151
151
|
createdAt: string;
|
|
152
|
-
agentId: string;
|
|
153
152
|
projectId: string;
|
|
154
153
|
tenantId: string;
|
|
154
|
+
agentId: string;
|
|
155
155
|
subAgentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
@@ -11,9 +11,9 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
14
|
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
agentId: string;
|
|
17
17
|
headersSchema: unknown;
|
|
18
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
@@ -23,9 +23,9 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
-
agentId: string;
|
|
27
26
|
projectId: string;
|
|
28
27
|
tenantId: string;
|
|
28
|
+
agentId: string;
|
|
29
29
|
headersSchema: unknown;
|
|
30
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
@@ -45,9 +45,9 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
45
45
|
id: string;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
|
-
agentId: string;
|
|
49
48
|
projectId: string;
|
|
50
49
|
tenantId: string;
|
|
50
|
+
agentId: string;
|
|
51
51
|
headersSchema: unknown;
|
|
52
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
@@ -85,9 +85,9 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
85
85
|
id: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
updatedAt: string;
|
|
88
|
-
agentId: string;
|
|
89
88
|
projectId: string;
|
|
90
89
|
tenantId: string;
|
|
90
|
+
agentId: string;
|
|
91
91
|
headersSchema: unknown;
|
|
92
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
@@ -66,9 +66,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
|
-
agentId: string;
|
|
70
69
|
projectId: string;
|
|
71
70
|
tenantId: string;
|
|
71
|
+
agentId: string;
|
|
72
72
|
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
@@ -108,9 +108,9 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
108
108
|
}) => Promise<{
|
|
109
109
|
id: string;
|
|
110
110
|
createdAt: string;
|
|
111
|
-
agentId: string;
|
|
112
111
|
projectId: string;
|
|
113
112
|
tenantId: string;
|
|
113
|
+
agentId: string;
|
|
114
114
|
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
id: string;
|
|
57
57
|
name: string;
|
|
58
|
+
description: string | null;
|
|
58
59
|
createdAt: string;
|
|
59
60
|
updatedAt: string;
|
|
60
|
-
description: string | null;
|
|
61
|
-
agentId: string;
|
|
62
61
|
projectId: string;
|
|
63
62
|
tenantId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -97,12 +97,12 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
97
97
|
}) => Promise<{
|
|
98
98
|
id: string;
|
|
99
99
|
name: string;
|
|
100
|
+
description: string | null;
|
|
100
101
|
createdAt: string;
|
|
101
102
|
updatedAt: string;
|
|
102
|
-
description: string | null;
|
|
103
|
-
agentId: string;
|
|
104
103
|
projectId: string;
|
|
105
104
|
tenantId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -164,9 +164,9 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
agentId: string;
|
|
168
167
|
projectId: string;
|
|
169
168
|
tenantId: string;
|
|
169
|
+
agentId: string;
|
|
170
170
|
subAgentId: string;
|
|
171
171
|
functionToolId: string;
|
|
172
172
|
toolPolicies: Record<string, {
|
|
@@ -229,9 +229,9 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
agentId: string;
|
|
233
232
|
projectId: string;
|
|
234
233
|
tenantId: string;
|
|
234
|
+
agentId: string;
|
|
235
235
|
subAgentId: string;
|
|
236
236
|
functionToolId: string;
|
|
237
237
|
toolPolicies: Record<string, {
|
|
@@ -11,10 +11,10 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
-
headers: Record<string, string> | null;
|
|
15
|
-
agentId: string;
|
|
16
14
|
projectId: string;
|
|
17
15
|
tenantId: string;
|
|
16
|
+
agentId: string;
|
|
17
|
+
headers: Record<string, string> | null;
|
|
18
18
|
subAgentId: string;
|
|
19
19
|
externalAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
@@ -46,10 +46,10 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
46
46
|
id: string;
|
|
47
47
|
createdAt: string;
|
|
48
48
|
updatedAt: string;
|
|
49
|
-
headers: Record<string, string> | null;
|
|
50
|
-
agentId: string;
|
|
51
49
|
projectId: string;
|
|
52
50
|
tenantId: string;
|
|
51
|
+
agentId: string;
|
|
52
|
+
headers: Record<string, string> | null;
|
|
53
53
|
subAgentId: string;
|
|
54
54
|
externalAgentId: string;
|
|
55
55
|
}[]>;
|
|
@@ -59,10 +59,10 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
59
59
|
id: string;
|
|
60
60
|
createdAt: string;
|
|
61
61
|
updatedAt: string;
|
|
62
|
-
headers: Record<string, string> | null;
|
|
63
|
-
agentId: string;
|
|
64
62
|
projectId: string;
|
|
65
63
|
tenantId: string;
|
|
64
|
+
agentId: string;
|
|
65
|
+
headers: Record<string, string> | null;
|
|
66
66
|
subAgentId: string;
|
|
67
67
|
externalAgentId: string;
|
|
68
68
|
}[]>;
|
|
@@ -182,10 +182,10 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
182
182
|
id: string;
|
|
183
183
|
createdAt: string;
|
|
184
184
|
updatedAt: string;
|
|
185
|
-
headers: Record<string, string> | null;
|
|
186
|
-
agentId: string;
|
|
187
185
|
projectId: string;
|
|
188
186
|
tenantId: string;
|
|
187
|
+
agentId: string;
|
|
188
|
+
headers: Record<string, string> | null;
|
|
189
189
|
subAgentId: string;
|
|
190
190
|
externalAgentId: string;
|
|
191
191
|
}>;
|
|
@@ -199,10 +199,10 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
199
199
|
id: string;
|
|
200
200
|
createdAt: string;
|
|
201
201
|
updatedAt: string;
|
|
202
|
-
headers: Record<string, string> | null;
|
|
203
|
-
agentId: string;
|
|
204
202
|
projectId: string;
|
|
205
203
|
tenantId: string;
|
|
204
|
+
agentId: string;
|
|
205
|
+
headers: Record<string, string> | null;
|
|
206
206
|
subAgentId: string;
|
|
207
207
|
externalAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
@@ -220,10 +220,10 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
220
220
|
id: string;
|
|
221
221
|
createdAt: string;
|
|
222
222
|
updatedAt: string;
|
|
223
|
-
headers: Record<string, string> | null;
|
|
224
|
-
agentId: string;
|
|
225
223
|
projectId: string;
|
|
226
224
|
tenantId: string;
|
|
225
|
+
agentId: string;
|
|
226
|
+
headers: Record<string, string> | null;
|
|
227
227
|
subAgentId: string;
|
|
228
228
|
externalAgentId: string;
|
|
229
229
|
}>;
|