{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apification-com/json-schema/apification-com-cloud-service-schema.json",
  "title": "CloudService",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apification-com-openapi.json#/components/schemas/CloudService",
  "type": "object",
  "additionalProperties": true,
  "properties": {
    "id": {
      "type": "integer"
    },
    "code": {
      "type": "string"
    },
    "type": {
      "type": "string"
    },
    "type_label": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": [
        "string",
        "null"
      ]
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "shared",
        "public"
      ]
    },
    "permission": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "viewer",
        "editor",
        "owner",
        null
      ]
    },
    "capabilities": {
      "$ref": "#/$defs/CloudPermissionCapabilities"
    },
    "status": {
      "type": "string"
    },
    "public": {
      "type": "boolean"
    },
    "file": {
      "$ref": "#/$defs/CloudFile"
    },
    "parent_folder_id": {
      "type": [
        "integer",
        "null"
      ]
    },
    "views": {
      "type": "integer"
    },
    "payload": {
      "type": [
        "object",
        "null"
      ]
    },
    "public_url": {
      "type": [
        "string",
        "null"
      ]
    },
    "insert_value": {
      "type": [
        "string",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  },
  "$defs": {
    "CloudFile": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "extension": {
          "type": [
            "string",
            "null"
          ]
        },
        "mime_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "size": {
          "type": "integer"
        },
        "preview_type": {
          "type": [
            "string",
            "null"
          ]
        },
        "content_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "media_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "thumbnail_url": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        }
      }
    },
    "CloudPermissionCapabilities": {
      "type": "object",
      "additionalProperties": true,
      "properties": {
        "view": {
          "type": "boolean"
        },
        "edit": {
          "type": "boolean"
        },
        "manage": {
          "type": "boolean"
        }
      }
    }
  }
}