{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vidplate-app/json-schema/vidplate-app-storage-destination-schema.json",
  "title": "StorageDestination",
  "description": "One of your own S3-compatible buckets. Never contains a secret.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vidplate-app-openapi.json#/components/schemas/StorageDestination",
  "type": "object",
  "properties": {
    "object": {
      "const": "storage_destination"
    },
    "id": {
      "type": "string",
      "description": "dst_..."
    },
    "name": {
      "type": "string"
    },
    "provider": {
      "enum": [
        "aws_s3",
        "cloudflare_r2",
        "wasabi",
        "backblaze_b2",
        "digitalocean_spaces",
        "minio",
        "other_s3"
      ]
    },
    "provider_label": {
      "type": "string"
    },
    "bucket": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "endpoint": {
      "type": [
        "string",
        "null"
      ]
    },
    "force_path_style": {
      "type": "boolean"
    },
    "path_prefix": {
      "type": "string"
    },
    "path_pattern": {
      "type": "string"
    },
    "allow_overwrite": {
      "type": "boolean"
    },
    "copy_mode": {
      "enum": [
        "safety_buffer",
        "none",
        "retain"
      ]
    },
    "is_default": {
      "type": "boolean"
    },
    "auth": {
      "type": "object",
      "description": "iam_role: role_arn, external_id, trusted_principal. access_key: access_key_id_hint and secret_set (the secret is never returned)."
    },
    "last_test": {
      "type": [
        "object",
        "null"
      ]
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}