@inkeep/agents-manage-api 0.23.3 → 0.23.5

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 CHANGED
@@ -1956,7 +1956,17 @@ app8.openapi(
1956
1956
  operationId: "generate-component-preview",
1957
1957
  tags: ["Data Component"],
1958
1958
  request: {
1959
- params: agentsCore.TenantProjectIdParamsSchema
1959
+ params: agentsCore.TenantProjectIdParamsSchema,
1960
+ body: {
1961
+ content: {
1962
+ "application/json": {
1963
+ schema: zod.z.object({
1964
+ instructions: zod.z.string().optional(),
1965
+ existingCode: zod.z.string().optional()
1966
+ })
1967
+ }
1968
+ }
1969
+ }
1960
1970
  },
1961
1971
  responses: {
1962
1972
  200: {
@@ -1972,6 +1982,7 @@ app8.openapi(
1972
1982
  }),
1973
1983
  async (c) => {
1974
1984
  const { tenantId, projectId, id } = c.req.valid("param");
1985
+ const body = c.req.valid("json");
1975
1986
  const runApiUrl = env.AGENTS_RUN_API_URL;
1976
1987
  const url = `${runApiUrl}/v1/${tenantId}/projects/${projectId}/data-components/${id}/generate-preview`;
1977
1988
  try {
@@ -1979,7 +1990,8 @@ app8.openapi(
1979
1990
  method: "POST",
1980
1991
  headers: {
1981
1992
  "Content-Type": "application/json"
1982
- }
1993
+ },
1994
+ body: JSON.stringify(body)
1983
1995
  });
1984
1996
  if (!response.ok) {
1985
1997
  throw agentsCore.createApiError({
package/dist/index.js CHANGED
@@ -1952,7 +1952,17 @@ app8.openapi(
1952
1952
  operationId: "generate-component-preview",
1953
1953
  tags: ["Data Component"],
1954
1954
  request: {
1955
- params: TenantProjectIdParamsSchema
1955
+ params: TenantProjectIdParamsSchema,
1956
+ body: {
1957
+ content: {
1958
+ "application/json": {
1959
+ schema: z.object({
1960
+ instructions: z.string().optional(),
1961
+ existingCode: z.string().optional()
1962
+ })
1963
+ }
1964
+ }
1965
+ }
1956
1966
  },
1957
1967
  responses: {
1958
1968
  200: {
@@ -1968,6 +1978,7 @@ app8.openapi(
1968
1978
  }),
1969
1979
  async (c) => {
1970
1980
  const { tenantId, projectId, id } = c.req.valid("param");
1981
+ const body = c.req.valid("json");
1971
1982
  const runApiUrl = env.AGENTS_RUN_API_URL;
1972
1983
  const url = `${runApiUrl}/v1/${tenantId}/projects/${projectId}/data-components/${id}/generate-preview`;
1973
1984
  try {
@@ -1975,7 +1986,8 @@ app8.openapi(
1975
1986
  method: "POST",
1976
1987
  headers: {
1977
1988
  "Content-Type": "application/json"
1978
- }
1989
+ },
1990
+ body: JSON.stringify(body)
1979
1991
  });
1980
1992
  if (!response.ok) {
1981
1993
  throw createApiError({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-manage-api",
3
- "version": "0.23.3",
3
+ "version": "0.23.5",
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.23.3"
26
+ "@inkeep/agents-core": "^0.23.5"
27
27
  },
28
28
  "optionalDependencies": {
29
29
  "keytar": "^7.9.0"