@inkeep/agents-core 0.0.0-dev-20260205163322 → 0.0.0-dev-20260205192144
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 +129 -129
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +13 -12
- package/dist/client-exports.js +2 -1
- package/dist/data-access/manage/agents.d.ts +17 -17
- package/dist/data-access/manage/artifactComponents.d.ts +2 -2
- package/dist/data-access/manage/dataComponents.d.ts +2 -2
- package/dist/data-access/manage/functionTools.d.ts +4 -4
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgentRelations.d.ts +8 -8
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +6 -6
- package/dist/data-access/manage/subAgents.d.ts +15 -15
- package/dist/data-access/manage/tools.d.ts +3 -3
- package/dist/data-access/manage/triggers.d.ts +1 -1
- 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 +380 -380
- package/dist/db/runtime/runtime-schema.d.ts +232 -232
- package/dist/utils/schema-conversion.d.ts +3 -0
- package/dist/utils/schema-conversion.js +3 -0
- package/dist/validation/schemas.d.ts +263 -263
- package/package.json +2 -5
package/dist/auth/auth.d.ts
CHANGED
|
@@ -852,25 +852,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
852
852
|
ac: better_auth_plugins20.AccessControl;
|
|
853
853
|
roles: {
|
|
854
854
|
member: {
|
|
855
|
-
authorize<K_1 extends "
|
|
856
|
-
actions: better_auth_plugins20.Subset<"
|
|
855
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
856
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
857
857
|
connector: "OR" | "AND";
|
|
858
858
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
859
|
-
statements: better_auth_plugins20.Subset<"
|
|
859
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
860
860
|
};
|
|
861
861
|
admin: {
|
|
862
|
-
authorize<K_1 extends "
|
|
863
|
-
actions: better_auth_plugins20.Subset<"
|
|
862
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
863
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
864
864
|
connector: "OR" | "AND";
|
|
865
865
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
866
|
-
statements: better_auth_plugins20.Subset<"
|
|
866
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
867
867
|
};
|
|
868
868
|
owner: {
|
|
869
|
-
authorize<K_1 extends "
|
|
870
|
-
actions: better_auth_plugins20.Subset<"
|
|
869
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
870
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
871
871
|
connector: "OR" | "AND";
|
|
872
872
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
873
|
-
statements: better_auth_plugins20.Subset<"
|
|
873
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
874
874
|
};
|
|
875
875
|
};
|
|
876
876
|
creatorRole: "admin";
|
|
@@ -1162,25 +1162,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1162
1162
|
ac: better_auth_plugins20.AccessControl;
|
|
1163
1163
|
roles: {
|
|
1164
1164
|
member: {
|
|
1165
|
-
authorize<K_1 extends "
|
|
1166
|
-
actions: better_auth_plugins20.Subset<"
|
|
1165
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1166
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1167
1167
|
connector: "OR" | "AND";
|
|
1168
1168
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1169
|
-
statements: better_auth_plugins20.Subset<"
|
|
1169
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1170
1170
|
};
|
|
1171
1171
|
admin: {
|
|
1172
|
-
authorize<K_1 extends "
|
|
1173
|
-
actions: better_auth_plugins20.Subset<"
|
|
1172
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1173
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1174
1174
|
connector: "OR" | "AND";
|
|
1175
1175
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1176
|
-
statements: better_auth_plugins20.Subset<"
|
|
1176
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1177
1177
|
};
|
|
1178
1178
|
owner: {
|
|
1179
|
-
authorize<K_1 extends "
|
|
1180
|
-
actions: better_auth_plugins20.Subset<"
|
|
1179
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key] | {
|
|
1180
|
+
actions: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>[key];
|
|
1181
1181
|
connector: "OR" | "AND";
|
|
1182
1182
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins20.AuthorizeResponse;
|
|
1183
|
-
statements: better_auth_plugins20.Subset<"
|
|
1183
|
+
statements: better_auth_plugins20.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins20.Statements>;
|
|
1184
1184
|
};
|
|
1185
1185
|
};
|
|
1186
1186
|
creatorRole: "admin";
|
|
@@ -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 "
|
|
9
|
-
actions: better_auth_plugins0.Subset<"
|
|
8
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
11
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
12
|
-
statements: better_auth_plugins0.Subset<"
|
|
12
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins0.Subset<"
|
|
15
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
18
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
19
|
-
statements: better_auth_plugins0.Subset<"
|
|
19
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins0.Subset<"
|
|
22
|
+
authorize<K_1 extends "project" | "organization" | "team" | "member" | "ac" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
25
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
26
|
-
statements: better_auth_plugins0.Subset<"
|
|
26
|
+
statements: better_auth_plugins0.Subset<"project" | "organization" | "team" | "member" | "ac" | "invitation", better_auth_plugins0.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
|
9
9
|
import { validatePropsAsJsonSchema } from "./validation/props-validation.js";
|
|
10
10
|
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";
|
|
11
11
|
import { z } from "@hono/zod-openapi";
|
|
12
|
+
import { convertJsonSchemaToZod } from "zod-from-json-schema";
|
|
12
13
|
|
|
13
14
|
//#region src/client-exports.d.ts
|
|
14
15
|
|
|
@@ -65,8 +66,8 @@ declare const AgentApiInsertSchema: z.ZodObject<{
|
|
|
65
66
|
canTransferTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
66
67
|
canDelegateTo: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
67
68
|
type: z.ZodOptional<z.ZodEnum<{
|
|
68
|
-
internal: "internal";
|
|
69
69
|
external: "external";
|
|
70
|
+
internal: "internal";
|
|
70
71
|
}>>;
|
|
71
72
|
}, z.core.$strip>;
|
|
72
73
|
declare const ToolApiInsertSchema: z.ZodObject<{
|
|
@@ -196,6 +197,16 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
196
197
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
197
198
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
198
199
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
200
|
+
stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
201
|
+
stepCountIs?: number | undefined;
|
|
202
|
+
}, {
|
|
203
|
+
stepCountIs?: number | undefined;
|
|
204
|
+
}, z.core.$ZodTypeInternals<{
|
|
205
|
+
stepCountIs?: number | undefined;
|
|
206
|
+
}, {
|
|
207
|
+
stepCountIs?: number | undefined;
|
|
208
|
+
}>>>>;
|
|
209
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
199
210
|
models: z.ZodOptional<z.ZodObject<{
|
|
200
211
|
base: z.ZodOptional<z.ZodObject<{
|
|
201
212
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -210,16 +221,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
210
221
|
providerOptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
211
222
|
}, z.core.$strip>>;
|
|
212
223
|
}, z.core.$strip>>;
|
|
213
|
-
stopWhen: z.ZodOptional<z.ZodNullable<z.ZodType<{
|
|
214
|
-
stepCountIs?: number | undefined;
|
|
215
|
-
}, {
|
|
216
|
-
stepCountIs?: number | undefined;
|
|
217
|
-
}, z.core.$ZodTypeInternals<{
|
|
218
|
-
stepCountIs?: number | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
stepCountIs?: number | undefined;
|
|
221
|
-
}>>>>;
|
|
222
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
223
224
|
type: z.ZodLiteral<"internal">;
|
|
224
225
|
canUse: z.ZodArray<z.ZodObject<{
|
|
225
226
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -310,4 +311,4 @@ declare function generateIdFromName(name: string): string;
|
|
|
310
311
|
type ToolInsert = ToolApiInsert;
|
|
311
312
|
type AgentAgentInsert = AgentAgentApiInsert;
|
|
312
313
|
//#endregion
|
|
313
|
-
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 };
|
|
@@ -15,6 +15,9 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
15
15
|
description: string | null;
|
|
16
16
|
tenantId: string;
|
|
17
17
|
projectId: string;
|
|
18
|
+
stopWhen: {
|
|
19
|
+
transferCountIs?: number | undefined;
|
|
20
|
+
} | null;
|
|
18
21
|
prompt: string | null;
|
|
19
22
|
models: {
|
|
20
23
|
base?: {
|
|
@@ -30,9 +33,6 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
30
33
|
providerOptions?: Record<string, any> | undefined;
|
|
31
34
|
} | undefined;
|
|
32
35
|
} | null;
|
|
33
|
-
stopWhen: {
|
|
34
|
-
transferCountIs?: number | undefined;
|
|
35
|
-
} | null;
|
|
36
36
|
defaultSubAgentId: string | null;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
38
|
statusUpdates: {
|
|
@@ -61,6 +61,9 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
61
61
|
description: string | null;
|
|
62
62
|
tenantId: string;
|
|
63
63
|
projectId: string;
|
|
64
|
+
stopWhen: {
|
|
65
|
+
transferCountIs?: number | undefined;
|
|
66
|
+
} | null;
|
|
64
67
|
prompt: string | null;
|
|
65
68
|
models: {
|
|
66
69
|
base?: {
|
|
@@ -76,9 +79,6 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
76
79
|
providerOptions?: Record<string, any> | undefined;
|
|
77
80
|
} | undefined;
|
|
78
81
|
} | null;
|
|
79
|
-
stopWhen: {
|
|
80
|
-
transferCountIs?: number | undefined;
|
|
81
|
-
} | null;
|
|
82
82
|
defaultSubAgentId: string | null;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
84
|
statusUpdates: {
|
|
@@ -104,8 +104,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
104
104
|
description: string | null;
|
|
105
105
|
tenantId: string;
|
|
106
106
|
projectId: string;
|
|
107
|
+
stopWhen: {
|
|
108
|
+
stepCountIs?: number | undefined;
|
|
109
|
+
} | null;
|
|
107
110
|
prompt: string | null;
|
|
108
|
-
|
|
111
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
109
112
|
models: {
|
|
110
113
|
base?: {
|
|
111
114
|
model?: string | undefined;
|
|
@@ -120,10 +123,7 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
120
123
|
providerOptions?: Record<string, any> | undefined;
|
|
121
124
|
} | undefined;
|
|
122
125
|
} | null;
|
|
123
|
-
|
|
124
|
-
stepCountIs?: number | undefined;
|
|
125
|
-
} | null;
|
|
126
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
126
|
+
agentId: string;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -136,6 +136,9 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
136
136
|
description: string | null;
|
|
137
137
|
tenantId: string;
|
|
138
138
|
projectId: string;
|
|
139
|
+
stopWhen: {
|
|
140
|
+
transferCountIs?: number | undefined;
|
|
141
|
+
} | null;
|
|
139
142
|
prompt: string | null;
|
|
140
143
|
models: {
|
|
141
144
|
base?: {
|
|
@@ -151,9 +154,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
151
154
|
providerOptions?: Record<string, any> | undefined;
|
|
152
155
|
} | undefined;
|
|
153
156
|
} | null;
|
|
154
|
-
stopWhen: {
|
|
155
|
-
transferCountIs?: number | undefined;
|
|
156
|
-
} | null;
|
|
157
157
|
defaultSubAgentId: string | null;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
159
|
statusUpdates: {
|
|
@@ -252,6 +252,9 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
252
252
|
description: string | null;
|
|
253
253
|
tenantId: string;
|
|
254
254
|
projectId: string;
|
|
255
|
+
stopWhen: {
|
|
256
|
+
transferCountIs?: number | undefined;
|
|
257
|
+
} | null;
|
|
255
258
|
prompt: string | null;
|
|
256
259
|
models: {
|
|
257
260
|
base?: {
|
|
@@ -267,9 +270,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
267
270
|
providerOptions?: Record<string, any> | undefined;
|
|
268
271
|
} | undefined;
|
|
269
272
|
} | null;
|
|
270
|
-
stopWhen: {
|
|
271
|
-
transferCountIs?: number | undefined;
|
|
272
|
-
} | null;
|
|
273
273
|
defaultSubAgentId: string | null;
|
|
274
274
|
contextConfigId: string | null;
|
|
275
275
|
statusUpdates: {
|
|
@@ -108,8 +108,8 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
108
108
|
createdAt: string;
|
|
109
109
|
tenantId: string;
|
|
110
110
|
projectId: string;
|
|
111
|
-
agentId: string;
|
|
112
111
|
subAgentId: string;
|
|
112
|
+
agentId: string;
|
|
113
113
|
artifactComponentId: string;
|
|
114
114
|
}>;
|
|
115
115
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -151,8 +151,8 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
151
151
|
createdAt: string;
|
|
152
152
|
tenantId: string;
|
|
153
153
|
projectId: string;
|
|
154
|
-
agentId: string;
|
|
155
154
|
subAgentId: string;
|
|
155
|
+
agentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
158
158
|
/**
|
|
@@ -68,8 +68,8 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
68
68
|
createdAt: string;
|
|
69
69
|
tenantId: string;
|
|
70
70
|
projectId: string;
|
|
71
|
-
agentId: string;
|
|
72
71
|
subAgentId: string;
|
|
72
|
+
agentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
@@ -110,8 +110,8 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
110
110
|
createdAt: string;
|
|
111
111
|
tenantId: string;
|
|
112
112
|
projectId: string;
|
|
113
|
-
agentId: string;
|
|
114
113
|
subAgentId: string;
|
|
114
|
+
agentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
@@ -166,12 +166,12 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
166
166
|
updatedAt: string;
|
|
167
167
|
tenantId: string;
|
|
168
168
|
projectId: string;
|
|
169
|
+
subAgentId: string;
|
|
169
170
|
agentId: string;
|
|
171
|
+
functionToolId: string;
|
|
170
172
|
toolPolicies: Record<string, {
|
|
171
173
|
needsApproval?: boolean;
|
|
172
174
|
}> | null;
|
|
173
|
-
subAgentId: string;
|
|
174
|
-
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -231,12 +231,12 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
231
231
|
updatedAt: string;
|
|
232
232
|
tenantId: string;
|
|
233
233
|
projectId: string;
|
|
234
|
+
subAgentId: string;
|
|
234
235
|
agentId: string;
|
|
236
|
+
functionToolId: string;
|
|
235
237
|
toolPolicies: Record<string, {
|
|
236
238
|
needsApproval?: boolean;
|
|
237
239
|
}> | null;
|
|
238
|
-
subAgentId: string;
|
|
239
|
-
functionToolId: string;
|
|
240
240
|
}>;
|
|
241
241
|
//#endregion
|
|
242
242
|
export { addFunctionToolToSubAgent, associateFunctionToolWithSubAgent, createFunctionTool, deleteFunctionTool, getFunctionToolById, getFunctionToolsForSubAgent, getSubAgentsUsingFunctionTool, isFunctionToolAssociatedWithSubAgent, listFunctionTools, removeFunctionToolFromSubAgent, updateFunctionTool, updateSubAgentFunctionToolRelation, upsertFunctionTool, upsertSubAgentFunctionToolRelation };
|
|
@@ -14,9 +14,9 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
14
14
|
headers: Record<string, string> | null;
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
|
+
subAgentId: string;
|
|
17
18
|
agentId: string;
|
|
18
19
|
externalAgentId: string;
|
|
19
|
-
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -49,9 +49,9 @@ declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient
|
|
|
49
49
|
headers: Record<string, string> | null;
|
|
50
50
|
tenantId: string;
|
|
51
51
|
projectId: string;
|
|
52
|
+
subAgentId: string;
|
|
52
53
|
agentId: string;
|
|
53
54
|
externalAgentId: string;
|
|
54
|
-
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
@@ -62,9 +62,9 @@ declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabas
|
|
|
62
62
|
headers: Record<string, string> | null;
|
|
63
63
|
tenantId: string;
|
|
64
64
|
projectId: string;
|
|
65
|
+
subAgentId: string;
|
|
65
66
|
agentId: string;
|
|
66
67
|
externalAgentId: string;
|
|
67
|
-
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -185,9 +185,9 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
185
185
|
headers: Record<string, string> | null;
|
|
186
186
|
tenantId: string;
|
|
187
187
|
projectId: string;
|
|
188
|
+
subAgentId: string;
|
|
188
189
|
agentId: string;
|
|
189
190
|
externalAgentId: string;
|
|
190
|
-
subAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -202,9 +202,9 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
202
202
|
headers: Record<string, string> | null;
|
|
203
203
|
tenantId: string;
|
|
204
204
|
projectId: string;
|
|
205
|
+
subAgentId: string;
|
|
205
206
|
agentId: string;
|
|
206
207
|
externalAgentId: string;
|
|
207
|
-
subAgentId: string;
|
|
208
208
|
} | undefined>;
|
|
209
209
|
/**
|
|
210
210
|
* Upsert sub-agent external agent relation (create if it doesn't exist, update if it does)
|
|
@@ -223,9 +223,9 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
223
223
|
headers: Record<string, string> | null;
|
|
224
224
|
tenantId: string;
|
|
225
225
|
projectId: string;
|
|
226
|
+
subAgentId: string;
|
|
226
227
|
agentId: string;
|
|
227
228
|
externalAgentId: string;
|
|
228
|
-
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|
|
@@ -14,9 +14,9 @@ declare const getAgentRelationById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
14
14
|
tenantId: string;
|
|
15
15
|
projectId: string;
|
|
16
16
|
agentId: 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
|
tenantId: string;
|
|
50
50
|
projectId: string;
|
|
51
51
|
agentId: 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
|
tenantId: string;
|
|
63
63
|
projectId: string;
|
|
64
64
|
agentId: 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
|
tenantId: string;
|
|
132
132
|
projectId: string;
|
|
133
133
|
agentId: 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
|
tenantId: string;
|
|
151
151
|
projectId: string;
|
|
152
152
|
agentId: 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
|
tenantId: string;
|
|
165
165
|
projectId: string;
|
|
166
166
|
agentId: 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;
|
|
@@ -209,12 +209,12 @@ declare const createAgentToolRelation: (db: AgentsManageDatabaseClient) => (para
|
|
|
209
209
|
headers: Record<string, string> | null;
|
|
210
210
|
tenantId: string;
|
|
211
211
|
projectId: string;
|
|
212
|
+
subAgentId: string;
|
|
212
213
|
agentId: string;
|
|
213
214
|
toolId: string;
|
|
214
215
|
toolPolicies: Record<string, {
|
|
215
216
|
needsApproval?: boolean;
|
|
216
217
|
}> | null;
|
|
217
|
-
subAgentId: string;
|
|
218
218
|
selectedTools: string[] | null;
|
|
219
219
|
}>;
|
|
220
220
|
declare const updateAgentToolRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -253,12 +253,12 @@ declare const getAgentToolRelationById: (db: AgentsManageDatabaseClient) => (par
|
|
|
253
253
|
headers: Record<string, string> | null;
|
|
254
254
|
tenantId: string;
|
|
255
255
|
projectId: string;
|
|
256
|
+
subAgentId: string;
|
|
256
257
|
agentId: string;
|
|
257
258
|
toolId: string;
|
|
258
259
|
toolPolicies: Record<string, {
|
|
259
260
|
needsApproval?: boolean;
|
|
260
261
|
}> | null;
|
|
261
|
-
subAgentId: string;
|
|
262
262
|
selectedTools: string[] | null;
|
|
263
263
|
} | undefined>;
|
|
264
264
|
declare const getAgentToolRelationByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -14,8 +14,8 @@ declare const getSubAgentTeamAgentRelationById: (db: AgentsManageDatabaseClient)
|
|
|
14
14
|
headers: Record<string, string> | null;
|
|
15
15
|
tenantId: string;
|
|
16
16
|
projectId: string;
|
|
17
|
-
agentId: string;
|
|
18
17
|
subAgentId: string;
|
|
18
|
+
agentId: string;
|
|
19
19
|
targetAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -49,8 +49,8 @@ declare const getSubAgentTeamAgentRelations: (db: AgentsManageDatabaseClient) =>
|
|
|
49
49
|
headers: Record<string, string> | null;
|
|
50
50
|
tenantId: string;
|
|
51
51
|
projectId: string;
|
|
52
|
-
agentId: string;
|
|
53
52
|
subAgentId: string;
|
|
53
|
+
agentId: string;
|
|
54
54
|
targetAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -62,8 +62,8 @@ declare const getSubAgentTeamAgentRelationsByAgent: (db: AgentsManageDatabaseCli
|
|
|
62
62
|
headers: Record<string, string> | null;
|
|
63
63
|
tenantId: string;
|
|
64
64
|
projectId: string;
|
|
65
|
-
agentId: string;
|
|
66
65
|
subAgentId: string;
|
|
66
|
+
agentId: string;
|
|
67
67
|
targetAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentTeamAgentRelationsByTeamAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -215,8 +215,8 @@ declare const createSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
215
215
|
headers: Record<string, string> | null;
|
|
216
216
|
tenantId: string;
|
|
217
217
|
projectId: string;
|
|
218
|
-
agentId: string;
|
|
219
218
|
subAgentId: string;
|
|
219
|
+
agentId: string;
|
|
220
220
|
targetAgentId: string;
|
|
221
221
|
}>;
|
|
222
222
|
/**
|
|
@@ -232,8 +232,8 @@ declare const getSubAgentTeamAgentRelationByParams: (db: AgentsManageDatabaseCli
|
|
|
232
232
|
headers: Record<string, string> | null;
|
|
233
233
|
tenantId: string;
|
|
234
234
|
projectId: string;
|
|
235
|
-
agentId: string;
|
|
236
235
|
subAgentId: string;
|
|
236
|
+
agentId: string;
|
|
237
237
|
targetAgentId: string;
|
|
238
238
|
} | undefined>;
|
|
239
239
|
/**
|
|
@@ -253,8 +253,8 @@ declare const upsertSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient)
|
|
|
253
253
|
headers: Record<string, string> | null;
|
|
254
254
|
tenantId: string;
|
|
255
255
|
projectId: string;
|
|
256
|
-
agentId: string;
|
|
257
256
|
subAgentId: string;
|
|
257
|
+
agentId: string;
|
|
258
258
|
targetAgentId: string;
|
|
259
259
|
}>;
|
|
260
260
|
declare const updateSubAgentTeamAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|