@inkeep/agents-core 0.0.0-dev-20260219220341 → 0.0.0-dev-20260220013449
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 +105 -105
- package/dist/auth/auth-validation-schemas.d.ts +131 -131
- package/dist/auth/auth.d.ts +18 -18
- package/dist/auth/permissions.d.ts +9 -9
- package/dist/client-exports.d.ts +5 -4
- package/dist/data-access/manage/agents.d.ts +26 -26
- package/dist/data-access/manage/artifactComponents.d.ts +12 -12
- package/dist/data-access/manage/contextConfigs.d.ts +8 -8
- package/dist/data-access/manage/dataComponents.d.ts +6 -6
- package/dist/data-access/manage/functionTools.d.ts +12 -12
- package/dist/data-access/manage/skills.d.ts +10 -10
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgentRelations.d.ts +26 -26
- package/dist/data-access/manage/subAgentTeamAgentRelations.d.ts +18 -18
- package/dist/data-access/manage/subAgents.d.ts +18 -18
- package/dist/data-access/manage/tools.d.ts +15 -15
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +8 -8
- package/dist/data-access/runtime/messages.d.ts +15 -15
- package/dist/data-access/runtime/scheduledTriggerInvocations.d.ts +3 -3
- package/dist/data-access/runtime/tasks.d.ts +4 -4
- package/dist/data-access/runtime/workAppSlack.js +1 -0
- package/dist/db/manage/manage-schema.d.ts +445 -445
- package/dist/db/runtime/runtime-schema.d.ts +307 -290
- package/dist/db/runtime/runtime-schema.js +1 -0
- package/dist/types/utility.d.ts +6 -0
- package/dist/utils/slack-user-token.d.ts +11 -0
- package/dist/utils/slack-user-token.js +11 -3
- package/dist/validation/schemas.d.ts +306 -306
- package/drizzle/runtime/0014_odd_oracle.sql +1 -0
- package/drizzle/runtime/meta/0014_snapshot.json +3753 -0
- package/drizzle/runtime/meta/_journal.json +7 -0
- package/package.json +1 -1
package/dist/auth/auth.d.ts
CHANGED
|
@@ -880,25 +880,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
880
880
|
ac: better_auth_plugins0.AccessControl;
|
|
881
881
|
roles: {
|
|
882
882
|
member: {
|
|
883
|
-
authorize<K_1 extends "
|
|
884
|
-
actions: better_auth_plugins0.Subset<"
|
|
883
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
884
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
885
885
|
connector: "OR" | "AND";
|
|
886
886
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
887
|
-
statements: better_auth_plugins0.Subset<"
|
|
887
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
888
888
|
};
|
|
889
889
|
admin: {
|
|
890
|
-
authorize<K_1 extends "
|
|
891
|
-
actions: better_auth_plugins0.Subset<"
|
|
890
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
891
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
892
892
|
connector: "OR" | "AND";
|
|
893
893
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
894
|
-
statements: better_auth_plugins0.Subset<"
|
|
894
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
895
895
|
};
|
|
896
896
|
owner: {
|
|
897
|
-
authorize<K_1 extends "
|
|
898
|
-
actions: better_auth_plugins0.Subset<"
|
|
897
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
898
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
899
899
|
connector: "OR" | "AND";
|
|
900
900
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
901
|
-
statements: better_auth_plugins0.Subset<"
|
|
901
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
902
902
|
};
|
|
903
903
|
};
|
|
904
904
|
creatorRole: "admin";
|
|
@@ -1203,25 +1203,25 @@ declare function createAuth(config: BetterAuthConfig): better_auth0.Auth<{
|
|
|
1203
1203
|
ac: better_auth_plugins0.AccessControl;
|
|
1204
1204
|
roles: {
|
|
1205
1205
|
member: {
|
|
1206
|
-
authorize<K_1 extends "
|
|
1207
|
-
actions: better_auth_plugins0.Subset<"
|
|
1206
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1207
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1208
1208
|
connector: "OR" | "AND";
|
|
1209
1209
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1210
|
-
statements: better_auth_plugins0.Subset<"
|
|
1210
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1211
1211
|
};
|
|
1212
1212
|
admin: {
|
|
1213
|
-
authorize<K_1 extends "
|
|
1214
|
-
actions: better_auth_plugins0.Subset<"
|
|
1213
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1214
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1215
1215
|
connector: "OR" | "AND";
|
|
1216
1216
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1217
|
-
statements: better_auth_plugins0.Subset<"
|
|
1217
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1218
1218
|
};
|
|
1219
1219
|
owner: {
|
|
1220
|
-
authorize<K_1 extends "
|
|
1221
|
-
actions: better_auth_plugins0.Subset<"
|
|
1220
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key] | {
|
|
1221
|
+
actions: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>[key];
|
|
1222
1222
|
connector: "OR" | "AND";
|
|
1223
1223
|
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins0.AuthorizeResponse;
|
|
1224
|
-
statements: better_auth_plugins0.Subset<"
|
|
1224
|
+
statements: better_auth_plugins0.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins0.Statements>;
|
|
1225
1225
|
};
|
|
1226
1226
|
};
|
|
1227
1227
|
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_plugins69.Subset<"
|
|
8
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "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<"
|
|
12
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions: better_auth_plugins69.Subset<"
|
|
15
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "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<"
|
|
19
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions: better_auth_plugins69.Subset<"
|
|
22
|
+
authorize<K_1 extends "organization" | "member" | "project" | "invitation" | "ac" | "team">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "ac" | "team", better_auth_plugins69.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "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<"
|
|
26
|
+
statements: better_auth_plugins69.Subset<"organization" | "member" | "project" | "invitation" | "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
|
@@ -6,6 +6,7 @@ import { ConversationHistoryConfig, CredentialStoreType, MCPTransportType } from
|
|
|
6
6
|
import "./types/index.js";
|
|
7
7
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
8
8
|
import { detectAuthenticationRequired } from "./utils/auth-detection.js";
|
|
9
|
+
import "./index.js";
|
|
9
10
|
import { AgentApiInsertSchema, AgentApiSelectSchema, AgentApiUpdateSchema, AgentInsertSchema, AgentListResponse, AgentResponse, AgentSelectSchema, AgentStopWhen, AgentStopWhenSchema, AgentUpdateSchema, AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, AgentWithinContextOfProjectSelectResponse, AgentWithinContextOfProjectSelectSchema, AgentWithinContextOfProjectSelectSchemaWithRelationIds, AllAgentSchema, ApiKeyApiCreationResponseSchema, ApiKeyApiInsertSchema, ApiKeyApiSelectSchema, ApiKeyApiUpdateSchema, ApiKeyInsertSchema, ApiKeyListResponse, ApiKeyResponse, ApiKeySelectSchema, ApiKeyUpdateSchema, ArtifactComponentApiInsertSchema, ArtifactComponentApiSelectSchema, ArtifactComponentApiUpdateSchema, ArtifactComponentArrayResponse, ArtifactComponentInsertSchema, ArtifactComponentListResponse, ArtifactComponentResponse, ArtifactComponentSelectSchema, ArtifactComponentUpdateSchema, CanUseItemSchema, ComponentAssociationListResponse, ComponentAssociationSchema, ComponentJoin, ComponentJoinSchema, ContextCacheApiInsertSchema, ContextCacheApiSelectSchema, ContextCacheApiUpdateSchema, ContextCacheInsertSchema, ContextCacheSelectSchema, ContextCacheUpdateSchema, ContextConfigApiInsertSchema, ContextConfigApiSelectSchema, ContextConfigApiUpdateSchema, ContextConfigInsertSchema, ContextConfigListResponse, ContextConfigResponse, ContextConfigSelectSchema, ContextConfigUpdateSchema, ConversationApiInsertSchema, ConversationApiSelectSchema, ConversationApiUpdateSchema, ConversationInsertSchema, ConversationSelectSchema, ConversationUpdateSchema, CreateCredentialInStoreRequestSchema, CreateCredentialInStoreResponseSchema, CredentialReferenceApiInsertSchema, CredentialReferenceApiSelectSchema, CredentialReferenceApiUpdateSchema, CredentialReferenceInsertSchema, CredentialReferenceListResponse, CredentialReferenceResponse, CredentialReferenceSelectSchema, CredentialReferenceUpdateSchema, CredentialStoreListResponseSchema, CredentialStoreSchema, CronExpressionSchema, DataComponentApiInsertSchema, DataComponentApiSelectSchema, DataComponentApiUpdateSchema, DataComponentArrayResponse, DataComponentInsertSchema, DataComponentListResponse, DataComponentResponse, DataComponentSelectSchema, DataComponentUpdateSchema, DataPartSchema, DatasetApiInsertSchema, DatasetApiSelectSchema, DatasetApiUpdateSchema, DatasetInsertSchema, DatasetItemApiInsertSchema, DatasetItemApiSelectSchema, DatasetItemApiUpdateSchema, DatasetItemInsertSchema, DatasetItemSelectSchema, DatasetItemUpdateSchema, DatasetRunApiInsertSchema, DatasetRunApiSelectSchema, DatasetRunApiUpdateSchema, DatasetRunConfigAgentRelationInsertSchema, DatasetRunConfigAgentRelationSelectSchema, DatasetRunConfigAgentRelationUpdateSchema, DatasetRunConfigApiInsertSchema, DatasetRunConfigApiSelectSchema, DatasetRunConfigApiUpdateSchema, DatasetRunConfigInsertSchema, DatasetRunConfigSelectSchema, DatasetRunConfigUpdateSchema, DatasetRunConversationRelationApiInsertSchema, DatasetRunConversationRelationApiSelectSchema, DatasetRunConversationRelationApiUpdateSchema, DatasetRunConversationRelationInsertSchema, DatasetRunConversationRelationSelectSchema, DatasetRunConversationRelationUpdateSchema, DatasetRunInsertSchema, DatasetRunItemSchema, DatasetRunSelectSchema, DatasetRunUpdateSchema, DatasetSelectSchema, DatasetUpdateSchema, DateTimeFilterQueryParamsSchema, ErrorResponseSchema, EvaluationJobConfigApiInsertSchema, EvaluationJobConfigApiSelectSchema, EvaluationJobConfigApiUpdateSchema, EvaluationJobConfigEvaluatorRelationApiInsertSchema, EvaluationJobConfigEvaluatorRelationApiSelectSchema, EvaluationJobConfigEvaluatorRelationApiUpdateSchema, EvaluationJobConfigEvaluatorRelationInsertSchema, EvaluationJobConfigEvaluatorRelationSelectSchema, EvaluationJobConfigEvaluatorRelationUpdateSchema, EvaluationJobConfigInsertSchema, EvaluationJobConfigSelectSchema, EvaluationJobConfigUpdateSchema, EvaluationJobFilterCriteriaSchema, EvaluationResultApiInsertSchema, EvaluationResultApiSelectSchema, EvaluationResultApiUpdateSchema, EvaluationResultInsertSchema, EvaluationResultSelectSchema, EvaluationResultUpdateSchema, EvaluationRunApiInsertSchema, EvaluationRunApiSelectSchema, EvaluationRunApiUpdateSchema, EvaluationRunConfigApiInsertSchema, EvaluationRunConfigApiSelectSchema, EvaluationRunConfigApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationApiUpdateSchema, EvaluationRunConfigEvaluationSuiteConfigRelationInsertSchema, EvaluationRunConfigEvaluationSuiteConfigRelationSelectSchema, EvaluationRunConfigEvaluationSuiteConfigRelationUpdateSchema, EvaluationRunConfigInsertSchema, EvaluationRunConfigSelectSchema, EvaluationRunConfigUpdateSchema, EvaluationRunConfigWithSuiteConfigsApiSelectSchema, EvaluationRunInsertSchema, EvaluationRunSelectSchema, EvaluationRunUpdateSchema, EvaluationSuiteConfigApiInsertSchema, EvaluationSuiteConfigApiSelectSchema, EvaluationSuiteConfigApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationApiInsertSchema, EvaluationSuiteConfigEvaluatorRelationApiSelectSchema, EvaluationSuiteConfigEvaluatorRelationApiUpdateSchema, EvaluationSuiteConfigEvaluatorRelationInsertSchema, EvaluationSuiteConfigEvaluatorRelationSelectSchema, EvaluationSuiteConfigEvaluatorRelationUpdateSchema, EvaluationSuiteConfigInsertSchema, EvaluationSuiteConfigSelectSchema, EvaluationSuiteConfigUpdateSchema, EvaluatorApiInsertSchema, EvaluatorApiSelectSchema, EvaluatorApiUpdateSchema, EvaluatorInsertSchema, EvaluatorSelectSchema, EvaluatorUpdateSchema, ExistsResponseSchema, ExternalAgentApiInsertSchema, ExternalAgentApiSelectSchema, ExternalAgentApiUpdateSchema, ExternalAgentInsertSchema, ExternalAgentListResponse, ExternalAgentResponse, ExternalAgentSelectSchema, ExternalAgentUpdateSchema, ExternalSubAgentRelationApiInsertSchema, ExternalSubAgentRelationInsertSchema, FetchConfigSchema, FetchDefinitionSchema, FilePartSchema, FullAgentAgentInsertSchema, FullAgentSubAgentSelectSchema, FullAgentSubAgentSelectSchemaWithRelationIds, FullProjectDefinitionResponse, FullProjectDefinitionSchema, FullProjectSelectResponse, FullProjectSelectSchema, FullProjectSelectSchemaWithRelationIds, FullProjectSelectWithRelationIdsResponse, FunctionApiInsertSchema, FunctionApiSelectSchema, FunctionApiUpdateSchema, FunctionInsertSchema, FunctionListResponse, FunctionResponse, FunctionSelectSchema, FunctionToolApiInsertSchema, FunctionToolApiSelectSchema, FunctionToolApiUpdateSchema, FunctionToolConfig, FunctionToolConfigSchema, FunctionToolInsertSchema, FunctionToolListResponse, FunctionToolResponse, FunctionToolSelectSchema, FunctionToolUpdateSchema, FunctionUpdateSchema, HeadersScopeSchema, LedgerArtifactApiInsertSchema, LedgerArtifactApiSelectSchema, LedgerArtifactApiUpdateSchema, LedgerArtifactInsertSchema, LedgerArtifactSelectSchema, LedgerArtifactUpdateSchema, ListResponseSchema, MAX_ID_LENGTH, MCPCatalogListResponse, MCPToolConfigSchema, MIN_ID_LENGTH, McpToolDefinitionSchema, McpToolListResponse, McpToolResponse, McpToolSchema, McpTransportConfigSchema, MessageApiInsertSchema, MessageApiSelectSchema, MessageApiUpdateSchema, MessageInsertSchema, MessageSelectSchema, MessageUpdateSchema, ModelSchema, ModelSettings, ModelSettingsSchema, OAuthCallbackQuerySchema, OAuthLoginQuerySchema, PaginationQueryParamsSchema, PaginationSchema, PaginationWithRefQueryParamsSchema, PartSchema, PartSchemaType, PrebuiltMCPServerSchema, ProjectApiInsertSchema, ProjectApiSelectSchema, ProjectApiUpdateSchema, ProjectInsertSchema, ProjectListResponse, ProjectMetadataInsertSchema, ProjectMetadataSelectSchema, ProjectModelSchema, ProjectResponse, ProjectSelectSchema, ProjectUpdateSchema, RefQueryParamSchema, RelatedAgentInfoListResponse, RelatedAgentInfoSchema, RemovedResponseSchema, ResourceIdSchema, ScheduledTrigger, ScheduledTriggerApiInsertBaseSchema, ScheduledTriggerApiInsertSchema, ScheduledTriggerApiSelectSchema, ScheduledTriggerApiUpdateSchema, ScheduledTriggerInsert, ScheduledTriggerInsertSchema, ScheduledTriggerInvocation, ScheduledTriggerInvocationApiInsertSchema, ScheduledTriggerInvocationApiSelectSchema, ScheduledTriggerInvocationApiUpdateSchema, ScheduledTriggerInvocationInsert, ScheduledTriggerInvocationInsertSchema, ScheduledTriggerInvocationListResponse, ScheduledTriggerInvocationResponse, ScheduledTriggerInvocationSelectSchema, ScheduledTriggerInvocationStatus, ScheduledTriggerInvocationStatusEnum, ScheduledTriggerInvocationUpdate, ScheduledTriggerInvocationUpdateSchema, ScheduledTriggerListResponse, ScheduledTriggerResponse, ScheduledTriggerSelectSchema, ScheduledTriggerUpdate, ScheduledTriggerUpdateSchema, ScheduledTriggerWithRunInfoListResponse, ScheduledTriggerWithRunInfoSchema, ScheduledWorkflow, ScheduledWorkflowApiInsertSchema, ScheduledWorkflowApiSelectSchema, ScheduledWorkflowApiUpdateSchema, ScheduledWorkflowInsert, ScheduledWorkflowInsertSchema, ScheduledWorkflowListResponse, ScheduledWorkflowResponse, ScheduledWorkflowSelectSchema, ScheduledWorkflowUpdate, ScheduledWorkflowUpdateSchema, SignatureSource, SignatureSourceSchema, SignatureValidationOptions, SignatureValidationOptionsSchema, SignatureVerificationConfig, SignatureVerificationConfigSchema, SignedComponent, SignedComponentSchema, SimulationAgent, SimulationAgentSchema, SingleResponseSchema, SkillApiInsertSchema, SkillApiSelectSchema, SkillApiUpdateSchema, SkillFrontmatterSchema, SkillInsertSchema, SkillListResponse, SkillResponse, SkillSelectSchema, SkillUpdateSchema, StatusComponentSchema, StatusUpdateSchema, StopWhen, StopWhenSchema, StringRecordSchema, SubAgentApiInsertSchema, SubAgentApiSelectSchema, SubAgentApiUpdateSchema, SubAgentArtifactComponentApiInsertSchema, SubAgentArtifactComponentApiSelectSchema, SubAgentArtifactComponentApiUpdateSchema, SubAgentArtifactComponentInsertSchema, SubAgentArtifactComponentResponse, SubAgentArtifactComponentSelectSchema, SubAgentArtifactComponentUpdateSchema, SubAgentDataComponentApiInsertSchema, SubAgentDataComponentApiSelectSchema, SubAgentDataComponentApiUpdateSchema, SubAgentDataComponentInsertSchema, SubAgentDataComponentResponse, SubAgentDataComponentSelectSchema, SubAgentDataComponentUpdateSchema, SubAgentExternalAgentRelationApiInsertSchema, SubAgentExternalAgentRelationApiSelectSchema, SubAgentExternalAgentRelationApiUpdateSchema, SubAgentExternalAgentRelationInsertSchema, SubAgentExternalAgentRelationListResponse, SubAgentExternalAgentRelationResponse, SubAgentExternalAgentRelationSelectSchema, SubAgentExternalAgentRelationUpdateSchema, SubAgentFunctionToolRelationApiInsertSchema, SubAgentFunctionToolRelationApiSelectSchema, SubAgentFunctionToolRelationInsertSchema, SubAgentFunctionToolRelationListResponse, SubAgentFunctionToolRelationResponse, SubAgentFunctionToolRelationSelectSchema, SubAgentInsertSchema, SubAgentListResponse, SubAgentRelationApiInsertSchema, SubAgentRelationApiSelectSchema, SubAgentRelationApiUpdateSchema, SubAgentRelationInsertSchema, SubAgentRelationListResponse, SubAgentRelationQuerySchema, SubAgentRelationResponse, SubAgentRelationSelectSchema, SubAgentRelationUpdateSchema, SubAgentResponse, SubAgentSelectSchema, SubAgentSkillApiInsertSchema, SubAgentSkillApiSelectSchema, SubAgentSkillApiUpdateSchema, SubAgentSkillInsertSchema, SubAgentSkillResponse, SubAgentSkillSelectSchema, SubAgentSkillUpdateSchema, SubAgentSkillWithIndexArrayResponse, SubAgentSkillWithIndexSchema, SubAgentStopWhen, SubAgentStopWhenSchema, SubAgentTeamAgentRelationApiInsertSchema, SubAgentTeamAgentRelationApiSelectSchema, SubAgentTeamAgentRelationApiUpdateSchema, SubAgentTeamAgentRelationInsertSchema, SubAgentTeamAgentRelationListResponse, SubAgentTeamAgentRelationResponse, SubAgentTeamAgentRelationSelectSchema, SubAgentTeamAgentRelationUpdateSchema, SubAgentToolRelationApiInsertSchema, SubAgentToolRelationApiSelectSchema, SubAgentToolRelationApiUpdateSchema, SubAgentToolRelationInsertSchema, SubAgentToolRelationListResponse, SubAgentToolRelationResponse, SubAgentToolRelationSelectSchema, SubAgentToolRelationUpdateSchema, SubAgentUpdateSchema, TaskApiInsertSchema, TaskApiSelectSchema, TaskApiUpdateSchema, TaskInsertSchema, TaskRelationApiInsertSchema, TaskRelationApiSelectSchema, TaskRelationApiUpdateSchema, TaskRelationInsertSchema, TaskRelationSelectSchema, TaskRelationUpdateSchema, TaskSelectSchema, TaskUpdateSchema, TeamAgentSchema, TenantIdParamsSchema, TenantParamsSchema, TenantProjectAgentIdParamsSchema, TenantProjectAgentParamsSchema, TenantProjectAgentSubAgentIdParamsSchema, TenantProjectAgentSubAgentParamsSchema, TenantProjectIdParamsSchema, TenantProjectParamsSchema, TextPartSchema, ThirdPartyMCPServerResponse, ToolApiInsertSchema, ToolApiSelectSchema, ToolApiUpdateSchema, ToolInsertSchema, ToolSelectSchema, ToolStatusSchema, ToolUpdateSchema, TriggerApiInsertSchema, TriggerApiSelectSchema, TriggerApiUpdateSchema, TriggerAuthHeaderInputSchema, TriggerAuthHeaderStoredSchema, TriggerAuthHeaderUpdateSchema, TriggerAuthenticationInputSchema, TriggerAuthenticationSchema, TriggerAuthenticationStoredSchema, TriggerAuthenticationUpdateSchema, TriggerBatchConversationEvaluationSchema, TriggerConversationEvaluationSchema, TriggerDatasetRunSchema, TriggerEvaluationJobSchema, TriggerInsertSchema, TriggerInvocationApiInsertSchema, TriggerInvocationApiSelectSchema, TriggerInvocationApiUpdateSchema, TriggerInvocationInsertSchema, TriggerInvocationListResponse, TriggerInvocationResponse, TriggerInvocationSelectSchema, TriggerInvocationStatusEnum, TriggerInvocationUpdateSchema, TriggerListResponse, TriggerOutputTransformSchema, TriggerResponse, TriggerSelectSchema, TriggerUpdateSchema, TriggerWithWebhookUrlListResponse, TriggerWithWebhookUrlResponse, TriggerWithWebhookUrlSchema, URL_SAFE_ID_PATTERN, WorkAppGitHubAccessGetResponseSchema, WorkAppGitHubAccessModeSchema, WorkAppGitHubAccessSetRequestSchema, WorkAppGitHubAccessSetResponseSchema, WorkAppGitHubAccountTypeSchema, WorkAppGitHubInstallationApiInsertSchema, WorkAppGitHubInstallationInsertSchema, WorkAppGitHubInstallationSelectSchema, WorkAppGitHubInstallationStatusSchema, WorkAppGitHubMcpToolRepositoryAccessSelectSchema, WorkAppGitHubProjectRepositoryAccessSelectSchema, WorkAppGitHubRepositoryApiInsertSchema, WorkAppGitHubRepositoryInsertSchema, WorkAppGitHubRepositorySelectSchema, WorkAppGithubInstallationApiSelectSchema, canDelegateToExternalAgentInsertSchema, canDelegateToExternalAgentSchema, canDelegateToTeamAgentInsertSchema, canDelegateToTeamAgentSchema, canRelateToInternalSubAgentSchema } from "./validation/schemas.js";
|
|
10
11
|
import { transformToJson } from "./validation/extend-schemas.js";
|
|
11
12
|
import { z } from "@hono/zod-openapi";
|
|
@@ -18,10 +19,9 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
18
19
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
19
20
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
20
21
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
-
name: z.ZodString;
|
|
22
22
|
id: z.ZodString;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
name: z.ZodString;
|
|
24
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
25
25
|
models: z.ZodOptional<z.ZodObject<{
|
|
26
26
|
base: z.ZodOptional<z.ZodObject<{
|
|
27
27
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -45,7 +45,8 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
45
45
|
}, {
|
|
46
46
|
stepCountIs?: number | undefined;
|
|
47
47
|
}>>>>;
|
|
48
|
-
|
|
48
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
49
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
49
50
|
type: z.ZodLiteral<"internal">;
|
|
50
51
|
canUse: z.ZodArray<z.ZodObject<{
|
|
51
52
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
|
@@ -10,11 +10,11 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
description: string | null;
|
|
12
12
|
tenantId: string;
|
|
13
|
+
id: string;
|
|
13
14
|
name: string;
|
|
15
|
+
defaultSubAgentId: string | null;
|
|
14
16
|
projectId: string;
|
|
15
|
-
|
|
16
|
-
createdAt: string;
|
|
17
|
-
updatedAt: string;
|
|
17
|
+
prompt: string | null;
|
|
18
18
|
models: {
|
|
19
19
|
base?: {
|
|
20
20
|
model?: string | undefined;
|
|
@@ -32,8 +32,8 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
32
32
|
stopWhen: {
|
|
33
33
|
transferCountIs?: number | undefined;
|
|
34
34
|
} | null;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
createdAt: string;
|
|
36
|
+
updatedAt: string;
|
|
37
37
|
contextConfigId: string | null;
|
|
38
38
|
statusUpdates: {
|
|
39
39
|
enabled?: boolean | undefined;
|
|
@@ -56,11 +56,11 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
56
56
|
}) => Promise<{
|
|
57
57
|
description: string | null;
|
|
58
58
|
tenantId: string;
|
|
59
|
+
id: string;
|
|
59
60
|
name: string;
|
|
61
|
+
defaultSubAgentId: string | null;
|
|
60
62
|
projectId: string;
|
|
61
|
-
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
63
|
+
prompt: string | null;
|
|
64
64
|
models: {
|
|
65
65
|
base?: {
|
|
66
66
|
model?: string | undefined;
|
|
@@ -78,8 +78,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
78
78
|
stopWhen: {
|
|
79
79
|
transferCountIs?: number | undefined;
|
|
80
80
|
} | null;
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
createdAt: string;
|
|
82
|
+
updatedAt: string;
|
|
83
83
|
contextConfigId: string | null;
|
|
84
84
|
statusUpdates: {
|
|
85
85
|
enabled?: boolean | undefined;
|
|
@@ -99,11 +99,12 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
99
99
|
defaultSubAgent: {
|
|
100
100
|
description: string | null;
|
|
101
101
|
tenantId: string;
|
|
102
|
+
id: string;
|
|
102
103
|
name: string;
|
|
103
104
|
projectId: string;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
105
|
+
agentId: string;
|
|
106
|
+
prompt: string | null;
|
|
107
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
107
108
|
models: {
|
|
108
109
|
base?: {
|
|
109
110
|
model?: string | undefined;
|
|
@@ -121,9 +122,8 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
121
122
|
stopWhen: {
|
|
122
123
|
stepCountIs?: number | undefined;
|
|
123
124
|
} | null;
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
agentId: string;
|
|
125
|
+
createdAt: string;
|
|
126
|
+
updatedAt: string;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -131,11 +131,11 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
131
131
|
}) => Promise<{
|
|
132
132
|
description: string | null;
|
|
133
133
|
tenantId: string;
|
|
134
|
+
id: string;
|
|
134
135
|
name: string;
|
|
136
|
+
defaultSubAgentId: string | null;
|
|
135
137
|
projectId: string;
|
|
136
|
-
|
|
137
|
-
createdAt: string;
|
|
138
|
-
updatedAt: string;
|
|
138
|
+
prompt: string | null;
|
|
139
139
|
models: {
|
|
140
140
|
base?: {
|
|
141
141
|
model?: string | undefined;
|
|
@@ -153,8 +153,8 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
153
153
|
stopWhen: {
|
|
154
154
|
transferCountIs?: number | undefined;
|
|
155
155
|
} | null;
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
createdAt: string;
|
|
157
|
+
updatedAt: string;
|
|
158
158
|
contextConfigId: string | null;
|
|
159
159
|
statusUpdates: {
|
|
160
160
|
enabled?: boolean | undefined;
|
|
@@ -247,11 +247,11 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
247
247
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
248
248
|
description: string | null;
|
|
249
249
|
tenantId: string;
|
|
250
|
+
id: string;
|
|
250
251
|
name: string;
|
|
252
|
+
defaultSubAgentId: string | null;
|
|
251
253
|
projectId: string;
|
|
252
|
-
|
|
253
|
-
createdAt: string;
|
|
254
|
-
updatedAt: string;
|
|
254
|
+
prompt: string | null;
|
|
255
255
|
models: {
|
|
256
256
|
base?: {
|
|
257
257
|
model?: string | undefined;
|
|
@@ -269,8 +269,8 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
269
269
|
stopWhen: {
|
|
270
270
|
transferCountIs?: number | undefined;
|
|
271
271
|
} | null;
|
|
272
|
-
|
|
273
|
-
|
|
272
|
+
createdAt: string;
|
|
273
|
+
updatedAt: string;
|
|
274
274
|
contextConfigId: string | null;
|
|
275
275
|
statusUpdates: {
|
|
276
276
|
enabled?: boolean | undefined;
|
|
@@ -10,9 +10,11 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
description: string | null;
|
|
12
12
|
tenantId: string;
|
|
13
|
+
id: string;
|
|
13
14
|
name: string;
|
|
14
15
|
projectId: string;
|
|
15
|
-
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
16
18
|
props: {
|
|
17
19
|
[x: string]: unknown;
|
|
18
20
|
type: "object";
|
|
@@ -25,8 +27,6 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
25
27
|
component: string;
|
|
26
28
|
mockData: Record<string, unknown>;
|
|
27
29
|
} | null;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
updatedAt: string;
|
|
30
30
|
} | undefined>;
|
|
31
31
|
declare const listArtifactComponents: (db: AgentsManageDatabaseClient) => (params: {
|
|
32
32
|
scopes: ProjectScopeConfig;
|
|
@@ -66,9 +66,11 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
67
67
|
description: string | null;
|
|
68
68
|
tenantId: string;
|
|
69
|
+
id: string;
|
|
69
70
|
name: string;
|
|
70
71
|
projectId: string;
|
|
71
|
-
|
|
72
|
+
createdAt: string;
|
|
73
|
+
updatedAt: string;
|
|
72
74
|
props: {
|
|
73
75
|
[x: string]: unknown;
|
|
74
76
|
type: "object";
|
|
@@ -81,8 +83,6 @@ declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (para
|
|
|
81
83
|
component: string;
|
|
82
84
|
mockData: Record<string, unknown>;
|
|
83
85
|
} | null;
|
|
84
|
-
createdAt: string;
|
|
85
|
-
updatedAt: string;
|
|
86
86
|
}>;
|
|
87
87
|
declare const updateArtifactComponent: (db: AgentsManageDatabaseClient) => (params: {
|
|
88
88
|
scopes: ProjectScopeConfig;
|
|
@@ -141,11 +141,11 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
141
141
|
artifactComponentId: string;
|
|
142
142
|
}) => Promise<{
|
|
143
143
|
tenantId: string;
|
|
144
|
-
projectId: string;
|
|
145
|
-
subAgentId: string;
|
|
146
144
|
id: string;
|
|
147
|
-
|
|
145
|
+
projectId: string;
|
|
148
146
|
agentId: string;
|
|
147
|
+
createdAt: string;
|
|
148
|
+
subAgentId: string;
|
|
149
149
|
artifactComponentId: string;
|
|
150
150
|
}>;
|
|
151
151
|
declare const removeArtifactComponentFromAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -184,11 +184,11 @@ declare const upsertAgentArtifactComponentRelation: (db: AgentsManageDatabaseCli
|
|
|
184
184
|
artifactComponentId: string;
|
|
185
185
|
}) => Promise<{
|
|
186
186
|
tenantId: string;
|
|
187
|
-
projectId: string;
|
|
188
|
-
subAgentId: string;
|
|
189
187
|
id: string;
|
|
190
|
-
|
|
188
|
+
projectId: string;
|
|
191
189
|
agentId: string;
|
|
190
|
+
createdAt: string;
|
|
191
|
+
subAgentId: string;
|
|
192
192
|
artifactComponentId: string;
|
|
193
193
|
} | null>;
|
|
194
194
|
/**
|
|
@@ -9,11 +9,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
9
9
|
id: string;
|
|
10
10
|
}) => Promise<{
|
|
11
11
|
tenantId: string;
|
|
12
|
-
projectId: string;
|
|
13
12
|
id: string;
|
|
13
|
+
projectId: string;
|
|
14
|
+
agentId: string;
|
|
14
15
|
createdAt: string;
|
|
15
16
|
updatedAt: string;
|
|
16
|
-
agentId: string;
|
|
17
17
|
headersSchema: unknown;
|
|
18
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
19
19
|
} | undefined>;
|
|
@@ -21,11 +21,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
22
22
|
}) => Promise<{
|
|
23
23
|
tenantId: string;
|
|
24
|
-
projectId: string;
|
|
25
24
|
id: string;
|
|
25
|
+
projectId: string;
|
|
26
|
+
agentId: string;
|
|
26
27
|
createdAt: string;
|
|
27
28
|
updatedAt: string;
|
|
28
|
-
agentId: string;
|
|
29
29
|
headersSchema: unknown;
|
|
30
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
31
31
|
}[]>;
|
|
@@ -43,11 +43,11 @@ declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (
|
|
|
43
43
|
}>;
|
|
44
44
|
declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params: ContextConfigInsert) => Promise<{
|
|
45
45
|
tenantId: string;
|
|
46
|
-
projectId: string;
|
|
47
46
|
id: string;
|
|
47
|
+
projectId: string;
|
|
48
|
+
agentId: string;
|
|
48
49
|
createdAt: string;
|
|
49
50
|
updatedAt: string;
|
|
50
|
-
agentId: string;
|
|
51
51
|
headersSchema: unknown;
|
|
52
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
53
53
|
}>;
|
|
@@ -83,11 +83,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
83
83
|
data: ContextConfigInsert;
|
|
84
84
|
}) => Promise<{
|
|
85
85
|
tenantId: string;
|
|
86
|
-
projectId: string;
|
|
87
86
|
id: string;
|
|
87
|
+
projectId: string;
|
|
88
|
+
agentId: string;
|
|
88
89
|
createdAt: string;
|
|
89
90
|
updatedAt: string;
|
|
90
|
-
agentId: string;
|
|
91
91
|
headersSchema: unknown;
|
|
92
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
93
93
|
}>;
|
|
@@ -65,11 +65,11 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
65
65
|
dataComponentId: string;
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
tenantId: string;
|
|
68
|
-
projectId: string;
|
|
69
|
-
subAgentId: string;
|
|
70
68
|
id: string;
|
|
71
|
-
|
|
69
|
+
projectId: string;
|
|
72
70
|
agentId: string;
|
|
71
|
+
createdAt: string;
|
|
72
|
+
subAgentId: string;
|
|
73
73
|
dataComponentId: string;
|
|
74
74
|
}>;
|
|
75
75
|
/**
|
|
@@ -107,11 +107,11 @@ declare const upsertAgentDataComponentRelation: (db: AgentsManageDatabaseClient)
|
|
|
107
107
|
dataComponentId: string;
|
|
108
108
|
}) => Promise<{
|
|
109
109
|
tenantId: string;
|
|
110
|
-
projectId: string;
|
|
111
|
-
subAgentId: string;
|
|
112
110
|
id: string;
|
|
113
|
-
|
|
111
|
+
projectId: string;
|
|
114
112
|
agentId: string;
|
|
113
|
+
createdAt: string;
|
|
114
|
+
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
117
117
|
/**
|
|
@@ -55,12 +55,12 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
55
55
|
}) => Promise<{
|
|
56
56
|
description: string | null;
|
|
57
57
|
tenantId: string;
|
|
58
|
+
id: string;
|
|
58
59
|
name: string;
|
|
59
60
|
projectId: string;
|
|
60
|
-
|
|
61
|
+
agentId: string;
|
|
61
62
|
createdAt: string;
|
|
62
63
|
updatedAt: 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
|
description: string | null;
|
|
99
99
|
tenantId: string;
|
|
100
|
+
id: string;
|
|
100
101
|
name: string;
|
|
101
102
|
projectId: string;
|
|
102
|
-
|
|
103
|
+
agentId: string;
|
|
103
104
|
createdAt: string;
|
|
104
105
|
updatedAt: string;
|
|
105
|
-
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -162,16 +162,16 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
162
162
|
}> | null;
|
|
163
163
|
}) => Promise<{
|
|
164
164
|
tenantId: string;
|
|
165
|
-
projectId: string;
|
|
166
|
-
subAgentId: string;
|
|
167
165
|
id: string;
|
|
166
|
+
projectId: string;
|
|
167
|
+
agentId: string;
|
|
168
168
|
createdAt: string;
|
|
169
169
|
updatedAt: string;
|
|
170
|
-
agentId: string;
|
|
171
|
-
functionToolId: string;
|
|
172
170
|
toolPolicies: Record<string, {
|
|
173
171
|
needsApproval?: boolean;
|
|
174
172
|
}> | null;
|
|
173
|
+
subAgentId: string;
|
|
174
|
+
functionToolId: string;
|
|
175
175
|
}>;
|
|
176
176
|
/**
|
|
177
177
|
* Update an agent-function tool relation
|
|
@@ -227,16 +227,16 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
227
227
|
}> | null;
|
|
228
228
|
}) => Promise<{
|
|
229
229
|
tenantId: string;
|
|
230
|
-
projectId: string;
|
|
231
|
-
subAgentId: string;
|
|
232
230
|
id: string;
|
|
231
|
+
projectId: string;
|
|
232
|
+
agentId: string;
|
|
233
233
|
createdAt: string;
|
|
234
234
|
updatedAt: string;
|
|
235
|
-
agentId: string;
|
|
236
|
-
functionToolId: string;
|
|
237
235
|
toolPolicies: Record<string, {
|
|
238
236
|
needsApproval?: boolean;
|
|
239
237
|
}> | 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 };
|
|
@@ -9,13 +9,13 @@ declare const getSkillById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
9
9
|
}) => Promise<{
|
|
10
10
|
description: string;
|
|
11
11
|
tenantId: string;
|
|
12
|
+
id: string;
|
|
12
13
|
name: string;
|
|
13
|
-
content: string;
|
|
14
14
|
projectId: string;
|
|
15
|
-
id: string;
|
|
16
15
|
createdAt: string;
|
|
17
16
|
updatedAt: string;
|
|
18
17
|
metadata: Record<string, string> | null;
|
|
18
|
+
content: string;
|
|
19
19
|
} | null>;
|
|
20
20
|
declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: ProjectScopeConfig;
|
|
@@ -42,24 +42,24 @@ declare const listSkills: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
42
42
|
declare const createSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
43
43
|
description: string;
|
|
44
44
|
tenantId: string;
|
|
45
|
+
id: string;
|
|
45
46
|
name: string;
|
|
46
|
-
content: string;
|
|
47
47
|
projectId: string;
|
|
48
|
-
id: string;
|
|
49
48
|
createdAt: string;
|
|
50
49
|
updatedAt: string;
|
|
51
50
|
metadata: Record<string, string> | null;
|
|
51
|
+
content: string;
|
|
52
52
|
}>;
|
|
53
53
|
declare const upsertSkill: (db: AgentsManageDatabaseClient) => (data: SkillInsert) => Promise<{
|
|
54
54
|
description: string;
|
|
55
55
|
tenantId: string;
|
|
56
|
+
id: string;
|
|
56
57
|
name: string;
|
|
57
|
-
content: string;
|
|
58
58
|
projectId: string;
|
|
59
|
-
id: string;
|
|
60
59
|
createdAt: string;
|
|
61
60
|
updatedAt: string;
|
|
62
61
|
metadata: Record<string, string> | null;
|
|
62
|
+
content: string;
|
|
63
63
|
}>;
|
|
64
64
|
declare const updateSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
65
65
|
scopes: ProjectScopeConfig;
|
|
@@ -91,15 +91,15 @@ declare const upsertSubAgentSkill: (db: AgentsManageDatabaseClient) => (params:
|
|
|
91
91
|
alwaysLoaded?: boolean;
|
|
92
92
|
}) => Promise<{
|
|
93
93
|
tenantId: string;
|
|
94
|
-
projectId: string;
|
|
95
|
-
subAgentId: string;
|
|
96
94
|
id: string;
|
|
95
|
+
projectId: string;
|
|
96
|
+
agentId: string;
|
|
97
97
|
createdAt: string;
|
|
98
98
|
updatedAt: string;
|
|
99
|
-
agentId: string;
|
|
100
|
-
skillId: string;
|
|
101
99
|
index: number;
|
|
102
100
|
alwaysLoaded: boolean;
|
|
101
|
+
subAgentId: string;
|
|
102
|
+
skillId: string;
|
|
103
103
|
}>;
|
|
104
104
|
declare const deleteSubAgentSkill: (db: AgentsManageDatabaseClient) => (params: {
|
|
105
105
|
scopes: AgentScopeConfig;
|