{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/repuso-com/json-schema/repuso-com-profile-type-schema.json",
  "title": "ProfileType",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/repuso-com-openapi.json#/components/schemas/ProfileType",
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "label": {
      "type": "string"
    },
    "logo": {
      "type": "string",
      "format": "uri"
    },
    "groups": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "connect": {
      "type": "object",
      "properties": {
        "method": {
          "type": "string",
          "enum": [
            "url",
            "credentials",
            "oauth"
          ],
          "description": "`url` - connect with POST /profiles/add and a profile URL; `credentials` - connect with POST /profiles/add and the platform's API key (Delighted); `oauth` - use the authorize_url flow."
        },
        "params": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Parameters this platform accepts."
        },
        "instructions": {
          "type": "string",
          "description": "Human-readable connection instructions for this platform."
        },
        "url_example": {
          "type": "string",
          "description": "Example profile URL format, when applicable."
        }
      }
    },
    "metadata": {
      "type": "object",
      "description": "Platform-specific options (selectable stores / countries), present on the single-type endpoint for platforms that have them."
    }
  }
}