{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getoneprofile-ai/json-schema/getoneprofile-ai-paginated-response-ai-app-read-schema-schema.json",
  "title": "PaginatedResponse[AiAppReadSchema]",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/getoneprofile-ai-ai-apps-api-openapi.yml#/components/schemas/PaginatedResponse_AiAppReadSchema_",
  "properties": {
    "data": {
      "description": "The list of ResponseItems.",
      "items": {
        "$ref": "#/$defs/AiAppReadSchema"
      },
      "title": "Data",
      "type": "array"
    },
    "next_page_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The cursor to the next page. If there are no more pages, this is None."
    },
    "previous_page_cursor": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "The cursor to the previous page. If there are no previous pages, this is None."
    }
  },
  "type": "object",
  "$defs": {
    "AiAppAccess": {
      "description": "What a person let one AI app do in their workspace when they connected it.\n\nChosen on the consent page. A workspace that is not on a paid plan reads\nas READ whatever was chosen, because making changes from an AI app is a\npaid entitlement; that is checked on every call, not stored here.",
      "enum": [
        "read",
        "write"
      ],
      "title": "AiAppAccess",
      "type": "string"
    },
    "AiAppBrand": {
      "description": "Whose mark the dashboard shows beside a connected app.",
      "enum": [
        "claude",
        "chatgpt",
        "other"
      ],
      "title": "AiAppBrand",
      "type": "string"
    },
    "AiAppReadSchema": {
      "description": "An AI app connected to the workspace.",
      "properties": {
        "access": {
          "$ref": "#/$defs/AiAppAccess"
        },
        "app_name": {
          "title": "App Name",
          "type": "string"
        },
        "brand": {
          "$ref": "#/$defs/AiAppBrand"
        },
        "created_at": {
          "format": "date-time",
          "title": "Created At",
          "type": "string"
        },
        "id": {
          "format": "uuid",
          "title": "Id",
          "type": "string"
        },
        "last_used_at": {
          "anyOf": [
            {
              "format": "date-time",
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Last Used At"
        },
        "person_email": {
          "title": "Person Email",
          "type": "string"
        },
        "person_name": {
          "description": "Their full name, or their email when they have none.",
          "title": "Person Name",
          "type": "string"
        },
        "redirect_host": {
          "title": "Redirect Host",
          "type": "string"
        },
        "user_id": {
          "description": "The person who connected it.",
          "title": "User Id",
          "type": "string"
        }
      },
      "required": [
        "id",
        "app_name",
        "brand",
        "redirect_host",
        "access",
        "user_id",
        "person_name",
        "person_email",
        "last_used_at",
        "created_at"
      ],
      "title": "AiAppReadSchema",
      "type": "object"
    }
  }
}