{
  "openapi": "3.0.3",
  "info": {
    "title": "Man0 API",
    "version": "1.0.0",
    "description": "Man0 workflows, catalog, accounts and NEAR Intents."
  },
  "servers": [
    {
      "url": "https://api.man0.space"
    }
  ],
  "tags": [
    {
      "name": "System"
    },
    {
      "name": "Accounts"
    },
    {
      "name": "Authentication"
    },
    {
      "name": "Catalog"
    },
    {
      "name": "Vibe and media"
    },
    {
      "name": "Workflows"
    },
    {
      "name": "Drafts"
    },
    {
      "name": "Execution"
    },
    {
      "name": "Analytics"
    },
    {
      "name": "NEAR accounts"
    },
    {
      "name": "Intents"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "operationId": "health",
        "summary": "Check API readiness",
        "description": "Check API readiness and database/cache connections.",
        "tags": [
          "System"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/config": {
      "get": {
        "operationId": "config",
        "summary": "Read app configuration",
        "description": "Read sign-in availability and creator/platform fee settings.",
        "tags": [
          "System"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Config"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/options": {
      "get": {
        "operationId": "options",
        "summary": "Read task categories",
        "description": "Read task categories and the maximum number of selected tags.",
        "tags": [
          "System"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OptionsResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/policy": {
      "get": {
        "operationId": "policy",
        "summary": "Read the policy",
        "description": "Read the current agreement and its policy hash.",
        "tags": [
          "System"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PolicyResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/consent": {
      "get": {
        "operationId": "consent_get",
        "summary": "Read consent",
        "description": "Read your acceptance record for the current policy.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Consent",
                  "nullable": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "consent_accept",
        "summary": "Accept the policy",
        "description": "Accept the current policy after the user reviews its terms and privacy checks.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Consent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ConsentInput"
              }
            }
          }
        }
      }
    },
    "/api/user": {
      "get": {
        "operationId": "user",
        "summary": "Read your account",
        "description": "Read the signed-in account and its current consent status.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth": {
      "delete": {
        "operationId": "sign_out",
        "summary": "Sign out",
        "description": "Revoke the current Man0 authentication session.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "204": {
            "description": "Success."
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/auth/passkey/options": {
      "post": {
        "operationId": "passkey_options",
        "summary": "Create passkey options",
        "description": "Create a single-use WebAuthn challenge. Send an allowed Origin header.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PasskeyOptionsResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "An allowed application origin."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/optionsBody"
              }
            }
          }
        }
      }
    },
    "/api/auth/passkey/register": {
      "post": {
        "operationId": "passkey_register",
        "summary": "Register a passkey",
        "description": "Verify a registration response and return the Man0 authentication token.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auth"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/credentialBody"
              }
            }
          }
        }
      }
    },
    "/api/auth/passkey/verify": {
      "post": {
        "operationId": "passkey_verify",
        "summary": "Verify a passkey",
        "description": "Verify a sign-in assertion and return the Man0 authentication token.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auth"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/credentialBody"
              }
            }
          }
        }
      }
    },
    "/api/auth/email/start": {
      "post": {
        "operationId": "email_start",
        "summary": "Start email verification",
        "description": "Start email verification. Send an allowed Origin header.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EmailStartResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "An allowed application origin."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/emailStartBody"
              }
            }
          }
        }
      }
    },
    "/api/auth/email/verify": {
      "post": {
        "operationId": "email_verify",
        "summary": "Verify an email code",
        "description": "Consume the email challenge with its six-digit code. Send an allowed Origin header.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Auth"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "Origin",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uri"
            },
            "description": "An allowed application origin."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/emailVerifyBody"
              }
            }
          }
        }
      }
    },
    "/api/oauth/{provider}/start": {
      "get": {
        "operationId": "oauth_start",
        "summary": "Start OAuth",
        "description": "Start provider authentication or profile linking. Opens the provider flow and redirects the browser.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "302": {
            "description": "Success.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                },
                "description": "Provider authorization URL."
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "discord",
                "github",
                "x",
                "telegram"
              ]
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "auth",
                "link"
              ],
              "default": "auth"
            }
          }
        ]
      }
    },
    "/api/oauth/{provider}/callback": {
      "get": {
        "operationId": "oauth_callback",
        "summary": "Complete OAuth",
        "description": "Complete the provider callback and return HTML that sends the result to the originating window.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "discord",
                "github",
                "x",
                "telegram"
              ]
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error_description",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/oauth/telegram/verify": {
      "post": {
        "operationId": "telegram_verify",
        "summary": "Verify Telegram linking",
        "description": "Complete the Telegram profile-linking response for the stored OAuth state.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelegramVerifyResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelegramVerifyInput"
              }
            }
          }
        }
      }
    },
    "/api/auth/link": {
      "post": {
        "operationId": "wallet_link",
        "summary": "Link a wallet",
        "description": "Associate an EVM or Solana address with the signed-in account.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LinkedWallet"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/linkAttachBody"
              }
            }
          }
        }
      }
    },
    "/api/auth/links": {
      "get": {
        "operationId": "wallet_links",
        "summary": "List linked wallets",
        "description": "List the account\u2019s linked external wallet addresses and registration status.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LinkedWallet"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/profile/{address}": {
      "get": {
        "operationId": "profile_get",
        "summary": "Read a creator profile",
        "description": "Read a creator profile by address or supported profile identifier.",
        "tags": [
          "Accounts"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorProfile"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "address",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/profiles": {
      "get": {
        "operationId": "profiles",
        "summary": "Read multiple profiles",
        "description": "Read up to 100 creator profiles in one request.",
        "tags": [
          "Accounts"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfilesResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "addresses",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "maxLength": 16000,
              "description": "Comma-separated creator addresses; at most 100 entries."
            }
          }
        ]
      }
    },
    "/api/profile": {
      "put": {
        "operationId": "profile_update",
        "summary": "Update your profile",
        "description": "Update your name, bio, images and social links. Requires current consent.",
        "tags": [
          "Accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Profile"
              }
            }
          }
        }
      }
    },
    "/api/catalog/{kind}": {
      "get": {
        "operationId": "catalog",
        "summary": "Read a catalog",
        "description": "Read current model, connector or agent entries. Set refresh=1 or refresh=true to refresh the catalog.",
        "tags": [
          "Catalog"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Entry"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "kind",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "models",
                "connectors",
                "agents"
              ]
            }
          },
          {
            "name": "refresh",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "1",
                "true"
              ]
            }
          }
        ]
      }
    },
    "/api/coordinators": {
      "get": {
        "operationId": "coordinators",
        "summary": "List coordinators",
        "description": "List saved coordinators and coordinator cards from the catalog.",
        "tags": [
          "Catalog"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Coordinator"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/coordinators/mint": {
      "post": {
        "operationId": "coordinator_mint",
        "summary": "Mint a coordinator",
        "description": "Pin a coordinator card, register its agent NFT, associate its wallet and save its catalog record. Requires current consent.",
        "tags": [
          "Catalog"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Coordinator"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/coordinatorMintBody"
              }
            }
          }
        }
      }
    },
    "/api/vibe": {
      "post": {
        "operationId": "vibe",
        "summary": "Build a workflow with Vibe",
        "description": "Build or revise a workflow from a text prompt. Read newline-delimited JSON patches as they arrive. Requires current consent.",
        "tags": [
          "Vibe and media"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Stream of newline-delimited JSON events.",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/VibeStreamEvent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/vibeRequestBody"
              }
            }
          }
        }
      }
    },
    "/api/generate-avatar": {
      "post": {
        "operationId": "avatar",
        "summary": "Generate an avatar",
        "description": "Generate and pin an avatar from a title, description and optional brand references. Requires current consent.",
        "tags": [
          "Vibe and media"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/mediaGenerateBody"
              }
            }
          }
        }
      }
    },
    "/api/generate-banner": {
      "post": {
        "operationId": "banner",
        "summary": "Generate a banner",
        "description": "Generate and pin a workflow banner from its description and optional brand references. Requires current consent.",
        "tags": [
          "Vibe and media"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MediaResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/mediaGenerateBody"
              }
            }
          }
        }
      }
    },
    "/api/ipfs/pin/json": {
      "post": {
        "operationId": "pin_json",
        "summary": "Pin JSON to IPFS",
        "description": "Pin JSON metadata to IPFS. Requires current consent.",
        "tags": [
          "Vibe and media"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PinResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ipfsPinJsonBody"
              }
            }
          }
        }
      }
    },
    "/api/ipfs/pin/file": {
      "post": {
        "operationId": "pin_file",
        "summary": "Pin a file to IPFS",
        "description": "Pin a base64 file to IPFS. Requires current consent.",
        "tags": [
          "Vibe and media"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PinResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ipfsPinFileBody"
              }
            }
          }
        }
      }
    },
    "/api/uploads": {
      "post": {
        "operationId": "upload",
        "summary": "Upload a run attachment",
        "description": "Upload a run attachment of up to 20 MiB. The response includes its URL, CID, classified type and readable text when available. Requires current consent.",
        "tags": [
          "Vibe and media"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/uploadAttachmentBody"
              }
            }
          }
        }
      }
    },
    "/api/workflows": {
      "get": {
        "operationId": "workflows_list",
        "summary": "List your workflows",
        "description": "List your saved drafts and published workflows. Requires current consent.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Listing"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "workflow_save",
        "summary": "Save a workflow",
        "description": "Create or update a saved workflow. Pass its latest modified timestamp in If-Match when updating. Requires current consent.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "If-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Latest modified timestamp of the saved resource."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Flow"
              }
            }
          }
        }
      }
    },
    "/api/workflows/{id}": {
      "get": {
        "operationId": "workflow_get",
        "summary": "Read a workflow",
        "description": "Read a published workflow. Include your Man0 token to read your own draft.",
        "tags": [
          "Workflows"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      },
      "delete": {
        "operationId": "workflow_delete",
        "summary": "Delete a workflow",
        "description": "Delete your workflow using the latest modified timestamp in If-Match. Requires current consent.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "204": {
            "description": "Success."
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Latest modified timestamp of the saved resource."
          }
        ]
      }
    },
    "/api/workflows/{id}/publish": {
      "post": {
        "operationId": "workflow_publish",
        "summary": "Publish a workflow",
        "description": "Publish your saved workflow with categories, description and a 1\u20133% creator fee. Include the latest modified timestamp in If-Match. Requires current consent.",
        "tags": [
          "Workflows"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Listing"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Latest modified timestamp of the saved resource."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Terms"
              }
            }
          }
        }
      }
    },
    "/api/market": {
      "get": {
        "operationId": "market",
        "summary": "Read the Market",
        "description": "List published workflows with creator profile data.",
        "tags": [
          "Workflows"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Listing"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/draft": {
      "get": {
        "operationId": "draft_get",
        "summary": "Read the Canvas draft",
        "description": "Read the current unsaved Canvas draft. Requires current consent.",
        "tags": [
          "Drafts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Flow",
                  "nullable": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "draft_put",
        "summary": "Save the Canvas draft",
        "description": "Persist the current Canvas draft. Pass If-Match when replacing an existing draft. Requires current consent.",
        "tags": [
          "Drafts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Flow"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "If-Match",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            },
            "description": "Latest modified timestamp of the saved resource."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Flow"
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "draft_delete",
        "summary": "Clear the Canvas draft",
        "description": "Clear the current unsaved Canvas draft. Requires current consent.",
        "tags": [
          "Drafts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "204": {
            "description": "Success."
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/draft/run": {
      "post": {
        "operationId": "draft_run",
        "summary": "Test a draft",
        "description": "Test a supplied workflow graph with a spending session. Read newline-delimited JSON activity and results.",
        "tags": [
          "Execution"
        ],
        "security": [
          {
            "man0Auth": [],
            "spendingSession": []
          }
        ],
        "responses": {
          "200": {
            "description": "Stream of newline-delimited JSON events.",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/RunStreamEvent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment authorization required. Decode the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "x-session-user-address",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Spending wallet subject or authenticated canonical account address; the API verifies that identity."
          },
          {
            "name": "x-network-id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Settlement network in CAIP-2 format, such as near:mainnet."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DraftRunInput"
              }
            }
          }
        }
      }
    },
    "/api/workflows/{id}/run": {
      "post": {
        "operationId": "workflow_run",
        "summary": "Run a workflow",
        "description": "Run a published workflow with a spending session or x402 payment. An unpublished workflow requires its owner\u2019s session.",
        "tags": [
          "Execution"
        ],
        "security": [
          {
            "spendingSession": []
          },
          {
            "x402Payment": []
          }
        ],
        "responses": {
          "200": {
            "description": "Stream of newline-delimited JSON events.",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/RunStreamEvent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "402": {
            "description": "Payment authorization required. Decode the PAYMENT-REQUIRED header.",
            "headers": {
              "PAYMENT-REQUIRED": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "x-session-user-address",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Spending wallet subject or authenticated canonical account address; the API verifies that identity."
          },
          {
            "name": "x-network-id",
            "in": "header",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Settlement network in CAIP-2 format, such as near:mainnet."
          }
        ],
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RunInput"
              }
            }
          }
        }
      }
    },
    "/api/workflows/{id}/threads": {
      "get": {
        "operationId": "threads",
        "summary": "List workflow threads",
        "description": "List your saved conversations for this workflow. Requires current consent.",
        "tags": [
          "Execution"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Thread"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/api/workflows/{id}/threads/{threadId}": {
      "get": {
        "operationId": "thread",
        "summary": "Read a workflow thread",
        "description": "Read a saved conversation and its outputs, pause requirements and execution receipt. Requires current consent.",
        "tags": [
          "Execution"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Thread"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "threadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ]
      }
    },
    "/api/workflows/{id}/threads/{threadId}/watch": {
      "get": {
        "operationId": "thread_watch",
        "summary": "Watch a workflow thread",
        "description": "Watch a saved conversation. The stream replays existing step outputs before reporting new activity or its terminal result. Requires current consent.",
        "tags": [
          "Execution"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Stream of newline-delimited JSON events.",
            "content": {
              "application/x-ndjson": {
                "schema": {
                  "$ref": "#/components/schemas/RunStreamEvent"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "threadId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            }
          }
        ]
      }
    },
    "/api/analytics": {
      "get": {
        "operationId": "analytics",
        "summary": "Read account analytics",
        "description": "Read account request totals, time buckets and settlement records. Requires current consent.",
        "tags": [
          "Analytics"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalyticsPayload"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "interval",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "minute",
                "hour",
                "day"
              ]
            }
          },
          {
            "name": "networks",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "requestCursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "settlementCursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          }
        ]
      }
    },
    "/api/analytics/earn": {
      "get": {
        "operationId": "analytics_earn",
        "summary": "Read creator earnings",
        "description": "Read earnings summaries and individual runs of your workflows. Requires current consent.",
        "tags": [
          "Analytics"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreatorEarnPayload"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 1000,
              "default": 500
            }
          }
        ]
      }
    },
    "/api/near/balance": {
      "get": {
        "operationId": "balance",
        "summary": "Read wallet balances",
        "description": "Read deposit and spending wallet balances in USDC atomic units.",
        "tags": [
          "NEAR accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Balance"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/near/deposit/ready": {
      "post": {
        "operationId": "deposit_ready",
        "summary": "Prepare a deposit wallet",
        "description": "Prepare the account\u2019s deposit wallet and token storage. Requires current consent.",
        "tags": [
          "NEAR accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DepositReadyResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        }
      }
    },
    "/api/near/spending/approve": {
      "post": {
        "operationId": "spending_approve",
        "summary": "Approve spending funds",
        "description": "Transfer USDC from the deposit wallet into its spending wallet. amountWei uses six-decimal USDC atomic units. Requires current consent.",
        "tags": [
          "NEAR accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transfer"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/spendingApproveBody"
              }
            }
          }
        }
      }
    },
    "/api/near/spending/reclaim": {
      "post": {
        "operationId": "spending_reclaim",
        "summary": "Reclaim spending funds",
        "description": "Return unused spending funds to the deposit wallet. Omit amountWei to reclaim the available balance. Requires current consent.",
        "tags": [
          "NEAR accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Transfer"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/spendingReclaimBody"
              }
            }
          }
        }
      }
    },
    "/api/near/view": {
      "post": {
        "operationId": "near_view",
        "summary": "Read a NEAR method",
        "description": "Read a method on an allowed Man0 NEAR contract with JSON arguments.",
        "tags": [
          "NEAR accounts"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ViewResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nearViewBody"
              }
            }
          }
        }
      }
    },
    "/api/near/execute": {
      "post": {
        "operationId": "near_execute",
        "summary": "Execute a NEAR method",
        "description": "Execute an allowed contract method through the account\u2019s Universal Account. deposit uses yoctoNEAR; gas is a gas-unit count. Requires current consent.",
        "tags": [
          "NEAR accounts"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Execute"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/nearCallBody"
              }
            }
          }
        }
      }
    },
    "/api/near/intents/quote": {
      "post": {
        "operationId": "intents_quote",
        "summary": "Quote an Intents route",
        "description": "Parse a deposit, swap or withdrawal request and return a route with funding legs. dry defaults to true for route preview.",
        "tags": [
          "Intents"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentRoute"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/intentsQuoteBody"
              }
            }
          }
        }
      }
    },
    "/api/near/intents/generate": {
      "post": {
        "operationId": "intents_generate",
        "summary": "Submit an Intents route",
        "description": "Sign and submit the stored INTENTS-source route. Use the route\u2019s depositAddress. Requires current consent.",
        "tags": [
          "Intents"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentGenerateResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/intentsGenerateBody"
              }
            }
          }
        }
      }
    },
    "/api/near/intents/deposit": {
      "post": {
        "operationId": "intents_deposit",
        "summary": "Report an origin transfer",
        "description": "Report an already-broadcast origin transfer to the route provider and invalidate the cached balance.",
        "tags": [
          "Intents"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubmitDepositTxResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/intentsDepositBody"
              }
            }
          }
        }
      }
    },
    "/api/near/intents/status": {
      "get": {
        "operationId": "intents_status",
        "summary": "Read an Intents status",
        "description": "Read a deposit route\u2019s current settlement status and available transaction links.",
        "tags": [
          "Intents"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentStatus"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "depositAddress",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          {
            "name": "depositMemo",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          }
        ]
      }
    },
    "/api/near/intents/svm-prepare": {
      "post": {
        "operationId": "svm_prepare",
        "summary": "Prepare a Solana transfer",
        "description": "Prepare an unsigned Solana origin transfer for the connected wallet to sign.",
        "tags": [
          "Intents"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSvmPrepareResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/intentsSvmPrepareBody"
              }
            }
          }
        }
      }
    },
    "/api/near/intents/svm-broadcast": {
      "post": {
        "operationId": "svm_broadcast",
        "summary": "Broadcast a Solana transfer",
        "description": "Broadcast the wallet-signed Solana transfer and report it to the route provider.",
        "tags": [
          "Intents"
        ],
        "security": [
          {
            "man0Auth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IntentSvmBroadcastResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/intentsSvmBroadcastBody"
              }
            }
          }
        }
      }
    },
    "/api/auth/oauth/{provider}/start": {
      "get": {
        "operationId": "oauth_start_auth_alias",
        "summary": "Start OAuth",
        "description": "Start provider authentication or profile linking. Opens the provider flow and redirects the browser. Alias of /api/oauth/{provider}/start.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "302": {
            "description": "Success.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                },
                "description": "Provider authorization URL."
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "discord",
                "github",
                "x",
                "telegram"
              ]
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "auth",
                "link"
              ],
              "default": "auth"
            }
          }
        ]
      }
    },
    "/oauth/{provider}/start": {
      "get": {
        "operationId": "oauth_start_root_alias",
        "summary": "Start OAuth",
        "description": "Start provider authentication or profile linking. Opens the provider flow and redirects the browser. Alias of /api/oauth/{provider}/start.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "302": {
            "description": "Success.",
            "headers": {
              "Location": {
                "schema": {
                  "type": "string",
                  "format": "uri"
                },
                "description": "Provider authorization URL."
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "discord",
                "github",
                "x",
                "telegram"
              ]
            }
          },
          {
            "name": "origin",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uri"
            }
          },
          {
            "name": "mode",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "auth",
                "link"
              ],
              "default": "auth"
            }
          }
        ]
      }
    },
    "/api/auth/oauth/{provider}/callback": {
      "get": {
        "operationId": "oauth_callback_auth_alias",
        "summary": "Complete OAuth",
        "description": "Complete the provider callback and return HTML that sends the result to the originating window. Alias of /api/oauth/{provider}/callback.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "discord",
                "github",
                "x",
                "telegram"
              ]
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error_description",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/oauth/{provider}/callback": {
      "get": {
        "operationId": "oauth_callback_root_alias",
        "summary": "Complete OAuth",
        "description": "Complete the provider callback and return HTML that sends the result to the originating window. Alias of /api/oauth/{provider}/callback.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "text/html": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "provider",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "google",
                "discord",
                "github",
                "x",
                "telegram"
              ]
            }
          },
          {
            "name": "state",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "error_description",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/auth/oauth/telegram/verify": {
      "post": {
        "operationId": "telegram_verify_auth_alias",
        "summary": "Verify Telegram linking",
        "description": "Complete the Telegram profile-linking response for the stored OAuth state. Alias of /api/oauth/telegram/verify.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelegramVerifyResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelegramVerifyInput"
              }
            }
          }
        }
      }
    },
    "/oauth/telegram/verify": {
      "post": {
        "operationId": "telegram_verify_root_alias",
        "summary": "Verify Telegram linking",
        "description": "Complete the Telegram profile-linking response for the stored OAuth state. Alias of /api/oauth/telegram/verify.",
        "tags": [
          "Authentication"
        ],
        "security": [],
        "responses": {
          "200": {
            "description": "Success.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TelegramVerifyResult"
                }
              }
            }
          },
          "400": {
            "description": "Invalid request.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "401": {
            "description": "Authentication required or expired.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "403": {
            "description": "Permission or current consent required.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "409": {
            "description": "Resource or policy changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "429": {
            "description": "Request rate exceeded.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds the size limit. Upload attachments accept at most 20 MB of decoded file bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                }
              }
            }
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TelegramVerifyInput"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "man0Auth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Man0 authentication token returned by sign-in."
      },
      "spendingSession": {
        "type": "apiKey",
        "in": "header",
        "name": "x-compose-key",
        "description": "Compose spending-session token. Also accepted as an Authorization Bearer token."
      },
      "x402Payment": {
        "type": "apiKey",
        "in": "header",
        "name": "PAYMENT-SIGNATURE",
        "description": "Base64-encoded x402 v2 payment payload."
      }
    },
    "schemas": {
      "Kind": {
        "type": "string",
        "enum": [
          "model",
          "connector",
          "agent"
        ]
      },
      "ModelOperationCapability": {
        "type": "object",
        "properties": {
          "modality": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "operation": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "sourceTypes": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 120
            }
          },
          "input": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 80
            }
          },
          "output": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 80
            }
          },
          "pricingUnits": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 80
            }
          },
          "streamable": {
            "type": "boolean"
          }
        },
        "required": [
          "modality",
          "operation",
          "sourceTypes",
          "input",
          "output",
          "pricingUnits",
          "streamable"
        ],
        "additionalProperties": {}
      },
      "Entry": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 512
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "description": {
            "type": "string",
            "maxLength": 10000
          },
          "kind": {
            "type": "string",
            "enum": [
              "model",
              "connector",
              "agent"
            ]
          },
          "groups": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "subgroups": {
            "maxItems": 24,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 120
            }
          },
          "modality": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "family": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80
          },
          "isFrontier": {
            "type": "boolean"
          },
          "isLatest": {
            "type": "boolean"
          },
          "logo": {
            "type": "string",
            "maxLength": 1024,
            "format": "uri"
          },
          "input": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "output": {
            "maxItems": 32,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            }
          },
          "type": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                }
              }
            ]
          },
          "operations": {
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "modality": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                },
                "operation": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "sourceTypes": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 120
                  }
                },
                "input": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "output": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "pricingUnits": {
                  "maxItems": 32,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "maxLength": 80
                  }
                },
                "streamable": {
                  "type": "boolean"
                }
              },
              "required": [
                "modality",
                "operation",
                "sourceTypes",
                "input",
                "output",
                "pricingUnits",
                "streamable"
              ],
              "additionalProperties": {}
            }
          }
        },
        "required": [
          "id",
          "name",
          "description",
          "kind"
        ]
      },
      "Step": {
        "type": "object",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "kind": {
            "type": "string",
            "enum": [
              "model",
              "connector",
              "agent"
            ]
          },
          "entry": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 512
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "description": {
                "type": "string",
                "maxLength": 10000
              },
              "kind": {
                "type": "string",
                "enum": [
                  "model",
                  "connector",
                  "agent"
                ]
              },
              "groups": {
                "maxItems": 16,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                }
              },
              "subgroups": {
                "maxItems": 24,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                }
              },
              "modality": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "family": {
                "type": "string",
                "minLength": 1,
                "maxLength": 80
              },
              "isFrontier": {
                "type": "boolean"
              },
              "isLatest": {
                "type": "boolean"
              },
              "logo": {
                "type": "string",
                "maxLength": 1024,
                "format": "uri"
              },
              "input": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                }
              },
              "output": {
                "maxItems": 32,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 80
                }
              },
              "type": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    }
                  }
                ]
              },
              "operations": {
                "maxItems": 64,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "modality": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    },
                    "operation": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "sourceTypes": {
                      "maxItems": 32,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 120
                      }
                    },
                    "input": {
                      "maxItems": 32,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "output": {
                      "maxItems": 32,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "pricingUnits": {
                      "maxItems": 32,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "maxLength": 80
                      }
                    },
                    "streamable": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "modality",
                    "operation",
                    "sourceTypes",
                    "input",
                    "output",
                    "pricingUnits",
                    "streamable"
                  ],
                  "additionalProperties": {}
                }
              }
            },
            "required": [
              "id",
              "name",
              "description",
              "kind"
            ]
          },
          "note": {
            "type": "string",
            "maxLength": 16000
          }
        },
        "required": [
          "label",
          "kind",
          "note"
        ]
      },
      "Block": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100
          },
          "type": {
            "type": "string",
            "enum": [
              "step"
            ]
          },
          "position": {
            "type": "object",
            "properties": {
              "x": {
                "type": "number"
              },
              "y": {
                "type": "number"
              }
            },
            "required": [
              "x",
              "y"
            ]
          },
          "data": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "kind": {
                "type": "string",
                "enum": [
                  "model",
                  "connector",
                  "agent"
                ]
              },
              "entry": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 512
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 10000
                  },
                  "kind": {
                    "type": "string",
                    "enum": [
                      "model",
                      "connector",
                      "agent"
                    ]
                  },
                  "groups": {
                    "maxItems": 16,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    }
                  },
                  "subgroups": {
                    "maxItems": 24,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    }
                  },
                  "modality": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "family": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 80
                  },
                  "isFrontier": {
                    "type": "boolean"
                  },
                  "isLatest": {
                    "type": "boolean"
                  },
                  "logo": {
                    "type": "string",
                    "maxLength": 1024,
                    "format": "uri"
                  },
                  "input": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    }
                  },
                  "output": {
                    "maxItems": 32,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 80
                    }
                  },
                  "type": {
                    "anyOf": [
                      {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 120
                      },
                      {
                        "maxItems": 32,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        }
                      }
                    ]
                  },
                  "operations": {
                    "maxItems": 64,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "modality": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "operation": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        "sourceTypes": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 120
                          }
                        },
                        "input": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 80
                          }
                        },
                        "output": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 80
                          }
                        },
                        "pricingUnits": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "maxLength": 80
                          }
                        },
                        "streamable": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "modality",
                        "operation",
                        "sourceTypes",
                        "input",
                        "output",
                        "pricingUnits",
                        "streamable"
                      ],
                      "additionalProperties": {}
                    }
                  }
                },
                "required": [
                  "id",
                  "name",
                  "description",
                  "kind"
                ]
              },
              "note": {
                "type": "string",
                "maxLength": 16000
              }
            },
            "required": [
              "label",
              "kind",
              "note"
            ]
          }
        },
        "required": [
          "id",
          "type",
          "position",
          "data"
        ]
      },
      "Link": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "source": {
            "type": "string"
          },
          "target": {
            "type": "string"
          },
          "sourceHandle": {
            "nullable": true,
            "type": "string"
          },
          "targetHandle": {
            "nullable": true,
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "wire"
            ]
          }
        },
        "required": [
          "id",
          "source",
          "target"
        ]
      },
      "Coordinator": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "userAddress": {
            "default": "",
            "type": "string",
            "maxLength": 160
          },
          "agentId": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "walletAddress": {
            "type": "string",
            "minLength": 2,
            "maxLength": 160
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "image": {
            "default": "",
            "type": "string",
            "maxLength": 2048
          },
          "personality": {
            "default": "",
            "type": "string",
            "maxLength": 8000
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "cid": {
            "default": "",
            "type": "string",
            "maxLength": 256
          },
          "txHash": {
            "default": "",
            "type": "string",
            "maxLength": 256
          },
          "contractId": {
            "default": "",
            "type": "string",
            "maxLength": 160
          },
          "network": {
            "type": "string",
            "minLength": 2,
            "maxLength": 80
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "walletAddress",
          "name",
          "model",
          "network"
        ]
      },
      "Flow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "brief": {
            "type": "string",
            "maxLength": 32000
          },
          "banner": {
            "nullable": true,
            "type": "string",
            "maxLength": 524288
          },
          "tasks": {
            "maxItems": 3,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            }
          },
          "coordinator": {
            "nullable": true,
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "userAddress": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "agentId": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "walletAddress": {
                "type": "string",
                "minLength": 2,
                "maxLength": 160
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "image": {
                "default": "",
                "type": "string",
                "maxLength": 2048
              },
              "personality": {
                "default": "",
                "type": "string",
                "maxLength": 8000
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "cid": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "txHash": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "contractId": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "network": {
                "type": "string",
                "minLength": 2,
                "maxLength": 80
              },
              "created": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "walletAddress",
              "name",
              "model",
              "network"
            ]
          },
          "nodes": {
            "maxItems": 500,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 100
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "step"
                  ]
                },
                "position": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ]
                },
                "data": {
                  "type": "object",
                  "properties": {
                    "label": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "kind": {
                      "type": "string",
                      "enum": [
                        "model",
                        "connector",
                        "agent"
                      ]
                    },
                    "entry": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 512
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "description": {
                          "type": "string",
                          "maxLength": 10000
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "model",
                            "connector",
                            "agent"
                          ]
                        },
                        "groups": {
                          "maxItems": 16,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          }
                        },
                        "subgroups": {
                          "maxItems": 24,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          }
                        },
                        "modality": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "family": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 80
                        },
                        "isFrontier": {
                          "type": "boolean"
                        },
                        "isLatest": {
                          "type": "boolean"
                        },
                        "logo": {
                          "type": "string",
                          "maxLength": 1024,
                          "format": "uri"
                        },
                        "input": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          }
                        },
                        "output": {
                          "maxItems": 32,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          }
                        },
                        "type": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            {
                              "maxItems": 32,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 120
                              }
                            }
                          ]
                        },
                        "operations": {
                          "maxItems": 64,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "modality": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              },
                              "operation": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 120
                              },
                              "sourceTypes": {
                                "maxItems": 32,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 120
                                }
                              },
                              "input": {
                                "maxItems": 32,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 80
                                }
                              },
                              "output": {
                                "maxItems": 32,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 80
                                }
                              },
                              "pricingUnits": {
                                "maxItems": 32,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "maxLength": 80
                                }
                              },
                              "streamable": {
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "modality",
                              "operation",
                              "sourceTypes",
                              "input",
                              "output",
                              "pricingUnits",
                              "streamable"
                            ],
                            "additionalProperties": {}
                          }
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "description",
                        "kind"
                      ]
                    },
                    "note": {
                      "type": "string",
                      "maxLength": 16000
                    }
                  },
                  "required": [
                    "label",
                    "kind",
                    "note"
                  ]
                }
              },
              "required": [
                "id",
                "type",
                "position",
                "data"
              ]
            }
          },
          "edges": {
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "source": {
                  "type": "string"
                },
                "target": {
                  "type": "string"
                },
                "sourceHandle": {
                  "nullable": true,
                  "type": "string"
                },
                "targetHandle": {
                  "nullable": true,
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "wire"
                  ]
                }
              },
              "required": [
                "id",
                "source",
                "target"
              ]
            }
          },
          "modified": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "name",
          "nodes",
          "edges",
          "modified"
        ],
        "description": "A directed acyclic workflow. Step, edge, and source-to-target route IDs must be unique; every connection must reference an existing step."
      },
      "Terms": {
        "type": "object",
        "properties": {
          "creatorFee": {
            "type": "integer",
            "minimum": 1,
            "maximum": 3
          },
          "tasks": {
            "minItems": 1,
            "maxItems": 12,
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1,
              "maxLength": 64
            },
            "description": "Accepts category IDs or slugs, normalizes and deduplicates them to at most three canonical categories."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 4000
          },
          "cid": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "chainWorkflowId": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "txHash": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "contractId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "creatorFee",
          "tasks",
          "description"
        ]
      },
      "SocialPlatform": {
        "type": "string",
        "enum": [
          "x",
          "discord",
          "github",
          "google",
          "telegram"
        ]
      },
      "SocialLink": {
        "type": "object",
        "properties": {
          "platform": {
            "type": "string",
            "enum": [
              "x",
              "discord",
              "github",
              "google",
              "telegram"
            ]
          },
          "handle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "url": {
            "type": "string",
            "maxLength": 512,
            "format": "uri"
          },
          "verified": {
            "type": "boolean"
          },
          "providerId": {
            "type": "string",
            "maxLength": 160
          }
        },
        "required": [
          "platform",
          "handle",
          "url"
        ]
      },
      "Profile": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "maxLength": 100
          },
          "bio": {
            "type": "string",
            "maxLength": 1000
          },
          "image": {
            "nullable": true,
            "type": "string",
            "maxLength": 524288
          },
          "banner": {
            "nullable": true,
            "type": "string",
            "maxLength": 524288
          },
          "socials": {
            "maxItems": 10,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "platform": {
                  "type": "string",
                  "enum": [
                    "x",
                    "discord",
                    "github",
                    "google",
                    "telegram"
                  ]
                },
                "handle": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "maxLength": 512,
                  "format": "uri"
                },
                "verified": {
                  "type": "boolean"
                },
                "providerId": {
                  "type": "string",
                  "maxLength": 160
                }
              },
              "required": [
                "platform",
                "handle",
                "url"
              ]
            }
          }
        },
        "required": [
          "name",
          "bio"
        ]
      },
      "Thread": {
        "type": "object",
        "properties": {
          "threadId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "workflowId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "userAddress": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "title": {
            "type": "string",
            "maxLength": 400
          },
          "status": {
            "type": "string",
            "enum": [
              "running",
              "input_required",
              "connector_required",
              "succeeded",
              "failed"
            ]
          },
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "dry": {
            "type": "boolean"
          },
          "prompt": {
            "type": "string",
            "maxLength": 32000
          },
          "attachments": {
            "default": [],
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "coordinator": {
            "nullable": true,
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "userAddress": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "agentId": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "walletAddress": {
                "type": "string",
                "minLength": 2,
                "maxLength": 160
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "image": {
                "default": "",
                "type": "string",
                "maxLength": 2048
              },
              "personality": {
                "default": "",
                "type": "string",
                "maxLength": 8000
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "cid": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "txHash": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "contractId": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "network": {
                "type": "string",
                "minLength": 2,
                "maxLength": 80
              },
              "created": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "walletAddress",
              "name",
              "model",
              "network"
            ]
          },
          "runningStepId": {
            "nullable": true,
            "type": "string"
          },
          "stepOutputs": {
            "default": {},
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "missingInputs": {
            "default": [],
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "missingConnectors": {
            "default": [],
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": {}
            }
          },
          "error": {
            "nullable": true,
            "type": "string"
          },
          "billing": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {}
          },
          "execution": {
            "nullable": true,
            "type": "object",
            "additionalProperties": {}
          },
          "created": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updated": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "threadId",
          "workflowId",
          "userAddress",
          "title",
          "status",
          "runId",
          "dry",
          "prompt",
          "created",
          "updated"
        ]
      },
      "ipfsPinJsonBody": {
        "type": "object",
        "properties": {
          "content": {
            "type": "object",
            "additionalProperties": {}
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "keyvalues": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "content",
          "name"
        ]
      },
      "ipfsPinFileBody": {
        "type": "object",
        "properties": {
          "fileBase64": {
            "type": "string",
            "minLength": 1,
            "maxLength": 6000000
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "mimeType": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "keyvalues": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "fileBase64",
          "fileName",
          "mimeType"
        ]
      },
      "uploadAttachmentBody": {
        "type": "object",
        "properties": {
          "fileBase64": {
            "type": "string",
            "minLength": 1,
            "maxLength": 30000000
          },
          "fileName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 240
          },
          "mimeType": {
            "type": "string",
            "maxLength": 160
          }
        },
        "required": [
          "fileBase64",
          "fileName"
        ]
      },
      "WorkflowAttachment": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "image",
              "audio",
              "video",
              "pdf",
              "file",
              "text",
              "json"
            ]
          },
          "url": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "mimeType": {
            "type": "string",
            "maxLength": 160
          },
          "name": {
            "type": "string",
            "maxLength": 240
          },
          "size": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "cid": {
            "type": "string",
            "maxLength": 160
          },
          "text": {
            "type": "string",
            "maxLength": 64000
          }
        },
        "required": [
          "type",
          "url"
        ]
      },
      "mediaGenerateBody": {
        "type": "object",
        "properties": {
          "title": {
            "type": "string",
            "maxLength": 300
          },
          "description": {
            "type": "string",
            "maxLength": 8000
          },
          "logos": {
            "maxItems": 12,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120
                },
                "url": {
                  "type": "string",
                  "format": "uri",
                  "maxLength": 1024
                }
              },
              "required": [
                "name"
              ]
            }
          }
        }
      },
      "coordinatorMintBody": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "image": {
            "type": "string",
            "maxLength": 2048,
            "format": "uri"
          },
          "personality": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "contractId": {
            "type": "string",
            "minLength": 2,
            "maxLength": 128
          },
          "network": {
            "type": "string",
            "enum": [
              "near:mainnet",
              "near:testnet"
            ]
          }
        },
        "required": [
          "name",
          "image",
          "personality",
          "model"
        ]
      },
      "vibeRequestBody": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000
          },
          "flow": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "brief": {
                "type": "string",
                "maxLength": 32000
              },
              "banner": {
                "nullable": true,
                "type": "string",
                "maxLength": 524288
              },
              "tasks": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "coordinator": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "userAddress": {
                    "default": "",
                    "type": "string",
                    "maxLength": 160
                  },
                  "agentId": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "walletAddress": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "image": {
                    "default": "",
                    "type": "string",
                    "maxLength": 2048
                  },
                  "personality": {
                    "default": "",
                    "type": "string",
                    "maxLength": 8000
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "cid": {
                    "default": "",
                    "type": "string",
                    "maxLength": 256
                  },
                  "txHash": {
                    "default": "",
                    "type": "string",
                    "maxLength": 256
                  },
                  "contractId": {
                    "default": "",
                    "type": "string",
                    "maxLength": 160
                  },
                  "network": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "created": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "id",
                  "walletAddress",
                  "name",
                  "model",
                  "network"
                ]
              },
              "nodes": {
                "maxItems": 500,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "step"
                      ]
                    },
                    "position": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "model",
                            "connector",
                            "agent"
                          ]
                        },
                        "entry": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "model",
                                "connector",
                                "agent"
                              ]
                            },
                            "groups": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              }
                            },
                            "subgroups": {
                              "maxItems": 24,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 120
                              }
                            },
                            "modality": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "family": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "isFrontier": {
                              "type": "boolean"
                            },
                            "isLatest": {
                              "type": "boolean"
                            },
                            "logo": {
                              "type": "string",
                              "maxLength": 1024,
                              "format": "uri"
                            },
                            "input": {
                              "maxItems": 32,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              }
                            },
                            "output": {
                              "maxItems": 32,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              }
                            },
                            "type": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                {
                                  "maxItems": 32,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 120
                                  }
                                }
                              ]
                            },
                            "operations": {
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "modality": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "operation": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 120
                                  },
                                  "sourceTypes": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 120
                                    }
                                  },
                                  "input": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 80
                                    }
                                  },
                                  "output": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 80
                                    }
                                  },
                                  "pricingUnits": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 80
                                    }
                                  },
                                  "streamable": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "modality",
                                  "operation",
                                  "sourceTypes",
                                  "input",
                                  "output",
                                  "pricingUnits",
                                  "streamable"
                                ],
                                "additionalProperties": {}
                              }
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "description",
                            "kind"
                          ]
                        },
                        "note": {
                          "type": "string",
                          "maxLength": 16000
                        }
                      },
                      "required": [
                        "label",
                        "kind",
                        "note"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "position",
                    "data"
                  ]
                }
              },
              "edges": {
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "source": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "sourceHandle": {
                      "nullable": true,
                      "type": "string"
                    },
                    "targetHandle": {
                      "nullable": true,
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "wire"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "target"
                  ]
                }
              },
              "modified": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "name",
              "nodes",
              "edges",
              "modified"
            ]
          },
          "history": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string",
                  "enum": [
                    "user",
                    "assistant"
                  ]
                },
                "content": {
                  "type": "string",
                  "maxLength": 16000
                }
              },
              "required": [
                "role",
                "content"
              ]
            }
          }
        },
        "required": [
          "prompt",
          "flow"
        ]
      },
      "optionsBody": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "create",
              "login"
            ]
          }
        },
        "required": [
          "mode"
        ]
      },
      "credentialBody": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "credential": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "id",
          "credential"
        ]
      },
      "emailStartBody": {
        "type": "object",
        "properties": {
          "email": {
            "type": "string",
            "maxLength": 254,
            "format": "email",
            "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
          }
        },
        "required": [
          "email"
        ]
      },
      "emailVerifyBody": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "minLength": 1
          },
          "code": {
            "type": "string",
            "pattern": "^\\d{6}$"
          }
        },
        "required": [
          "id",
          "code"
        ]
      },
      "linkAttachBody": {
        "type": "object",
        "properties": {
          "network": {
            "type": "string",
            "enum": [
              "evm",
              "svm"
            ]
          },
          "address": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "network",
          "address"
        ]
      },
      "nearViewBody": {
        "type": "object",
        "properties": {
          "contractId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "methodName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "args": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "required": [
          "contractId",
          "methodName"
        ]
      },
      "nearCallBody": {
        "type": "object",
        "properties": {
          "contractId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "methodName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "args": {
            "default": {},
            "type": "object",
            "additionalProperties": {}
          },
          "deposit": {
            "type": "string",
            "pattern": "^\\d+$"
          },
          "gas": {
            "type": "integer",
            "minimum": 0,
            "exclusiveMinimum": true,
            "maximum": 300000000000000
          }
        },
        "required": [
          "contractId",
          "methodName"
        ]
      },
      "spendingApproveBody": {
        "type": "object",
        "properties": {
          "amountWei": {
            "type": "string",
            "pattern": "^[1-9]\\d*$"
          }
        },
        "required": [
          "amountWei"
        ]
      },
      "spendingReclaimBody": {
        "type": "object",
        "properties": {
          "amountWei": {
            "type": "string",
            "pattern": "^[1-9]\\d*$"
          }
        }
      },
      "intentsQuoteBody": {
        "type": "object",
        "properties": {
          "prompt": {
            "type": "string",
            "minLength": 1,
            "maxLength": 2000
          },
          "dry": {
            "default": true,
            "type": "boolean"
          },
          "connectedWallets": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "network": {
                  "type": "string",
                  "enum": [
                    "evm",
                    "svm",
                    "near"
                  ]
                },
                "address": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 160
                }
              },
              "required": [
                "network",
                "address"
              ]
            }
          }
        },
        "required": [
          "prompt"
        ]
      },
      "intentsGenerateBody": {
        "type": "object",
        "properties": {
          "depositAddress": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "depositAddress"
        ]
      },
      "intentsDepositBody": {
        "type": "object",
        "properties": {
          "txHash": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "depositAddress": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "nearSenderAccount": {
            "type": "string",
            "minLength": 1,
            "maxLength": 160
          },
          "memo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "txHash",
          "depositAddress"
        ]
      },
      "intentsStatusQuery": {
        "type": "object",
        "properties": {
          "depositAddress": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "depositMemo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "depositAddress"
        ]
      },
      "intentsSvmPrepareBody": {
        "type": "object",
        "properties": {
          "senderAddress": {
            "type": "string",
            "minLength": 32,
            "maxLength": 64
          },
          "depositAddress": {
            "type": "string",
            "minLength": 32,
            "maxLength": 64
          },
          "amountAtomic": {
            "type": "string",
            "pattern": "^[1-9]\\d*$"
          },
          "tokenContract": {
            "type": "string",
            "minLength": 32,
            "maxLength": 64
          },
          "decimals": {
            "type": "integer",
            "minimum": 0,
            "maximum": 18
          },
          "memo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "senderAddress",
          "depositAddress",
          "amountAtomic"
        ]
      },
      "intentsSvmBroadcastBody": {
        "type": "object",
        "properties": {
          "signedTransactionBase64": {
            "type": "string",
            "minLength": 80,
            "maxLength": 8192
          },
          "depositAddress": {
            "type": "string",
            "minLength": 32,
            "maxLength": 64
          },
          "memo": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          }
        },
        "required": [
          "signedTransactionBase64",
          "depositAddress"
        ]
      },
      "connectorDecisionField": {
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "requestId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "decision": {
            "type": "string",
            "enum": [
              "connected",
              "discarded"
            ]
          }
        },
        "required": [
          "runId",
          "requestId",
          "decision"
        ]
      },
      "RunInput": {
        "type": "object",
        "properties": {
          "input": {
            "type": "string",
            "maxLength": 32000
          },
          "attachments": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "image",
                    "audio",
                    "video",
                    "pdf",
                    "file",
                    "text",
                    "json"
                  ]
                },
                "url": {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                "mimeType": {
                  "type": "string",
                  "maxLength": 160
                },
                "name": {
                  "type": "string",
                  "maxLength": 240
                },
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "cid": {
                  "type": "string",
                  "maxLength": 160
                },
                "text": {
                  "type": "string",
                  "maxLength": 64000
                }
              },
              "required": [
                "type",
                "url"
              ]
            }
          },
          "dry": {
            "type": "boolean"
          },
          "threadId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "coordinator": {
            "nullable": true,
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "userAddress": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "agentId": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "walletAddress": {
                "type": "string",
                "minLength": 2,
                "maxLength": 160
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "image": {
                "default": "",
                "type": "string",
                "maxLength": 2048
              },
              "personality": {
                "default": "",
                "type": "string",
                "maxLength": 8000
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "cid": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "txHash": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "contractId": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "network": {
                "type": "string",
                "minLength": 2,
                "maxLength": 80
              },
              "created": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "walletAddress",
              "name",
              "model",
              "network"
            ]
          },
          "connectorDecisions": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "runId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "requestId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "connected",
                    "discarded"
                  ]
                }
              },
              "required": [
                "runId",
                "requestId",
                "decision"
              ]
            }
          }
        }
      },
      "DraftRunInput": {
        "type": "object",
        "properties": {
          "flow": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200
              },
              "brief": {
                "type": "string",
                "maxLength": 32000
              },
              "banner": {
                "nullable": true,
                "type": "string",
                "maxLength": 524288
              },
              "tasks": {
                "maxItems": 3,
                "type": "array",
                "items": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 64
                }
              },
              "coordinator": {
                "nullable": true,
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 160
                  },
                  "userAddress": {
                    "default": "",
                    "type": "string",
                    "maxLength": 160
                  },
                  "agentId": {
                    "default": 0,
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "walletAddress": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 160
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  "image": {
                    "default": "",
                    "type": "string",
                    "maxLength": 2048
                  },
                  "personality": {
                    "default": "",
                    "type": "string",
                    "maxLength": 8000
                  },
                  "model": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256
                  },
                  "cid": {
                    "default": "",
                    "type": "string",
                    "maxLength": 256
                  },
                  "txHash": {
                    "default": "",
                    "type": "string",
                    "maxLength": 256
                  },
                  "contractId": {
                    "default": "",
                    "type": "string",
                    "maxLength": 160
                  },
                  "network": {
                    "type": "string",
                    "minLength": 2,
                    "maxLength": 80
                  },
                  "created": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  }
                },
                "required": [
                  "id",
                  "walletAddress",
                  "name",
                  "model",
                  "network"
                ]
              },
              "nodes": {
                "maxItems": 500,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 100
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "step"
                      ]
                    },
                    "position": {
                      "type": "object",
                      "properties": {
                        "x": {
                          "type": "number"
                        },
                        "y": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "x",
                        "y"
                      ]
                    },
                    "data": {
                      "type": "object",
                      "properties": {
                        "label": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "kind": {
                          "type": "string",
                          "enum": [
                            "model",
                            "connector",
                            "agent"
                          ]
                        },
                        "entry": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "name": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200
                            },
                            "description": {
                              "type": "string",
                              "maxLength": 10000
                            },
                            "kind": {
                              "type": "string",
                              "enum": [
                                "model",
                                "connector",
                                "agent"
                              ]
                            },
                            "groups": {
                              "maxItems": 16,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              }
                            },
                            "subgroups": {
                              "maxItems": 24,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 120
                              }
                            },
                            "modality": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "family": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            },
                            "isFrontier": {
                              "type": "boolean"
                            },
                            "isLatest": {
                              "type": "boolean"
                            },
                            "logo": {
                              "type": "string",
                              "maxLength": 1024,
                              "format": "uri"
                            },
                            "input": {
                              "maxItems": 32,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              }
                            },
                            "output": {
                              "maxItems": 32,
                              "type": "array",
                              "items": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 80
                              }
                            },
                            "type": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                {
                                  "maxItems": 32,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 120
                                  }
                                }
                              ]
                            },
                            "operations": {
                              "maxItems": 64,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "modality": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 80
                                  },
                                  "operation": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 120
                                  },
                                  "sourceTypes": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 120
                                    }
                                  },
                                  "input": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 80
                                    }
                                  },
                                  "output": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 80
                                    }
                                  },
                                  "pricingUnits": {
                                    "maxItems": 32,
                                    "type": "array",
                                    "items": {
                                      "type": "string",
                                      "maxLength": 80
                                    }
                                  },
                                  "streamable": {
                                    "type": "boolean"
                                  }
                                },
                                "required": [
                                  "modality",
                                  "operation",
                                  "sourceTypes",
                                  "input",
                                  "output",
                                  "pricingUnits",
                                  "streamable"
                                ],
                                "additionalProperties": {}
                              }
                            }
                          },
                          "required": [
                            "id",
                            "name",
                            "description",
                            "kind"
                          ]
                        },
                        "note": {
                          "type": "string",
                          "maxLength": 16000
                        }
                      },
                      "required": [
                        "label",
                        "kind",
                        "note"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "type",
                    "position",
                    "data"
                  ]
                }
              },
              "edges": {
                "maxItems": 2000,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200
                    },
                    "source": {
                      "type": "string"
                    },
                    "target": {
                      "type": "string"
                    },
                    "sourceHandle": {
                      "nullable": true,
                      "type": "string"
                    },
                    "targetHandle": {
                      "nullable": true,
                      "type": "string"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "wire"
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "source",
                    "target"
                  ]
                }
              },
              "modified": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "name",
              "nodes",
              "edges",
              "modified"
            ]
          },
          "input": {
            "type": "string",
            "maxLength": 32000
          },
          "attachments": {
            "maxItems": 8,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "image",
                    "audio",
                    "video",
                    "pdf",
                    "file",
                    "text",
                    "json"
                  ]
                },
                "url": {
                  "type": "string",
                  "maxLength": 2048,
                  "format": "uri"
                },
                "mimeType": {
                  "type": "string",
                  "maxLength": 160
                },
                "name": {
                  "type": "string",
                  "maxLength": 240
                },
                "size": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "cid": {
                  "type": "string",
                  "maxLength": 160
                },
                "text": {
                  "type": "string",
                  "maxLength": 64000
                }
              },
              "required": [
                "type",
                "url"
              ]
            }
          },
          "dry": {
            "type": "boolean"
          },
          "threadId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "coordinator": {
            "nullable": true,
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 160
              },
              "userAddress": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "agentId": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "walletAddress": {
                "type": "string",
                "minLength": 2,
                "maxLength": 160
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              "image": {
                "default": "",
                "type": "string",
                "maxLength": 2048
              },
              "personality": {
                "default": "",
                "type": "string",
                "maxLength": 8000
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256
              },
              "cid": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "txHash": {
                "default": "",
                "type": "string",
                "maxLength": 256
              },
              "contractId": {
                "default": "",
                "type": "string",
                "maxLength": 160
              },
              "network": {
                "type": "string",
                "minLength": 2,
                "maxLength": 80
              },
              "created": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "walletAddress",
              "name",
              "model",
              "network"
            ]
          },
          "connectorDecisions": {
            "maxItems": 16,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "runId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "requestId": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "decision": {
                  "type": "string",
                  "enum": [
                    "connected",
                    "discarded"
                  ]
                }
              },
              "required": [
                "runId",
                "requestId",
                "decision"
              ]
            }
          }
        },
        "required": [
          "flow"
        ]
      },
      "AnyInputQuoteWithdrawal.status": {
        "type": "string",
        "enum": [
          "SUCCESS",
          "FAILED"
        ]
      },
      "AuthCall.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "MultiPayload.standard": {
        "type": "string",
        "enum": [
          "nep413"
        ]
      },
      "MultiPayload.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "BalanceEntry.source": {
        "type": "string",
        "enum": [
          "private"
        ]
      },
      "ChainDepositAddress.blockchain": {
        "type": "string",
        "enum": [
          "near",
          "eth",
          "base",
          "arb",
          "btc",
          "sol",
          "ton",
          "dash",
          "doge",
          "xrp",
          "zec",
          "gnosis",
          "bera",
          "bsc",
          "pol",
          "tron",
          "sui",
          "movement",
          "op",
          "avax",
          "stellar",
          "aptos",
          "cardano",
          "ltc",
          "xlayer",
          "monad",
          "bch",
          "adi",
          "plasma",
          "scroll",
          "starknet",
          "aleo",
          "hypercore",
          "fogo",
          "hood",
          "hlevm"
        ]
      },
      "TonConnectPayloadSchema.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "GenerateSwapTransferIntentRequest.type": {
        "type": "string",
        "enum": [
          "swap_transfer"
        ]
      },
      "QuoteRequest.depositMode": {
        "type": "string",
        "enum": [
          "SIMPLE",
          "MEMO"
        ]
      },
      "QuoteRequest.swapType": {
        "type": "string",
        "enum": [
          "EXACT_INPUT",
          "EXACT_OUTPUT",
          "FLEX_INPUT",
          "ANY_INPUT"
        ]
      },
      "QuoteRequest.depositType": {
        "type": "string",
        "enum": [
          "ORIGIN_CHAIN",
          "INTENTS",
          "CONFIDENTIAL_INTENTS"
        ]
      },
      "QuoteRequest.refundType": {
        "type": "string",
        "enum": [
          "ORIGIN_CHAIN",
          "INTENTS",
          "CONFIDENTIAL_INTENTS"
        ]
      },
      "QuoteRequest.recipientType": {
        "type": "string",
        "enum": [
          "DESTINATION_CHAIN",
          "INTENTS",
          "CONFIDENTIAL_INTENTS"
        ]
      },
      "QuoteRequest.confidentiality": {
        "type": "string",
        "enum": [
          "public",
          "basic",
          "advanced"
        ]
      },
      "GetExecutionStatusResponse.status": {
        "type": "string",
        "enum": [
          "KNOWN_DEPOSIT_TX",
          "PENDING_DEPOSIT",
          "INCOMPLETE_DEPOSIT",
          "PROCESSING",
          "SUCCESS",
          "REFUNDED",
          "FAILED"
        ]
      },
      "HistoryItem.status": {
        "type": "string",
        "enum": [
          "PENDING_DEPOSIT",
          "INCOMPLETE_DEPOSIT",
          "PROCESSING",
          "SUCCESS",
          "REFUNDED",
          "FAILED"
        ]
      },
      "HistoryItem.depositType": {
        "type": "string",
        "enum": [
          "ORIGIN_CHAIN",
          "INTENTS",
          "CONFIDENTIAL_INTENTS"
        ]
      },
      "HistoryItem.recipientType": {
        "type": "string",
        "enum": [
          "DESTINATION_CHAIN",
          "INTENTS",
          "CONFIDENTIAL_INTENTS"
        ]
      },
      "HistoryItem.refundType": {
        "type": "string",
        "enum": [
          "ORIGIN_CHAIN",
          "INTENTS",
          "CONFIDENTIAL_INTENTS"
        ]
      },
      "Intent.intent": {
        "type": "string",
        "enum": [
          "add_public_key"
        ]
      },
      "Intent.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "IntentAddPublicKey.intent": {
        "type": "string",
        "enum": [
          "add_public_key"
        ]
      },
      "IntentAuthCall.intent": {
        "type": "string",
        "enum": [
          "auth_call"
        ]
      },
      "IntentAuthCall.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "IntentFtWithdraw.intent": {
        "type": "string",
        "enum": [
          "ft_withdraw"
        ]
      },
      "IntentImtBurn.intent": {
        "type": "string",
        "enum": [
          "imt_burn"
        ]
      },
      "IntentImtMint.intent": {
        "type": "string",
        "enum": [
          "imt_mint"
        ]
      },
      "IntentImtMint.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "IntentMtWithdraw.intent": {
        "type": "string",
        "enum": [
          "mt_withdraw"
        ]
      },
      "IntentNativeWithdraw.intent": {
        "type": "string",
        "enum": [
          "native_withdraw"
        ]
      },
      "IntentNftWithdraw.intent": {
        "type": "string",
        "enum": [
          "nft_withdraw"
        ]
      },
      "IntentRemovePublicKey.intent": {
        "type": "string",
        "enum": [
          "remove_public_key"
        ]
      },
      "IntentSetAuthByPredecessorId.intent": {
        "type": "string",
        "enum": [
          "set_auth_by_predecessor_id"
        ]
      },
      "IntentStorageDeposit.intent": {
        "type": "string",
        "enum": [
          "storage_deposit"
        ]
      },
      "IntentTokenDiff.intent": {
        "type": "string",
        "enum": [
          "token_diff"
        ]
      },
      "IntentTransfer.intent": {
        "type": "string",
        "enum": [
          "transfer"
        ]
      },
      "IntentTransfer.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "InvariantViolated.error": {
        "type": "string",
        "enum": [
          "unmatched_deltas"
        ]
      },
      "InvariantViolatedOverflow.error": {
        "type": "string",
        "enum": [
          "overflow"
        ]
      },
      "InvariantViolatedUnmatchedDeltas.error": {
        "type": "string",
        "enum": [
          "unmatched_deltas"
        ]
      },
      "LimitOrderExactInputSwapView.swapType": {
        "type": "string",
        "enum": [
          "EXACT_INPUT"
        ]
      },
      "LimitOrderExactOutputSwapView.swapType": {
        "type": "string",
        "enum": [
          "EXACT_OUTPUT"
        ]
      },
      "OrderPayoutCompleted.status": {
        "type": "string",
        "enum": [
          "COMPLETED"
        ]
      },
      "OrderPayoutInProgress.status": {
        "type": "string",
        "enum": [
          "IN_PROGRESS"
        ]
      },
      "PayoutFailed.status": {
        "type": "string",
        "enum": [
          "FAILED"
        ]
      },
      "MultiPayload__Parsed.standard": {
        "type": "string",
        "enum": [
          "nep413"
        ]
      },
      "MultiPayload__Parsed.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "MultiPayloadErc191.standard": {
        "type": "string",
        "enum": [
          "erc191"
        ]
      },
      "MultiPayloadErc191__Parsed.standard": {
        "type": "string",
        "enum": [
          "erc191"
        ]
      },
      "MultiPayloadNarrowed__Parsed.standard": {
        "type": "string",
        "enum": [
          "nep413"
        ]
      },
      "MultiPayloadNarrowed__Parsed.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "MultiPayloadNep413.standard": {
        "type": "string",
        "enum": [
          "nep413"
        ]
      },
      "MultiPayloadNep413__Parsed.standard": {
        "type": "string",
        "enum": [
          "nep413"
        ]
      },
      "MultiPayloadRawEd25519.standard": {
        "type": "string",
        "enum": [
          "raw_ed25519"
        ]
      },
      "MultiPayloadRawEd25519__Parsed.standard": {
        "type": "string",
        "enum": [
          "raw_ed25519"
        ]
      },
      "MultiPayloadSep53.standard": {
        "type": "string",
        "enum": [
          "sep53"
        ]
      },
      "MultiPayloadSep53__Parsed.standard": {
        "type": "string",
        "enum": [
          "sep53"
        ]
      },
      "MultiPayloadTip191.standard": {
        "type": "string",
        "enum": [
          "tip191"
        ]
      },
      "MultiPayloadTip191__Parsed.standard": {
        "type": "string",
        "enum": [
          "tip191"
        ]
      },
      "MultiPayloadTonConnect.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "MultiPayloadTonConnect.standard": {
        "type": "string",
        "enum": [
          "ton_connect"
        ]
      },
      "MultiPayloadTonConnect__Parsed.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "MultiPayloadTonConnect__Parsed.standard": {
        "type": "string",
        "enum": [
          "ton_connect"
        ]
      },
      "MultiPayloadWebauthnEd25519.standard": {
        "type": "string",
        "enum": [
          "webauthn"
        ]
      },
      "MultiPayloadWebauthnEd25519__Parsed.standard": {
        "type": "string",
        "enum": [
          "webauthn"
        ]
      },
      "MultiPayloadWebauthnP256.standard": {
        "type": "string",
        "enum": [
          "webauthn"
        ]
      },
      "MultiPayloadWebauthnP256__Parsed.standard": {
        "type": "string",
        "enum": [
          "webauthn"
        ]
      },
      "SimulationOutput.error": {
        "type": "string",
        "enum": [
          "unmatched_deltas"
        ]
      },
      "StateInit.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "StateInitV1.version": {
        "type": "string",
        "enum": [
          "v1"
        ]
      },
      "SubmitDepositTxResponse.status": {
        "type": "string",
        "enum": [
          "KNOWN_DEPOSIT_TX",
          "PENDING_DEPOSIT",
          "INCOMPLETE_DEPOSIT",
          "PROCESSING",
          "SUCCESS",
          "REFUNDED",
          "FAILED"
        ]
      },
      "SubmitSwapTransferIntentRequest.type": {
        "type": "string",
        "enum": [
          "swap_transfer"
        ]
      },
      "TokenResponse.blockchain": {
        "type": "string",
        "enum": [
          "near",
          "eth",
          "base",
          "arb",
          "btc",
          "sol",
          "ton",
          "dash",
          "doge",
          "xrp",
          "zec",
          "gnosis",
          "bera",
          "bsc",
          "pol",
          "tron",
          "sui",
          "movement",
          "op",
          "avax",
          "stellar",
          "aptos",
          "cardano",
          "ltc",
          "xlayer",
          "monad",
          "bch",
          "adi",
          "plasma",
          "scroll",
          "starknet",
          "aleo",
          "hypercore",
          "fogo",
          "hood",
          "hlevm"
        ]
      },
      "TonConnectPayloadSchema__Parsed.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "TonConnectPayloadSchemaText.type": {
        "type": "string",
        "enum": [
          "text"
        ]
      },
      "User": {
        "allOf": [
          {
            "$ref": "#/components/schemas/CreatorProfile"
          },
          {
            "type": "object",
            "properties": {
              "consented": {
                "type": "boolean"
              }
            },
            "required": [
              "consented"
            ]
          }
        ]
      },
      "CreatorProfile": {
        "type": "object",
        "properties": {
          "userAddress": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "bio": {
            "type": "string"
          },
          "image": {
            "type": "string",
            "nullable": true
          },
          "banner": {
            "type": "string",
            "nullable": true
          },
          "socials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SocialLink"
            }
          },
          "wallets": {
            "$ref": "#/components/schemas/CreatorWallets"
          }
        },
        "required": [
          "userAddress",
          "name",
          "bio",
          "image",
          "banner",
          "socials"
        ]
      },
      "CreatorWallets": {
        "type": "object",
        "properties": {
          "near": {
            "type": "string"
          },
          "evm": {
            "type": "string",
            "nullable": true
          },
          "svm": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "near",
          "evm",
          "svm"
        ]
      },
      "Listing": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Flow"
          },
          {
            "type": "object",
            "properties": {
              "userAddress": {
                "type": "string"
              },
              "creatorName": {
                "type": "string"
              },
              "creatorAvatar": {
                "type": "string",
                "nullable": true
              },
              "terms": {
                "$ref": "#/components/schemas/Terms",
                "nullable": true
              },
              "published": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "userAddress",
              "terms",
              "published"
            ]
          }
        ]
      },
      "Policy": {
        "type": "object",
        "properties": {
          "updated": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "sections": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "text": {
                  "type": "string"
                }
              },
              "required": [
                "title",
                "text"
              ]
            }
          },
          "checks": {
            "type": "object",
            "properties": {
              "terms": {
                "type": "string"
              },
              "privacy": {
                "type": "string"
              }
            },
            "required": [
              "terms",
              "privacy"
            ]
          }
        },
        "required": [
          "title",
          "sections",
          "checks"
        ]
      },
      "Consent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "policy": {
            "type": "string"
          },
          "accepted": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "policy",
          "accepted"
        ]
      },
      "Config": {
        "type": "object",
        "properties": {
          "providers": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/Provider"
                },
                "available": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "available"
              ]
            }
          },
          "linkProviders": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "#/components/schemas/LinkProvider"
                },
                "available": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "available"
              ]
            }
          },
          "passkey": {
            "type": "object",
            "properties": {
              "create": {
                "type": "boolean"
              },
              "login": {
                "type": "boolean"
              }
            },
            "required": [
              "create",
              "login"
            ]
          },
          "email": {
            "type": "object",
            "properties": {
              "enabled": {
                "type": "boolean"
              }
            },
            "required": [
              "enabled"
            ]
          },
          "fees": {
            "type": "object",
            "properties": {
              "creatorOptions": {
                "type": "array",
                "items": {
                  "type": "number"
                }
              },
              "platformPercent": {
                "type": "number"
              }
            },
            "required": [
              "creatorOptions",
              "platformPercent"
            ]
          }
        },
        "required": [
          "providers",
          "passkey",
          "email",
          "fees"
        ]
      },
      "Provider": {
        "type": "string",
        "enum": [
          "google",
          "discord",
          "github",
          "x"
        ]
      },
      "LinkProvider": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/Provider"
          },
          {
            "type": "string",
            "enum": [
              "telegram"
            ]
          }
        ]
      },
      "Auth": {
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "user": {
            "$ref": "#/components/schemas/User"
          },
          "expires": {
            "type": "string"
          }
        },
        "required": [
          "token",
          "user",
          "expires"
        ]
      },
      "AnalyticsPayload": {
        "type": "object",
        "properties": {
          "filters": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              },
              "interval": {
                "type": "string"
              },
              "networks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "from",
              "to",
              "interval",
              "networks"
            ]
          },
          "totals": {
            "type": "object",
            "properties": {
              "requests": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "number"
                  },
                  "succeeded": {
                    "type": "number"
                  },
                  "failed": {
                    "type": "number"
                  }
                },
                "required": [
                  "total",
                  "succeeded",
                  "failed"
                ]
              },
              "latency": {
                "type": "object",
                "properties": {
                  "count": {
                    "type": "number"
                  },
                  "averageMs": {
                    "type": "number"
                  }
                },
                "required": [
                  "count",
                  "averageMs"
                ]
              },
              "billing": {
                "type": "object",
                "properties": {
                  "quotedAmountAtomic": {
                    "type": "string"
                  },
                  "finalAmountAtomic": {
                    "type": "string"
                  },
                  "composeBillAtomic": {
                    "type": "string"
                  },
                  "creatorFeeAtomic": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "quotedAmountAtomic",
                  "finalAmountAtomic",
                  "currency"
                ]
              }
            },
            "required": [
              "requests",
              "latency",
              "billing"
            ]
          },
          "timeline": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AnalyticsBucket"
            }
          },
          "requests": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AnalyticsRequestRow"
                }
              },
              "nextCursor": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "data",
              "nextCursor"
            ]
          },
          "settlements": {
            "type": "object",
            "properties": {
              "data": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/AnalyticsSettlementRow"
                }
              },
              "nextCursor": {
                "type": "string",
                "nullable": true
              }
            },
            "required": [
              "data",
              "nextCursor"
            ]
          }
        },
        "required": [
          "filters",
          "totals",
          "timeline",
          "requests",
          "settlements"
        ]
      },
      "AnalyticsBucket": {
        "type": "object",
        "properties": {
          "start": {
            "type": "string"
          },
          "totals": {
            "type": "object",
            "properties": {
              "requests": {
                "type": "object",
                "properties": {
                  "total": {
                    "type": "number"
                  },
                  "succeeded": {
                    "type": "number"
                  },
                  "failed": {
                    "type": "number"
                  }
                },
                "required": [
                  "total",
                  "succeeded",
                  "failed"
                ]
              },
              "latency": {
                "type": "object",
                "properties": {
                  "count": {
                    "type": "number"
                  },
                  "averageMs": {
                    "type": "number"
                  }
                },
                "required": [
                  "count",
                  "averageMs"
                ]
              },
              "billing": {
                "type": "object",
                "properties": {
                  "quotedAmountAtomic": {
                    "type": "string"
                  },
                  "finalAmountAtomic": {
                    "type": "string"
                  },
                  "composeBillAtomic": {
                    "type": "string"
                  },
                  "creatorFeeAtomic": {
                    "type": "string"
                  },
                  "currency": {
                    "type": "string"
                  }
                },
                "required": [
                  "quotedAmountAtomic",
                  "finalAmountAtomic",
                  "currency"
                ]
              }
            },
            "required": [
              "requests",
              "latency",
              "billing"
            ]
          }
        },
        "required": [
          "start",
          "totals"
        ]
      },
      "AnalyticsRequestRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workflowId": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "startedAt": {
            "type": "string"
          },
          "completedAt": {
            "type": "string"
          },
          "latencyMs": {
            "type": "number"
          },
          "billing": {
            "type": "object",
            "properties": {
              "quotedAmountAtomic": {
                "type": "string"
              },
              "finalAmountAtomic": {
                "type": "string"
              },
              "composeBillAtomic": {
                "type": "string"
              },
              "creatorFeeAtomic": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "quotedAmountAtomic",
              "finalAmountAtomic",
              "currency"
            ]
          },
          "usage": {
            "type": "object",
            "properties": {
              "units": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "quantity": {
                      "type": "number"
                    },
                    "unit": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "quantity",
                    "unit"
                  ]
                }
              }
            }
          }
        },
        "required": [
          "id",
          "model",
          "status",
          "network",
          "startedAt",
          "completedAt",
          "latencyMs",
          "billing"
        ]
      },
      "AnalyticsSettlementRow": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workflowId": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "createdAt": {
            "type": "string"
          },
          "billing": {
            "type": "object",
            "properties": {
              "quotedAmountAtomic": {
                "type": "string"
              },
              "finalAmountAtomic": {
                "type": "string"
              },
              "composeBillAtomic": {
                "type": "string"
              },
              "creatorFeeAtomic": {
                "type": "string"
              },
              "currency": {
                "type": "string"
              }
            },
            "required": [
              "quotedAmountAtomic",
              "finalAmountAtomic",
              "currency"
            ]
          },
          "settleTransactionHash": {
            "type": "string"
          },
          "transactionHash": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "model",
          "status",
          "network",
          "createdAt",
          "billing"
        ]
      },
      "CreatorEarnPayload": {
        "type": "object",
        "properties": {
          "filters": {
            "type": "object",
            "properties": {
              "from": {
                "type": "string"
              },
              "to": {
                "type": "string"
              }
            },
            "required": [
              "from",
              "to"
            ]
          },
          "workflows": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatorWorkflowEarningSummary"
            }
          },
          "events": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CreatorEarningEvent"
            }
          }
        },
        "required": [
          "filters",
          "workflows",
          "events"
        ]
      },
      "CreatorWorkflowEarningSummary": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "banner": {
            "type": "string",
            "nullable": true
          },
          "tasks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "published": {
            "type": "string",
            "nullable": true
          },
          "modified": {
            "type": "string"
          },
          "creatorFee": {
            "type": "number"
          },
          "stepsCount": {
            "type": "number"
          },
          "runs": {
            "type": "number"
          },
          "paidRuns": {
            "type": "number"
          },
          "succeededRuns": {
            "type": "number"
          },
          "failedRuns": {
            "type": "number"
          },
          "earnedAtomic": {
            "type": "string"
          },
          "totalChargedAtomic": {
            "type": "string"
          },
          "avgDurationMs": {
            "type": "number"
          },
          "totalDurationMs": {
            "type": "number"
          },
          "lastRunAt": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "workflowId",
          "name",
          "banner",
          "tasks",
          "published",
          "modified",
          "creatorFee",
          "stepsCount",
          "runs",
          "paidRuns",
          "succeededRuns",
          "failedRuns",
          "earnedAtomic",
          "totalChargedAtomic",
          "avgDurationMs",
          "totalDurationMs",
          "lastRunAt"
        ]
      },
      "CreatorEarningEvent": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "workflowId": {
            "type": "string"
          },
          "workflowName": {
            "type": "string"
          },
          "tasks": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "runnerAddress": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "earnedAtomic": {
            "type": "string"
          },
          "composeBillAtomic": {
            "type": "string"
          },
          "totalChargedAtomic": {
            "type": "string"
          },
          "durationMs": {
            "type": "number"
          },
          "stepsCount": {
            "type": "number"
          },
          "txHash": {
            "type": "string",
            "nullable": true
          },
          "proofCid": {
            "type": "string",
            "nullable": true
          },
          "timestamp": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "workflowId",
          "workflowName",
          "tasks",
          "runnerAddress",
          "status",
          "network",
          "earnedAtomic",
          "composeBillAtomic",
          "totalChargedAtomic",
          "durationMs",
          "stepsCount",
          "txHash",
          "proofCid",
          "timestamp"
        ]
      },
      "OptionsResponse": {
        "type": "object",
        "properties": {
          "tasks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskCategoryGroup"
            }
          },
          "maxTaskTags": {
            "type": "number"
          }
        },
        "required": [
          "tasks",
          "maxTaskTags"
        ]
      },
      "TaskCategoryGroup": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "desc": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TaskTagItem"
            }
          }
        },
        "required": [
          "id",
          "label",
          "desc",
          "tags"
        ]
      },
      "TaskTagItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "desc": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "desc"
        ]
      },
      "Execute": {
        "type": "object",
        "properties": {
          "txHash": {
            "type": "string"
          },
          "signerId": {
            "type": "string"
          },
          "network": {
            "type": "string",
            "enum": [
              "mainnet",
              "testnet"
            ]
          },
          "result": {},
          "logs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "txHash",
          "signerId",
          "network",
          "result",
          "logs"
        ]
      },
      "Balance": {
        "type": "object",
        "properties": {
          "userAddress": {
            "type": "string"
          },
          "depositAddress": {
            "type": "string"
          },
          "spendingAddress": {
            "type": "string"
          },
          "mainBalanceWei": {
            "type": "string"
          },
          "spendingBalanceWei": {
            "type": "string"
          },
          "network": {
            "type": "string",
            "enum": [
              "mainnet",
              "testnet"
            ]
          }
        },
        "required": [
          "userAddress",
          "depositAddress",
          "spendingAddress",
          "mainBalanceWei",
          "spendingBalanceWei",
          "network"
        ]
      },
      "Transfer": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Balance"
          },
          {
            "type": "object",
            "properties": {
              "txHash": {
                "type": "string"
              }
            },
            "required": [
              "txHash"
            ]
          }
        ]
      },
      "IntentRoute": {
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "enum": [
              "deposit",
              "swap",
              "withdraw"
            ]
          },
          "depositType": {
            "type": "string",
            "enum": [
              "INTENTS",
              "ORIGIN_CHAIN"
            ]
          },
          "originToken": {
            "$ref": "#/components/schemas/IntentToken"
          },
          "originChainLabel": {
            "type": "string"
          },
          "originWalletNetwork": {
            "type": "string",
            "enum": [
              "evm",
              "svm",
              "near"
            ]
          },
          "originWalletAddress": {
            "type": "string"
          },
          "intentsAccountId": {
            "type": "string"
          },
          "hexChainId": {
            "type": "string"
          },
          "destinationToken": {
            "$ref": "#/components/schemas/IntentToken"
          },
          "destinationChainLabel": {
            "type": "string"
          },
          "recipientAddress": {
            "type": "string"
          },
          "amountAtomic": {
            "type": "string"
          },
          "displayAmount": {
            "type": "string"
          },
          "quote": {
            "$ref": "#/components/schemas/IntentQuote"
          },
          "legs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IntentLeg"
            }
          },
          "totalOutFormatted": {
            "type": "string"
          },
          "totalOutUsd": {
            "type": "string"
          }
        },
        "required": [
          "action",
          "depositType",
          "originToken",
          "originChainLabel",
          "originWalletNetwork",
          "originWalletAddress",
          "destinationToken",
          "destinationChainLabel",
          "recipientAddress",
          "amountAtomic",
          "displayAmount",
          "quote",
          "legs",
          "totalOutFormatted",
          "totalOutUsd"
        ]
      },
      "IntentToken": {
        "type": "object",
        "properties": {
          "assetId": {
            "type": "string"
          },
          "decimals": {
            "type": "number"
          },
          "blockchain": {
            "type": "string"
          },
          "symbol": {
            "type": "string"
          },
          "price": {
            "type": "number"
          },
          "contractAddress": {
            "type": "string"
          }
        },
        "required": [
          "assetId",
          "decimals",
          "blockchain",
          "symbol",
          "price"
        ]
      },
      "IntentQuote": {
        "type": "object",
        "properties": {
          "depositAddress": {
            "type": "string"
          },
          "depositMemo": {
            "type": "string",
            "nullable": true
          },
          "amountIn": {
            "type": "string"
          },
          "amountInFormatted": {
            "type": "string"
          },
          "amountInUsd": {
            "type": "string"
          },
          "amountOut": {
            "type": "string"
          },
          "amountOutFormatted": {
            "type": "string"
          },
          "amountOutUsd": {
            "type": "string"
          },
          "minAmountOut": {
            "type": "string"
          },
          "deadline": {
            "type": "string"
          },
          "timeWhenInactive": {
            "type": "string"
          },
          "timeEstimate": {
            "type": "number"
          }
        },
        "required": [
          "amountIn",
          "amountInFormatted",
          "amountOut",
          "amountOutFormatted"
        ]
      },
      "IntentLeg": {
        "type": "object",
        "properties": {
          "source": {
            "type": "string",
            "enum": [
              "intents",
              "account",
              "external"
            ]
          },
          "depositType": {
            "type": "string",
            "enum": [
              "INTENTS",
              "ORIGIN_CHAIN"
            ]
          },
          "originToken": {
            "$ref": "#/components/schemas/IntentToken"
          },
          "originChainLabel": {
            "type": "string"
          },
          "originExplorerUrl": {
            "type": "string"
          },
          "originWalletNetwork": {
            "type": "string",
            "enum": [
              "evm",
              "svm",
              "near"
            ]
          },
          "originWalletAddress": {
            "type": "string"
          },
          "intentsAccountId": {
            "type": "string"
          },
          "hexChainId": {
            "type": "string"
          },
          "destinationToken": {
            "$ref": "#/components/schemas/IntentToken"
          },
          "destinationChainLabel": {
            "type": "string"
          },
          "recipientAddress": {
            "type": "string"
          },
          "amountAtomic": {
            "type": "string"
          },
          "displayAmount": {
            "type": "string"
          },
          "quote": {
            "$ref": "#/components/schemas/IntentQuote"
          }
        },
        "required": [
          "source",
          "depositType",
          "originToken",
          "originChainLabel",
          "originWalletNetwork",
          "originWalletAddress",
          "destinationToken",
          "destinationChainLabel",
          "recipientAddress",
          "amountAtomic",
          "displayAmount",
          "quote"
        ]
      },
      "IntentGenerateResponse": {
        "type": "object",
        "properties": {
          "mode": {
            "type": "string",
            "enum": [
              "submitted"
            ]
          },
          "intentHash": {
            "type": "string"
          },
          "correlationId": {
            "type": "string"
          }
        },
        "required": [
          "mode",
          "intentHash",
          "correlationId"
        ]
      },
      "IntentSvmPrepareResponse": {
        "type": "object",
        "properties": {
          "messageBase58": {
            "type": "string"
          },
          "transactionBase64": {
            "type": "string"
          },
          "recentBlockhash": {
            "type": "string"
          },
          "lastValidBlockHeight": {
            "type": "number"
          }
        },
        "required": [
          "messageBase58",
          "transactionBase64",
          "recentBlockhash",
          "lastValidBlockHeight"
        ]
      },
      "IntentSvmBroadcastResponse": {
        "type": "object",
        "properties": {
          "txHash": {
            "type": "string"
          },
          "explorerUrl": {
            "type": "string"
          }
        },
        "required": [
          "txHash",
          "explorerUrl"
        ]
      },
      "IntentStatus": {
        "$ref": "#/components/schemas/GetExecutionStatusResponse"
      },
      "Execution": {
        "type": "object",
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "workflowId": {
            "type": "string"
          },
          "threadId": {
            "type": "string"
          },
          "chainWorkflowId": {
            "type": "number",
            "nullable": true
          },
          "name": {
            "type": "string"
          },
          "creatorUserAddress": {
            "type": "string"
          },
          "userAddress": {
            "type": "string"
          },
          "network": {
            "type": "string"
          },
          "dry": {
            "type": "boolean"
          },
          "composeBillWei": {
            "type": "string"
          },
          "creatorFeePercent": {
            "type": "number"
          },
          "creatorFeeWei": {
            "type": "string"
          },
          "platformFeePercent": {
            "type": "number"
          },
          "platformFeeWei": {
            "type": "string"
          },
          "serviceFeeWei": {
            "type": "string"
          },
          "totalChargedWei": {
            "type": "string"
          },
          "txHash": {
            "type": "string",
            "nullable": true
          },
          "paymentIntentId": {
            "type": "string",
            "nullable": true
          },
          "proofCid": {
            "type": "string",
            "nullable": true
          },
          "proofUrl": {
            "type": "string",
            "nullable": true
          },
          "output": {
            "type": "string"
          },
          "steps": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trace"
            }
          },
          "bills": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/WorkflowBillItem"
            }
          }
        },
        "required": [
          "ok",
          "workflowId",
          "chainWorkflowId",
          "name",
          "creatorUserAddress",
          "userAddress",
          "network",
          "composeBillWei",
          "creatorFeePercent",
          "creatorFeeWei",
          "platformFeePercent",
          "platformFeeWei",
          "serviceFeeWei",
          "totalChargedWei",
          "txHash",
          "paymentIntentId",
          "output",
          "steps"
        ]
      },
      "Trace": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "kind": {
            "type": "string"
          },
          "entryId": {
            "type": "string",
            "nullable": true
          },
          "billWei": {
            "type": "string"
          },
          "output": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "label",
          "kind",
          "entryId",
          "billWei",
          "output"
        ]
      },
      "WorkflowBillItem": {
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "coordinator",
              "model",
              "connector",
              "agent"
            ]
          },
          "kind": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "subject": {
            "type": "string"
          },
          "stepId": {
            "type": "string"
          },
          "receiptId": {
            "type": "string"
          },
          "txHash": {
            "type": "string"
          },
          "amountWei": {
            "type": "string"
          }
        },
        "required": [
          "category",
          "kind",
          "name",
          "amountWei"
        ]
      },
      "VibeStreamEvent": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "status"
                ]
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "delta"
                ]
              },
              "text": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "text"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "patch"
                ]
              },
              "patch": {
                "$ref": "#/components/schemas/VibePatch"
              }
            },
            "required": [
              "type",
              "patch"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "banner_start"
                ]
              }
            },
            "required": [
              "type"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "workflow_ready"
                ]
              },
              "text": {
                "type": "string"
              },
              "flow": {
                "$ref": "#/components/schemas/Flow"
              }
            },
            "required": [
              "type",
              "text",
              "flow"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "done"
                ]
              },
              "text": {
                "type": "string"
              },
              "flow": {
                "$ref": "#/components/schemas/Flow"
              }
            },
            "required": [
              "type",
              "text",
              "flow"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "error"
                ]
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "error"
            ]
          }
        ]
      },
      "VibePatch": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "set_title"
                ]
              },
              "name": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "name"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "set_description"
                ]
              },
              "brief": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "brief"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "set_categories"
                ]
              },
              "tasks": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "op",
              "tasks"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "set_coordinator"
                ]
              },
              "coordinator": {
                "$ref": "#/components/schemas/Coordinator",
                "nullable": true
              }
            },
            "required": [
              "op",
              "coordinator"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "set_banner"
                ]
              },
              "banner": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "banner"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "add_step"
                ]
              },
              "node": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 100
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "step"
                    ]
                  },
                  "position": {
                    "type": "object",
                    "properties": {
                      "x": {
                        "type": "number"
                      },
                      "y": {
                        "type": "number"
                      }
                    },
                    "required": [
                      "x",
                      "y"
                    ]
                  },
                  "data": {
                    "type": "object",
                    "properties": {
                      "label": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "kind": {
                        "type": "string",
                        "enum": [
                          "model",
                          "connector",
                          "agent"
                        ]
                      },
                      "entry": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 512
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "description": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "kind": {
                            "type": "string",
                            "enum": [
                              "model",
                              "connector",
                              "agent"
                            ]
                          },
                          "groups": {
                            "maxItems": 16,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            }
                          },
                          "subgroups": {
                            "maxItems": 24,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            }
                          },
                          "modality": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "family": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 80
                          },
                          "isFrontier": {
                            "type": "boolean"
                          },
                          "isLatest": {
                            "type": "boolean"
                          },
                          "logo": {
                            "type": "string",
                            "maxLength": 1024,
                            "format": "uri"
                          },
                          "input": {
                            "maxItems": 32,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            }
                          },
                          "output": {
                            "maxItems": 32,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 80
                            }
                          },
                          "type": {
                            "anyOf": [
                              {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 120
                              },
                              {
                                "maxItems": 32,
                                "type": "array",
                                "items": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                }
                              }
                            ]
                          },
                          "operations": {
                            "maxItems": 64,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "modality": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 80
                                },
                                "operation": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                "sourceTypes": {
                                  "maxItems": 32,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 120
                                  }
                                },
                                "input": {
                                  "maxItems": 32,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 80
                                  }
                                },
                                "output": {
                                  "maxItems": 32,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 80
                                  }
                                },
                                "pricingUnits": {
                                  "maxItems": 32,
                                  "type": "array",
                                  "items": {
                                    "type": "string",
                                    "maxLength": 80
                                  }
                                },
                                "streamable": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "modality",
                                "operation",
                                "sourceTypes",
                                "input",
                                "output",
                                "pricingUnits",
                                "streamable"
                              ],
                              "additionalProperties": {}
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "description",
                          "kind"
                        ]
                      },
                      "note": {
                        "type": "string",
                        "maxLength": 16000
                      }
                    },
                    "required": [
                      "label",
                      "kind",
                      "note"
                    ]
                  }
                },
                "required": [
                  "id",
                  "type",
                  "position",
                  "data"
                ]
              },
              "edge": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "source": {
                    "type": "string"
                  },
                  "target": {
                    "type": "string"
                  },
                  "sourceHandle": {
                    "nullable": true,
                    "type": "string"
                  },
                  "targetHandle": {
                    "nullable": true,
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "wire"
                    ]
                  }
                },
                "required": [
                  "id",
                  "source",
                  "target"
                ]
              }
            },
            "required": [
              "op",
              "node"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "update_step"
                ]
              },
              "stepId": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "note": {
                "type": "string"
              },
              "entry": {
                "$ref": "#/components/schemas/Entry"
              }
            },
            "required": [
              "op",
              "stepId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "connect_steps"
                ]
              },
              "edge": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200
                  },
                  "source": {
                    "type": "string"
                  },
                  "target": {
                    "type": "string"
                  },
                  "sourceHandle": {
                    "nullable": true,
                    "type": "string"
                  },
                  "targetHandle": {
                    "nullable": true,
                    "type": "string"
                  },
                  "type": {
                    "type": "string",
                    "enum": [
                      "wire"
                    ]
                  }
                },
                "required": [
                  "id",
                  "source",
                  "target"
                ]
              }
            },
            "required": [
              "op",
              "edge"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "remove_step"
                ]
              },
              "stepId": {
                "type": "string"
              }
            },
            "required": [
              "op",
              "stepId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "arrange_canvas"
                ]
              },
              "positions": {
                "type": "object",
                "additionalProperties": {
                  "type": "object",
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ]
                }
              }
            },
            "required": [
              "op",
              "positions"
            ]
          }
        ]
      },
      "RunStreamEvent": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "thread:init"
                ]
              },
              "threadId": {
                "type": "string"
              },
              "runId": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "threadId",
              "runId"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "step:start"
                ]
              },
              "stepId": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "stepId",
              "label",
              "kind"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "step:done"
                ]
              },
              "stepId": {
                "type": "string"
              },
              "label": {
                "type": "string"
              },
              "kind": {
                "type": "string"
              },
              "output": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "stepId",
              "label",
              "kind",
              "output"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "sse:activity"
                ]
              },
              "id": {
                "type": "string"
              },
              "ts": {
                "type": "number"
              },
              "stepId": {
                "type": "string",
                "nullable": true
              },
              "kind": {
                "type": "string"
              },
              "status": {
                "type": "string",
                "enum": [
                  "running",
                  "completed",
                  "pending",
                  "failed"
                ]
              },
              "title": {
                "type": "string"
              },
              "summary": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "id",
              "ts",
              "stepId",
              "kind",
              "status",
              "title"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "sse:delta"
                ]
              },
              "stepId": {
                "type": "string",
                "nullable": true
              },
              "delta": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "stepId",
              "delta"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "sse:bill"
                ]
              },
              "composeBillWei": {
                "type": "string"
              },
              "bills": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/WorkflowBillItem"
                }
              }
            },
            "required": [
              "type",
              "composeBillWei",
              "bills"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "connector:pause"
                ]
              },
              "missing": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MissingConnectorRequirement"
                }
              }
            },
            "required": [
              "type",
              "missing"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "input:pause"
                ]
              },
              "missingInputs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MissingInputRequirement"
                }
              }
            },
            "required": [
              "type",
              "missingInputs"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "ping"
                ]
              },
              "ts": {
                "type": "number"
              }
            },
            "required": [
              "type",
              "ts"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "result"
                ]
              },
              "execution": {
                "$ref": "#/components/schemas/Execution"
              }
            },
            "required": [
              "type",
              "execution"
            ]
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "error"
                ]
              },
              "statusCode": {
                "type": "number"
              },
              "code": {
                "type": "string"
              },
              "threadId": {
                "type": "string"
              },
              "missing": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MissingConnectorRequirement"
                }
              },
              "missingInputs": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/MissingInputRequirement"
                }
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "error"
            ]
          }
        ]
      },
      "MissingConnectorRequirement": {
        "type": "object",
        "properties": {
          "entryId": {
            "type": "string"
          },
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "account",
              "gated"
            ]
          },
          "userAddress": {
            "type": "string"
          },
          "missingVars": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "varName": {
                  "type": "string"
                },
                "description": {
                  "type": "string"
                },
                "obtainUrl": {
                  "type": "string"
                }
              },
              "required": [
                "varName"
              ]
            }
          },
          "reason": {
            "type": "string"
          },
          "agentWallet": {
            "type": "string"
          },
          "runId": {
            "type": "string"
          },
          "threadId": {
            "type": "string"
          },
          "requestId": {
            "type": "string"
          }
        },
        "required": [
          "entryId",
          "slug",
          "name",
          "type",
          "reason"
        ]
      },
      "MissingInputRequirement": {
        "type": "object",
        "properties": {
          "stepId": {
            "type": "string"
          },
          "stepLabel": {
            "type": "string"
          },
          "modelId": {
            "type": "string"
          },
          "modelName": {
            "type": "string"
          },
          "acceptedInputs": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "questions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "reason": {
            "type": "string"
          },
          "agentWallet": {
            "type": "string"
          },
          "runId": {
            "type": "string"
          },
          "threadId": {
            "type": "string"
          },
          "proposalId": {
            "type": "string"
          }
        },
        "required": [
          "stepId",
          "stepLabel",
          "acceptedInputs",
          "reason"
        ]
      },
      "SubmitDepositTxResponse": {
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string"
          },
          "quoteResponse": {
            "$ref": "#/components/schemas/QuoteResponse"
          },
          "status": {
            "$ref": "#/components/schemas/SubmitDepositTxResponse.status"
          },
          "updatedAt": {
            "type": "string"
          },
          "swapDetails": {
            "$ref": "#/components/schemas/SwapDetails"
          }
        },
        "required": [
          "correlationId",
          "quoteResponse",
          "status",
          "updatedAt",
          "swapDetails"
        ]
      },
      "QuoteResponse": {
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string"
          },
          "timestamp": {
            "type": "string"
          },
          "signature": {
            "type": "string"
          },
          "quoteRequest": {
            "$ref": "#/components/schemas/QuoteRequest"
          },
          "quote": {
            "$ref": "#/components/schemas/Quote"
          }
        },
        "required": [
          "correlationId",
          "timestamp",
          "signature",
          "quoteRequest",
          "quote"
        ]
      },
      "QuoteRequest": {
        "type": "object",
        "properties": {
          "dry": {
            "type": "boolean"
          },
          "depositMode": {
            "$ref": "#/components/schemas/QuoteRequest.depositMode"
          },
          "swapType": {
            "$ref": "#/components/schemas/QuoteRequest.swapType"
          },
          "slippageTolerance": {
            "type": "number"
          },
          "originAsset": {
            "type": "string"
          },
          "depositType": {
            "$ref": "#/components/schemas/QuoteRequest.depositType"
          },
          "destinationAsset": {
            "type": "string"
          },
          "amount": {
            "type": "string"
          },
          "refundTo": {
            "type": "string"
          },
          "refundType": {
            "$ref": "#/components/schemas/QuoteRequest.refundType"
          },
          "recipient": {
            "type": "string"
          },
          "connectedWallets": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sessionId": {
            "type": "string"
          },
          "virtualChainRecipient": {
            "type": "string"
          },
          "virtualChainRefundRecipient": {
            "type": "string"
          },
          "customRecipientMsg": {
            "type": "string"
          },
          "recipientType": {
            "$ref": "#/components/schemas/QuoteRequest.recipientType"
          },
          "deadline": {
            "type": "string"
          },
          "confidentiality": {
            "$ref": "#/components/schemas/QuoteRequest.confidentiality"
          },
          "referral": {
            "type": "string"
          },
          "rebates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Rebate"
            }
          },
          "quoteWaitingTimeMs": {
            "type": "number"
          },
          "appFees": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AppFee"
            }
          },
          "insured": {
            "type": "boolean"
          }
        },
        "required": [
          "dry",
          "swapType",
          "slippageTolerance",
          "originAsset",
          "depositType",
          "destinationAsset",
          "amount",
          "refundTo",
          "refundType",
          "recipient",
          "recipientType",
          "deadline"
        ]
      },
      "Rebate": {
        "type": "object",
        "properties": {
          "recipient": {
            "type": "string"
          },
          "share": {
            "type": "number"
          }
        },
        "required": [
          "recipient",
          "share"
        ]
      },
      "AppFee": {
        "type": "object",
        "properties": {
          "recipient": {
            "type": "string"
          },
          "fee": {
            "type": "number"
          }
        },
        "required": [
          "recipient",
          "fee"
        ]
      },
      "Quote": {
        "type": "object",
        "properties": {
          "depositAddress": {
            "type": "string"
          },
          "depositMemo": {
            "type": "string"
          },
          "chainDepositAddresses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChainDepositAddress"
            }
          },
          "amountIn": {
            "type": "string"
          },
          "amountInFormatted": {
            "type": "string"
          },
          "amountInUsd": {
            "type": "string"
          },
          "minAmountIn": {
            "type": "string"
          },
          "amountOut": {
            "type": "string"
          },
          "amountOutFormatted": {
            "type": "string"
          },
          "amountOutUsd": {
            "type": "string"
          },
          "minAmountOut": {
            "type": "string"
          },
          "deadline": {
            "type": "string"
          },
          "timeWhenInactive": {
            "type": "string"
          },
          "timeEstimate": {
            "type": "number"
          },
          "virtualChainRecipient": {
            "type": "string"
          },
          "virtualChainRefundRecipient": {
            "type": "string"
          },
          "customRecipientMsg": {
            "type": "string"
          },
          "refundFee": {
            "type": "string"
          },
          "withdrawFee": {
            "type": "string"
          }
        },
        "required": [
          "amountIn",
          "amountInFormatted",
          "amountInUsd",
          "minAmountIn",
          "amountOut",
          "amountOutFormatted",
          "amountOutUsd",
          "minAmountOut",
          "timeEstimate"
        ]
      },
      "ChainDepositAddress": {
        "type": "object",
        "properties": {
          "blockchain": {
            "$ref": "#/components/schemas/ChainDepositAddress.blockchain"
          },
          "address": {
            "type": "string"
          },
          "memo": {
            "type": "string"
          }
        },
        "required": [
          "blockchain",
          "address"
        ]
      },
      "SwapDetails": {
        "type": "object",
        "properties": {
          "intentHashes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "nearTxHashes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "amountIn": {
            "type": "string"
          },
          "amountInFormatted": {
            "type": "string"
          },
          "amountInUsd": {
            "type": "string"
          },
          "amountOut": {
            "type": "string"
          },
          "amountOutFormatted": {
            "type": "string"
          },
          "amountOutUsd": {
            "type": "string"
          },
          "slippage": {
            "type": "number"
          },
          "originChainTxHashes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionDetails"
            }
          },
          "destinationChainTxHashes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/TransactionDetails"
            }
          },
          "refundedAmount": {
            "type": "string"
          },
          "refundedAmountFormatted": {
            "type": "string"
          },
          "refundedAmountUsd": {
            "type": "string"
          },
          "refundReason": {
            "type": "string"
          },
          "depositedAmount": {
            "type": "string"
          },
          "depositedAmountFormatted": {
            "type": "string"
          },
          "depositedAmountUsd": {
            "type": "string"
          },
          "withdrawFee": {
            "type": "string"
          },
          "referral": {
            "type": "string"
          }
        },
        "required": [
          "intentHashes",
          "nearTxHashes",
          "originChainTxHashes",
          "destinationChainTxHashes"
        ]
      },
      "TransactionDetails": {
        "type": "object",
        "properties": {
          "hash": {
            "type": "string"
          },
          "explorerUrl": {
            "type": "string"
          }
        },
        "required": [
          "hash",
          "explorerUrl"
        ]
      },
      "GetExecutionStatusResponse": {
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string"
          },
          "quoteResponse": {
            "$ref": "#/components/schemas/QuoteResponse"
          },
          "status": {
            "$ref": "#/components/schemas/GetExecutionStatusResponse.status"
          },
          "updatedAt": {
            "type": "string"
          },
          "swapDetails": {
            "$ref": "#/components/schemas/SwapDetails"
          }
        },
        "required": [
          "correlationId",
          "quoteResponse",
          "status",
          "updatedAt",
          "swapDetails"
        ]
      },
      "Error": {
        "type": "object",
        "properties": {
          "error": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "threadId": {
            "type": "string"
          },
          "missing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissingConnectorRequirement"
            }
          },
          "missingInputs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MissingInputRequirement"
            }
          }
        },
        "required": [
          "error"
        ]
      },
      "LinkedWallet": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "userAddress": {
            "type": "string"
          },
          "network": {
            "type": "string",
            "enum": [
              "evm",
              "svm"
            ]
          },
          "address": {
            "type": "string"
          },
          "publicKey": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "pending",
              "active",
              "failed"
            ]
          },
          "transaction": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "id",
          "userAddress",
          "network",
          "address",
          "publicKey",
          "status",
          "transaction"
        ]
      },
      "PinResult": {
        "type": "object",
        "properties": {
          "cid": {
            "type": "string"
          },
          "uri": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "size": {
            "type": "integer"
          }
        },
        "required": [
          "cid",
          "uri",
          "url",
          "size"
        ]
      },
      "MediaResult": {
        "type": "object",
        "properties": {
          "imageUrl": {
            "type": "string"
          },
          "cid": {
            "type": "string"
          }
        },
        "required": [
          "imageUrl",
          "cid"
        ]
      },
      "PasskeyOptionsResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "options": {
            "type": "object",
            "additionalProperties": true
          }
        },
        "required": [
          "id",
          "options"
        ]
      },
      "EmailStartResult": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          },
          "expiresIn": {
            "type": "integer",
            "enum": [
              300
            ]
          }
        },
        "required": [
          "id",
          "email",
          "expiresIn"
        ]
      },
      "ConsentInput": {
        "type": "object",
        "properties": {
          "policy": {
            "type": "string",
            "pattern": "^[a-f0-9]{64}$"
          },
          "terms": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "privacy": {
            "type": "boolean",
            "enum": [
              true
            ]
          }
        },
        "required": [
          "policy",
          "terms",
          "privacy"
        ]
      },
      "Health": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "ready",
              "unavailable"
            ]
          },
          "users": {
            "type": "boolean"
          },
          "workflows": {
            "type": "boolean"
          },
          "cache": {
            "type": "boolean"
          },
          "composer": {
            "type": "boolean"
          }
        },
        "required": [
          "status"
        ]
      },
      "PolicyResponse": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Policy"
          },
          {
            "type": "object",
            "properties": {
              "hash": {
                "type": "string"
              }
            },
            "required": [
              "hash"
            ]
          }
        ]
      },
      "ProfilesResponse": {
        "type": "object",
        "properties": {
          "profiles": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/CreatorProfile"
            }
          }
        },
        "required": [
          "profiles"
        ]
      },
      "ViewResult": {
        "type": "object",
        "properties": {
          "result": {}
        },
        "required": [
          "result"
        ]
      },
      "TelegramVerifyInput": {
        "type": "object",
        "properties": {
          "state": {
            "type": "string"
          },
          "tgAuthResult": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object",
                "additionalProperties": true
              }
            ],
            "nullable": true
          }
        },
        "required": [
          "state"
        ]
      },
      "TelegramVerifyResult": {
        "type": "object",
        "properties": {
          "origin": {
            "type": "string",
            "format": "uri"
          },
          "payload": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "oauth-link",
                  "oauth"
                ]
              },
              "ok": {
                "type": "boolean"
              },
              "social": {
                "$ref": "#/components/schemas/SocialLink"
              },
              "error": {
                "type": "string"
              }
            },
            "required": [
              "type",
              "ok"
            ]
          }
        },
        "required": [
          "origin",
          "payload"
        ]
      },
      "UploadResult": {
        "allOf": [
          {
            "$ref": "#/components/schemas/WorkflowAttachment"
          },
          {
            "type": "object",
            "properties": {
              "uri": {
                "type": "string"
              }
            },
            "required": [
              "uri"
            ]
          }
        ]
      },
      "DepositReadyResult": {
        "type": "object",
        "properties": {
          "userAddress": {
            "type": "string"
          },
          "depositAddress": {
            "type": "string"
          },
          "spendingAddress": {
            "type": "string"
          },
          "network": {
            "type": "string",
            "enum": [
              "mainnet",
              "testnet"
            ]
          },
          "status": {
            "type": "string"
          }
        },
        "required": [
          "userAddress",
          "depositAddress",
          "spendingAddress",
          "network",
          "status"
        ]
      }
    }
  }
}
