{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-database/json-schema/oracle-database-rest-client-collection-item-schema.json",
  "title": "RestClientCollectionItem",
  "description": "ORDS OAuth clients",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-database-ords-rest-services-api-openapi.yml#/components/schemas/RestClientCollectionItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "The original generated client identifier."
    },
    "name": {
      "type": "string",
      "description": "The name for the client."
    },
    "grant_type": {
      "type": "string",
      "description": "OAuth grant type. Must be one of: authorization_code, implicit, or client_credentials."
    },
    "description": {
      "type": "string",
      "description": "Description of the purpose of the client."
    },
    "auth_flow": {
      "type": "string",
      "description": "OAuth flow type."
    },
    "response_type": {
      "type": "string",
      "description": "OAuth response type"
    },
    "client_id": {
      "type": "string",
      "description": "A unique string identifier of a client."
    },
    "client_secret": {
      "type": "string",
      "description": "The client secret for slot 1."
    },
    "client_secret_issued_on": {
      "type": "string",
      "description": "Date and time when the client secret was generated or issued."
    },
    "client_secret_2": {
      "type": "string",
      "description": "The client secret for slot 2."
    },
    "client_secret_2_issued_on": {
      "type": "string",
      "description": "Date and time when the client secret was generated or issued."
    },
    "token_duration": {
      "type": "string",
      "description": "Duration of the access token in seconds. "
    },
    "refresh_duration": {
      "type": "string",
      "description": "Duration of refresh token in seconds. NULL duration fallsback to the value in the ORDS instance."
    },
    "code_duration": {
      "type": "string",
      "description": "Duration of the code token in seconds applicable only when authorization code is authorization_code."
    },
    "redirect_uri": {
      "type": "string",
      "description": "Client-controlled URI to which redirect containing an OAuth access token or error is sent."
    },
    "support_email": {
      "type": "string",
      "description": "The URI to contact the client for support."
    },
    "support_uri": {
      "type": "string",
      "description": "The URI where to contact the client for support."
    },
    "allowed_origins": {
      "type": "string",
      "description": "The comma-separated list of URL prefixes."
    },
    "about_url": {
      "type": "string",
      "description": "The URL that provides more information for the client"
    },
    "logo_content_type": {
      "type": "string",
      "description": "The content type of the logo."
    },
    "logo_image": {
      "type": "string",
      "description": "The logo of the OAuth client."
    },
    "schema_id": {
      "type": "string",
      "description": "The schema registration id."
    },
    "created_by": {
      "type": "string",
      "description": "The user who created the client"
    },
    "created_on": {
      "type": "string",
      "description": "Date and time when the client was created."
    },
    "updated_by": {
      "type": "string",
      "description": "The user who updated the client"
    },
    "updated_on": {
      "type": "string",
      "description": "Date and time when the client was updated."
    },
    "privilege_names": {
      "type": "string",
      "description": "List of comma-separated privileges that the client wants to access."
    },
    "role_names": {
      "type": "string",
      "description": "The names of the roles that was granted."
    },
    "links": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/LinkRelation"
      }
    }
  },
  "$defs": {
    "LinkRelation": {
      "type": "object",
      "properties": {
        "rel": {
          "type": "string"
        },
        "href": {
          "type": "string"
        }
      },
      "required": [
        "rel",
        "href"
      ]
    }
  }
}