{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/getoneprofile-ai/json-schema/getoneprofile-ai-ai-app-approve-schema-schema.json",
  "title": "AiAppApproveSchema",
  "description": "The person's yes: which workspace, and what the app may do there.",
  "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/AiAppApproveSchema",
  "properties": {
    "access": {
      "$ref": "#/$defs/AiAppAccess"
    },
    "workspace_id": {
      "maxLength": 255,
      "minLength": 1,
      "title": "Workspace Id",
      "type": "string"
    }
  },
  "required": [
    "workspace_id",
    "access"
  ],
  "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"
    }
  }
}