{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/capgo-app/json-schema/capgo-app-app-envelope-schema.json",
  "title": "AppEnvelope",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/capgo-app-apps-api-openapi.yml#/components/schemas/AppEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/App"
    }
  },
  "required": [
    "data"
  ],
  "additionalProperties": true,
  "$defs": {
    "App": {
      "type": "object",
      "properties": {
        "app_id": {
          "type": "string"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "owner_org": {
          "type": "string"
        },
        "default_upload_channel": {
          "type": "string"
        },
        "icon_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "last_version": {
          "type": [
            "string",
            "null"
          ]
        },
        "retention": {
          "type": "integer"
        },
        "created_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "app_id"
      ]
    }
  }
}