{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aura-historia-com/json-schema/aura-historia-com-oauth-client-metadata-response-data-schema.json",
  "title": "OAuthClientMetadataResponseData",
  "description": "OAuth client metadata create response.\n`client_secret` contains the plaintext secret only in the create response.\nAdmin list, detail, and update responses use `OAuthClientAdminData` and omit `client_secret` entirely.\n",
  "x-generated": "2026-10-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aura-historia-com-openapi.yml#/components/schemas/OAuthClientMetadataResponseData",
  "type": "object",
  "required": [
    "client_id",
    "client_secret",
    "client_name",
    "tos_uri",
    "policy_uri",
    "client_uri",
    "logo_uri",
    "redirect_uris",
    "scope",
    "client_id_issued_at"
  ],
  "properties": {
    "client_id": {
      "type": "string",
      "description": "Canonical OAuthClient ID."
    },
    "client_secret": {
      "type": "string",
      "description": "Plaintext OAuth client secret returned only once by the create response.\nAdmin list, detail, and update responses omit this property entirely.\n"
    },
    "client_name": {
      "type": "string",
      "description": "Display name of the OAuth client."
    },
    "tos_uri": {
      "type": "string",
      "format": "uri",
      "description": "Terms-of-service document URL registered for the OAuth client."
    },
    "policy_uri": {
      "type": "string",
      "format": "uri",
      "description": "Privacy-policy document URL registered for the OAuth client."
    },
    "client_uri": {
      "type": "string",
      "format": "uri",
      "description": "Homepage or product-site URL registered for the OAuth client."
    },
    "logo_uri": {
      "type": "string",
      "format": "uri",
      "description": "Logo image URL registered for the OAuth client."
    },
    "redirect_uris": {
      "type": "array",
      "uniqueItems": true,
      "description": "Registered redirect URIs for the OAuth client.",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "scope": {
      "type": "array",
      "uniqueItems": true,
      "description": "Allowed scopes for tokens issued to this OAuth client.",
      "items": {
        "$ref": "#/$defs/AccessTokenScopeData"
      }
    },
    "client_id_issued_at": {
      "type": "integer",
      "format": "int64",
      "description": "Unix timestamp (seconds) when the OAuth client was created and its client ID was issued."
    }
  },
  "$defs": {
    "AccessTokenScopeData": {
      "type": "string",
      "enum": [
        "auctions:read",
        "auctions:write",
        "listing-sources:read",
        "parties:read",
        "parties:write",
        "partnership-applications:read",
        "partnership-applications:write",
        "partnerships:read",
        "partnerships:write",
        "admin-overview:read",
        "search-filters:read",
        "notifications:read",
        "notifications:write",
        "product-listings:read",
        "product-listings:write",
        "listing-sources:write",
        "users:read",
        "users:write",
        "access-tokens:read",
        "access-tokens:write",
        "search-filters:write",
        "watchlist:read",
        "watchlist:write"
      ],
      "description": "Aura Historia access-token and OAuth scope string.\nThe value is one of the capabilities supported by the canonical access-token and OAuth flows.\n"
    }
  }
}