@inkeep/agents-core 0.0.0-dev-20260207223415 → 0.0.0-dev-20260209055455
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 +83 -83
- package/dist/auth/auth-validation-schemas.d.ts +131 -131
- package/dist/auth/auth.d.ts +53 -53
- package/dist/auth/auth.js +1 -1
- package/dist/auth/authz/config.d.ts +1 -86
- package/dist/auth/authz/config.js +6 -72
- package/dist/auth/authz/index.d.ts +2 -1
- package/dist/auth/authz/index.js +2 -1
- package/dist/auth/authz/permissions.d.ts +1 -1
- package/dist/auth/authz/permissions.js +1 -1
- package/dist/auth/authz/sync.d.ts +1 -1
- package/dist/auth/authz/sync.js +1 -1
- package/dist/auth/authz/types.d.ts +92 -0
- package/dist/auth/authz/types.js +76 -0
- package/dist/auth/init.js +1 -1
- package/dist/auth/permissions.d.ts +13 -13
- package/dist/auth/spicedb-schema.js +2 -2
- package/dist/client-exports.d.ts +4 -4
- package/dist/client-exports.js +1 -1
- package/dist/data-access/manage/agents.d.ts +42 -42
- package/dist/data-access/manage/artifactComponents.d.ts +10 -10
- package/dist/data-access/manage/contextConfigs.d.ts +12 -12
- package/dist/data-access/manage/dataComponents.d.ts +4 -4
- package/dist/data-access/manage/functionTools.d.ts +16 -16
- package/dist/data-access/manage/subAgentExternalAgentRelations.d.ts +24 -24
- package/dist/data-access/manage/subAgentRelations.d.ts +20 -20
- 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 +24 -24
- package/dist/data-access/manage/triggers.d.ts +2 -2
- package/dist/data-access/runtime/apiKeys.d.ts +12 -12
- package/dist/data-access/runtime/conversations.d.ts +31 -31
- package/dist/data-access/runtime/messages.d.ts +9 -9
- package/dist/data-access/runtime/tasks.d.ts +7 -7
- package/dist/db/manage/manage-schema.d.ts +382 -382
- package/dist/db/runtime/runtime-schema.d.ts +238 -238
- package/dist/env.d.ts +6 -0
- package/dist/env.js +4 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/validation/dolt-schemas.d.ts +1 -1
- package/dist/validation/schemas.d.ts +1532 -1532
- package/package.json +1 -1
package/dist/auth/init.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as better_auth_plugins69 from "better-auth/plugins";
|
|
2
2
|
import { AccessControl } from "better-auth/plugins/access";
|
|
3
3
|
import { organizationClient } from "better-auth/client/plugins";
|
|
4
4
|
|
|
5
5
|
//#region src/auth/permissions.d.ts
|
|
6
6
|
declare const ac: AccessControl;
|
|
7
7
|
declare const memberRole: {
|
|
8
|
-
authorize<K_1 extends "
|
|
9
|
-
actions:
|
|
8
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
9
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
10
10
|
connector: "OR" | "AND";
|
|
11
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
12
|
-
statements:
|
|
11
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
12
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
13
13
|
};
|
|
14
14
|
declare const adminRole: {
|
|
15
|
-
authorize<K_1 extends "
|
|
16
|
-
actions:
|
|
15
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
16
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
17
17
|
connector: "OR" | "AND";
|
|
18
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
19
|
-
statements:
|
|
18
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
19
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
20
20
|
};
|
|
21
21
|
declare const ownerRole: {
|
|
22
|
-
authorize<K_1 extends "
|
|
23
|
-
actions:
|
|
22
|
+
authorize<K_1 extends "organization" | "ac" | "member" | "project" | "team" | "invitation">(request: K_1 extends infer T extends K ? { [key in T]?: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key] | {
|
|
23
|
+
actions: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>[key];
|
|
24
24
|
connector: "OR" | "AND";
|
|
25
|
-
} | undefined } : never, connector?: "OR" | "AND"):
|
|
26
|
-
statements:
|
|
25
|
+
} | undefined } : never, connector?: "OR" | "AND"): better_auth_plugins69.AuthorizeResponse;
|
|
26
|
+
statements: better_auth_plugins69.Subset<"organization" | "ac" | "member" | "project" | "team" | "invitation", better_auth_plugins69.Statements>;
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { ac, adminRole, memberRole, organizationClient, ownerRole };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getSpiceDbConfig
|
|
1
|
+
import { getSpiceDbConfig } from "./authz/config.js";
|
|
2
2
|
import { readFileSync } from "node:fs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { v1 } from "@authzed/authzed-node";
|
|
@@ -8,7 +8,7 @@ async function writeSpiceDbSchema(options) {
|
|
|
8
8
|
const config = getSpiceDbConfig();
|
|
9
9
|
const { endpoint = config.endpoint, token = config.token, schemaPath = resolve(import.meta.dirname, "../../spicedb/schema.zed"), maxRetries = 30 } = options ?? {};
|
|
10
10
|
const schema = readFileSync(schemaPath, "utf-8");
|
|
11
|
-
const client = v1.NewClient(token, endpoint,
|
|
11
|
+
const client = v1.NewClient(token, endpoint, config.tlsEnabled ? v1.ClientSecurity.SECURE : v1.ClientSecurity.INSECURE_LOCALHOST_ALLOWED);
|
|
12
12
|
let lastError;
|
|
13
13
|
for (let attempt = 1; attempt <= maxRetries; attempt++) try {
|
|
14
14
|
await client.promises.writeSchema(v1.WriteSchemaRequest.create({ schema }));
|
package/dist/client-exports.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OrgRole, OrgRoles, ProjectRole, ProjectRoles } from "./auth/authz/
|
|
1
|
+
import { OrgRole, OrgRoles, ProjectRole, ProjectRoles } from "./auth/authz/types.js";
|
|
2
2
|
import { BreakdownComponentDef, CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, ContextBreakdown, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, parseContextBreakdownFromSpan } from "./constants/context-breakdown.js";
|
|
3
3
|
import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from "./constants/otel-attributes.js";
|
|
4
4
|
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";
|
|
@@ -16,11 +16,12 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
16
16
|
description: z.ZodOptional<z.ZodString>;
|
|
17
17
|
defaultSubAgentId: z.ZodOptional<z.ZodString>;
|
|
18
18
|
subAgents: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
|
|
19
|
-
name: z.ZodString;
|
|
20
|
-
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
19
|
id: z.ZodString;
|
|
22
20
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
23
21
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
24
25
|
models: z.ZodOptional<z.ZodObject<{
|
|
25
26
|
base: z.ZodOptional<z.ZodObject<{
|
|
26
27
|
model: z.ZodOptional<z.ZodString>;
|
|
@@ -44,7 +45,6 @@ declare const FullAgentDefinitionSchema: z.ZodObject<{
|
|
|
44
45
|
}, {
|
|
45
46
|
stepCountIs?: number | undefined;
|
|
46
47
|
}>>>>;
|
|
47
|
-
conversationHistoryConfig: z.ZodOptional<z.ZodNullable<z.ZodType<ConversationHistoryConfig, ConversationHistoryConfig, z.core.$ZodTypeInternals<ConversationHistoryConfig, ConversationHistoryConfig>>>>;
|
|
48
48
|
type: z.ZodLiteral<"internal">;
|
|
49
49
|
canUse: z.ZodArray<z.ZodObject<{
|
|
50
50
|
agentToolRelationId: z.ZodOptional<z.ZodString>;
|
package/dist/client-exports.js
CHANGED
|
@@ -2,7 +2,7 @@ import { schemaValidationDefaults } from "./constants/schema-validation/defaults
|
|
|
2
2
|
import { CredentialStoreType, MCPTransportType } from "./types/utility.js";
|
|
3
3
|
import { AgentWithinContextOfProjectResponse, AgentWithinContextOfProjectSchema, FullAgentAgentInsertSchema, HeadersSchema, MAX_ID_LENGTH } from "./validation/schemas.js";
|
|
4
4
|
import { DEFAULT_NANGO_STORE_ID } from "./credential-stores/default-constants.js";
|
|
5
|
-
import { OrgRoles, ProjectRoles } from "./auth/authz/
|
|
5
|
+
import { OrgRoles, ProjectRoles } from "./auth/authz/types.js";
|
|
6
6
|
import { CONTEXT_BREAKDOWN_TOTAL_SPAN_ATTRIBUTE, V1_BREAKDOWN_SCHEMA, calculateBreakdownTotal, createEmptyBreakdown, parseContextBreakdownFromSpan } from "./constants/context-breakdown.js";
|
|
7
7
|
import { ACTIVITY_NAMES, ACTIVITY_STATUS, ACTIVITY_TYPES, AGENT_IDS, AI_OPERATIONS, AI_TOOL_TYPES, DELEGATION_FROM_SUB_AGENT_ID, DELEGATION_ID, DELEGATION_TO_SUB_AGENT_ID, SPAN_KEYS, SPAN_NAMES, TRANSFER_FROM_SUB_AGENT_ID, TRANSFER_TO_SUB_AGENT_ID, UNKNOWN_VALUE } from "./constants/otel-attributes.js";
|
|
8
8
|
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";
|
|
@@ -8,15 +8,15 @@ import { PgTable } from "drizzle-orm/pg-core";
|
|
|
8
8
|
declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
9
9
|
scopes: AgentScopeConfig;
|
|
10
10
|
}) => Promise<{
|
|
11
|
-
name: string;
|
|
12
|
-
description: string | null;
|
|
13
11
|
id: string;
|
|
14
12
|
createdAt: string;
|
|
15
13
|
updatedAt: string;
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
name: string;
|
|
15
|
+
description: string | null;
|
|
18
16
|
defaultSubAgentId: string | null;
|
|
19
|
-
|
|
17
|
+
tenantId: string;
|
|
18
|
+
projectId: string;
|
|
19
|
+
prompt: string | null;
|
|
20
20
|
models: {
|
|
21
21
|
base?: {
|
|
22
22
|
model?: string | undefined;
|
|
@@ -31,7 +31,10 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
31
31
|
providerOptions?: Record<string, any> | undefined;
|
|
32
32
|
} | undefined;
|
|
33
33
|
} | null;
|
|
34
|
-
|
|
34
|
+
stopWhen: {
|
|
35
|
+
transferCountIs?: number | undefined;
|
|
36
|
+
} | null;
|
|
37
|
+
contextConfigId: string | null;
|
|
35
38
|
statusUpdates: {
|
|
36
39
|
enabled?: boolean | undefined;
|
|
37
40
|
numEvents?: number | undefined;
|
|
@@ -47,22 +50,19 @@ declare const getAgentById: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
47
50
|
} | undefined;
|
|
48
51
|
}[] | undefined;
|
|
49
52
|
} | null;
|
|
50
|
-
stopWhen: {
|
|
51
|
-
transferCountIs?: number | undefined;
|
|
52
|
-
} | null;
|
|
53
53
|
} | null>;
|
|
54
54
|
declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
56
56
|
}) => Promise<{
|
|
57
|
-
name: string;
|
|
58
|
-
description: string | null;
|
|
59
57
|
id: string;
|
|
60
58
|
createdAt: string;
|
|
61
59
|
updatedAt: string;
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
name: string;
|
|
61
|
+
description: string | null;
|
|
64
62
|
defaultSubAgentId: string | null;
|
|
65
|
-
|
|
63
|
+
tenantId: string;
|
|
64
|
+
projectId: string;
|
|
65
|
+
prompt: string | null;
|
|
66
66
|
models: {
|
|
67
67
|
base?: {
|
|
68
68
|
model?: string | undefined;
|
|
@@ -77,7 +77,10 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
77
77
|
providerOptions?: Record<string, any> | undefined;
|
|
78
78
|
} | undefined;
|
|
79
79
|
} | null;
|
|
80
|
-
|
|
80
|
+
stopWhen: {
|
|
81
|
+
transferCountIs?: number | undefined;
|
|
82
|
+
} | null;
|
|
83
|
+
contextConfigId: string | null;
|
|
81
84
|
statusUpdates: {
|
|
82
85
|
enabled?: boolean | undefined;
|
|
83
86
|
numEvents?: number | undefined;
|
|
@@ -93,18 +96,17 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
93
96
|
} | undefined;
|
|
94
97
|
}[] | undefined;
|
|
95
98
|
} | null;
|
|
96
|
-
stopWhen: {
|
|
97
|
-
transferCountIs?: number | undefined;
|
|
98
|
-
} | null;
|
|
99
99
|
defaultSubAgent: {
|
|
100
|
-
name: string;
|
|
101
|
-
description: string | null;
|
|
102
100
|
id: string;
|
|
103
101
|
createdAt: string;
|
|
104
102
|
updatedAt: string;
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
name: string;
|
|
104
|
+
description: string | null;
|
|
107
105
|
tenantId: string;
|
|
106
|
+
projectId: string;
|
|
107
|
+
agentId: string;
|
|
108
|
+
prompt: string | null;
|
|
109
|
+
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
108
110
|
models: {
|
|
109
111
|
base?: {
|
|
110
112
|
model?: string | undefined;
|
|
@@ -119,25 +121,23 @@ declare const getAgentWithDefaultSubAgent: (db: AgentsManageDatabaseClient) => (
|
|
|
119
121
|
providerOptions?: Record<string, any> | undefined;
|
|
120
122
|
} | undefined;
|
|
121
123
|
} | null;
|
|
122
|
-
prompt: string | null;
|
|
123
124
|
stopWhen: {
|
|
124
125
|
stepCountIs?: number | undefined;
|
|
125
126
|
} | null;
|
|
126
|
-
conversationHistoryConfig: ConversationHistoryConfig | null;
|
|
127
127
|
} | null;
|
|
128
128
|
} | null>;
|
|
129
129
|
declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
130
130
|
scopes: ProjectScopeConfig;
|
|
131
131
|
}) => Promise<{
|
|
132
|
-
name: string;
|
|
133
|
-
description: string | null;
|
|
134
132
|
id: string;
|
|
135
133
|
createdAt: string;
|
|
136
134
|
updatedAt: string;
|
|
137
|
-
|
|
138
|
-
|
|
135
|
+
name: string;
|
|
136
|
+
description: string | null;
|
|
139
137
|
defaultSubAgentId: string | null;
|
|
140
|
-
|
|
138
|
+
tenantId: string;
|
|
139
|
+
projectId: string;
|
|
140
|
+
prompt: string | null;
|
|
141
141
|
models: {
|
|
142
142
|
base?: {
|
|
143
143
|
model?: string | undefined;
|
|
@@ -152,7 +152,10 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
152
152
|
providerOptions?: Record<string, any> | undefined;
|
|
153
153
|
} | undefined;
|
|
154
154
|
} | null;
|
|
155
|
-
|
|
155
|
+
stopWhen: {
|
|
156
|
+
transferCountIs?: number | undefined;
|
|
157
|
+
} | null;
|
|
158
|
+
contextConfigId: string | null;
|
|
156
159
|
statusUpdates: {
|
|
157
160
|
enabled?: boolean | undefined;
|
|
158
161
|
numEvents?: number | undefined;
|
|
@@ -168,9 +171,6 @@ declare const listAgents: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
168
171
|
} | undefined;
|
|
169
172
|
}[] | undefined;
|
|
170
173
|
} | null;
|
|
171
|
-
stopWhen: {
|
|
172
|
-
transferCountIs?: number | undefined;
|
|
173
|
-
} | null;
|
|
174
174
|
}[]>;
|
|
175
175
|
declare const listAgentsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
176
176
|
scopes: ProjectScopeConfig;
|
|
@@ -245,15 +245,15 @@ declare function listAgentsAcrossProjectMainBranches(db: AgentsManageDatabaseCli
|
|
|
245
245
|
projectIds: string[];
|
|
246
246
|
}): Promise<AvailableAgentInfo[]>;
|
|
247
247
|
declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInsert) => Promise<{
|
|
248
|
-
name: string;
|
|
249
|
-
description: string | null;
|
|
250
248
|
id: string;
|
|
251
249
|
createdAt: string;
|
|
252
250
|
updatedAt: string;
|
|
253
|
-
|
|
254
|
-
|
|
251
|
+
name: string;
|
|
252
|
+
description: string | null;
|
|
255
253
|
defaultSubAgentId: string | null;
|
|
256
|
-
|
|
254
|
+
tenantId: string;
|
|
255
|
+
projectId: string;
|
|
256
|
+
prompt: string | null;
|
|
257
257
|
models: {
|
|
258
258
|
base?: {
|
|
259
259
|
model?: string | undefined;
|
|
@@ -268,7 +268,10 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
268
268
|
providerOptions?: Record<string, any> | undefined;
|
|
269
269
|
} | undefined;
|
|
270
270
|
} | null;
|
|
271
|
-
|
|
271
|
+
stopWhen: {
|
|
272
|
+
transferCountIs?: number | undefined;
|
|
273
|
+
} | null;
|
|
274
|
+
contextConfigId: string | null;
|
|
272
275
|
statusUpdates: {
|
|
273
276
|
enabled?: boolean | undefined;
|
|
274
277
|
numEvents?: number | undefined;
|
|
@@ -284,9 +287,6 @@ declare const createAgent: (db: AgentsManageDatabaseClient) => (data: AgentInser
|
|
|
284
287
|
} | undefined;
|
|
285
288
|
}[] | undefined;
|
|
286
289
|
} | null;
|
|
287
|
-
stopWhen: {
|
|
288
|
-
transferCountIs?: number | undefined;
|
|
289
|
-
} | null;
|
|
290
290
|
}>;
|
|
291
291
|
declare const updateAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
292
292
|
scopes: AgentScopeConfig;
|
|
@@ -7,13 +7,13 @@ declare const getArtifactComponentById: (db: AgentsManageDatabaseClient) => (par
|
|
|
7
7
|
scopes: ProjectScopeConfig;
|
|
8
8
|
id: string;
|
|
9
9
|
}) => Promise<{
|
|
10
|
-
name: string;
|
|
11
|
-
description: string | null;
|
|
12
10
|
id: string;
|
|
13
11
|
createdAt: string;
|
|
14
12
|
updatedAt: string;
|
|
15
|
-
|
|
13
|
+
name: string;
|
|
14
|
+
description: string | null;
|
|
16
15
|
tenantId: string;
|
|
16
|
+
projectId: string;
|
|
17
17
|
props: Record<string, unknown> | null;
|
|
18
18
|
render: {
|
|
19
19
|
component: string;
|
|
@@ -49,13 +49,13 @@ declare const listArtifactComponentsPaginated: (db: AgentsManageDatabaseClient)
|
|
|
49
49
|
};
|
|
50
50
|
}>;
|
|
51
51
|
declare const createArtifactComponent: (db: AgentsManageDatabaseClient) => (params: ArtifactComponentInsert) => Promise<{
|
|
52
|
-
name: string;
|
|
53
|
-
description: string | null;
|
|
54
52
|
id: string;
|
|
55
53
|
createdAt: string;
|
|
56
54
|
updatedAt: string;
|
|
57
|
-
|
|
55
|
+
name: string;
|
|
56
|
+
description: string | null;
|
|
58
57
|
tenantId: string;
|
|
58
|
+
projectId: string;
|
|
59
59
|
props: Record<string, unknown> | null;
|
|
60
60
|
render: {
|
|
61
61
|
component: string;
|
|
@@ -106,9 +106,9 @@ declare const associateArtifactComponentWithAgent: (db: AgentsManageDatabaseClie
|
|
|
106
106
|
}) => Promise<{
|
|
107
107
|
id: string;
|
|
108
108
|
createdAt: string;
|
|
109
|
-
agentId: string;
|
|
110
|
-
projectId: string;
|
|
111
109
|
tenantId: string;
|
|
110
|
+
projectId: 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
|
-
projectId: string;
|
|
154
152
|
tenantId: string;
|
|
153
|
+
projectId: string;
|
|
154
|
+
agentId: string;
|
|
155
155
|
subAgentId: string;
|
|
156
156
|
artifactComponentId: string;
|
|
157
157
|
} | null>;
|
|
@@ -11,11 +11,11 @@ declare const getContextConfigById: (db: AgentsManageDatabaseClient) => (params:
|
|
|
11
11
|
id: string;
|
|
12
12
|
createdAt: string;
|
|
13
13
|
updatedAt: string;
|
|
14
|
+
tenantId: string;
|
|
15
|
+
projectId: string;
|
|
16
|
+
agentId: string;
|
|
14
17
|
headersSchema: unknown;
|
|
15
18
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
16
|
-
agentId: string;
|
|
17
|
-
projectId: string;
|
|
18
|
-
tenantId: string;
|
|
19
19
|
} | undefined>;
|
|
20
20
|
declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
21
21
|
scopes: AgentScopeConfig;
|
|
@@ -23,11 +23,11 @@ declare const listContextConfigs: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
23
23
|
id: string;
|
|
24
24
|
createdAt: string;
|
|
25
25
|
updatedAt: string;
|
|
26
|
+
tenantId: string;
|
|
27
|
+
projectId: string;
|
|
28
|
+
agentId: string;
|
|
26
29
|
headersSchema: unknown;
|
|
27
30
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
28
|
-
agentId: string;
|
|
29
|
-
projectId: string;
|
|
30
|
-
tenantId: string;
|
|
31
31
|
}[]>;
|
|
32
32
|
declare const listContextConfigsPaginated: (db: AgentsManageDatabaseClient) => (params: {
|
|
33
33
|
scopes: AgentScopeConfig;
|
|
@@ -45,11 +45,11 @@ declare const createContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
45
45
|
id: string;
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
|
+
tenantId: string;
|
|
49
|
+
projectId: string;
|
|
50
|
+
agentId: string;
|
|
48
51
|
headersSchema: unknown;
|
|
49
52
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
50
|
-
agentId: string;
|
|
51
|
-
projectId: string;
|
|
52
|
-
tenantId: string;
|
|
53
53
|
}>;
|
|
54
54
|
declare const updateContextConfig: (db: AgentsManageDatabaseClient) => (params: {
|
|
55
55
|
scopes: AgentScopeConfig;
|
|
@@ -85,11 +85,11 @@ declare const upsertContextConfig: (db: AgentsManageDatabaseClient) => (params:
|
|
|
85
85
|
id: string;
|
|
86
86
|
createdAt: string;
|
|
87
87
|
updatedAt: string;
|
|
88
|
+
tenantId: string;
|
|
89
|
+
projectId: string;
|
|
90
|
+
agentId: string;
|
|
88
91
|
headersSchema: unknown;
|
|
89
92
|
contextVariables: Record<string, ContextFetchDefinition> | null;
|
|
90
|
-
agentId: string;
|
|
91
|
-
projectId: string;
|
|
92
|
-
tenantId: string;
|
|
93
93
|
}>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { countContextConfigs, createContextConfig, deleteContextConfig, getContextConfigById, hasContextConfig, listContextConfigs, listContextConfigsPaginated, updateContextConfig, upsertContextConfig };
|
|
@@ -66,9 +66,9 @@ declare const associateDataComponentWithAgent: (db: AgentsManageDatabaseClient)
|
|
|
66
66
|
}) => Promise<{
|
|
67
67
|
id: string;
|
|
68
68
|
createdAt: string;
|
|
69
|
-
agentId: string;
|
|
70
|
-
projectId: string;
|
|
71
69
|
tenantId: string;
|
|
70
|
+
projectId: 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
|
-
projectId: string;
|
|
113
111
|
tenantId: string;
|
|
112
|
+
projectId: string;
|
|
113
|
+
agentId: string;
|
|
114
114
|
subAgentId: string;
|
|
115
115
|
dataComponentId: string;
|
|
116
116
|
} | null>;
|
|
@@ -53,14 +53,14 @@ declare const createFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
53
53
|
data: FunctionToolApiInsert;
|
|
54
54
|
scopes: AgentScopeConfig;
|
|
55
55
|
}) => Promise<{
|
|
56
|
-
name: string;
|
|
57
|
-
description: string | null;
|
|
58
56
|
id: string;
|
|
59
57
|
createdAt: string;
|
|
60
58
|
updatedAt: string;
|
|
61
|
-
|
|
62
|
-
|
|
59
|
+
name: string;
|
|
60
|
+
description: string | null;
|
|
63
61
|
tenantId: string;
|
|
62
|
+
projectId: string;
|
|
63
|
+
agentId: string;
|
|
64
64
|
functionId: string;
|
|
65
65
|
}>;
|
|
66
66
|
/**
|
|
@@ -95,14 +95,14 @@ declare const upsertFunctionTool: (db: AgentsManageDatabaseClient) => (params: {
|
|
|
95
95
|
data: FunctionToolApiInsert;
|
|
96
96
|
scopes: AgentScopeConfig;
|
|
97
97
|
}) => Promise<{
|
|
98
|
-
name: string;
|
|
99
|
-
description: string | null;
|
|
100
98
|
id: string;
|
|
101
99
|
createdAt: string;
|
|
102
100
|
updatedAt: string;
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
name: string;
|
|
102
|
+
description: string | null;
|
|
105
103
|
tenantId: string;
|
|
104
|
+
projectId: string;
|
|
105
|
+
agentId: string;
|
|
106
106
|
functionId: string;
|
|
107
107
|
}>;
|
|
108
108
|
declare const getFunctionToolsForSubAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
@@ -164,14 +164,14 @@ declare const addFunctionToolToSubAgent: (db: AgentsManageDatabaseClient) => (pa
|
|
|
164
164
|
id: string;
|
|
165
165
|
createdAt: string;
|
|
166
166
|
updatedAt: string;
|
|
167
|
-
agentId: string;
|
|
168
|
-
projectId: string;
|
|
169
167
|
tenantId: string;
|
|
170
|
-
|
|
171
|
-
|
|
168
|
+
projectId: string;
|
|
169
|
+
agentId: 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
|
|
@@ -229,14 +229,14 @@ declare const associateFunctionToolWithSubAgent: (db: AgentsManageDatabaseClient
|
|
|
229
229
|
id: string;
|
|
230
230
|
createdAt: string;
|
|
231
231
|
updatedAt: string;
|
|
232
|
-
agentId: string;
|
|
233
|
-
projectId: string;
|
|
234
232
|
tenantId: string;
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
projectId: string;
|
|
234
|
+
agentId: 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 };
|
|
@@ -8,15 +8,15 @@ declare const getSubAgentExternalAgentRelationById: (db: AgentsManageDatabaseCli
|
|
|
8
8
|
scopes: SubAgentScopeConfig;
|
|
9
9
|
relationId: string;
|
|
10
10
|
}) => Promise<{
|
|
11
|
+
headers: Record<string, string> | null;
|
|
11
12
|
id: string;
|
|
12
13
|
createdAt: string;
|
|
13
14
|
updatedAt: string;
|
|
14
|
-
agentId: string;
|
|
15
|
-
projectId: string;
|
|
16
15
|
tenantId: string;
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
projectId: string;
|
|
17
|
+
agentId: string;
|
|
19
18
|
externalAgentId: string;
|
|
19
|
+
subAgentId: string;
|
|
20
20
|
} | undefined>;
|
|
21
21
|
declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
22
22
|
scopes: SubAgentScopeConfig;
|
|
@@ -43,28 +43,28 @@ declare const listSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClien
|
|
|
43
43
|
declare const getSubAgentExternalAgentRelations: (db: AgentsManageDatabaseClient) => (params: {
|
|
44
44
|
scopes: SubAgentScopeConfig;
|
|
45
45
|
}) => Promise<{
|
|
46
|
+
headers: Record<string, string> | null;
|
|
46
47
|
id: string;
|
|
47
48
|
createdAt: string;
|
|
48
49
|
updatedAt: string;
|
|
49
|
-
agentId: string;
|
|
50
|
-
projectId: string;
|
|
51
50
|
tenantId: string;
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
projectId: string;
|
|
52
|
+
agentId: string;
|
|
54
53
|
externalAgentId: string;
|
|
54
|
+
subAgentId: string;
|
|
55
55
|
}[]>;
|
|
56
56
|
declare const getSubAgentExternalAgentRelationsByAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
57
57
|
scopes: AgentScopeConfig;
|
|
58
58
|
}) => Promise<{
|
|
59
|
+
headers: Record<string, string> | null;
|
|
59
60
|
id: string;
|
|
60
61
|
createdAt: string;
|
|
61
62
|
updatedAt: string;
|
|
62
|
-
agentId: string;
|
|
63
|
-
projectId: string;
|
|
64
63
|
tenantId: string;
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
projectId: string;
|
|
65
|
+
agentId: string;
|
|
67
66
|
externalAgentId: string;
|
|
67
|
+
subAgentId: string;
|
|
68
68
|
}[]>;
|
|
69
69
|
declare const getSubAgentExternalAgentRelationsByExternalAgent: (db: AgentsManageDatabaseClient) => (params: {
|
|
70
70
|
scopes: AgentScopeConfig;
|
|
@@ -179,15 +179,15 @@ declare const createSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
179
179
|
headers?: Record<string, string> | null;
|
|
180
180
|
};
|
|
181
181
|
}) => Promise<{
|
|
182
|
+
headers: Record<string, string> | null;
|
|
182
183
|
id: string;
|
|
183
184
|
createdAt: string;
|
|
184
185
|
updatedAt: string;
|
|
185
|
-
agentId: string;
|
|
186
|
-
projectId: string;
|
|
187
186
|
tenantId: string;
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
projectId: string;
|
|
188
|
+
agentId: string;
|
|
190
189
|
externalAgentId: string;
|
|
190
|
+
subAgentId: string;
|
|
191
191
|
}>;
|
|
192
192
|
/**
|
|
193
193
|
* Check if sub-agent external agent relation exists by params
|
|
@@ -196,15 +196,15 @@ declare const getSubAgentExternalAgentRelationByParams: (db: AgentsManageDatabas
|
|
|
196
196
|
scopes: SubAgentScopeConfig;
|
|
197
197
|
externalAgentId: string;
|
|
198
198
|
}) => Promise<{
|
|
199
|
+
headers: Record<string, string> | null;
|
|
199
200
|
id: string;
|
|
200
201
|
createdAt: string;
|
|
201
202
|
updatedAt: string;
|
|
202
|
-
agentId: string;
|
|
203
|
-
projectId: string;
|
|
204
203
|
tenantId: string;
|
|
205
|
-
|
|
206
|
-
|
|
204
|
+
projectId: string;
|
|
205
|
+
agentId: string;
|
|
207
206
|
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)
|
|
@@ -217,15 +217,15 @@ declare const upsertSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClie
|
|
|
217
217
|
headers?: Record<string, string> | null;
|
|
218
218
|
};
|
|
219
219
|
}) => Promise<{
|
|
220
|
+
headers: Record<string, string> | null;
|
|
220
221
|
id: string;
|
|
221
222
|
createdAt: string;
|
|
222
223
|
updatedAt: string;
|
|
223
|
-
agentId: string;
|
|
224
|
-
projectId: string;
|
|
225
224
|
tenantId: string;
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
projectId: string;
|
|
226
|
+
agentId: string;
|
|
228
227
|
externalAgentId: string;
|
|
228
|
+
subAgentId: string;
|
|
229
229
|
}>;
|
|
230
230
|
declare const updateSubAgentExternalAgentRelation: (db: AgentsManageDatabaseClient) => (params: {
|
|
231
231
|
scopes: SubAgentScopeConfig;
|