{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/confighub/json-schema/confighub-oauth-client-schema.json",
  "title": "OAuthClient",
  "description": "A per-app OAuth public client used by a browser app to authenticate against the ConfigHub API.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/confighub-oauthclient-api-openapi.yml#/components/schemas/OAuthClient",
  "type": "object",
  "properties": {
    "AllowAllOrgs": {
      "type": "boolean",
      "description": "Allow members of any organization to use the app (each gets their own org's session) instead of only the owning org. Permitted only for trusted organizations.",
      "x-go-type-skip-optional-pointer": true
    },
    "ClientID": {
      "type": "string",
      "description": "Generated OAuth client_id used at login and to address this client in the API.",
      "readOnly": true,
      "x-go-type-skip-optional-pointer": true
    },
    "Name": {
      "type": "string",
      "description": "Human-friendly name for the app.",
      "x-go-type-skip-optional-pointer": true
    },
    "OrganizationID": {
      "type": "string",
      "description": "External identifier of the owning organization.",
      "readOnly": true,
      "x-go-type-skip-optional-pointer": true
    },
    "RedirectURIs": {
      "type": [
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      },
      "description": "Exact redirect URIs permitted for the app's login (no wildcards).",
      "x-go-type-skip-optional-pointer": true
    }
  }
}