@inkeep/agents-manage-api 0.14.15 → 0.15.0
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/index.cjs +20 -16
- package/dist/index.js +20 -16
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -2163,7 +2163,7 @@ app9.openapi(
|
|
|
2163
2163
|
operationId: "list-context-configs",
|
|
2164
2164
|
tags: ["Context Config"],
|
|
2165
2165
|
request: {
|
|
2166
|
-
params: agentsCore.
|
|
2166
|
+
params: agentsCore.TenantProjectGraphParamsSchema,
|
|
2167
2167
|
query: agentsCore.PaginationQueryParamsSchema
|
|
2168
2168
|
},
|
|
2169
2169
|
responses: {
|
|
@@ -2179,11 +2179,11 @@ app9.openapi(
|
|
|
2179
2179
|
}
|
|
2180
2180
|
}),
|
|
2181
2181
|
async (c) => {
|
|
2182
|
-
const { tenantId, projectId } = c.req.valid("param");
|
|
2182
|
+
const { tenantId, projectId, graphId } = c.req.valid("param");
|
|
2183
2183
|
const page = Number(c.req.query("page")) || 1;
|
|
2184
2184
|
const limit = Math.min(Number(c.req.query("limit")) || 10, 100);
|
|
2185
2185
|
const result = await agentsCore.listContextConfigsPaginated(dbClient_default)({
|
|
2186
|
-
scopes: { tenantId, projectId },
|
|
2186
|
+
scopes: { tenantId, projectId, graphId },
|
|
2187
2187
|
pagination: { page, limit }
|
|
2188
2188
|
});
|
|
2189
2189
|
return c.json(result);
|
|
@@ -2197,7 +2197,7 @@ app9.openapi(
|
|
|
2197
2197
|
operationId: "get-context-config-by-id",
|
|
2198
2198
|
tags: ["Context Config"],
|
|
2199
2199
|
request: {
|
|
2200
|
-
params: agentsCore.
|
|
2200
|
+
params: agentsCore.TenantProjectGraphParamsSchema.merge(agentsCore.IdParamsSchema)
|
|
2201
2201
|
},
|
|
2202
2202
|
responses: {
|
|
2203
2203
|
200: {
|
|
@@ -2212,9 +2212,9 @@ app9.openapi(
|
|
|
2212
2212
|
}
|
|
2213
2213
|
}),
|
|
2214
2214
|
async (c) => {
|
|
2215
|
-
const { tenantId, projectId, id } = c.req.valid("param");
|
|
2215
|
+
const { tenantId, projectId, graphId, id } = c.req.valid("param");
|
|
2216
2216
|
const contextConfig = await agentsCore.getContextConfigById(dbClient_default)({
|
|
2217
|
-
scopes: { tenantId, projectId },
|
|
2217
|
+
scopes: { tenantId, projectId, graphId },
|
|
2218
2218
|
id
|
|
2219
2219
|
});
|
|
2220
2220
|
if (!contextConfig) {
|
|
@@ -2234,7 +2234,7 @@ app9.openapi(
|
|
|
2234
2234
|
operationId: "create-context-config",
|
|
2235
2235
|
tags: ["Context Config"],
|
|
2236
2236
|
request: {
|
|
2237
|
-
params: agentsCore.
|
|
2237
|
+
params: agentsCore.TenantProjectGraphParamsSchema,
|
|
2238
2238
|
body: {
|
|
2239
2239
|
content: {
|
|
2240
2240
|
"application/json": {
|
|
@@ -2256,11 +2256,12 @@ app9.openapi(
|
|
|
2256
2256
|
}
|
|
2257
2257
|
}),
|
|
2258
2258
|
async (c) => {
|
|
2259
|
-
const { tenantId, projectId } = c.req.valid("param");
|
|
2259
|
+
const { tenantId, projectId, graphId } = c.req.valid("param");
|
|
2260
2260
|
const body = c.req.valid("json");
|
|
2261
2261
|
const configData = {
|
|
2262
2262
|
tenantId,
|
|
2263
2263
|
projectId,
|
|
2264
|
+
graphId,
|
|
2264
2265
|
...body
|
|
2265
2266
|
};
|
|
2266
2267
|
const contextConfig = await agentsCore.createContextConfig(dbClient_default)(configData);
|
|
@@ -2275,7 +2276,7 @@ app9.openapi(
|
|
|
2275
2276
|
operationId: "update-context-config",
|
|
2276
2277
|
tags: ["Context Config"],
|
|
2277
2278
|
request: {
|
|
2278
|
-
params: agentsCore.
|
|
2279
|
+
params: agentsCore.TenantProjectGraphParamsSchema.merge(agentsCore.IdParamsSchema),
|
|
2279
2280
|
body: {
|
|
2280
2281
|
content: {
|
|
2281
2282
|
"application/json": {
|
|
@@ -2297,10 +2298,10 @@ app9.openapi(
|
|
|
2297
2298
|
}
|
|
2298
2299
|
}),
|
|
2299
2300
|
async (c) => {
|
|
2300
|
-
const { tenantId, projectId, id } = c.req.valid("param");
|
|
2301
|
+
const { tenantId, projectId, graphId, id } = c.req.valid("param");
|
|
2301
2302
|
const body = c.req.valid("json");
|
|
2302
2303
|
const updatedContextConfig = await agentsCore.updateContextConfig(dbClient_default)({
|
|
2303
|
-
scopes: { tenantId, projectId },
|
|
2304
|
+
scopes: { tenantId, projectId, graphId },
|
|
2304
2305
|
id,
|
|
2305
2306
|
data: body
|
|
2306
2307
|
});
|
|
@@ -2321,7 +2322,7 @@ app9.openapi(
|
|
|
2321
2322
|
operationId: "delete-context-config",
|
|
2322
2323
|
tags: ["Context Config"],
|
|
2323
2324
|
request: {
|
|
2324
|
-
params: agentsCore.
|
|
2325
|
+
params: agentsCore.TenantProjectGraphParamsSchema.merge(agentsCore.IdParamsSchema)
|
|
2325
2326
|
},
|
|
2326
2327
|
responses: {
|
|
2327
2328
|
204: {
|
|
@@ -2331,9 +2332,9 @@ app9.openapi(
|
|
|
2331
2332
|
}
|
|
2332
2333
|
}),
|
|
2333
2334
|
async (c) => {
|
|
2334
|
-
const { tenantId, projectId, id } = c.req.valid("param");
|
|
2335
|
+
const { tenantId, projectId, graphId, id } = c.req.valid("param");
|
|
2335
2336
|
const deleted = await agentsCore.deleteContextConfig(dbClient_default)({
|
|
2336
|
-
scopes: { tenantId, projectId },
|
|
2337
|
+
scopes: { tenantId, projectId, graphId },
|
|
2337
2338
|
id
|
|
2338
2339
|
});
|
|
2339
2340
|
if (!deleted) {
|
|
@@ -3738,10 +3739,13 @@ app16.route("/projects/:projectId/graphs/:graphId/agents", agents_default);
|
|
|
3738
3739
|
app16.route("/projects/:projectId/graphs/:graphId/agent-relations", agentRelations_default);
|
|
3739
3740
|
app16.route("/projects/:projectId/agent-graphs", agentGraph_default);
|
|
3740
3741
|
app16.route("/projects/:projectId/graphs/:graphId/agent-tool-relations", agentToolRelations_default);
|
|
3741
|
-
app16.route(
|
|
3742
|
+
app16.route(
|
|
3743
|
+
"/projects/:projectId/graphs/:graphId/agent-artifact-components",
|
|
3744
|
+
agentArtifactComponents_default
|
|
3745
|
+
);
|
|
3742
3746
|
app16.route("/projects/:projectId/graphs/:graphId/agent-data-components", agentDataComponents_default);
|
|
3743
3747
|
app16.route("/projects/:projectId/artifact-components", artifactComponents_default);
|
|
3744
|
-
app16.route("/projects/:projectId/context-configs", contextConfigs_default);
|
|
3748
|
+
app16.route("/projects/:projectId/graphs/:graphId/context-configs", contextConfigs_default);
|
|
3745
3749
|
app16.route("/projects/:projectId/credentials", credentials_default);
|
|
3746
3750
|
app16.route("/projects/:projectId/data-components", dataComponents_default);
|
|
3747
3751
|
app16.route("/projects/:projectId/graphs/:graphId/external-agents", externalAgents_default);
|
package/dist/index.js
CHANGED
|
@@ -2159,7 +2159,7 @@ app9.openapi(
|
|
|
2159
2159
|
operationId: "list-context-configs",
|
|
2160
2160
|
tags: ["Context Config"],
|
|
2161
2161
|
request: {
|
|
2162
|
-
params:
|
|
2162
|
+
params: TenantProjectGraphParamsSchema,
|
|
2163
2163
|
query: PaginationQueryParamsSchema
|
|
2164
2164
|
},
|
|
2165
2165
|
responses: {
|
|
@@ -2175,11 +2175,11 @@ app9.openapi(
|
|
|
2175
2175
|
}
|
|
2176
2176
|
}),
|
|
2177
2177
|
async (c) => {
|
|
2178
|
-
const { tenantId, projectId } = c.req.valid("param");
|
|
2178
|
+
const { tenantId, projectId, graphId } = c.req.valid("param");
|
|
2179
2179
|
const page = Number(c.req.query("page")) || 1;
|
|
2180
2180
|
const limit = Math.min(Number(c.req.query("limit")) || 10, 100);
|
|
2181
2181
|
const result = await listContextConfigsPaginated(dbClient_default)({
|
|
2182
|
-
scopes: { tenantId, projectId },
|
|
2182
|
+
scopes: { tenantId, projectId, graphId },
|
|
2183
2183
|
pagination: { page, limit }
|
|
2184
2184
|
});
|
|
2185
2185
|
return c.json(result);
|
|
@@ -2193,7 +2193,7 @@ app9.openapi(
|
|
|
2193
2193
|
operationId: "get-context-config-by-id",
|
|
2194
2194
|
tags: ["Context Config"],
|
|
2195
2195
|
request: {
|
|
2196
|
-
params:
|
|
2196
|
+
params: TenantProjectGraphParamsSchema.merge(IdParamsSchema)
|
|
2197
2197
|
},
|
|
2198
2198
|
responses: {
|
|
2199
2199
|
200: {
|
|
@@ -2208,9 +2208,9 @@ app9.openapi(
|
|
|
2208
2208
|
}
|
|
2209
2209
|
}),
|
|
2210
2210
|
async (c) => {
|
|
2211
|
-
const { tenantId, projectId, id } = c.req.valid("param");
|
|
2211
|
+
const { tenantId, projectId, graphId, id } = c.req.valid("param");
|
|
2212
2212
|
const contextConfig = await getContextConfigById(dbClient_default)({
|
|
2213
|
-
scopes: { tenantId, projectId },
|
|
2213
|
+
scopes: { tenantId, projectId, graphId },
|
|
2214
2214
|
id
|
|
2215
2215
|
});
|
|
2216
2216
|
if (!contextConfig) {
|
|
@@ -2230,7 +2230,7 @@ app9.openapi(
|
|
|
2230
2230
|
operationId: "create-context-config",
|
|
2231
2231
|
tags: ["Context Config"],
|
|
2232
2232
|
request: {
|
|
2233
|
-
params:
|
|
2233
|
+
params: TenantProjectGraphParamsSchema,
|
|
2234
2234
|
body: {
|
|
2235
2235
|
content: {
|
|
2236
2236
|
"application/json": {
|
|
@@ -2252,11 +2252,12 @@ app9.openapi(
|
|
|
2252
2252
|
}
|
|
2253
2253
|
}),
|
|
2254
2254
|
async (c) => {
|
|
2255
|
-
const { tenantId, projectId } = c.req.valid("param");
|
|
2255
|
+
const { tenantId, projectId, graphId } = c.req.valid("param");
|
|
2256
2256
|
const body = c.req.valid("json");
|
|
2257
2257
|
const configData = {
|
|
2258
2258
|
tenantId,
|
|
2259
2259
|
projectId,
|
|
2260
|
+
graphId,
|
|
2260
2261
|
...body
|
|
2261
2262
|
};
|
|
2262
2263
|
const contextConfig = await createContextConfig(dbClient_default)(configData);
|
|
@@ -2271,7 +2272,7 @@ app9.openapi(
|
|
|
2271
2272
|
operationId: "update-context-config",
|
|
2272
2273
|
tags: ["Context Config"],
|
|
2273
2274
|
request: {
|
|
2274
|
-
params:
|
|
2275
|
+
params: TenantProjectGraphParamsSchema.merge(IdParamsSchema),
|
|
2275
2276
|
body: {
|
|
2276
2277
|
content: {
|
|
2277
2278
|
"application/json": {
|
|
@@ -2293,10 +2294,10 @@ app9.openapi(
|
|
|
2293
2294
|
}
|
|
2294
2295
|
}),
|
|
2295
2296
|
async (c) => {
|
|
2296
|
-
const { tenantId, projectId, id } = c.req.valid("param");
|
|
2297
|
+
const { tenantId, projectId, graphId, id } = c.req.valid("param");
|
|
2297
2298
|
const body = c.req.valid("json");
|
|
2298
2299
|
const updatedContextConfig = await updateContextConfig(dbClient_default)({
|
|
2299
|
-
scopes: { tenantId, projectId },
|
|
2300
|
+
scopes: { tenantId, projectId, graphId },
|
|
2300
2301
|
id,
|
|
2301
2302
|
data: body
|
|
2302
2303
|
});
|
|
@@ -2317,7 +2318,7 @@ app9.openapi(
|
|
|
2317
2318
|
operationId: "delete-context-config",
|
|
2318
2319
|
tags: ["Context Config"],
|
|
2319
2320
|
request: {
|
|
2320
|
-
params:
|
|
2321
|
+
params: TenantProjectGraphParamsSchema.merge(IdParamsSchema)
|
|
2321
2322
|
},
|
|
2322
2323
|
responses: {
|
|
2323
2324
|
204: {
|
|
@@ -2327,9 +2328,9 @@ app9.openapi(
|
|
|
2327
2328
|
}
|
|
2328
2329
|
}),
|
|
2329
2330
|
async (c) => {
|
|
2330
|
-
const { tenantId, projectId, id } = c.req.valid("param");
|
|
2331
|
+
const { tenantId, projectId, graphId, id } = c.req.valid("param");
|
|
2331
2332
|
const deleted = await deleteContextConfig(dbClient_default)({
|
|
2332
|
-
scopes: { tenantId, projectId },
|
|
2333
|
+
scopes: { tenantId, projectId, graphId },
|
|
2333
2334
|
id
|
|
2334
2335
|
});
|
|
2335
2336
|
if (!deleted) {
|
|
@@ -3734,10 +3735,13 @@ app16.route("/projects/:projectId/graphs/:graphId/agents", agents_default);
|
|
|
3734
3735
|
app16.route("/projects/:projectId/graphs/:graphId/agent-relations", agentRelations_default);
|
|
3735
3736
|
app16.route("/projects/:projectId/agent-graphs", agentGraph_default);
|
|
3736
3737
|
app16.route("/projects/:projectId/graphs/:graphId/agent-tool-relations", agentToolRelations_default);
|
|
3737
|
-
app16.route(
|
|
3738
|
+
app16.route(
|
|
3739
|
+
"/projects/:projectId/graphs/:graphId/agent-artifact-components",
|
|
3740
|
+
agentArtifactComponents_default
|
|
3741
|
+
);
|
|
3738
3742
|
app16.route("/projects/:projectId/graphs/:graphId/agent-data-components", agentDataComponents_default);
|
|
3739
3743
|
app16.route("/projects/:projectId/artifact-components", artifactComponents_default);
|
|
3740
|
-
app16.route("/projects/:projectId/context-configs", contextConfigs_default);
|
|
3744
|
+
app16.route("/projects/:projectId/graphs/:graphId/context-configs", contextConfigs_default);
|
|
3741
3745
|
app16.route("/projects/:projectId/credentials", credentials_default);
|
|
3742
3746
|
app16.route("/projects/:projectId/data-components", dataComponents_default);
|
|
3743
3747
|
app16.route("/projects/:projectId/graphs/:graphId/external-agents", externalAgents_default);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-manage-api",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Agents Manage API for Inkeep Agent Framework - handles CRUD operations and OAuth",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"openid-client": "^6.6.4",
|
|
24
24
|
"pino": "^9.7.0",
|
|
25
25
|
"zod": "^4.1.11",
|
|
26
|
-
"@inkeep/agents-core": "^0.
|
|
26
|
+
"@inkeep/agents-core": "^0.15.0"
|
|
27
27
|
},
|
|
28
28
|
"optionalDependencies": {
|
|
29
29
|
"keytar": "^7.9.0"
|