{
  "openapi": "3.1.0",
  "info": {
    "title": "I2S public discovery API",
    "version": "1.0.0",
    "description": "Raster-to-SVG product preview with editable vector paths. Hosted processing and checkout are not activated. No conversion, uploads, purchases or account access are exposed."
  },
  "servers": [
    {
      "url": "https://i2s.sbarah.com"
    }
  ],
  "paths": {
    "/api/capabilities": {
      "get": {
        "operationId": "getPublicCapabilities",
        "summary": "Read published product capabilities",
        "security": [],
        "responses": {
          "200": {
            "description": "Versioned public declaration, not live health",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "schemaVersion",
                    "stage",
                    "automation",
                    "documentation"
                  ],
                  "properties": {
                    "schemaVersion": {
                      "type": "string"
                    },
                    "stage": {
                      "type": "string",
                      "enum": [
                        "public-preview"
                      ]
                    },
                    "automation": {
                      "type": "object",
                      "required": [
                        "available",
                        "reason"
                      ],
                      "properties": {
                        "available": {
                          "type": "boolean",
                          "const": false
                        },
                        "reason": {
                          "type": "string"
                        }
                      }
                    },
                    "documentation": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string",
                        "format": "uri"
                      }
                    }
                  }
                },
                "example": {
                  "schemaVersion": "1.0",
                  "reviewed": "2026-09-10",
                  "name": "I2S",
                  "website": "https://i2s.sbarah.com",
                  "stage": "public-preview",
                  "description": "Raster-to-SVG product preview with editable vector paths. Hosted processing and checkout are not activated.",
                  "languages": [
                    "en",
                    "ar"
                  ],
                  "automation": {
                    "available": false,
                    "reason": "No public conversion API or MCP server is released. Studio covers manual personal use, not automated bulk processing."
                  },
                  "publicOperations": [
                    {
                      "method": "GET",
                      "path": "/api/capabilities",
                      "authentication": "none",
                      "changesState": false
                    }
                  ],
                  "accountWorkflow": [
                    "Sign in when activated",
                    "Upload an image",
                    "Convert",
                    "Inspect original and vector",
                    "Edit colors or hide color groups",
                    "Download edited SVG"
                  ],
                  "configuredAccountLimits": {
                    "batch": 10,
                    "image_mib": 10,
                    "image_megapixels": 4,
                    "storage_mib": 1024,
                    "active_batches": 1
                  },
                  "plannedOffers": [
                    {
                      "name": "Starter",
                      "amount": 5,
                      "currency": "USDT",
                      "images": 100,
                      "durationDays": null,
                      "checkoutAvailable": false
                    },
                    {
                      "name": "Studio",
                      "amount": 15,
                      "currency": "USDT",
                      "images": null,
                      "durationDays": 30,
                      "checkoutAvailable": false
                    }
                  ],
                  "documentation": {
                    "en": "https://i2s.sbarah.com/en/guide",
                    "ar": "https://i2s.sbarah.com/ar/guide",
                    "markdown": "https://i2s.sbarah.com/docs/guide.en.md",
                    "openapi": "https://i2s.sbarah.com/openapi.json"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
