{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/swopme-co/json-schema/swopme-co-oidc-client-create-request-schema.json",
  "title": "OidcClientCreateRequest",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/swopme-co-openapi.json#/components/schemas/OidcClientCreateRequest",
  "type": "object",
  "required": [
    "name",
    "redirectUris"
  ],
  "properties": {
    "name": {
      "type": "string",
      "minLength": 1
    },
    "redirectUris": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "scopes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "openid",
          "profile",
          "email",
          "wallets.read",
          "wallets.create",
          "wallets.execute"
        ]
      }
    },
    "grantTypes": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "authorization_code",
          "refresh_token"
        ]
      }
    },
    "tokenEndpointAuthMethod": {
      "$ref": "#/$defs/OidcClientTokenEndpointAuthMethod"
    },
    "applicationType": {
      "$ref": "#/$defs/OidcClientApplicationType"
    },
    "brandColor": {
      "type": "string",
      "pattern": "^#[0-9a-fA-F]{6}$"
    },
    "logoUrl": {
      "type": "string",
      "format": "uri"
    },
    "authMethods": {
      "type": "object",
      "properties": {
        "email": {
          "type": "boolean"
        },
        "evmWallet": {
          "type": "boolean"
        },
        "phantom": {
          "type": "boolean"
        },
        "signerTools": {
          "type": "boolean"
        }
      }
    }
  },
  "$defs": {
    "OidcClientApplicationType": {
      "type": "string",
      "enum": [
        "web",
        "spa",
        "native"
      ]
    },
    "OidcClientTokenEndpointAuthMethod": {
      "type": "string",
      "enum": [
        "none",
        "client_secret_post",
        "client_secret_basic"
      ]
    }
  }
}