mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
chore(api): regenerate skills OpenAPI and SDK artifacts
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -950,11 +950,22 @@ export type HandlersSessionInfoResponse = {
|
||||
export type HandlersSkillItem = {
|
||||
content?: string;
|
||||
description?: string;
|
||||
managed?: boolean;
|
||||
metadata?: {
|
||||
[key: string]: unknown;
|
||||
};
|
||||
name?: string;
|
||||
raw?: string;
|
||||
shadowed_by?: string;
|
||||
source_kind?: string;
|
||||
source_path?: string;
|
||||
source_root?: string;
|
||||
state?: string;
|
||||
};
|
||||
|
||||
export type HandlersSkillsActionRequest = {
|
||||
action?: string;
|
||||
target_path?: string;
|
||||
};
|
||||
|
||||
export type HandlersSkillsDeleteRequest = {
|
||||
@@ -3009,6 +3020,47 @@ export type PostBotsByBotIdContainerSkillsResponses = {
|
||||
|
||||
export type PostBotsByBotIdContainerSkillsResponse = PostBotsByBotIdContainerSkillsResponses[keyof PostBotsByBotIdContainerSkillsResponses];
|
||||
|
||||
export type PostBotsByBotIdContainerSkillsActionsData = {
|
||||
/**
|
||||
* Skill action payload
|
||||
*/
|
||||
body: HandlersSkillsActionRequest;
|
||||
path: {
|
||||
/**
|
||||
* Bot ID
|
||||
*/
|
||||
bot_id: string;
|
||||
};
|
||||
query?: never;
|
||||
url: '/bots/{bot_id}/container/skills/actions';
|
||||
};
|
||||
|
||||
export type PostBotsByBotIdContainerSkillsActionsErrors = {
|
||||
/**
|
||||
* Bad Request
|
||||
*/
|
||||
400: HandlersErrorResponse;
|
||||
/**
|
||||
* Not Found
|
||||
*/
|
||||
404: HandlersErrorResponse;
|
||||
/**
|
||||
* Internal Server Error
|
||||
*/
|
||||
500: HandlersErrorResponse;
|
||||
};
|
||||
|
||||
export type PostBotsByBotIdContainerSkillsActionsError = PostBotsByBotIdContainerSkillsActionsErrors[keyof PostBotsByBotIdContainerSkillsActionsErrors];
|
||||
|
||||
export type PostBotsByBotIdContainerSkillsActionsResponses = {
|
||||
/**
|
||||
* OK
|
||||
*/
|
||||
200: HandlersSkillsOpResponse;
|
||||
};
|
||||
|
||||
export type PostBotsByBotIdContainerSkillsActionsResponse = PostBotsByBotIdContainerSkillsActionsResponses[keyof PostBotsByBotIdContainerSkillsActionsResponses];
|
||||
|
||||
export type GetBotsByBotIdContainerSnapshotsData = {
|
||||
body?: never;
|
||||
path: {
|
||||
|
||||
+84
-3
@@ -1508,7 +1508,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "List skills from data directory",
|
||||
"summary": "List skills from the bot container",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1549,7 +1549,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "Upload skills into data directory",
|
||||
"summary": "Upload skills into Memoh-managed directory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1599,7 +1599,7 @@ const docTemplate = `{
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "Delete skills from data directory",
|
||||
"summary": "Delete Memoh-managed skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1646,6 +1646,58 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/bots/{bot_id}/container/skills/actions": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "Apply an action to a discovered or managed skill source",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Skill action payload",
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.SkillsActionRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.skillsOpResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/bots/{bot_id}/container/snapshots": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -11027,6 +11079,9 @@ const docTemplate = `{
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"managed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": {}
|
||||
@@ -11036,6 +11091,32 @@ const docTemplate = `{
|
||||
},
|
||||
"raw": {
|
||||
"type": "string"
|
||||
},
|
||||
"shadowed_by": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_kind": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_path": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_root": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.SkillsActionRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"target_path": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+84
-3
@@ -1499,7 +1499,7 @@
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "List skills from data directory",
|
||||
"summary": "List skills from the bot container",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1540,7 +1540,7 @@
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "Upload skills into data directory",
|
||||
"summary": "Upload skills into Memoh-managed directory",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1590,7 +1590,7 @@
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "Delete skills from data directory",
|
||||
"summary": "Delete Memoh-managed skills",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@@ -1637,6 +1637,58 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/bots/{bot_id}/container/skills/actions": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"containerd"
|
||||
],
|
||||
"summary": "Apply an action to a discovered or managed skill source",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "Bot ID",
|
||||
"name": "bot_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"description": "Skill action payload",
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.SkillsActionRequest"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.skillsOpResponse"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
"description": "Bad Request",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "Not Found",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.ErrorResponse"
|
||||
}
|
||||
},
|
||||
"500": {
|
||||
"description": "Internal Server Error",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handlers.ErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/bots/{bot_id}/container/snapshots": {
|
||||
"get": {
|
||||
"tags": [
|
||||
@@ -11018,6 +11070,9 @@
|
||||
"description": {
|
||||
"type": "string"
|
||||
},
|
||||
"managed": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"metadata": {
|
||||
"type": "object",
|
||||
"additionalProperties": {}
|
||||
@@ -11027,6 +11082,32 @@
|
||||
},
|
||||
"raw": {
|
||||
"type": "string"
|
||||
},
|
||||
"shadowed_by": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_kind": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_path": {
|
||||
"type": "string"
|
||||
},
|
||||
"source_root": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"handlers.SkillsActionRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"action": {
|
||||
"type": "string"
|
||||
},
|
||||
"target_path": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
+56
-3
@@ -1587,6 +1587,8 @@ definitions:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
managed:
|
||||
type: boolean
|
||||
metadata:
|
||||
additionalProperties: {}
|
||||
type: object
|
||||
@@ -1594,6 +1596,23 @@ definitions:
|
||||
type: string
|
||||
raw:
|
||||
type: string
|
||||
shadowed_by:
|
||||
type: string
|
||||
source_kind:
|
||||
type: string
|
||||
source_path:
|
||||
type: string
|
||||
source_root:
|
||||
type: string
|
||||
state:
|
||||
type: string
|
||||
type: object
|
||||
handlers.SkillsActionRequest:
|
||||
properties:
|
||||
action:
|
||||
type: string
|
||||
target_path:
|
||||
type: string
|
||||
type: object
|
||||
handlers.SkillsDeleteRequest:
|
||||
properties:
|
||||
@@ -3809,7 +3828,7 @@ paths:
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.ErrorResponse'
|
||||
summary: Delete skills from data directory
|
||||
summary: Delete Memoh-managed skills
|
||||
tags:
|
||||
- containerd
|
||||
get:
|
||||
@@ -3836,7 +3855,7 @@ paths:
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.ErrorResponse'
|
||||
summary: List skills from data directory
|
||||
summary: List skills from the bot container
|
||||
tags:
|
||||
- containerd
|
||||
post:
|
||||
@@ -3869,7 +3888,41 @@ paths:
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.ErrorResponse'
|
||||
summary: Upload skills into data directory
|
||||
summary: Upload skills into Memoh-managed directory
|
||||
tags:
|
||||
- containerd
|
||||
/bots/{bot_id}/container/skills/actions:
|
||||
post:
|
||||
parameters:
|
||||
- description: Bot ID
|
||||
in: path
|
||||
name: bot_id
|
||||
required: true
|
||||
type: string
|
||||
- description: Skill action payload
|
||||
in: body
|
||||
name: payload
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.SkillsActionRequest'
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.skillsOpResponse'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.ErrorResponse'
|
||||
"404":
|
||||
description: Not Found
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.ErrorResponse'
|
||||
"500":
|
||||
description: Internal Server Error
|
||||
schema:
|
||||
$ref: '#/definitions/handlers.ErrorResponse'
|
||||
summary: Apply an action to a discovered or managed skill source
|
||||
tags:
|
||||
- containerd
|
||||
/bots/{bot_id}/container/snapshots:
|
||||
|
||||
Reference in New Issue
Block a user