{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stormmcp/json-schema/stormmcp-oauth-config-list-response-schema.json",
  "title": "OAuthConfigListResponse",
  "description": "Response model for listing OAuth provider configurations.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stormmcp-oauth-api-openapi.yml#/components/schemas/OAuthConfigListResponse",
  "type": "object",
  "properties": {
    "totalCount": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "description": "Gets or sets the total number of configurations returned.",
      "format": "int32"
    },
    "hasMore": {
      "type": "boolean",
      "description": "Gets or sets a value indicating whether UCS had more results than the page size.\nWhen true, the returned list may be incomplete."
    },
    "configurations": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OAuthConfigItem"
      },
      "description": "Gets or sets the list of OAuth provider configurations."
    }
  },
  "$defs": {
    "OAuthConfigItem": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Gets or sets the provider configuration ID."
        },
        "name": {
          "type": "string",
          "description": "Gets or sets the display name of the configuration."
        },
        "providerType": {
          "type": "string",
          "description": "Gets or sets the OAuth provider type (e.g. \"MicrosoftGraph\", \"GoogleSuite\")."
        },
        "level": {
          "type": "string",
          "description": "Gets or sets the access level (Personal or Tenant)."
        },
        "authenticationType": {
          "type": "string",
          "description": "Gets or sets the authentication type for this configuration."
        },
        "supportedScopes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Gets or sets the supported OAuth scopes."
        },
        "totalActiveCredentials": {
          "pattern": "^-?(?:0|[1-9]\\d*)$",
          "type": [
            "integer",
            "string"
          ],
          "description": "Gets or sets the number of active credentials using this configuration.",
          "format": "int32"
        },
        "createdVia": {
          "type": "string",
          "description": "Gets or sets how this configuration was created (e.g. \"Manual\", \"Dcr\", \"Seed\")."
        },
        "isSystem": {
          "type": "boolean",
          "description": "Gets or sets a value indicating whether this is a system-seeded (Airia Managed) configuration."
        }
      },
      "description": "A single OAuth provider configuration item returned from UCS."
    }
  }
}