{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/xpay-sh/json-schema/xpay-sh-create-rda-request-schema.json",
  "title": "CreateRdaRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/xpay-sh-openapi.json#/components/schemas/CreateRdaRequest",
  "type": "object",
  "required": [
    "slug",
    "type",
    "name",
    "description",
    "inputSchema"
  ],
  "properties": {
    "slug": {
      "type": "string",
      "description": "URL-friendly identifier"
    },
    "type": {
      "type": "string",
      "enum": [
        "prompt",
        "agent",
        "tool"
      ]
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "longDescription": {
      "type": "string"
    },
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "coverImage": {
      "type": "string"
    },
    "codeSnippet": {
      "type": "string"
    },
    "codeLanguage": {
      "type": "string"
    },
    "inputSchema": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/InputField"
      }
    },
    "outputSchema": {
      "type": "object"
    },
    "promptConfig": {
      "type": "object"
    }
  },
  "$defs": {
    "InputField": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "text",
            "textarea",
            "number",
            "select",
            "boolean"
          ]
        },
        "required": {
          "type": "boolean"
        },
        "placeholder": {
          "type": "string"
        },
        "options": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  }
}