{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/audivo-dev/json-schema/audivo-dev-connected-apps-list-response-schema.json",
  "title": "ConnectedAppsListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/audivo-dev-connected-apps-api-openapi.yml#/components/schemas/ConnectedAppsListResponse",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "data"
  ],
  "properties": {
    "data": {
      "type": "array",
      "maxItems": 100,
      "items": {
        "$ref": "#/$defs/ConnectedApp"
      }
    }
  },
  "$defs": {
    "ConnectedApp": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "grant_id",
        "client_name",
        "verified",
        "redirect_target",
        "scope",
        "created_at",
        "last_used_at",
        "revoked",
        "revoked_at"
      ],
      "properties": {
        "grant_id": {
          "$ref": "#/$defs/GrantId"
        },
        "client_name": {
          "type": "string",
          "maxLength": 100
        },
        "verified": {
          "type": "boolean"
        },
        "redirect_target": {
          "type": "string",
          "maxLength": 300
        },
        "scope": {
          "type": "string",
          "maxLength": 100
        },
        "created_at": {
          "type": "string",
          "format": "date-time"
        },
        "last_used_at": {
          "$ref": "#/$defs/NullableDateTime"
        },
        "revoked": {
          "type": "boolean"
        },
        "revoked_at": {
          "$ref": "#/$defs/NullableDateTime"
        }
      }
    },
    "GrantId": {
      "type": "string",
      "pattern": "^oag_[a-f0-9]{24}$",
      "maxLength": 40,
      "description": "A connected app — one OAuth grant."
    },
    "NullableDateTime": {
      "description": "An ISO 8601 timestamp, or `null`.",
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "enum": [
            null
          ]
        }
      ]
    }
  }
}