{
  "openapi": "3.0.0",
  "info": {
    "title": "@digipair/skill-common",
    "summary": "Default behaviors of agents",
    "description": "The skill allows managing the default behaviors of agents.",
    "version": "0.1.0",
    "x-icon": "🚀"
  },
  "paths": {
    "/infos": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "List the informations",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Digipair information",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "description": "Name of the digipair"
                    },
                    "description": {
                      "type": "string",
                      "description": "Description of the digipair"
                    }
                  },
                  "required": [
                    "name",
                    "description"
                  ]
                }
              }
            }
          }
        },
        "x-events": []
      }
    },
    "/metadata": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "List the metadata",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Digipair metadata including avatar and configuration",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "avatar": {
                      "type": "string",
                      "description": "Base64 encoded avatar image"
                    },
                    "config": {
                      "type": "object",
                      "properties": {
                        "VERSIONS": {
                          "type": "object",
                          "description": "Library versions"
                        }
                      }
                    },
                    "variables": {
                      "type": "object",
                      "description": "Configuration variables"
                    }
                  }
                }
              }
            }
          }
        },
        "x-events": []
      }
    },
    "/roles": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "List the roles",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Roles of the digipair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        },
        "x-events": []
      }
    },
    "/avatar": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "Returns the digipair avatar",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Digipair avatar",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string",
                  "description": "Base64 encoded avatar image"
                }
              }
            }
          }
        },
        "x-events": []
      }
    },
    "/boosts": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "List the boosts",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of available boosts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "reasoning": {
                        "type": "string",
                        "description": "Boost reasoning identifier"
                      },
                      "summary": {
                        "type": "string",
                        "description": "Boost summary"
                      },
                      "description": {
                        "type": "string",
                        "description": "Boost description"
                      },
                      "selector": {
                        "type": "string",
                        "description": "CSS selector for boost activation"
                      },
                      "url": {
                        "type": "string",
                        "description": "URL pattern for boost activation"
                      },
                      "standalone": {
                        "type": "boolean",
                        "description": "Whether the boost runs standalone"
                      }
                    },
                    "required": [
                      "reasoning",
                      "summary",
                      "description"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-events": []
      }
    },
    "/prompts": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "List the prompts",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "List of available prompts",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "title": {
                        "type": "string",
                        "summary": "Title"
                      },
                      "description": {
                        "type": "string",
                        "summary": "Description"
                      },
                      "prompt": {
                        "type": "string",
                        "summary": "Prompt"
                      },
                      "icon": {
                        "type": "string",
                        "summary": "Icon"
                      },
                      "tags": {
                        "type": "array",
                        "summary": "Tags",
                        "items": {
                          "type": "string"
                        }
                      }
                    },
                    "required": [
                      "title",
                      "description",
                      "prompt",
                      "icon",
                      "tags"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-events": []
      }
    },
    "/schema": {
      "post": {
        "tags": [
          "service"
        ],
        "summary": "Schema",
        "parameters": [
          {
            "name": "digipair",
            "summary": "Digipair",
            "description": "Digipair's name",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OpenAPI schema for the digipair",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "openapi": {
                      "type": "string",
                      "description": "OpenAPI version"
                    },
                    "info": {
                      "type": "object",
                      "properties": {
                        "title": {
                          "type": "string"
                        },
                        "summary": {
                          "type": "string"
                        },
                        "description": {
                          "type": "string"
                        },
                        "version": {
                          "type": "string"
                        },
                        "x-icon": {
                          "type": "string"
                        }
                      }
                    },
                    "paths": {
                      "type": "object",
                      "description": "API paths and operations"
                    },
                    "x-scene-blocks": {
                      "type": "object",
                      "description": "Scene blocks for triggers"
                    }
                  },
                  "required": [
                    "openapi",
                    "info"
                  ]
                }
              }
            }
          }
        },
        "x-events": []
      }
    }
  },
  "x-scene-blocks": {}
}
